/*!
 * Nutrient Web SDK 1.1.0 (https://www.nutrient.io/sdk/web)
 *
 * Copyright (c) 2016-2025 PSPDFKit GmbH. All rights reserved.
 *
 * THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
 * AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
 * UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
 * This notice may not be removed from this file.
 *
 * PSPDFKit uses several open source third-party components: https://www.nutrient.io/legal/acknowledgements/web-acknowledgements/
 */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.NutrientViewer=t():e.NutrientViewer=t()}(globalThis,(()=>(()=>{var e,t,n,r,o={10934:(e,t,n)=>{"use strict";function r(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}n.d(t,{A:()=>r})},44268:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(10934);function o(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,(0,r.A)(e,t,"get"))}},13649:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(10934);function o(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,(0,r.A)(e,t,"set"),n),n}},67136:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(10527);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},84474:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(60875);function o(e,t){if("object"!==(0,r.A)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},10527:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(60875),o=n(84474);function i(e){var t=(0,o.A)(e,"string");return"symbol"===(0,r.A)(t)?t:String(t)}},60875:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}n.d(t,{A:()=>r})},65262:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Comment:()=>N,DynamicGridList:()=>V,SignatureTextInput:()=>z,Stamp:()=>P,TaggedPagination:()=>F});var r=n(84387),o=n(96540),i=n(40027),a=n(65221),s=n(74848),l=n(8521),c=n(55026),u=n(84997),d=n(35295),p=n(37555);var h=n(54910),f=n(52971),m=n(48074),g=n(20576);function v(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function y(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}var S=(e,t,n)=>{for(var r of Object.keys(e)){var o;if(e[r]!==(null!==(o=t[r])&&void 0!==o?o:n[r]))return!1}return!0},_=e=>{var t=t=>{var n=e.defaultClassName,r=w(w({},e.defaultVariants),t);for(var o in r){var i,a=null!==(i=r[o])&&void 0!==i?i:e.defaultVariants[o];if(null!=a){var s=a;"boolean"==typeof s&&(s=!0===s?"true":"false");var l=e.variantClassNames[o][s];l&&(n+=" "+l)}}for(var[c,u]of e.compoundVariants)S(c,r,e.defaultVariants)&&(n+=" "+u);return n};return t.variants=()=>Object.keys(e.variantClassNames),t.classNames={get base(){return e.defaultClassName.split(" ")[0]},get variants(){return x(e.variantClassNames,(e=>x(e,(e=>e.split(" ")[0]))))}},t},C=_({defaultClassName:"_96lriw3",variantClassNames:{isFocusVisible:{true:"_96lriw4"},isDisabled:{true:"_1yep5z6da"},isInline:{false:"_96lriw6 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6ln _1yep5z6ge",true:"_96lriw7 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6h4 _1yep5z6gc"}},defaultVariants:{},compoundVariants:[]}),E=_({defaultClassName:"_96lriw8 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6dy _1yep5z6fi",variantClassNames:{isInline:{false:"_96lriw9",true:"_96lriwa"}},defaultVariants:{},compoundVariants:[]}),k=_({defaultClassName:"_96lriw0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{isInline:{false:"_96lriw1",true:"_1yep5z69o _1yep5z69p _1yep5z69q"}},defaultVariants:{},compoundVariants:[]}),z=o.forwardRef((({className:e,style:t,inputStyle:n,inputClassName:l,clearLabel:c,defaultValue:u,value:d,"data-block-id":p,"data-block-class":h,isInline:f=!0,label:m,footerStyle:g,footerClassName:v,...y},b)=>{let w=o.useRef(null),[x,S]=o.useState(d||u||""),{inputProps:_,labelProps:z}=(0,a.vZ)({...y,value:d||x,onChange:e=>{y.onChange?.(e),S(e)},"aria-label":m},w),{isFocusVisible:P,focusProps:A}=(0,a.og)({isTextInput:!0});return(0,s.jsxs)(r.Group,{className:(0,i.xW)(k({isInline:f}),"BaselineUI-SignatureTextInput",e),style:t,ref:b,"data-block-id":p,"data-block-class":h,children:[(0,s.jsx)("input",{...(0,a.v6)(_,A),className:(0,i.xW)(C({isFocusVisible:P,isDisabled:y.isDisabled,isInline:f}),l),ref:w,style:n}),(0,s.jsx)("div",{className:(0,i.xW)(f?void 0:"_1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6g3 _1yep5z6ln _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6kd _1yep5z6ke _1yep5z6kf",v),style:g,children:w.current?.value?(0,s.jsx)(r.ActionButton,{label:c,variant:"ghost",size:f?"md":"sm",isDisabled:y.isDisabled||!x,onPress:()=>{S(""),y.onChange?.("")}}):(0,s.jsx)("label",{...z,"aria-disabled":"true",className:E({isInline:f}),children:m})})]})}));z.displayName="SignatureTextInput";var P=o.forwardRef((({className:e,minWidth:t=10,maxWidth:n=Number.MAX_SAFE_INTEGER,height:a=96,strokeWidth:c=1,strokeColor:u="#3F87EA",fillColor:d="#AFFCFE",fontColor:p="#3F87EA",fontFamily:h="Arial",text:f,subText:m,style:g,label:v=(0,s.jsx)(r.MessageFormat,{id:"preview",defaultMessage:"Preview"}),"data-block-id":y,"data-block-class":b,onDimensionsChange:w,...x},S)=>{let _=(m?.6:.7)*a,[C,E]=o.useState(_),[k,z]=o.useState(Math.min(t,n)),P=o.useRef(null);return(0,l.useGranularLayoutEffect)((()=>{if(!f||!P.current)return;let e=48+(0,i.jT)({text:f,fontFamily:"Arial",fontWeight:"bold",fontSize:C}).width,r=48+(0,i.jT)({text:f,fontFamily:"Arial",fontWeight:"bold",fontSize:_}).width,o=_,s=Math.max(e,t);(e>n||r>n)&&(o=(0,i.l5)({text:f,maxWidth:n-48,fontFamily:"Arial",fontWeight:"bold",initialFontSize:_}),s=o<_?n:r),E(o),z(s),w?.({width:s,height:a})}),[f],[C,t,w]),(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.2",width:k,height:Math.round(a),viewBox:`0 0 ${k} ${Math.round(a)}`,className:(0,i.xW)("BaselineUI-Stamp",e),style:g,ref:S,role:"img",fontFamily:h,"data-block-id":y,"data-block-class":b,...x,children:[(0,s.jsx)("title",{children:v}),(0,s.jsx)("rect",{width:k-2*c,height:a-2*c,fill:d,rx:7,ry:7,strokeWidth:c,stroke:u,x:c,y:c}),(0,s.jsx)("text",{x:k/2,textAnchor:"middle",fontWeight:"bold",fontSize:C,fill:p,dominantBaseline:"central",y:m?.4*a:a/2,ref:P,children:f}),m?(0,s.jsx)("text",{x:k/2,textAnchor:"middle",fontSize:.175*a,fill:p,dominantBaseline:"central",y:.85*a,children:m}):null]})}));P.displayName="Stamp";var A=_({defaultClassName:"oub0v60 _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6",variantClassNames:{hasName:{true:"_1yep5z6vl _1yep5z6vm _1yep5z6vn"}},defaultVariants:{},compoundVariants:[]}),D="oub0v67",T=_({defaultClassName:"oub0v62 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isInline:{true:"_1yep5z615m _1yep5z615n _1yep5z615o"}},defaultVariants:{},compoundVariants:[]}),I=_({defaultClassName:"oub0v64 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z69l _1yep5z69m _1yep5z69n",variantClassNames:{isInline:{true:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z615m _1yep5z615n _1yep5z615o",false:"_1yep5z6157 _1yep5z6158 _1yep5z6159 _1yep5z616g _1yep5z616h _1yep5z616i"}},defaultVariants:{},compoundVariants:[]}),M="_1yep5z6e3 _1yep5z6eu",N=o.forwardRef((({className:e,style:t,reactions:n,name:o,content:a,description:l,menuProps:d,avatarProps:p,avatarNode:h,isInline:f=!0,children:m,contentStringType:g="text","data-block-id":v,"data-block-class":y,"data-comment-id":b,titleClassName:w,descriptionClassName:x,contentClassName:S,headerClassName:_},C)=>(0,s.jsxs)("div",{className:(0,i.xW)(A({hasName:!!o}),"BaselineUI-Comment",e),style:t,ref:C,"data-block-id":v,"data-comment-id":b,"data-block-class":y,children:[(0,s.jsxs)("div",{className:(0,i.xW)(T({isInline:f}),_),children:[(0,s.jsxs)("div",{className:I({isInline:f}),children:[h?(0,s.jsx)(r.DomNodeRenderer,{node:h}):p?(0,s.jsx)(r.Avatar,{...p,className:(0,i.xW)("BaselineUI-Comment-Avatar",p.className),size:"md"}):null,(0,s.jsxs)(r.Box,{display:"flex",flexDirection:"column",flex:1,justifyContent:"center",children:[o?(0,s.jsx)(r.Text,{type:"subtitle",size:"sm",className:(0,i.xW)("BaselineUI-Comment-Name BaselineUI-Comment-Title",w),children:o}):null,(0,s.jsx)(r.Text,{type:"helper",size:"sm",className:(0,i.xW)("BaselineUI-Comment-Description",x),children:l})]})]}),d?(0,s.jsx)(r.Menu,{placement:"bottom end",renderTrigger:({buttonProps:e,ref:t})=>(0,s.jsx)(r.ActionIconButton,{...e,size:"sm",variant:"secondary",icon:c.Z4,"aria-label":d["aria-label"],ref:t,className:(0,i.xW)("BaselineUI-Comment-MenuTrigger",e.className)}),...d}):null]}),(0,s.jsx)(r.Box,{paddingLeft:f&&p?"2xl":void 0,children:(0,s.jsxs)(r.Box,{paddingLeft:f&&p?"lg":void 0,display:"flex",gap:"md",flexDirection:"column",children:["string"==typeof a&&"html"===g?(0,s.jsx)("div",{className:(0,i.xW)(M,D,"BaselineUI-Comment-Content",S),dangerouslySetInnerHTML:{__html:u.A.sanitize(a)}}):(0,s.jsx)("div",{className:(0,i.xW)(M,D,"BaselineUI-Comment-Content",S),children:a}),!!n?.length&&(0,s.jsx)("div",{className:T({isInline:!0}),children:n.map((e=>(0,s.jsx)(r.Reaction,{...e},e.id)))}),m]})})]})));N.displayName="Comment";var O=_({defaultClassName:"hhkx3s8 _1yep5z6lq _1yep5z6ly _1yep5z6eu _1yep5z6g1",variantClassNames:{size:{xs:"hhkx3s9 _1yep5z6pr _1yep5z6ps _1yep5z6pt _1yep5z6nf _1yep5z6ng _1yep5z6nh _1yep5z6zy",sm:"hhkx3sa _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk _1yep5z6101",md:"hhkx3sb _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk _1yep5z6104"}},defaultVariants:{},compoundVariants:[]}),R=_({defaultClassName:"hhkx3s3 _1yep5z6ev",variantClassNames:{size:{xs:"_1yep5z6zy",sm:"_1yep5z6101",md:"_1yep5z6104"},isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),j={xs:"hhkx3s0",sm:"hhkx3s1",md:"hhkx3s2"},F=o.forwardRef((({className:e,style:t,size:n="md",isDisabled:c,decrementAriaLabel:u,incrementAriaLabel:h,"data-block-id":f,"data-block-class":m,label:g,onChange:v,onBlur:y,onKeyDown:b,minValue:w=Number.NEGATIVE_INFINITY,maxValue:x=Number.POSITIVE_INFINITY,defaultValue:S,value:_,description:C=e=>`${e} / ${x}`,valueToLabelMap:E,onInputChange:k,onChangeSuccess:z,step:P=1,type:A,...D},T)=>{let I=(0,p.lb)(),M=o.useRef(null),N=(0,a.Bi)(),F=(0,a.Bi)(),B=(0,o.useCallback)((e=>"number"===A?e.toString():E?.[e]??e),[E,A]),L=(0,o.useCallback)((e=>{if("number"===A)return"string"==typeof e?Number.parseInt(e):e;let t=Object.fromEntries(Object.entries(E??{}).map((([e,t])=>[t,e])));return Number.parseInt(t[e]??e)}),[E,A]),[V,K]=function(e,t,n){let[r,i]=(0,o.useState)(e||t),a=(0,o.useRef)(void 0!==e),s=void 0!==e;(0,o.useEffect)((()=>{let e=a.current;e!==s&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s}),[s]);let l=s?e:r,c=(0,o.useCallback)(((e,...t)=>{let r=(e,...t)=>{n&&(Object.is(l,e)||n(e,...t)),s||(l=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i(((n,...o)=>{let i=e(s?l:n,...o);return r(i,...t),s?n:i}))):(s||i(e),r(e,...t))}),[s,l,n]);return[l,c]}(_,S??1,z),[H,$]=(0,o.useState)(B(V)),U=V<=w||c,W=V>=x||c,q=(0,o.useCallback)((e=>{v?.(e);let t=L(e);Number.isNaN(t)?$(B(V)):((0,i.V1)("number"==typeof t,"Current value in textbox is not a number"),t>=w&&t<=x&&!c&&!D.isReadOnly?K(t):$(B(V)))}),[v,L,w,x,c,D.isReadOnly,B,V,K]),G=(0,o.useCallback)((e=>{q(H),y?.(e)}),[H,q,y]),Z=(0,o.useCallback)((()=>{if(W)return;let e=Math.min(V+P,x);K(e),q(e)}),[V,q,W,x,K,P]),Y=(0,o.useCallback)((()=>{if(U)return;let e=Math.max(V-P,w);K(e),q(e)}),[V,q,U,K,P,w]),X=(0,o.useCallback)((e=>{if(!c&&!D.isReadOnly){switch(e.key){case"Enter":q(H);break;case"ArrowUp":Z();break;case"ArrowDown":Y()}b?.(e)}}),[c,D.isReadOnly,b,q,H,Z,Y]);(0,l.useGranularEffect)((()=>{$(B(V))}),[V],[B]);let{inputProps:J}=(0,a.vZ)({...D,value:H?.toString(),isDisabled:c,onBlur:G,onChange:e=>{$(e),k?.(e)},onKeyDown:X,"aria-labelledby":N,"aria-describedby":F},M),Q="keyboard"===I,ee="function"==typeof C?C(V):C;return(0,s.jsxs)(r.Box,{className:(0,i.xW)(j[n],e),display:"flex",flexDirection:"row",alignItems:"center","data-block-id":f,"data-block-class":m,style:t,ref:T,"aria-disabled":c,children:[(0,s.jsx)("span",{id:N,className:R({size:n,isDisabled:c}),children:g}),(0,s.jsxs)(r.Box,{display:"flex",flexDirection:"row",borderRadius:"sm",borderColor:"border.subtle",borderStyle:"solid",borderWidth:1,style:{height:"inherit"},children:[(0,s.jsx)(r.ActionIconButton,{icon:d.eCO,elementType:"div",size:n,variant:"secondary",style:{height:"100%"},className:"BaselineUI-TaggedPagination-DecrementButton",UNSAFE_NON_INTERACTIVE:Q,isDisabled:c||U||D.isReadOnly,excludeFromTabOrder:!0,onPress:Y,"aria-label":u}),(0,s.jsx)(r.Separator,{orientation:"vertical"}),(0,s.jsx)("input",{...J,className:O({size:n}),min:w,max:x,type:A}),(0,s.jsx)(r.Separator,{orientation:"vertical"}),(0,s.jsx)(r.ActionIconButton,{icon:d.JJd,elementType:"div",size:n,variant:"secondary",style:{height:"100%"},className:"BaselineUI-TaggedPagination-IncrementButton",UNSAFE_NON_INTERACTIVE:Q,isDisabled:c||W||D.isReadOnly,excludeFromTabOrder:!0,onPress:Z,"aria-label":h})]}),ee?(0,s.jsx)("span",{id:F,className:R({size:n,isDisabled:c}),children:ee}):null]})}));F.displayName="TaggedPagination";var B="gwvimf0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69o _1yep5z69p _1yep5z69q",L=(0,r.defineMessages)({options:{id:"options",defaultMessage:"Options",description:"Options control label"},enterDescriptionHere:{id:"enterDescriptionHere",defaultMessage:"Enter description here",description:"New option input placeholder"},addOption:{id:"addOption",defaultMessage:"Add option",description:"New option button text"},emptyInput:{id:"emptyInput",defaultMessage:"Please fill in this field",description:"New option empty input error message"},delete:{id:"delete",defaultMessage:"Delete",description:"Generic delete label"}}),V=({items:e,onChange:t,inputPlaceholder:n,enableReorder:i=!0,errorMessage:a,addOptionLabel:l,...c})=>{let{formatMessage:u}=(0,r.useI18n)(),[d,p]=o.useState(""),[v,y]=o.useState(!1),b=(0,m.um)({initialItems:e});(0,o.useEffect)((()=>{t?.(b.items)}),[b.items,t]);let w=(0,o.useCallback)((e=>{"before"===e.target.dropPosition?b.moveBefore(e.target.key,e.keys):"after"===e.target.dropPosition&&b.moveAfter(e.target.key,e.keys)}),[b]),x=(0,o.useCallback)(((e,{rowProps:t,gridCellProps:n,isDisabled:o,...a},l)=>(0,s.jsxs)(K,{ref:l,rowProps:t,gridCellProps:n,isDisabled:o,...a,children:[(0,s.jsxs)(r.Box,{display:"flex",flexDirection:"row",gap:"xl",paddingLeft:"md",justifyContent:"space-between",alignItems:"center",width:"full",className:B,children:[(0,s.jsxs)(r.Box,{display:"flex",flexDirection:"row",alignItems:"center",gap:"md",width:"full",children:[i?(0,s.jsx)(H,{dragHandleProps:a.dragHandleProps}):null,(0,s.jsx)(r.Text,{type:"label",size:"sm",className:"gwvimf1",children:e.value?.label})]}),(0,s.jsx)(r.ActionIconButton,{icon:f.QG,"aria-label":u(L.delete),variant:"secondary",size:"sm",onPress:()=>{b.remove(e.key)}})]}),(0,s.jsx)(r.Separator,{variant:"primary"})]})),[i,u,b]);return(0,s.jsxs)(r.Box,{paddingY:"sm",children:[(0,s.jsx)(r.GridList,{"aria-label":u(L.options),items:b.items,enableReorder:i,renderGridItem:x,onReorder:w,selectionMode:"none",...c}),(0,s.jsxs)(r.Box,{display:"flex",flexDirection:"row",gap:"xl",paddingLeft:"md",justifyContent:"space-between",alignItems:"center",width:"full",className:B,children:[(0,s.jsxs)(r.Box,{display:"flex",flexDirection:"row",alignItems:"center",gap:"md",width:"full",children:[i?(0,s.jsx)(h.dp,{size:12,style:{opacity:.5},className:(0,g.UV)({color:"icon.primary"})}):null,(0,s.jsx)(r.TextInput,{variant:"ghost",inputStyle:{paddingInlineStart:0},placeholder:n??u(L.enterDescriptionHere),"aria-labelledby":u(L.enterDescriptionHere),value:d,type:"text",onChange:e=>{e.trim()&&y(!1),p(e)},validationState:v?"error":"valid",errorMessage:v?a??u(L.emptyInput):""})]}),(0,s.jsx)(r.ActionIconButton,{icon:f.c1,variant:"secondary",size:"sm","aria-label":l??u(L.addOption),onPress:()=>{d.trim()?(b.insert(b.items.length,{id:`${b.items.length}-${d}`,label:d}),p(""),y(!1)):y(!0)}})]}),(0,s.jsx)(r.Separator,{})]})};V.displayName="DynamicGridList";var K=o.forwardRef((({rowProps:e,gridCellProps:t,children:n,isDisabled:r},o)=>{let{focusProps:i,isFocusVisible:l}=(0,a.og)();return(0,s.jsx)("li",{...(0,a.v6)(e,i),ref:o,style:{listStyleType:"none",outline:l?`2px solid ${g.G6.color.focused.default}`:"none",opacity:r?.5:1,borderRadius:2},children:(0,s.jsx)("div",{role:"gridcell",...t,children:n})})}));K.displayName="GridListContainer";var H=({dragHandleProps:e})=>{(0,i.V1)(e);let{dragProps:t,dragButtonProps:n}=e,r=o.useRef(null),{buttonProps:l}=(0,a.sL)({...n,elementType:"div"},r);return(0,s.jsx)("div",{...(0,a.v6)(t,l),className:(0,g.UV)({color:"icon.primary",cursor:"pointer"}),ref:r,style:{cursor:"grab"},children:(0,s.jsx)(h.dp,{size:12})})}},71011:(e,t,n)=>{"use strict";n.d(t,{W:()=>d,e:()=>u});var r=n(40027),o=n(96540),i=n(5338),a=n(74848);function s(e){(0,r.V1)(!e||e.filter(Boolean).every((e=>e instanceof u||"string"==typeof e||"number"==typeof e||"function"==typeof e||o.isValidElement(e))),"The children must be an array of Block instances, React elements, strings, function or numbers.")}var l="data-block-id",c="data-block-class",u=class e{id;className;_container;_component;_props;_children=[];parent;constructor(e,t,n={}){n?.container?this._container=n.container:(this._container=(n.ownerDocument||document).createElement("div"),this._container.style.display="contents");const{children:r,...o}=t;this._component=e,this._props=o,this.id=t[l]||`__@Block@__${crypto.getRandomValues(new Uint32Array(1))[0].toString(16)}`,this.className=t[c],this.children=r?.flat()||[]}_setParent(e){this.parent=e}get props(){return this._props}set props(e){if(e.children)throw new Error("Do not pass children in the props. Use the `children` setter instead.");this._props=e,this.id=this._props[l]||this.id,this.className=this._props[c]}toReactElement(t){const n=this._component,o=this._children.map(((t,n)=>t instanceof e?t.toReactElement(n):t))??[];o.some((e=>"function"==typeof e))&&(0,r.V1)(1===o.length,"The children must be a single function.");const{children:i,key:s,...l}=this._props,c=!o.length,u=1===o.length?o[0]:o,d=s||t;return c?(0,a.jsx)(n,{...l},d):(0,a.jsx)(n,{...l,children:u},d)}createComponent(){return console.warn("`createComponent` is deprecated. Use `toReactElement` instead."),this.toReactElement()}get children(){return this._children}set children(t){const n=Array.isArray(t)?t:[t],r=n.flat();s(r);for(const t of r)t instanceof e&&t._setParent(this);this._children=n}prependChildren(...e){const t=e.flat();return s(t),this._children=[...t,...this._children],this}appendChildren(...e){const t=e.flat();return s(t),this._children=[...this._children,...t],this}insertBefore(t,...n){const o="string"==typeof t?t:t.id;(0,r.V1)(o,"The block must have an id.");const i=this.getBlockById(o);if(i instanceof e){const t=i.parent;if(t){const r=t.children.findIndex((t=>t instanceof e&&t.id&&t.id===o));t.children.splice(r,0,...n)}}return this}insertAfter(t,...n){const o="string"==typeof t?t:t.id;(0,r.V1)(o,"The block must have an id.");const i=this.getBlockById(o);if(i instanceof e){const t=i.parent;if(t){const r=t.children.findIndex((t=>t instanceof e&&t.id&&t.id===o));t.children.splice(r+1,0,...n)}}return this}replace(t,...n){const o="string"==typeof t?t:t.id;(0,r.V1)(o,"The block must have an id.");const i=this.getBlockById(o);if(i instanceof e){const t=i.parent;if(t){const r=t.children.findIndex((t=>t instanceof e&&t.id&&t.id===o));t.children.splice(r,1,...n)}}return this}getBlockById(t){const n=this._getChild(t);if(n instanceof e)return n;for(const n of this._children)if(n instanceof e){const e=n.getBlockById(t);if(e)return e}}getBlocksByClass(t){const n=[];this.className===t&&n.push(this);for(const r of this._children)if(r instanceof e){const e=r.getBlocksByClass(t);e&&n.push(...e)}return n}getBlocksByComponent(t){const n=[];this._component===t&&n.push(this);for(const r of this._children)if(r instanceof e){const e=r.getBlocksByComponent(t);e&&n.push(...e)}return n}_getChild(t){return t instanceof e?this._children.find((n=>n instanceof e&&n===t)):this._children.find((n=>n instanceof e&&n.id===t))}_removeChild(t){const n=this._children.findIndex((n=>n instanceof e&&n.id===t));-1!==n&&this._children.splice(n,1)}querySelector(e){if(e.startsWith(".")){const t=this.getBlocksByClass(e.slice(1));return t.length?t[0]:null}if(e.startsWith("#")){return this.getBlockById(e.slice(1))??null}throw new Error(`Invalid selector: ${e}. Selectors must start with "." or "#".`)}querySelectorAll(e){if(e.startsWith("."))return this.getBlocksByClass(e.slice(1));if(e.startsWith("#"))return[this.getBlockById(e.slice(1))];throw new Error(`Invalid selector: ${e}. Selectors must start with "." or "#".`)}removeChildById(t){this._removeChild(t);for(const n of this.children)n instanceof e&&n.removeChildById(t)}toDomNode(e){const t=this.toReactElement();return("undefined"==typeof window?i.hydrateRoot(e||this._container,t):i.createRoot(e||this._container)).render(t),e||this._container}createDOMNode(e){return console.warn("`createDOMNode` is deprecated. Use `toDomNode` instead."),this.toDomNode(e)}mergeProps(e){return this._props={...this._props,...e},this.id=this._props[l]||this.id,this.className=this._props[c],this}setProp(e,t){return this._props={...this._props,[e]:t},this.id=this._props[l]||this.id,this.className=this._props[c],this}toJS(){const t="string"==typeof this._component?this._component:this._component.displayName;return{id:this.id,group:this.className,component:t,props:this._props,children:this.children.map((t=>t instanceof e?t.toJS():{value:t}))}}};function d(e,t={},...n){return new u(e,{...t,children:n})}},3984:(e,t,n)=>{"use strict";n.d(t,{W:()=>r.W,e:()=>r.e});var r=n(71011)},20329:(e,t,n)=>{"use strict";n.d(t,{FK:()=>s,Y:()=>i,FD:()=>a});var r=n(71011),o=n(96540);function i(e,t,n){const{children:o,...i}=t;return o?(0,r.W)(e,{...i,key:n},...Array.isArray(o)?o:[o]):(0,r.W)(e,{...i,key:n})}var a=i,s=o.Fragment},84387:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Accordion:()=>wj,AccordionItem:()=>Sj,ActionButton:()=>YI,ActionGroup:()=>hV,ActionGroupItem:()=>fV,ActionIconButton:()=>eN,AlertDialog:()=>zL,AudioPlayer:()=>OL,Avatar:()=>Tj,Box:()=>vI,ButtonSelect:()=>YL,Checkbox:()=>QR,ColorInput:()=>VF,ColorSwatch:()=>yF,ColorSwatchPicker:()=>mV,ComboBox:()=>iV,DateFormat:()=>sj,Dialog:()=>nR,DialogTitle:()=>rR,DomNodeRenderer:()=>XI,Drawer:()=>lN,Editor:()=>SL,FileUpload:()=>TR,Focusable:()=>JM,FrameProvider:()=>BM,FreehandCanvas:()=>QF,GlobalToastRegion:()=>AV,GridList:()=>dV,Group:()=>yB,I18nProvider:()=>AM,IconColorInput:()=>HF,IconColorInputButton:()=>FF,IconSelect:()=>Pj,IconSlider:()=>lR,ImageDropZone:()=>sB,ImageGallery:()=>GL,InlineAlert:()=>Xj,Link:()=>ER,ListBox:()=>TI,Magnifier:()=>MV,MagnifierContent:()=>jV,MagnifierDisplay:()=>FV,Markdown:()=>TL,Menu:()=>_R,MessageFormat:()=>vB,Modal:()=>hN,ModalClose:()=>eF,ModalContent:()=>QO,ModalTrigger:()=>Qj,MotionGlobalConfig:()=>S.W9,NumberFormat:()=>jR,NumberInput:()=>nN,Pagination:()=>aj,Panel:()=>SV,PanelGroup:()=>_V,PanelResizeHandle:()=>CV,Popover:()=>OI,PopoverContent:()=>sR,PopoverTrigger:()=>KI,Portal:()=>YM,PortalContainerProvider:()=>gM,Preview:()=>uB,ProgressBar:()=>NR,ProgressSpinner:()=>UR,RadioGroup:()=>gB,Reaction:()=>VR,ScrollControlButton:()=>CL,SearchInput:()=>gR,Select:()=>zj,Separator:()=>mI,Slider:()=>rN,Switch:()=>hR,TabItem:()=>Vj,Tabs:()=>Lj,TagGroup:()=>hj,Text:()=>aN,TextInput:()=>RR,ThemeProvider:()=>qM,ToastQueue:()=>oT,ToggleButton:()=>ZR,ToggleIconButton:()=>OB,Toolbar:()=>PB,Tooltip:()=>XM,Transform:()=>iB,TreeView:()=>xV,defineMessages:()=>TM,disableAnimations:()=>GM,enableAnimations:()=>ZM,isInsideOverlayContent:()=>BI,isRect:()=>LI,useCollator:()=>h.QM,useDateFormatter:()=>h.iF,useDevice:()=>OM,useI18n:()=>DM,useImage:()=>xM,useIntersectionObserver:()=>bM,useIsFirstRender:()=>SM,useLocalStorage:()=>MM,useMutationObserver:()=>IM,useNumberFormatter:()=>h.JY,usePortalContainer:()=>LM,useResizeObserver:()=>wM,useTextSelection:()=>NM,useUndoRedo:()=>zM,useUserPreferences:()=>HM});var r={};n.r(r),n.d(r,{decode:()=>IC,encode:()=>OC,format:()=>RC,parse:()=>ZC});var o={};n.r(o),n.d(o,{Any:()=>YC,Cc:()=>XC,Cf:()=>JC,P:()=>QC,S:()=>eE,Z:()=>tE});var i={};n.r(i),n.d(i,{arrayReplaceAt:()=>CE,assign:()=>_E,escapeHtml:()=>RE,escapeRE:()=>FE,fromCodePoint:()=>kE,has:()=>SE,isMdAsciiPunct:()=>KE,isPunctChar:()=>VE,isSpace:()=>BE,isString:()=>wE,isValidEntityCode:()=>EE,isWhiteSpace:()=>LE,lib:()=>$E,normalizeReference:()=>HE,unescapeAll:()=>TE,unescapeMd:()=>DE});var a={};n.r(a),n.d(a,{parseLinkDestination:()=>WE,parseLinkLabel:()=>UE,parseLinkTitle:()=>qE});var s=n(40027),l=n(96540),c=n.t(l,2);function u(e,t,n){let[r,o]=(0,l.useState)(e||t),i=(0,l.useRef)(void 0!==e),a=void 0!==e;(0,l.useEffect)((()=>{let e=i.current;e!==a&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),i.current=a}),[a]);let s=a?e:r,c=(0,l.useCallback)(((e,...t)=>{let r=(e,...t)=>{n&&(Object.is(s,e)||n(e,...t)),a||(s=e)};if("function"==typeof e){console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o(((n,...o)=>{let i=e(a?s:n,...o);return r(i,...t),a?n:i}))}else a||o(e),r(e,...t)}),[a,s,n]);return[s,c]}function d(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}var p,h=n(65221),f=n(48074),m=n(74848),g=n(35295),v=n(20576),y=n(8521),b=n(68267),w=n(55026),x=n(74373),S=n(15772),_=n(14484),C=n(62193),E=n.n(C),k=n(52971),z=n(40961),P=n(54910),A=n(37555);function D(e,t,n){let[r,o]=(0,l.useState)(e||t),i=(0,l.useRef)(void 0!==e),a=void 0!==e;(0,l.useEffect)((()=>{let e=i.current;e!==a&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),i.current=a}),[a]);let s=a?e:r,c=(0,l.useCallback)(((e,...t)=>{let r=(e,...t)=>{n&&(Object.is(s,e)||n(e,...t)),a||(s=e)};if("function"==typeof e){console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o(((n,...o)=>{let i=e(a?s:n,...o);return r(i,...t),a?n:i}))}else a||o(e),r(e,...t)}),[a,s,n]);return[s,c]}function T(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function I(e,t){let n=e,r=t.toString(),o=r.indexOf("."),i=o>=0?r.length-o:0;if(i>0){let e=Math.pow(10,i);n=Math.round(n*e)/e}return n}function M(e,t,n,r){t=Number(t),n=Number(n);let o=(e-(isNaN(t)?0:t))%r,i=I(2*Math.abs(o)>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o,r);return isNaN(t)?!isNaN(n)&&i>n&&(i=Math.floor(I(n/r,r))*r):i<t?i=t:!isNaN(n)&&i>n&&(i=t+Math.floor(I((n-t)/r,r))*r),i=I(i,r),i}function N(e,t,n=10){const r=Math.pow(n,t);return Math.round(e*r)/r}p={"ar-AE":{alpha:"ألفا",black:"أسود",blue:"أزرق","blue purple":"أرجواني مزرق",brightness:"السطوع",brown:"بني","brown yellow":"أصفر بني",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"سماوي","cyan blue":"أزرق سماوي",dark:"داكن",gray:"رمادي",grayish:"مائل للرمادي",green:"أخضر","green cyan":"سماوي مخضر",hue:"درجة اللون",light:"فاتح",lightness:"الإضاءة",magenta:"أرجواني","magenta pink":"أرجواني وردي",orange:"برتقالي","orange yellow":"أصفر برتقالي",pale:"باهت",pink:"وردي","pink red":"أحمر وردي",purple:"أرجواني","purple magenta":"بنفسجي",red:"أحمر","red orange":"برتقالي محمر",saturation:"التشبع",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} شفاف`,"very dark":"داكن جدًا","very light":"فاتح جدًا",vibrant:"ساطع",white:"أبيض",yellow:"أصفر","yellow green":"أخضر مصفر"},"bg-BG":{alpha:"Алфа",black:"черно",blue:"Синьо","blue purple":"синьо лилаво",brightness:"Яркост",brown:"кафяво","brown yellow":"кафяво жълто",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"циан","cyan blue":"циан синьо",dark:"тъмно",gray:"сиво",grayish:"сивкав",green:"Зелено","green cyan":"зелен циан",hue:"Оттенък",light:"светло",lightness:"Лекота",magenta:"магента","magenta pink":"магента розово",orange:"оранжево","orange yellow":"оранжево жълто",pale:"бледо",pink:"розово","pink red":"розово червено",purple:"лилаво","purple magenta":"лилаво магента",red:"Червено","red orange":"червен портокал",saturation:"Наситеност",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} прозрачен`,"very dark":"много тъмно","very light":"много светло",vibrant:" ярко",white:"бяло",yellow:"жълто","yellow green":"жълто зелен"},"cs-CZ":{alpha:"Alfa",black:"černá",blue:"Modrá","blue purple":"modrofialová",brightness:"Jas",brown:"hnědá","brown yellow":"hnědožlutá",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"tyrkysová","cyan blue":"tyrkysovomodrá",dark:"tmavá",gray:"šedá",grayish:"našedlá",green:"Zelená","green cyan":"zelenotyrkysová",hue:"Odstín",light:"světlá",lightness:"Světlost",magenta:"purpurová","magenta pink":"purpurově růžová",orange:"oranžová","orange yellow":"oranžovožlutá",pale:"bledá",pink:"růžová","pink red":"růžovočervená",purple:"fialová","purple magenta":"fialově purpurová",red:"Červená","red orange":"červenooranžová",saturation:"Sytost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} průhledné`,"very dark":"velmi tmavá","very light":"velmi světlá",vibrant:"zářivá",white:"bílá",yellow:"žlutá","yellow green":"žlutozelená"},"da-DK":{alpha:"Alfa",black:"sort",blue:"Blå","blue purple":"blålilla",brightness:"Lysstyrke",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyan blå",dark:"mørk",gray:"grå",grayish:"grålig",green:"Grøn","green cyan":"grøn cyan",hue:"Tone",light:"lys",lightness:"Lyshed",magenta:"magenta","magenta pink":"magenta pink",orange:"orange","orange yellow":"orangegul",pale:"bleg",pink:"lyserød","pink red":"lyserødlig rød",purple:"lilla","purple magenta":"lilla magenta",red:"Rød","red orange":"rødorange",saturation:"Farvemætning",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} gennemsigtig`,"very dark":"meget mørk","very light":"meget lys",vibrant:"klar",white:"hvid",yellow:"gul","yellow green":"gulgrøn"},"de-DE":{alpha:"Alpha",black:"Schwarz",blue:"Blau","blue purple":"Blaulila",brightness:"Helligkeit",brown:"Braun","brown yellow":"Braungelb",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"Cyan","cyan blue":"Cyanblau",dark:"dunkles",gray:"Grau",grayish:"gräuliches",green:"Grün","green cyan":"Grüncyan",hue:"Farbton",light:"helles",lightness:"Leuchtkraft",magenta:"Magenta","magenta pink":"Magentarosa",orange:"Orange","orange yellow":"Orangegelb",pale:"blasses",pink:"Rosa","pink red":"Rosarot",purple:"Lila","purple magenta":"Lilamagenta",red:"Rot","red orange":"Rotorange",saturation:"Sättigung",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, zu ${e.percentTransparent} transparent`,"very dark":"sehr dunkles","very light":"sehr helles",vibrant:"lebhaftes",white:"Weiß",yellow:"Gelb","yellow green":"Gelbgrün"},"el-GR":{alpha:"Άλφα",black:"μαύρο",blue:"Μπλε","blue purple":"μπλε μωβ",brightness:"Φωτεινότητα",brown:"καφέ","brown yellow":"καφέ κίτρινο",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"κυανό","cyan blue":"κυανό μπλε",dark:"σκούρο",gray:"γκρι",grayish:"γκριζωπό",green:"Πράσινο","green cyan":"πράσινο κυανό",hue:"Τόνος",light:"ανοιχτό",lightness:"Φωτεινότητα",magenta:"ματζέντα","magenta pink":"ματζέντα ροζ",orange:"πορτοκαλί","orange yellow":"πορτοκαλί κίτρινο",pale:"ανοιχτό",pink:"ροζ","pink red":"ροζ κόκκινο",purple:"μωβ","purple magenta":"μωβ ματζέντα",red:"Κόκκινο","red orange":"κόκκινο πορτοκαλί",saturation:"Κορεσμός",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} διαφανές`,"very dark":"πολύ σκούρο","very light":"πολύ ανοιχτό",vibrant:"έντονο",white:"λευκό",yellow:"κίτρινο","yellow green":"κίτρινο πράσινο"},"en-US":{hue:"Hue",saturation:"Saturation",lightness:"Lightness",brightness:"Brightness",red:"Red",green:"Green",blue:"Blue",alpha:"Alpha",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"very dark",dark:"dark",light:"light","very light":"very light",pale:"pale",grayish:"grayish",vibrant:"vibrant",black:"black",white:"white",gray:"gray",pink:"pink","pink red":"pink red","red orange":"red orange",brown:"brown",orange:"orange","orange yellow":"orange yellow","brown yellow":"brown yellow",yellow:"yellow","yellow green":"yellow green","green cyan":"green cyan",cyan:"cyan","cyan blue":"cyan blue","blue purple":"blue purple",purple:"purple","purple magenta":"purple magenta",magenta:"magenta","magenta pink":"magenta pink"},"es-ES":{alpha:"Alpha",black:"negro",blue:"Azul","blue purple":"púrpura azulado",brightness:"Brillo",brown:"marrón","brown yellow":"amarillo amarronado",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cian","cyan blue":"azul cian",dark:"oscuro",gray:"gris",grayish:"grisáceo",green:"Verde","green cyan":"cian verdoso",hue:"Tono",light:"claro",lightness:"Luminosidad",magenta:"magenta","magenta pink":"rosa magenta",orange:"naranja","orange yellow":"amarillo anaranjado",pale:"pálido",pink:"rosa","pink red":"rojo rosado",purple:"morado","purple magenta":"magenta violáceo",red:"Rojo","red orange":"naranja rojizo",saturation:"Saturación",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":"muy oscuro","very light":"muy claro",vibrant:"intenso",white:"blanco",yellow:"amarillo","yellow green":"verde amarillento"},"et-EE":{alpha:"Alfa",black:"must",blue:"Sinine","blue purple":"sinakaslilla",brightness:"Heledus",brown:"pruun","brown yellow":"pruunikaskollane",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"tsüaan","cyan blue":"tsüaansinine",dark:"tume",gray:"hall",grayish:"hallikas",green:"Roheline","green cyan":"tsüaanroheline",hue:"Värv",light:"valgus",lightness:"Valgus",magenta:"magentapunane","magenta pink":"magentaroosa",orange:"oranž","orange yellow":"oranžikaskollane",pale:"kahvatu",pink:"roosa","pink red":"vaarikapunane",purple:"lilla","purple magenta":"purpurne magenta",red:"Punane","red orange":"punakasoranž",saturation:"Küllastus",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} läbipaistev`,"very dark":"väga tume","very light":"väga hele",vibrant:"ere",white:"valge",yellow:"kollane","yellow green":"kollakasroheline"},"fi-FI":{alpha:"Alpha",black:"musta",blue:"Sininen","blue purple":"sinivioletti",brightness:"Kirkkaus",brown:"ruskea","brown yellow":"ruskeankeltainen",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"syaani","cyan blue":"syaaninsininen",dark:"tumma",gray:"harmaa",grayish:"harmahtava",green:"Vihreä","green cyan":"vihreänsyaani",hue:"Sävy",light:"vaalea",lightness:"Valomäärä",magenta:"magenta","magenta pink":"magentapinkki",orange:"oranssi","orange yellow":"oranssinkeltainen",pale:"vaalea",pink:"pinkki","pink red":"vaaleanpunainen",purple:"violetti","purple magenta":"violettimagenta",red:"Punainen","red orange":"punaoranssi",saturation:"Värikylläisyys",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} läpinäkyvä`,"very dark":"hyvin tumma","very light":"erittäin vaalea",vibrant:"eloisa",white:"valkea",yellow:"keltainen","yellow green":"keltavihreä"},"fr-FR":{alpha:"Alpha",black:"Noir",blue:"Bleu","blue purple":"Violet bleu",brightness:"Luminosité",brown:"Brun","brown yellow":"Jaune brun",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"Cyan","cyan blue":"Bleu cyan",dark:"Sombre",gray:"Gris",grayish:"Grisâtre",green:"Vert","green cyan":"Cyan vert",hue:"Teinte",light:"Clair",lightness:"Luminosité",magenta:"Magenta","magenta pink":"Rose magenta",orange:"Orange","orange yellow":"Jaune orangé",pale:"Pâle",pink:"Rose","pink red":"Rouge rosé",purple:"Violet","purple magenta":"Magenta violet",red:"Rouge","red orange":"Orange rouge",saturation:"Saturation",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"Très sombre","very light":"Très clair",vibrant:"Vif",white:"Blanc",yellow:"Jaune","yellow green":"Vert jaune"},"he-IL":{alpha:"אלפא",black:"שחור",blue:"כחול","blue purple":"כחול סגול",brightness:"בהירות",brown:"חום","brown yellow":"חום צהוב",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"טורקיז","cyan blue":"כחול ציאן",dark:"כהה",gray:"אפור",grayish:"אפרפר",green:"ירוק","green cyan":"ציאן ירוק",hue:"גוון",light:"אור",lightness:"כמות אור",magenta:"מג'נטה","magenta pink":"ורוד מג'נטה",orange:"כתום","orange yellow":"כתום צהוב",pale:"חיוור",pink:"ורוד","pink red":"ורוד אדום",purple:"סגול","purple magenta":"מג'נטה סגול",red:"אדום","red orange":"כתום אדום",saturation:"רוויה",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} שקוף`,"very dark":"כהה מאוד","very light":"בהיר מאוד",vibrant:"תוסס",white:"לבן",yellow:"צהוב","yellow green":"צהוב ירוק"},"hr-HR":{alpha:"Alfa",black:"crno",blue:"Plava","blue purple":"plavo ljubičasta",brightness:"Svjetlina",brown:"smeđa","brown yellow":"smeđe žuta",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cijan","cyan blue":"cijan plava",dark:"tamno",gray:"siva",grayish:"sivkasto",green:"Zelena","green cyan":"zelena cijan",hue:"Nijansa",light:"svjetlo",lightness:"Osvijetljenost",magenta:"magenta","magenta pink":"magentno ružičasta",orange:"narančasta","orange yellow":"narančasto žuta",pale:"blijeda",pink:"ružičasta","pink red":"ružičasto crvena",purple:"ljubičasta","purple magenta":"ljubičasta magenta",red:"Crvena","red orange":"crveno narančasta",saturation:"Zasićenost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozirnosti`,"very dark":"jako tamna","very light":"vrlo svijetlo",vibrant:"vibrantna",white:"bijela",yellow:"žuto","yellow green":"žuto zelena"},"hu-HU":{alpha:"Alfa",black:"fekete",blue:"Kék","blue purple":"kék lila",brightness:"Fényesség",brown:"barna","brown yellow":"barna sárga",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciánkék","cyan blue":"ciánkék",dark:"sötét",gray:"szürke",grayish:"szürkés",green:"Zöld","green cyan":"zöld ciánkék",hue:"Színárnyalat",light:"világos",lightness:"Világosság",magenta:"bíbor","magenta pink":"bíbor rózsaszín",orange:"narancs","orange yellow":"narancssárga",pale:"halvány",pink:"rózsaszín","pink red":"rózsaszín piros",purple:"lila","purple magenta":"lila bíbor",red:"Piros","red orange":"piros narancs",saturation:"Telítettség",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} átlátszó`,"very dark":"nagyon sötét","very light":"nagyon világos",vibrant:"élénk",white:"fehér",yellow:"sárga","yellow green":"sárga zöld"},"it-IT":{alpha:"Alfa",black:"nero",blue:"Blu","blue purple":"blu viola",brightness:"Luminosità",brown:"marrone","brown yellow":"giallo bruno",colorName:e=>`${e.hue} ${e.chroma} ${e.lightness}`,cyan:"ciano","cyan blue":"blu ciano",dark:"scuro",gray:"grigio",grayish:"grigiastro",green:"Verde","green cyan":"verde ciano",hue:"Tonalità",light:"chiaro",lightness:"Luminosità",magenta:"magenta","magenta pink":"rosa magenta",orange:"arancio","orange yellow":"giallo arancio",pale:"tenue",pink:"rosa","pink red":"rosa rosso",purple:"viola","purple magenta":"viola magenta",red:"Rosso","red orange":"rosso arancio",saturation:"Saturazione",transparentColorName:e=>`${e.hue} ${e.chroma} ${e.lightness}, trasparenza ${e.percentTransparent}`,"very dark":"molto scuro","very light":"molto chiaro",vibrant:"vivace",white:"bianco",yellow:"giallo","yellow green":"giallo verde"},"ja-JP":{alpha:"アルファ",black:"ブラック",blue:"青","blue purple":"ブルーパープル",brightness:"明るさ",brown:"ブラウン","brown yellow":"ブラウンイエロー",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"シアン","cyan blue":"シアンブルー",dark:"ダーク",gray:"グレー",grayish:"グレイッシュ",green:"緑","green cyan":"グリーンシアン",hue:"色相",light:"ライト",lightness:"明度",magenta:"マゼンタ","magenta pink":"マゼンタピンク",orange:"オレンジ","orange yellow":"オレンジイエロー",pale:"ペール",pink:"ピンク","pink red":"ピンクレッド",purple:"パープル","purple magenta":"パープルマゼンタ",red:"赤","red orange":"レッドオレンジ",saturation:"彩度",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} 透明`,"very dark":"最も暗い","very light":"ベリーライト",vibrant:"鮮やか",white:"ホワイト",yellow:"イエロー","yellow green":"イエローグリーン"},"ko-KR":{alpha:"알파",black:"검은색",blue:"파랑","blue purple":"청자색",brightness:"명도",brown:"갈색","brown yellow":"황갈색",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"청록색","cyan blue":"청록색",dark:"다크",gray:"회색",grayish:"회갈색",green:"초록","green cyan":"청록색",hue:"색조",light:"라이트",lightness:"밝기",magenta:"자홍색","magenta pink":"마젠타 핑크",orange:"주황색","orange yellow":"불그스름한 노랑",pale:"흙색",pink:"분홍색","pink red":"핑크 레드",purple:"자주색","purple magenta":"보라빛 자홍색",red:"빨강","red orange":"붉은 주황색",saturation:"채도",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} 투명도`,"very dark":"매우 어두운","very light":"매우 연함",vibrant:"강렬한",white:"흰색",yellow:"노란색","yellow green":"연두색"},"lt-LT":{alpha:"Alfa",black:"juoda",blue:"Mėlyna","blue purple":"melsvai violetinė",brightness:"Ryškumas",brown:"ruda","brown yellow":"rusvai geltona",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"žalsvai mėlyna","cyan blue":"žalsvai mėlyna",dark:"tamsi",gray:"pilka",grayish:"pilkšva",green:"Žalia","green cyan":"žalsvai mėlyna",hue:"Atspalvis",light:"šviesi",lightness:"Šviesumas",magenta:"rausvai raudona","magenta pink":"purpurinė",orange:"oranžinė","orange yellow":"oranžinio atspalvio geltona",pale:"blyški",pink:"rožinė","pink red":"rožinė raudona",purple:"violetinė","purple magenta":"purpurinė rausvai raudona",red:"Raudona","red orange":"rausvai oranžinė",saturation:"Įsotinimas",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} skaidri`,"very dark":"labai tamsi","very light":"labai šviesi",vibrant:"ryški",white:"balta",yellow:"geltona","yellow green":"gelsvai žalia"},"lv-LV":{alpha:"Alfa",black:"melns",blue:"Zila","blue purple":"zili violets",brightness:"Spilgtums",brown:"brūns","brown yellow":"brūni dzeltens",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciāns","cyan blue":"ciāna zils",dark:"tumšs",gray:"pelēks",grayish:"pelēcīgs",green:"Zaļa","green cyan":"zaļš ciāns",hue:"Nokrāsa",light:"gaišs",lightness:"Gaišums",magenta:"fuksiju","magenta pink":"fuksiju rozā",orange:"oranžs","orange yellow":"oranži dzeltens",pale:"bāls",pink:"rozā","pink red":"rozīgi sarkans",purple:"violets","purple magenta":"violets fuksiju",red:"Sarkana","red orange":"sarkanīgi oranžs",saturation:"Piesātinājums",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} caurspīdīgs`,"very dark":"ļoti tumšs","very light":"ļoti gaišs",vibrant:"košs",white:"balts",yellow:"dzeltens","yellow green":"dzelteni zaļš"},"nb-NO":{alpha:"Alfa",black:"svart",blue:"Blå","blue purple":"blålilla",brightness:"Lysstyrke",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyanblå",dark:"mørk",gray:"grå",grayish:"gråaktig",green:"Grønn","green cyan":"grønncyan",hue:"Fargetone",light:"lys",lightness:"Lyshet",magenta:"magenta","magenta pink":"magentarosa",orange:"oransje","orange yellow":"oransjegul",pale:"blek",pink:"rosa","pink red":"rosarød",purple:"lilla","purple magenta":"lillamagenta",red:"Rød","red orange":"rødoransje",saturation:"Metning",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} gjennomsiktig`,"very dark":"svært mørk","very light":"svært lys",vibrant:"levende",white:"hvit",yellow:"gul","yellow green":"gulgrønn"},"nl-NL":{alpha:"Alfa",black:"zwart",blue:"Blauw","blue purple":"paarsblauw",brightness:"Helderheid",brown:"bruin","brown yellow":"bruingeel",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyaan","cyan blue":"cyaanblauw",dark:"donker",gray:"grijs",grayish:"grijsachtig",green:"Groen","green cyan":"cyaangroen",hue:"Kleurtoon",light:"licht",lightness:"Lichtsterkte",magenta:"magenta","magenta pink":"magentaroze",orange:"oranje","orange yellow":"oranjegeel",pale:"bleek",pink:"roze","pink red":"rozerood",purple:"paars","purple magenta":"magentapaars",red:"Rood","red orange":"roodoranje",saturation:"Verzadiging",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparant`,"very dark":"heel donker","very light":"heel licht",vibrant:"levendig",white:"wit",yellow:"geel","yellow green":"geelgroen"},"pl-PL":{alpha:"Alfa",black:"czarny",blue:"Niebieski","blue purple":"niebiesko-fioletowy",brightness:"Jasność",brown:"brązowy","brown yellow":"brązowo-żółty",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyjanowy","cyan blue":"cyjanowo-niebieski",dark:"ciemny",gray:"szary",grayish:"szarawy",green:"Zielony","green cyan":"zielono-cyjanowy",hue:"Odcień",light:"jasny",lightness:"Jaskrawość",magenta:"purpurowy","magenta pink":"purpurowo-różowy",orange:"pomarańczowy","orange yellow":"pomarańczowo-żółty",pale:"blady",pink:"różowy","pink red":"różowo-czerwony",purple:"fioletowy","purple magenta":"fioletowo-purpurowy",red:"Czerwony","red orange":"czerwono-pomarańczowy",saturation:"Nasycenie",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} przezroczystości`,"very dark":"bardzo ciemny","very light":"bardzo jasny",vibrant:"intensywny",white:"biały",yellow:"żółty","yellow green":"żółto-zielony"},"pt-BR":{alpha:"Alfa",black:"preto",blue:"Azul","blue purple":"roxo azulado",brightness:"Brilho",brown:"marrom","brown yellow":"marrom amarelado",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciano","cyan blue":"azul-ciano",dark:"escuro",gray:"cinza",grayish:"acinzentado",green:"Verde","green cyan":"verde-ciano",hue:"Matiz",light:"claro",lightness:"Luminosidade",magenta:"magenta","magenta pink":"rosa-magenta",orange:"laranja","orange yellow":"amarelo alaranjado",pale:"pálido",pink:"rosa","pink red":"rosa avermelhado",purple:"roxo","purple magenta":"roxo-magenta",red:"Vermelho","red orange":"laranja avermelhado",saturation:"Saturação",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":"muito escuro","very light":"muito claro",vibrant:"vibrante",white:"branco",yellow:"amarelo","yellow green":"verde amarelado"},"pt-PT":{alpha:"Alfa",black:"preto",blue:"Azul","blue purple":"azul-púrpura",brightness:"Luminosidade",brown:"castanho","brown yellow":"amarelo-castanho",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciano","cyan blue":"azul-ciano",dark:"escuro",gray:"cinzento",grayish:"acinzentado",green:"Verde","green cyan":"verde-ciano",hue:"Tonalidade",light:"claro",lightness:"Claridade",magenta:"magenta","magenta pink":"rosa-magenta",orange:"laranja","orange yellow":"amarelo-laranja",pale:"pálido",pink:"cor-de-rosa","pink red":"vermelho-rosa",purple:"púrpura","purple magenta":"púrpura-magenta",red:"Vermelho","red orange":"laranja-vermelho",saturation:"Saturação",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":"muito escuro","very light":"muito claro",vibrant:"vibrante",white:"branco",yellow:"amarelo","yellow green":"verde-amarelo"},"ro-RO":{alpha:"Alfa",black:"negru",blue:"Albastru","blue purple":"albastru-violet",brightness:"Luminozitate",brown:"maro","brown yellow":"galben maro",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"bleu","cyan blue":"albastru-bleu",dark:"închis",gray:"gri",grayish:"cenușiu",green:"Verde","green cyan":"verde bleu",hue:"Nuanță",light:"deschis",lightness:"Luminozitate",magenta:"fucsia","magenta pink":"roz-fucsia",orange:"portocaliu","orange yellow":"galben-portocaliu",pale:"pal",pink:"roz","pink red":"roz-roșu",purple:"violet","purple magenta":"violet-fucsia",red:"Roșu","red orange":"portocaliu-roșu",saturation:"Saturație",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"foarte închis","very light":"foarte deschis",vibrant:"plin de viață",white:"alb",yellow:"galben","yellow green":"galben-verde"},"ru-RU":{alpha:"Альфа",black:"черный",blue:"Синий","blue purple":"сине-фиолетовый",brightness:"Яркость",brown:"коричневый","brown yellow":"коричнево-желтый",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"голубой","cyan blue":"цвет морской волны",dark:"темный",gray:"серый",grayish:"сероватый",green:"Зеленый","green cyan":"сине-зеленый",hue:"Оттенок",light:"светлый",lightness:"Освещенность",magenta:"пурпурный","magenta pink":"пурпурно-розовый",orange:"оранжевый","orange yellow":"оранжево-желтый",pale:"бледный",pink:"розовый","pink red":"розово-красный",purple:"фиолетовый","purple magenta":"фиолетово-пурпурный",red:"Красный","red orange":"красно-оранжевый",saturation:"Насыщенность",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, прозрачный на ${e.percentTransparent}`,"very dark":"очень темный","very light":"очень светлый",vibrant:"яркий",white:"белый",yellow:"желтый","yellow green":"желто-зеленый"},"sk-SK":{alpha:"Alfa",black:"čierna",blue:"Modrá","blue purple":"modrofialová",brightness:"Jas",brown:"hnedá","brown yellow":"hnedožltá",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"azúrová","cyan blue":"azúrová modrá",dark:"tmavá",gray:"sivá",grayish:"sivastá",green:"Zelená","green cyan":"zelená azúrová",hue:"Odtieň",light:"svetlá",lightness:"Svetlosť",magenta:"purpurová","magenta pink":"ružová purpurová",orange:"oranžová","orange yellow":"oranžovožltá",pale:"bledá",pink:"ružová","pink red":"ružovočervená",purple:"fialová","purple magenta":"fialová purpurová",red:"Červená","red orange":"červenooranžová",saturation:"Sýtosť",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} priehľadná`,"very dark":"veľmi tmavá","very light":"veľmi svetlá",vibrant:"energická",white:"biela",yellow:"žltá","yellow green":"žltozelená"},"sl-SI":{alpha:"Alfa",black:"črna",blue:"Modra","blue purple":"modro vijolična",brightness:"Svetlost",brown:"rjava","brown yellow":"rjavo rumena",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cian","cyan blue":"cian modra",dark:"temna",gray:"siva",grayish:"sivkasta",green:"Zelena","green cyan":"zelena cian",hue:"Barva",light:"svetla",lightness:"Lahkost",magenta:"škrlatna","magenta pink":"škrlatno roza",orange:"oranžna","orange yellow":"oranžno rumena",pale:"bleda",pink:"roza","pink red":"roza rdeča",purple:"vijolična","purple magenta":"vijolično škrlatna",red:"Rdeča","red orange":"rdeče oranžna",saturation:"Nasičenost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozorna`,"very dark":"zelo temna","very light":"zelo svetla",vibrant:"živahna",white:"bela",yellow:"rumena","yellow green":"rumeno zelena"},"sr-SP":{alpha:"Alfa",black:"crno",blue:"Plava","blue purple":"plavoljubičasta",brightness:"Osvetljenost",brown:"smeđa","brown yellow":"smeđežuta",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cijan","cyan blue":"cijan plava",dark:"tamno",gray:"siva",grayish:"sivkasta",green:"Zelena","green cyan":"zeleno cijan",hue:"Nijansa",light:"svetla",lightness:"Osvetljenje",magenta:"purpurnocrvena","magenta pink":"magenta ružičasta",orange:"narandžasta","orange yellow":"narandžastožuta",pale:"bledo",pink:"ružičasta","pink red":"ružičastocrvena",purple:"ljubičasta","purple magenta":"ljubičasta magenta",red:"Crvena","red orange":"crvenonarandžasta",saturation:"Zasićenje",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozirna`,"very dark":"veoma tamno","very light":"vrlo svetlo",vibrant:"živopisna",white:"bela",yellow:"žuto","yellow green":"žutozelena"},"sv-SE":{alpha:"Alfa",black:"svart",blue:"Blått","blue purple":"blålila",brightness:"Ljusstyrka",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyanblå",dark:"mörk",gray:"grå",grayish:"gråaktig",green:"Grönt","green cyan":"grön cyan",hue:"Nyans",light:"ljus",lightness:"Ljushet",magenta:"magenta","magenta pink":"magentarosa",orange:"orange","orange yellow":"orangegul",pale:"blek",pink:"rosa","pink red":"rosaröd",purple:"lila","purple magenta":"lila magenta",red:"Rött","red orange":"rödorange",saturation:"Mättnad",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} genomskinlig`,"very dark":"mycket mörk","very light":"mycket ljus",vibrant:"livfull",white:"vit",yellow:"gul","yellow green":"gulgrön"},"tr-TR":{alpha:"Alfa",black:"siyah",blue:"Mavi","blue purple":"mavi mor",brightness:"Parlaklık",brown:"kahverengi","brown yellow":"kahverengi sarı",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"camgöbeği","cyan blue":"camgöbeği mavi",dark:"koyu",gray:"gri",grayish:"grimsi",green:"Yeşil","green cyan":"yeşil camgöbeği",hue:"Ton",light:"açık",lightness:"Canlılık",magenta:"eflatun","magenta pink":"eflatun pembe",orange:"turuncu","orange yellow":"turuncu sarı",pale:"solgun",pink:"pembe","pink red":"pembe kırmızı",purple:"mor","purple magenta":"mor eflatun",red:"Kırmızı","red orange":"kırmızı portakal",saturation:"Doygunluk",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} saydam`,"very dark":"çok koyu","very light":"çok açık",vibrant:"canlı",white:"beyaz",yellow:"sarı","yellow green":"sarı yeşil"},"uk-UA":{alpha:"Альфа",black:"чорний",blue:"Синій","blue purple":"синьо-фіолетовий",brightness:"Яскравість",brown:"коричневий","brown yellow":"коричнево-жовтий",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"блакитний","cyan blue":"синьо-блакитний",dark:"темний",gray:"сірий",grayish:"сіруватий",green:"Зелений","green cyan":"зелено-блакитний",hue:"Тон",light:"світлий",lightness:"Освітленість",magenta:"пурпуровий","magenta pink":"пурпурово-рожевий",orange:"помаранчевий","orange yellow":"помаранчево-жовтий",pale:"блідий",pink:"рожевий","pink red":"рожево-червоний",purple:"фіолетовий","purple magenta":"фіолетово-пурпуровий",red:"Червоний","red orange":"червоно-помаранчевий",saturation:"Насиченість",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, прозорий на ${e.percentTransparent}`,"very dark":"дуже темний","very light":"дуже світлий",vibrant:"яскравий",white:"білий",yellow:"жовтий","yellow green":"жовто-зелений"},"zh-CN":{alpha:"Alpha",black:"黑色",blue:"蓝色","blue purple":"蓝紫色",brightness:"亮度",brown:"棕色的","brown yellow":"棕黄色",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"蓝绿色","cyan blue":"青蓝色",dark:"深色",gray:"灰色",grayish:"浅灰色的",green:"绿色","green cyan":"绿青色",hue:"色相",light:"浅色",lightness:"明亮度",magenta:"紫红色","magenta pink":"紫粉色",orange:"橙色","orange yellow":"橙黄色",pale:"苍白的",pink:"粉色","pink red":"粉红色",purple:"紫色","purple magenta":"紫洋红色",red:"红色","red orange":"红橙色",saturation:"饱和度",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} 透明`,"very dark":"很暗","very light":"很浅",vibrant:"生机勃勃",white:"白色",yellow:"黄色","yellow green":"黄色/绿色"},"zh-TW":{alpha:"Alpha",black:"黑",blue:"藍色","blue purple":"藍紫",brightness:"亮度",brown:"棕","brown yellow":"棕黃",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"青","cyan blue":"青藍",dark:"暗",gray:"灰",grayish:"偏灰",green:"綠色","green cyan":"青綠",hue:"色相",light:"淺",lightness:"明亮",magenta:"洋紅","magenta pink":"淺洋紅",orange:"橙","orange yellow":"橙黃",pale:"淡",pink:"粉紅","pink red":"粉紅",purple:"紫","purple magenta":"紫洋紅",red:"紅色","red orange":"橙紅",saturation:"飽和度",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} 透明`,"very dark":"很暗","very light":"很淺",vibrant:"鮮豔",white:"白",yellow:"黃","yellow green":"黃綠"}};var O=n(5533),R=n(37515);let j=new(0,O.B)(function(e){return e&&e.__esModule?e.default:e}(p));function F(e){let t=K.parse(e)||$.parse(e)||q.parse(e);if(t)return t;throw new Error("Invalid color value: "+e)}function B(e){return"string"==typeof e?F(e):e}const L=[[0,"pink"],[15,"red"],[48,"orange"],[94,"yellow"],[135,"green"],[175,"cyan"],[264,"blue"],[284,"purple"],[320,"magenta"],[349,"pink"]];class V{toHexInt(){return this.toFormat("rgb").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}withChannelValue(e,t){if(e in this){let n=this.clone();return n[e]=t,n}throw new Error("Unsupported color channel: "+e)}getChannelName(e,t){return(O.B.getGlobalDictionaryForPackage("@react-stately/color")||j).getStringForLocale(e,t)}getColorSpaceAxes(e){let{xChannel:t,yChannel:n}=e,r=t||this.getColorChannels().find((e=>e!==n)),o=n||this.getColorChannels().find((e=>e!==r)),i=this.getColorChannels().find((e=>e!==r&&e!==o));return{xChannel:r,yChannel:o,zChannel:i}}getColorName(e){let t,[n,r,o]=G(this),i=O.B.getGlobalDictionaryForPackage("@react-stately/color")||j;if(n>.999)return i.getStringForLocale("white",e);if(n<.001)return i.getStringForLocale("black",e);[t,n]=this.getOklchHue(n,r,o,e);let a="",s="";r<=.1&&r>=.001?s=n>=.7?"pale":"grayish":r>=.15&&(s="vibrant"),n<.3?a="very dark":n<.55?a="dark":n<.7||(a=n<.85?"light":"very light"),s&&(s=i.getStringForLocale(s,e)),a&&(a=i.getStringForLocale(a,e));let l=this.getChannelValue("alpha"),c=new(0,O.J)(e,i);if(l<1){let n=new(0,R.K)(e,{style:"percent"}).format(1-l);return c.format("transparentColorName",{lightness:a,chroma:s,hue:t,percentTransparent:n}).replace(/\s+/g," ").trim()}return c.format("colorName",{lightness:a,chroma:s,hue:t}).replace(/\s+/g," ").trim()}getOklchHue(e,t,n,r){let o=O.B.getGlobalDictionaryForPackage("@react-stately/color")||j;if(t<.001)return[o.getStringForLocale("gray",r),e];for(let t=0;t<L.length;t++){let[i,a]=L[t],[s,l]=L[t+1]||[360,"pink"];if(n>=i&&n<s){return"orange"===a&&(e<.68?a="brown":e=e-.68+.55),n>i+(s-i)/2&&a!==l?a=`${a} ${l}`:"yellow"===a&&e<.85&&(a="yellow green"),[o.getStringForLocale(a,r).toLocaleLowerCase(r),e]}}throw new Error("Unexpected hue")}getHueName(e){let[t,n,r]=G(this),[o]=this.getOklchHue(t,n,r,e);return o}}class K extends V{static parse(e){let t=[];if(/^#[\da-f]+$/i.test(e)&&[4,5,7,9].includes(e.length)){const n=(e.length<6?e.replace(/[^#]/gi,"$&$&"):e).slice(1).split("");for(;n.length>0;)t.push(parseInt(n.splice(0,2).join(""),16));t[3]=void 0!==t[3]?t[3]/255:void 0}const n=e.match(/^rgba?\((.*)\)$/);var r;return(null==n?void 0:n[1])&&(t=n[1].split(",").map((e=>Number(e.trim()))),t=t.map(((e,t)=>T(e,0,t<3?255:1)))),t.length<3?void 0:new K(t[0],t[1],t[2],null!==(r=t[3])&&void 0!==r?r:1)}toString(e="css"){switch(e){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(255*this.alpha).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hex":case"hexa":case"rgb":case"rgba":return this;case"hsb":case"hsba":return this.toHSB();case"hsl":case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+e)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const e=this.red/255,t=this.green/255,n=this.blue/255,r=Math.min(e,t,n),o=Math.max(e,t,n),i=o-r,a=0===o?0:i/o;let s=0;if(0!==i){switch(o){case e:s=(t-n)/i+(t<n?6:0);break;case t:s=(n-e)/i+2;break;case n:s=(e-t)/i+4}s/=6}return new $(N(360*s,2),N(100*a,2),N(100*o,2),this.alpha)}toHSL(){const e=this.red/255,t=this.green/255,n=this.blue/255,r=Math.min(e,t,n),o=Math.max(e,t,n),i=(o+r)/2,a=o-r;let s,l;if(0===a)s=l=0;else{switch(l=a/(i<.5?o+r:2-o-r),o){case e:s=(t-n)/a+(t<n?6:0);break;case t:s=(n-e)/a+2;break;case n:s=(e-t)/a+4}s/=6}return new q(N(360*s,2),N(100*l,2),N(100*i,2),this.alpha)}clone(){return new K(this.red,this.green,this.blue,this.alpha)}getChannelRange(e){switch(e){case"red":case"green":case"blue":return{minValue:0,maxValue:255,step:1,pageSize:17};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+e)}}getChannelFormatOptions(e){switch(e){case"red":case"green":case"blue":return{style:"decimal"};case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return new(0,R.K)(t,n).format(r)}getColorSpace(){return"rgb"}getColorChannels(){return K.colorChannels}constructor(e,t,n,r){super(),this.red=e,this.green=t,this.blue=n,this.alpha=r}}K.colorChannels=["red","green","blue"];const H=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/;class $ extends V{static parse(e){let t;if(t=e.match(H)){var n;const[e,r,o,i]=(null!==(n=t[1])&&void 0!==n?n:t[2]).split(",").map((e=>Number(e.trim().replace("%",""))));return new $(W(e,360),T(r,0,100),T(o,0,100),T(null!=i?i:1,0,1))}}toString(e="css"){switch(e){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${N(this.saturation,2)}%, ${N(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${N(this.saturation,2)}%, ${N(this.brightness,2)}%, ${this.alpha})`;default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsb":case"hsba":return this;case"hsl":case"hsla":return this.toHSL();case"rgb":case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+e)}}toHSL(){let e=this.saturation/100,t=this.brightness/100,n=t*(1-e/2);return e=0===n||1===n?0:(t-n)/Math.min(n,1-n),new q(N(this.hue,2),N(100*e,2),N(100*n,2),this.alpha)}toRGB(){let e=this.hue,t=this.saturation/100,n=this.brightness/100,r=(r,o=(r+e/60)%6)=>n-t*n*Math.max(Math.min(o,4-o,1),0);return new K(Math.round(255*r(5)),Math.round(255*r(3)),Math.round(255*r(1)),this.alpha)}clone(){return new $(this.hue,this.saturation,this.brightness,this.alpha)}getChannelRange(e){switch(e){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+e)}}getChannelFormatOptions(e){switch(e){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return"saturation"!==e&&"brightness"!==e||(r/=100),new(0,R.K)(t,n).format(r)}getColorSpace(){return"hsb"}getColorChannels(){return $.colorChannels}constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.brightness=n,this.alpha=r}}$.colorChannels=["hue","saturation","brightness"];const U=/hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/;function W(e,t){return(e%t+t)%t}class q extends V{static parse(e){let t;if(t=e.match(U)){var n;const[e,r,o,i]=(null!==(n=t[1])&&void 0!==n?n:t[2]).split(",").map((e=>Number(e.trim().replace("%",""))));return new q(W(e,360),T(r,0,100),T(o,0,100),T(null!=i?i:1,0,1))}}toString(e="css"){switch(e){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${N(this.saturation,2)}%, ${N(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${N(this.saturation,2)}%, ${N(this.lightness,2)}%, ${this.alpha})`;default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsl":case"hsla":return this;case"hsb":case"hsba":return this.toHSB();case"rgb":case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+e)}}toHSB(){let e=this.saturation/100,t=this.lightness/100,n=t+e*Math.min(t,1-t);return e=0===n?0:2*(1-t/n),new $(N(this.hue,2),N(100*e,2),N(100*n,2),this.alpha)}toRGB(){let e=this.hue,t=this.saturation/100,n=this.lightness/100,r=t*Math.min(n,1-n),o=(t,o=(t+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return new K(Math.round(255*o(0)),Math.round(255*o(8)),Math.round(255*o(4)),this.alpha)}clone(){return new q(this.hue,this.saturation,this.lightness,this.alpha)}getChannelRange(e){switch(e){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+e)}}getChannelFormatOptions(e){switch(e){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return"saturation"!==e&&"lightness"!==e||(r/=100),new(0,R.K)(t,n).format(r)}getColorSpace(){return"hsl"}getColorChannels(){return q.colorChannels}constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.lightness=n,this.alpha=r}}function G(e){let t=e.toFormat("rgb"),n=t.getChannelValue("red")/255,r=t.getChannelValue("green")/255,o=t.getChannelValue("blue")/255;[n,r,o]=function(e,t,n){return[Z(e),Z(t),Z(n)]}(n,r,o);let[i,a,s]=function(e,t,n){return Y([506752/1228815,87881/245763,12673/70218,87098/409605,175762/245763,12673/175545,7918/409605,87881/737289,1001167/1053270],e,t,n)}(n,r,o),[l,c,u]=function(e,t,n){const r=[.819022437996703,.3619062600528904,-.1288737815209879,.0329836539323885,.9292868615863434,.0361446663506424,.0481771893596242,.2642395317527308,.6335478284694309],o=[.210454268309314,.7936177747023054,-.0040720430116193,1.9779985324311684,-2.42859224204858,.450593709617411,.0259040424655478,.7827717124575296,-.8086757549230774];let[i,a,s]=Y(r,e,t,n);return Y(o,Math.cbrt(i),Math.cbrt(a),Math.cbrt(s))}(i,a,s);return function(e,t,n){var r=180*Math.atan2(n,t)/Math.PI;return[e,Math.sqrt(t**2+n**2),r>=0?r:r+360]}(l,c,u)}function Z(e){let t=e<0?-1:1,n=Math.abs(e);return n<=.04045?e/12.92:t*Math.pow((n+.055)/1.055,2.4)}function Y(e,t,n,r){return[e[0]*t+e[1]*n+e[2]*r,e[3]*t+e[4]*n+e[5]*r,e[6]*t+e[7]*n+e[8]*r]}q.colorChannels=["hue","saturation","lightness"];const X=F("#ffffff");var J=n(43635);F("hsl(0, 100%, 50%)");function Q(e){return(0,l.useMemo)((()=>{if("string"==typeof e)try{return F(e)}catch(e){return}return e}),[e])}var ee=n(32144);const te=F("#000000"),ne=F("#FFFFFF"),re=te.toHexInt(),oe=ne.toHexInt();function ie(e,t){let n=e||te,r=n.toHexInt(),o=Math.min(Math.max(r+t,re),oe);if(o!==r){n=F(`#${o.toString(16).padStart(6,"0").toUpperCase()}`)}return n}n(49858);var ae;ae={"ar-AE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"أداة انتقاء اللون",colorSwatch:"تغيير الألوان",transparent:"شفاف",twoDimensionalSlider:"مُنزلق 2D"},"bg-BG":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Средство за избиране на цвят",colorSwatch:"цветна мостра",transparent:"прозрачен",twoDimensionalSlider:"2D плъзгач"},"cs-CZ":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Výběr barvy",colorSwatch:"barevný vzorek",transparent:"průhledný",twoDimensionalSlider:"2D posuvník"},"da-DK":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Farvevælger",colorSwatch:"farveprøve",transparent:"gennemsigtig",twoDimensionalSlider:"2D-skyder"},"de-DE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Farbwähler",colorSwatch:"Farbfeld",transparent:"transparent",twoDimensionalSlider:"2D-Schieberegler"},"el-GR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Επιλογέας χρωμάτων",colorSwatch:"χρωματικό δείγμα",transparent:"διαφανές",twoDimensionalSlider:"Ρυθμιστικό 2D"},"en-US":{colorPicker:"Color picker",twoDimensionalSlider:"2D slider",colorNameAndValue:e=>`${e.name}: ${e.value}`,colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorSwatch:"color swatch",transparent:"transparent"},"es-ES":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Selector de color",colorSwatch:"muestra de color",transparent:"transparente",twoDimensionalSlider:"Regulador 2D"},"et-EE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Värvivalija",colorSwatch:"värvinäidis",transparent:"läbipaistev",twoDimensionalSlider:"2D-liugur"},"fi-FI":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Värimuokkain",colorSwatch:"värimalli",transparent:"läpinäkyvä",twoDimensionalSlider:"2D-liukusäädin"},"fr-FR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name} : ${e.value}`,colorPicker:"Sélecteur de couleurs",colorSwatch:"Échantillon de couleurs",transparent:"Transparent",twoDimensionalSlider:"Curseur 2D"},"he-IL":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"בוחר הצבעים",colorSwatch:"דוגמית צבע",transparent:"שקוף",twoDimensionalSlider:"מחוון דו מימדי"},"hr-HR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Odabir boje",colorSwatch:"uzorak boje",transparent:"transparentno",twoDimensionalSlider:"2D klizač"},"hu-HU":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Színválasztó",colorSwatch:"színtár",transparent:"átlátszó",twoDimensionalSlider:"2D-csúszka"},"it-IT":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Selettore colore",colorSwatch:"campione di colore",transparent:"trasparente",twoDimensionalSlider:"Cursore 2D"},"ja-JP":{colorInputLabel:e=>`${e.label}、${e.channelLabel}`,colorNameAndValue:e=>`${e.name} : ${e.value}`,colorPicker:"カラーピッカー",colorSwatch:"カラースウォッチ",transparent:"透明",twoDimensionalSlider:"2D スライダー"},"ko-KR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"색상 피커",colorSwatch:"색상 견본",transparent:"투명도",twoDimensionalSlider:"2D 슬라이더"},"lt-LT":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Spalvų parinkiklis",colorSwatch:"spalvų pavyzdys",transparent:"skaidrus",twoDimensionalSlider:"2D slankiklis"},"lv-LV":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Krāsu atlasītājs",colorSwatch:"krāsu paraugs",transparent:"caurspīdīgs",twoDimensionalSlider:"2D slīdnis"},"nb-NO":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Fargevelger",colorSwatch:"fargekart",transparent:"gjennomsiktig",twoDimensionalSlider:"2D-glidebryter"},"nl-NL":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Kleurkiezer",colorSwatch:"kleurstaal",transparent:"transparant",twoDimensionalSlider:"2D-schuifregelaar"},"pl-PL":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Próbnik kolorów",colorSwatch:"próbka koloru",transparent:"przezroczysty",twoDimensionalSlider:"Suwak 2D"},"pt-BR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Seletor de cores",colorSwatch:"amostra de cores",transparent:"transparente",twoDimensionalSlider:"Controle deslizante 2D"},"pt-PT":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Seletor de cores",colorSwatch:"amostra de cor",transparent:"transparente",twoDimensionalSlider:"Controle deslizante 2D"},"ro-RO":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Selector de culori",colorSwatch:"specimen de culoare",transparent:"transparent",twoDimensionalSlider:"Glisor 2D"},"ru-RU":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Палитра цветов",colorSwatch:"цветовой образец",transparent:"прозрачный",twoDimensionalSlider:"Ползунок 2D"},"sk-SK":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Výber farieb",colorSwatch:"vzorkovník farieb",transparent:"transparentný",twoDimensionalSlider:"2D jazdec"},"sl-SI":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Izbirnik barv",colorSwatch:"barvna paleta",transparent:"prozorno",twoDimensionalSlider:"2D drsnik"},"sr-SP":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Birač boja",colorSwatch:"Uzorak boje",transparent:"providno",twoDimensionalSlider:"2D klizač"},"sv-SE":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Färgväljaren",colorSwatch:"färgruta",transparent:"genomskinlig",twoDimensionalSlider:"2D-reglage"},"tr-TR":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Renk Seçici",colorSwatch:"renk örneği",transparent:"saydam",twoDimensionalSlider:"2D sürgü"},"uk-UA":{colorInputLabel:e=>`${e.label}, ${e.channelLabel}`,colorNameAndValue:e=>`${e.name}: ${e.value}`,colorPicker:"Палітра кольорів",colorSwatch:"зразок кольору",transparent:"прозорий",twoDimensionalSlider:"Повзунок 2D"},"zh-CN":{colorInputLabel:e=>`${e.label}、${e.channelLabel}`,colorNameAndValue:e=>`${e.name}：${e.value}`,colorPicker:"拾色器",colorSwatch:"颜色色板",transparent:"透明",twoDimensionalSlider:"2D 滑块"},"zh-TW":{colorInputLabel:e=>`${e.label}，${e.channelLabel}`,colorNameAndValue:e=>`${e.name}：${e.value}`,colorPicker:"檢色器",colorSwatch:"色票",transparent:"透明",twoDimensionalSlider:"2D 滑桿"}};var se;se={"ar-AE":{alpha:"ألفا",black:"أسود",blue:"أزرق","blue purple":"أرجواني مزرق",brightness:"السطوع",brown:"بني","brown yellow":"أصفر بني",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"سماوي","cyan blue":"أزرق سماوي",dark:"داكن",gray:"رمادي",grayish:"مائل للرمادي",green:"أخضر","green cyan":"سماوي مخضر",hue:"درجة اللون",light:"فاتح",lightness:"الإضاءة",magenta:"أرجواني","magenta pink":"أرجواني وردي",orange:"برتقالي","orange yellow":"أصفر برتقالي",pale:"باهت",pink:"وردي","pink red":"أحمر وردي",purple:"أرجواني","purple magenta":"بنفسجي",red:"أحمر","red orange":"برتقالي محمر",saturation:"التشبع",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} شفاف`,"very dark":"داكن جدًا","very light":"فاتح جدًا",vibrant:"ساطع",white:"أبيض",yellow:"أصفر","yellow green":"أخضر مصفر"},"bg-BG":{alpha:"Алфа",black:"черно",blue:"Синьо","blue purple":"синьо лилаво",brightness:"Яркост",brown:"кафяво","brown yellow":"кафяво жълто",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"циан","cyan blue":"циан синьо",dark:"тъмно",gray:"сиво",grayish:"сивкав",green:"Зелено","green cyan":"зелен циан",hue:"Оттенък",light:"светло",lightness:"Лекота",magenta:"магента","magenta pink":"магента розово",orange:"оранжево","orange yellow":"оранжево жълто",pale:"бледо",pink:"розово","pink red":"розово червено",purple:"лилаво","purple magenta":"лилаво магента",red:"Червено","red orange":"червен портокал",saturation:"Наситеност",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} прозрачен`,"very dark":"много тъмно","very light":"много светло",vibrant:" ярко",white:"бяло",yellow:"жълто","yellow green":"жълто зелен"},"cs-CZ":{alpha:"Alfa",black:"černá",blue:"Modrá","blue purple":"modrofialová",brightness:"Jas",brown:"hnědá","brown yellow":"hnědožlutá",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"tyrkysová","cyan blue":"tyrkysovomodrá",dark:"tmavá",gray:"šedá",grayish:"našedlá",green:"Zelená","green cyan":"zelenotyrkysová",hue:"Odstín",light:"světlá",lightness:"Světlost",magenta:"purpurová","magenta pink":"purpurově růžová",orange:"oranžová","orange yellow":"oranžovožlutá",pale:"bledá",pink:"růžová","pink red":"růžovočervená",purple:"fialová","purple magenta":"fialově purpurová",red:"Červená","red orange":"červenooranžová",saturation:"Sytost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} průhledné`,"very dark":"velmi tmavá","very light":"velmi světlá",vibrant:"zářivá",white:"bílá",yellow:"žlutá","yellow green":"žlutozelená"},"da-DK":{alpha:"Alfa",black:"sort",blue:"Blå","blue purple":"blålilla",brightness:"Lysstyrke",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyan blå",dark:"mørk",gray:"grå",grayish:"grålig",green:"Grøn","green cyan":"grøn cyan",hue:"Tone",light:"lys",lightness:"Lyshed",magenta:"magenta","magenta pink":"magenta pink",orange:"orange","orange yellow":"orangegul",pale:"bleg",pink:"lyserød","pink red":"lyserødlig rød",purple:"lilla","purple magenta":"lilla magenta",red:"Rød","red orange":"rødorange",saturation:"Farvemætning",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} gennemsigtig`,"very dark":"meget mørk","very light":"meget lys",vibrant:"klar",white:"hvid",yellow:"gul","yellow green":"gulgrøn"},"de-DE":{alpha:"Alpha",black:"Schwarz",blue:"Blau","blue purple":"Blaulila",brightness:"Helligkeit",brown:"Braun","brown yellow":"Braungelb",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"Cyan","cyan blue":"Cyanblau",dark:"dunkles",gray:"Grau",grayish:"gräuliches",green:"Grün","green cyan":"Grüncyan",hue:"Farbton",light:"helles",lightness:"Leuchtkraft",magenta:"Magenta","magenta pink":"Magentarosa",orange:"Orange","orange yellow":"Orangegelb",pale:"blasses",pink:"Rosa","pink red":"Rosarot",purple:"Lila","purple magenta":"Lilamagenta",red:"Rot","red orange":"Rotorange",saturation:"Sättigung",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, zu ${e.percentTransparent} transparent`,"very dark":"sehr dunkles","very light":"sehr helles",vibrant:"lebhaftes",white:"Weiß",yellow:"Gelb","yellow green":"Gelbgrün"},"el-GR":{alpha:"Άλφα",black:"μαύρο",blue:"Μπλε","blue purple":"μπλε μωβ",brightness:"Φωτεινότητα",brown:"καφέ","brown yellow":"καφέ κίτρινο",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"κυανό","cyan blue":"κυανό μπλε",dark:"σκούρο",gray:"γκρι",grayish:"γκριζωπό",green:"Πράσινο","green cyan":"πράσινο κυανό",hue:"Τόνος",light:"ανοιχτό",lightness:"Φωτεινότητα",magenta:"ματζέντα","magenta pink":"ματζέντα ροζ",orange:"πορτοκαλί","orange yellow":"πορτοκαλί κίτρινο",pale:"ανοιχτό",pink:"ροζ","pink red":"ροζ κόκκινο",purple:"μωβ","purple magenta":"μωβ ματζέντα",red:"Κόκκινο","red orange":"κόκκινο πορτοκαλί",saturation:"Κορεσμός",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} διαφανές`,"very dark":"πολύ σκούρο","very light":"πολύ ανοιχτό",vibrant:"έντονο",white:"λευκό",yellow:"κίτρινο","yellow green":"κίτρινο πράσινο"},"en-US":{hue:"Hue",saturation:"Saturation",lightness:"Lightness",brightness:"Brightness",red:"Red",green:"Green",blue:"Blue",alpha:"Alpha",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"very dark",dark:"dark",light:"light","very light":"very light",pale:"pale",grayish:"grayish",vibrant:"vibrant",black:"black",white:"white",gray:"gray",pink:"pink","pink red":"pink red","red orange":"red orange",brown:"brown",orange:"orange","orange yellow":"orange yellow","brown yellow":"brown yellow",yellow:"yellow","yellow green":"yellow green","green cyan":"green cyan",cyan:"cyan","cyan blue":"cyan blue","blue purple":"blue purple",purple:"purple","purple magenta":"purple magenta",magenta:"magenta","magenta pink":"magenta pink"},"es-ES":{alpha:"Alpha",black:"negro",blue:"Azul","blue purple":"púrpura azulado",brightness:"Brillo",brown:"marrón","brown yellow":"amarillo amarronado",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cian","cyan blue":"azul cian",dark:"oscuro",gray:"gris",grayish:"grisáceo",green:"Verde","green cyan":"cian verdoso",hue:"Tono",light:"claro",lightness:"Luminosidad",magenta:"magenta","magenta pink":"rosa magenta",orange:"naranja","orange yellow":"amarillo anaranjado",pale:"pálido",pink:"rosa","pink red":"rojo rosado",purple:"morado","purple magenta":"magenta violáceo",red:"Rojo","red orange":"naranja rojizo",saturation:"Saturación",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":"muy oscuro","very light":"muy claro",vibrant:"intenso",white:"blanco",yellow:"amarillo","yellow green":"verde amarillento"},"et-EE":{alpha:"Alfa",black:"must",blue:"Sinine","blue purple":"sinakaslilla",brightness:"Heledus",brown:"pruun","brown yellow":"pruunikaskollane",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"tsüaan","cyan blue":"tsüaansinine",dark:"tume",gray:"hall",grayish:"hallikas",green:"Roheline","green cyan":"tsüaanroheline",hue:"Värv",light:"valgus",lightness:"Valgus",magenta:"magentapunane","magenta pink":"magentaroosa",orange:"oranž","orange yellow":"oranžikaskollane",pale:"kahvatu",pink:"roosa","pink red":"vaarikapunane",purple:"lilla","purple magenta":"purpurne magenta",red:"Punane","red orange":"punakasoranž",saturation:"Küllastus",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} läbipaistev`,"very dark":"väga tume","very light":"väga hele",vibrant:"ere",white:"valge",yellow:"kollane","yellow green":"kollakasroheline"},"fi-FI":{alpha:"Alpha",black:"musta",blue:"Sininen","blue purple":"sinivioletti",brightness:"Kirkkaus",brown:"ruskea","brown yellow":"ruskeankeltainen",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"syaani","cyan blue":"syaaninsininen",dark:"tumma",gray:"harmaa",grayish:"harmahtava",green:"Vihreä","green cyan":"vihreänsyaani",hue:"Sävy",light:"vaalea",lightness:"Valomäärä",magenta:"magenta","magenta pink":"magentapinkki",orange:"oranssi","orange yellow":"oranssinkeltainen",pale:"vaalea",pink:"pinkki","pink red":"vaaleanpunainen",purple:"violetti","purple magenta":"violettimagenta",red:"Punainen","red orange":"punaoranssi",saturation:"Värikylläisyys",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} läpinäkyvä`,"very dark":"hyvin tumma","very light":"erittäin vaalea",vibrant:"eloisa",white:"valkea",yellow:"keltainen","yellow green":"keltavihreä"},"fr-FR":{alpha:"Alpha",black:"Noir",blue:"Bleu","blue purple":"Violet bleu",brightness:"Luminosité",brown:"Brun","brown yellow":"Jaune brun",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"Cyan","cyan blue":"Bleu cyan",dark:"Sombre",gray:"Gris",grayish:"Grisâtre",green:"Vert","green cyan":"Cyan vert",hue:"Teinte",light:"Clair",lightness:"Luminosité",magenta:"Magenta","magenta pink":"Rose magenta",orange:"Orange","orange yellow":"Jaune orangé",pale:"Pâle",pink:"Rose","pink red":"Rouge rosé",purple:"Violet","purple magenta":"Magenta violet",red:"Rouge","red orange":"Orange rouge",saturation:"Saturation",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"Très sombre","very light":"Très clair",vibrant:"Vif",white:"Blanc",yellow:"Jaune","yellow green":"Vert jaune"},"he-IL":{alpha:"אלפא",black:"שחור",blue:"כחול","blue purple":"כחול סגול",brightness:"בהירות",brown:"חום","brown yellow":"חום צהוב",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"טורקיז","cyan blue":"כחול ציאן",dark:"כהה",gray:"אפור",grayish:"אפרפר",green:"ירוק","green cyan":"ציאן ירוק",hue:"גוון",light:"אור",lightness:"כמות אור",magenta:"מג'נטה","magenta pink":"ורוד מג'נטה",orange:"כתום","orange yellow":"כתום צהוב",pale:"חיוור",pink:"ורוד","pink red":"ורוד אדום",purple:"סגול","purple magenta":"מג'נטה סגול",red:"אדום","red orange":"כתום אדום",saturation:"רוויה",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} שקוף`,"very dark":"כהה מאוד","very light":"בהיר מאוד",vibrant:"תוסס",white:"לבן",yellow:"צהוב","yellow green":"צהוב ירוק"},"hr-HR":{alpha:"Alfa",black:"crno",blue:"Plava","blue purple":"plavo ljubičasta",brightness:"Svjetlina",brown:"smeđa","brown yellow":"smeđe žuta",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cijan","cyan blue":"cijan plava",dark:"tamno",gray:"siva",grayish:"sivkasto",green:"Zelena","green cyan":"zelena cijan",hue:"Nijansa",light:"svjetlo",lightness:"Osvijetljenost",magenta:"magenta","magenta pink":"magentno ružičasta",orange:"narančasta","orange yellow":"narančasto žuta",pale:"blijeda",pink:"ružičasta","pink red":"ružičasto crvena",purple:"ljubičasta","purple magenta":"ljubičasta magenta",red:"Crvena","red orange":"crveno narančasta",saturation:"Zasićenost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozirnosti`,"very dark":"jako tamna","very light":"vrlo svijetlo",vibrant:"vibrantna",white:"bijela",yellow:"žuto","yellow green":"žuto zelena"},"hu-HU":{alpha:"Alfa",black:"fekete",blue:"Kék","blue purple":"kék lila",brightness:"Fényesség",brown:"barna","brown yellow":"barna sárga",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciánkék","cyan blue":"ciánkék",dark:"sötét",gray:"szürke",grayish:"szürkés",green:"Zöld","green cyan":"zöld ciánkék",hue:"Színárnyalat",light:"világos",lightness:"Világosság",magenta:"bíbor","magenta pink":"bíbor rózsaszín",orange:"narancs","orange yellow":"narancssárga",pale:"halvány",pink:"rózsaszín","pink red":"rózsaszín piros",purple:"lila","purple magenta":"lila bíbor",red:"Piros","red orange":"piros narancs",saturation:"Telítettség",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} átlátszó`,"very dark":"nagyon sötét","very light":"nagyon világos",vibrant:"élénk",white:"fehér",yellow:"sárga","yellow green":"sárga zöld"},"it-IT":{alpha:"Alfa",black:"nero",blue:"Blu","blue purple":"blu viola",brightness:"Luminosità",brown:"marrone","brown yellow":"giallo bruno",colorName:e=>`${e.hue} ${e.chroma} ${e.lightness}`,cyan:"ciano","cyan blue":"blu ciano",dark:"scuro",gray:"grigio",grayish:"grigiastro",green:"Verde","green cyan":"verde ciano",hue:"Tonalità",light:"chiaro",lightness:"Luminosità",magenta:"magenta","magenta pink":"rosa magenta",orange:"arancio","orange yellow":"giallo arancio",pale:"tenue",pink:"rosa","pink red":"rosa rosso",purple:"viola","purple magenta":"viola magenta",red:"Rosso","red orange":"rosso arancio",saturation:"Saturazione",transparentColorName:e=>`${e.hue} ${e.chroma} ${e.lightness}, trasparenza ${e.percentTransparent}`,"very dark":"molto scuro","very light":"molto chiaro",vibrant:"vivace",white:"bianco",yellow:"giallo","yellow green":"giallo verde"},"ja-JP":{alpha:"アルファ",black:"ブラック",blue:"青","blue purple":"ブルーパープル",brightness:"明るさ",brown:"ブラウン","brown yellow":"ブラウンイエロー",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"シアン","cyan blue":"シアンブルー",dark:"ダーク",gray:"グレー",grayish:"グレイッシュ",green:"緑","green cyan":"グリーンシアン",hue:"色相",light:"ライト",lightness:"明度",magenta:"マゼンタ","magenta pink":"マゼンタピンク",orange:"オレンジ","orange yellow":"オレンジイエロー",pale:"ペール",pink:"ピンク","pink red":"ピンクレッド",purple:"パープル","purple magenta":"パープルマゼンタ",red:"赤","red orange":"レッドオレンジ",saturation:"彩度",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} 透明`,"very dark":"最も暗い","very light":"ベリーライト",vibrant:"鮮やか",white:"ホワイト",yellow:"イエロー","yellow green":"イエローグリーン"},"ko-KR":{alpha:"알파",black:"검은색",blue:"파랑","blue purple":"청자색",brightness:"명도",brown:"갈색","brown yellow":"황갈색",colorName:e=>`${e.lightness}, ${e.chroma}, ${e.hue}`,cyan:"청록색","cyan blue":"청록색",dark:"다크",gray:"회색",grayish:"회갈색",green:"초록","green cyan":"청록색",hue:"색조",light:"라이트",lightness:"밝기",magenta:"자홍색","magenta pink":"마젠타 핑크",orange:"주황색","orange yellow":"불그스름한 노랑",pale:"흙색",pink:"분홍색","pink red":"핑크 레드",purple:"자주색","purple magenta":"보라빛 자홍색",red:"빨강","red orange":"붉은 주황색",saturation:"채도",transparentColorName:e=>`${e.lightness}, ${e.chroma}, ${e.hue}, ${e.percentTransparent} 투명도`,"very dark":"매우 어두운","very light":"매우 연함",vibrant:"강렬한",white:"흰색",yellow:"노란색","yellow green":"연두색"},"lt-LT":{alpha:"Alfa",black:"juoda",blue:"Mėlyna","blue purple":"melsvai violetinė",brightness:"Ryškumas",brown:"ruda","brown yellow":"rusvai geltona",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"žalsvai mėlyna","cyan blue":"žalsvai mėlyna",dark:"tamsi",gray:"pilka",grayish:"pilkšva",green:"Žalia","green cyan":"žalsvai mėlyna",hue:"Atspalvis",light:"šviesi",lightness:"Šviesumas",magenta:"rausvai raudona","magenta pink":"purpurinė",orange:"oranžinė","orange yellow":"oranžinio atspalvio geltona",pale:"blyški",pink:"rožinė","pink red":"rožinė raudona",purple:"violetinė","purple magenta":"purpurinė rausvai raudona",red:"Raudona","red orange":"rausvai oranžinė",saturation:"Įsotinimas",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} skaidri`,"very dark":"labai tamsi","very light":"labai šviesi",vibrant:"ryški",white:"balta",yellow:"geltona","yellow green":"gelsvai žalia"},"lv-LV":{alpha:"Alfa",black:"melns",blue:"Zila","blue purple":"zili violets",brightness:"Spilgtums",brown:"brūns","brown yellow":"brūni dzeltens",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciāns","cyan blue":"ciāna zils",dark:"tumšs",gray:"pelēks",grayish:"pelēcīgs",green:"Zaļa","green cyan":"zaļš ciāns",hue:"Nokrāsa",light:"gaišs",lightness:"Gaišums",magenta:"fuksiju","magenta pink":"fuksiju rozā",orange:"oranžs","orange yellow":"oranži dzeltens",pale:"bāls",pink:"rozā","pink red":"rozīgi sarkans",purple:"violets","purple magenta":"violets fuksiju",red:"Sarkana","red orange":"sarkanīgi oranžs",saturation:"Piesātinājums",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} caurspīdīgs`,"very dark":"ļoti tumšs","very light":"ļoti gaišs",vibrant:"košs",white:"balts",yellow:"dzeltens","yellow green":"dzelteni zaļš"},"nb-NO":{alpha:"Alfa",black:"svart",blue:"Blå","blue purple":"blålilla",brightness:"Lysstyrke",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyanblå",dark:"mørk",gray:"grå",grayish:"gråaktig",green:"Grønn","green cyan":"grønncyan",hue:"Fargetone",light:"lys",lightness:"Lyshet",magenta:"magenta","magenta pink":"magentarosa",orange:"oransje","orange yellow":"oransjegul",pale:"blek",pink:"rosa","pink red":"rosarød",purple:"lilla","purple magenta":"lillamagenta",red:"Rød","red orange":"rødoransje",saturation:"Metning",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} gjennomsiktig`,"very dark":"svært mørk","very light":"svært lys",vibrant:"levende",white:"hvit",yellow:"gul","yellow green":"gulgrønn"},"nl-NL":{alpha:"Alfa",black:"zwart",blue:"Blauw","blue purple":"paarsblauw",brightness:"Helderheid",brown:"bruin","brown yellow":"bruingeel",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyaan","cyan blue":"cyaanblauw",dark:"donker",gray:"grijs",grayish:"grijsachtig",green:"Groen","green cyan":"cyaangroen",hue:"Kleurtoon",light:"licht",lightness:"Lichtsterkte",magenta:"magenta","magenta pink":"magentaroze",orange:"oranje","orange yellow":"oranjegeel",pale:"bleek",pink:"roze","pink red":"rozerood",purple:"paars","purple magenta":"magentapaars",red:"Rood","red orange":"roodoranje",saturation:"Verzadiging",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparant`,"very dark":"heel donker","very light":"heel licht",vibrant:"levendig",white:"wit",yellow:"geel","yellow green":"geelgroen"},"pl-PL":{alpha:"Alfa",black:"czarny",blue:"Niebieski","blue purple":"niebiesko-fioletowy",brightness:"Jasność",brown:"brązowy","brown yellow":"brązowo-żółty",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyjanowy","cyan blue":"cyjanowo-niebieski",dark:"ciemny",gray:"szary",grayish:"szarawy",green:"Zielony","green cyan":"zielono-cyjanowy",hue:"Odcień",light:"jasny",lightness:"Jaskrawość",magenta:"purpurowy","magenta pink":"purpurowo-różowy",orange:"pomarańczowy","orange yellow":"pomarańczowo-żółty",pale:"blady",pink:"różowy","pink red":"różowo-czerwony",purple:"fioletowy","purple magenta":"fioletowo-purpurowy",red:"Czerwony","red orange":"czerwono-pomarańczowy",saturation:"Nasycenie",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} przezroczystości`,"very dark":"bardzo ciemny","very light":"bardzo jasny",vibrant:"intensywny",white:"biały",yellow:"żółty","yellow green":"żółto-zielony"},"pt-BR":{alpha:"Alfa",black:"preto",blue:"Azul","blue purple":"roxo azulado",brightness:"Brilho",brown:"marrom","brown yellow":"marrom amarelado",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciano","cyan blue":"azul-ciano",dark:"escuro",gray:"cinza",grayish:"acinzentado",green:"Verde","green cyan":"verde-ciano",hue:"Matiz",light:"claro",lightness:"Luminosidade",magenta:"magenta","magenta pink":"rosa-magenta",orange:"laranja","orange yellow":"amarelo alaranjado",pale:"pálido",pink:"rosa","pink red":"rosa avermelhado",purple:"roxo","purple magenta":"roxo-magenta",red:"Vermelho","red orange":"laranja avermelhado",saturation:"Saturação",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":"muito escuro","very light":"muito claro",vibrant:"vibrante",white:"branco",yellow:"amarelo","yellow green":"verde amarelado"},"pt-PT":{alpha:"Alfa",black:"preto",blue:"Azul","blue purple":"azul-púrpura",brightness:"Luminosidade",brown:"castanho","brown yellow":"amarelo-castanho",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciano","cyan blue":"azul-ciano",dark:"escuro",gray:"cinzento",grayish:"acinzentado",green:"Verde","green cyan":"verde-ciano",hue:"Tonalidade",light:"claro",lightness:"Claridade",magenta:"magenta","magenta pink":"rosa-magenta",orange:"laranja","orange yellow":"amarelo-laranja",pale:"pálido",pink:"cor-de-rosa","pink red":"vermelho-rosa",purple:"púrpura","purple magenta":"púrpura-magenta",red:"Vermelho","red orange":"laranja-vermelho",saturation:"Saturação",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":"muito escuro","very light":"muito claro",vibrant:"vibrante",white:"branco",yellow:"amarelo","yellow green":"verde-amarelo"},"ro-RO":{alpha:"Alfa",black:"negru",blue:"Albastru","blue purple":"albastru-violet",brightness:"Luminozitate",brown:"maro","brown yellow":"galben maro",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"bleu","cyan blue":"albastru-bleu",dark:"închis",gray:"gri",grayish:"cenușiu",green:"Verde","green cyan":"verde bleu",hue:"Nuanță",light:"deschis",lightness:"Luminozitate",magenta:"fucsia","magenta pink":"roz-fucsia",orange:"portocaliu","orange yellow":"galben-portocaliu",pale:"pal",pink:"roz","pink red":"roz-roșu",purple:"violet","purple magenta":"violet-fucsia",red:"Roșu","red orange":"portocaliu-roșu",saturation:"Saturație",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"foarte închis","very light":"foarte deschis",vibrant:"plin de viață",white:"alb",yellow:"galben","yellow green":"galben-verde"},"ru-RU":{alpha:"Альфа",black:"черный",blue:"Синий","blue purple":"сине-фиолетовый",brightness:"Яркость",brown:"коричневый","brown yellow":"коричнево-желтый",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"голубой","cyan blue":"цвет морской волны",dark:"темный",gray:"серый",grayish:"сероватый",green:"Зеленый","green cyan":"сине-зеленый",hue:"Оттенок",light:"светлый",lightness:"Освещенность",magenta:"пурпурный","magenta pink":"пурпурно-розовый",orange:"оранжевый","orange yellow":"оранжево-желтый",pale:"бледный",pink:"розовый","pink red":"розово-красный",purple:"фиолетовый","purple magenta":"фиолетово-пурпурный",red:"Красный","red orange":"красно-оранжевый",saturation:"Насыщенность",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, прозрачный на ${e.percentTransparent}`,"very dark":"очень темный","very light":"очень светлый",vibrant:"яркий",white:"белый",yellow:"желтый","yellow green":"желто-зеленый"},"sk-SK":{alpha:"Alfa",black:"čierna",blue:"Modrá","blue purple":"modrofialová",brightness:"Jas",brown:"hnedá","brown yellow":"hnedožltá",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"azúrová","cyan blue":"azúrová modrá",dark:"tmavá",gray:"sivá",grayish:"sivastá",green:"Zelená","green cyan":"zelená azúrová",hue:"Odtieň",light:"svetlá",lightness:"Svetlosť",magenta:"purpurová","magenta pink":"ružová purpurová",orange:"oranžová","orange yellow":"oranžovožltá",pale:"bledá",pink:"ružová","pink red":"ružovočervená",purple:"fialová","purple magenta":"fialová purpurová",red:"Červená","red orange":"červenooranžová",saturation:"Sýtosť",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} priehľadná`,"very dark":"veľmi tmavá","very light":"veľmi svetlá",vibrant:"energická",white:"biela",yellow:"žltá","yellow green":"žltozelená"},"sl-SI":{alpha:"Alfa",black:"črna",blue:"Modra","blue purple":"modro vijolična",brightness:"Svetlost",brown:"rjava","brown yellow":"rjavo rumena",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cian","cyan blue":"cian modra",dark:"temna",gray:"siva",grayish:"sivkasta",green:"Zelena","green cyan":"zelena cian",hue:"Barva",light:"svetla",lightness:"Lahkost",magenta:"škrlatna","magenta pink":"škrlatno roza",orange:"oranžna","orange yellow":"oranžno rumena",pale:"bleda",pink:"roza","pink red":"roza rdeča",purple:"vijolična","purple magenta":"vijolično škrlatna",red:"Rdeča","red orange":"rdeče oranžna",saturation:"Nasičenost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozorna`,"very dark":"zelo temna","very light":"zelo svetla",vibrant:"živahna",white:"bela",yellow:"rumena","yellow green":"rumeno zelena"},"sr-SP":{alpha:"Alfa",black:"crno",blue:"Plava","blue purple":"plavoljubičasta",brightness:"Osvetljenost",brown:"smeđa","brown yellow":"smeđežuta",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cijan","cyan blue":"cijan plava",dark:"tamno",gray:"siva",grayish:"sivkasta",green:"Zelena","green cyan":"zeleno cijan",hue:"Nijansa",light:"svetla",lightness:"Osvetljenje",magenta:"purpurnocrvena","magenta pink":"magenta ružičasta",orange:"narandžasta","orange yellow":"narandžastožuta",pale:"bledo",pink:"ružičasta","pink red":"ružičastocrvena",purple:"ljubičasta","purple magenta":"ljubičasta magenta",red:"Crvena","red orange":"crvenonarandžasta",saturation:"Zasićenje",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozirna`,"very dark":"veoma tamno","very light":"vrlo svetlo",vibrant:"živopisna",white:"bela",yellow:"žuto","yellow green":"žutozelena"},"sv-SE":{alpha:"Alfa",black:"svart",blue:"Blått","blue purple":"blålila",brightness:"Ljusstyrka",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyanblå",dark:"mörk",gray:"grå",grayish:"gråaktig",green:"Grönt","green cyan":"grön cyan",hue:"Nyans",light:"ljus",lightness:"Ljushet",magenta:"magenta","magenta pink":"magentarosa",orange:"orange","orange yellow":"orangegul",pale:"blek",pink:"rosa","pink red":"rosaröd",purple:"lila","purple magenta":"lila magenta",red:"Rött","red orange":"rödorange",saturation:"Mättnad",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} genomskinlig`,"very dark":"mycket mörk","very light":"mycket ljus",vibrant:"livfull",white:"vit",yellow:"gul","yellow green":"gulgrön"},"tr-TR":{alpha:"Alfa",black:"siyah",blue:"Mavi","blue purple":"mavi mor",brightness:"Parlaklık",brown:"kahverengi","brown yellow":"kahverengi sarı",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"camgöbeği","cyan blue":"camgöbeği mavi",dark:"koyu",gray:"gri",grayish:"grimsi",green:"Yeşil","green cyan":"yeşil camgöbeği",hue:"Ton",light:"açık",lightness:"Canlılık",magenta:"eflatun","magenta pink":"eflatun pembe",orange:"turuncu","orange yellow":"turuncu sarı",pale:"solgun",pink:"pembe","pink red":"pembe kırmızı",purple:"mor","purple magenta":"mor eflatun",red:"Kırmızı","red orange":"kırmızı portakal",saturation:"Doygunluk",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} saydam`,"very dark":"çok koyu","very light":"çok açık",vibrant:"canlı",white:"beyaz",yellow:"sarı","yellow green":"sarı yeşil"},"uk-UA":{alpha:"Альфа",black:"чорний",blue:"Синій","blue purple":"синьо-фіолетовий",brightness:"Яскравість",brown:"коричневий","brown yellow":"коричнево-жовтий",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"блакитний","cyan blue":"синьо-блакитний",dark:"темний",gray:"сірий",grayish:"сіруватий",green:"Зелений","green cyan":"зелено-блакитний",hue:"Тон",light:"світлий",lightness:"Освітленість",magenta:"пурпуровий","magenta pink":"пурпурово-рожевий",orange:"помаранчевий","orange yellow":"помаранчево-жовтий",pale:"блідий",pink:"рожевий","pink red":"рожево-червоний",purple:"фіолетовий","purple magenta":"фіолетово-пурпуровий",red:"Червоний","red orange":"червоно-помаранчевий",saturation:"Насиченість",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, прозорий на ${e.percentTransparent}`,"very dark":"дуже темний","very light":"дуже світлий",vibrant:"яскравий",white:"білий",yellow:"жовтий","yellow green":"жовто-зелений"},"zh-CN":{alpha:"Alpha",black:"黑色",blue:"蓝色","blue purple":"蓝紫色",brightness:"亮度",brown:"棕色的","brown yellow":"棕黄色",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"蓝绿色","cyan blue":"青蓝色",dark:"深色",gray:"灰色",grayish:"浅灰色的",green:"绿色","green cyan":"绿青色",hue:"色相",light:"浅色",lightness:"明亮度",magenta:"紫红色","magenta pink":"紫粉色",orange:"橙色","orange yellow":"橙黄色",pale:"苍白的",pink:"粉色","pink red":"粉红色",purple:"紫色","purple magenta":"紫洋红色",red:"红色","red orange":"红橙色",saturation:"饱和度",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} 透明`,"very dark":"很暗","very light":"很浅",vibrant:"生机勃勃",white:"白色",yellow:"黄色","yellow green":"黄色/绿色"},"zh-TW":{alpha:"Alpha",black:"黑",blue:"藍色","blue purple":"藍紫",brightness:"亮度",brown:"棕","brown yellow":"棕黃",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"青","cyan blue":"青藍",dark:"暗",gray:"灰",grayish:"偏灰",green:"綠色","green cyan":"青綠",hue:"色相",light:"淺",lightness:"明亮",magenta:"洋紅","magenta pink":"淺洋紅",orange:"橙","orange yellow":"橙黃",pale:"淡",pink:"粉紅","pink red":"粉紅",purple:"紫","purple magenta":"紫洋紅",red:"紅色","red orange":"橙紅",saturation:"飽和度",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} 透明`,"very dark":"很暗","very light":"很淺",vibrant:"鮮豔",white:"白",yellow:"黃","yellow green":"黃綠"}};var le=n(9772);let ce=new(0,O.B)(function(e){return e&&e.__esModule?e.default:e}(se));function ue(e){let t=fe.parse(e)||ge.parse(e)||ye.parse(e);if(t)return t;throw new Error("Invalid color value: "+e)}function de(e){return 360===e?e:(e%360+360)%360}const pe=[[0,"pink"],[15,"red"],[48,"orange"],[94,"yellow"],[135,"green"],[175,"cyan"],[264,"blue"],[284,"purple"],[320,"magenta"],[349,"pink"]];class he{toHexInt(){return this.toFormat("rgb").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}withChannelValue(e,t){if(e in this){let n=this.clone();return n[e]=t,n}throw new Error("Unsupported color channel: "+e)}getChannelName(e,t){return(O.B.getGlobalDictionaryForPackage("@react-stately/color")||ce).getStringForLocale(e,t)}getColorSpaceAxes(e){let{xChannel:t,yChannel:n}=e,r=t||this.getColorChannels().find((e=>e!==n)),o=n||this.getColorChannels().find((e=>e!==r)),i=this.getColorChannels().find((e=>e!==r&&e!==o));return{xChannel:r,yChannel:o,zChannel:i}}getColorName(e){let t,[n,r,o]=be(this),i=O.B.getGlobalDictionaryForPackage("@react-stately/color")||ce;if(n>.999)return i.getStringForLocale("white",e);if(n<.001)return i.getStringForLocale("black",e);[t,n]=this.getOklchHue(n,r,o,e);let a="",s="";r<=.1&&r>=.001?s=n>=.7?"pale":"grayish":r>=.15&&(s="vibrant"),n<.3?a="very dark":n<.55?a="dark":n<.7||(a=n<.85?"light":"very light"),s&&(s=i.getStringForLocale(s,e)),a&&(a=i.getStringForLocale(a,e));let l=this.getChannelValue("alpha"),c=new(0,O.J)(e,i);if(l<1){let n=new(0,R.K)(e,{style:"percent"}).format(1-l);return c.format("transparentColorName",{lightness:a,chroma:s,hue:t,percentTransparent:n}).replace(/\s+/g," ").trim()}return c.format("colorName",{lightness:a,chroma:s,hue:t}).replace(/\s+/g," ").trim()}getOklchHue(e,t,n,r){let o=O.B.getGlobalDictionaryForPackage("@react-stately/color")||ce;if(t<.001)return[o.getStringForLocale("gray",r),e];for(let t=0;t<pe.length;t++){let[i,a]=pe[t],[s,l]=pe[t+1]||[360,"pink"];if(n>=i&&n<s){return"orange"===a&&(e<.68?a="brown":e=e-.68+.55),n>i+(s-i)/2&&a!==l?a=`${a} ${l}`:"yellow"===a&&e<.85&&(a="yellow green"),[o.getStringForLocale(a,r).toLocaleLowerCase(r),e]}}throw new Error("Unexpected hue")}getHueName(e){let[t,n,r]=be(this),[o]=this.getOklchHue(t,n,r,e);return o}}class fe extends he{static parse(e){let t=[];if(/^#[\da-f]+$/i.test(e)&&[4,5,7,9].includes(e.length)){const n=(e.length<6?e.replace(/[^#]/gi,"$&$&"):e).slice(1).split("");for(;n.length>0;)t.push(parseInt(n.splice(0,2).join(""),16));t[3]=void 0!==t[3]?t[3]/255:void 0}const n=e.match(/^rgba?\((.*)\)$/);var r;if((null==n?void 0:n[1])&&(t=n[1].split(",").map((e=>Number(e.trim()))),t=t.map(((e,t)=>(0,le.qE)(null!=e?e:0,0,t<3?255:1)))),void 0!==t[0]&&void 0!==t[1]&&void 0!==t[2])return t.length<3?void 0:new fe(t[0],t[1],t[2],null!==(r=t[3])&&void 0!==r?r:1)}toString(e="css"){switch(e){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(255*this.alpha).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hex":case"hexa":case"rgb":case"rgba":return this;case"hsb":case"hsba":return this.toHSB();case"hsl":case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+e)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const e=this.red/255,t=this.green/255,n=this.blue/255,r=Math.min(e,t,n),o=Math.max(e,t,n),i=o-r,a=0===o?0:i/o;let s=0;if(0!==i){switch(o){case e:s=(t-n)/i+(t<n?6:0);break;case t:s=(n-e)/i+2;break;case n:s=(e-t)/i+4}s/=6}return new ge((0,le.Nh)(360*s,2),(0,le.Nh)(100*a,2),(0,le.Nh)(100*o,2),this.alpha)}toHSL(){const e=this.red/255,t=this.green/255,n=this.blue/255,r=Math.min(e,t,n),o=Math.max(e,t,n),i=(o+r)/2,a=o-r;let s,l;if(0===a)s=l=0;else{switch(l=a/(i<.5?o+r:2-o-r),o){case e:s=(t-n)/a+(t<n?6:0);break;case t:s=(n-e)/a+2;break;default:s=(e-t)/a+4}s/=6}return new ye((0,le.Nh)(360*s,2),(0,le.Nh)(100*l,2),(0,le.Nh)(100*i,2),this.alpha)}clone(){return new fe(this.red,this.green,this.blue,this.alpha)}getChannelRange(e){switch(e){case"red":case"green":case"blue":return{minValue:0,maxValue:255,step:1,pageSize:17};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+e)}}getChannelFormatOptions(e){switch(e){case"red":case"green":case"blue":return{style:"decimal"};case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return new(0,R.K)(t,n).format(r)}getColorSpace(){return"rgb"}getColorChannels(){return fe.colorChannels}constructor(e,t,n,r){super(),this.red=e,this.green=t,this.blue=n,this.alpha=r}}fe.colorChannels=["red","green","blue"];const me=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/;class ge extends he{static parse(e){let t;if(t=e.match(me)){var n;const[e,r,o,i]=(null!==(n=t[1])&&void 0!==n?n:t[2]).split(",").map((e=>Number(e.trim().replace("%",""))));return new ge(de(e),(0,le.qE)(r,0,100),(0,le.qE)(o,0,100),(0,le.qE)(null!=i?i:1,0,1))}}toString(e="css"){switch(e){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${(0,le.Nh)(this.saturation,2)}%, ${(0,le.Nh)(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${(0,le.Nh)(this.saturation,2)}%, ${(0,le.Nh)(this.brightness,2)}%, ${this.alpha})`;default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsb":case"hsba":return this;case"hsl":case"hsla":return this.toHSL();case"rgb":case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+e)}}toHSL(){let e=this.saturation/100,t=this.brightness/100,n=t*(1-e/2);return e=0===n||1===n?0:(t-n)/Math.min(n,1-n),new ye((0,le.Nh)(this.hue,2),(0,le.Nh)(100*e,2),(0,le.Nh)(100*n,2),this.alpha)}toRGB(){let e=this.hue,t=this.saturation/100,n=this.brightness/100,r=(r,o=(r+e/60)%6)=>n-t*n*Math.max(Math.min(o,4-o,1),0);return new fe(Math.round(255*r(5)),Math.round(255*r(3)),Math.round(255*r(1)),this.alpha)}clone(){return new ge(this.hue,this.saturation,this.brightness,this.alpha)}getChannelRange(e){switch(e){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+e)}}getChannelFormatOptions(e){switch(e){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return"saturation"!==e&&"brightness"!==e||(r/=100),new(0,R.K)(t,n).format(r)}getColorSpace(){return"hsb"}getColorChannels(){return ge.colorChannels}constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.brightness=n,this.alpha=r}}ge.colorChannels=["hue","saturation","brightness"];const ve=/hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/;class ye extends he{static parse(e){let t;if(t=e.match(ve)){var n;const[e,r,o,i]=(null!==(n=t[1])&&void 0!==n?n:t[2]).split(",").map((e=>Number(e.trim().replace("%",""))));return new ye(de(e),(0,le.qE)(r,0,100),(0,le.qE)(o,0,100),(0,le.qE)(null!=i?i:1,0,1))}}toString(e="css"){switch(e){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${(0,le.Nh)(this.saturation,2)}%, ${(0,le.Nh)(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${(0,le.Nh)(this.saturation,2)}%, ${(0,le.Nh)(this.lightness,2)}%, ${this.alpha})`;default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsl":case"hsla":return this;case"hsb":case"hsba":return this.toHSB();case"rgb":case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+e)}}toHSB(){let e=this.saturation/100,t=this.lightness/100,n=t+e*Math.min(t,1-t);return e=0===n?0:2*(1-t/n),new ge((0,le.Nh)(this.hue,2),(0,le.Nh)(100*e,2),(0,le.Nh)(100*n,2),this.alpha)}toRGB(){let e=this.hue,t=this.saturation/100,n=this.lightness/100,r=t*Math.min(n,1-n),o=(t,o=(t+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return new fe(Math.round(255*o(0)),Math.round(255*o(8)),Math.round(255*o(4)),this.alpha)}clone(){return new ye(this.hue,this.saturation,this.lightness,this.alpha)}getChannelRange(e){switch(e){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+e)}}getChannelFormatOptions(e){switch(e){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return"saturation"!==e&&"lightness"!==e||(r/=100),new(0,R.K)(t,n).format(r)}getColorSpace(){return"hsl"}getColorChannels(){return ye.colorChannels}constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.lightness=n,this.alpha=r}}function be(e){let t=e.toFormat("rgb"),n=t.getChannelValue("red")/255,r=t.getChannelValue("green")/255,o=t.getChannelValue("blue")/255;[n,r,o]=function(e,t,n){return[we(e),we(t),we(n)]}(n,r,o);let[i,a,s]=function(e,t,n){return xe([506752/1228815,87881/245763,12673/70218,87098/409605,175762/245763,12673/175545,7918/409605,87881/737289,1001167/1053270],e,t,n)}(n,r,o),[l,c,u]=function(e,t,n){const r=[.819022437996703,.3619062600528904,-.1288737815209879,.0329836539323885,.9292868615863434,.0361446663506424,.0481771893596242,.2642395317527308,.6335478284694309],o=[.210454268309314,.7936177747023054,-.0040720430116193,1.9779985324311684,-2.42859224204858,.450593709617411,.0259040424655478,.7827717124575296,-.8086757549230774];let[i,a,s]=xe(r,e,t,n);return xe(o,Math.cbrt(i),Math.cbrt(a),Math.cbrt(s))}(i,a,s);return function(e,t,n){var r=180*Math.atan2(n,t)/Math.PI;return[e,Math.sqrt(t**2+n**2),r>=0?r:r+360]}(l,c,u)}function we(e){let t=e<0?-1:1,n=Math.abs(e);return n<=.04045?e/12.92:t*Math.pow((n+.055)/1.055,2.4)}function xe(e,t,n,r){return[e[0]*t+e[1]*n+e[2]*r,e[3]*t+e[4]*n+e[5]*r,e[6]*t+e[7]*n+e[8]*r]}ye.colorChannels=["hue","saturation","lightness"];ue("#ffffff");ue("hsl(0, 100%, 50%)");const Se=ue("#000000"),_e=ue("#FFFFFF");Se.toHexInt(),_e.toHexInt();const Ce=e=>[0,60,120,180,240,300,360].map((t=>e.withChannelValue("hue",t).toString("css"))).join(", "),Ee=e=>`${e.withChannelValue("saturation",0)}, transparent`,ke={hue:Ce,saturation:Ee,lightness:()=>"black, transparent, white"},ze={hue:Ce,saturation:Ee,brightness:()=>"black, transparent"};function Pe({direction:e,state:t,zChannel:n,xChannel:r,yChannel:o}){let i=(0,l.useMemo)((()=>{let i="rtl"===e?"left":"right",a={},s=t.value.getChannelValue(n);switch(t.value.getColorSpace()){case"rgb":{let e=ue("rgb(0, 0, 0)");a={background:[`linear-gradient(to ${i}, ${e.withChannelValue(r,0)}, ${e.withChannelValue(r,255)})`,`linear-gradient(to top, ${e.withChannelValue(o,0)}, ${e.withChannelValue(o,255)})`,e.withChannelValue(n,s)].join(","),backgroundBlendMode:"screen"};break}case"hsl":{let e=t.value.getColorChannels(),o=ue("hsl(0, 100%, 50%)").withChannelValue(n,s),l=e.filter((e=>e!==n)).map((e=>`linear-gradient(to ${e===r?i:"top"}, ${ke[e](o)})`)).reverse();"hue"===n&&l.push(o.toString("css")),a={background:l.join(", ")};break}case"hsb":{let e=t.value.getColorChannels(),o=ue("hsb(0, 100%, 100%)").withChannelValue(n,s),l=e.filter((e=>e!==n)).map((e=>`linear-gradient(to ${e===r?i:"top"}, ${ze[e](o)})`)).reverse();"hue"===n&&l.push(o.toString("css")),a={background:l.join(", ")};break}}let{x:l,y:c}=t.getThumbPosition();"rtl"===e&&(l=1-l);let u={forcedColorAdjust:"none"};return{colorAreaStyleProps:{style:{position:"relative",touchAction:"none",...u,...a}},thumbStyleProps:{style:{position:"absolute",left:100*l+"%",top:100*c+"%",transform:"translate(-50%, -50%)",touchAction:"none",...u}}}}),[e,t,n,r,o]);return i}var Ae=n(86025),De=n(20381),Te=n(46473);function Ie(e,t){let{isDisabled:n,inputXRef:r,inputYRef:o,containerRef:i,"aria-label":a,xName:s,yName:c}=e,u=(0,De.oe)(function(e){return e&&e.__esModule?e.default:e}(ae),"@react-aria/color"),{addGlobalListener:d,removeGlobalListener:p}=(0,Ae.A5)(),{direction:h,locale:f}=(0,De.Ym)(),[m,g]=(0,l.useState)(null),v=(0,l.useCallback)(((e=r)=>{e.current&&(0,Ae.eC)(e.current)}),[r]);(0,Ae.FO)(r,[t.xValue,t.yValue],(([e,n])=>{let r=t.value.withChannelValue(t.channels.xChannel,e).withChannelValue(t.channels.yChannel,n);t.setValue(r)}));let[y,b]=(0,l.useState)(!1),[w,x]=(0,l.useState)(!1),{xChannel:S,yChannel:_,zChannel:C}=t.channels,E=t.xChannelStep,k=t.yChannelStep,z=(0,l.useRef)(null),{keyboardProps:P}=(0,A.de)({onKeyDown(e){if(!/^(PageUp|PageDown|Home|End)$/.test(e.key))return void e.continuePropagation();let n;switch(e.preventDefault(),t.setDragging(!0),b(!0),e.key){case"PageUp":t.incrementY(t.yChannelPageStep),n="y";break;case"PageDown":t.decrementY(t.yChannelPageStep),n="y";break;case"Home":"rtl"===h?t.incrementX(t.xChannelPageStep):t.decrementX(t.xChannelPageStep),n="x";break;case"End":"rtl"===h?t.decrementX(t.xChannelPageStep):t.incrementX(t.xChannelPageStep),n="x"}if(t.setDragging(!1),n){v("x"===n?r:o),g(n)}}}),D={onMoveStart(){z.current=null,t.setDragging(!0)},onMove({deltaX:e,deltaY:n,pointerType:r,shiftKey:o}){var a;let{incrementX:s,decrementX:l,incrementY:c,decrementY:u,xChannelPageStep:d,xChannelStep:p,yChannelPageStep:f,yChannelStep:v,getThumbPosition:y,setColorFromPoint:w}=t;null==z.current&&(z.current=y());let{width:x,height:S}=(null===(a=i.current)||void 0===a?void 0:a.getBoundingClientRect())||{width:0,height:0},_=0!==e||0!==n;if("keyboard"===r){let t=o&&d>p?d:p,r=o&&f>v?f:v;e>0&&"ltr"===h||e<0&&"rtl"===h?s(t):e<0&&"ltr"===h||e>0&&"rtl"===h?l(t):n>0?u(r):n<0&&c(r),b(_),m=_&&Math.abs(n)>Math.abs(e)?"y":"x",g(m)}else z.current.x+=("rtl"===h?-1:1)*e/x,z.current.y+=n/S,w(z.current.x,z.current.y)},onMoveEnd(){N.current=!1,t.setDragging(!1),v("x"===m?r:o)}},{moveProps:T}=(0,A.fD)(D),{focusWithinProps:I}=(0,A.Rb)({onFocusWithinChange:e=>{e||(b(!1),x(!1))}}),M=(0,l.useRef)(void 0),N=(0,l.useRef)(!1),{moveProps:O}=(0,A.fD)({onMoveStart(){N.current&&D.onMoveStart()},onMove(e){N.current&&D.onMove(e)},onMoveEnd(){N.current&&D.onMoveEnd()}}),R=e=>{t.isDragging||(M.current=e,b(!1),v(),t.setDragging(!0),"undefined"!=typeof PointerEvent?d(window,"pointerup",j,!1):(d(window,"mouseup",j,!1),d(window,"touchend",j,!1)))},j=e=>{var n,r;(null!==(r=e.pointerId)&&void 0!==r?r:null===(n=e.changedTouches)||void 0===n?void 0:n[0].identifier)===M.current&&(b(!1),v(),t.setDragging(!1),M.current=void 0,N.current=!1,"undefined"!=typeof PointerEvent?p(window,"pointerup",j,!1):(p(window,"mouseup",j,!1),p(window,"touchend",j,!1)))},F=(e,n,r,o)=>{let i=e.getBoundingClientRect(),{width:a,height:s}=i,l=(r-i.x)/a,c=(o-i.y)/s;"rtl"===h&&(l=1-l),l>=0&&l<=1&&c>=0&&c<=1&&!t.isDragging&&void 0===M.current&&(N.current=!0,b(!1),M.current=n,t.setColorFromPoint(l,c),v(),t.setDragging(!0),"undefined"!=typeof PointerEvent?d(window,"pointerup",B,!1):(d(window,"mouseup",B,!1),d(window,"touchend",B,!1)))},B=e=>{var n,r;let o=null!==(r=e.pointerId)&&void 0!==r?r:null===(n=e.changedTouches)||void 0===n?void 0:n[0].identifier;N.current&&o===M.current&&(N.current=!1,b(!1),M.current=void 0,t.setDragging(!1),v(),"undefined"!=typeof PointerEvent?p(window,"pointerup",B,!1):(p(window,"mouseup",B,!1),p(window,"touchend",B,!1)))},L=n?{}:(0,Ae.v6)({..."undefined"!=typeof PointerEvent?{onPointerDown:e=>{"mouse"===e.pointerType&&(0!==e.button||e.altKey||e.ctrlKey||e.metaKey)||F(e.currentTarget,e.pointerId,e.clientX,e.clientY)}}:{onMouseDown:e=>{0!==e.button||e.altKey||e.ctrlKey||e.metaKey||F(e.currentTarget,void 0,e.clientX,e.clientY)},onTouchStart:e=>{F(e.currentTarget,e.changedTouches[0].identifier,e.changedTouches[0].clientX,e.changedTouches[0].clientY)}}},O),V=n?{}:(0,Ae.v6)({..."undefined"!=typeof PointerEvent?{onPointerDown:e=>{"mouse"===e.pointerType&&(0!==e.button||e.altKey||e.ctrlKey||e.metaKey)||R(e.pointerId)}}:{onMouseDown:e=>{0!==e.button||e.altKey||e.ctrlKey||e.metaKey||R(void 0)},onTouchStart:e=>{R(e.changedTouches[0].identifier)}}},I,P,T),{focusProps:K}=(0,A.iQ)({onFocus:()=>{g("x")}}),{focusProps:H}=(0,A.iQ)({onFocus:()=>{g("y")}});const $=e=>{const{target:n}=e;x(!0),n===r.current?t.setXValue(parseFloat(n.value)):n===o.current&&t.setYValue(parseFloat(n.value))};let U=(0,Ae.un)()||(0,Ae.m0)(),W=t.getDisplayColor();const q=(0,l.useCallback)((e=>`${w||y?u.format("colorNameAndValue",{name:W.getChannelName(e,f),value:W.formatChannelValue(e,f)}):[u.format("colorNameAndValue",{name:W.getChannelName(e,f),value:W.formatChannelValue(e,f)}),u.format("colorNameAndValue",{name:W.getChannelName(e===_?S:_,f),value:W.formatChannelValue(e===_?S:_,f)}),u.format("colorNameAndValue",{name:W.getChannelName(C,f),value:W.formatChannelValue(C,f)})].join(", ")}, ${W.getColorName(f)}`),[f,W,u,w,y,S,_,C]);let G=u.format("colorPicker"),Z=(0,Ae.b0)({...e,"aria-label":a?u.format("colorInputLabel",{label:a,channelLabel:G}):G}),Y=(0,Ae.b0)({...e,"aria-label":a?u.format("colorInputLabel",{label:a,channelLabel:G}):G}),X=(0,Ae.b0)({...e,"aria-label":a?`${a}, ${G}`:void 0},U?G:void 0),J=u.format("twoDimensionalSlider"),{visuallyHiddenProps:Q}=(0,Te.B)({style:{opacity:"0.0001",width:"100%",height:"100%",pointerEvents:"none"}}),{colorAreaStyleProps:ee,thumbStyleProps:te}=Pe({direction:h,state:t,xChannel:S,yChannel:_,zChannel:C});return{colorAreaProps:{...X,...L,...ee,role:"group"},thumbProps:{...V,...te,role:"presentation"},xInputProps:{...Z,...Q,...K,type:"range",min:t.value.getChannelRange(S).minValue,max:t.value.getChannelRange(S).maxValue,step:E,"aria-roledescription":J,"aria-valuetext":q(S),"aria-orientation":"horizontal","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"],disabled:n,value:t.value.getChannelValue(S),name:s,tabIndex:U||!m||"x"===m?void 0:-1,"aria-hidden":U||!m||"x"===m||y?void 0:"true",onChange:$},yInputProps:{...Y,...Q,...H,type:"range",min:t.value.getChannelRange(_).minValue,max:t.value.getChannelRange(_).maxValue,step:k,"aria-roledescription":J,"aria-valuetext":q(_),"aria-orientation":"vertical","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"],disabled:n,value:t.value.getChannelValue(_),name:c,tabIndex:U||"y"===m?void 0:-1,"aria-hidden":U||"y"===m||y?void 0:"true",onChange:$}}}var Me=n(39760);var Ne=n(99008),Oe=n(63792);n(35934);function Re(e,t,n,r=e=>e){return e*r(.5-t*(.5-n))}function je(e,t){return[e[0]+t[0],e[1]+t[1]]}function Fe(e,t){return[e[0]-t[0],e[1]-t[1]]}function Be(e,t){return[e[0]*t,e[1]*t]}function Le(e){return[e[1],-e[0]]}function Ve(e,t){return e[0]*t[0]+e[1]*t[1]}function Ke(e,t){return e[0]===t[0]&&e[1]===t[1]}function He(e,t){return function(e){return e[0]*e[0]+e[1]*e[1]}(Fe(e,t))}function $e(e){return function(e,t){return[e[0]/t,e[1]/t]}(e,function(e){return Math.hypot(e[0],e[1])}(e))}function Ue(e,t){return Math.hypot(e[1]-t[1],e[0]-t[0])}function We(e,t,n){let r=Math.sin(n),o=Math.cos(n),i=e[0]-t[0],a=e[1]-t[1],s=i*r+a*o;return[i*o-a*r+t[0],s+t[1]]}function qe(e,t,n){return je(e,Be(Fe(t,e),n))}function Ge(e,t,n){return je(e,Be(t,n))}var{min:Ze,PI:Ye}=Math,Xe=Ye+1e-4;function Je(e,t={}){return function(e,t={}){let{size:n=16,smoothing:r=.5,thinning:o=.5,simulatePressure:i=!0,easing:a=e=>e,start:s={},end:l={},last:c=!1}=t,{cap:u=!0,easing:d=e=>e*(2-e)}=s,{cap:p=!0,easing:h=e=>--e*e*e+1}=l;if(0===e.length||n<=0)return[];let f,m=e[e.length-1].runningLength,g=!1===s.taper?0:!0===s.taper?Math.max(n,m):s.taper,v=!1===l.taper?0:!0===l.taper?Math.max(n,m):l.taper,y=Math.pow(n*r,2),b=[],w=[],x=e.slice(0,10).reduce(((e,t)=>{let r=t.pressure;if(i){let o=Ze(1,t.distance/n),i=Ze(1,1-o);r=Ze(1,e+.275*o*(i-e))}return(e+r)/2}),e[0].pressure),S=Re(n,o,e[e.length-1].pressure,a),_=e[0].vector,C=e[0].point,E=C,k=C,z=E,P=!1;for(let t=0;t<e.length;t++){let{pressure:r}=e[t],{point:s,vector:l,distance:c,runningLength:u}=e[t];if(t<e.length-1&&m-u<3)continue;if(o){if(i){let e=Ze(1,c/n),t=Ze(1,1-e);r=Ze(1,x+.275*e*(t-x))}S=Re(n,o,r,a)}else S=n/2;void 0===f&&(f=S);let p=u<g?d(u/g):1,A=m-u<v?h((m-u)/v):1;S=Math.max(.01,S*Math.min(p,A));let D=(t<e.length-1?e[t+1]:e[t]).vector,T=t<e.length-1?Ve(l,D):1,I=null!==T&&T<0;if(Ve(l,_)<0&&!P||I){let e=Be(Le(_),S);for(let t=1/13,n=0;n<=1;n+=t)k=We(Fe(s,e),s,Xe*n),b.push(k),z=We(je(s,e),s,Xe*-n),w.push(z);C=k,E=z,I&&(P=!0);continue}if(P=!1,t===e.length-1){let e=Be(Le(l),S);b.push(Fe(s,e)),w.push(je(s,e));continue}let M=Be(Le(qe(D,l,T)),S);k=Fe(s,M),(t<=1||He(C,k)>y)&&(b.push(k),C=k),z=je(s,M),(t<=1||He(E,z)>y)&&(w.push(z),E=z),x=r,_=l}let A=e[0].point.slice(0,2),D=e.length>1?e[e.length-1].point.slice(0,2):je(e[0].point,[1,1]),T=[],I=[];if(1===e.length){if(!g&&!v||c){let e=Ge(A,$e(Le(Fe(A,D))),-(f||S)),t=[];for(let n=1/13,r=n;r<=1;r+=n)t.push(We(e,A,2*Xe*r));return t}}else{if(!(g||v&&1===e.length))if(u)for(let e=1/13,t=e;t<=1;t+=e){let e=We(w[0],A,Xe*t);T.push(e)}else{let e=Fe(b[0],w[0]),t=Be(e,.5),n=Be(e,.51);T.push(Fe(A,t),Fe(A,n),je(A,n),je(A,t))}let t=Le(function(e){return[-e[0],-e[1]]}(e[e.length-1].vector));if(v||g&&1===e.length)I.push(D);else if(p){let e=Ge(D,t,S);for(let t=1/29,n=t;n<1;n+=t)I.push(We(e,D,3*Xe*n))}else I.push(je(D,Be(t,S)),je(D,Be(t,.99*S)),Fe(D,Be(t,.99*S)),Fe(D,Be(t,S)))}return b.concat(I,w.reverse(),T)}(function(e,t={}){var n;let{streamline:r=.5,size:o=16,last:i=!1}=t;if(0===e.length)return[];let a=.15+.85*(1-r),s=Array.isArray(e[0])?e:e.map((({x:e,y:t,pressure:n=.5})=>[e,t,n]));if(2===s.length){let e=s[1];s=s.slice(0,-1);for(let t=1;t<5;t++)s.push(qe(s[0],e,t/4))}1===s.length&&(s=[...s,[...je(s[0],[1,1]),...s[0].slice(2)]]);let l=[{point:[s[0][0],s[0][1]],pressure:s[0][2]>=0?s[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],c=!1,u=0,d=l[0],p=s.length-1;for(let e=1;e<s.length;e++){let t=i&&e===p?s[e].slice(0,2):qe(d.point,s[e],a);if(Ke(d.point,t))continue;let n=Ue(t,d.point);if(u+=n,e<p&&!c){if(u<o)continue;c=!0}d={point:t,pressure:s[e][2]>=0?s[e][2]:.5,vector:$e(Fe(d.point,t)),distance:n,runningLength:u},l.push(d)}return l[0].vector=(null==(n=l[1])?void 0:n.vector)||[0,0],l}(e,t),t)}function Qe(e,t){for(var n=e.length,r=0;r<n;++r)if(t(e[r],r))return!0;return!1}function et(e,t){for(var n=e.length,r=0;r<n;++r)if(t(e[r],r))return e[r];return null}function tt(e){var t=e;if(void 0===t){if("undefined"==typeof navigator||!navigator)return"";t=navigator.userAgent||""}return t.toLowerCase()}function nt(e,t){try{return new RegExp(e,"g").exec(t)}catch(e){return null}}function rt(){if("undefined"==typeof navigator||!navigator||!navigator.userAgentData)return!1;var e=navigator.userAgentData,t=e.brands||e.uaList;return!(!t||!t.length)}function ot(e){return e.replace(/_/g,".")}function it(e,t){var n=null,r="-1";return Qe(e,(function(e){var o=nt("("+e.test+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",t);return!(!o||e.brand)&&(n=e,r=o[3]||"-1",e.versionAlias?r=e.versionAlias:e.versionTest&&(r=function(e,t){var n=nt("("+e+")((?:\\/|\\s|:)([0-9|\\.|_]+))",t);return n?n[3]:""}(e.versionTest.toLowerCase(),t)||r),r=ot(r),!0)})),{preset:n,version:r}}function at(e,t){var n={brand:"",version:"-1"};return Qe(e,(function(e){var r=st(t,e);return!!r&&(n.brand=e.id,n.version=e.versionAlias||r.version,"-1"!==n.version)})),n}function st(e,t){return et(e,(function(e){var n=e.brand;return nt(""+t.test,n.toLowerCase())}))}var lt=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],ct=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],ut=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],dt=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],pt=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function ht(e){return!!it(dt,e).preset}function ft(e){var t=navigator.userAgentData,n=(t.uaList||t.brands).slice(),r=e&&e.fullVersionList,o=t.mobile||!1,i=n[0],a=(e&&e.platform||t.platform||navigator.platform).toLowerCase(),s={name:i.brand,version:i.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!at(dt,n).brand||ht(tt())},l={name:"unknown",version:"-1",majorVersion:-1};s.webkit=!s.chromium&&Qe(ut,(function(e){return st(n,e)}));var c=at(ct,n);if(s.chromium=!!c.brand,s.chromiumVersion=c.version,!s.chromium){var u=at(ut,n);s.webkit=!!u.brand,s.webkitVersion=u.version}var d=et(pt,(function(e){return new RegExp(""+e.test,"g").exec(a)}));if(l.name=d?d.id:"",e&&(l.version=e.platformVersion),r&&r.length){var p=at(lt,r);s.name=p.brand||s.name,s.version=p.version||s.version}else{var h=at(lt,n);s.name=h.brand||s.name,s.version=h.brand&&e?e.uaFullVersion:h.version}return s.webkit&&(l.name=o?"ios":"mac"),"ios"===l.name&&s.webview&&(s.version="-1"),l.version=ot(l.version),s.version=ot(s.version),l.majorVersion=parseInt(l.version,10),s.majorVersion=parseInt(s.version,10),{browser:s,os:l,isMobile:o,isHints:!0}}function mt(e){return void 0===e&&rt()?ft():function(e){var t=tt(e),n=!!/mobi/g.exec(t),r={name:"unknown",version:"-1",majorVersion:-1,webview:ht(t),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},o={name:"unknown",version:"-1",majorVersion:-1},i=it(lt,t),a=i.preset,s=i.version,l=it(pt,t),c=l.preset,u=l.version,d=it(ct,t);if(r.chromium=!!d.preset,r.chromiumVersion=d.version,!r.chromium){var p=it(ut,t);r.webkit=!!p.preset,r.webkitVersion=p.version}return c&&(o.name=c.id,o.version=u,o.majorVersion=parseInt(u,10)),a&&(r.name=a.id,r.version=s,r.webview&&"ios"===o.name&&"safari"!==r.name&&(r.webview=!1)),r.majorVersion=parseInt(r.version,10),{browser:r,os:o,isMobile:n,isHints:!1}}(e)}const gt=mt;function vt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.map((function(t){return t.split(" ").map((function(t){return t?""+e+t:""})).join(" ")})).join(" ")}function yt(e,t){return function(n){n&&(e[t]=n)}}function bt(e,t,n){return function(r){r&&(e[t][n]=r)}}var wt="undefined",xt=typeof window!==wt,St=typeof document!==wt&&document,_t=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],Ct=1e-7,Et={cm:function(e){return 96*e/2.54},mm:function(e){return 96*e/254},in:function(e){return 96*e},pt:function(e){return 96*e/72},pc:function(e){return 96*e/6},"%":function(e,t){return e*t/100},vw:function(e,t){return void 0===t&&(t=window.innerWidth),e/100*t},vh:function(e,t){return void 0===t&&(t=window.innerHeight),e/100*t},vmax:function(e,t){return void 0===t&&(t=Math.max(window.innerWidth,window.innerHeight)),e/100*t},vmin:function(e,t){return void 0===t&&(t=Math.min(window.innerWidth,window.innerHeight)),e/100*t}};function kt(e,t,n,r){return(e*r+t*n)/(n+r)}function zt(e){return typeof e===wt}function Pt(e){return e&&"object"==typeof e}function At(e){return Array.isArray(e)}function Dt(e){return"string"==typeof e}function Tt(e){return"number"==typeof e}function It(e){return"function"==typeof e}function Mt(e,t,n,r,o){return Nt(e,t,n)?n:function(e,t,n,r,o){for(var i,a=function(n){var a=t[n].trim();if(a===e.close&&!Nt(e,t,n))return{value:n};var s=n,l=Kt(o,(function(e){return e.open===a}));if(l&&(s=Mt(l,t,n,r,o)),-1===s)return i=n,"break";i=n=s},s=n;s<r;++s){var l=a(s);if(s=i,"object"==typeof l)return l.value;if("break"===l)break}return-1}(e,t,n+1,r,o)}function Nt(e,t,n){if(!e.ignore)return null;var r=t.slice(Math.max(n-3,0),n+3).join("");return new RegExp(e.ignore).exec(r)}function Ot(e,t){var n=Dt(t)?{separator:t}:t,r=n.separator,o=void 0===r?",":r,i=n.isSeparateFirst,a=n.isSeparateOnlyOpenClose,s=n.isSeparateOpenClose,l=void 0===s?a:s,c=n.openCloseCharacters,u=void 0===c?_t:c,d=u.map((function(e){var t=e.open,n=e.close;return t===n?t:t+"|"+n})).join("|"),p=new RegExp("(\\s*"+o+"\\s*|"+d+"|\\s+)","g"),h=e.split(p).filter((function(e){return e&&"undefined"!==e})),f=h.length,m=[],g=[];function v(){return!!g.length&&(m.push(g.join("")),g=[],!0)}for(var y,b=function(t){var n=h[t].trim(),r=t,s=Kt(u,(function(e){return e.open===n})),c=Kt(u,(function(e){return e.close===n}));if(s){if(-1!==(r=Mt(s,h,t,f,u))&&l)return v()&&i?(y=t,"break"):(m.push(h.slice(t,r+1).join("")),t=r,i?(y=t,"break"):(y=t,"continue"))}else{if(c&&!Nt(c,h,t)){var d=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}(u);return d.splice(u.indexOf(c),1),{value:Ot(e,{separator:o,isSeparateFirst:i,isSeparateOnlyOpenClose:a,isSeparateOpenClose:l,openCloseCharacters:d})}}if(function(e,t){return(""===t||" "==t)&&(""===e||" "==e)||e===t}(n,o)&&!a)return v(),i?(y=t,"break"):(y=t,"continue")}-1===r&&(r=f-1),g.push(h.slice(t,r+1).join("")),y=t=r},w=0;w<f;++w){var x=b(w);if(w=y,"object"==typeof x)return x.value;if("break"===x)break}return g.length&&m.push(g.join("")),m}function Rt(e){return Ot(e,"")}function jt(e){return Ot(e,",")}function Ft(e){var t=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(e);return!t||t.length<4?{}:{prefix:t[1],value:t[2],suffix:t[3]}}function Bt(e){var t=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(e);if(!t)return{prefix:"",unit:"",value:NaN};var n=t[1],r=t[2];return{prefix:n,unit:t[3],value:parseFloat(r)}}function Lt(){return Date.now?Date.now():(new Date).getTime()}function Vt(e,t,n){void 0===n&&(n=-1);for(var r=e.length,o=0;o<r;++o)if(t(e[o],o,e))return o;return n}function Kt(e,t,n){var r=Vt(e,t);return r>-1?e[r]:n}var Ht=function(){var e=Lt(),t=xt&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame);return t?t.bind(window):function(t){var n=Lt();return setTimeout((function(){t(n-e)}),1e3/60)}}(),$t=function(){var e=xt&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame);return e?e.bind(window):function(e){clearTimeout(e)}}();function Ut(e){return Object.keys(e)}function Wt(e,t){var n=Bt(e),r=n.value,o=n.unit;if(Pt(t)){var i=t[o];if(i){if(It(i))return i(r);if(Et[o])return Et[o](r,i)}}else if("%"===o)return r*t/100;return Et[o]?Et[o](r):r}function qt(e,t,n){return Math.max(t,Math.min(e,n))}function Gt(e,t,n,r){return void 0===r&&(r=e[0]/e[1]),[[en(t[0],Ct),en(t[0]/r,Ct)],[en(t[1]*r,Ct),en(t[1],Ct)]].filter((function(e){return e.every((function(e,r){var o=t[r],i=en(o,Ct);return n?e<=o||e<=i:e>=o||e>=i}))}))[0]||e}function Zt(e,t,n,r){if(!r)return e.map((function(e,r){return qt(e,t[r],n[r])}));var o=e[0],i=e[1],a=!0===r?o/i:r,s=Gt(e,t,!1,a),l=s[0],c=s[1],u=Gt(e,n,!0,a),d=u[0],p=u[1];return o<l||i<c?(o=l,i=c):(o>d||i>p)&&(o=d,i=p),[o,i]}function Yt(e){for(var t=e.length,n=0,r=t-1;r>=0;--r)n+=e[r];return t?n/t:0}function Xt(e,t){var n=t[0]-e[0],r=t[1]-e[1],o=Math.atan2(r,n);return o>=0?o:o+2*Math.PI}function Jt(e){var t=function(e){return[0,1].map((function(t){return Yt(e.map((function(e){return e[t]})))}))}(e),n=Xt(t,e[0]),r=Xt(t,e[1]);return n<r&&r-n<Math.PI||n>r&&r-n<-Math.PI?1:-1}function Qt(e,t){return Math.sqrt(Math.pow((t?t[0]:0)-e[0],2)+Math.pow((t?t[1]:0)-e[1],2))}function en(e,t){if(!t)return e;var n=1/t;return Math.round(e/t)/n}function tn(e,t){return e.forEach((function(n,r){e[r]=en(e[r],t)})),e}function nn(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function rn(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function on(e,t){if(e.classList)e.classList.remove(t);else{var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}function an(e,t,n,r){e.addEventListener(t,n,r)}function sn(e,t,n,r){e.removeEventListener(t,n,r)}function ln(e){return(null==e?void 0:e.ownerDocument)||St}function cn(e){return ln(e).documentElement}function un(e){return ln(e).body}function dn(e){var t;return(null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView)||window}function pn(e){return e&&"postMessage"in e&&"blur"in e&&"self"in e}function hn(e){return Pt(e)&&e.nodeName&&e.nodeType&&"ownerDocument"in e}function fn(e,t,n,r,o,i){for(var a=0;a<o;++a){var s=n+a*o,l=r+a*o;e[s]+=e[l]*i,t[s]+=t[l]*i}}function mn(e,t,n,r,o){for(var i=0;i<o;++i){var a=n+i*o,s=r+i*o,l=e[a],c=t[a];e[a]=e[s],e[s]=l,t[a]=t[s],t[s]=c}}function gn(e,t,n,r,o){for(var i=0;i<r;++i){var a=n+i*r;e[a]/=o,t[a]/=o}}function vn(e,t,n){void 0===n&&(n=Math.sqrt(e.length));for(var r=e.slice(),o=0;o<n;++o)r[o*n+t-1]=0,r[(t-1)*n+o]=0;return r[(t-1)*(n+1)]=1,r}function yn(e,t){void 0===t&&(t=Math.sqrt(e.length));for(var n=e.slice(),r=jn(t),o=0;o<t;++o){var i=t*o+o;if(!en(n[i],Ct))for(var a=o+1;a<t;++a)if(n[t*o+a]){mn(n,r,o,a,t);break}if(!en(n[i],Ct))return[];gn(n,r,o,t,n[i]);for(a=0;a<t;++a){var s=a,l=n[a+o*t];en(l,Ct)&&o!==a&&fn(n,r,s,o,t,-l)}}return r}function bn(e,t){void 0===t&&(t=Math.sqrt(e.length));for(var n=[],r=e[t*t-1],o=0;o<t-1;++o)n[o]=e[t*(t-1)+o]/r;return n[t-1]=0,n}function wn(e,t){for(var n=e.slice(),r=e.length;r<t-1;++r)n[r]=0;return n[t-1]=1,n}function xn(e,t,n){if(void 0===t&&(t=Math.sqrt(e.length)),t===n)return e;for(var r=jn(n),o=Math.min(t,n),i=0;i<o-1;++i){for(var a=0;a<o-1;++a)r[i*n+a]=e[i*t+a];r[(i+1)*n-1]=e[(i+1)*t-1],r[(n-1)*n+i]=e[(t-1)*t+i]}return r[n*n-1]=e[t*t-1],r}function Sn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=jn(e);return t.forEach((function(t){r=_n(r,t,e)})),r}function _n(e,t,n){void 0===n&&(n=Math.sqrt(e.length));var r=[],o=e.length/n,i=t.length/o;if(!o)return t;if(!i)return e;for(var a=0;a<n;++a)for(var s=0;s<i;++s){r[s*n+a]=0;for(var l=0;l<o;++l)r[s*n+a]+=e[l*n+a]*t[s*o+l]}return r}function Cn(e,t){for(var n=Math.min(e.length,t.length),r=e.slice(),o=0;o<n;++o)r[o]=r[o]+t[o];return r}function En(e,t){for(var n=Math.min(e.length,t.length),r=e.slice(),o=0;o<n;++o)r[o]=r[o]-t[o];return r}function kn(e,t){return void 0===t&&(t=6===e.length),t?[e[0],e[1],0,e[2],e[3],0,e[4],e[5],1]:e}function zn(e,t){return void 0===t&&(t=9===e.length),t?[e[0],e[1],e[3],e[4],e[6],e[7]]:e}function Pn(e,t,n){void 0===n&&(n=t.length);var r=_n(e,t,n),o=r[n-1];return r.map((function(e){return e/o}))}function An(e,t){return _n(e,[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1],4)}function Dn(e,t){return _n(e,[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1],4)}function Tn(e,t){return _n(e,Rn(t,4))}function In(e,t){var n=t[0],r=void 0===n?1:n,o=t[1],i=void 0===o?1:o,a=t[2];return _n(e,[r,0,0,0,0,i,0,0,0,0,void 0===a?1:a,0,0,0,0,1],4)}function Mn(e,t){return Pn(Rn(t,3),wn(e,3))}function Nn(e,t){var n=t[0],r=void 0===n?0:n,o=t[1],i=void 0===o?0:o,a=t[2];return _n(e,[1,0,0,0,0,1,0,0,0,0,1,0,r,i,void 0===a?0:a,1],4)}function On(e,t){return _n(e,t,4)}function Rn(e,t){var n=Math.cos(e),r=Math.sin(e),o=jn(t);return o[0]=n,o[1]=r,o[t]=-r,o[t+1]=n,o}function jn(e){for(var t=e*e,n=[],r=0;r<t;++r)n[r]=r%(e+1)?0:1;return n}function Fn(e,t){for(var n=jn(t),r=Math.min(e.length,t-1),o=0;o<r;++o)n[(t+1)*o]=e[o];return n}function Bn(e,t){for(var n=jn(t),r=Math.min(e.length,t-1),o=0;o<r;++o)n[t*(t-1)+o]=e[o];return n}function Ln(e,t,n,r,o,i,a,s){var l=e[0],c=e[1],u=t[0],d=t[1],p=n[0],h=n[1],f=r[0],m=r[1],g=o[0],v=o[1],y=i[0],b=i[1],w=a[0],x=a[1],S=s[0],_=s[1],C=yn([l,0,u,0,p,0,f,0,c,0,d,0,h,0,m,0,1,0,1,0,1,0,1,0,0,l,0,u,0,p,0,f,0,c,0,d,0,h,0,m,0,1,0,1,0,1,0,1,-g*l,-v*l,-y*u,-b*u,-w*p,-x*p,-S*f,-_*f,-g*c,-v*c,-y*d,-b*d,-w*h,-x*h,-S*m,-_*m],8);if(!C.length)return[];var E=_n(C,[g,v,y,b,w,x,S,_],8);return E[8]=1,xn(function(e,t){void 0===t&&(t=Math.sqrt(e.length));for(var n=[],r=0;r<t;++r)for(var o=0;o<t;++o)n[o*t+r]=e[t*r+o];return n}(E),3,4)}var Vn=function(){return Vn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vn.apply(this,arguments)};function Kn(e,t){return void 0===t&&(t=0),Hn($n(e,t))}function Hn(e){var t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return e.forEach((function(e){var n=e.matrixFunction,r=e.functionValue;n&&(t=n(t,r))})),t}function $n(e,t){return void 0===t&&(t=0),(At(e)?e:Rt(e)).map((function(e){var n=Ft(e),r=n.prefix,o=n.value,i=null,a=r,s="";if("translate"===r||"translateX"===r||"translate3d"===r){var l=Pt(t)?Vn(Vn({},t),{"o%":t["%"]}):{"%":t,"o%":t},c=jt(o).map((function(e,n){return l["%"]=0===n&&"x%"in l?t["x%"]:1===n&&"y%"in l?t["y%"]:t["o%"],Wt(e,l)})),u=c[0],d=c[1],p=void 0===d?0:d,h=c[2];i=Nn,s=[u,p,void 0===h?0:h]}else if("translateY"===r){i=Nn,s=[0,p=Wt(o,Pt(t)?Vn({"%":t["y%"]},t):{"%":t}),0]}else if("translateZ"===r){i=Nn,s=[0,0,parseFloat(o)]}else if("scale"===r||"scale3d"===r){var f=jt(o).map((function(e){return parseFloat(e)})),m=f[0],g=f[1],v=void 0===g?m:g,y=f[2];i=In,s=[m,v,void 0===y?1:y]}else if("scaleX"===r){i=In,s=[m=parseFloat(o),1,1]}else if("scaleY"===r){i=In,s=[1,v=parseFloat(o),1]}else if("scaleZ"===r){i=In,s=[1,1,parseFloat(o)]}else if("rotate"===r||"rotateZ"===r||"rotateX"===r||"rotateY"===r){var b=Bt(o),w=b.unit,x=b.value;"rotate"===r||"rotateZ"===r?(a="rotateZ",i=Tn):"rotateX"===r?i=An:"rotateY"===r&&(i=Dn),s="rad"===w?x:x*Math.PI/180}else if("matrix3d"===r)i=On,s=jt(o).map((function(e){return parseFloat(e)}));else if("matrix"===r){var S=jt(o).map((function(e){return parseFloat(e)}));i=On,s=[S[0],S[1],0,0,S[2],S[3],0,0,0,0,1,0,S[4],S[5],0,1]}else a="";return{name:r,functionName:a,value:o,matrixFunction:i,functionValue:s}}))}var Un=function(){function e(){this.keys=[],this.values=[]}var t=e.prototype;return t.get=function(e){return this.values[this.keys.indexOf(e)]},t.set=function(e,t){var n=this.keys,r=this.values,o=n.indexOf(e),i=-1===o?n.length:o;n[i]=e,r[i]=t},e}(),Wn=function(){function e(){this.object={}}var t=e.prototype;return t.get=function(e){return this.object[e]},t.set=function(e,t){this.object[e]=t},e}(),qn="function"==typeof Map,Gn=function(){function e(){}var t=e.prototype;return t.connect=function(e,t){this.prev=e,this.next=t,e&&(e.next=this),t&&(t.prev=this)},t.disconnect=function(){var e=this.prev,t=this.next;e&&(e.next=t),t&&(t.prev=e)},t.getIndex=function(){for(var e=this,t=-1;e;)e=e.prev,++t;return t},e}();var Zn=function(){function e(e,t,n,r,o,i,a,s){this.prevList=e,this.list=t,this.added=n,this.removed=r,this.changed=o,this.maintained=i,this.changedBeforeAdded=a,this.fixed=s}var t=e.prototype;return Object.defineProperty(t,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(t,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),t.caculateOrdered=function(){var e=function(e,t){var n=[],r=[];return e.forEach((function(e){var t=e[0],o=e[1],i=new Gn;n[t]=i,r[o]=i})),n.forEach((function(e,t){e.connect(n[t-1])})),e.filter((function(e,n){return!t[n]})).map((function(e,t){var o=e[0],i=e[1];if(o===i)return[0,0];var a=n[o],s=r[i-1],l=a.getIndex();return a.disconnect(),s?a.connect(s,s.next):a.connect(void 0,n[0]),[l,a.getIndex()]}))}(this.changedBeforeAdded,this.fixed),t=this.changed,n=[];this.cacheOrdered=e.filter((function(e,r){var o=e[0],i=e[1],a=t[r],s=a[0],l=a[1];if(o!==i)return n.push([s,l]),!0})),this.cachePureChanged=n},e}();function Yn(e,t,n){var r=qn?Map:n?Wn:Un,o=n||function(e){return e},i=[],a=[],s=[],l=e.map(o),c=t.map(o),u=new r,d=new r,p=[],h=[],f={},m=[],g=0,v=0;return l.forEach((function(e,t){u.set(e,t)})),c.forEach((function(e,t){d.set(e,t)})),l.forEach((function(e,t){var n=d.get(e);void 0===n?(++v,a.push(t)):f[n]=v})),c.forEach((function(e,t){var n=u.get(e);void 0===n?(i.push(t),++g):(s.push([n,t]),v=f[t]||0,p.push([n-v,t-g]),h.push(t===n),n!==t&&m.push([n,t]))})),a.reverse(),new Zn(e,t,i,a,m,s,p,h)}var Xn=function(){function e(e,t){void 0===e&&(e=[]),this.findKeyCallback=t,this.list=[].slice.call(e)}return e.prototype.update=function(e){var t=[].slice.call(e),n=Yn(this.list,t,this.findKeyCallback);return this.list=t,n},e}();var Jn=function(e,t){return Jn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},Jn(e,t)};var Qn,er="function"==typeof Map?void 0:(Qn=0,function(e){return e.__DIFF_KEY__||(e.__DIFF_KEY__=++Qn)}),tr=function(e){function t(t){return void 0===t&&(t=[]),e.call(this,t,er)||this}return function(e,t){function n(){this.constructor=e}Jn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Xn);const nr=tr;var rr=function(){return rr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},rr.apply(this,arguments)};var or=function(){function e(){this._events={}}var t=e.prototype;return t.on=function(e,t){if(Pt(e))for(var n in e)this.on(n,e[n]);else this._addEvent(e,t,{});return this},t.off=function(e,t){if(e)if(Pt(e))for(var n in e)this.off(n);else if(t){var r=this._events[e];if(r){var o=Vt(r,(function(e){return e.listener===t}));o>-1&&r.splice(o,1)}}else this._events[e]=[];else this._events={};return this},t.once=function(e,t){var n=this;return t&&this._addEvent(e,t,{once:!0}),new Promise((function(t){n._addEvent(e,t,{once:!0})}))},t.emit=function(e,t){var n=this;void 0===t&&(t={});var r=this._events[e];if(!e||!r)return!0;var o=!1;return t.eventType=e,t.stop=function(){o=!0},t.currentTarget=this,function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}(r).forEach((function(r){r.listener(t),r.once&&n.off(e,r.listener)})),!o},t.trigger=function(e,t){return void 0===t&&(t={}),this.emit(e,t)},t._addEvent=function(e,t,n){var r=this._events;r[e]=r[e]||[],r[e].push(rr({listener:t},n))},e}();const ir=or;function ar(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function sr(e){return en(e,Ct)}function lr(e){return e.length<3?0:Math.abs(function(e){for(var t=0,n=e.length-1;n>=0;--n)t+=e[n];return t}(e.map((function(t,n){var r=e[n+1]||e[0];return t[0]*r[1]-r[0]*t[1]}))))/2}function cr(e,t){var n=t.width,r=t.height,o=t.left,i=t.top,a=ur(e),s=a.minX,l=a.minY,c=a.maxX,u=a.maxY,d=n/(c-s),p=r/(u-l);return e.map((function(e){return[o+(e[0]-s)*d,i+(e[1]-l)*p]}))}function ur(e){var t=e.map((function(e){return e[0]})),n=e.map((function(e){return e[1]}));return{minX:Math.min.apply(Math,t),minY:Math.min.apply(Math,n),maxX:Math.max.apply(Math,t),maxY:Math.max.apply(Math,n)}}function dr(e,t,n){var r=e[0],o=e[1],i=ur(t),a=i.minX,s=i.maxX,l=[[a,o],[s,o]],c=pr(l[0],l[1]),u=mr(t),d=[];if(u.forEach((function(t){var n,r=pr(t[0],t[1]),i=t[0];(n=r,c.every((function(e,t){return 0===sr(e-n[t])})))?d.push({pos:e,line:t,type:"line"}):fr(hr(c,r),[l,t]).forEach((function(e){t.some((function(t){return r=e,!sr((n=t)[0]-r[0])&&!sr(n[1]-r[1]);var n,r}))?d.push({pos:e,line:t,type:"point"}):0!==sr(i[1]-o)&&d.push({pos:e,line:t,type:"intersection"})}))})),!n&&Kt(d,(function(e){return e[0]===r})))return!0;var p=0,h={};return d.forEach((function(e){var t=e.pos,n=e.type,i=e.line;if(!(t[0]>r))if("intersection"===n)++p;else{if("line"===n)return;if("point"===n){var a=Kt(i,(function(e){return e[1]!==o})),s=h[t[0]],l=a[1]>o?1:-1;s?s!==l&&++p:h[t[0]]=l}}})),p%2==1}function pr(e,t){var n=e[0],r=e[1],o=t[0]-n,i=t[1]-r;Math.abs(o)<Ct&&(o=0),Math.abs(i)<Ct&&(i=0);var a=0,s=0,l=0;return o?i?(s=1,l=-(a=-i/o)*n-r):(s=1,l=-r):i&&(a=-1,l=n),[a,s,l]}function hr(e,t){var n=e[0],r=e[1],o=e[2],i=t[0],a=t[1],s=t[2],l=0===n&&0===i,c=0===r&&0===a,u=[];if(l&&c)return[];if(l){var d=-o/r;return d!==-s/a?[]:[[-1/0,d],[1/0,d]]}if(c){var p=-o/n;return p!==-s/i?[]:[[p,-1/0],[p,1/0]]}if(0===n)u=[[h=-(a*(f=-o/r)+s)/i,f]];else if(0===i){u=[[h=-(r*(f=-s/a)+o)/n,f]]}else if(0===r){u=[[h=-o/n,f=-(i*h+s)/a]]}else if(0===a){u=[[h=-s/i,f=-(n*h+o)/r]]}else{var h,f;u=[[h=(r*s-a*o)/(a*n-r*i),f=-(n*h+o)/r]]}return u.map((function(e){return[e[0],e[1]]}))}function fr(e,t){var n=t.map((function(e){return[0,1].map((function(t){return[Math.min(e[0][t],e[1][t]),Math.max(e[0][t],e[1][t])]}))})),r=[];if(2===e.length){var o=e[0],i=o[0],a=o[1];if(sr(i-e[1][0])){if(!sr(a-e[1][1])){var s=Math.max.apply(Math,n.map((function(e){return e[0][0]}))),l=Math.min.apply(Math,n.map((function(e){return e[0][1]})));if(sr(s-l)>0)return[];r=[[s,a],[l,a]]}}else{var c=Math.max.apply(Math,n.map((function(e){return e[1][0]}))),u=Math.min.apply(Math,n.map((function(e){return e[1][1]})));if(sr(c-u)>0)return[];r=[[i,c],[i,u]]}}return r.length||(r=e.filter((function(e){var t=e[0],r=e[1];return n.every((function(e){return 0<=sr(t-e[0][0])&&0<=sr(e[0][1]-t)&&0<=sr(r-e[1][0])&&0<=sr(e[1][1]-r)}))}))),r.map((function(e){return[sr(e[0]),sr(e[1])]}))}function mr(e){return ar(e.slice(1),[e[0]]).map((function(t,n){return[e[n],t]}))}function gr(e,t){var n=e.slice(),r=t.slice();-1===Jt(n)&&n.reverse(),-1===Jt(r)&&r.reverse();var o=mr(n),i=mr(r),a=o.map((function(e){return pr(e[0],e[1])})),s=i.map((function(e){return pr(e[0],e[1])})),l=[];a.forEach((function(e,t){var n=o[t],a=[];s.forEach((function(r,o){var s=fr(hr(e,r),[n,i[o]]);a.push.apply(a,s.map((function(e){return{index1:t,index2:o,pos:e,type:"intersection"}})))})),a.sort((function(e,t){return Qt(n[0],e.pos)-Qt(n[0],t.pos)})),l.push.apply(l,a),dr(n[1],r)&&l.push({index1:t,index2:-1,pos:n[1],type:"inside"})})),i.forEach((function(e,t){if(dr(e[1],n)){var r=!1,o=Vt(l,(function(e){return e.index2===t?(r=!0,!1):!!r}));-1===o&&(r=!1,o=Vt(l,(function(e){var n=e.index1,o=e.index2;return-1===n&&o+1===t?(r=!0,!1):!!r}))),-1===o?l.push({index1:-1,index2:t,pos:e[1],type:"inside"}):l.splice(o,0,{index1:-1,index2:t,pos:e[1],type:"inside"})}}));var c={};return l.filter((function(e){var t=e.pos,n=t[0]+"x"+t[1];return!c[n]&&(c[n]=!0,!0)}))}function vr(e,t){var n=function(e,t){return gr(e,t).map((function(e){return e.pos}))}(e,t);return lr(n)}var yr=function(e,t){return yr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},yr(e,t)};var br=function(){return br=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},br.apply(this,arguments)};function wr(e){return 180*(t=[e[0].clientX,e[0].clientY],n=[e[1].clientX,e[1].clientY],r=n[0]-t[0],o=n[1]-t[1],((i=Math.atan2(o,r))>=0?i:i+2*Math.PI)/Math.PI);var t,n,r,o,i}function xr(e){return e?e.touches?function(e){for(var t=Math.min(e.length,2),n=[],r=0;r<t;++r)n.push(Cr(e[r]));return n}(e.touches):[Cr(e)]:[]}function Sr(e,t,n){var r=n.length,o=Er(e,r),i=o.clientX,a=o.clientY,s=o.originalClientX,l=o.originalClientY,c=Er(t,r),u=c.clientX,d=c.clientY,p=Er(n,r);return{clientX:s,clientY:l,deltaX:i-u,deltaY:a-d,distX:i-p.clientX,distY:a-p.clientY}}function _r(e){return Math.sqrt(Math.pow(e[0].clientX-e[1].clientX,2)+Math.pow(e[0].clientY-e[1].clientY,2))}function Cr(e){return{clientX:e.clientX,clientY:e.clientY}}function Er(e,t){void 0===t&&(t=e.length);for(var n={clientX:0,clientY:0,originalClientX:0,originalClientY:0},r=Math.min(e.length,t),o=0;o<r;++o){var i=e[o];n.originalClientX+="originalClientX"in i?i.originalClientX:i.clientX,n.originalClientY+="originalClientY"in i?i.originalClientY:i.clientY,n.clientX+=i.clientX,n.clientY+=i.clientY}return t?{clientX:n.clientX/t,clientY:n.clientY/t,originalClientX:n.originalClientX/t,originalClientY:n.originalClientY/t}:n}var kr=function(){function e(e){this.prevClients=[],this.startClients=[],this.movement=0,this.length=0,this.startClients=e,this.prevClients=e,this.length=e.length}return e.prototype.getAngle=function(e){return void 0===e&&(e=this.prevClients),wr(e)},e.prototype.getRotation=function(e){return void 0===e&&(e=this.prevClients),wr(e)-wr(this.startClients)},e.prototype.getPosition=function(e,t){void 0===e&&(e=this.prevClients);var n=Sr(e||this.prevClients,this.prevClients,this.startClients),r=n.deltaX,o=n.deltaY;return this.movement+=Math.sqrt(r*r+o*o),this.prevClients=e,n},e.prototype.getPositions=function(e){void 0===e&&(e=this.prevClients);for(var t=this.prevClients,n=this.startClients,r=Math.min(this.length,t.length),o=[],i=0;i<r;++i)o[i]=Sr([e[i]],[t[i]],[n[i]]);return o},e.prototype.getMovement=function(e){var t=this.movement;if(!e)return t;var n=Er(e,this.length),r=Er(this.prevClients,this.length),o=n.clientX-r.clientX,i=n.clientY-r.clientY;return Math.sqrt(o*o+i*i)+t},e.prototype.getDistance=function(e){return void 0===e&&(e=this.prevClients),_r(e)},e.prototype.getScale=function(e){return void 0===e&&(e=this.prevClients),_r(e)/_r(this.startClients)},e.prototype.move=function(e,t){this.startClients.forEach((function(n){n.clientX-=e,n.clientY-=t})),this.prevClients.forEach((function(n){n.clientX-=e,n.clientY-=t}))},e}(),zr=["textarea","input"],Pr=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;r.options={},r.flag=!1,r.pinchFlag=!1,r.data={},r.isDrag=!1,r.isPinch=!1,r.clientStores=[],r.targets=[],r.prevTime=0,r.doubleFlag=!1,r._useMouse=!1,r._useTouch=!1,r._useDrag=!1,r._dragFlag=!1,r._isTrusted=!1,r._isMouseEvent=!1,r._isSecondaryButton=!1,r._preventMouseEvent=!1,r._prevInputEvent=null,r._isDragAPI=!1,r._isIdle=!0,r._preventMouseEventId=0,r._window=window,r.onDragStart=function(e,t){if(void 0===t&&(t=!0),r.flag||!1!==e.cancelable){var n=e.type.indexOf("drag")>=-1;if(!r.flag||!n){r._isDragAPI=!0;var o=r.options,i=o.container,a=o.pinchOutside,s=o.preventWheelClick,l=o.preventRightClick,c=o.preventDefault,u=o.checkInput,d=o.dragFocusedInput,p=o.preventClickEventOnDragStart,h=o.preventClickEventOnDrag,f=o.preventClickEventByCondition,m=r._useTouch,g=!r.flag;if(r._isSecondaryButton=3===e.which||2===e.button,s&&(2===e.which||1===e.button)||l&&(3===e.which||2===e.button))return r.stop(),!1;if(g){var v=r._window.document.activeElement,y=e.target;if(y){var b=y.tagName.toLowerCase(),w=zr.indexOf(b)>-1,x=y.isContentEditable;if(w||x){if(u||!d&&v===y)return!1;if(v&&(v===y||x&&v.isContentEditable&&v.contains(y))){if(!d)return!1;y.blur()}}else if((c||"touchstart"===e.type)&&v){var S=v.tagName.toLowerCase();(v.isContentEditable||zr.indexOf(S)>-1)&&v.blur()}(p||h||f)&&an(r._window,"click",r._onClick,!0)}r.clientStores=[new kr(xr(e))],r._isIdle=!1,r.flag=!0,r.isDrag=!1,r._isTrusted=t,r._dragFlag=!0,r._prevInputEvent=e,r.data={},r.doubleFlag=Lt()-r.prevTime<200,r._isMouseEvent=function(e){return e&&(e.type.indexOf("mouse")>-1||"button"in e)}(e),!r._isMouseEvent&&r._preventMouseEvent&&r._allowMouseEvent(),!1===(r._preventMouseEvent||r.emit("dragStart",br(br({data:r.data,datas:r.data,inputEvent:e,isMouseEvent:r._isMouseEvent,isSecondaryButton:r._isSecondaryButton,isTrusted:t,isDouble:r.doubleFlag},r.getCurrentStore().getPosition()),{preventDefault:function(){e.preventDefault()},preventDrag:function(){r._dragFlag=!1}})))&&r.stop(),r._isMouseEvent&&r.flag&&c&&e.preventDefault()}if(!r.flag)return!1;var _=0;if(g?(r._attchDragEvent(),m&&a&&(_=setTimeout((function(){an(i,"touchstart",r.onDragStart,{passive:!1})})))):m&&a&&sn(i,"touchstart",r.onDragStart),r.flag&&function(e){return e.touches&&e.touches.length>=2}(e)){if(clearTimeout(_),g&&e.touches.length!==e.changedTouches.length)return;r.pinchFlag||r.onPinchStart(e)}}}},r.onDrag=function(e,t){if(r.flag){var n=r.options.preventDefault;!r._isMouseEvent&&n&&e.preventDefault(),r._prevInputEvent=e;var o=xr(e),i=r.moveClients(o,e,!1);if(r._dragFlag){if(r.pinchFlag||i.deltaX||i.deltaY)if(!1===(r._preventMouseEvent||r.emit("drag",br(br({},i),{isScroll:!!t,inputEvent:e}))))return void r.stop();r.pinchFlag&&r.onPinch(e,o)}r.getCurrentStore().getPosition(o,!0)}},r.onDragEnd=function(e){if(r.flag){var t=r.options,n=t.pinchOutside,o=t.container,i=t.preventClickEventOnDrag,a=t.preventClickEventOnDragStart,s=t.preventClickEventByCondition,l=r.isDrag;(i||a||s)&&requestAnimationFrame((function(){r._allowClickEvent()})),s||a||!i||l||r._allowClickEvent(),r._useTouch&&n&&sn(o,"touchstart",r.onDragStart),r.pinchFlag&&r.onPinchEnd(e);var c=(null==e?void 0:e.touches)?xr(e):[];0!==c.length&&r.options.keepDragging?r._addStore(new kr(c)):r.flag=!1;var u=r._getPosition(),d=Lt(),p=!l&&r.doubleFlag;r._prevInputEvent=null,r.prevTime=l||p?0:d,r.flag||(r._dettachDragEvent(),r._preventMouseEvent||r.emit("dragEnd",br({data:r.data,datas:r.data,isDouble:p,isDrag:l,isClick:!l,isMouseEvent:r._isMouseEvent,isSecondaryButton:r._isSecondaryButton,inputEvent:e,isTrusted:r._isTrusted},u)),r.clientStores=[],r._isMouseEvent||(r._preventMouseEvent=!0,clearTimeout(r._preventMouseEventId),r._preventMouseEventId=setTimeout((function(){r._preventMouseEvent=!1}),200)),r._isIdle=!0)}},r.onBlur=function(){r.onDragEnd()},r._allowClickEvent=function(){sn(r._window,"click",r._onClick,!0)},r._onClick=function(e){r._allowClickEvent(),r._allowMouseEvent();var t=r.options.preventClickEventByCondition;(null==t?void 0:t(e))||(e.stopPropagation(),e.preventDefault())},r._onContextMenu=function(e){r.options.preventRightClick?r.onDragEnd(e):e.preventDefault()},r._passCallback=function(){};var o=[].concat(t),i=o[0];r._window=pn(i)?i:dn(i),r.options=br({checkInput:!1,container:i&&!("document"in i)?dn(i):i,preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},n);var a=r.options,s=a.container,l=a.events,c=a.checkWindowBlur;if(r._useDrag=l.indexOf("drag")>-1,r._useTouch=l.indexOf("touch")>-1,r._useMouse=l.indexOf("mouse")>-1,r.targets=o,r._useDrag&&o.forEach((function(e){an(e,"dragstart",r.onDragStart)})),r._useMouse&&(o.forEach((function(e){an(e,"mousedown",r.onDragStart),an(e,"mousemove",r._passCallback)})),an(s,"contextmenu",r._onContextMenu)),c&&an(dn(),"blur",r.onBlur),r._useTouch){var u={passive:!1};o.forEach((function(e){an(e,"touchstart",r.onDragStart,u),an(e,"touchmove",r._passCallback,u)}))}return r}return function(e,t){function n(){this.constructor=e}yr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.stop=function(){this.isDrag=!1,this.data={},this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1,this._isIdle=!0,this._allowClickEvent(),this._dettachDragEvent(),this._isDragAPI=!1},t.prototype.getMovement=function(e){return this.getCurrentStore().getMovement(e)+this.clientStores.slice(1).reduce((function(e,t){return e+t.movement}),0)},t.prototype.isDragging=function(){return this.isDrag},t.prototype.isIdle=function(){return this._isIdle},t.prototype.isFlag=function(){return this.flag},t.prototype.isPinchFlag=function(){return this.pinchFlag},t.prototype.isDoubleFlag=function(){return this.doubleFlag},t.prototype.isPinching=function(){return this.isPinch},t.prototype.scrollBy=function(e,t,n,r){void 0===r&&(r=!0),this.flag&&(this.clientStores[0].move(e,t),r&&this.onDrag(n,!0))},t.prototype.move=function(e,t){var n=e[0],r=e[1],o=this.getCurrentStore().prevClients;return this.moveClients(o.map((function(e){var t=e.clientX,o=e.clientY;return{clientX:t+n,clientY:o+r,originalClientX:t,originalClientY:o}})),t,!0)},t.prototype.triggerDragStart=function(e){this.onDragStart(e,!1)},t.prototype.setEventData=function(e){var t=this.data;for(var n in e)t[n]=e[n];return this},t.prototype.setEventDatas=function(e){return this.setEventData(e)},t.prototype.getCurrentEvent=function(e){return void 0===e&&(e=this._prevInputEvent),br(br({data:this.data,datas:this.data},this._getPosition()),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:e})},t.prototype.getEventData=function(){return this.data},t.prototype.getEventDatas=function(){return this.data},t.prototype.unset=function(){var e=this,t=this.targets,n=this.options.container;this.off(),sn(this._window,"blur",this.onBlur),this._useDrag&&t.forEach((function(t){sn(t,"dragstart",e.onDragStart)})),this._useMouse&&(t.forEach((function(t){sn(t,"mousedown",e.onDragStart)})),sn(n,"contextmenu",this._onContextMenu)),this._useTouch&&(t.forEach((function(t){sn(t,"touchstart",e.onDragStart)})),sn(n,"touchstart",this.onDragStart)),this._prevInputEvent=null,this._allowClickEvent(),this._dettachDragEvent()},t.prototype.onPinchStart=function(e){var t=this,n=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>n)){var r=new kr(xr(e));this.pinchFlag=!0,this._addStore(r),!1===this.emit("pinchStart",br(br({data:this.data,datas:this.data,angle:r.getAngle(),touches:this.getCurrentStore().getPositions()},r.getPosition()),{inputEvent:e,isTrusted:this._isTrusted,preventDefault:function(){e.preventDefault()},preventDrag:function(){t._dragFlag=!1}}))&&(this.pinchFlag=!1)}},t.prototype.onPinch=function(e,t){if(this.flag&&this.pinchFlag&&!(t.length<2)){var n=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",br(br({data:this.data,datas:this.data,movement:this.getMovement(t),angle:n.getAngle(t),rotation:n.getRotation(t),touches:n.getPositions(t),scale:n.getScale(t),distance:n.getDistance(t)},n.getPosition(t)),{inputEvent:e,isTrusted:this._isTrusted}))}},t.prototype.onPinchEnd=function(e){if(this.pinchFlag){var t=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var n=this.getCurrentStore();this.emit("pinchEnd",br(br({data:this.data,datas:this.data,isPinch:t,touches:n.getPositions()},n.getPosition()),{inputEvent:e}))}},t.prototype.getCurrentStore=function(){return this.clientStores[0]},t.prototype.moveClients=function(e,t,n){var r=this._getPosition(e,n),o=this.isDrag;(r.deltaX||r.deltaY)&&(this.isDrag=!0);var i=!1;return!o&&this.isDrag&&(i=!0),br(br({data:this.data,datas:this.data},r),{movement:this.getMovement(e),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,isMouseEvent:this._isMouseEvent,isSecondaryButton:this._isSecondaryButton,inputEvent:t,isTrusted:this._isTrusted,isFirstDrag:i})},t.prototype._addStore=function(e){this.clientStores.splice(0,0,e)},t.prototype._getPosition=function(e,t){var n=this.getCurrentStore().getPosition(e,t),r=this.clientStores.slice(1).reduce((function(e,t){var n=t.getPosition();return e.distX+=n.distX,e.distY+=n.distY,e}),n),o=r.distX,i=r.distY;return br(br({},n),{distX:o,distY:i})},t.prototype._attchDragEvent=function(){var e=this._window,t=this.options.container,n={passive:!1};this._isDragAPI&&(an(t,"dragover",this.onDrag,n),an(e,"dragend",this.onDragEnd)),this._useMouse&&(an(t,"mousemove",this.onDrag),an(e,"mouseup",this.onDragEnd)),this._useTouch&&(an(t,"touchmove",this.onDrag,n),an(e,"touchend",this.onDragEnd,n),an(e,"touchcancel",this.onDragEnd,n))},t.prototype._dettachDragEvent=function(){var e=this._window,t=this.options.container;this._isDragAPI&&(sn(t,"dragover",this.onDrag),sn(e,"dragend",this.onDragEnd)),this._useMouse&&(sn(t,"mousemove",this.onDrag),sn(e,"mouseup",this.onDragEnd)),this._useTouch&&(sn(t,"touchstart",this.onDragStart),sn(t,"touchmove",this.onDrag),sn(e,"touchend",this.onDragEnd),sn(e,"touchcancel",this.onDragEnd))},t.prototype._allowMouseEvent=function(){this._preventMouseEvent=!1,clearTimeout(this._preventMouseEventId)},t}(ir);var Ar=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0};function Dr(e,t,n,r,o){var i=ln(r),a=i.createElement("style");return a.setAttribute("type","text/css"),a.setAttribute("data-styled-id",e),a.setAttribute("data-styled-count","1"),n.nonce&&a.setAttribute("nonce",n.nonce),a.innerHTML=function(e,t,n){return n.original?t:t.replace(/([^};{\s}][^};{]*|^\s*){/gm,(function(t,n){var r=n.trim();return(r?jt(r):[""]).map((function(t){var n=t.trim();return 0===n.indexOf("@")?n:n.indexOf(":global")>-1?n.replace(/\:global/g,""):n.indexOf(":host")>-1?"".concat(n.replace(/\:host/g,".".concat(e))):n?".".concat(e," ").concat(n):".".concat(e)})).join(", ")+" {"}))}(e,t,n),(o||i.head||i.body).appendChild(a),a}const Tr=function(e){var t="rCS"+Ar(e).toString(36);return{className:t,inject:function(n,r){void 0===r&&(r={});var o=function(e){if(e&&e.getRootNode){var t=e.getRootNode();if(11===t.nodeType)return t}}(n),i=(o||n.ownerDocument||document).querySelector('style[data-styled-id="'.concat(t,'"]'));if(i){var a=parseFloat(i.getAttribute("data-styled-count"))||0;i.setAttribute("data-styled-count","".concat(a+1))}else i=Dr(t,e,r,n,o);return{destroy:function(){var e,t=parseFloat(i.getAttribute("data-styled-count"))||0;t<=1?(i.remove?i.remove():null===(e=i.parentNode)||void 0===e||e.removeChild(i),i=null):i.setAttribute("data-styled-count","".concat(t-1))}}}}};var Ir=function(){return Ir=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ir.apply(this,arguments)};function Mr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Nr(e,t){var n=Tr(t),r=n.className;return(0,l.forwardRef)((function(t,o){var i=t.className,a=void 0===i?"":i,s=(t.cspNonce,Mr(t,["className","cspNonce"])),c=(0,l.useRef)();return(0,l.useImperativeHandle)(o,(function(){return c.current}),[]),(0,l.useEffect)((function(){var e=n.inject(c.current,{nonce:t.cspNonce});return function(){e.destroy()}}),[]),(0,l.createElement)(e,Ir({ref:c,"data-styled-id":r,className:"".concat(a," ").concat(r)},s))}))}var Or=function(e,t){return Or=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Or(e,t)};function Rr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Or(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var jr=function(){return jr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},jr.apply(this,arguments)};function Fr(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Br(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function Lr(e,t){return jr({events:[],props:[],name:e},t)}var Vr=["n","w","s","e"],Kr=["n","w","s","e","nw","ne","sw","se"];var Hr,$r,Ur=gt(),Wr=Ur.browser.webkit,qr=Wr&&(Hr="undefined"==typeof window?{userAgent:""}:window.navigator,!!($r=/applewebkit\/([^\s]+)/g.exec(Hr.userAgent.toLowerCase()))&&parseFloat($r[1])<605),Gr=Ur.browser.name,Zr=parseInt(Ur.browser.version,10),Yr="chrome"===Gr,Xr=Ur.browser.chromium,Jr=parseInt(Ur.browser.chromiumVersion,10)||0,Qr=Yr&&Zr>=109||Xr&&Jr>=109,eo="firefox"===Gr,to=parseInt(Ur.browser.webkitVersion,10)>=612||Zr>=15,no="moveable-",ro=Kr.map((function(e){var t="",n="",r="center",o="center",i="calc(var(--moveable-control-padding, 20) * -1px)";return e.indexOf("n")>-1&&(t="top: ".concat(i,";"),o="bottom"),e.indexOf("s")>-1&&(t="top: 0px;",o="top"),e.indexOf("w")>-1&&(n="left: ".concat(i,";"),r="right"),e.indexOf("e")>-1&&(n="left: 0px;",r="left"),'.around-control[data-direction*="'.concat(e,'"] {\n        ').concat(n).concat(t,"\n        transform-origin: ").concat(r," ").concat(o,";\n    }")})).join("\n"),oo="\n{\nposition: absolute;\nwidth: 1px;\nheight: 1px;\nleft: 0;\ntop: 0;\nz-index: 3000;\n--moveable-color: #4af;\n--zoom: 1;\n--zoompx: 1px;\n--moveable-line-padding: 0;\n--moveable-control-padding: 0;\nwill-change: transform;\noutline: 1px solid transparent;\n}\n.control-box {\nz-index: 0;\n}\n.line, .control {\nposition: absolute;\nleft: 0;\ntop: 0;\nwill-change: transform;\n}\n.control {\nwidth: 14px;\nheight: 14px;\nborder-radius: 50%;\nborder: 2px solid #fff;\nbox-sizing: border-box;\nbackground: #4af;\nbackground: var(--moveable-color);\nmargin-top: -7px;\nmargin-left: -7px;\nborder: 2px solid #fff;\nz-index: 10;\n}\n.around-control {\nposition: absolute;\nwill-change: transform;\nwidth: calc(var(--moveable-control-padding, 20) * 1px);\nheight: calc(var(--moveable-control-padding, 20) * 1px);\nleft: calc(var(--moveable-control-padding, 20) * -0.5px);\ntop: calc(var(--moveable-control-padding, 20) * -0.5px);\nbox-sizing: border-box;\nbackground: transparent;\nz-index: 8;\ncursor: alias;\ntransform-origin: center center;\n}\n".concat(ro,"\n.padding {\nposition: absolute;\ntop: 0px;\nleft: 0px;\nwidth: 100px;\nheight: 100px;\ntransform-origin: 0 0;\n}\n.line {\nwidth: 1px;\nheight: 1px;\nbackground: #4af;\nbackground: var(--moveable-color);\ntransform-origin: 0px 50%;\n}\n.line.edge {\nz-index: 1;\nbackground: transparent;\n}\n.line.dashed {\nbox-sizing: border-box;\nbackground: transparent;\n}\n.line.dashed.horizontal {\nborder-top: 1px dashed #4af;\nborder-top-color: #4af;\nborder-top-color: var(--moveable-color);\n}\n.line.dashed.vertical {\nborder-left: 1px dashed #4af;\nborder-left-color: #4af;\nborder-left-color: var(--moveable-color);\n}\n.line.vertical {\ntransform: translateX(-50%);\n}\n.line.horizontal {\ntransform: translateY(-50%);\n}\n.line.vertical.bold {\nwidth: 2px;\n}\n.line.horizontal.bold {\nheight: 2px;\n}\n\n.control.origin {\nborder-color: #f55;\nbackground: #fff;\nwidth: 12px;\nheight: 12px;\nmargin-top: -6px;\nmargin-left: -6px;\npointer-events: none;\n}\n").concat([0,15,30,45,60,75,90,105,120,135,150,165].map((function(e){return'\n.direction[data-rotation="'.concat(e,'"], :global .view-control-rotation').concat(e," {\n").concat(function(e){var t=function(e,t){return'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(32*e,'px" height="').concat(32*e,'px" viewBox="0 0 32 32" ><path d="M 16,5 L 12,10 L 14.5,10 L 14.5,22 L 12,22 L 16,27 L 20,22 L 17.5,22 L 17.5,10 L 20, 10 L 16,5 Z" stroke-linejoin="round" stroke-width="1.2" fill="black" stroke="white" style="transform:rotate(').concat(t,'deg);transform-origin: 16px 16px"></path></svg>')}(1,e),n=45*Math.round(e/45)%180,r="ns-resize";return 135===n?r="nwse-resize":45===n?r="nesw-resize":90===n&&(r="ew-resize"),"cursor:".concat(r,";cursor: url('").concat(t,"') 16 16, ").concat(r,";")}(e),"\n}\n")})).join("\n"),'\n\n.line.direction:before {\ncontent: "";\nposition: absolute;\nwidth: 100%;\nheight: calc(var(--moveable-line-padding, 0) * 1px);\nbottom: 0;\nleft: 0;\n}\n.group {\nz-index: -1;\n}\n.area {\nposition: absolute;\n}\n.area-pieces {\nposition: absolute;\ntop: 0;\nleft: 0;\ndisplay: none;\n}\n.area.avoid, .area.pass {\npointer-events: none;\n}\n.area.avoid+.area-pieces {\ndisplay: block;\n}\n.area-piece {\nposition: absolute;\n}\n\n').concat(qr?':global svg *:before {\ncontent:"";\ntransform-origin: inherit;\n}':"","\n"),io=[[0,1,2],[1,0,3],[2,0,3],[3,1,2]],ao=1e-4,so=1e-7,lo=1e-9,co=Math.pow(10,10),uo=-co,po={n:[0,-1],e:[1,0],s:[0,1],w:[-1,0],nw:[-1,-1],ne:[1,-1],sw:[-1,1],se:[1,1]},ho={n:[0,1],e:[1,3],s:[3,2],w:[2,0],nw:[0],ne:[1],sw:[2],se:[3]},fo={n:0,s:180,w:270,e:90,nw:315,ne:45,sw:225,se:135},mo=["isMoveableElement","updateRect","updateTarget","destroy","dragStart","isInside","hitTest","setState","getRect","request","isDragging","getManager","forceUpdate","waitToChangeTarget","updateSelectors","getTargets","stopDrag","getControlBoxElement","getMoveables","getDragElement"];function go(e,t,n,r,o,i){var a,s;void 0===i&&(i="draggable");var l=null!==(s=null===(a=t.gestos[i])||void 0===a?void 0:a.move(n,e.inputEvent))&&void 0!==s?s:{},c=l.originalDatas||l.datas,u=c[i]||(c[i]={});return jr(jr({},o?Cs(t,l):l),{isPinch:!!r,parentEvent:!0,datas:u,originalDatas:e.originalDatas})}var vo=function(){function e(e){var t;void 0===e&&(e="draggable"),this.ableName=e,this.prevX=0,this.prevY=0,this.startX=0,this.startY=0,this.isDrag=!1,this.isFlag=!1,this.datas={draggable:{}},this.datas=((t={})[e]={},t)}return e.prototype.dragStart=function(e,t){this.isDrag=!1,this.isFlag=!1;var n=t.originalDatas;return this.datas=n,n[this.ableName]||(n[this.ableName]={}),jr(jr({},this.move(e,t.inputEvent)),{type:"dragstart"})},e.prototype.drag=function(e,t){return this.move([e[0]-this.prevX,e[1]-this.prevY],t)},e.prototype.move=function(e,t){var n,r,o=!1;if(this.isFlag){var i=this.isDrag;n=this.prevX+e[0],r=this.prevY+e[1],(e[0]||e[1])&&(this.isDrag=!0),!i&&this.isDrag&&(o=!0)}else this.prevX=e[0],this.prevY=e[1],this.startX=e[0],this.startY=e[1],n=e[0],r=e[1],this.isFlag=!0;return this.prevX=n,this.prevY=r,{type:"drag",clientX:n,clientY:r,inputEvent:t,isFirstDrag:o,isDrag:this.isDrag,distX:n-this.startX,distY:r-this.startY,deltaX:e[0],deltaY:e[1],datas:this.datas[this.ableName],originalDatas:this.datas,parentEvent:!0,parentGesto:this}},e}();function yo(e,t,n,r){var o=16===e.length?4:3,i=Fr(Ua(e,n,r,o),4),a=Fr(i[0],2),s=a[0],l=a[1],c=Fr(i[1],2),u=c[0],d=c[1],p=Fr(i[2],2),h=p[0],f=p[1],m=Fr(i[3],2),g=m[0],v=m[1],y=Fr($a(e,t,o),2),b=y[0],w=y[1],x=Math.min(s,u,h,g),S=Math.min(l,d,f,v),_=Math.max(s,u,h,g);return s=s-x||0,{left:x,top:S,right:_,bottom:Math.max(l,d,f,v),origin:[b=b-x||0,w=w-S||0],pos1:[s,l=l-S||0],pos2:[u=u-x||0,d=d-S||0],pos3:[h=h-x||0,f=f-S||0],pos4:[g=g-x||0,v=v-S||0],direction:Fs(e[0]*e[o+1])}}function bo(e,t){var n=t.datas,r=e.state,o=r.allMatrix,i=r.beforeMatrix,a=r.is3d,s=r.left,l=r.top,c=r.origin,u=r.offsetMatrix,d=r.targetMatrix,p=r.transformOrigin,h=a?4:3;n.is3d=a,n.matrix=o,n.targetMatrix=d,n.beforeMatrix=i,n.offsetMatrix=u,n.transformOrigin=p,n.inverseMatrix=yn(o,h),n.inverseBeforeMatrix=yn(i,h),n.absoluteOrigin=wn(Cn([s,l],c),h),n.startDragBeforeDist=Pn(n.inverseBeforeMatrix,n.absoluteOrigin,h),n.startDragDist=Pn(n.inverseMatrix,n.absoluteOrigin,h)}function wo(e,t,n){var r=t.datas,o=t.originalDatas.beforeRenderable,i=r.transformIndex,a=o.nextTransforms,s=a.length,l=o.nextTransformAppendedIndexes,c=-1;-1===i?("translate"===n?c=0:"rotate"===n&&(c=Vt(a,(function(e){return e.match(/scale\(/g)}))),-1===c&&(c=a.length),r.transformIndex=c):c=Kt(l,(function(e){return e.index===i&&e.functionName===n}))?i:i+l.filter((function(e){return e.index<i})).length;var u=function(e,t,n){var r,o=$n(e,{"x%":function(e){return e/100*t.offsetWidth},"y%":function(e){return e/100*t.offsetHeight}}),i=e.slice(0,n<0?void 0:n),a=e.slice(0,n<0?void 0:n+1),s=e[n]||"",l=n<0?[]:e.slice(n),c=n<0?[]:e.slice(n+1),u=o.slice(0,n<0?void 0:n),d=o.slice(0,n<0?void 0:n+1),p=null!==(r=o[n])&&void 0!==r?r:$n([""])[0],h=n<0?[]:o.slice(n),f=n<0?[]:o.slice(n+1),m=p?[p]:[],g=Hn(u),v=Hn(d),y=Hn(h),b=Hn(f),w=_n(g,y,4);return{transforms:e,beforeFunctionMatrix:g,beforeFunctionMatrix2:v,targetFunctionMatrix:Hn(m),afterFunctionMatrix:y,afterFunctionMatrix2:b,allFunctionMatrix:w,beforeFunctions:u,beforeFunctions2:d,targetFunction:m[0],afterFunctions:h,afterFunctions2:f,beforeFunctionTexts:i,beforeFunctionTexts2:a,targetFunctionText:s,afterFunctionTexts:l,afterFunctionTexts2:c}}(a,e.state,c),d=u.targetFunction,p="rotate"===n?"rotateZ":n;r.beforeFunctionTexts=u.beforeFunctionTexts,r.afterFunctionTexts=u.afterFunctionTexts,r.beforeTransform=u.beforeFunctionMatrix,r.beforeTransform2=u.beforeFunctionMatrix2,r.targetTansform=u.targetFunctionMatrix,r.afterTransform=u.afterFunctionMatrix,r.afterTransform2=u.afterFunctionMatrix2,r.targetAllTransform=u.allFunctionMatrix,d.functionName===p?(r.afterFunctionTexts.splice(0,1),r.isAppendTransform=!1):s>c&&(r.isAppendTransform=!0,o.nextTransformAppendedIndexes=Br(Br([],Fr(l),!1),[{functionName:n,index:c,isAppend:!0}],!1))}function xo(e,t,n){return"".concat(e.beforeFunctionTexts.join(" ")," ").concat(e.isAppendTransform?n:t," ").concat(e.afterFunctionTexts.join(" "))}function So(e){var t=e.datas,n=Fr(Co({datas:t,distX:e.distX,distY:e.distY}),2),r=_o(t,function(e,t){for(var n=jn(t),r=0;r<t-1;++r)n[t*(t-1)+r]=e[r]||0;return n}([n[0],n[1]],4));return Pn(r,wn([0,0,0],4),4)}function _o(e,t,n){var r=e.beforeTransform,o=e.afterTransform,i=e.beforeTransform2,a=e.afterTransform2,s=e.targetAllTransform,l=n?_n(s,t,4):_n(t,s,4),c=_n(yn(n?i:r,4),l,4);return _n(c,yn(n?a:o,4),4)}function Co(e){var t=e.datas,n=e.distX,r=e.distY,o=t.inverseBeforeMatrix,i=t.is3d,a=t.startDragBeforeDist,s=i?4:3;return En(Pn(o,Cn(t.absoluteOrigin,[n,r]),s),a)}function Eo(e,t){var n=e.datas,r=e.distX,o=e.distY,i=n.inverseBeforeMatrix,a=n.inverseMatrix,s=n.is3d,l=n.startDragBeforeDist,c=n.startDragDist,u=s?4:3;return En(Pn(t?i:a,Cn(n.absoluteOrigin,[r,o]),u),t?l:c)}function ko(e){var t=[];return e[1]>=0&&(e[0]>=0&&t.push(3),e[0]<=0&&t.push(2)),e[1]<=0&&(e[0]>=0&&t.push(1),e[0]<=0&&t.push(0)),t}function zo(e,t){var n=(t+1)/2;return[kt(e[0][0],e[1][0],n,1-n),kt(e[0][1],e[1][1],n,1-n)]}function Po(e,t){var n=zo([e[0],e[1]],t[0]),r=zo([e[2],e[3]],t[0]);return zo([n,r],t[1])}function Ao(e,t,n,r){return _n(e,Ia(t,r,n),r)}function Do(e,t){var n=No(t);return{setTransform:function(r,o){void 0===o&&(o=-1),n.startTransforms=At(r)?r:Rt(r),Io(e,t,o)},setTransformIndex:function(n){Io(e,t,n)}}}function To(e,t,n){Io(e,t,Vt(No(t).startTransforms,(function(e){return 0===e.indexOf("".concat(n,"("))})))}function Io(e,t,n){var r=No(t),o=t.datas;if(o.transformIndex=n,-1!==n){var i=r.startTransforms[n];if(i){var a=e.state,s=$n([i],{"x%":function(e){return e/100*a.offsetWidth},"y%":function(e){return e/100*a.offsetHeight}});o.startValue=s[0].functionValue}}}function Mo(e,t){No(e).nextTransforms=Rt(t)}function No(e){return e.originalDatas.beforeRenderable}function Oo(e){return e.originalDatas.beforeRenderable.nextTransforms}function Ro(e){return(Oo(e)||[]).join(" ")}function jo(e){return No(e).nextStyle}function Fo(e,t,n,r,o){Mo(o,t);var i=Zi.drag(e,go(o,e.state,n,r,!1)),a=i?i.transform:t;return jr(jr({transform:t,drag:i},us({transform:a},o)),{afterTransform:a})}function Bo(e,t,n,r,o,i){var a=function(e,t,n,r){var o,i=e.transformOrigin,a=e.offsetMatrix,s=e.is3d?4:3;if(Dt(n)){var l=t.beforeTransform,c=t.afterTransform;o=xn(r?Kn(n):_n(_n(l,Kn([n]),4),c,4),4,s)}else o=n;return Ao(a,o,i,s)}(e.state,o,t,i),s=function(e,t,n,r){void 0===r&&(r=e.state.allMatrix);var o=e.state,i=o.width,a=o.height,s=o.is3d,l=s?4:3,c=[i/2*(1+t[0])+n[0],a/2*(1+t[1])+n[1]];return $a(r,c,l)}(e,n,r,a);return s}function Lo(e,t,n,r,o,i,a){var s=Bo(e,t,n,o,i,a),l=e.state,c=l.left,u=l.top,d=e.props.groupable,p=d?c:0,h=d?u:0,f=En(r,s);return En(f,[p,h])}function Vo(e,t,n,r,o,i){var a=e.props.groupable,s=e.state,l=s.transformOrigin,c=s.offsetMatrix,u=s.is3d,d=s.width,p=s.height,h=s.left,f=s.top,m=i.fixedDirection,g=i.nextTargetMatrix||s.targetMatrix,v=u?4:3,y=function(e,t,n,r,o,i){return void 0===r&&(r=t),void 0===o&&(o=n),void 0===i&&(i=[0,0]),e?e.map((function(e,a){var s=Bt(e),l=s.value,c=s.unit,u=a?o:r,d=a?n:t;return"%"===e||isNaN(l)?d*(u?i[a]/u:0):"%"!==c?l:d*l/100})):i}(o,t,n,d,p,l),b=a?h:0,w=a?f:0,x=function(e,t,n,r,o,i){var a=Po(Ua(t,n,r,o),i);return[e[0]-a[0],e[1]-a[1]]}(r,Ao(c,g,y,v),t,n,v,m);return En(x,[b,w])}function Ko(e){if(e&&e.getRootNode){var t=e.getRootNode();if(11===t.nodeType)return t}}function Ho(e){var t=e("scale"),n=e("rotate"),r=e("translate"),o=[];return r&&"0px"!==r&&"none"!==r&&o.push("translate(".concat(r.split(/\s+/).join(","),")")),n&&"1"!==n&&"none"!==n&&o.push("rotate(".concat(n,")")),t&&"1"!==t&&"none"!==t&&o.push("scale(".concat(t.split(/\s+/).join(","),")")),o}function $o(e,t,n){for(var r,o,i,a=e,s=[],l=cn(e)||un(e),c=!n&&e===t||e===l,u=c,d=!1,p=3,h=!1,f=Ra(t,t,!0).offsetParent,m=1;a&&!u;){u=c;var g=Zo(a),v=g("position"),y=Oa(a),b="fixed"===v,w=Ho(g),x=kn(Ta(y)),S=void 0,_=!1,C=!1,E=0,k=0,z=0,P=0,A={hasTransform:!1,fixedContainer:null};b&&(h=!0,f=(A=La(a)).fixedContainer);var D=x.length;d||16!==D&&!w.length||(d=!0,p=4,Ba(s),i&&(i=xn(i,3,4))),d&&9===D&&(x=xn(x,3,4));var T=ja(a,e),I=T.tagName,M=T.hasOffset,N=T.isSVG,O=T.origin,R=T.targetOrigin,j=Fr(T.offset,2),F=j[0],B=j[1];"svg"===I&&!a.ownerSVGElement&&i&&(s.push({type:"target",target:a,matrix:Ha(a,p)}),s.push({type:"offset",target:a,matrix:jn(p)}));var L=parseFloat(g("zoom"))||1;if(b)S=A.fixedContainer,_=!0;else{var V=Ra(a,t,!1,!0,g),K=V.offsetZoom;if(S=V.offsetParent,_=V.isEnd,C=V.isStatic,m*=K,(V.isCustomElement||1!==K)&&C)F-=S.offsetLeft,B-=S.offsetTop;else if(eo||Qr){if(V.parentSlotElement){for(var H=S,$=0,U=0;H&&Ko(H);)$+=H.offsetLeft,U+=H.offsetTop,H=H.offsetParent;F-=$,B-=U}}}if(!Wr||to||!M||N||!C||"relative"!==v&&"static"!==v||(F-=S.offsetLeft,B-=S.offsetTop,c=c||_),b)M&&A.hasTransform&&(z=S.clientLeft,P=S.clientTop);else if(M&&f!==S&&(E=S.clientLeft,k=S.clientTop),M&&S===l){var W=Fa(a,!1);F+=W[0],B+=W[1]}if(s.push({type:"target",target:a,matrix:Ia(x,p,O)}),w.length&&(s.push({type:"offset",target:a,matrix:jn(p)}),s.push({type:"target",target:a,matrix:Ia(Kn(w),p,O)})),M){var q=a===e,G=q?0:a.scrollLeft,Z=q?0:a.scrollTop;s.push({type:"offset",target:a,matrix:Bn([F-G+E-z,B-Z+k-P],p)})}else s.push({type:"offset",target:a,origin:O});if(1!==L&&s.push({type:"zoom",target:a,matrix:Ia(Fn([L,L],p),p,[0,0])}),i||(i=x),r||(r=O),o||(o=R),u||b)break;a=S,c=_,n&&a!==l||(u=c)}return i||(i=jn(p)),r||(r=[0,0]),o||(o=[0,0]),{zoom:m,offsetContainer:f,matrixes:s,targetMatrix:i,transformOrigin:r,targetOrigin:o,is3d:d,hasFixed:h}}var Uo=null,Wo=null,qo=null;function Go(e){e?(window.Map&&(Uo=new Map,Wo=new Map),qo=[]):(Uo=null,qo=null,Wo=null)}function Zo(e){var t=null==Uo?void 0:Uo.get(e);if(!t){var n=dn(e).getComputedStyle(e);if(!Uo)return function(e){return n[e]};t={style:n,cached:{}},Uo.set(e,t)}var r=t.cached,o=t.style;return function(e){return e in r||(r[e]=o[e]),r[e]}}function Yo(e,t,n){var r=n.originalDatas;r.groupable=r.groupable||{};var o=r.groupable;o.childDatas=o.childDatas||[];var i=o.childDatas;return e.moveables.map((function(e,r){return i[r]=i[r]||{},i[r][t]=i[r][t]||{},jr(jr({},n),{isRequestChild:!0,datas:i[r][t],originalDatas:i[r]})}))}function Xo(e,t,n,r,o,i,a){var s=!!n.match(/Start$/g),l=!!n.match(/End$/g),c=o.isPinch,u=o.datas,d=Yo(e,t.name,o),p=e.moveables,h=[],f=d.map((function(e,o){var d=p[o],f=d.state,m=f.gestos,g=e;if(s)g=new vo(a).dragStart(r,e),h.push(g);else{if(m[a]||(m[a]=u.childGestos[o]),!m[a])return;g=go(e,f,r,c,i,a),h.push(g)}var v=t[n](d,jr(jr({},g),{parentFlag:!0}));return l&&(m[a]=null),v}));return s&&(u.childGestos=p.map((function(e){return e.state.gestos[a]}))),{eventParams:f,childEvents:h}}function Jo(e,t,n,r,o,i){void 0===o&&(o=function(e,t){return t});var a=!!n.match(/End$/g),s=Yo(e,t.name,r),l=e.moveables,c=s.map((function(e,r){var s,c=l[r];s=o(c,e);var u=t[n](c,jr(jr({},s),{parentFlag:!0}));return u&&i&&i(c,e,u,r),a&&(c.state.gestos={}),u}));return c}function Qo(e,t,n,r){var o=n.fixedDirection,i=n.fixedPosition,a=Po(r.datas.startPositions||ss(t.state),o),s=Fr(Pn(Rn(-e.rotation/180*Math.PI,3),[a[0]-i[0],a[1]-i[1],1],3),2),l=s[0],c=s[1];return r.datas.originalX=l,r.datas.originalY=c,r}function ei(e,t,n,r){var o=e.getState(),i=o.renderPoses,a=o.rotation,s=o.direction,l=Ja(e.props,t).zoom,c=xa(a/Math.PI*180),u={},d=e.renderState;d.renderDirectionMap||(d.renderDirectionMap={});var p=d.renderDirectionMap;n.forEach((function(e){var t=e.dir;u[t]=!0}));var h=Fs(s);return n.map((function(e){var n=e.data,o=e.classNames,s=e.dir,d=ho[s];if(!d||!u[s])return null;p[s]=!0;var f=(en(c,15)+h*fo[s]+720)%180,m={};return Ut(n).forEach((function(e){m["data-".concat(e)]=n[e]})),r.createElement("div",jr({className:Aa.apply(void 0,Br(["control","direction",s,t],Fr(o),!1)),"data-rotation":f,"data-direction":s},m,{key:"direction-".concat(s),style:Xa.apply(void 0,Br([a,l],Fr(d.map((function(e){return i[e]}))),!1))}))}))}function ti(e,t,n,r){var o=Ja(e.props,n),i=o.renderDirections,a=void 0===i?t:i,s=o.displayAroundControls;if(!a)return[];var l=!0===a?Kr:a;return Br(Br([],Fr(s?ai(e,r,n,l):[]),!1),Fr(ei(e,n,l.map((function(e){return{data:{},classNames:[],dir:e}})),r)),!1)}function ni(e,t,n,r,o,i){for(var a=[],s=6;s<arguments.length;s++)a[s-6]=arguments[s];var l=Xt(n,r),c=t?en(l/Math.PI*180,15)%180:-1;return e.createElement("div",{key:"line-".concat(i),className:Aa.apply(void 0,Br(["line","direction",t?"edge":"",t],Fr(a),!1)),"data-rotation":c,"data-line-key":i,"data-direction":t,style:Ya(n,r,o,l)})}function ri(e,t,n,r,o){return(!0===n?Vr:n).map((function(n,i){var a=Fr(ho[n],2),s=a[0],l=a[1];if(null!=l)return ni(e,n,r[s],r[l],o,"".concat(t,"Edge").concat(i),t)})).filter(Boolean)}function oi(e){return function(t,n){var r=Ja(t.props,e).edge;return r&&(!0===r||r.length)?Br(Br([],Fr(ri(n,e,r,t.getState().renderPoses,t.props.zoom)),!1),Fr(function(e,t,n){return ti(e,["nw","ne","sw","se"],t,n)}(t,e,n)),!1):ii(t,e,n)}}function ii(e,t,n){return ti(e,Kr,t,n)}function ai(e,t,n,r){var o=e.renderState;o.renderDirectionMap||(o.renderDirectionMap={});var i=e.getState(),a=i.renderPoses,s=i.rotation,l=i.direction,c=o.renderDirectionMap,u=e.props.zoom,d=Fs(l),p=s/Math.PI*180;return(r||Ut(c)).map((function(e){var r=ho[e];if(!r)return null;var o=(en(p,15)+d*fo[e]+720)%180,i=["around-control"];return n&&i.push("direction",n),t.createElement("div",{className:Aa.apply(void 0,Br([],Fr(i),!1)),"data-rotation":o,"data-direction":e,key:"direction-around-".concat(e),style:Xa.apply(void 0,Br([s,u],Fr(r.map((function(e){return a[e]}))),!1))})}))}function si(e,t,n){var r=e||{},o=r.position,i=void 0===o?"client":o,a=r.left,s=void 0===a?-1/0:a,l=r.top,c=void 0===l?-1/0:l,u=r.right,d=void 0===u?1/0:u,p=r.bottom,h={position:i,left:s,top:c,right:d,bottom:void 0===p?1/0:p};return{vertical:ci(h,t,!0),horizontal:ci(h,n,!1)}}function li(e,t){var n=e.state,r=n.containerClientRect,o=r.clientHeight,i=r.clientWidth,a=r.clientLeft,s=r.clientTop,l=n.snapOffset,c=l.left,u=l.top,d=l.right,p=l.bottom,h=t||e.props.bounds||{},f="css"===(h.position||"client"),m=h.left,g=void 0===m?-1/0:m,v=h.top,y=void 0===v?-1/0:v,b=h.right,w=void 0===b?f?-1/0:1/0:b,x=h.bottom,S=void 0===x?f?-1/0:1/0:x;return f&&(w=i+d-c-w,S=o+p-u-S),{left:g+c-a,right:w+c-a,top:y+u-s,bottom:S+u-s}}function ci(e,t,n){var r=e[n?"left":"top"],o=e[n?"right":"bottom"],i=Math.min.apply(Math,Br([],Fr(t),!1)),a=Math.max.apply(Math,Br([],Fr(t),!1)),s=[];return r+1>i&&s.push({direction:"start",isBound:!0,offset:i-r,pos:r}),o-1<a&&s.push({direction:"end",isBound:!0,offset:a-o,pos:o}),s.length||s.push({isBound:!1,offset:0,pos:0}),s.sort((function(e,t){return Bs(t.offset)-Bs(e.offset)}))}function ui(e,t,n){return(n?e.map((function(e){return Mn(e,n)})):e).some((function(e){return e[0]<t.left&&Bs(e[0]-t.left)>.1||e[0]>t.right&&Bs(e[0]-t.right)>.1||e[1]<t.top&&Bs(e[1]-t.top)>.1||e[1]>t.bottom&&Bs(e[1]-t.bottom)>.1}))}function di(e,t,n,r,o){if(!e.props.bounds)return[];var i=o*Math.PI/180,a=li(e),s=a.left,l=a.top,c=a.right,u=a.bottom,d=s-r[0],p=c-r[0],h=l-r[1],f=u-r[1],m={left:d,top:h,right:p,bottom:f};if(!ui(n,m,0))return[];var g=[];return[[d,0],[p,0],[h,1],[f,1]].forEach((function(e){var r=Fr(e,2),o=r[0],a=r[1];n.forEach((function(e){var n=Xt([0,0],e);g.push.apply(g,Br([],Fr(function(e,t,n){var r=Ga(e),o=Math.sqrt(r*r-t*t)||0;return[o,-o].sort((function(t,r){return Bs(t-e[n?0:1])-Bs(r-e[n?0:1])})).map((function(e){return Xt([0,0],n?[e,t]:[t,e])}))}(e,o,a).map((function(e){return i+e-n})).filter((function(e){return!ui(t,m,e)})).map((function(e){return en(180*e/Math.PI,so)}))),!1))}))})),g}var pi=["left","right","center"],hi=["top","bottom","middle"],fi={left:"start",right:"end",center:"center",top:"start",bottom:"end",middle:"center"},mi={start:"left",end:"right",center:"center"},gi={start:"top",end:"bottom",center:"middle"};function vi(e,t){var n=e.props,r=n.snappable,o=n.bounds,i=n.innerBounds,a=n.verticalGuidelines,s=n.horizontalGuidelines,l=n.snapGridWidth,c=n.snapGridHeight,u=e.state,d=u.guidelines,p=u.enableSnap;return!(!r||!p||t&&!0!==r&&r.indexOf(t)<0)&&!!(l||c||o||i||d&&d.length||a&&a.length||s&&s.length)}function yi(e){return!1===e?{}:!0!==e&&e?e:{left:!0,right:!0,top:!0,bottom:!0}}function bi(e,t){var n=function(e,t){var n=yi(e),r={};for(var o in n)o in t&&n[o]&&(r[o]=t[o]);return r}(e,t),r=hi.filter((function(e){return e in n})),o=pi.filter((function(e){return e in n}));return{horizontalNames:r,verticalNames:o,horizontal:r.map((function(e){return n[e]})),vertical:o.map((function(e){return n[e]}))}}var wi="snapRotationThreshold",xi="snapRotationDegrees",Si="snapHorizontalThreshold",_i="snapVerticalThreshold";function Ci(e,t,n,r,o,i,a){var s;void 0===r&&(r=[]),void 0===o&&(o=[]);var l=e.props,c=(null===(s=e.state.snapThresholdInfo)||void 0===s?void 0:s.multiples)||[1,1],u=bs(a,l[Si],5),d=bs(i,l[_i],5);return Ei(e.state.guidelines,t,n,r,o,u,d,c)}function Ei(e,t,n,r,o,i,a,s){return{vertical:Ai(e,"vertical",t,a*s[0],r),horizontal:Ai(e,"horizontal",n,i*s[1],o)}}function ki(e){var t="";return-1===e||"top"===e||"left"===e?t="start":0===e||"center"===e||"middle"===e?t="center":1!==e&&"right"!==e&&"bottom"!==e||(t="end"),t}function zi(e,t,n,r){var o=bi(e.props.snapDirections,t),i=Ci(e,o.vertical,o.horizontal,o.verticalNames.map((function(e){return ki(e)})),o.horizontalNames.map((function(e){return ki(e)})),n,r),a=ki(o.horizontalNames[i.horizontal.index]),s=ki(o.verticalNames[i.vertical.index]);return{vertical:jr(jr({},i.vertical),{direction:s}),horizontal:jr(jr({},i.horizontal),{direction:a})}}function Pi(e){var t=e.isSnap;if(!t)return{isSnap:!1,offset:0,dist:-1,pos:0,guideline:null};var n=e.posInfos[0],r=n.guidelineInfos[0],o=r.offset,i=r.dist,a=r.guideline;return{isSnap:t,offset:o,dist:i,pos:n.pos,guideline:a}}function Ai(e,t,n,r,o){var i,a;if(void 0===o&&(o=[]),!e||!e.length)return{isSnap:!1,index:-1,direction:"",posInfos:[]};var s="vertical"===t?0:1,l=n.map((function(n,i){var a=o[i]||"",l=e.map((function(e){var t=e.pos,r=n-t[s];return{offset:r,dist:Bs(r),guideline:e,direction:a}})).filter((function(e){var n=e.guideline,o=e.dist;return!(n.type!==t||o>r)})).sort((function(e,t){return e.dist-t.dist}));return{pos:n,index:i,guidelineInfos:l,direction:a}})).filter((function(e){return e.guidelineInfos.length>0})).sort((function(e,t){return e.guidelineInfos[0].dist-t.guidelineInfos[0].dist})),c=l.length>0;return{isSnap:c,index:c?l[0].index:-1,direction:null!==(a=null===(i=l[0])||void 0===i?void 0:i.direction)&&void 0!==a?a:"",posInfos:l}}function Di(e,t,n,r,o){var i=[];n[0]&&n[1]?i=[n,[-n[0],n[1]],[n[0],-n[1]]]:n[0]||n[1]?e.props.keepRatio?i.push([-1,-1],[-1,1],[1,-1],[1,1],n):(i.push.apply(i,Br([],Fr(function(e,t){return ko(t).map((function(t){return e[t]}))}([[-1,-1],[1,-1],[-1,-1],[1,1]],n)),!1)),i.length>1&&i.push([(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2])):[[-1,-1],[1,-1],[1,1],[-1,1]].forEach((function(e,t,n){var r=n[t+1]||n[0];i.push(e),i.push([(e[0]+r[0])/2,(e[1]+r[1])/2])}));var a=i.map((function(e){return Po(t,e)})),s=Ci(e,a.map((function(e){return e[0]})),a.map((function(e){return e[1]})),i.map((function(e){return ki(e[0])})),i.map((function(e){return ki(e[1])})),r,o),l=ki(i.map((function(e){return e[0]}))[s.vertical.index]),c=ki(i.map((function(e){return e[1]}))[s.horizontal.index]);return{vertical:jr(jr({},s.vertical),{direction:l}),horizontal:jr(jr({},s.horizontal),{direction:c})}}function Ti(e,t){var n=Bs(e.offset),r=Bs(t.offset);return e.isBound&&t.isBound?r-n:e.isBound?-1:t.isBound?1:e.isSnap&&t.isSnap?r-n:e.isSnap?-1:t.isSnap||n<so?1:r<so?-1:n-r}function Ii(e,t){return e.slice().sort((function(e,n){var r=e.sign[t],o=n.sign[t],i=e.offset[t],a=n.offset[t];return r?o?Ti({isBound:e.isBound,isSnap:e.isSnap,offset:i},{isBound:n.isBound,isSnap:n.isSnap,offset:a}):-1:1}))[0]}function Mi(e,t){var n=Yt([t[0][0],t[1][0]]),r=Yt([t[0][1],t[1][1]]);return{vertical:n<=e[0],horizontal:r<=e[1]}}function Ni(e,t){var n,r,o=Fr(t,2),i=o[0],a=o[1],s=a[0]-i[0],l=a[1]-i[1];if(Bs(s)<so&&(s=0),Bs(l)<so&&(l=0),s)if(l){n=l/s*(e[0]-i[0])+i[1],r=e[1]}else n=i[1],r=e[1];else n=i[0],r=e[0];return n-r}function Oi(e,t,n,r){return void 0===r&&(r=so),e.every((function(e){var o=Ni(e,t);return o<=0===n||Bs(o)<=r}))}function Ri(e,t,n,r,o){return void 0===o&&(o=0),r&&t-o<=e||!r&&e<=n+o?{isBound:!0,offset:r?t-e:n-e}:{isBound:!1,offset:0}}function ji(e,t,n,r,o,i){var a,s,l=Fr(t,2),c=l[0],u=l[1],d=e[0],p=n[0],h=n[1],f=ks(h[1]-p[1]),m=u,g=c,v=-c/u;return ks(h[0]-p[0])?f||i&&!m?{isBound:!1,offset:0}:g?Ri((p[1]-d[1])/v+d[0],p[0],h[0],r,o):{isBound:s=Bs(a=p[1]-d[1])<=(o||0),offset:s?a:0}:i&&!g?{isBound:!1,offset:0}:m?Ri(v*(p[0]-d[0])+d[1],p[1],h[1],r,o):{isBound:s=Bs(a=p[0]-d[0])<=(o||0),offset:s?a:0}}function Fi(e,t,n){return t.map((function(t){var r=function(e,t){var n=t.line,r=t.centerSign,o=t.verticalSign,i=t.horizontalSign,a=t.lineConstants,s=e.props.innerBounds;if(!s)return{isAllBound:!1,isBound:!1,isVerticalBound:!1,isHorizontalBound:!1,offset:[0,0]};var l=s.left,c=s.top,u=s.width,d=s.height,p=[[l,c],[l,c+d]],h=[[l,c],[l+u,c]],f=[[l+u,c],[l+u,c+d]],m=[[l,c+d],[l+u,c+d]];if(Oi([[l,c],[l+u,c],[l,c+d],[l+u,c+d]],n,r))return{isAllBound:!1,isBound:!1,isVerticalBound:!1,isHorizontalBound:!1,offset:[0,0]};var g=ji(n,a,h,o),v=ji(n,a,m,o),y=ji(n,a,p,i),b=ji(n,a,f,i),w=g.isBound&&v.isBound,x=g.isBound||v.isBound,S=y.isBound&&b.isBound,_=y.isBound||b.isBound,C=Ss(g.offset,v.offset),E=Ss(y.offset,b.offset),k=[0,0],z=!1,P=!1;return Bs(E)<Bs(C)?(k=[C,0],z=x,P=w):(k=[0,E],z=_,P=S),{isAllBound:P,isVerticalBound:x,isHorizontalBound:_,isBound:z,offset:k}}(e,t),o=r.isBound,i=r.offset,a=r.isVerticalBound,s=r.isHorizontalBound,l=t.multiple,c=Eo({datas:n,distX:i[0],distY:i[1]}).map((function(e,t){return e*(l[t]?2/l[t]:0)}));return{sign:l,isBound:o,isVerticalBound:a,isHorizontalBound:s,isSnap:!1,offset:c}}))}function Bi(e,t,n){var r,o=Fi(e,Li(e,t,[0,0],!1).map((function(e){return jr(jr({},e),{multiple:e.multiple.map((function(e){return 2*Bs(e)}))})})),n),i=Ii(o,0),a=Ii(o,1),s=0,l=0,c=i.isVerticalBound||a.isVerticalBound,u=i.isHorizontalBound||a.isHorizontalBound;return(c||u)&&(r=Fr(function(e,t){var n=e.datas,r=e.distX,o=e.distY,i=n.beforeMatrix,a=n.matrix,s=n.is3d,l=n.startDragBeforeDist,c=n.startDragDist,u=n.absoluteOrigin,d=s?4:3;return En(Pn(t?i:a,Cn(t?l:c,[r,o]),d),u)}({datas:n,distX:-i.offset[0],distY:-a.offset[1]}),2),s=r[0],l=r[1]),{vertical:{isBound:c,offset:s},horizontal:{isBound:u,offset:l}}}function Li(e,t,n,r){var o=e.state,i=Ua(o.allMatrix,100,100,o.is3d?4:3),a=Po(i,[0,0]);return function(e,t){var n=[],r=e[0],o=e[1];return r&&o?n.push([[0,2*o],e,[-r,o]],[[2*r,0],e,[r,-o]]):r?(n.push([[2*r,0],[r,1],[r,-1]]),t&&n.push([[0,-1],[r,-1],[-r,-1]],[[0,1],[r,1],[-r,1]])):o?(n.push([[0,2*o],[1,o],[-1,o]]),t&&n.push([[-1,0],[-1,o],[-1,-o]],[[1,0],[1,o],[1,-o]])):n.push([[-1,0],[-1,-1],[-1,1]],[[1,0],[1,-1],[1,1]],[[0,-1],[-1,-1],[1,-1]],[[0,1],[-1,1],[1,1]]),n}(n,r).map((function(e){var n=Fr(e,3),r=n[0],o=n[1],s=n[2],l=[Po(i,o),Po(i,s)],c=function(e){var t=Fr(e,2),n=t[0],r=t[1],o=r[0]-n[0],i=r[1]-n[1];Math.abs(o)<Ct&&(o=0),Math.abs(i)<Ct&&(i=0);var a=0,s=0,l=0;return o?i?(s=1,l=(a=-i/o)*n[0]-n[1]):(s=1,l=-n[1]):(a=-1,l=n[0]),[a,s,l].map((function(e){return en(e,Ct)}))}(l),u=Mi(a,l),d=u.vertical,p=u.horizontal;return{multiple:r,centerSign:Ni(a,l)<=0,verticalSign:d,horizontalSign:p,lineConstants:c,line:[Po(t,o),Po(t,s)]}}))}function Vi(e,t,n,r){var o=r?e.map((function(e){return Mn(e,r)})):e;return[[o[0],o[1]],[o[1],o[3]],[o[3],o[2]],[o[2],o[0]]].some((function(e){var r=Ni(n,e)<=0;return!Oi(t,e,r)}))}function Ki(e,t,n,r,o){var i=e.props.innerBounds,a=o*Math.PI/180;if(!i)return[];var s=i.left,l=i.top,c=i.width,u=i.height,d=s-r[0],p=s+c-r[0],h=l-r[1],f=l+u-r[1],m=[[d,h],[p,h],[d,f],[p,f]],g=Po(n,[0,0]);if(!Vi(n,m,g,0))return[];var v=[],y=m.map((function(e){return[Ga(e),Xt([0,0],e)]}));return[[n[0],n[1]],[n[1],n[3]],[n[3],n[2]],[n[2],n[0]]].forEach((function(e){var n=Xt([0,0],function(e){var t=Fr(e,2),n=t[0],r=t[1],o=r[0]-n[0],i=r[1]-n[1];if(!o)return[n[0],0];if(!i)return[0,n[1]];var a=i/o,s=-a*n[0]+n[1];return[-s/(a+1/a),s/(a*a+1)]}(e)),r=function(e){var t=Fr(e,2),n=t[0],r=t[1],o=r[0]-n[0],i=r[1]-n[1];if(!o)return Bs(n[0]);if(!i)return Bs(n[1]);var a=i/o;return Bs((-a*n[0]+n[1])/Math.sqrt(Math.pow(a,2)+1))}(e);v.push.apply(v,Br([],Fr(y.filter((function(e){var t=Fr(e,1)[0];return t&&r<=t})).map((function(e){var t=Fr(e,2),o=t[0],i=t[1],s=Math.acos(o?r/o:0);return[a+(i+s)-n,a+(i-s)-n]})).reduce((function(e,t){return e.push.apply(e,Br([],Fr(t),!1)),e}),[]).filter((function(e){return!Vi(t,m,g,e)})).map((function(e){return en(180*e/Math.PI,so)}))),!1))})),v}function Hi(e,t,n,r,o){var i=function(e,t,n,r){var o=t[0]-e[0],i=t[1]-e[1];if(Bs(o)<Ct&&(o=0),Bs(i)<Ct&&(i=0),!o)return r?[0,0]:[0,n];if(!i)return r?[n,0]:[0,0];var a=i/o,s=e[1]-a*e[0];return r?[n,a*(t[0]+n)+s-t[1]]:[(t[1]+n-s)/a-t[0],n]}(e,t,n,r);if(!i)return{isOutside:!1,offset:[0,0]};var a=Qt(e,t),s=Qt(i,e),l=Qt(i,t),c=s>a||l>a,u=Fr(Eo({datas:o,distX:i[0],distY:i[1]}),2);return{offset:[u[0],u[1]],isOutside:c}}function $i(e,t){return e.isBound?e.offset:t.isSnap?Pi(t).offset:0}function Ui(e,t,n,r,o,i){if(!vi(e,"draggable"))return[{isSnap:!1,isBound:!1,offset:0},{isSnap:!1,isBound:!1,offset:0}];var a=as(i.absolutePoses,[t,n]),s=Wa(a),l=s.left,c=s.right,u=s.top,d=s.bottom,p={horizontal:a.map((function(e){return e[1]})),vertical:a.map((function(e){return e[0]}))},h=Wi(e,o,bi(yi(e.props.snapDirections),{left:l,right:c,top:u,bottom:d,center:(l+c)/2,middle:(u+d)/2}),p),f=h.vertical,m=h.horizontal,g=Bi(e,a,i),v=g.vertical,y=g.horizontal,b=f.isSnap,w=m.isSnap,x=f.isBound||v.isBound,S=m.isBound||y.isBound,_=Fr(function(e,t,n,r,o){var i=Fr(t,2),a=i[0],s=i[1],l=Fr(n,2),c=l[0],u=l[1],d=Fr(r,2),p=d[0],h=d[1],f=Fr(o,2),m=f[0],g=f[1],v=-m,y=-g;if(e&&a&&s){v=0,y=0;var b=[];if(c&&u?b.push([0,g],[m,0]):c?b.push([m,0]):u?b.push([0,g]):p&&h?b.push([0,g],[m,0]):p?b.push([m,0]):h&&b.push([0,g]),b.length){b.sort((function(e,t){return Ga(En([a,s],e))-Ga(En([a,s],t))}));var w=b[0];if(w[0]&&Bs(a)>Ct)v=-w[0],y=s*Bs(a+v)/Bs(a)-s;else if(w[1]&&Bs(s)>Ct){var x=s;y=-w[1],v=a*Bs(s+y)/Bs(x)-a}if(e&&u&&c)if(Bs(v)>Ct&&Bs(v)<Bs(m))v*=S=Bs(m)/Bs(v),y*=S;else if(Bs(y)>Ct&&Bs(y)<Bs(g)){var S;v*=S=Bs(g)/Bs(y),y*=S}else v=Ss(-m,v),y=Ss(-g,y)}}else v=a||c?-m:0,y=s||u?-g:0;return[v,y]}(r,[t,n],[x,S],[b,w],[Ss(f.offset,v.offset),Ss(m.offset,y.offset)]),2);return[{isBound:x,isSnap:b,offset:_[0]},{isBound:S,isSnap:w,offset:_[1]}]}function Wi(e,t,n,r){void 0===r&&(r=n);var o=si(li(e),r.vertical,r.horizontal),i=o.horizontal,a=o.vertical,s=t?{horizontal:{isSnap:!1,index:-1},vertical:{isSnap:!1,index:-1}}:Ci(e,n.vertical,n.horizontal,void 0,void 0,void 0,void 0),l=s.horizontal,c=s.vertical,u=$i(i[0],l),d=$i(a[0],c),p=Bs(u),h=Bs(d);return{horizontal:{isBound:i[0].isBound,isSnap:l.isSnap,snapIndex:l.index,offset:u,dist:p,bounds:i,snap:l},vertical:{isBound:a[0].isBound,isSnap:c.isSnap,snapIndex:c.index,offset:d,dist:h,bounds:a,snap:c}}}function qi(e,t,n,r,o,i){return n.map((function(n){var a=Fr(n,2),s=a[0],l=a[1],c=Po(t,s),u=Po(t,l),d=r?function(e,t,n,r){var o=function(e,t,n){var r=li(e),o=r.left,i=r.top,a=r.right,s=r.bottom,l=Fr(n,2),c=l[0],u=l[1],d=Fr(En(n,t),2),p=d[0],h=d[1];Bs(p)<so&&(p=0),Bs(h)<so&&(h=0);var f=h>0,m=p>0,g={isBound:!1,offset:0,pos:0},v={isBound:!1,offset:0,pos:0};if(0===p&&0===h)return{vertical:g,horizontal:v};if(0===p)f?s<u&&(v.pos=s,v.offset=u-s):i>u&&(v.pos=i,v.offset=u-i);else if(0===h)m?a<c&&(g.pos=a,g.offset=c-a):o>c&&(g.pos=o,g.offset=c-o);else{var y=h/p,b=n[1]-y*c,w=0,x=0,S=!1;m&&a<=c?(w=y*a+b,x=a,S=!0):!m&&c<=o&&(w=y*o+b,x=o,S=!0),S&&(w<i||w>s)&&(S=!1),S||(f&&s<=u?(x=((w=s)-b)/y,S=!0):!f&&u<=i&&(x=((w=i)-b)/y,S=!0)),S&&(g.isBound=!0,g.pos=x,g.offset=c-x,v.isBound=!0,v.pos=w,v.offset=u-w)}return{vertical:g,horizontal:v}}(e,t,n),i=o.horizontal,a=o.vertical,s=r?{horizontal:{isSnap:!1},vertical:{isSnap:!1}}:function(e,t,n){var r=Fr(n,2),o=r[0],i=r[1],a=Fr(t,2),s=a[0],l=a[1],c=Fr(En(n,t),2),u=c[0],d=c[1],p=d>0,h=u>0;u=ks(u),d=ks(d);var f={isSnap:!1,offset:0,pos:0},m={isSnap:!1,offset:0,pos:0};if(0===u&&0===d)return{vertical:f,horizontal:m};var g=Ci(e,u?[o]:[],d?[i]:[],[],[],void 0,void 0),v=g.vertical,y=g.horizontal;v.posInfos.filter((function(e){var t=e.pos;return h?t>=s:t<=s})),y.posInfos.filter((function(e){var t=e.pos;return p?t>=l:t<=l})),v.isSnap=v.posInfos.length>0,y.isSnap=y.posInfos.length>0;var b=Pi(v),w=b.isSnap,x=b.guideline,S=Pi(y),_=S.isSnap,C=S.guideline,E=_?C.pos[1]:0,k=w?x.pos[0]:0;if(0===u)_&&(m.isSnap=!0,m.pos=C.pos[1],m.offset=i-m.pos);else if(0===d)w&&(f.isSnap=!0,f.pos=k,f.offset=o-k);else{var z=d/u,P=n[1]-z*o,A=0,D=0,T=!1;w?(A=z*(D=k)+P,T=!0):_&&(D=((A=E)-P)/z,T=!0),T&&(f.isSnap=!0,f.pos=D,f.offset=o-D,m.isSnap=!0,m.pos=A,m.offset=i-A)}return{vertical:f,horizontal:m}}(e,t,n),l=s.horizontal,c=s.vertical,u=Gi(i,l),d=Gi(a,c),p=Bs(u),h=Bs(d);return{horizontal:{isBound:i.isBound,isSnap:l.isSnap,offset:u,dist:p},vertical:{isBound:a.isBound,isSnap:c.isSnap,offset:d,dist:h}}}(e,c,u,o):Wi(e,o,{vertical:[u[0]],horizontal:[u[1]]}),p=d.horizontal,h=p.offset,f=p.isBound,m=p.isSnap,g=d.vertical,v=g.offset,y=g.isBound,b=g.isSnap,w=En(l,s);if(!v&&!h)return{isBound:y||f,isSnap:b||m,sign:w,offset:[0,0]};var x=function(e,t,n,r){var o=Xt(e,t)/Math.PI*180,i=n.vertical,a=i.isBound,s=i.isSnap,l=i.dist,c=n.horizontal,u=c.isBound,d=c.isSnap,p=o%180,h=p<3||p>177,f=p>87&&p<93;return c.dist<l&&(a||s&&!f&&(!r||!h))?"vertical":!u&&(!d||h||r&&f)?"":"horizontal"}(c,u,d,r);if(!x)return{sign:w,isBound:!1,isSnap:!1,offset:[0,0]};var S="vertical"===x,_=[0,0];return _=(_=r||1!==Bs(l[0])||1!==Bs(l[1])||s[0]===l[0]||s[1]===l[1]?Hi(c,u,-(S?v:h),S,i).offset:Eo({datas:i,distX:-v,distY:-h})).map((function(e,t){return e*(w[t]?2/w[t]:0)})),{sign:w,isBound:S?y:f,isSnap:S?b:m,offset:_}}))}function Gi(e,t){return e.isBound?e.offset:t.isSnap?t.offset:0}var Zi={name:"draggable",props:["draggable","throttleDrag","throttleDragRotate","hideThrottleDragRotateLine","startDragRotate","edgeDraggable"],events:["dragStart","drag","dragEnd","dragGroupStart","dragGroup","dragGroupEnd"],requestStyle:function(){return["left","top","right","bottom"]},requestChildStyle:function(){return["left","top","right","bottom"]},render:function(e,t){var n=e.props,r=n.hideThrottleDragRotateLine,o=n.throttleDragRotate,i=n.zoom,a=e.getState(),s=a.dragInfo,l=a.beforeOrigin;if(r||!o||!s)return[];var c=s.dist;if(!c[0]&&!c[1])return[];var u=Ga(c),d=Xt(c,[0,0]);return[t.createElement("div",{className:Aa("line","horizontal","dragline","dashed"),key:"dragRotateGuideline",style:{width:"".concat(u,"px"),transform:"translate(".concat(l[0],"px, ").concat(l[1],"px) rotate(").concat(d,"rad) scaleY(").concat(i,")")}})]},dragStart:function(e,t){var n=t.datas,r=t.parentEvent,o=t.parentGesto,i=e.state,a=i.gestos,s=i.style;if(a.draggable)return!1;a.draggable=o||e.targetGesto,n.datas={},n.left=parseFloat(s.left||"")||0,n.top=parseFloat(s.top||"")||0,n.bottom=parseFloat(s.bottom||"")||0,n.right=parseFloat(s.right||"")||0,n.startValue=[0,0],bo(e,t),To(e,t,"translate"),function(e,t){t.absolutePoses=ss(e.state)}(e,n),n.prevDist=[0,0],n.prevBeforeDist=[0,0],n.isDrag=!1,n.deltaOffset=[0,0];var l=ps(e,t,jr({set:function(e){n.startValue=e}},Do(e,t)));return!1!==(r||ms(e,"onDragStart",l))?(n.isDrag=!0,e.state.dragInfo={startRect:e.getRect(),dist:[0,0]}):(a.draggable=null,n.isPinch=!1),!!n.isDrag&&l},drag:function(e,t){if(t){wo(e,t,"translate");var n=t.datas,r=t.parentEvent,o=t.parentFlag,i=t.isPinch,a=t.deltaOffset,s=t.useSnap,l=t.isRequest,c=t.isGroup,u=t.parentThrottleDrag,d=t.distX,p=t.distY,h=n.isDrag,f=n.prevDist,m=n.prevBeforeDist,g=n.startValue;if(h){a&&(d+=a[0],p+=a[1]);var v=e.props,y=v.parentMoveable,b=c?0:v.throttleDrag||u||0,w=r?0:v.throttleDragRotate||0,x=0,S=!1,_=!1,C=!1,E=!1;if(!r&&w>0&&(d||p)){var k=v.startDragRotate||0,z=en(k+180*Xt([0,0],[d,p])/Math.PI,w)-k,P=p*Math.abs(Math.cos((z-90)/180*Math.PI)),A=Ga([d*Math.abs(Math.cos(z/180*Math.PI)),P]);x=z*Math.PI/180,d=A*Math.cos(x),p=A*Math.sin(x)}if(!i&&!r&&!o){var D=Fr(Ui(e,d,p,w,!s&&l||a,n),2),T=D[0],I=D[1];S=T.isSnap,_=T.isBound,C=I.isSnap,E=I.isBound,d+=T.offset,p+=I.offset}var M=Cn(Co({datas:n,distX:d,distY:p}),g),N=Cn(So({datas:n,distX:d,distY:p}),g);tn(N,so),tn(M,so),w||(S||_||(N[0]=en(N[0],b),M[0]=en(M[0],b)),C||E||(N[1]=en(N[1],b),M[1]=en(M[1],b)));var O=En(M,g),R=En(N,g),j=En(R,f),F=En(O,m);n.prevDist=R,n.prevBeforeDist=O,n.passDelta=j,n.passDist=R;var B=n.left+O[0],L=n.top+O[1],V=n.right-O[0],K=n.bottom-O[1],H=xo(n,"translate(".concat(N[0],"px, ").concat(N[1],"px)"),"translate(".concat(R[0],"px, ").concat(R[1],"px)"));if(Mo(t,H),e.state.dragInfo.dist=r?[0,0]:R,r||y||!j.every((function(e){return!e}))||!F.some((function(e){return!e}))){var $=e.state,U=$.width,W=$.height,q=ps(e,t,jr({transform:H,dist:R,delta:j,translate:N,beforeDist:O,beforeDelta:F,beforeTranslate:M,left:B,top:L,right:V,bottom:K,width:U,height:W,isPinch:i},us({transform:H},t)));return!r&&ms(e,"onDrag",q),q}}}},dragAfter:function(e,t){var n=t.datas,r=n.deltaOffset;return!(!r[0]&&!r[1])&&(n.deltaOffset=[0,0],this.drag(e,jr(jr({},t),{deltaOffset:r})))},dragEnd:function(e,t){var n=t.parentEvent,r=t.datas;if(e.state.dragInfo=null,r.isDrag){r.isDrag=!1;var o=hs(e,t,{});return!n&&ms(e,"onDragEnd",o),o}},dragGroupStart:function(e,t){var n,r,o=t.datas,i=t.clientX,a=t.clientY,s=this.dragStart(e,t);if(!s)return!1;var l=Xo(e,this,"dragStart",[i||0,a||0],t,!1,"draggable"),c=l.childEvents,u=l.eventParams,d=ms(e,"onDragGroupStart",jr(jr({},s),{targets:e.props.targets,events:u}));o.isDrag=!1!==d;var p=null!==(r=null===(n=c[0])||void 0===n?void 0:n.datas.startValue)&&void 0!==r?r:[0,0];return o.throttleOffset=[p[0]%1,p[1]%1],!!o.isDrag&&s},dragGroup:function(e,t){if(t.datas.isDrag){var n=this.drag(e,jr(jr({},t),{parentThrottleDrag:e.props.throttleDrag})),r=Xo(e,this,"drag",t.datas.passDelta,t,!1,"draggable").eventParams;if(n){var o=jr({targets:e.props.targets,events:r},n);return ms(e,"onDragGroup",o),o}}},dragGroupEnd:function(e,t){var n=t.isDrag;if(t.datas.isDrag){this.dragEnd(e,t);var r=Xo(e,this,"dragEnd",[0,0],t,!1,"draggable").eventParams;return ms(e,"onDragGroupEnd",hs(e,t,{targets:e.props.targets,events:r})),n}},request:function(e){var t={},n=e.getRect(),r=0,o=0,i=!1;return{isControl:!1,requestStart:function(e){return i=e.useSnap,{datas:t,useSnap:i}},request:function(e){return"x"in e?r=e.x-n.left:"deltaX"in e&&(r+=e.deltaX),"y"in e?o=e.y-n.top:"deltaY"in e&&(o+=e.deltaY),{datas:t,distX:r,distY:o,useSnap:i}},requestEnd:function(){return{datas:t,isDrag:!0,useSnap:i}}}},unset:function(e){e.state.gestos.draggable=null,e.state.dragInfo=null}};function Yi(e,t){return{fixedPosition:Po(e,t),fixedDirection:t,fixedOffset:[0,0]}}function Xi(e,t){var n=e.allMatrix,r=e.is3d,o=e.width,i=e.height,a=r?4:3,s=function(e,t,n){return[t?e[0]/(t/2)-1:0,n?e[1]/(n/2)-1:0]}(t,o,i);return{fixedPosition:$a(n,t,a),fixedDirection:s,fixedOffset:[o?0:t[0],i?0:t[1]]}}var Ji=Ps("resizable"),Qi={name:"resizable",ableGroup:"size",canPinch:!0,props:["resizable","throttleResize","renderDirections","displayAroundControls","keepRatio","resizeFormat","keepRatioFinally","edge","checkResizableError"],events:["resizeStart","beforeResize","resize","resizeEnd","resizeGroupStart","beforeResizeGroup","resizeGroup","resizeGroupEnd"],render:oi("resizable"),dragControlCondition:Ji,viewClassName:zs("resizable"),dragControlStart:function(e,t){var n,r=t.inputEvent,o=t.isPinch,i=t.isGroup,a=t.parentDirection,s=t.parentGesto,l=t.datas,c=t.parentFixedDirection,u=t.parentEvent,d=os(a,o,r,l),p=e.state,h=p.target,f=p.width,m=p.height,g=p.gestos;if(!d||!h)return!1;if(g.resizable)return!1;g.resizable=s||e.controlGesto,!o&&bo(e,t),l.datas={},l.direction=d,l.startOffsetWidth=f,l.startOffsetHeight=m,l.prevWidth=0,l.prevHeight=0,l.minSize=[0,0],l.startWidth=p.inlineCSSWidth||p.cssWidth,l.startHeight=p.inlineCSSHeight||p.cssHeight,l.maxSize=[1/0,1/0],i||(l.minSize=[p.minOffsetWidth,p.minOffsetHeight],l.maxSize=[p.maxOffsetWidth,p.maxOffsetHeight]);var v=e.props.transformOrigin||"% %";function y(e){l.ratio=e&&isFinite(e)?e:0}function b(e){var t=Yi(l.startPositions,e);l.fixedDirection=t.fixedDirection,l.fixedPosition=t.fixedPosition,l.fixedOffset=t.fixedOffset}function w(t){var n=Xi(e.state,t);l.fixedDirection=n.fixedDirection,l.fixedPosition=n.fixedPosition,l.fixedOffset=n.fixedOffset}function x(e){l.minSize=[Wt("".concat(e[0]),0)||0,Wt("".concat(e[1]),0)||0]}function S(e){var t=[e[0]||1/0,e[1]||1/0];Tt(t[0])&&!isFinite(t[0])||(t[0]=Wt("".concat(t[0]),0)||1/0),Tt(t[1])&&!isFinite(t[1])||(t[1]=Wt("".concat(t[1]),0)||1/0),l.maxSize=t}l.transformOrigin=v&&Dt(v)?v.split(" "):v,l.startOffsetMatrix=p.offsetMatrix,l.startTransformOrigin=p.transformOrigin,l.isWidth=null!==(n=null==t?void 0:t.parentIsWidth)&&void 0!==n?n:!d[0]&&!d[1]||d[0]||!d[1],l.startPositions=ss(e.state),y(f/m),b(c||[-d[0],-d[1]]),l.setFixedDirection=b,l.setFixedPosition=w,l.setMin=x,l.setMax=S;var _=ps(e,t,{direction:d,startRatio:l.ratio,set:function(e){var t=Fr(e,2),n=t[0],r=t[1];l.startWidth=n,l.startHeight=r},setMin:x,setMax:S,setRatio:y,setFixedDirection:b,setFixedPosition:w,setOrigin:function(e){l.transformOrigin=e},dragStart:Zi.dragStart(e,(new vo).dragStart([0,0],t))}),C=u||ms(e,"onResizeStart",_);return l.startFixedDirection=l.fixedDirection,l.startFixedPosition=l.fixedPosition,!1!==C&&(l.isResize=!0,e.state.snapRenderInfo={request:t.isRequest,direction:d}),!!l.isResize&&_},dragControl:function(e,t){var n,r=t.datas,o=t.parentFlag,i=t.isPinch,a=t.parentKeepRatio,s=t.dragClient,l=t.parentDist,c=t.useSnap,u=t.isRequest,d=t.isGroup,p=t.parentEvent,h=t.resolveMatrix,f=r.isResize,m=r.transformOrigin,g=r.startWidth,v=r.startHeight,y=r.prevWidth,b=r.prevHeight,w=r.minSize,x=r.maxSize,S=r.ratio,_=r.startOffsetWidth,C=r.startOffsetHeight,E=r.isWidth;if(f){if(h){var k=e.state.is3d,z=r.startOffsetMatrix,P=r.startTransformOrigin,A=k?4:3,D=Kn(Oo(t)),T=Math.sqrt(D.length);A!==T&&(D=xn(D,T,A));var I=Ao(z,D,P,A),M=Ua(I,_,C,A);r.startPositions=M,r.nextTargetMatrix=D,r.nextAllMatrix=I}var N=Ja(e.props,"resizable"),O=N.resizeFormat,R=N.throttleResize,j=void 0===R?o?0:1:R,F=N.parentMoveable,B=N.keepRatioFinally,L=r.direction,V=L,K=0,H=0;L[0]||L[1]||(V=[1,1]);var $=S&&(null!=a?a:N.keepRatio)||!1,U=Fr(oe(),2),W=U[0],q=U[1];p||(r.setFixedDirection(r.fixedDirection),ms(e,"onBeforeResize",ps(e,t,{startFixedDirection:r.startFixedDirection,startFixedPosition:r.startFixedPosition,setFixedDirection:function(e){var t;return r.setFixedDirection(e),t=Fr(oe(),2),W=t[0],q=t[1],[W,q]},setFixedPosition:function(e){var t;return r.setFixedPosition(e),t=Fr(oe(),2),W=t[0],q=t[1],[W,q]},boundingWidth:W,boundingHeight:q,setSize:function(e){var t;t=Fr(e,2),W=t[0],q=t[1]}},!0)));var G=s;s||(G=!o&&i?function(e,t){return Po(ss(e.state),t)}(e,[0,0]):r.fixedPosition);var Z=[0,0];if(i||(Z=function(e,t,n,r,o,i,a){if(!vi(e,"resizable"))return[0,0];var s=a.fixedDirection,l=a.nextAllMatrix,c=e.state,u=c.allMatrix,d=c.is3d;return wa(e,(function(e,r){return va(l||u,t+e,n+r,s,o,d)}),t,n,r,o,i,a)}(e,W,q,L,G,!c&&u,r)),l&&(!l[0]&&(Z[0]=0),!l[1]&&(Z[1]=0)),$){V[0]&&V[1]&&Z[0]&&Z[1]&&(Bs(Z[0])>Bs(Z[1])?Z[1]=0:Z[0]=0);var Y=!Z[0]&&!Z[1];Y&&ie(),V[0]&&!V[1]||Z[0]&&!Z[1]||Y&&E?(W+=Z[0],q=W/S):(!V[0]&&V[1]||!Z[0]&&Z[1]||Y&&!E)&&(q+=Z[1],W=q*S)}else W+=Z[0],q+=Z[1],W=Math.max(0,W),q=Math.max(0,q);n=Fr(Zt([W,q],w,x,!!$&&S),2),W=n[0],q=n[1],ie(),$&&(d||B)&&(E?q=W/S:W=q*S);var X=[(K=W-_)-y,(H=q-C)-b];r.prevWidth=K,r.prevHeight=H;var J=Vo(e,W,q,G,m,r);if(F||!X.every((function(e){return!e}))||!J.every((function(e){return!e}))){var Q=Zi.drag(e,go(t,e.state,J,!!i,!1,"draggable")),ee=Q.transform,te=g+K,ne=v+H,re=ps(e,t,jr({width:te,height:ne,offsetWidth:Math.round(W),offsetHeight:Math.round(q),startRatio:S,boundingWidth:W,boundingHeight:q,direction:L,dist:[K,H],delta:X,isPinch:!!i,drag:Q},ds({style:{width:"".concat(te,"px"),height:"".concat(ne,"px")},transform:ee},Q,t)));return!p&&ms(e,"onResize",re),re}}function oe(){var e=r.fixedDirection,n=Ms(V,$,r,t);K=n.distWidth,H=n.distHeight;var o=V[0]-e[0]||$?Math.max(_+K,so):_,i=V[1]-e[1]||$?Math.max(C+H,so):C;return $&&_&&C&&(E?i=o/S:o=i*S),[o,i]}function ie(){var e;O&&(e=Fr(O([W,q]),2),W=e[0],q=e[1]),W=en(W,j),q=en(q,j)}},dragControlAfter:function(e,t){var n=t.datas,r=n.isResize,o=n.startOffsetWidth,i=n.startOffsetHeight,a=n.prevWidth,s=n.prevHeight;if(r&&!1!==e.props.checkResizableError){var l=e.state,c=l.width-(o+a),u=l.height-(i+s),d=Bs(c)>3,p=Bs(u)>3;return d&&(n.startWidth+=c,n.startOffsetWidth+=c,n.prevWidth+=c),p&&(n.startHeight+=u,n.startOffsetHeight+=u,n.prevHeight+=u),d||p?this.dragControl(e,t):void 0}},dragControlEnd:function(e,t){var n=t.datas,r=t.parentEvent;if(n.isResize){n.isResize=!1;var o=hs(e,t,{});return!r&&ms(e,"onResizeEnd",o),o}},dragGroupControlCondition:Ji,dragGroupControlStart:function(e,t){var n=t.datas,r=this.dragControlStart(e,jr(jr({},t),{isGroup:!0}));if(!r)return!1;var o=Yo(e,"resizable",t),i=n.startOffsetWidth,a=n.startOffsetHeight;function s(){var e=n.minSize;o.forEach((function(t){var n=t.datas,r=n.minSize,o=n.startOffsetWidth,s=n.startOffsetHeight,l=i*(o?r[0]/o:0),c=a*(s?r[1]/s:0);e[0]=Math.max(e[0],l),e[1]=Math.max(e[1],c)}))}function l(){var e=n.maxSize;o.forEach((function(t){var n=t.datas,r=n.maxSize,o=n.startOffsetWidth,s=n.startOffsetHeight,l=i*(o?r[0]/o:0),c=a*(s?r[1]/s:0);e[0]=Math.min(e[0],l),e[1]=Math.min(e[1],c)}))}var c=Jo(e,this,"dragControlStart",t,(function(t,r){return Qo(e,t,n,r)}));s(),l();var u=function(t){r.setFixedDirection(t),c.forEach((function(r,i){r.setFixedDirection(t),Qo(e,r.moveable,n,o[i])}))};n.setFixedDirection=u;var d=jr(jr({},r),{targets:e.props.targets,events:c.map((function(e){return jr(jr({},e),{setMin:function(t){e.setMin(t),s()},setMax:function(t){e.setMax(t),l()}})})),setFixedDirection:u,setMin:function(e){r.setMin(e),s()},setMax:function(e){r.setMax(e),l()}}),p=ms(e,"onResizeGroupStart",d);return n.isResize=!1!==p,!!n.isResize&&r},dragGroupControl:function(e,t){var n=t.datas;if(n.isResize){var r=Ja(e.props,"resizable");fs(e,"onBeforeResize",(function(n){ms(e,"onBeforeResizeGroup",ps(e,t,jr(jr({},n),{targets:r.targets}),!0))}));var o=this.dragControl(e,jr(jr({},t),{isGroup:!0}));if(o){var i=o.boundingWidth,a=o.boundingHeight,s=o.dist,l=r.keepRatio,c=[i/(i-s[0]),a/(a-s[1])],u=n.fixedPosition,d=Jo(e,this,"dragControl",t,(function(t,n){var r=Fr(Pn(Rn(e.rotation/180*Math.PI,3),[n.datas.originalX*c[0],n.datas.originalY*c[1],1],3),2),o=r[0],i=r[1];return jr(jr({},n),{parentDist:null,parentScale:c,dragClient:Cn(u,[o,i]),parentKeepRatio:l})})),p=jr({targets:r.targets,events:d},o);return ms(e,"onResizeGroup",p),p}}},dragGroupControlEnd:function(e,t){var n=t.isDrag;if(t.datas.isResize){this.dragControlEnd(e,t);var r=Jo(e,this,"dragControlEnd",t);return ms(e,"onResizeGroupEnd",hs(e,t,{targets:e.props.targets,events:r})),n}},request:function(e){var t={},n=0,r=0,o=!1,i=e.getRect();return{isControl:!0,requestStart:function(e){var n;return o=e.useSnap,{datas:t,parentDirection:e.direction||[1,1],parentIsWidth:null===(n=null==e?void 0:e.horizontal)||void 0===n||n,useSnap:o}},request:function(e){return"offsetWidth"in e?n=e.offsetWidth-i.offsetWidth:"deltaWidth"in e&&(n+=e.deltaWidth),"offsetHeight"in e?r=e.offsetHeight-i.offsetHeight:"deltaHeight"in e&&(r+=e.deltaHeight),{datas:t,parentDist:[n,r],parentKeepRatio:e.keepRatio,useSnap:o}},requestEnd:function(){return{datas:t,isDrag:!0,useSnap:o}}}},unset:function(e){e.state.gestos.resizable=null}};function ea(e,t,n,r,o){var i=e.props.groupable,a=e.state,s=a.is3d?4:3,l=t.origin,c=$a(e.state.rootMatrix,En([l[0],l[1]],i?[0,0]:[a.left,a.top]),s),u=Cn([o.left,o.top],c);t.startAbsoluteOrigin=u,t.prevDeg=Xt(u,[n,r])/Math.PI*180,t.defaultDeg=t.prevDeg,t.prevSnapDeg=0,t.loop=0,t.startDist=Qt(u,[n,r])}function ta(e,t,n){var r=n.defaultDeg,o=n.prevDeg,i=o%360,a=Math.floor(o/360);i<0&&(i+=360),i>e&&i>270&&e<90?++a:i<e&&i<90&&e>270&&--a;var s=t*(360*a+e-r);return n.prevDeg=r+s,s}function na(e,t,n,r){return ta(Xt(r.startAbsoluteOrigin,[e,t])/Math.PI*180,n,r)}function ra(e,t,n,r,o,i){var a=e.props.throttleRotate,s=void 0===a?0:a,l=n.prevSnapDeg,c=0,u=!1;if(i){var d=function(e,t,n,r){var o,i=e.props,a=null!==(o=i[wi])&&void 0!==o?o:5,s=i[xi];if(vi(e,"rotatable")){var l=t.pos1,c=t.pos2,u=t.pos3,d=t.pos4,p=t.origin,h=n*Math.PI/180,f=[l,c,u,d].map((function(e){return En(e,p)})),m=f.map((function(e){return Mn(e,h)})),g=Br(Br([],Fr(di(e,f,m,p,n)),!1),Fr(Ki(e,f,m,p,n)),!1);g.sort((function(e,t){return Bs(e-n)-Bs(t-n)}));var v=g.length>0;if(v)return{isSnap:v,dist:v?g[0]:n}}if((null==s?void 0:s.length)&&a){var y=s.slice().sort((function(e,t){return _a(e,r)-_a(t,r)})),b=y[0];if(_a(b,r)<=a)return{isSnap:!0,dist:n+Sa(r,b)-r}}return{isSnap:!1,dist:n}}(e,t,r,o+r);u=d.isSnap,c=o+d.dist}u||(c=en(o+r,s));var p=c-o;return n.prevSnapDeg=p,[p-l,p,c]}function oa(e,t,n){var r=Fr(t,4),o=r[0],i=r[1],a=r[2],s=r[3];if("none"===e)return[];if(At(e))return e.map((function(e){return oa(e,[o,i,a,s],n)[0]}));var l=Fr((e||"top").split("-"),2),c=l[0],u=l[1],d=[o,i];"left"===c?d=[a,o]:"right"===c?d=[i,s]:"bottom"===c&&(d=[s,a]);var p=[(d[0][0]+d[1][0])/2,(d[0][1]+d[1][1])/2],h=es(d,n);if(u){var f="top"===u||"left"===u,m="bottom"===c||"left"===c;p=d[f&&!m||!f&&m?0:1]}return[[p,h]]}function ia(e,t){if(t.isRequest)return"rotatable"===t.requestAble;var n=t.inputEvent.target;if(nn(n,Aa("rotation-control"))||e.props.rotateAroundControls&&nn(n,Aa("around-control"))||nn(n,Aa("control"))&&nn(n,Aa("rotatable")))return!0;var r=e.props.rotationTarget;return!!r&&Ds(r,!0).some((function(e){return!!e&&(n===e||n.contains(e))}))}var aa={name:"rotatable",canPinch:!0,props:["rotatable","rotationPosition","throttleRotate","renderDirections","rotationTarget","rotateAroundControls","edge","resolveAblesWithRotatable","displayAroundControls"],events:["rotateStart","beforeRotate","rotate","rotateEnd","rotateGroupStart","beforeRotateGroup","rotateGroup","rotateGroupEnd"],css:[".rotation {\nposition: absolute;\nheight: 40px;\nwidth: 1px;\ntransform-origin: 50% 100%;\nheight: calc(40px * var(--zoom));\ntop: auto;\nleft: 0;\nbottom: 100%;\nwill-change: transform;\n}\n.rotation .rotation-line {\ndisplay: block;\nwidth: 100%;\nheight: 100%;\ntransform-origin: 50% 50%;\n}\n.rotation .rotation-control {\nborder-color: #4af;\nborder-color: var(--moveable-color);\nbackground:#fff;\ncursor: alias;\n}\n:global .view-rotation-dragging, .rotatable.direction.control {\ncursor: alias;\n}\n.rotatable.direction.control.move {\ncursor: move;\n}\n"],viewClassName:function(e){return e.isDragging("rotatable")?Aa("view-rotation-dragging"):""},render:function(e,t){var n=Ja(e.props,"rotatable"),r=n.rotatable,o=n.rotationPosition,i=n.zoom,a=n.renderDirections,s=n.rotateAroundControls,l=n.resolveAblesWithRotatable,c=e.getState(),u=c.renderPoses,d=c.direction;if(!r)return null;var p=oa(o,u,d),h=[];if(p.forEach((function(e,n){var r=Fr(e,2),o=r[0],a=r[1];h.push(t.createElement("div",{key:"rotation".concat(n),className:Aa("rotation"),style:{transform:"translate(-50%) translate(".concat(o[0],"px, ").concat(o[1],"px) rotate(").concat(a,"rad)")}},t.createElement("div",{className:Aa("line rotation-line"),style:{transform:"scaleX(".concat(i,")")}}),t.createElement("div",{className:Aa("control rotation-control"),style:{transform:"translate(0.5px) scale(".concat(i,")")}})))})),a){var f=Ut(l||{}),m={};f.forEach((function(e){l[e].forEach((function(t){m[t]=e}))}));var g=[];At(a)&&(g=a.map((function(e){var t=m[e];return{data:t?{resolve:t}:{},classNames:t?["move"]:[],dir:e}}))),h.push.apply(h,Br([],Fr(ei(e,"rotatable",g,t)),!1))}return s&&h.push.apply(h,Br([],Fr(ai(e,t)),!1)),h},dragControlCondition:ia,dragControlStart:function(e,t){var n,r,o=t.datas,i=t.clientX,a=t.clientY,s=t.parentRotate,l=t.parentFlag,c=t.isPinch,u=t.isRequest,d=e.state,p=d.target,h=d.left,f=d.top,m=d.direction,g=d.beforeDirection,v=d.targetTransform,y=d.moveableClientRect,b=d.offsetMatrix,w=d.targetMatrix,x=d.allMatrix,S=d.width,_=d.height;if(!u&&!p)return!1;var C=e.getRect();o.rect=C,o.transform=v,o.left=h,o.top=f;var E=function(t){var n=Xi(e.state,t);o.fixedDirection=n.fixedDirection,o.fixedOffset=n.fixedOffset,o.fixedPosition=n.fixedPosition,j&&j.setFixedPosition(t)},k=function(t){var n=function(e,t){var n=e.allMatrix,r=e.is3d,o=e.width,i=e.height,a=r?4:3;return{fixedPosition:$a(n,[o/2*(1+t[0]),i/2*(1+t[1])],a),fixedDirection:t,fixedOffset:[0,0]}}(e.state,t);o.fixedDirection=n.fixedDirection,o.fixedOffset=n.fixedOffset,o.fixedPosition=n.fixedPosition,j&&j.setFixedDirection(t)},z=i,P=a;if(u||c||l){var A=s||0;o.beforeInfo={origin:C.beforeOrigin,prevDeg:A,defaultDeg:A,prevSnapDeg:0,startDist:0},o.afterInfo=jr(jr({},o.beforeInfo),{origin:C.origin}),o.absoluteInfo=jr(jr({},o.beforeInfo),{origin:C.origin,startValue:A})}else{var D=null===(r=t.inputEvent)||void 0===r?void 0:r.target;if(D){var T=D.getAttribute("data-direction")||"",I=po[T];if(I){o.isControl=!0,o.isAroundControl=nn(D,Aa("around-control")),o.controlDirection=I;var M=D.getAttribute("data-resolve");M&&(o.resolveAble=M);var N=function(e,t,n){var r=16===e.length?4:3,o=t.map((function(t){return $a(e,t,r)})),i=n.left,a=n.top;return o.map((function(e){return[e[0]+i,e[1]+a]}))}(d.rootMatrix,d.renderPoses,y);n=Fr(Po(N,I),2),z=n[0],P=n[1]}}o.beforeInfo={origin:C.beforeOrigin},o.afterInfo={origin:C.origin},o.absoluteInfo={origin:C.origin,startValue:C.rotation};var O=E;E=function(t){var n=d.is3d?4:3,r=Fr(Cn(bn(w,n),t),2),i=r[0],a=r[1],s=Pn(b,wn([i,a],n)),l=Pn(x,wn([t[0],t[1]],n));O(t);var c=d.posDelta;o.beforeInfo.origin=En(s,c),o.afterInfo.origin=En(l,c),o.absoluteInfo.origin=En(l,c),ea(e,o.beforeInfo,z,P,y),ea(e,o.afterInfo,z,P,y),ea(e,o.absoluteInfo,z,P,y)},k=function(e){var t=Po([[0,0],[S,0],[0,_],[S,_]],e);E(t)}}o.startClientX=z,o.startClientY=P,o.direction=m,o.beforeDirection=g,o.startValue=0,o.datas={},To(e,t,"rotate");var R=!1,j=!1;o.isControl&&o.resolveAble&&("resizable"===o.resolveAble&&(j=Qi.dragControlStart(e,jr(jr({},new vo("resizable").dragStart([0,0],t)),{parentPosition:o.controlPosition,parentFixedPosition:o.fixedPosition}))));j||(R=Zi.dragStart(e,(new vo).dragStart([0,0],t))),E(function(e){var t=e.props,n=t.groupable,r=t.svgOrigin,o=e.getState(),i=o.offsetWidth,a=o.offsetHeight,s=o.svg,l=o.transformOrigin;if(!n&&s&&r)return Os(r,i,a);return l}(e));var F=ps(e,t,jr(jr({set:function(e){o.startValue=e*Math.PI/180},setFixedDirection:k,setFixedPosition:E},Do(e,t)),{dragStart:R,resizeStart:j})),B=ms(e,"onRotateStart",F);return o.isRotate=!1!==B,d.snapRenderInfo={request:t.isRequest},!!o.isRotate&&F},dragControl:function(e,t){var n,r,o,i=t.datas,a=t.clientDistX,s=t.clientDistY,l=t.parentRotate,c=t.parentFlag,u=t.isPinch,d=t.groupDelta,p=t.resolveMatrix,h=i.beforeDirection,f=i.beforeInfo,m=i.afterInfo,g=i.absoluteInfo,v=i.isRotate,y=i.startValue,b=i.rect,w=i.startClientX,x=i.startClientY;if(v){wo(e,t,"rotate");var S,_,C,E,k,z,P,A,D,T=function(e){return yo(e.datas.beforeTransform,[50,50],100,100).direction}(t),I=h*T,M=e.props.parentMoveable,N=180/Math.PI*y,O=g.startValue,R=!1,j=w+a,F=x+s;if(!c&&"parentDist"in t){var B=t.parentDist;_=B,k=B,A=B}else u||c?(_=ta(l,h,f),k=ta(l,I,m),A=ta(l,I,g)):(_=na(j,F,h,f),k=na(j,F,I,m),A=na(j,F,I,g),R=!0);if(ms(e,"onBeforeRotate",ps(e,t,{beforeRotation:C=N+_,rotation:z=N+k,absoluteRotation:D=O+A,setRotation:function(e){_=k=e-N,A=k}},!0)),S=(n=Fr(ra(e,b,f,_,N,R),3))[0],_=n[1],C=n[2],E=(r=Fr(ra(e,b,m,k,N,R),3))[0],k=r[1],z=r[2],P=(o=Fr(ra(e,b,g,A,O,R),3))[0],A=o[1],D=o[2],P||E||S||M||p){var L=xo(i,"rotate(".concat(z,"deg)"),"rotate(".concat(k,"deg)"));p&&(i.fixedPosition=Bo(e,i.targetAllTransform,i.fixedDirection,i.fixedOffset,i));var V=function(e,t,n){var r=n.fixedDirection,o=n.fixedPosition,i=n.fixedOffset;return Lo(e,"rotate(".concat(t,"deg)"),r,o,i,n)}(e,k,i),K=En(Cn(d||[0,0],V),i.prevInverseDist||[0,0]);i.prevInverseDist=V,i.requestValue=null;var H=Fo(e,L,K,u,t),$=H,U=Qt([j,F],g.startAbsoluteOrigin)-g.startDist,W=void 0;if("resizable"===i.resolveAble){var q=Qi.dragControl(e,jr(jr({},go(t,e.state,[t.deltaX,t.deltaY],!!u,!1,"resizable")),{resolveMatrix:!0,parentDistance:U}));q&&(W=q,$=ds($,q,t))}var G=ps(e,t,jr(jr({delta:E,dist:k,rotate:z,rotation:z,beforeDist:_,beforeDelta:S,beforeRotate:C,beforeRotation:C,absoluteDist:A,absoluteDelta:P,absoluteRotate:D,absoluteRotation:D,isPinch:!!u,resize:W},H),$));return ms(e,"onRotate",G),G}}},dragControlEnd:function(e,t){var n=t.datas;if(n.isRotate){n.isRotate=!1;var r=hs(e,t,{});return ms(e,"onRotateEnd",r),r}},dragGroupControlCondition:ia,dragGroupControlStart:function(e,t){var n=t.datas,r=e.state,o=r.left,i=r.top,a=r.beforeOrigin,s=this.dragControlStart(e,t);if(!s)return!1;s.set(n.beforeDirection*e.rotation);var l=Jo(e,this,"dragControlStart",t,(function(e,t){var n=e.state,r=n.left,s=n.top,l=n.beforeOrigin,c=Cn(En([r,s],[o,i]),En(l,a));return t.datas.startGroupClient=c,t.datas.groupClient=c,jr(jr({},t),{parentRotate:0})})),c=ms(e,"onRotateGroupStart",jr(jr({},s),{targets:e.props.targets,events:l}));return n.isRotate=!1!==c,!!n.isRotate&&s},dragGroupControl:function(e,t){var n=t.datas;if(n.isRotate){fs(e,"onBeforeRotate",(function(n){ms(e,"onBeforeRotateGroup",ps(e,t,jr(jr({},n),{targets:e.props.targets}),!0))}));var r=this.dragControl(e,t);if(r){var o=n.beforeDirection,i=r.beforeDist,a=i/180*Math.PI,s=Jo(e,this,"dragControl",t,(function(e,t){var n=t.datas.startGroupClient,r=Fr(t.datas.groupClient,2),s=r[0],l=r[1],c=Fr(Mn(n,a*o),2),u=c[0],d=c[1],p=[u-s,d-l];return t.datas.groupClient=[u,d],jr(jr({},t),{parentRotate:i,groupDelta:p})}));e.rotation=o*r.beforeRotation;var l=jr({targets:e.props.targets,events:s,set:function(t){e.rotation=t},setGroupRotation:function(t){e.rotation=t}},r);return ms(e,"onRotateGroup",l),l}}},dragGroupControlEnd:function(e,t){var n=t.isDrag;if(t.datas.isRotate){this.dragControlEnd(e,t);var r=Jo(e,this,"dragControlEnd",t);return ms(e,"onRotateGroupEnd",hs(e,t,{targets:e.props.targets,events:r})),n}},request:function(e){var t={},n=0,r=e.getRotation();return{isControl:!0,requestStart:function(){return{datas:t}},request:function(e){return"deltaRotate"in e?n+=e.deltaRotate:"rotate"in e&&(n=e.rotate-r),{datas:t,parentDist:n}},requestEnd:function(){return{datas:t,isDrag:!0}}}}};function sa(e,t){return function(e,t){var n,r=e.direction,o=e.classNames,i=e.size,a=e.pos,s=e.zoom,l=e.key,c="horizontal"===r,u=c?"Y":"X";return t.createElement("div",{key:l,className:o.join(" "),style:(n={},n[c?"width":"height"]="".concat(i),n.transform="translate(".concat(a[0],", ").concat(a[1],") translate").concat(u,"(-50%) scale").concat(u,"(").concat(s,")"),n)})}(jr(jr({},e),{classNames:Br([Aa("line","guideline",e.direction)],Fr(e.classNames),!1).filter((function(e){return e})),size:e.size||"".concat(e.sizeValue,"px"),pos:e.pos||e.posValue.map((function(e){return"".concat(en(e,.1),"px")}))}),t)}function la(e,t,n,r,o,i,a,s){var l=e.props.zoom;return n.map((function(e,n){var c=e.type,u=e.pos,d=[0,0];return d[a]=r,d[a?0:1]=-o+u,sa({key:"".concat(t,"TargetGuideline").concat(n),classNames:[Aa("target","bold",c)],posValue:d,sizeValue:i,zoom:l,direction:t},s)}))}function ca(e,t,n,r,o,i){var a=e.props,s=a.zoom,l=a.isDisplayInnerSnapDigit,c="horizontal"===t?mi:gi,u=o[c.start],d=o[c.end];return n.filter((function(e){var t=e.hide,n=e.elementRect;if(t)return!1;if(l&&n){var r=n.rect;if(r[c.start]<=u&&d<=r[c.end])return!1}return!0})).map((function(e,n){var o=e.pos,a=e.size,l=e.element,c=e.className,u=[-r[0]+o[0],-r[1]+o[1]];return sa({key:"".concat(t,"-default-guideline-").concat(n),classNames:l?[Aa("bold"),c]:[Aa("normal"),c],direction:t,posValue:u,sizeValue:a,zoom:s},i)}))}function ua(e,t,n,r,o,i,a,s){var l,c=e.props,u=c.snapDigit,d=void 0===u?0:u,p=c.isDisplaySnapDigit,h=void 0===p||p,f=c.snapDistFormat,m=void 0===f?function(e,t){return e}:f,g=c.zoom,v="horizontal"===t?"X":"Y",y="vertical"===t?"height":"width",b=Math.abs(o),w=h?parseFloat(b.toFixed(d)):0;return s.createElement("div",{key:"".concat(t,"-").concat(n,"-guideline-").concat(r),className:Aa("guideline-group",t),style:(l={left:"".concat(i[0],"px"),top:"".concat(i[1],"px")},l[y]="".concat(b,"px"),l)},sa({direction:t,classNames:[Aa(n),a],size:"100%",posValue:[0,0],sizeValue:b,zoom:g},s),s.createElement("div",{className:Aa("size-value","gap"),style:{transform:"translate".concat(v,"(-50%) scale(").concat(g,")")}},w>0?m(w,t):""))}function da(e,t,n,r,o){var i=e.props.isDisplayInnerSnapDigit,a=[];return["vertical","horizontal"].forEach((function(s){var l=t.filter((function(e){return e.type===s})),c="vertical"===s?1:0,u=c?0:1,d=function(e,t,n,r){var o="vertical"===e?0:1,i="vertical"===e?1:0,a=o?mi:gi,s=n[a.start],l=n[a.end];return ws(t,(function(e){return e.pos[o]})).map((function(t){var n=[],c=[];return t.forEach((function(t){var u,d,p=t.element,h=t.elementRect.rect;if(h[a.end]<s)n.push(t);else if(l<h[a.start])c.push(t);else if(h[a.start]<=s&&l<=h[a.end]&&r){var f=t.pos,m={element:p,rect:jr(jr({},h),(u={},u[a.end]=h[a.start],u))},g={element:p,rect:jr(jr({},h),(d={},d[a.start]=h[a.end],d))},v=[0,0],y=[0,0];v[o]=f[o],v[i]=f[i],y[o]=f[o],y[i]=f[i]+t.size,n.push({type:e,pos:v,size:0,elementRect:m,direction:"",elementDirection:"end"}),c.push({type:e,pos:y,size:0,elementRect:g,direction:"",elementDirection:"start"})}})),n.sort((function(e,t){return t.pos[i]-e.pos[i]})),c.sort((function(e,t){return e.pos[i]-t.pos[i]})),{total:t,start:n,end:c,inner:[]}}))}(s,l,r,i),p=c?gi:mi,h=c?mi:gi,f=r[p.start],m=r[p.end];d.forEach((function(t){var i=t.total,l=t.start,d=t.end,g=t.inner,v=n[u]+i[0].pos[u]-r[h.start],y=r;l.forEach((function(t){var r=t.elementRect.rect,i=y[p.start]-r[p.end];if(i>0){var l=[0,0];l[c]=n[c]+y[p.start]-f-i,l[u]=v,a.push(ua(e,s,"dashed",a.length,i,l,t.className,o))}y=r})),y=r,d.forEach((function(t){var r=t.elementRect.rect,i=r[p.start]-y[p.end];if(i>0){var l=[0,0];l[c]=n[c]+y[p.end]-f,l[u]=v,a.push(ua(e,s,"dashed",a.length,i,l,t.className,o))}y=r})),g.forEach((function(t){var r=t.elementRect.rect,i=f-r[p.start],l=r[p.end]-m,d=[0,0],h=[0,0];d[c]=n[c]-i,d[u]=v,h[c]=n[c]+m-f,h[u]=v,a.push(ua(e,s,"dashed",a.length,i,d,t.className,o)),a.push(ua(e,s,"dashed",a.length,l,h,t.className,o))}))}))})),a}function pa(e){var t,n,r=e.state,o=r.containerClientRect,i=r.hasFixed,a=o.overflow,s=o.scrollHeight,l=o.scrollWidth,c=o.clientHeight,u=o.clientWidth,d=o.clientLeft,p=o.clientTop,h=e.props,f=h.snapGap,m=void 0===f||f,g=h.verticalGuidelines,v=h.horizontalGuidelines,y=h.snapThreshold,b=void 0===y?5:y,w=h.maxSnapElementGuidelineDistance,x=void 0===w?1/0:w,S=h.isDisplayGridGuidelines,_=Wa(ss(e.state)),C=_.top,E=_.left,k=_.bottom,z=_.right,P={top:C,left:E,bottom:k,right:z,center:(E+z)/2,middle:(C+k)/2},A=function(e){var t=e.state,n=e.props.elementGuidelines,r=void 0===n?[]:n;if(!r.length)return t.elementRects=[],[];var o=(t.elementRects||[]).filter((function(e){return!e.refresh})),i=r.map((function(e){return Pt(e)&&"element"in e?jr(jr({},e),{element:As(e.element,!0)}):{element:As(e,!0)}})).filter((function(e){return e.element})),a=function(e,t){return Yn(e,t,er)}(o.map((function(e){return e.element})),i.map((function(e){return e.element}))),s=a.maintained,l=a.added,c=[];s.forEach((function(e){var t=Fr(e,2),n=t[0],r=t[1];c[r]=o[n]})),function(e,t){if(!t.length)return[];var n=e.props.groupable,r=e.state,o=r.containerClientRect,i=r.rootMatrix,a=r.is3d,s=r.offsetDelta,l=a?4:3,c=Fr(function(e,t,n){var r=$a(e,[t.clientLeft,t.clientTop],n);return[t.left+r[0],t.top+r[1]]}(i,o,l),2),u=c[0],d=c[1],p=n?0:s[0],h=n?0:s[1];return t.map((function(e){var t=e.element.getBoundingClientRect(),n=t.left-u-p,r=t.top-d-h,o=r+t.height,a=n+t.width,s=Fr(_s(i,[n,r],l),2),c=s[0],f=s[1],m=Fr(_s(i,[a,o],l),2),g=m[0],v=m[1];return jr(jr({},e),{rect:{left:c,right:g,top:f,bottom:v,center:(c+g)/2,middle:(f+v)/2}})}))}(e,l.map((function(e){return i[e]}))).map((function(e,t){c[l[t]]=e})),t.elementRects=c;var u=yi(e.props.elementSnapDirections),d=[];return c.forEach((function(e){var t=e.element,n=e.top,r=void 0===n?u.top:n,o=e.left,i=void 0===o?u.left:o,a=e.right,s=void 0===a?u.right:a,l=e.bottom,c=void 0===l?u.bottom:l,p=e.center,h=void 0===p?u.center:p,f=e.middle,m=void 0===f?u.middle:f,g=e.className,v=e.rect,y=bi({top:r,right:s,left:i,bottom:c,center:h,middle:m},v),b=y.horizontal,w=y.vertical,x=y.horizontalNames,S=y.verticalNames,_=v.top,C=v.left,E=v.right-C,k=v.bottom-_,z=[E,k];w.forEach((function(n,r){d.push({type:"vertical",element:t,pos:[en(n,.1),_],size:k,sizes:z,className:g,elementRect:e,elementDirection:fi[S[r]]||S[r],direction:""})})),b.forEach((function(n,r){d.push({type:"horizontal",element:t,pos:[C,en(n,.1)],size:E,sizes:z,className:g,elementRect:e,elementDirection:fi[x[r]]||x[r],direction:""})}))})),d}(e),D=Br([],Fr(A),!1),T=(null!==(n=null===(t=r.snapThresholdInfo)||void 0===t?void 0:t.multiples)&&void 0!==n?n:[1,1]).map((function(e){return e*b}));m&&D.push.apply(D,Br([],Fr(function(e,t,n){var r=e.props,o=r.maxSnapElementGuidelineDistance,i=void 0===o?1/0:o,a=r.maxSnapElementGapDistance,s=void 0===a?1/0:a,l=e.state.elementRects,c=[];return[["vertical",mi,gi],["horizontal",gi,mi]].forEach((function(e){var r=Fr(e,3),o=r[0],a=r[1],u=r[2],d=t[a.start],p=t[a.end],h=t[a.center],f=t[u.start],m=t[u.end],g={left:n[0],top:n[1]};function v(e){var t=e.rect,n=g[a.start];return t[a.end]<d+n?d-t[a.end]:p-n<t[a.start]?t[a.start]-p:-1}var y=l.filter((function(e){var t=e.rect;return!(t[u.start]>m||t[u.end]<f)&&v(e)>0})).sort((function(e,t){return v(e)-v(t)})),b=[];y.forEach((function(e){y.forEach((function(t){if(e!==t){var n=e.rect,r=t.rect,o=n[u.start],i=n[u.end],a=r[u.start];o>r[u.end]||a>i||b.push([e,t])}}))})),b.forEach((function(e){var n=Fr(e,2),r=n[0],l=n[1],u=r.rect,f=l.rect,m=u[a.start],v=u[a.end],y=f[a.start],b=f[a.end],w=g[a.start],x=0,S=0,_=!1,C=!1,E=!1;if(v<=d&&p<=y){if(C=!0,Bs((S=v+(x=(y-v-(p-d))/2)+(p-d)/2)-h)>w)return}else if(v<y&&b<d+w){if(_=!0,Bs((S=b+(x=y-v))-d)>w)return}else{if(!(v<y&&p-w<m))return;if(E=!0,Bs((S=m-(x=y-v))-p)>w)return}x&&ha(t,f,o,i)&&(x>s||c.push({type:o,pos:"vertical"===o?[S,0]:[0,S],element:l.element,size:0,className:l.className,isStart:_,isCenter:C,isEnd:E,gap:x,hide:!0,gapRects:[r,l],direction:"",elementDirection:""}))}))})),c}(e,P,T)),!1));var I=jr({},r.snapOffset||{left:0,top:0,bottom:0,right:0});if(D.push.apply(D,Br([],Fr(function(e,t,n,r,o,i,a){void 0===r&&(r=0);void 0===o&&(o=0);var s=e.props,l=e.state,c=s.snapGridWidth,u=void 0===c?0:c,d=s.snapGridHeight,p=void 0===d?0:d,h=[],f=i.left,m=i.top,g=[0,0];!function(e,t,n,r){var o,i,a=e.props,s=e.state,l=a.snapGridAll,c=a.snapGridWidth,u=void 0===c?0:c,d=a.snapGridHeight,p=void 0===d?0:d,h=s.snapRenderInfo,f=h&&((null===(o=h.direction)||void 0===o?void 0:o[0])||(null===(i=h.direction)||void 0===i?void 0:i[1])),m=e.moveables;if(l&&m&&f&&(u||p)){if(s.snapThresholdInfo)return;s.snapThresholdInfo={multiples:[1,1],offset:[0,0]};var g=e.getRect(),v=g.children,y=h.direction;if(v){var b=y.map((function(e,o){var i=0===o?{snapSize:u,posName:"left",sizeName:"width",clientOffset:r.left-t}:{snapSize:p,posName:"top",sizeName:"height",clientOffset:r.top-n},a=i.snapSize,s=i.posName,l=i.sizeName,c=i.clientOffset;if(!a)return{dir:e,multiple:1,snapSize:a,snapOffset:0};var d,h=g[l],f=g[s],m=(d=v.map((function(e){return[e[s]-f,e[l],h-e[l]-e[s]+f]})),d.reduce((function(e,t){return e.concat(t)}),[])).filter((function(e){return e})).sort((function(e,t){return e-t})),y=m[0],b=m.map((function(e){return en(e/y,.1)*a})),w=1,x=en(h/y,.1);for(w=1;w<=10&&!b.every((function(e){return e*w%1==0}));++w);var S=(1-e)/2,_=kt(f-c,f-c+h,S,1-S);return{multiple:x*w,dir:e,snapSize:a,snapOffset:Math.round(_/a)}})),w=b.map((function(e){return e.multiple||1}));s.snapThresholdInfo.multiples=w,s.snapThresholdInfo.offset=b.map((function(e){return e.snapOffset})),b.forEach((function(e,t){e.snapSize}))}}else s.snapThresholdInfo=null}(e,r,o,i);var v=l.snapThresholdInfo,y=u,b=p;v&&(u*=v.multiples[0]||1,p*=v.multiples[1]||1,g=v.offset);if(p){for(var w=function(e){h.push({type:"horizontal",pos:[f,en(g[1]*b+e-o+m,.1)],className:Aa("grid-guideline"),size:t,hide:!a,direction:"",grid:!0})},x=0;x<=2*n;x+=p)w(x);for(x=-p;x>=-n;x-=p)w(x)}if(u){for(w=function(e){h.push({type:"vertical",pos:[en(g[0]*y+e-r+f,.1),m],className:Aa("grid-guideline"),size:n,hide:!a,direction:"",grid:!0})},x=0;x<=2*t;x+=u)w(x);for(x=-u;x>=-t;x-=u)w(x)}return h}(e,a?l:u,a?s:c,d,p,I,S)),!1)),i){var M=o.left,N=o.top;I.left+=M,I.top+=N,I.right+=M,I.bottom+=N}return D.push.apply(D,Br([],Fr(ma(v||!1,g||!1,a?l:u,a?s:c,d,p,I)),!1)),D=D.filter((function(e){var t=e.element,n=e.elementRect,r=e.type;if(!t||!n)return!0;var o=n.rect;return ha(P,o,r,x)})),D}function ha(e,t,n,r){return"horizontal"===n?Bs(e.right-t.left)<=r||Bs(e.left-t.right)<=r||e.left<=t.right&&t.left<=e.right:"vertical"!==n||(Bs(e.bottom-t.top)<=r||Bs(e.top-t.bottom)<=r||e.top<=t.bottom&&t.top<=e.bottom)}function fa(e,t){return e?e.map((function(e){var n=Pt(e)?e:{pos:e},r=n.pos;return Tt(r)?n:jr(jr({},n),{pos:Wt(r,t)})})):[]}function ma(e,t,n,r,o,i,a){void 0===o&&(o=0),void 0===i&&(i=0),void 0===a&&(a={left:0,top:0,right:0,bottom:0});var s=[],l=a.left,c=a.top,u=a.bottom,d=n+a.right-l,p=r+u-c;return fa(e,p).forEach((function(e){s.push({type:"horizontal",pos:[l,en(e.pos-i+c,.1)],size:d,className:e.className,direction:""})})),fa(t,d).forEach((function(e){s.push({type:"vertical",pos:[en(e.pos-o+l,.1),c],size:p,className:e.className,direction:""})})),s}function ga(e){var t=e.state,n=t.container,r=e.props.snapContainer||n;if(t.snapContainer===r&&t.guidelines&&t.guidelines.length)return!1;var o=t.containerClientRect,i={left:0,top:0,bottom:0,right:0};if(n!==r){var a=As(r,!0);if(a){var s=rs(a),l=Ts(t,[s.left-o.left,s.top-o.top]),c=Ts(t,[s.right-o.right,s.bottom-o.bottom]);i.left=en(l[0],1e-5),i.top=en(l[1],1e-5),i.right=en(c[0],1e-5),i.bottom=en(c[1],1e-5)}}return t.snapContainer=r,t.snapOffset=i,t.guidelines=pa(e),t.enableSnap=!0,!0}function va(e,t,n,r,o,i){var a=Ua(e,t,n,i?4:3);return as(a,En(o,Po(a,r)))}function ya(e){return e?e/Bs(e):0}function ba(e,t,n,r,o,i){var a=function(e,t,n){var r=[];if(n)1!==Bs(t[0])||1!==Bs(t[1])?r.push([t,[-1,-1]],[t,[-1,1]],[t,[1,-1]],[t,[1,1]]):r.push([t,[e[0],-e[1]]],[t,[-e[0],e[1]]]),r.push([t,e]);else if(e[0]&&e[1]||!e[0]&&!e[1]){var o=e[0]?e:[1,1];[1,-1].forEach((function(e){[1,-1].forEach((function(n){var i=[e*o[0],n*o[1]];t[0]===i[0]&&t[1]===i[1]||r.push([t,i])}))}))}else e[0]?(1===Bs(t[0])?[1]:[1,-1]).forEach((function(n){r.push([[t[0],-1],[n*e[0],-1]],[[t[0],0],[n*e[0],0]],[[t[0],1],[n*e[0],1]])})):e[1]&&(1===Bs(t[1])?[1]:[1,-1]).forEach((function(n){r.push([[-1,t[1]],[-1,n*e[1]]],[[0,t[1]],[0,n*e[1]]],[[1,t[1]],[1,n*e[1]]])}));return r}(n,i.fixedDirection,r),s=Li(e,t,n,r),l=Br(Br([],Fr(qi(e,t,a,r,o,i)),!1),Fr(Fi(e,s,i)),!1),c=Ii(l,0),u=Ii(l,1);return{width:{isBound:c.isBound,offset:c.offset[0]},height:{isBound:u.isBound,offset:u.offset[1]}}}function wa(e,t,n,r,o,i,a,s){for(var l=ss(e.state),c=e.props.keepRatio,u=0,d=0,p=0;p<2;++p){var h=ba(e,t(u,d),o,c,a,s),f=h.width,m=h.height,g=f.isBound,v=m.isBound,y=f.offset,b=m.offset;if(1===p&&(g||(y=0),v||(b=0)),0===p&&a&&!g&&!v)return[0,0];if(c){var w=Bs(y)*(n?1/n:1),x=Bs(b)*(r?1/r:1);(g&&v?w<x:v||!g&&w<x)?y=n*b/r:b=r*y/n}u+=y,d+=b}if(!c&&o[0]&&o[1]){var S=function(e,t,n,r,o){var i=[-n[0],-n[1]],a=e.state,s=a.width,l=a.height,c=e.props.bounds,u=1/0,d=1/0;if(c){var p=[[n[0],-n[1]],[-n[0],n[1]]],h=c.left,f=void 0===h?-1/0:h,m=c.top,g=void 0===m?-1/0:m,v=c.right,y=void 0===v?1/0:v,b=c.bottom,w=void 0===b?1/0:b;p.forEach((function(e){var n=e[0]!==i[0],a=e[1]!==i[1],c=Po(t,e),p=360*Xt(r,c)/Math.PI;if(a){var h=c.slice();(Bs(p-360)<2||Bs(p-180)<2)&&(h[1]=r[1]);var m=Hi(r,h,(r[1]<c[1]?w:g)-c[1],!1,o),v=Fr(m.offset,2)[1],b=m.isOutside;isNaN(v)||(d=l+(b?1:-1)*Bs(v))}if(n){h=c.slice(),(Bs(p-90)<2||Bs(p-270)<2)&&(h[0]=r[0]);var x=Hi(r,h,(r[0]<c[0]?y:f)-c[0],!0,o),S=Fr(x.offset,1)[0],_=x.isOutside;isNaN(S)||(u=s+(_?1:-1)*Bs(S))}}))}return{maxWidth:u,maxHeight:d}}(e,l,o,i,s),_=S.maxWidth,C=S.maxHeight,E=Fr(function(e,t,n,r,o,i,a,s,l){var c=Po(t,a),u=Wi(e,s,{vertical:[c[0]],horizontal:[c[1]]}),d=u.horizontal.offset,p=u.vertical.offset;if(en(p,ao)||en(d,ao)){var h=Fr(Eo({datas:l,distX:-p,distY:-d}),2),f=h[0],m=h[1];return[Math.min(o||1/0,n+a[0]*f)-n,Math.min(i||1/0,r+a[1]*m)-r]}return[0,0]}(e,t(u,d).map((function(e){return e.map((function(e){return en(e,ao)}))})),n+u,r+d,_,C,o,a,s),2);u+=y=E[0],d+=b=E[1]}return[u,d]}function xa(e){return e<0&&(e=e%360+360),e%=360}function Sa(e,t){t=xa(t);var n=Math.floor(e/360),r=360*n+360-t,o=360*n+t;return Bs(e-r)<Bs(e-o)?r:o}function _a(e,t){e=xa(e),t=xa(t);var n=xa(e-t);return Math.min(n,360-n)}function Ca(e,t,n,r,o){if(!vi(e,"scalable"))return[0,0];var i=o.startOffsetWidth,a=o.startOffsetHeight,s=o.fixedPosition,l=o.fixedDirection,c=o.is3d,u=wa(e,(function(e,n){return va(function(e,t){var n=e.transformOrigin,r=e.offsetMatrix,o=e.is3d,i=e.targetMatrix,a=o?4:3;return Ao(r,_n(e.targetAllTransform||i,Fn(t,a),a),n,a)}(o,Cn(t,[e/i,n/a])),i,a,l,s,c)}),i,a,n,s,r,o);return[u[0]/i,u[1]/a]}function Ea(e){var t=[];return e.forEach((function(e){e.guidelineInfos.forEach((function(n){var r=n.guideline;Kt(t,(function(e){return e.guideline===r}))||(r.direction="",t.push({guideline:r,posInfo:e}))}))})),t.map((function(e){var t=e.guideline,n=e.posInfo;return jr(jr({},t),{direction:n.direction})}))}function ka(e,t,n,r,o,i){var a=si(li(e,i),t,n),s=a.vertical,l=a.horizontal,c={left:!1,top:!1,right:!1,bottom:!1};s.forEach((function(e){e.isBound&&("start"===e.direction&&(c.left=!0),"end"===e.direction&&(c.right=!0),r.push({type:"bounds",pos:e.pos}))})),l.forEach((function(e){e.isBound&&("start"===e.direction&&(c.top=!0),"end"===e.direction&&(c.bottom=!0),o.push({type:"bounds",pos:e.pos}))}));var u=function(e){var t=e.props.innerBounds,n={left:!1,top:!1,right:!1,bottom:!1};if(!t)return{boundMap:n,vertical:[],horizontal:[]};var r=e.getRect(),o=[r.pos1,r.pos2,r.pos3,r.pos4],i=Po(o,[0,0]),a=t.left,s=t.top,l=t.width,c=t.height,u=[[a,s],[a,s+c]],d=[[a,s],[a+l,s]],p=[[a+l,s],[a+l,s+c]],h=[[a,s+c],[a+l,s+c]],f=Li(e,o,[0,0],!1),m=[],g=[];return f.forEach((function(e){var t=e.line,r=e.lineConstants,o=Mi(i,t),f=o.horizontal,v=o.vertical,y=ji(t,r,d,v,1,!0),b=ji(t,r,h,v,1,!0),w=ji(t,r,u,f,1,!0),x=ji(t,r,p,f,1,!0);y.isBound&&!n.top&&(m.push(s),n.top=!0),b.isBound&&!n.bottom&&(m.push(s+c),n.bottom=!0),w.isBound&&!n.left&&(g.push(a),n.left=!0),x.isBound&&!n.right&&(g.push(a+l),n.right=!0)})),{boundMap:n,horizontal:m,vertical:g}}(e),d=u.boundMap,p=u.vertical,h=u.horizontal;return p.forEach((function(e){Vt(r,(function(t){var n=t.type,r=t.pos;return"bounds"===n&&r===e}))>=0||r.push({type:"bounds",pos:e})})),h.forEach((function(e){Vt(o,(function(t){var n=t.type,r=t.pos;return"bounds"===n&&r===e}))>=0||o.push({type:"bounds",pos:e})})),{boundMap:c,innerBoundMap:d}}var za=Ps("",["resizable","scalable"]),Pa={name:"snappable",dragRelation:"strong",props:["snappable","snapContainer","snapDirections","elementSnapDirections","snapGap","snapGridWidth","snapGridHeight","isDisplaySnapDigit","isDisplayInnerSnapDigit","isDisplayGridGuidelines","snapDigit","snapThreshold","snapRenderThreshold","snapGridAll",wi,xi,Si,_i,"horizontalGuidelines","verticalGuidelines","elementGuidelines","bounds","innerBounds","snapDistFormat","maxSnapElementGuidelineDistance","maxSnapElementGapDistance"],events:["snap","bound"],css:[":host {\n--bounds-color: #d66;\n}\n.guideline {\npointer-events: none;\nz-index: 2;\n}\n.guideline.bounds {\nbackground: #d66;\nbackground: var(--bounds-color);\n}\n.guideline-group {\nposition: absolute;\ntop: 0;\nleft: 0;\n}\n.guideline-group .size-value {\nposition: absolute;\ncolor: #f55;\nfont-size: 12px;\nfont-size: calc(12px * var(--zoom));\nfont-weight: bold;\n}\n.guideline-group.horizontal .size-value {\ntransform-origin: 50% 100%;\ntransform: translateX(-50%);\nleft: 50%;\nbottom: 5px;\nbottom: calc(2px + 3px * var(--zoom));\n}\n.guideline-group.vertical .size-value {\ntransform-origin: 0% 50%;\ntop: 50%;\ntransform: translateY(-50%);\nleft: 5px;\nleft: calc(2px + 3px * var(--zoom));\n}\n.guideline.gap {\nbackground: #f55;\n}\n.size-value.gap {\ncolor: #f55;\n}\n"],render:function(e,t){var n=e.state,r=n.top,o=n.left,i=n.pos1,a=n.pos2,s=n.pos3,l=n.pos4,c=n.snapRenderInfo,u=e.props.snapRenderThreshold,d=void 0===u?1:u;if(!c||!c.render||!vi(e,""))return js(e,"boundMap",{left:!1,top:!1,right:!1,bottom:!1},(function(e){return JSON.stringify(e)})),js(e,"innerBoundMap",{left:!1,top:!1,right:!1,bottom:!1},(function(e){return JSON.stringify(e)})),[];n.guidelines=pa(e);var p=Math.min(i[0],a[0],s[0],l[0]),h=Math.min(i[1],a[1],s[1],l[1]),f=c.externalPoses||[],m=ss(e.state),g=[],v=[],y=[],b=[],w=[],x=Wa(m),S=x.width,_=x.height,C=x.top,E=x.left,k=x.bottom,z=x.right,P={left:E,right:z,top:C,bottom:k,center:(E+z)/2,middle:(C+k)/2},A=f.length>0,D=A?Wa(f):{};if(!c.request){if(c.direction&&w.push(Di(e,m,c.direction,d,d)),c.snap){var T=Wa(m);c.center&&(T.middle=(T.top+T.bottom)/2,T.center=(T.left+T.right)/2),w.push(zi(e,T,d,d))}A&&(c.center&&(D.middle=(D.top+D.bottom)/2,D.center=(D.left+D.right)/2),w.push(zi(e,D,d,d))),w.forEach((function(e){var t=e.vertical.posInfos,n=e.horizontal.posInfos;g.push.apply(g,Br([],Fr(t.filter((function(e){return e.guidelineInfos.some((function(e){return!e.guideline.hide}))})).map((function(e){return{type:"snap",pos:e.pos}}))),!1)),v.push.apply(v,Br([],Fr(n.filter((function(e){return e.guidelineInfos.some((function(e){return!e.guideline.hide}))})).map((function(e){return{type:"snap",pos:e.pos}}))),!1)),y.push.apply(y,Br([],Fr(Ea(t)),!1)),b.push.apply(b,Br([],Fr(Ea(n)),!1))}))}var I=ka(e,[E,z],[C,k],g,v),M=I.boundMap,N=I.innerBoundMap;A&&ka(e,[D.left,D.right],[D.top,D.bottom],g,v,c.externalBounds);var O=Br(Br([],Fr(y),!1),Fr(b),!1),R=O.filter((function(e){return e.element&&!e.gapRects})),j=O.filter((function(e){return e.gapRects})).sort((function(e,t){return e.gap-t.gap}));ms(e,"onSnap",{guidelines:O.filter((function(e){return!e.element})),elements:R,gaps:j},!0);var F=js(e,"boundMap",M,(function(e){return JSON.stringify(e)}),{left:!1,top:!1,right:!1,bottom:!1}),B=js(e,"innerBoundMap",N,(function(e){return JSON.stringify(e)}),{left:!1,top:!1,right:!1,bottom:!1});return M!==F&&N!==B||ms(e,"onBound",{bounds:M,innerBounds:N},!0),Br(Br(Br(Br(Br(Br([],Fr(da(e,R,[p,h],P,t)),!1),Fr(function(e,t,n,r,o){var i=[];return["horizontal","vertical"].forEach((function(a){var s=t.filter((function(e){return e.type===a})).slice(0,1),l="vertical"===a?0:1,c=l?0:1,u=l?gi:mi,d=l?mi:gi,p=r[u.start],h=r[u.end],f=r[d.start],m=r[d.end];s.forEach((function(t){var r=t.gap,a=t.gapRects,s=Math.max.apply(Math,Br([f],Fr(a.map((function(e){return e.rect[d.start]}))),!1)),g=Math.min.apply(Math,Br([m],Fr(a.map((function(e){return e.rect[d.end]}))),!1)),v=(s+g)/2;s!==g&&v!==(f+m)/2&&a.forEach((function(t){var a=t.rect,s=t.className,d=[n[0],n[1]];if(a[u.end]<p)d[l]+=a[u.end]-p;else{if(!(h<a[u.start]))return;d[l]+=a[u.start]-p-r}d[c]+=v-f,i.push(ua(e,l?"vertical":"horizontal","gap",i.length,r,d,s,o))}))}))})),i}(e,j,[p,h],P,t)),!1),Fr(ca(e,"horizontal",b,[o,r],P,t)),!1),Fr(ca(e,"vertical",y,[o,r],P,t)),!1),Fr(la(e,"horizontal",v,p,r,S,0,t)),!1),Fr(la(e,"vertical",g,h,o,_,1,t)),!1)},dragStart:function(e,t){e.state.snapRenderInfo={request:t.isRequest,snap:!0,center:!0},ga(e)},drag:function(e){var t=e.state;ga(e)||(t.guidelines=pa(e)),t.snapRenderInfo&&(t.snapRenderInfo.render=!0)},pinchStart:function(e){this.unset(e)},dragEnd:function(e){this.unset(e)},dragControlCondition:function(e,t){return!(!za(e,t)&&!ia(e,t))||(!t.isRequest&&t.inputEvent?nn(t.inputEvent.target,Aa("snap-control")):void 0)},dragControlStart:function(e){e.state.snapRenderInfo=null,ga(e)},dragControl:function(e){this.drag(e)},dragControlEnd:function(e){this.unset(e)},dragGroupStart:function(e,t){this.dragStart(e,t)},dragGroup:function(e){this.drag(e)},dragGroupEnd:function(e){this.unset(e)},dragGroupControlStart:function(e){e.state.snapRenderInfo=null,ga(e)},dragGroupControl:function(e){this.drag(e)},dragGroupControlEnd:function(e){this.unset(e)},unset:function(e){var t=e.state;t.enableSnap=!1,t.guidelines=[],t.snapRenderInfo=null,t.elementRects=[]}};function Aa(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return vt.apply(void 0,Br([no],Fr(e),!1))}function Da(e){e()}function Ta(e){return e&&"none"!==e?Pt(e)?e:Kn(e):[1,0,0,1,0,0]}function Ia(e,t,n){return Sn(t,Bn(n,t),e,Bn(n.map((function(e){return-e})),t))}function Ma(e){return Na(gs(e,":before").transformOrigin).map((function(t,n){var r=Bt(t),o=r.value,i=r.unit;return o*function(e,t,n){return"%"===t?Ka(e.ownerSVGElement)[n?"width":"height"]/100:1}(e,i,0===n)}))}function Na(e){return e?e.split(" "):["0","0"]}function Oa(e){var t=Zo(e)("transform");if(t&&"none"!==t)return t;if("transform"in e){var n=e.transform.baseVal;if(!n)return"";var r=n.length;if(!r)return"";for(var o=[],i=function(e){var t=n[e].matrix;o.push("matrix(".concat(["a","b","c","d","e","f"].map((function(e){return t[e]})).join(", "),")"))},a=0;a<r;++a)i(a);return o.join(" ")}return""}function Ra(e,t,n,r,o){var i,a,s,l,c=cn(e)||un(e),u=!1;if(!e||n)s=e;else{var d=null===(i=null==e?void 0:e.assignedSlot)||void 0===i?void 0:i.parentElement,p=e.parentElement;d?(u=!0,l=p,s=d):s=p}for(var h=!1,f=e===t||s===t,m="relative",g=1,v=parseFloat(null==o?void 0:o("zoom"))||1,y=null==o?void 0:o("position");s&&s!==c;){t===s&&(f=!0);var b=Zo(s),w=s.tagName.toLowerCase(),x=Oa(s),S=b("willChange"),_=parseFloat(b("zoom"))||1;if(m=b("position"),r&&1!==_){g=_;break}if(!n&&r&&1!==v&&y&&"absolute"!==y||"svg"===w||"foreignobject"===w||"static"!==m||x&&"none"!==x||"transform"===S)break;var C=null===(a=null==e?void 0:e.assignedSlot)||void 0===a?void 0:a.parentNode,E=s.parentNode;C&&(u=!0,l=E);var k=E;if(k&&11===k.nodeType){h=!0,m=Zo(s=k.host)("position");break}s=k,m="relative"}return{offsetZoom:g,hasSlot:u,parentSlotElement:l,isCustomElement:h,isStatic:"static"===m,isEnd:f||!s||s===c,offsetParent:s||c}}function ja(e,t){var n,r,o,i=e.tagName.toLowerCase(),a=e.offsetLeft,s=e.offsetTop,l=Zo(e),c=zt(a),u=!c;return u||"svg"===i&&!e.ownerSVGElement?o=(r=Na(l("transformOrigin")).map((function(e){return parseFloat(e)}))).slice():(o=(r=qr?Ma(e):Na(l("transformOrigin")).map((function(e){return parseFloat(e)}))).slice(),u=!0,"svg"===i?(a=0,s=0):(n=Fr(function(e,t,n){var r=e.tagName.toLowerCase();if(!e.getBBox||!n&&"g"===r)return[0,0,0,0];var o=Zo(e),i="fill-box"===o("transform-box"),a=e.getBBox(),s=Ka(e.ownerSVGElement),l=a.x,c=a.y;"foreignobject"!==r||l||c||(l=parseFloat(e.getAttribute("x"))||0,c=parseFloat(e.getAttribute("y"))||0);var u=l-s.x,d=c-s.y,p=i?t[0]:t[0]-u,h=i?t[1]:t[1]-d;return[u,d,p,h]}(e,r,e===t&&"g"===t.tagName.toLowerCase()),4),a=n[0],s=n[1],r[0]=n[2],r[1]=n[3])),{tagName:i,isSVG:c,hasOffset:u,offset:[a||0,s||0],origin:r,targetOrigin:o}}function Fa(e,t){var n=Zo(e),r=Zo(un(e)),o=r("position");if(!(t||o&&"static"!==o))return[0,0];var i=parseInt(r("marginLeft"),10),a=parseInt(r("marginTop"),10);return"absolute"===n("position")&&("auto"===n("top")&&"auto"===n("bottom")||(a=0),"auto"===n("left")&&"auto"===n("right")||(i=0)),[i,a]}function Ba(e){e.forEach((function(e){var t=e.matrix;t&&(e.matrix=xn(t,3,4))}))}function La(e){for(var t=e.parentElement,n=!1,r=un(e);t;){var o=gs(t).transform;if(o&&"none"!==o){n=!0;break}if(t===r)break;t=t.parentElement}return{fixedContainer:t||r,hasTransform:n}}function Va(e,t){return void 0===t&&(t=e.length>9),"".concat(t?"matrix3d":"matrix","(").concat(zn(e,!t).join(","),")")}function Ka(e){var t=e.clientWidth,n=e.clientHeight;if(!e)return{x:0,y:0,width:0,height:0,clientWidth:t,clientHeight:n};var r=e.viewBox,o=r&&r.baseVal||{x:0,y:0,width:0,height:0};return{x:o.x,y:o.y,width:o.width||t,height:o.height||n,clientWidth:t,clientHeight:n}}function Ha(e,t){var n,r=Ka(e),o=r.width,i=r.height,a=r.clientWidth,s=r.clientHeight,l=a/o,c=s/i,u=e.preserveAspectRatio.baseVal,d=u.align,p=u.meetOrSlice,h=[0,0],f=[l,c],m=[0,0];if(1!==d){var g=(d-2)%3,v=Math.floor((d-2)/3);h[0]=o*g/2,h[1]=i*v/2;var y=2===p?Math.max(c,l):Math.min(l,c);f[0]=y,f[1]=y,m[0]=(a-o)/2*g,m[1]=(s-i)/2*v}var b=Fn(f,t);return n=Fr(m,2),b[t*(t-1)]=n[0],b[t*(t-1)+1]=n[1],Ia(b,t,h)}function $a(e,t,n){return Pn(e,wn(t,n),n)}function Ua(e,t,n,r){return[[0,0],[t,0],[0,n],[t,n]].map((function(t){return $a(e,t,r)}))}function Wa(e){var t=e.map((function(e){return e[0]})),n=e.map((function(e){return e[1]})),r=Math.min.apply(Math,Br([],Fr(t),!1)),o=Math.min.apply(Math,Br([],Fr(n),!1)),i=Math.max.apply(Math,Br([],Fr(t),!1)),a=Math.max.apply(Math,Br([],Fr(n),!1));return{left:r,top:o,right:i,bottom:a,width:i-r,height:a-o}}function qa(e,t,n,r){return Wa(Ua(e,t,n,r))}function Ga(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Za(e,t){return Ga([t[0]-e[0],t[1]-e[1]])}function Ya(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=Xt(e,t));var o=Za(e,t);return{transform:"translateY(-50%) translate(".concat(e[0],"px, ").concat(e[1],"px) rotate(").concat(r,"rad) scaleY(").concat(n,")"),width:"".concat(o,"px")}}function Xa(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n.length,i=n.reduce((function(e,t){return e+t[0]}),0)/o,a=n.reduce((function(e,t){return e+t[1]}),0)/o;return{transform:"translateZ(0px) translate(".concat(i,"px, ").concat(a,"px) rotate(").concat(e,"rad) scale(").concat(t,")")}}function Ja(e,t){var n=e[t];return Pt(n)?jr(jr({},e),n):e}function Qa(e){var t=e&&!zt(e.offsetWidth),n=0,r=0,o=0,i=0,a=0,s=0,l=0,c=0,u=0,d=0,p=0,h=0,f=1/0,m=1/0,g=1/0,v=1/0,y=0,b=0,w=!1;if(e)if(!t&&e.ownerSVGElement){var x=e.getBBox();w=!0,a=n=x.width,s=r=x.height,l=n,c=r,o=n,i=r}else{var S=Zo(e),_=e.style,C="border-box"===S("boxSizing"),E=parseFloat(S("borderLeftWidth"))||0,k=parseFloat(S("borderRightWidth"))||0,z=parseFloat(S("borderTopWidth"))||0,P=parseFloat(S("borderBottomWidth"))||0,A=(parseFloat(S("paddingLeft"))||0)+(parseFloat(S("paddingRight"))||0),D=(parseFloat(S("paddingTop"))||0)+(parseFloat(S("paddingBottom"))||0),T=A+(E+k),I=D+(z+P),M=S("position"),N=0,O=0;if("clientLeft"in e){var R=null;if("absolute"===M)R=Ra(e,un(e)).offsetParent;else R=e.parentElement;if(R){var j=Zo(R);N=parseFloat(j("width")),O=parseFloat(j("height"))}}u=Math.max(A,Wt(S("minWidth"),N)||0),d=Math.max(D,Wt(S("minHeight"),O)||0),f=Wt(S("maxWidth"),N),m=Wt(S("maxHeight"),O),isNaN(f)&&(f=1/0),isNaN(m)&&(m=1/0),y=Wt(_.width,0)||0,b=Wt(_.height,0)||0,a=parseFloat(S("width"))||0,s=parseFloat(S("height"))||0,n=l=Bs(a-y)<1?qt(u,y||a,f):a,r=c=Bs(s-b)<1?qt(d,b||s,m):s,o=l,i=c,C?(g=f,v=m,p=u,h=d,l=n-T,c=r-I):(g=f+T,v=m+I,p=u+T,h=d+I,n=l+T,r=c+I),o=l+A,i=c+D}return{svg:w,offsetWidth:n,offsetHeight:r,clientWidth:o,clientHeight:i,contentWidth:l,contentHeight:c,inlineCSSWidth:y,inlineCSSHeight:b,cssWidth:a,cssHeight:s,minWidth:u,minHeight:d,maxWidth:f,maxHeight:m,minOffsetWidth:p,minOffsetHeight:h,maxOffsetWidth:g,maxOffsetHeight:v}}function es(e,t){return Xt(t>0?e[0]:e[1],t>0?e[1]:e[0])}function ts(e,t){var n=e===un(e)||e===cn(e),r={clientLeft:e.clientLeft,clientTop:e.clientTop,clientWidth:e.clientWidth,clientHeight:e.clientHeight,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,overflow:!1};return n&&(r.clientHeight=Math.max(t.height,r.clientHeight),r.scrollHeight=Math.max(t.height,r.scrollHeight)),r.overflow="visible"!==Zo(e)("overflow"),jr(jr({},t),r)}function ns(e,t,n,r){var o=e.left,i=e.right,a=e.top,s=e.bottom,l=t.top,c=t.left,u={left:c+o,top:l+a,right:c+i,bottom:l+s,width:i-o,height:s-a};return n&&r?ts(n,u):u}function rs(e,t){var n=0,r=0,o=0,i=0;if(e){var a=e.getBoundingClientRect();n=a.left,r=a.top,o=a.width,i=a.height}var s={left:n,top:r,width:o,height:i,right:n+o,bottom:r+i};return e&&t?ts(e,s):s}function os(e,t,n,r){var o;if(e)o=e;else if(t)o=[0,0];else{o=is(n.target,r)}return o}function is(e,t){if(e){var n=e.getAttribute("data-rotation")||"",r=e.getAttribute("data-direction");if(t.deg=n,r){var o=[0,0];return r.indexOf("w")>-1&&(o[0]=-1),r.indexOf("e")>-1&&(o[0]=1),r.indexOf("n")>-1&&(o[1]=-1),r.indexOf("s")>-1&&(o[1]=1),o}}}function as(e,t){return[Cn(t,e[0]),Cn(t,e[1]),Cn(t,e[2]),Cn(t,e[3])]}function ss(e){var t=e.left,n=e.top;return as([e.pos1,e.pos2,e.pos3,e.pos4],[t,n])}function ls(e,t){e[t?"controlAbles":"targetAbles"].forEach((function(t){t.unset&&t.unset(e)}))}function cs(e,t){var n=t?"controlGesto":"targetGesto",r=e[n];!1===(null==r?void 0:r.isIdle())&&ls(e,t),null==r||r.unset(),e[n]=null}function us(e,t){if(t){var n=No(t);n.nextStyle=jr(jr({},n.nextStyle),e)}return{style:e,cssText:Ut(e).map((function(t){return"".concat((n=t,r="-",void 0===r&&(r="-"),n.replace(/([a-z])([A-Z])/g,(function(e,t,n){return""+t+r+n.toLowerCase()}))),": ").concat(e[t],";");var n,r})).join("")}}function ds(e,t,n){var r=t.afterTransform||t.transform;return jr(jr({},us(jr(jr(jr({},e.style),t.style),{transform:r}),n)),{afterTransform:r,transform:e.transform})}function ps(e,t,n,r){var o=t.datas;o.datas||(o.datas={});var i=jr(jr({},n),{target:e.state.target,clientX:t.clientX,clientY:t.clientY,inputEvent:t.inputEvent,currentTarget:e,moveable:e,datas:o.datas,isRequest:t.isRequest,isRequestChild:t.isRequestChild,isFirstDrag:!!t.isFirstDrag,isTrusted:!1!==t.isTrusted,stopAble:function(){o.isEventStart=!1},stopDrag:function(){var e;null===(e=t.stop)||void 0===e||e.call(t)}});return o.isStartEvent?r||(o.lastEvent=i):o.isStartEvent=!0,i}function hs(e,t,n){var r=t.datas,o="isDrag"in n?n.isDrag:t.isDrag;return r.datas||(r.datas={}),jr(jr({isDrag:o},n),{moveable:e,target:e.state.target,clientX:t.clientX,clientY:t.clientY,inputEvent:t.inputEvent,currentTarget:e,lastEvent:r.lastEvent,isDouble:t.isDouble,datas:r.datas,isFirstDrag:!!t.isFirstDrag})}function fs(e,t,n){e._emitter.on(t,n)}function ms(e,t,n,r,o){return e.triggerEvent(t,n,r,o)}function gs(e,t){return dn(e).getComputedStyle(e,t)}function vs(e,t,n){var r={},o={};return e.filter((function(e){var i=e.name;if(r[i]||!t.some((function(t){return e[t]})))return!1;if(!n&&e.ableGroup){if(o[e.ableGroup])return!1;o[e.ableGroup]=!0}return r[i]=!0,!0}))}function ys(e,t){return e===t||null==e&&null==t}function bs(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e.length-1,r=0;r<n;++r){var o=e[r];if(!zt(o))return o}return e[n]}function ws(e,t){var n=[],r=[];return e.forEach((function(o,i){var a=t(o,i,e),s=r.indexOf(a),l=n[s]||[];-1===s&&(r.push(a),n.push(l)),l.push(o)})),n}function xs(e){return e.reduce((function(e,t){return e.concat(t)}),[])}function Ss(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.sort((function(e,t){return Bs(t)-Bs(e)})),e[0]}function _s(e,t,n){return Pn(yn(e,n),wn(t,n),n)}function Cs(e,t){var n,r=e.is3d?4:3;return n=Fr(_s(e.rootMatrix,[t.distX,t.distY],r),2),t.distX=n[0],t.distY=n[1],t}function Es(e,t,n,r){if(!n[0]&&!n[1])return t;var o=$a(e,[ya(n[0]||1),0],r),i=$a(e,[0,ya(n[1]||1)],r);return Cn(t,$a(e,[n[0]/Ga(o),n[1]/Ga(i)],r))}function ks(e){return Bs(e)<=so?0:e}function zs(e){return function(t){if(!t.isDragging(e))return"";var n=function(e,t){var n,r=e.targetGesto,o=e.controlGesto;return(null==r?void 0:r.isFlag())&&(n=r.getEventData()[t]),!n&&(null==o?void 0:o.isFlag())&&(n=o.getEventData()[t]),n||{}}(t,e),r=n.deg;return r?Aa("view-control-rotation".concat(r)):""}}function Ps(e,t){return void 0===t&&(t=[e]),function(n,r){if(r.isRequest)return!!t.some((function(e){return r.requestAble===e}))&&r.parentDirection;var o=r.inputEvent.target;return nn(o,Aa("direction"))&&(!e||nn(o,Aa(e)))}}function As(e,t){return e?hn(e)?e:Dt(e)?t?document.querySelector(e):e:It(e)?e():pn(e)?e:"current"in e?e.current:e:null}function Ds(e,t){return e?((n=e)&&Pt(n)&&!hn(n)&&(At(n)||"length"in n)?[].slice.call(e):[e]).reduce((function(e,n){return Dt(n)&&t?Br(Br([],Fr(e),!1),Fr([].slice.call(document.querySelectorAll(n))),!1):(At(n)?e.push(Ds(n,t)):e.push(As(n,t)),e)}),[]):[];var n}function Ts(e,t){var n=e.rootMatrix,r=e.is3d,o=yn(n,r?4:3);return r||(o=xn(o,3,4)),o[12]=0,o[13]=0,o[14]=0,function(e,t){var n=Pn(e,[t[0],t[1]||0,t[2]||0,1],4),r=n[3]||1;return[n[0]/r,n[1]/r,n[2]/r]}(o,t)}function Is(e,t,n,r,o){var i=Fr(e,2),a=i[0],s=i[1],l=0,c=0;if(o&&a&&s){var u=Xt([0,0],t),d=Xt([0,0],r),p=Ga(t),h=Math.cos(u-d)*p;if(r[0])if(r[1]){var f=r[0]*a,m=r[1]*s,g=Math.atan2(f+t[0],m+t[1]),v=Math.atan2(f,m);g<0&&(g+=2*Math.PI),v<0&&(v+=2*Math.PI);var y=0;(y=Bs(g-v)<Math.PI/2||Bs(g-v)>Math.PI/2*3?g-v:g-(v+=Math.PI))>2*Math.PI?y-=2*Math.PI:y>Math.PI?y=2*Math.PI-y:y<-Math.PI&&(y=-2*Math.PI-y);var b=Ga([f+t[0],m+t[1]])*Math.cos(y);l=b*Math.sin(v)-f,c=b*Math.cos(v)-m,r[0]<0&&(l*=-1),r[1]<0&&(c*=-1)}else c=(l=h)/n;else l=(c=h)*n}else l=r[0]*t[0],c=r[1]*t[1];return[l,c]}function Ms(e,t,n,r){var o,i=n.ratio,a=n.startOffsetWidth,s=n.startOffsetHeight,l=0,c=0,u=r.distX,d=r.distY,p=r.pinchScale,h=r.parentDistance,f=r.parentDist,m=r.parentScale,g=n.fixedDirection,v=[0,1].map((function(t){return Bs(e[t]-g[t])})),y=[0,1].map((function(e){var t=v[e];return 0!==t&&(t=2/t),t}));if(f)l=f[0],c=f[1],t&&(l?c||(c=l/i):l=c*i);else if(Tt(p))l=(p-1)*a,c=(p-1)*s;else if(m)l=(m[0]-1)*a,c=(m[1]-1)*s;else if(h){var b=a*v[0],w=s*v[1],x=Ga([b,w]);l=h/x*b*y[0],c=h/x*w*y[1]}else{var S=Eo({datas:n,distX:u,distY:d});S=y.map((function(e,t){return S[t]*e})),l=(o=Fr(Is([a,s],S,i,e,t),2))[0],c=o[1]}return{distWidth:l,distHeight:c}}function Ns(e,t){if(t){if("left"===e)return{x:"0%",y:"50%"};if("top"===e)return{x:"50%",y:"50%"};if("center"===e)return{x:"50%",y:"50%"};if("right"===e)return{x:"100%",y:"50%"};if("bottom"===e)return{x:"50%",y:"100%"};var n=Fr(e.split(" "),2),r=n[0],o=n[1],i=Ns(r||""),a=Ns(o||""),s=jr(jr({},i),a),l={x:"50%",y:"50%"};return s.x&&(l.x=s.x),s.y&&(l.y=s.y),s.value&&(s.x&&!s.y&&(l.y=s.value),!s.x&&s.y&&(l.x=s.value)),l}return"left"===e?{x:"0%"}:"right"===e?{x:"100%"}:"top"===e?{y:"0%"}:"bottom"===e?{y:"100%"}:e?"center"===e?{value:"50%"}:{value:e}:{}}function Os(e,t,n){var r=Ns(e,!0),o=r.x,i=r.y;return[Wt(o,t)||0,Wt(i,n)||0]}function Rs(e,t){return e.length===t.length&&e.every((function(e,n){var r=t[n],o=At(e),i=At(r);return o&&i?Rs(e,r):!o&&!i&&e===r}))}function js(e,t,n,r,o){var i=e._store,a=i[t];if(!(t in i)){if(null==o)return i[t]=n,n;i[t]=o,a=o}return a===n||r(a)===r(n)?a:(i[t]=n,n)}function Fs(e){return e>=0?1:-1}function Bs(e){return Math.abs(e)}function Ls(e,t){return function(e){for(var t=[],n=0;n<e;++n)t.push(n);return t}(e).map((function(e){return t(e)}))}function Vs(e){return Tt(e)?{top:e,left:e,right:e,bottom:e}:{left:e.left||0,top:e.top||0,right:e.right||0,bottom:e.bottom||0}}Lr("pinchable",{props:["pinchable"],events:["pinchStart","pinch","pinchEnd","pinchGroupStart","pinchGroup","pinchGroupEnd"],dragStart:function(){return!0},pinchStart:function(e,t){var n=t.datas,r=t.targets,o=t.angle,i=t.originalDatas,a=e.props,s=a.pinchable,l=a.ables;if(!s)return!1;var c="onPinch".concat(r?"Group":"","Start"),u="drag".concat(r?"Group":"","ControlStart"),d=(!0===s?e.controlAbles:l.filter((function(e){return s.indexOf(e.name)>-1}))).filter((function(e){return e.canPinch&&e[u]})),p=ps(e,t,{});r&&(p.targets=r);var h=ms(e,c,p);n.isPinch=!1!==h,n.ables=d;var f=n.isPinch;return!!f&&(d.forEach((function(n){if(i[n.name]=i[n.name]||{},n[u]){var r=jr(jr({},t),{datas:i[n.name],parentRotate:o,isPinch:!0});n[u](e,r)}})),e.state.snapRenderInfo={request:t.isRequest,direction:[0,0]},f)},pinch:function(e,t){var n=t.datas,r=t.scale,o=t.distance,i=t.originalDatas,a=t.inputEvent,s=t.targets,l=t.angle;if(n.isPinch){var c=o*(1-1/r),u=ps(e,t,{});s&&(u.targets=s);var d="onPinch".concat(s?"Group":"");ms(e,d,u);var p=n.ables,h="drag".concat(s?"Group":"","Control");return p.forEach((function(n){n[h]&&n[h](e,jr(jr({},t),{datas:i[n.name],inputEvent:a,resolveMatrix:!0,pinchScale:r,parentDistance:c,parentRotate:l,isPinch:!0}))})),u}},pinchEnd:function(e,t){var n=t.datas,r=t.isPinch,o=t.inputEvent,i=t.targets,a=t.originalDatas;if(n.isPinch){var s="onPinch".concat(i?"Group":"","End"),l=hs(e,t,{isDrag:r});i&&(l.targets=i),ms(e,s,l);var c=n.ables,u="drag".concat(i?"Group":"","ControlEnd");return c.forEach((function(n){n[u]&&n[u](e,jr(jr({},t),{isDrag:r,datas:a[n.name],inputEvent:o,isPinch:!0}))})),r}},pinchGroupStart:function(e,t){return this.pinchStart(e,jr(jr({},t),{targets:e.props.targets}))},pinchGroup:function(e,t){return this.pinch(e,jr(jr({},t),{targets:e.props.targets}))},pinchGroupEnd:function(e,t){return this.pinchEnd(e,jr(jr({},t),{targets:e.props.targets}))}});var Ks=Ps("scalable");oi("scalable"),zs("scalable");function Hs(e,t){return e.map((function(e,n){return kt(e,t[n],1,2)}))}function $s(e,t,n){var r=Xt(e,t),o=Xt(e,n)-r;return o>=0?o:o+2*Math.PI}zs("warpable");var Us=Aa("area-pieces"),Ws=Aa("area-piece"),qs=Aa("avoid"),Gs=Aa("view-dragging");function Zs(e){var t=e.areaElement;if(t){var n=e.state,r=n.width,o=n.height;on(t,qs),t.style.cssText+="left: 0px; top: 0px; width: ".concat(r,"px; height: ").concat(o,"px")}}function Ys(e){return e.createElement("div",{key:"area_pieces",className:Us},e.createElement("div",{className:Ws}),e.createElement("div",{className:Ws}),e.createElement("div",{className:Ws}),e.createElement("div",{className:Ws}))}var Xs={name:"dragArea",props:["dragArea","passDragArea"],events:["click","clickGroup"],render:function(e,t){var n=e.props,r=n.target,o=n.dragArea,i=n.groupable,a=n.passDragArea,s=e.getState(),l=s.width,c=s.height,u=s.renderPoses,d=a?Aa("area","pass"):Aa("area");if(i)return[t.createElement("div",{key:"area",ref:yt(e,"areaElement"),className:d}),Ys(t)];if(!r||!o)return[];var p=Ln([0,0],[l,0],[0,c],[l,c],u[0],u[1],u[2],u[3]),h=p.length?Va(p,!0):"none";return[t.createElement("div",{key:"area",ref:yt(e,"areaElement"),className:d,style:{top:"0px",left:"0px",width:"".concat(l,"px"),height:"".concat(c,"px"),transformOrigin:"0 0",transform:h}}),Ys(t)]},dragStart:function(e,t){var n=t.datas,r=t.clientX,o=t.clientY;if(!t.inputEvent)return!1;n.isDragArea=!1;var i=e.areaElement,a=e.state,s=a.moveableClientRect,l=a.renderPoses,c=a.rootMatrix,u=a.is3d,d=s.left,p=s.top,h=Wa(l),f=h.left,m=h.top,g=h.width,v=h.height,y=Fr(_s(c,[r-d,o-p],u?4:3),2),b=y[0],w=y[1],x=[{left:f,top:m,width:g,height:(w-=m)-10},{left:f,top:m,width:(b-=f)-10,height:v},{left:f,top:m+w+10,width:g,height:v-w-10},{left:f+b+10,top:m,width:g-b-10,height:v}],S=[].slice.call(i.nextElementSibling.children);x.forEach((function(e,t){S[t].style.cssText="left: ".concat(e.left,"px;top: ").concat(e.top,"px; width: ").concat(e.width,"px; height: ").concat(e.height,"px;")})),rn(i,qs),a.disableNativeEvent=!0},drag:function(e,t){var n=t.datas,r=t.inputEvent;if(this.enableNativeEvent(e),!r)return!1;n.isDragArea||(n.isDragArea=!0,Zs(e))},dragEnd:function(e,t){this.enableNativeEvent(e);var n=t.inputEvent,r=t.datas;if(!n)return!1;r.isDragArea||Zs(e)},dragGroupStart:function(e,t){return this.dragStart(e,t)},dragGroup:function(e,t){return this.drag(e,t)},dragGroupEnd:function(e,t){return this.dragEnd(e,t)},unset:function(e){Zs(e),e.state.disableNativeEvent=!1},enableNativeEvent:function(e){var t=e.state;t.disableNativeEvent&&Ht((function(){t.disableNativeEvent=!1}))}};Lr("origin",{props:["origin","svgOrigin"],render:function(e,t){var n,r=e.props,o=r.zoom,i=r.svgOrigin,a=r.groupable,s=e.getState(),l=s.beforeOrigin,c=s.rotation,u=s.svg,d=s.allMatrix,p=s.is3d,h=s.left,f=s.top,m=s.offsetWidth,g=s.offsetHeight;if(!a&&u&&i){var v=Fr(Os(i,m,g),2);n=Xa(c,o,En($a(d,[v[0],v[1]],p?4:3),[h,f]))}else n=Xa(c,o,l);return[t.createElement("div",{className:Aa("control","origin"),style:n,key:"beforeOrigin"})]}});var Js={name:"",props:["target","dragTargetSelf","dragTarget","dragContainer","container","warpSelf","rootContainer","useResizeObserver","useMutationObserver","zoom","dragFocusedInput","transformOrigin","ables","className","pinchThreshold","pinchOutside","triggerAblesSimultaneously","checkInput","cspNonce","translateZ","hideDefaultLines","props","flushSync","stopPropagation","preventClickEventOnDrag","preventClickDefault","viewContainer","persistData","useAccuratePosition","firstRenderState","linePadding","controlPadding","preventDefault","preventRightClick","preventWheelClick","requestStyles"],events:["changeTargets"]};Lr("padding",{props:["padding"],render:function(e,t){var n=e.props;if(n.dragArea)return[];var r=Vs(n.padding||{}),o=r.left,i=r.top,a=r.right,s=r.bottom,l=e.getState(),c=l.renderPoses,u=[l.pos1,l.pos2,l.pos3,l.pos4],d=[];return o>0&&d.push([0,2]),i>0&&d.push([0,1]),a>0&&d.push([1,3]),s>0&&d.push([2,3]),d.map((function(e,n){var r=Fr(e,2),o=r[0],i=r[1],a=Ln([0,0],[100,0],[0,100],[100,100],u[o],u[i],c[o],c[i]);if(a.length)return t.createElement("div",{key:"padding".concat(n),className:Aa("padding"),style:{transform:Va(a,!0)}})}))}});var Qs={isPinch:!0,name:"beforeRenderable",props:[],events:["beforeRenderStart","beforeRender","beforeRenderEnd","beforeRenderGroupStart","beforeRenderGroup","beforeRenderGroupEnd"],dragRelation:"weak",setTransform:function(e,t){var n=e.state,r=n.is3d,o=n.targetMatrix,i=n.inlineTransform,a=r?"matrix3d(".concat(o.join(","),")"):"matrix(".concat(zn(o,!0),")"),s=i&&"none"!==i?i:a;t.datas.startTransforms=function(e,t){var n=jn(t?4:3);return e==="matrix".concat(t?"3d":"","(").concat(n.join(","),")")||"matrix(1,0,0,1,0,0)"===e}(s,r)?[]:Rt(s)},resetStyle:function(e){var t=e.datas;t.nextStyle={},t.nextTransforms=e.datas.startTransforms,t.nextTransformAppendedIndexes=[]},fillDragStartParams:function(e,t){return ps(e,t,{setTransform:function(e){t.datas.startTransforms=At(e)?e:Rt(e)},isPinch:!!t.isPinch})},fillDragParams:function(e,t){return ps(e,t,{isPinch:!!t.isPinch})},dragStart:function(e,t){this.setTransform(e,t),this.resetStyle(t),ms(e,"onBeforeRenderStart",this.fillDragStartParams(e,t))},drag:function(e,t){t.datas.startTransforms||this.setTransform(e,t),this.resetStyle(t),ms(e,"onBeforeRender",ps(e,t,{isPinch:!!t.isPinch}))},dragEnd:function(e,t){t.datas.startTransforms||(this.setTransform(e,t),this.resetStyle(t)),ms(e,"onBeforeRenderEnd",ps(e,t,{isPinch:!!t.isPinch,isDrag:t.isDrag}))},dragGroupStart:function(e,t){var n=this;this.dragStart(e,t);var r=Yo(e,"beforeRenderable",t),o=e.moveables,i=r.map((function(e,t){var r=o[t];return n.setTransform(r,e),n.resetStyle(e),n.fillDragStartParams(r,e)}));ms(e,"onBeforeRenderGroupStart",ps(e,t,{isPinch:!!t.isPinch,targets:e.props.targets,setTransform:function(){},events:i}))},dragGroup:function(e,t){var n=this;this.drag(e,t);var r=Yo(e,"beforeRenderable",t),o=e.moveables,i=r.map((function(e,t){var r=o[t];return n.resetStyle(e),n.fillDragParams(r,e)}));ms(e,"onBeforeRenderGroup",ps(e,t,{isPinch:!!t.isPinch,targets:e.props.targets,events:i}))},dragGroupEnd:function(e,t){this.dragEnd(e,t),ms(e,"onBeforeRenderGroupEnd",ps(e,t,{isPinch:!!t.isPinch,isDrag:t.isDrag,targets:e.props.targets}))},dragControlStart:function(e,t){return this.dragStart(e,t)},dragControl:function(e,t){return this.drag(e,t)},dragControlEnd:function(e,t){return this.dragEnd(e,t)},dragGroupControlStart:function(e,t){return this.dragGroupStart(e,t)},dragGroupControl:function(e,t){return this.dragGroup(e,t)},dragGroupControlEnd:function(e,t){return this.dragGroupEnd(e,t)}},el={name:"renderable",props:[],events:["renderStart","render","renderEnd","renderGroupStart","renderGroup","renderGroupEnd"],dragRelation:"weak",dragStart:function(e,t){ms(e,"onRenderStart",ps(e,t,{isPinch:!!t.isPinch}))},drag:function(e,t){ms(e,"onRender",this.fillDragParams(e,t))},dragAfter:function(e,t){return this.drag(e,t)},dragEnd:function(e,t){ms(e,"onRenderEnd",this.fillDragEndParams(e,t))},dragGroupStart:function(e,t){ms(e,"onRenderGroupStart",ps(e,t,{isPinch:!!t.isPinch,targets:e.props.targets}))},dragGroup:function(e,t){var n=this,r=Yo(e,"beforeRenderable",t),o=e.moveables,i=r.map((function(e,t){var r=o[t];return n.fillDragParams(r,e)}));ms(e,"onRenderGroup",ps(e,t,jr(jr({isPinch:!!t.isPinch,targets:e.props.targets,transform:Ro(t),transformObject:{}},us(jo(t))),{events:i})))},dragGroupEnd:function(e,t){var n=this,r=Yo(e,"beforeRenderable",t),o=e.moveables,i=r.map((function(e,t){var r=o[t];return n.fillDragEndParams(r,e)}));ms(e,"onRenderGroupEnd",ps(e,t,jr({isPinch:!!t.isPinch,isDrag:t.isDrag,targets:e.props.targets,events:i,transformObject:{},transform:Ro(t)},us(jo(t)))))},dragControlStart:function(e,t){return this.dragStart(e,t)},dragControl:function(e,t){return this.drag(e,t)},dragControlAfter:function(e,t){return this.dragAfter(e,t)},dragControlEnd:function(e,t){return this.dragEnd(e,t)},dragGroupControlStart:function(e,t){return this.dragGroupStart(e,t)},dragGroupControl:function(e,t){return this.dragGroup(e,t)},dragGroupControlEnd:function(e,t){return this.dragGroupEnd(e,t)},fillDragParams:function(e,t){var n={};return $n(Oo(t)||[]).forEach((function(e){n[e.name]=e.functionValue})),ps(e,t,jr({isPinch:!!t.isPinch,transformObject:n,transform:Ro(t)},us(jo(t))))},fillDragEndParams:function(e,t){var n={};return $n(Oo(t)||[]).forEach((function(e){n[e.name]=e.functionValue})),ps(e,t,jr({isPinch:!!t.isPinch,isDrag:t.isDrag,transformObject:n,transform:Ro(t)},us(jo(t))))}};function tl(e,t,n,r,o,i,a){i.clientDistX=i.distX,i.clientDistY=i.distY;var s="Start"===o,l="End"===o,c="After"===o,u=e.state.target,d=i.isRequest,p=r.indexOf("Control")>-1;if(!u||s&&p&&!d&&e.areaElement===i.inputEvent.target)return!1;var h=Br([],Fr(t),!1);if(d){var f=i.requestAble;h.some((function(e){return e.name===f}))||h.push.apply(h,Br([],Fr(e.props.ables.filter((function(e){return e.name===f}))),!1))}if(!h.length||h.every((function(e){return e.dragRelation})))return!1;var m,g=i.inputEvent;l&&g&&(m=document.elementFromPoint(i.clientX,i.clientY)||g.target);var v=!1,y=function(){var e;v=!0,null===(e=i.stop)||void 0===e||e.call(i)},b=s&&(!e.targetGesto||!e.controlGesto||!e.targetGesto.isFlag()||!e.controlGesto.isFlag());b&&e.updateRect(o,!0,!1);var w=i.datas,x=p?"controlGesto":"targetGesto",S=e[x],_=function(t,n,r){if(!(n in t)||S!==e[x])return!1;var o=t.name,a=w[o]||(w[o]={});if(s&&(a.isEventStart=!r||!t[r]||t[r](e,i)),!a.isEventStart)return!1;var l=t[n](e,jr(jr({},i),{stop:y,datas:a,originalDatas:w,inputTarget:m}));return e._emitter.off(),s&&!1===l&&(a.isEventStart=!1),l};b&&h.forEach((function(t){t.unset&&t.unset(e)})),_(Qs,"drag".concat(r).concat(o));var C=0,E=0;n.forEach((function(t){if(v)return!1;var n="".concat(t).concat(r).concat(o),a="".concat(t).concat(r,"Condition");""!==o||d||Cs(e.state,i);var l=h.filter((function(e){return e[n]}));l=l.filter((function(e,t){return e.name&&l.indexOf(e)===t}));var c=l.filter((function(e){return _(e,n,a)})).length;v&&++C,c&&++E,!v&&s&&l.length&&!c&&(C+=l.filter((function(e){var t=e.name;return!!w[t].isEventStart&&"strong"!==e.dragRelation})).length?1:0)})),c&&!E||_(el,"drag".concat(r).concat(o));var k=S!==e[x]||C===n.length;if((l||v||k)&&(e.state.gestos={},e.moveables&&e.moveables.forEach((function(e){e.state.gestos={}})),h.forEach((function(t){t.unset&&t.unset(e)}))),s&&!k&&!d&&E&&e.props.preventDefault&&(null==i||i.preventDefault()),e.isUnmounted||k)return!1;(!s&&E&&!a||l)&&(e.props.flushSync||Da)((function(){e.updateRect(l?o:"",!0,!1),e.forceUpdate()}));return s||l||c||!E||a||tl(e,t,n,r,o+"After",i),!0}function nl(e,t){return function(n,r){var o;void 0===r&&(r=n.inputEvent.target);var i=r,a=e.areaElement,s=e._dragTarget;return!(!s||!t&&(null===(o=e.controlGesto)||void 0===o?void 0:o.isFlag()))&&(i===s||s.contains(i)||i===a||!e.isMoveableElement(i)&&!e.controlBox.contains(i)||nn(i,"moveable-area")||nn(i,"moveable-padding")||nn(i,"moveable-edgeDraggable"))}}function rl(e,t,n){var r=e.controlBox,o=[],i=e.props,a=i.dragArea,s=e.state.target,l=i.dragTarget;o.push(r),a&&!l||o.push(t),!a&&l&&s&&t!==s&&i.dragTargetSelf&&o.push(s);var c=nl(e);return il(e,o,"targetAbles",n,{dragStart:c,pinchStart:c})}function ol(e,t){var n=e.controlBox,r=[];r.push(n);var o=nl(e,!0),i=function(e,t){return void 0===t&&(t=e.inputEvent.target),t===n||!o(e,t)};return il(e,r,"controlAbles",t,{dragStart:i,pinchStart:i})}function il(e,t,n,r,o){void 0===o&&(o={});var i="targetAbles"===n,a=e.props,s=a.pinchOutside,l=a.pinchThreshold,c=a.preventClickEventOnDrag,u=a.preventClickDefault,d=a.checkInput,p=a.dragFocusedInput,h=a.preventDefault,f=void 0===h||h,m=a.preventRightClick,g=void 0===m||m,v=a.preventWheelClick,y={preventDefault:f,preventRightClick:g,preventWheelClick:void 0===v||v,container:As(a.dragContainer,!0)||dn(e.getControlBoxElement()),pinchThreshold:l,pinchOutside:s,preventClickEventOnDrag:!!i&&c,preventClickEventOnDragStart:!!i&&u,preventClickEventByCondition:i?null:function(t){return e.controlBox.contains(t.target)},checkInput:!!i&&d,dragFocusedInput:p},b=new Pr(t,y),w="Control"===r;return["drag","pinch"].forEach((function(t){["Start","","End"].forEach((function(i){b.on("".concat(t).concat(i),(function(a){var s,l=a.eventType,c="drag"===t&&a.isPinch;if(!o[l]||o[l](a)){if(!c){var u="drag"===t?[t]:["drag",t],d=Br([],Fr(e[n]),!1);tl(e,d,u,r,i,a)?(e.props.stopPropagation||"Start"===i&&w)&&(null===(s=null==a?void 0:a.inputEvent)||void 0===s||s.stopPropagation()):a.stop()}}else a.stop()}))}))})),b}var al=function(){function e(e,t,n){var r=this;this.target=e,this.moveable=t,this.eventName=n,this.ables=[],this._onEvent=function(e){var t=r.eventName,n=r.moveable;n.state.disableNativeEvent||r.ables.forEach((function(r){r[t](n,{inputEvent:e})}))},e.addEventListener(n.toLowerCase(),this._onEvent)}return e.prototype.setAbles=function(e){this.ables=e},e.prototype.destroy=function(){this.target.removeEventListener(this.eventName.toLowerCase(),this._onEvent),this.target=null,this.moveable=null},e}();function sl(e,t,n,r){var o;void 0===n&&(n=t);var i=$o(e,t),a=i.matrixes,s=i.is3d,l=i.targetMatrix,c=i.transformOrigin,u=i.targetOrigin,d=i.offsetContainer,p=i.hasFixed,h=i.zoom,f=function(e,t){if(qo){var n=Kt(qo,(function(n){return n[0][0]==e&&n[0][1]==t}));if(n)return n[1]}var r=$o(e,t,!0);return qo&&qo.push([[e,t],r]),r}(d,n),m=f.matrixes,g=f.is3d,v=f.offsetContainer,y=f.zoom,b=r||g||s,w=b?4:3,x="svg"!==e.tagName.toLowerCase()&&"ownerSVGElement"in e,S=l,_=jn(w),C=jn(w),E=jn(w),k=jn(w),z=a.length,P=m.map((function(e){return jr(jr({},e),{matrix:e.matrix?Br([],Fr(e.matrix),!1):void 0})})).reverse();a.reverse(),!s&&b&&(S=xn(S,3,4),Ba(a)),!g&&b&&Ba(P),P.forEach((function(e){C=_n(C,e.matrix,w)}));var A=n||un(e),D=(null===(o=P[0])||void 0===o?void 0:o.target)||Ra(A,A,!0).offsetParent,T=P.slice(1).reduce((function(e,t){return _n(e,t.matrix,w)}),jn(w));a.forEach((function(e,t){if(z-2===t&&(E=_.slice()),z-1===t&&(k=_.slice()),!e.matrix){var n=function(e,t,n,r,o){var i,a=e.target,s=e.origin,l=t.matrix,c=Qa(a),u=c.offsetWidth,d=c.offsetHeight,p=n.getBoundingClientRect(),h=[0,0];n===un(n)&&(h=Fa(a,!0));for(var f=a.getBoundingClientRect(),m=f.left-p.left+n.scrollLeft-(n.clientLeft||0)+h[0],g=f.top-p.top+n.scrollTop-(n.clientTop||0)+h[1],v=f.width,y=f.height,b=Sn(r,o,l),w=qa(b,u,d,r),x=w.left,S=w.top,_=w.width,C=w.height,E=$a(b,s,r),k=En(E,[x,S]),z=[m+k[0]*v/_,g+k[1]*y/C],P=[0,0],A=0;++A<10;){var D=yn(o,r);i=Fr(En($a(D,z,r),$a(D,E,r)),2),P[0]=i[0],P[1]=i[1];var T=qa(Sn(r,o,Bn(P,r),l),u,d,r),I=T.left-m,M=T.top-g;if(Bs(I)<2&&Bs(M)<2)break;z[0]-=I,z[1]-=M}return P.map((function(e){return Math.round(e)}))}(e,a[t+1],D,w,_n(T,_,w));e.matrix=Bn(n,w)}_=_n(_,e.matrix,w)}));var I=!x&&s;S||(S=jn(I?4:3));var M=Va(x&&16===S.length?xn(S,4,3):S,I),N=C;return C=vn(C,w,w),{hasZoom:1!==h||1!==y,hasFixed:p,matrixes:a,rootMatrix:C,originalRootMatrix:N,beforeMatrix:E,offsetMatrix:k,allMatrix:_,targetMatrix:S,targetTransform:M,inlineTransform:e.style.transform,transformOrigin:c,targetOrigin:u,is3d:b,offsetContainer:d,offsetRootContainer:v}}function ll(e,t,n,r){void 0===n&&(n=t);var o=0,i=0,a=0,s={},l=Qa(e);if(e&&(o=l.offsetWidth,i=l.offsetHeight),e){var c=sl(e,t,n,r),u=yo(c.allMatrix,c.transformOrigin,o,i);s=jr(jr({},c),u);var d=yo(c.allMatrix,[50,50],100,100);a=es([d.pos1,d.pos2],d.direction)}var p=r?4:3;return jr(jr(jr({hasZoom:!1,width:o,height:i,rotation:a},l),{originalRootMatrix:jn(p),rootMatrix:jn(p),beforeMatrix:jn(p),offsetMatrix:jn(p),allMatrix:jn(p),targetMatrix:jn(p),targetTransform:"",inlineTransform:"",transformOrigin:[0,0],targetOrigin:[0,0],is3d:!!r,left:0,top:0,right:0,bottom:0,origin:[0,0],pos1:[0,0],pos2:[0,0],pos3:[0,0],pos4:[0,0],direction:1,hasFixed:!1,offsetContainer:null,offsetRootContainer:null,matrixes:[]}),s)}function cl(e,t,n,r,o,i){void 0===i&&(i=[]);var a=1,s=[0,0],l={left:0,top:0,width:0,height:0,right:0,bottom:0,clientLeft:0,clientTop:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0},c={left:0,top:0,width:0,height:0,right:0,bottom:0,clientLeft:0,clientTop:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0},u={left:0,top:0,width:0,height:0,right:0,bottom:0,clientLeft:0,clientTop:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0},d={left:0,top:0,width:0,height:0,right:0,bottom:0,clientLeft:0,clientTop:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0},p=[0,0],h={},f=ll(t,n,o,!0);if(t){var m=Zo(t);i.forEach((function(e){h[e]=m(e)}));var g=f.is3d?4:3,v=yo(f.offsetMatrix,Cn(f.transformOrigin,bn(f.targetMatrix,g)),f.width,f.height);a=v.direction,s=Cn(v.origin,[v.left-f.left,v.top-f.top]),d=rs(f.offsetRootContainer);var y=Ra(r,r,!0).offsetParent||f.offsetRootContainer;if(f.hasZoom){var b=yo(_n(f.originalRootMatrix,f.allMatrix),f.transformOrigin,f.width,f.height),w=yo(f.originalRootMatrix,Na(Zo(y)("transformOrigin")).map((function(e){return parseFloat(e)})),y.offsetWidth,y.offsetHeight);if(l=ns(b,d),u=ns(w,d,y,!0),e){var x=b.left,S=b.top;c=ns({left:x,top:S,bottom:S,right:S},d)}}else{l=rs(t),u=function(e){var t=null==Wo?void 0:Wo.get(e);if(t)return t;var n=rs(e,!0);return Wo&&Wo.set(e,n),n}(y),e&&(c=rs(e));var _=u.left,C=u.top,E=u.clientLeft,k=u.clientTop,z=[l.left-_,l.top-C];p=En(_s(f.rootMatrix,z,4),[E+f.left,k+f.top])}}return jr({targetClientRect:l,containerClientRect:u,moveableClientRect:c,rootContainerClientRect:d,beforeDirection:a,beforeOrigin:s,originalBeforeOrigin:s,target:t,style:h,offsetDelta:p},f)}function ul(e){var t=e.pos1,n=e.pos2,r=e.pos3,o=e.pos4;if(!(t&&n&&r&&o))return null;var i=ur([t,n,r,o]),a=[i.minX,i.minY],s=En(e.origin,a);return t=En(t,a),n=En(n,a),r=En(r,a),o=En(o,a),jr(jr({},e),{left:e.left,top:e.top,posDelta:a,pos1:t,pos2:n,pos3:r,pos4:o,origin:s,beforeOrigin:s,isPersisted:!0})}var dl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state=jr({container:null,gestos:{},renderLines:[[[0,0],[0,0]],[[0,0],[0,0]],[[0,0],[0,0]],[[0,0],[0,0]]],renderPoses:[[0,0],[0,0],[0,0],[0,0]],disableNativeEvent:!1,posDelta:[0,0]},cl(null)),t.renderState={},t.enabledAbles=[],t.targetAbles=[],t.controlAbles=[],t.rotation=0,t.scale=[1,1],t.isMoveableMounted=!1,t.isUnmounted=!1,t.events={mouseEnter:null,mouseLeave:null},t._emitter=new ir,t._prevOriginalDragTarget=null,t._originalDragTarget=null,t._prevDragTarget=null,t._dragTarget=null,t._prevPropTarget=null,t._propTarget=null,t._prevDragArea=!1,t._isPropTargetChanged=!1,t._hasFirstTarget=!1,t._reiszeObserver=null,t._observerId=0,t._mutationObserver=null,t._rootContainer=null,t._viewContainer=null,t._viewClassNames=[],t._store={},t.checkUpdateRect=function(){if(!t.isDragging()){var e=t.props.parentMoveable;e?e.checkUpdateRect():($t(t._observerId),t._observerId=Ht((function(){t.isDragging()||t.updateRect()})))}},t._onPreventClick=function(e){e.stopPropagation(),e.preventDefault()},t}return Rr(t,e),t.prototype.render=function(){var e=this.props,t=this.getState(),n=e.parentPosition,r=e.className,o=e.target,i=e.zoom,a=e.cspNonce,s=e.translateZ,c=e.cssStyled,u=e.groupable,d=e.linePadding,p=e.controlPadding;this._checkUpdateRootContainer(),this.checkUpdate(),this.updateRenderPoses();var h=Fr(n||[0,0],2),f=h[0],m=h[1],g=t.left,v=t.top,y=t.target,b=t.direction,w=t.hasFixed,x=t.offsetDelta,S=e.targets,_=this.isDragging(),C={};this.getEnabledAbles().forEach((function(e){C["data-able-".concat(e.name.toLowerCase())]=!0}));var E=this._getAbleClassName(),k=S&&S.length&&(y||u)||o||!this._hasFirstTarget&&this.state.isPersisted,z=this.controlBox||this.props.firstRenderState||this.props.persistData,P=[g-f,v-m];!u&&e.useAccuratePosition&&(P[0]+=x[0],P[1]+=x[1]);var A={position:w?"fixed":"absolute",display:k?"block":"none",visibility:z?"visible":"hidden",transform:"translate3d(".concat(P[0],"px, ").concat(P[1],"px, ").concat(s,")"),"--zoom":i,"--zoompx":"".concat(i,"px")};return d&&(A["--moveable-line-padding"]=d),p&&(A["--moveable-control-padding"]=p),l.createElement(c,jr({cspNonce:a,ref:yt(this,"controlBox"),className:"".concat(Aa("control-box",-1===b?"reverse":"",_?"dragging":"")," ").concat(E," ").concat(r)},C,{onClick:this._onPreventClick,style:A}),this.renderAbles(),this._renderLines())},t.prototype.componentDidMount=function(){this.isMoveableMounted=!0,this.isUnmounted=!1;var e=this.props,t=e.parentMoveable,n=e.container;this._checkUpdateRootContainer(),this._checkUpdateViewContainer(),this._updateTargets(),this._updateNativeEvents(),this._updateEvents(),this.updateCheckInput(),this._updateObserver(this.props),n||t||this.state.isPersisted||(this.updateRect("",!1,!1),this.forceUpdate())},t.prototype.componentDidUpdate=function(e){this._checkUpdateRootContainer(),this._checkUpdateViewContainer(),this._updateNativeEvents(),this._updateTargets(),this._updateEvents(),this.updateCheckInput(),this._updateObserver(e)},t.prototype.componentWillUnmount=function(){var e,t;this.isMoveableMounted=!1,this.isUnmounted=!0,this._emitter.off(),null===(e=this._reiszeObserver)||void 0===e||e.disconnect(),null===(t=this._mutationObserver)||void 0===t||t.disconnect(),this._viewContainer&&this._changeAbleViewClassNames([]),cs(this,!1),cs(this,!0);var n=this.events;for(var r in n){var o=n[r];o&&o.destroy()}},t.prototype.getTargets=function(){var e=this.props.target;return e?[e]:[]},t.prototype.getAble=function(e){return Kt(this.props.ables||[],(function(t){return t.name===e}))},t.prototype.getContainer=function(){var e=this.props,t=e.parentMoveable,n=e.wrapperMoveable;return e.container||n&&n.getContainer()||t&&t.getContainer()||this.controlBox.parentElement},t.prototype.getControlBoxElement=function(){return this.controlBox},t.prototype.getDragElement=function(){return this._dragTarget},t.prototype.isMoveableElement=function(e){var t;return e&&((null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"class"))||"").indexOf(no)>-1},t.prototype.dragStart=function(e,t){void 0===t&&(t=e.target);var n=this.targetGesto,r=this.controlGesto;return n&&nl(this)({inputEvent:e},t)?n.isFlag()||n.triggerDragStart(e):r&&this.isMoveableElement(t)&&(r.isFlag()||r.triggerDragStart(e)),this},t.prototype.hitTest=function(e){var t,n=this.state,r=n.target,o=n.pos1,i=n.pos2,a=n.pos3,s=n.pos4,l=n.targetClientRect;if(!r)return 0;if(hn(e)){var c=e.getBoundingClientRect();t={left:c.left,top:c.top,width:c.width,height:c.height}}else t=jr({width:0,height:0},e);var u=t.left,d=t.top,p=t.width,h=t.height,f=cr([o,i,s,a],l),m=vr(f,[[u,d],[u+p,d],[u+p,d+h],[u,d+h]]),g=lr(f);return m&&g?Math.min(100,m/g*100):0},t.prototype.isInside=function(e,t){var n=this.state,r=n.target,o=n.pos1,i=n.pos2,a=n.pos3,s=n.pos4,l=n.targetClientRect;return!!r&&dr([e,t],cr([o,i,s,a],l))},t.prototype.updateRect=function(e,t,n){void 0===n&&(n=!0);var r=this.props,o=!r.parentPosition&&!r.wrapperMoveable;o&&Go(!0);var i=r.parentMoveable,a=this.state.target||r.target,s=this.getContainer(),l=i?i._rootContainer:this._rootContainer,c=cl(this.controlBox,a,s,s,l||s,this._getRequestStyles());if(!a&&this._hasFirstTarget&&r.persistData){var u=ul(r.persistData);for(var d in u)c[d]=u[d]}o&&Go(),this.updateState(c,!i&&n)},t.prototype.isDragging=function(e){var t,n,r=this.targetGesto,o=this.controlGesto;return(null==r?void 0:r.isFlag())?!e||!!(null===(t=r.getEventData()[e])||void 0===t?void 0:t.isEventStart):!!(null==o?void 0:o.isFlag())&&(!e||!!(null===(n=o.getEventData()[e])||void 0===n?void 0:n.isEventStart))},t.prototype.updateTarget=function(e){this.updateRect(e,!0)},t.prototype.getRect=function(){var e=this.state,t=ss(this.state),n=Fr(t,4),r=n[0],o=n[1],i=n[2],a=n[3],s=Wa(t),l=e.width,c=e.height,u=s.width,d=s.height,p=s.left,h=s.top,f=[e.left,e.top],m=Cn(f,e.origin);return{width:u,height:d,left:p,top:h,pos1:r,pos2:o,pos3:i,pos4:a,offsetWidth:l,offsetHeight:c,beforeOrigin:Cn(f,e.beforeOrigin),origin:m,transformOrigin:e.transformOrigin,rotation:this.getRotation()}},t.prototype.getManager=function(){return this},t.prototype.stopDrag=function(e){var t;e&&"target"!==e||(!1===(null==(t=this.targetGesto)?void 0:t.isIdle())&&ls(this,!1),null==t||t.stop());e&&"control"!==e||(!1===(null==(t=this.controlGesto)?void 0:t.isIdle())&&ls(this,!0),null==t||t.stop())},t.prototype.getRotation=function(){var e=this.state;return function(e,t,n){var r=Xt(e,t)/Math.PI*180;return(r=n>=0?r:180-r)>=0?r:360+r}(e.pos1,e.pos2,e.direction)},t.prototype.request=function(e,t,n){void 0===t&&(t={});var r=this,o=r.props,i=o.parentMoveable||o.wrapperMoveable||r,a=i.props.ables,s=o.groupable,l=Kt(a,(function(t){return t.name===e}));if(this.isDragging()||!l||!l.request)return{request:function(){return this},requestEnd:function(){return this}};var c=l.request(r),u=n||t.isInstant,d=c.isControl?"controlAbles":"targetAbles",p="".concat(s?"Group":"").concat(c.isControl?"Control":""),h=Br([],Fr(i[d]),!1),f={request:function(t){return tl(r,h,["drag"],p,"",jr(jr({},c.request(t)),{requestAble:e,isRequest:!0}),u),f},requestEnd:function(){return tl(r,h,["drag"],p,"End",jr(jr({},c.requestEnd()),{requestAble:e,isRequest:!0}),u),f}};return tl(r,h,["drag"],p,"Start",jr(jr({},c.requestStart(t)),{requestAble:e,isRequest:!0}),u),u?f.request(t).requestEnd():f},t.prototype.getMoveables=function(){return[this]},t.prototype.destroy=function(){this.componentWillUnmount()},t.prototype.updateRenderPoses=function(){var e=this.getState(),t=this.props,n=t.padding,r=e.originalBeforeOrigin,o=e.transformOrigin,i=e.allMatrix,a=e.is3d,s=e.pos1,l=e.pos2,c=e.pos3,u=e.pos4,d=e.left,p=e.top,h=e.isPersisted,f=t.zoom||1;if(!n&&f<=1)return e.renderPoses=[s,l,c,u],void(e.renderLines=[[s,l],[l,u],[u,c],[c,s]]);var m=Vs(n||{}),g=m.left,v=m.top,y=m.bottom,b=m.right,w=a?4:3,x=Sn(w,Bn((h?o:this.controlBox&&t.groupable?r:Cn(r,[d,p])).map((function(e){return-e})),w),i,Bn(o,w)),S=Es(x,s,[-g,-v],w),_=Es(x,l,[b,-v],w),C=Es(x,c,[-g,y],w),E=Es(x,u,[b,y],w);if(e.renderPoses=[S,_,C,E],e.renderLines=[[S,_],[_,E],[E,C],[C,S]],f){var k=f/2;e.renderLines=[[Es(x,s,[-g-k,-v],w),Es(x,l,[b+k,-v],w)],[Es(x,l,[b,-v-k],w),Es(x,u,[b,y+k],w)],[Es(x,u,[b+k,y],w),Es(x,c,[-g-k,y],w)],[Es(x,c,[-g,y+k],w),Es(x,s,[-g,-v-k],w)]]}},t.prototype.checkUpdate=function(){this._isPropTargetChanged=!1;var e=this.props,t=e.target,n=e.container,r=e.parentMoveable,o=this.state,i=o.target,a=o.container;if(i||t){this.updateAbles();var s=!ys(i,t);if(s||!ys(a,n)){var l=n||this.controlBox;l&&this.unsetAbles(),this.updateState({target:t,container:n}),!r&&l&&this.updateRect("End",!1,!1),this._isPropTargetChanged=s}}},t.prototype.waitToChangeTarget=function(){return new Promise((function(){}))},t.prototype.triggerEvent=function(e,t){var n=this.props;if(this._emitter.trigger(e,t),n.parentMoveable&&t.isRequest&&!t.isRequestChild)return n.parentMoveable.triggerEvent(e,t,!0);var r=n[e];return r&&r(t)},t.prototype.useCSS=function(e,t){var n=this.props.customStyledMap,r=e+t;return n[r]||(n[r]=Nr(e,t)),n[r]},t.prototype.getState=function(){var e,t=this.props;(t.target||(null===(e=t.targets)||void 0===e?void 0:e.length))&&(this._hasFirstTarget=!0);var n=this.controlBox,r=t.persistData,o=t.firstRenderState;if(o&&!n)return o;if(!this._hasFirstTarget&&r){var i=ul(r);if(i)return this.updateState(i,!1),this.state}return this.state.isPersisted=!1,this.state},t.prototype.updateSelectors=function(){},t.prototype.unsetAbles=function(){var e=this;this.targetAbles.forEach((function(t){t.unset&&t.unset(e)}))},t.prototype.updateAbles=function(e,t){void 0===e&&(e=this.props.ables),void 0===t&&(t="");var n=this.props.triggerAblesSimultaneously,r=this.getEnabledAbles(e),o="drag".concat(t,"Start"),i="pinch".concat(t,"Start"),a="drag".concat(t,"ControlStart"),s=vs(r,[o,i],n),l=vs(r,[a],n);this.enabledAbles=r,this.targetAbles=s,this.controlAbles=l},t.prototype.updateState=function(e,t){if(t){if(this.isUnmounted)return;this.setState(e)}else{var n=this.state;for(var r in e)n[r]=e[r]}},t.prototype.getEnabledAbles=function(e){void 0===e&&(e=this.props.ables);var t=this.props;return e.filter((function(e){return e&&(e.always&&!1!==t[e.name]||t[e.name])}))},t.prototype.renderAbles=function(){var e,t,n,r,o=this,i=this.props.triggerAblesSimultaneously,a={createElement:l.createElement};return this.renderState={},(e=xs(vs(this.getEnabledAbles(),["render"],i).map((function(e){return(0,e.render)(o,a)||[]}))).filter((function(e){return e})),t=function(e){return e.key},n=[],r={},e.forEach((function(o,i){var a=t(o,i,e),s=r[a];s||(s=[],r[a]=s,n.push(s)),s.push(o)})),n).map((function(e){return e[0]}))},t.prototype.updateCheckInput=function(){this.targetGesto&&(this.targetGesto.options.checkInput=this.props.checkInput)},t.prototype._getRequestStyles=function(){var e=this.getEnabledAbles().reduce((function(e,t){var n,r,o=null!==(r=null===(n=t.requestStyle)||void 0===n?void 0:n.call(t))&&void 0!==r?r:[];return Br(Br([],Fr(e),!1),Fr(o),!1)}),Br([],Fr(this.props.requestStyles||[]),!1));return e},t.prototype._updateObserver=function(e){this._updateResizeObserver(e),this._updateMutationObserver(e)},t.prototype._updateEvents=function(){var e=this.targetAbles.length,t=this.controlAbles.length,n=this._dragTarget;(!e&&this.targetGesto||this._isTargetChanged(!0))&&(cs(this,!1),this.updateState({gestos:{}})),t||cs(this,!0),n&&e&&!this.targetGesto&&(this.targetGesto=rl(this,n,"")),!this.controlGesto&&t&&(this.controlGesto=ol(this,"Control"))},t.prototype._updateTargets=function(){var e=this.props;this._prevPropTarget=this._propTarget,this._prevDragTarget=this._dragTarget,this._prevOriginalDragTarget=this._originalDragTarget,this._prevDragArea=e.dragArea,this._propTarget=e.target,this._originalDragTarget=e.dragTarget||e.target,this._dragTarget=As(this._originalDragTarget,!0)},t.prototype._renderLines=function(){var e=this.props,t=e.zoom,n=e.hideDefaultLines,r=e.hideChildMoveableDefaultLines,o=e.parentMoveable;if(n||o&&r)return[];var i=this.getState(),a={createElement:l.createElement};return i.renderLines.map((function(e,n){return ni(a,"",e[0],e[1],t,"render-line-".concat(n))}))},t.prototype._isTargetChanged=function(e){var t=this.props,n=t.dragTarget||t.target,r=this._prevOriginalDragTarget,o=this._prevDragArea,i=t.dragArea;return!i&&r!==n||(e||i)&&o!==i||this._prevPropTarget!=this._propTarget},t.prototype._updateNativeEvents=function(){var e=this,t=this.props.dragArea?this.areaElement:this.state.target,n=this.events,r=Ut(n);if(this._isTargetChanged())for(var o in n){var i=n[o];i&&i.destroy(),n[o]=null}if(t){var a=this.enabledAbles;r.forEach((function(r){var o=vs(a,[r]),i=o.length>0,s=n[r];i?(s||(s=new al(t,e,r),n[r]=s),s.setAbles(o)):s&&(s.destroy(),n[r]=null)}))}},t.prototype._checkUpdateRootContainer=function(){var e=this.props.rootContainer;!this._rootContainer&&e&&(this._rootContainer=As(e,!0))},t.prototype._checkUpdateViewContainer=function(){var e=this.props.viewContainer;!this._viewContainer&&e&&(this._viewContainer=As(e,!0)),this._viewContainer&&this._changeAbleViewClassNames(Br(Br([],Fr(this._getAbleViewClassNames()),!1),[this.isDragging()?Gs:""],!1))},t.prototype._changeAbleViewClassNames=function(e){var t=this._viewContainer,n=ws(e.filter(Boolean),(function(e){return e})).map((function(e){return Fr(e,1)[0]})),r=this._viewClassNames,o=Yn(r,n),i=o.removed,a=o.added;i.forEach((function(e){on(t,r[e])})),a.forEach((function(e){rn(t,n[e])})),this._viewClassNames=n},t.prototype._getAbleViewClassNames=function(){var e=this;return(this.getEnabledAbles().map((function(t){var n;return(null===(n=t.viewClassName)||void 0===n?void 0:n.call(t,e))||""})).join(" ")+" ".concat(this._getAbleClassName("-view"))).split(/\s+/g)},t.prototype._getAbleClassName=function(e){var t=this;void 0===e&&(e="");var n=this.getEnabledAbles(),r=this.targetGesto,o=this.controlGesto,i=(null==r?void 0:r.isFlag())?r.getEventData():{},a=(null==o?void 0:o.isFlag())?o.getEventData():{};return n.map((function(n){var r,o,s,l=n.name,c=(null===(r=n.className)||void 0===r?void 0:r.call(n,t))||"";return((null===(o=i[l])||void 0===o?void 0:o.isEventStart)||(null===(s=a[l])||void 0===s?void 0:s.isEventStart))&&(c+=" ".concat(Aa("".concat(l).concat(e,"-dragging")))),c.trim()})).filter(Boolean).join(" ")},t.prototype._updateResizeObserver=function(e){var t,n=this.props,r=n.target,o=dn(this.getControlBoxElement());if(o.ResizeObserver&&r&&n.useResizeObserver){if(e.target!==r||!this._reiszeObserver){var i=new o.ResizeObserver(this.checkUpdateRect);i.observe(r,{box:"border-box"}),this._reiszeObserver=i}}else null===(t=this._reiszeObserver)||void 0===t||t.disconnect()},t.prototype._updateMutationObserver=function(e){var t,n=this,r=this.props,o=r.target,i=dn(this.getControlBoxElement());if(i.MutationObserver&&o&&r.useMutationObserver){if(e.target!==o||!this._mutationObserver){var a=new i.MutationObserver((function(e){var t,r;try{for(var o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),i=o.next();!i.done;i=o.next()){var a=i.value;"attributes"===a.type&&"style"===a.attributeName&&n.checkUpdateRect()}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}}));a.observe(o,{attributes:!0}),this._mutationObserver=a}}else null===(t=this._mutationObserver)||void 0===t||t.disconnect()},t.defaultProps={dragTargetSelf:!1,target:null,dragTarget:null,container:null,rootContainer:null,origin:!0,parentMoveable:null,wrapperMoveable:null,isWrapperMounted:!1,parentPosition:null,warpSelf:!1,svgOrigin:"",dragContainer:null,useResizeObserver:!1,useMutationObserver:!1,preventDefault:!0,preventRightClick:!0,preventWheelClick:!0,linePadding:0,controlPadding:0,ables:[],pinchThreshold:20,dragArea:!1,passDragArea:!1,transformOrigin:"",className:"",zoom:1,triggerAblesSimultaneously:!1,padding:{},pinchOutside:!0,checkInput:!1,dragFocusedInput:!1,groupable:!1,hideDefaultLines:!1,cspNonce:"",translateZ:0,cssStyled:null,customStyledMap:{},props:{},stopPropagation:!1,preventClickDefault:!1,preventClickEventOnDrag:!0,flushSync:Da,firstRenderState:null,persistData:null,viewContainer:null,requestStyles:[],useAccuratePosition:!1},t}(l.PureComponent),pl={name:"groupable",props:["defaultGroupRotate","useDefaultGroupRotate","defaultGroupOrigin","groupable","groupableProps","targetGroups","hideChildMoveableDefaultLines"],events:[],render:function(e,t){var n,r=e.props,o=r.targets||[],i=e.getState(),a=i.left,s=i.top,l=i.isPersisted,c=r.zoom||1,u=e.renderGroupRects,d=(null===(n=r.persistData)||void 0===n?void 0:n.children)||[];l?o=d.map((function(){return null})):d=[];var p=js(e,"parentPosition",[a,s],(function(e){return e.join(",")})),h=js(e,"requestStyles",e.getRequestChildStyles(),(function(e){return e.join(",")}));return e.moveables=e.moveables.slice(0,o.length),Br(Br([],Fr(o.map((function(n,o){return t.createElement(dl,{key:"moveable"+o,ref:bt(e,"moveables",o),target:n,origin:!1,requestStyles:h,cssStyled:r.cssStyled,customStyledMap:r.customStyledMap,useResizeObserver:r.useResizeObserver,useMutationObserver:r.useMutationObserver,hideChildMoveableDefaultLines:r.hideChildMoveableDefaultLines,parentMoveable:e,parentPosition:[a,s],persistData:d[o],zoom:c})}))),!1),Fr(xs(u.map((function(e,n){var r=[e.pos1,e.pos2,e.pos3,e.pos4];return[[0,1],[1,3],[3,2],[2,0]].map((function(e,o){var i=Fr(e,2),a=i[0],s=i[1];return ni(t,"",En(r[a],p),En(r[s],p),c,"group-rect-".concat(n,"-").concat(o))}))})))),!1)}};Lr("clickable",{props:["clickable"],events:["click","clickGroup"],always:!0,dragRelation:"weak",dragStart:function(){},dragControlStart:function(){},dragGroupStart:function(e,t){t.datas.inputTarget=t.inputEvent&&t.inputEvent.target},dragEnd:function(e,t){var n=e.props.target,r=t.inputEvent,o=t.inputTarget,i=!e.isMoveableElement(o)&&e.controlBox.contains(o);if(r&&o&&!t.isDrag&&!e.isMoveableElement(o)&&!i){var a=n.contains(o);ms(e,"onClick",ps(e,t,{isDouble:t.isDouble,inputTarget:o,isTarget:n===o,moveableTarget:e.props.target,containsTarget:a}))}},dragGroupEnd:function(e,t){var n=t.inputEvent,r=t.inputTarget;if(n&&r&&!t.isDrag&&!e.isMoveableElement(r)&&t.datas.inputTarget!==r){var o=e.props.targets,i=o.indexOf(r),a=i>-1,s=!1;-1===i&&(s=(i=Vt(o,(function(e){return e.contains(r)})))>-1),ms(e,"onClickGroup",ps(e,t,{isDouble:t.isDouble,targets:o,inputTarget:r,targetIndex:i,isTarget:a,containsTarget:s,moveableTarget:o[i]}))}},dragControlEnd:function(e,t){this.dragEnd(e,t)},dragGroupControlEnd:function(e,t){this.dragEnd(e,t)}});function hl(e){var t=e.originalDatas.draggable;return t||(e.originalDatas.draggable={},t=e.originalDatas.draggable),jr(jr({},e),{datas:t})}Lr("edgeDraggable",{css:[".edge.edgeDraggable.line {\ncursor: move;\n}"],render:function(e,t){var n=e.props,r=n.edgeDraggable;return r?ri(t,"edgeDraggable",r,e.getState().renderPoses,n.zoom):[]},dragCondition:function(e,t){var n,r=e.props,o=null===(n=t.inputEvent)||void 0===n?void 0:n.target;return!(!r.edgeDraggable||!o)&&(!r.draggable&&nn(o,Aa("direction"))&&nn(o,Aa("edge"))&&nn(o,Aa("edgeDraggable")))},dragStart:function(e,t){return Zi.dragStart(e,hl(t))},drag:function(e,t){return Zi.drag(e,hl(t))},dragEnd:function(e,t){return Zi.dragEnd(e,hl(t))},dragGroupCondition:function(e,t){var n,r=e.props,o=null===(n=t.inputEvent)||void 0===n?void 0:n.target;return!(!r.edgeDraggable||!o)&&(!r.draggable&&nn(o,Aa("direction"))&&nn(o,Aa("line")))},dragGroupStart:function(e,t){return Zi.dragGroupStart(e,hl(t))},dragGroup:function(e,t){return Zi.dragGroup(e,hl(t))},dragGroupEnd:function(e,t){return Zi.dragGroupEnd(e,hl(t))},unset:function(e){return Zi.unset(e)}});var fl={name:"individualGroupable",props:["individualGroupable","individualGroupableProps"],events:[]};function ml(e,t){var n=Fr(e,3),r=n[0],o=n[1],i=n[2];return(r*t[0]+o*t[1]+i)/Math.sqrt(r*r+o*o)}function gl(e,t){var n=Fr(e,2),r=n[0],o=n[1];return-r*t[0]-o*t[1]}function vl(e,t){return Math.max.apply(Math,Br([],Fr(e.map((function(e){var n=Fr(e,4),r=n[0],o=n[1],i=n[2],a=n[3];return Math.max(r[t],o[t],i[t],a[t])}))),!1))}function yl(e,t){return Math.min.apply(Math,Br([],Fr(e.map((function(e){var n=Fr(e,4),r=n[0],o=n[1],i=n[2],a=n[3];return Math.min(r[t],o[t],i[t],a[t])}))),!1))}function bl(e,t){var n=t.map((function(t){if(At(t)){var n=bl(e,t),r=n.length;return r>1?n:1===r?n[0]:null}var o=Kt(e,(function(e){return e.manager.props.target===t}));return o?(o.finded=!0,o.manager):null})).filter(Boolean);return 1===n.length&&At(n[0])?n[0]:n}var wl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.differ=new nr,t.moveables=[],t.transformOrigin="50% 50%",t.renderGroupRects=[],t._targetGroups=[],t._hasFirstTargets=!1,t}return Rr(t,e),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this)},t.prototype.checkUpdate=function(){this._isPropTargetChanged=!1,this.updateAbles()},t.prototype.getTargets=function(){return this.props.targets},t.prototype.updateRect=function(e,t,n){var r;void 0===n&&(n=!0);var o=this.state;if(this.controlBox&&!o.isPersisted){Go(!0),this.moveables.forEach((function(t){t.updateRect(e,!1,!1)}));var i=this.props,a=this.moveables,s=o.target||i.target,l=a.map((function(e){return{finded:!1,manager:e}})),c=this.props.targetGroups||[],u=bl(l,c),d=i.useDefaultGroupRotate;u.push.apply(u,Br([],Fr(l.filter((function(e){return!e.finded})).map((function(e){return e.manager}))),!1));var p=[],h=!t||""!==e&&i.updateGroup,f=i.defaultGroupRotate||0;if(!this._hasFirstTargets){var m=null===(r=i.persistData)||void 0===r?void 0:r.rotation;null!=m&&(f=m)}var g=function e(t,n,r){var o=t.map((function(t){if(At(t)){var r=e(t,n),o=[r.pos1,r.pos2,r.pos3,r.pos4];return p.push(r),{poses:o,rotation:r.rotation}}return{poses:ss(t.state),rotation:t.getRotation()}})),i=o.map((function(e){return e.rotation})),a=0,s=i[0],l=i.every((function(e){return Math.abs(s-e)<.1}));a=h?!d&&l?s:f:d||r||!l?n:s;var c=o.map((function(e){return e.poses})),u=function(e,t){var n,r,o,i=[0,0],a=[0,0],s=[0,0],l=[0,0],c=0,u=0;if(!e.length)return{pos1:i,pos2:a,pos3:s,pos4:l,minX:0,minY:0,maxX:0,maxY:0,width:c,height:u,rotation:t};var d=en(t,so);if(d%90){var p=d/180*Math.PI,h=Math.tan(p),f=-1/h,m=[co,uo],g=[[0,0],[0,0]],v=[co,uo],y=[[0,0],[0,0]];e.forEach((function(e){e.forEach((function(e){var t=ml([-h,1,0],e),n=ml([-f,1,0],e);m[0]>t&&(g[0]=e,m[0]=t),m[1]<t&&(g[1]=e,m[1]=t),v[0]>n&&(y[0]=e,v[0]=n),v[1]<n&&(y[1]=e,v[1]=n)}))}));var b=Fr(g,2),w=b[0],x=b[1],S=Fr(y,2),_=S[0],C=S[1],E=[-h,1,gl([-h,1],w)],k=[-h,1,gl([-h,1],x)],z=[-f,1,gl([-f,1],_)],P=[-f,1,gl([-f,1],C)];n=Fr([[E,z],[E,P],[k,z],[k,P]].map((function(e){var t=Fr(e,2);return hr(t[0],t[1])[0]})),4),i=n[0],a=n[1],s=n[2],l=n[3],c=v[1]-v[0],u=m[1]-m[0]}else{var A=yl(e,0),D=yl(e,1),T=vl(e,0),I=vl(e,1);i=[A,D],a=[T,D],s=[A,I],l=[T,I],c=T-A,u=I-D,d%180&&(i=(r=Fr([s,i,l,a],4))[0],a=r[1],s=r[2],l=r[3],c=I-D,u=T-A)}d%360>180&&(i=(o=Fr([l,s,a,i],4))[0],a=o[1],s=o[2],l=o[3]);var M=ur([i,a,s,l]);return{pos1:i,pos2:a,pos3:s,pos4:l,width:c,height:u,minX:M.minX,minY:M.minY,maxX:M.maxX,maxY:M.maxY,rotation:t}}(c,a);return u}(u,this.rotation,!0);h&&(this.rotation=g.rotation,this.transformOrigin=i.defaultGroupOrigin||"50% 50%",this.scale=[1,1]),this._targetGroups=c,this.renderGroupRects=p;var v,y,b,w,x,S=this.transformOrigin,_=this.rotation,C=this.scale,E=g.width,k=g.height,z=g.minX,P=g.minY,A=(v=[[0,0],[E,0],[0,k],[E,k]],y=Os(S,E,k),b=this.rotation/180*Math.PI,w=v.map((function(e){return En(e,y)})),x=w.map((function(e){return Mn(e,b)})),{prev:w,next:x,result:x.map((function(e){return Cn(e,y)}))}),D=ur(A.result),T=D.minX,I=D.minY,M=" rotate(".concat(_,"deg)")+" scale(".concat(Fs(C[0]),", ").concat(Fs(C[1]),")"),N="translate(".concat(-T,"px, ").concat(-I,"px)").concat(M);this.controlBox.style.transform="translate3d(".concat(z,"px, ").concat(P,"px, ").concat(this.props.translateZ||0,")"),s.style.cssText+="left:0px;top:0px;"+"transform-origin:".concat(S,";")+"width:".concat(E,"px;height:").concat(k,"px;")+"transform: ".concat(N),o.width=E,o.height=k;var O=this.getContainer(),R=cl(this.controlBox,s,this.controlBox,this.getContainer(),this._rootContainer||O,[]),j=[R.left,R.top],F=Fr(ss(R),4),B=F[0],L=F[1],V=F[2],K=F[3],H=ur([B,L,V,K]),$=[H.minX,H.minY],U=Fs(C[0]*C[1]);R.pos1=En(B,$),R.pos2=En(L,$),R.pos3=En(V,$),R.pos4=En(K,$),R.left=z-R.left+$[0],R.top=P-R.top+$[1],R.origin=En(Cn(j,R.origin),$),R.beforeOrigin=En(Cn(j,R.beforeOrigin),$),R.originalBeforeOrigin=Cn(j,R.originalBeforeOrigin),R.transformOrigin=En(Cn(j,R.transformOrigin),$),s.style.transform="translate(".concat(-T-$[0],"px, ").concat(-I-$[1],"px)")+M,Go(),this.updateState(jr(jr({},R),{posDelta:$,direction:U,beforeDirection:U}),n)}},t.prototype.getRect=function(){return jr(jr({},e.prototype.getRect.call(this)),{children:this.moveables.map((function(e){return e.getRect()}))})},t.prototype.triggerEvent=function(t,n,r){if(r||t.indexOf("Group")>-1)return e.prototype.triggerEvent.call(this,t,n);this._emitter.trigger(t,n)},t.prototype.getRequestChildStyles=function(){var e=this.getEnabledAbles().reduce((function(e,t){var n,r,o=null!==(r=null===(n=t.requestChildStyle)||void 0===n?void 0:n.call(t))&&void 0!==r?r:[];return Br(Br([],Fr(e),!1),Fr(o),!1)}),[]);return e},t.prototype.getMoveables=function(){return Br([],Fr(this.moveables),!1)},t.prototype.updateAbles=function(){e.prototype.updateAbles.call(this,Br(Br([],Fr(this.props.ables),!1),[pl],!1),"Group")},t.prototype._updateTargets=function(){e.prototype._updateTargets.call(this),this._originalDragTarget=this.props.dragTarget||this.areaElement,this._dragTarget=As(this._originalDragTarget,!0)},t.prototype._updateEvents=function(){var e=this.state,t=this.props,n=this._prevDragTarget,r=t.dragTarget||this.areaElement,o=t.targets,i=this.differ.update(o),a=i.added,s=i.changed,l=i.removed,c=a.length||l.length;(c||this._prevOriginalDragTarget!==this._originalDragTarget)&&(cs(this,!1),cs(this,!0),this.updateState({gestos:{}})),n!==r&&(e.target=null),e.target||(e.target=this.areaElement,this.controlBox.style.display="block"),e.target&&(this.targetGesto||(this.targetGesto=rl(this,this._dragTarget,"Group")),this.controlGesto||(this.controlGesto=ol(this,"GroupControl")));var u=!ys(e.container,t.container);u&&(e.container=t.container),(u||c||this.transformOrigin!==(t.defaultGroupOrigin||"50% 50%")||s.length||o.length&&!Rs(this._targetGroups,t.targetGroups||[]))&&(this.updateRect(),this._hasFirstTargets=!0),this._isPropTargetChanged=!!c},t.prototype._updateObserver=function(){},t.defaultProps=jr(jr({},dl.defaultProps),{transformOrigin:["50%","50%"],groupable:!0,dragArea:!0,keepRatio:!0,targets:[],defaultGroupRotate:0,defaultGroupOrigin:"50% 50%"}),t}(dl),xl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.moveables=[],t}return Rr(t,e),t.prototype.render=function(){var e,t=this,n=this.props,r=n.cspNonce,o=n.cssStyled,i=n.persistData,a=n.targets||[],s=a.length,c=this.isUnmounted||!s,u=null!==(e=null==i?void 0:i.children)&&void 0!==e?e:[];return c&&!s&&u.length?a=u.map((function(){return null})):c||(u=[]),l.createElement(o,{cspNonce:r,ref:yt(this,"controlBox"),className:Aa("control-box")},a.map((function(e,r){var o,i,a=null!==(i=null===(o=n.individualGroupableProps)||void 0===o?void 0:o.call(n,e,r))&&void 0!==i?i:{};return l.createElement(dl,jr({key:"moveable"+r,ref:bt(t,"moveables",r)},n,a,{target:e,wrapperMoveable:t,isWrapperMounted:t.isMoveableMounted,persistData:u[r]}))})))},t.prototype.componentDidMount=function(){},t.prototype.componentDidUpdate=function(){},t.prototype.getTargets=function(){return this.props.targets},t.prototype.updateRect=function(e,t,n){void 0===n&&(n=!0),Go(!0),this.moveables.forEach((function(r){r.updateRect(e,t,n)})),Go()},t.prototype.getRect=function(){return jr(jr({},e.prototype.getRect.call(this)),{children:this.moveables.map((function(e){return e.getRect()}))})},t.prototype.request=function(e,t,n){void 0===t&&(t={});var r=this.moveables.map((function(n){return n.request(e,jr(jr({},t),{isInstant:!1}),!1)})),o={request:function(e){return r.forEach((function(t){return t.request(e)})),this},requestEnd:function(){return r.forEach((function(e){return e.requestEnd()})),this}};return n||t.isInstant?o.request(t).requestEnd():o},t.prototype.dragStart=function(e,t){void 0===t&&(t=e.target);var n=t,r=Kt(this.moveables,(function(e){var t=e.getTargets()[0],r=e.getControlBoxElement(),o=e.getDragElement();return!(!t||!o)&&(o===n||o.contains(n)||o!==t&&t===n||t.contains(n)||r===n||r.contains(n))}));return r&&r.dragStart(e,t),this},t.prototype.hitTest=function(){return 0},t.prototype.isInside=function(){return!1},t.prototype.isDragging=function(){return!1},t.prototype.getDragElement=function(){return null},t.prototype.getMoveables=function(){return Br([],Fr(this.moveables),!1)},t.prototype.updateRenderPoses=function(){},t.prototype.checkUpdate=function(){},t.prototype.triggerEvent=function(){},t.prototype.updateAbles=function(){},t.prototype._updateEvents=function(){},t.prototype._updateObserver=function(){},t}(dl);function Sl(e,t){var n=[];return e.forEach((function(e){e&&(Dt(e)?t[e]&&n.push.apply(n,Br([],Fr(t[e]),!1)):At(e)?n.push.apply(n,Br([],Fr(Sl(e,t)),!1)):n.push(e))})),n}function _l(e,t){var n=[];return e.forEach((function(e){e&&(Dt(e)?t[e]&&n.push.apply(n,Br([],Fr(t[e]),!1)):At(e)?n.push(_l(e,t)):n.push(e))})),n}function Cl(e,t){return e.length!==t.length||e.some((function(e,n){var r=t[n];return!(!e&&!r)&&(e!=r&&(!At(e)||!At(r)||Cl(e,r)))}))}var El=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.refTargets=[],t.selectorMap={},t._differ=new nr,t._elementTargets=[],t._tmpRefTargets=[],t._tmpSelectorMap={},t._onChangeTargets=null,t}var n,r;return Rr(t,e),t.makeStyled=function(){var e={};this.getTotalAbles().forEach((function(t){var n=t.css;n&&n.forEach((function(t){e[t]=!0}))}));var t=Ut(e).join("\n");this.defaultStyled=Nr("div",function(e,t){return t.replace(/([^}{]*){/gm,(function(t,n){return n.replace(/\.([^{,\s\d.]+)/g,"."+e+"$1")+"{"}))}(no,oo+t))},t.getTotalAbles=function(){return Br([Js,pl,fl,Xs],Fr(this.defaultAbles),!1)},t.prototype.render=function(){var e,t=this.constructor;t.defaultStyled||t.makeStyled();var n=this.props,r=n.ables,o=n.props,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["ables","props"]),a=Fr(this._updateRefs(!0),2),s=a[0],c=a[1],u=Sl(s,c),d=u.length>1,p=Br(Br([],Fr(t.getTotalAbles()),!1),Fr(r||[]),!1),h=jr(jr(jr({},i),o||{}),{ables:p,cssStyled:t.defaultStyled,customStyledMap:t.customStyledMap});this._elementTargets=u;var f=null,m=this.moveable,g=i.persistData;if((null==g?void 0:g.children)&&(d=!0),i.individualGroupable)return l.createElement(xl,jr({key:"individual-group",ref:yt(this,"moveable")},h,{target:null,targets:u}));if(d){var v=_l(s,c);if(m&&!m.props.groupable&&!m.props.individualGroupable){var y=m.props.target;y&&u.indexOf(y)>-1&&(f=jr({},m.state))}return l.createElement(wl,jr({key:"group",ref:yt(this,"moveable")},h,null!==(e=i.groupableProps)&&void 0!==e?e:{},{target:null,targets:u,targetGroups:v,firstRenderState:f}))}var b=u[0];if(m&&(m.props.groupable||m.props.individualGroupable)){var w=Kt(m.moveables||[],(function(e){return e.props.target===b}));w&&(f=jr({},w.state))}return l.createElement(dl,jr({key:"single",ref:yt(this,"moveable")},h,{target:b,firstRenderState:f}))},t.prototype.componentDidMount=function(){this._checkChangeTargets()},t.prototype.componentDidUpdate=function(){this._checkChangeTargets()},t.prototype.componentWillUnmount=function(){this.selectorMap={},this.refTargets=[]},t.prototype.getTargets=function(){var e,t;return null!==(t=null===(e=this.moveable)||void 0===e?void 0:e.getTargets())&&void 0!==t?t:[]},t.prototype.updateSelectors=function(){this.selectorMap={},this._updateRefs(),this.forceUpdate()},t.prototype.waitToChangeTarget=function(){var e,t=this;return this._onChangeTargets=function(){t._onChangeTargets=null,e()},new Promise((function(t){e=t}))},t.prototype.waitToChangeTargets=function(){return this.waitToChangeTarget()},t.prototype.getManager=function(){return this.moveable},t.prototype.getMoveables=function(){return this.moveable.getMoveables()},t.prototype.getDragElement=function(){return this.moveable.getDragElement()},t.prototype._updateRefs=function(e){var t=this.refTargets,n=Ds(this.props.target||this.props.targets),r="undefined"!=typeof document,o=Cl(t,n),i=this.selectorMap,a={};return this.refTargets.forEach((function e(t){Dt(t)?i[t]?a[t]=i[t]:r&&(o=!0,a[t]=[].slice.call(document.querySelectorAll(t))):At(t)&&t.forEach(e)})),this._tmpRefTargets=n,this._tmpSelectorMap=a,[n,a,!e&&o]},t.prototype._checkChangeTargets=function(){var e,t,n;this.refTargets=this._tmpRefTargets,this.selectorMap=this._tmpSelectorMap;var r=this._differ.update(this._elementTargets),o=r.added,i=r.removed;(o.length||i.length)&&(null===(t=(e=this.props).onChangeTargets)||void 0===t||t.call(e,{moveable:this.moveable,targets:this._elementTargets}),null===(n=this._onChangeTargets)||void 0===n||n.call(this));var a=Fr(this._updateRefs(),3),s=a[0],l=a[1],c=a[2];this.refTargets=s,this.selectorMap=l,c&&this.forceUpdate()},t.defaultAbles=[],t.customStyledMap={},t.defaultStyled=null,function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([(n=mo,void 0===r&&(r={}),function(e,t){n.forEach((function(n){var o=r[n]||n;o in e||(e[o]=function(){for(var e,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=(e=this[t])[n].apply(e,r);return i===this[t]?this:i})}))})],t.prototype,"moveable",void 0),t}(l.PureComponent);function kl(e,t){const{"aria-label":n,"aria-labelledby":r,orientation:o="horizontal"}=e;let[i,a]=(0,l.useState)(!1);(0,Ae.Nf)((()=>{var e;a(!(!t.current||!(null===(e=t.current.parentElement)||void 0===e?void 0:e.closest('[role="toolbar"]'))))}));const{direction:s}=(0,De.Ym)(),c="rtl"===s&&"horizontal"===o;let u=(0,x.C7)(t);const d=(0,l.useRef)(null);return{toolbarProps:{role:i?"group":"toolbar","aria-orientation":o,"aria-label":n,"aria-labelledby":null==n?r:void 0,onKeyDownCapture:i?void 0:e=>{if(e.currentTarget.contains(e.target)){if("horizontal"===o&&"ArrowRight"===e.key||"vertical"===o&&"ArrowDown"===e.key)c?u.focusPrevious():u.focusNext();else{if(!("horizontal"===o&&"ArrowLeft"===e.key||"vertical"===o&&"ArrowUp"===e.key))return"Tab"===e.key?(e.stopPropagation(),d.current=document.activeElement,void(e.shiftKey?u.focusFirst():u.focusLast())):void 0;c?u.focusNext():u.focusPrevious()}e.stopPropagation(),e.preventDefault()}},onFocusCapture:i?void 0:e=>{var n,r;d.current&&!e.currentTarget.contains(e.relatedTarget)&&(null===(n=t.current)||void 0===n?void 0:n.contains(e.target))&&(null===(r=d.current)||void 0===r||r.focus(),d.current=null)},onBlurCapture:i?void 0:e=>{e.currentTarget.contains(e.relatedTarget)||d.current||(d.current=e.target)}}}}var zl=n(2543),Pl=n(69101),Al=(n(59184),Object.defineProperty),Dl=Object.defineProperties,Tl=Object.getOwnPropertyDescriptors,Il=Object.getOwnPropertySymbols,Ml=Object.prototype.hasOwnProperty,Nl=Object.prototype.propertyIsEnumerable,Ol=(e,t,n)=>t in e?Al(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rl=(e,t)=>{for(var n in t||(t={}))Ml.call(t,n)&&Ol(e,n,t[n]);if(Il)for(var n of Il(t))Nl.call(t,n)&&Ol(e,n,t[n]);return e},jl=(e,t)=>{var n={};for(var r in e)Ml.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Il)for(var r of Il(e))t.indexOf(r)<0&&Nl.call(e,r)&&(n[r]=e[r]);return n},Fl=()=>(0,Pl.ie)(),Bl=(e,t,n)=>Pl.KE.pointRef(e,t,n),Ll=e=>Pl.Hg.isElement(e),Vl=(e,t)=>Ll(t)&&Pl.KE.isBlock(e,t);var Kl=(e,t,n)=>!n||("object"==typeof n?Object.entries(n).every((([t,n])=>{const r=function(e){return Array.isArray(e)?e:[e]}(n);return r.includes(e[t])})):n(e,t)),Hl=(e,t={})=>{const{block:n,match:r}=t;return((e,t)=>Dl(e,Tl(t)))(Rl({},t),{match:r||n?(t,o)=>Kl(t,o,r)&&(!n||Vl(e,t)):void 0})},$l=(e,t)=>Pl.KE.above(e,Hl(e,t)),Ul=(e,t,n={})=>{const{unhang:r=!0,voids:o}=n;return Pl.Q6.isRange(t)&&r?Pl.KE.unhangRange(e,t,{voids:o}):t},Wl=(e,t)=>(Ul(e,null==t?void 0:t.at,t),Pl.KE.nodes(e,Hl(e,t))),ql=(e,t)=>Pl.KE.previous(e,t),Gl=(e,t)=>{let n=!1;return Pl.KE.withoutNormalizing(e,(()=>{n=!!t()})),n},Zl=e=>Pl.EY.isText(e),Yl=(e,t)=>Pl.gB.removeNodes(e,t),Xl=(e,t)=>{Pl.gB.select(e,t)},Jl=(e,t)=>Pl.KE.end(e,t),Ql=(e,t,n)=>Pl.KE.before(e,t,n),ec=(e,t)=>Pl.KE.start(e,t),tc=(e,t,n)=>{if(!t)return"";try{return Pl.KE.string(e,t,n)}catch(e){return""}},nc=e=>Pl.KE.marks(e),rc=(e,t,n)=>Pl.KE.point(e,t,n),oc=(e,t,n)=>Pl.KE.range(e,t,n),ic=(e,t,n)=>!!t&&Pl.KE.isEnd(e,t,n),ac=(e,t,n)=>!!t&&Pl.KE.isStart(e,t,n),sc=(e,t)=>Pl.KE.normalize(e,t),lc=(e,t)=>Pl.KE.removeMark(e,t),cc=e=>Pl.bP.string(e),uc=e=>Pl.Hg.isAncestor(e),dc=e=>!!e&&Pl.Q6.isCollapsed(e),pc=e=>!!e&&Pl.Q6.isExpanded(e),hc=e=>{Pl.gB.deselect(e)};function fc(e){return Array.isArray(e)?e:[e]}var mc=(e,{allow:t,exclude:n,filter:r,level:o,maxLevel:i}={})=>{if(!e)return!1;const[a,s]=e;if(o){if(!fc(o).includes(s.length))return!1}if(i&&s.length>i)return!1;if(r&&!r(e))return!1;if(t){const e=fc(t);if(e.length>0&&!e.includes(a.type))return!1}if(n){const e=fc(n);if(e.length>0&&e.includes(a.type))return!1}return!0},gc=(e,t,n={})=>{var r=n,{nextBlock:o,removeEmpty:i}=r,a=jl(r,["nextBlock","removeEmpty"]);(0,Pl.rx)(e,(()=>{if(i){const t=$l(e,{at:a.at});if(t){const n=!0===i?{allow:["p"]}:i,{filter:r}=n;n.filter=([t,n])=>{if(cc(t))return!1;return!t.children.some((t=>((e,t)=>Ll(t)&&Pl.KE.isInline(e,t))(e,t)))&&(!r||r([t,n]))},mc(t,n)&&((0,Pl.if)(e,{at:t[1]}),o=!1)}}if(o){const{at:t=e.selection}=a;if(t){const n=Jl(e,t),r=$l(e,{at:n,block:!0});r&&(a.at=Pl.wA.next(r[1]))}}Pl.gB.insertNodes(e,t,a)}))},vc=(e,t)=>{Pl.gB.move(e,t)},yc=(e,t,n)=>Pl.gB.setNodes(e,t,n),bc=(e,t)=>Pl.gB.splitNodes(e,t),wc=(e,t={})=>{try{const n=Wl(e,Rl({at:e.selection||[]},Hl(e,t)));for(const[e,t]of n)return[e,t]}catch(e){return}},xc=(e,t)=>!!wc(e,t),Sc=(e,t,n)=>yc(e,t,n),_c=n(88055),Cc=n.n(_c),Ec=n(74354),kc=n.n(Ec),zc=n(31177),Pc=n(73575),Ac=(new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakMap,{ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=Ac.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Ac.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return Ac.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Ac.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===Ac.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===Ac.compare(e,t),isBefore:(e,t)=>-1===Ac.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===Ac.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===Ac.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===Ac.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===Ac.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&Ac.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!Ac.isAncestor(t,e)&&!Ac.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return null;var r=[...e],{affinity:o="forward"}=n;if(0===e.length)return r;switch(t.type){case"insert_node":var{path:i}=t;(Ac.equals(i,r)||Ac.endsBefore(i,r)||Ac.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Ac.equals(a,r)||Ac.isAncestor(a,r))return null;Ac.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:s,position:l}=t;Ac.equals(s,r)||Ac.endsBefore(s,r)?r[s.length-1]-=1:Ac.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=l);break;case"split_node":var{path:c,position:u}=t;if(Ac.equals(c,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else Ac.endsBefore(c,r)?r[c.length-1]+=1:Ac.isAncestor(c,r)&&e[c.length]>=u&&(r[c.length-1]+=1,r[c.length]-=u);break;case"move_node":var{path:d,newPath:p}=t;if(Ac.equals(d,p))return r;if(Ac.isAncestor(d,r)||Ac.equals(d,r)){var h=p.slice();return Ac.endsBefore(d,p)&&d.length<p.length&&(h[d.length-1]-=1),h.concat(r.slice(d.length))}Ac.isSibling(d,p)&&(Ac.isAncestor(p,r)||Ac.equals(p,r))?Ac.endsBefore(d,r)?r[d.length-1]-=1:r[d.length-1]+=1:Ac.endsBefore(p,r)||Ac.equals(p,r)||Ac.isAncestor(p,r)?(Ac.endsBefore(d,r)&&(r[d.length-1]-=1),r[p.length-1]+=1):Ac.endsBefore(d,r)&&(Ac.equals(p,r)&&(r[p.length-1]+=1),r[d.length-1]-=1)}return r}});function Dc(e){return Dc="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},Dc(e)}function Tc(e){var t=function(e,t){if("object"!==Dc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Dc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Dc(t)?t:String(t)}function Ic(e,t,n){return(t=Tc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mc(Object(n),!0).forEach((function(t){Ic(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Oc={transform(e,t){e.children=(0,Pc.mq)(e.children);var n=e.selection&&(0,Pc.mq)(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=Gc.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[s,l]of Kc.points(t))t[l]=nu.transform(s,n);break;case"insert_text":var{path:c,offset:u,text:d}=n;if(0===d.length)break;var p=Gc.leaf(e,c),h=p.text.slice(0,u),f=p.text.slice(u);if(p.text=h+d+f,t)for(var[m,g]of Kc.points(t))t[g]=nu.transform(m,n);break;case"merge_node":var{path:v}=n,y=Gc.get(e,v),b=Ac.previous(v),w=Gc.get(e,b),x=Gc.parent(e,v),S=v[v.length-1];if(uu.isText(y)&&uu.isText(w))w.text+=y.text;else{if(uu.isText(y)||uu.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(v,"] to nodes of different interfaces: ").concat(ou.stringify(y)," ").concat(ou.stringify(w)));w.children.push(...y.children)}if(x.children.splice(S,1),t)for(var[_,C]of Kc.points(t))t[C]=nu.transform(_,n);break;case"move_node":var{path:E,newPath:k}=n;if(Ac.isAncestor(E,k))throw new Error("Cannot move a path [".concat(E,"] to new path [").concat(k,"] because the destination is inside itself."));var z=Gc.get(e,E),P=Gc.parent(e,E),A=E[E.length-1];P.children.splice(A,1);var D=Ac.transform(E,n),T=Gc.get(e,Ac.parent(D)),I=D[D.length-1];if(T.children.splice(I,0,z),t)for(var[M,N]of Kc.points(t))t[N]=nu.transform(M,n);break;case"remove_node":var{path:O}=n,R=O[O.length-1];if(Gc.parent(e,O).children.splice(R,1),t)for(var[j,F]of Kc.points(t)){var B=nu.transform(j,n);if(null!=t&&null!=B)t[F]=B;else{var L=void 0,V=void 0;for(var[K,H]of Gc.texts(e)){if(-1!==Ac.compare(H,O)){V=[K,H];break}L=[K,H]}var $=!1;L&&V&&($=Ac.equals(V[1],O)?!Ac.hasPrevious(V[1]):Ac.common(L[1],O).length<Ac.common(V[1],O).length),L&&!$?(j.path=L[1],j.offset=L[0].text.length):V?(j.path=V[1],j.offset=0):t=null}}break;case"remove_text":var{path:U,offset:W,text:q}=n;if(0===q.length)break;var G=Gc.leaf(e,U),Z=G.text.slice(0,W),Y=G.text.slice(W+q.length);if(G.text=Z+Y,t)for(var[X,J]of Kc.points(t))t[J]=nu.transform(X,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=Gc.get(e,Q);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var oe=te[re];null==oe?delete ne[re]:ne[re]=oe}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!Kc.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(ou.stringify(ae)," when there is no current selection."));t=Nc({},ae)}for(var se in ae){var le=ae[se];if(null==le){if("anchor"===se||"focus"===se)throw new Error('Cannot remove the "'.concat(se,'" selection property'));delete t[se]}else t[se]=le}}break;case"split_node":var{path:ce,position:ue,properties:de}=n;if(0===ce.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(ce,"] because the root node cannot be split."));var pe,he=Gc.get(e,ce),fe=Gc.parent(e,ce),me=ce[ce.length-1];if(uu.isText(he)){var ge=he.text.slice(0,ue),ve=he.text.slice(ue);he.text=ge,pe=Nc(Nc({},de),{},{text:ve})}else{var ye=he.children.slice(0,ue),be=he.children.slice(ue);he.children=ye,pe=Nc(Nc({},de),{},{children:be})}if(fe.children.splice(me+1,0,pe),t)for(var[we,xe]of Kc.points(t))t[xe]=nu.transform(we,n)}return t})(e,n,t)}finally{e.children=(0,Pc.vD)(e.children),e.selection=n?(0,Pc.Qx)(n)?(0,Pc.vD)(n):n:null}}},Rc={insertNodes(e,t,n){e.insertNodes(t,n)},liftNodes(e,t){e.liftNodes(t)},mergeNodes(e,t){e.mergeNodes(t)},moveNodes(e,t){e.moveNodes(t)},removeNodes(e,t){e.removeNodes(t)},setNodes(e,t,n){e.setNodes(t,n)},splitNodes(e,t){e.splitNodes(t)},unsetNodes(e,t,n){e.unsetNodes(t,n)},unwrapNodes(e,t){e.unwrapNodes(t)},wrapNodes(e,t,n){e.wrapNodes(t,n)}},jc={collapse(e,t){e.collapse(t)},deselect(e){e.deselect()},move(e,t){e.move(t)},select(e,t){e.select(t)},setPoint(e,t,n){e.setPoint(t,n)},setSelection(e,t){e.setSelection(t)}},Fc=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if((0,zc.Q)(r)&&(0,zc.Q)(o)){if(!Fc(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0};function Bc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Lc=["anchor","focus"];function Vc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Kc={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return Kc.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=Kc.edges(e);return t},equals:(e,t)=>nu.equals(e.anchor,t.anchor)&&nu.equals(e.focus,t.focus),includes(e,t){if(Kc.isRange(t)){if(Kc.includes(e,t.anchor)||Kc.includes(e,t.focus))return!0;var[n,r]=Kc.edges(e),[o,i]=Kc.edges(t);return nu.isBefore(n,o)&&nu.isAfter(r,i)}var[a,s]=Kc.edges(e),l=!1,c=!1;return nu.isPoint(t)?(l=nu.compare(t,a)>=0,c=nu.compare(t,s)<=0):(l=Ac.compare(t,a.path)>=0,c=Ac.compare(t,s.path)<=0),l&&c},intersection(e,t){var n=Bc(e,Lc),[r,o]=Kc.edges(e),[i,a]=Kc.edges(t),s=nu.isBefore(r,i)?i:r,l=nu.isBefore(o,a)?o:a;return nu.isBefore(l,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vc(Object(n),!0).forEach((function(t){Ic(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:s,focus:l},n)},isBackward(e){var{anchor:t,focus:n}=e;return nu.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return nu.equals(t,n)},isExpanded:e=>!Kc.isCollapsed(e),isForward:e=>!Kc.isBackward(e),isRange:e=>(0,zc.Q)(e)&&nu.isPoint(e.anchor)&&nu.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Kc.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,Pc.jM)(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=Kc.isCollapsed(e);Kc.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?Kc.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var s=nu.transform(e.anchor,t,{affinity:r}),l=nu.transform(e.focus,t,{affinity:o});if(!s||!l)return null;e.anchor=s,e.focus=l}))}},Hc=e=>(0,zc.Q)(e)&&Gc.isNodeList(e.children)&&!Qc.isEditor(e),$c={isAncestor:e=>(0,zc.Q)(e)&&Gc.isNodeList(e.children),isElement:Hc,isElementList:e=>Array.isArray(e)&&e.every((e=>$c.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return Hc(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},Uc=["children"],Wc=["text"],qc=new WeakMap,Gc={ancestor(e,t){var n=Gc.get(e,t);if(uu.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(ou.stringify(n)));return n},ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var r of Ac.ancestors(t,n)){var o=[Gc.ancestor(e,r),r];yield o}}()},child(e,t){if(uu.isText(e))throw new Error("Cannot get the child of a text node: ".concat(ou.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(ou.stringify(e)));return n},children(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var{reverse:r=!1}=n,o=Gc.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var s=Gc.child(o,a),l=t.concat(a);yield[s,l],a=r?a-1:a+1}}()},common(e,t,n){var r=Ac.common(t,n);return[Gc.get(e,r),r]},descendant(e,t){var n=Gc.get(e,t);if(Qc.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(ou.stringify(n)));return n},descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[n,r]of Gc.nodes(e,t))0!==r.length&&(yield[n,r])}()},elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[n,r]of Gc.nodes(e,t))$c.isElement(n)&&(yield[n,r])}()},extractProps:e=>$c.isAncestor(e)?Bc(e,Uc):Bc(e,Wc),first(e,t){for(var n=t.slice(),r=Gc.get(e,n);r&&!uu.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(uu.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(ou.stringify(e)));var n=(0,Pc.jM)({children:e.children},(e=>{var[n,r]=Kc.edges(t),o=Gc.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!Kc.includes(t,n)}});for(var[,i]of o){if(!Kc.includes(t,i)){var a=Gc.parent(e,i),s=i[i.length-1];a.children.splice(s,1)}if(Ac.equals(i,r.path)){var l=Gc.leaf(e,i);l.text=l.text.slice(0,r.offset)}if(Ac.equals(i,n.path)){var c=Gc.leaf(e,i);c.text=c.text.slice(n.offset)}}Qc.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(uu.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(ou.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(uu.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>uu.isText(e)||$c.isElement(e)||Qc.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=qc.get(e);if(void 0!==t)return t;var n=e.every((e=>Gc.isNode(e)));return qc.set(e,n),n},last(e,t){for(var n=t.slice(),r=Gc.get(e,n);r&&!uu.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=Gc.get(e,t);if(!uu.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(ou.stringify(n)));return n},levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var r of Ac.levels(t,n)){var o=Gc.get(e,r);yield[o,r]}}()},matches:(e,t)=>$c.isElement(e)&&$c.isElementProps(t)&&$c.matches(e,t)||uu.isText(e)&&uu.isTextProps(t)&&uu.matches(e,t),nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,s=[],l=e;!i||!(r?Ac.isBefore(s,i):Ac.isAfter(s,i));)if(a.has(l)||(yield[l,s]),a.has(l)||uu.isText(l)||0===l.children.length||null!=n&&!1!==n([l,s])){if(0===s.length)break;if(!r){var c=Ac.next(s);if(Gc.has(e,c)){s=c,l=Gc.get(e,s);continue}}if(r&&0!==s[s.length-1])s=Ac.previous(s),l=Gc.get(e,s);else s=Ac.parent(s),l=Gc.get(e,s),a.add(l)}else{a.add(l);var u=r?l.children.length-1:0;Ac.isAncestor(s,o)&&(u=o[s.length]),s=s.concat(u),l=Gc.get(e,s)}}()},parent(e,t){var n=Ac.parent(t),r=Gc.get(e,n);if(uu.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>uu.isText(e)?e.text:e.children.map(Gc.string).join(""),texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[n,r]of Gc.nodes(e,t))uu.isText(n)&&(yield[n,r])}()}};function Zc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zc(Object(n),!0).forEach((function(t){Ic(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xc={isNodeOperation:e=>Xc.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!(0,zc.Q)(e))return!1;switch(e.type){case"insert_node":case"remove_node":return Ac.isPath(e.path)&&Gc.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Ac.isPath(e.path);case"merge_node":return"number"==typeof e.position&&Ac.isPath(e.path)&&(0,zc.Q)(e.properties);case"move_node":return Ac.isPath(e.path)&&Ac.isPath(e.newPath);case"set_node":return Ac.isPath(e.path)&&(0,zc.Q)(e.properties)&&(0,zc.Q)(e.newProperties);case"set_selection":return null===e.properties&&Kc.isRange(e.newProperties)||null===e.newProperties&&Kc.isRange(e.properties)||(0,zc.Q)(e.properties)&&(0,zc.Q)(e.newProperties);case"split_node":return Ac.isPath(e.path)&&"number"==typeof e.position&&(0,zc.Q)(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>Xc.isOperation(e))),isSelectionOperation:e=>Xc.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Xc.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Yc(Yc({},e),{},{type:"remove_node"});case"insert_text":return Yc(Yc({},e),{},{type:"remove_text"});case"merge_node":return Yc(Yc({},e),{},{type:"split_node",path:Ac.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(Ac.equals(t,n))return e;if(Ac.isSibling(n,t))return Yc(Yc({},e),{},{path:t,newPath:n});var r=Ac.transform(n,e),o=Ac.transform(Ac.next(n),e);return Yc(Yc({},e),{},{path:r,newPath:o});case"remove_node":return Yc(Yc({},e),{},{type:"insert_node"});case"remove_text":return Yc(Yc({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return Yc(Yc({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:s,newProperties:l}=e;return Yc(Yc({},e),{},null==s?{properties:l,newProperties:null}:null==l?{properties:null,newProperties:s}:{properties:l,newProperties:s});case"split_node":return Yc(Yc({},e),{},{type:"merge_node",path:Ac.next(e.path)})}}},Jc=new WeakMap,Qc={above:(e,t)=>e.above(t),addMark(e,t,n){e.addMark(t,n)},after:(e,t,n)=>e.after(t,n),before:(e,t,n)=>e.before(t,n),deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e,t){e.deleteFragment(t)},edges:(e,t)=>e.edges(t),elementReadOnly(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.elementReadOnly(t)},end:(e,t)=>e.end(t),first:(e,t)=>e.first(t),fragment:(e,t)=>e.fragment(t),hasBlocks:(e,t)=>e.hasBlocks(t),hasInlines:(e,t)=>e.hasInlines(t),hasPath:(e,t)=>e.hasPath(t),hasTexts:(e,t)=>e.hasTexts(t),insertBreak(e){e.insertBreak()},insertFragment(e,t,n){e.insertFragment(t,n)},insertNode(e,t){e.insertNode(t)},insertSoftBreak(e){e.insertSoftBreak()},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>e.isBlock(t),isEdge:(e,t,n)=>e.isEdge(t,n),isEditor:e=>(e=>{var t=Jc.get(e);if(void 0!==t)return t;if(!(0,zc.Q)(e))return!1;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertSoftBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isElementReadOnly&&"function"==typeof e.isInline&&"function"==typeof e.isSelectable&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&"function"==typeof e.getDirtyPaths&&(null===e.marks||(0,zc.Q)(e.marks))&&(null===e.selection||Kc.isRange(e.selection))&&Gc.isNodeList(e.children)&&Xc.isOperationList(e.operations);return Jc.set(e,n),n})(e),isElementReadOnly:(e,t)=>e.isElementReadOnly(t),isEmpty:(e,t)=>e.isEmpty(t),isEnd:(e,t,n)=>e.isEnd(t,n),isInline:(e,t)=>e.isInline(t),isNormalizing:e=>e.isNormalizing(),isSelectable:(e,t)=>e.isSelectable(t),isStart:(e,t,n)=>e.isStart(t,n),isVoid:(e,t)=>e.isVoid(t),last:(e,t)=>e.last(t),leaf:(e,t,n)=>e.leaf(t,n),levels:(e,t)=>e.levels(t),marks:e=>e.getMarks(),next:(e,t)=>e.next(t),node:(e,t,n)=>e.node(t,n),nodes:(e,t)=>e.nodes(t),normalize(e,t){e.normalize(t)},parent:(e,t,n)=>e.parent(t,n),path:(e,t,n)=>e.path(t,n),pathRef:(e,t,n)=>e.pathRef(t,n),pathRefs:e=>e.pathRefs(),point:(e,t,n)=>e.point(t,n),pointRef:(e,t,n)=>e.pointRef(t,n),pointRefs:e=>e.pointRefs(),positions:(e,t)=>e.positions(t),previous:(e,t)=>e.previous(t),range:(e,t,n)=>e.range(t,n),rangeRef:(e,t,n)=>e.rangeRef(t,n),rangeRefs:e=>e.rangeRefs(),removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start:(e,t)=>e.start(t),string:(e,t,n)=>e.string(t,n),unhangRange:(e,t,n)=>e.unhangRange(t,n),void:(e,t)=>e.void(t),withoutNormalizing(e,t){e.withoutNormalizing(t)},shouldMergeNodesRemovePrevNode:(e,t,n)=>e.shouldMergeNodesRemovePrevNode(t,n)};function eu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eu(Object(n),!0).forEach((function(t){Ic(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nu={compare(e,t){var n=Ac.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===nu.compare(e,t),isBefore:(e,t)=>-1===nu.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Ac.equals(e.path,t.path),isPoint:e=>(0,zc.Q)(e)&&"number"==typeof e.offset&&Ac.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,Pc.jM)(e,(e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=Ac.transform(o,t,n);break;case"insert_text":Ac.equals(t.path,o)&&(t.offset<i||t.offset===i&&"forward"===r)&&(e.offset+=t.text.length);break;case"merge_node":Ac.equals(t.path,o)&&(e.offset+=t.position),e.path=Ac.transform(o,t,n);break;case"remove_text":Ac.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(Ac.equals(t.path,o)||Ac.isAncestor(t.path,o))return null;e.path=Ac.transform(o,t,n);break;case"split_node":if(Ac.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=Ac.transform(o,t,tu(tu({},n),{},{affinity:"forward"})))}else e.path=Ac.transform(o,t,n)}}))}},ru=void 0,ou={setScrubber(e){ru=e},stringify:e=>JSON.stringify(e,ru)},iu=["text"],au=["anchor","focus"];function su(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?su(Object(n),!0).forEach((function(t){Ic(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):su(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cu,uu={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return Bc(e,iu)}return Fc(r?o(e):e,r?o(t):t)},isText:e=>(0,zc.Q)(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>uu.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[lu({},e)];for(var r of t){var o=Bc(r,au),[i,a]=Kc.edges(r),s=[],l=0,c=i.offset,u=a.offset;for(var d of n){var{length:p}=d.text,h=l;if(l+=p,c<=h&&l<=u)Object.assign(d,o),s.push(d);else if(c!==u&&(c===l||u===h)||c>l||u<h||u===h&&0!==h)s.push(d);else{var f=d,m=void 0,g=void 0;if(u<l){var v=u-h;g=lu(lu({},f),{},{text:f.text.slice(v)}),f=lu(lu({},f),{},{text:f.text.slice(0,v)})}if(c>h){var y=c-h;m=lu(lu({},f),{},{text:f.text.slice(0,y)}),f=lu(lu({},f),{},{text:f.text.slice(y)})}Object.assign(f,o),m&&s.push(m),s.push(f),g&&s.push(g)}}n=s}return n}},du=e=>e.selection?e.selection:e.children.length>0?Qc.end(e,[]):[0];!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(cu||(cu={}));cu.L,cu.L,cu.V,cu.LV,cu.LVT,cu.LV,cu.V,cu.V,cu.T,cu.LVT,cu.T,cu.T,cu.Any,cu.Extend,cu.ZWJ,cu.Any,cu.SpacingMark,cu.Prepend,cu.Any,cu.ZWJ,cu.ExtPict,cu.RI,cu.RI;var pu={delete(e,t){e.delete(t)},insertFragment(e,t,n){e.insertFragment(t,n)},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Qc.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=du(e)}=n;if(Ac.isPath(o)&&(o=Qc.range(e,o)),Kc.isRange(o))if(Kc.isCollapsed(o))o=o.anchor;else{var i=Kc.end(o);if(!r&&Qc.void(e,{at:i}))return;var a=Kc.start(o),s=Qc.pointRef(e,a),l=Qc.pointRef(e,i);mu.delete(e,{at:o,voids:r});var c=s.unref(),u=l.unref();o=c||u,mu.setSelection(e,{anchor:o,focus:o})}if(!(!r&&Qc.void(e,{at:o})||Qc.elementReadOnly(e,{at:o}))){var{path:d,offset:p}=o;t.length>0&&e.apply({type:"insert_text",path:d,offset:p,text:t})}}))}};function hu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hu(Object(n),!0).forEach((function(t){Ic(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mu=fu(fu(fu(fu({},Oc),Rc),jc),pu);new WeakMap;var gu=n(99084),vu=n.n(gu),yu=n(55378),bu=n.n(yu),wu=(n(68090),"undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent)),xu=(e,t)=>e&&e.nodeName!==t?xu(e.parentElement,t):e,Su=(e,...t)=>()=>{null==e||e(...t)},_u=/^(?:\w+:)?\/\/(\S+)$/,Cu=/mailto:([^?\\]+)/,Eu=/^localhost[\d:?]*(?:[^\d:?]\S*)?$/,ku=/^[^\s.]+\.\S{2,}$/,zu=(e,{allowedSchemes:t,permitInvalid:n=!1})=>{if(!e)return null;let r=null;try{r=new URL(e)}catch(t){return n?e:null}return t&&!t.includes(r.protocol.slice(0,-1))?null:r.href},Pu=e=>{return!((e=>void 0===e)(t=e)||(e=>null===e)(t));var t},Au=Object.defineProperty,Du=Object.defineProperties,Tu=Object.getOwnPropertyDescriptors,Iu=Object.getOwnPropertySymbols,Mu=Object.prototype.hasOwnProperty,Nu=Object.prototype.propertyIsEnumerable,Ou=(e,t,n)=>t in e?Au(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ru=(e,t)=>{for(var n in t||(t={}))Mu.call(t,n)&&Ou(e,n,t[n]);if(Iu)for(var n of Iu(t))Nu.call(t,n)&&Ou(e,n,t[n]);return e},ju=(e,t)=>Du(e,Tu(t)),Fu=(e,t)=>{var n={};for(var r in e)Mu.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Iu)for(var r of Iu(e))t.indexOf(r)<0&&Nu.call(e,r)&&(n[r]=e[r]);return n},Bu=(e,t={})=>$l(e,ju(Ru({},t),{block:!0})),Lu=(e,t)=>{if(!e)return;const n=nc(e);return null==n?void 0:n[t]},Vu=(e,t)=>{const n=((e,t)=>Pl.KE.next(e,t))(e,{at:t});if(n)return ec(e,n[1])},Ku=(e,t={})=>{var n=t,{at:r}=n,o=Fu(n,["at"]);if(r||(r=e.selection),!r)return;const[i,a]=Kc.edges(r),s=Bu(e,Ru({at:i},o)),l=Bu(e,Ru({at:a},o));return s||l?!s||!l||!Ac.equals(s[1],l[1]):void 0},Hu=(e,t,n)=>{const r=((e,t,n)=>{var r;if(!n||!n.match&&!n.matchString)return Ql(e,t,n);const o=!n.unit||"offset"===n.unit,i=n.matchString?vu()(n.matchString):[""],a=null!=(r=n.matchByRegex)&&r;let s;return i.some((r=>{var i,l;let c=t,u=rc(e,t,{edge:"end"});const d=r.length+1,p=Array.from({length:d});let h=0;for(;;){const f=Ql(e,c,n);if(!f)return;if(Ku(e,{at:{anchor:f,focus:u}}))return;const m=tc(e,{anchor:f,focus:u});let g=m;if(o&&d&&(p.unshift({point:f,text:m}),p.pop(),g=bu()(p.slice(0,-1),"text").join("")),(a?r.match(g):g===r)||(null==(i=n.match)?void 0:i.call(n,{at:t,beforePoint:f,beforeString:g})))return n.afterMatch?d&&o?(s=null==(l=p.at(-1))?void 0:l.point,!!s):(s=u,!0):(s=f,!0);if(u=f,c=f,h+=1,!n.skipInvalid&&(!r||h>=r.length))return}})),s})(e,t,n);if(!r)return;return{anchor:r,focus:rc(e,t,{edge:"end"})}},$u=(e,t={})=>{var n;const r=null==(n=Bu(e,t))?void 0:n[1];if(!r)return;const o=ec(e,r),i=((e,{at:t=e.selection,focus:n}={})=>{let r;return Kc.isRange(t)&&(r=n?t.focus:t.anchor),nu.isPoint(t)&&(r=t),Ac.isPath(t)&&(r={offset:0,path:t}),r})(e,t);return i?{anchor:o,focus:i}:void 0},Uu=(e,t)=>Pu(Lu(e,t)),Wu=(e,t,n)=>{gc(e,t,n)},qu=(e,t)=>{var n,r=t,{at:o,key:i,shouldChange:a=!0}=r,s=Fu(r,["at","key","shouldChange"]);const l=null!=o?o:e.selection;if(i=vu()(i),l)if(Kc.isRange(l)&&Kc.isExpanded(l))((e,t,n)=>{Pl.gB.unsetNodes(e,t,n)})(e,i,Ru({at:l,match:Zl,split:!0},s));else if(e.selection){const t=null!=(n=nc(e))?n:{};i.forEach((e=>{delete t[e]})),e.marks=t,a&&e.onChange()}},Gu=(e,t,n)=>{Gl(e,(()=>{for(const[,r]of((e,t,n)=>Pl.bP.children(e,t,n))(e,t,{reverse:!0}))Yl(e,ju(Ru({},n),{at:r}))}))},Zu=(e,{at:t,insertOptions:n,nodes:r,removeOptions:o})=>{Gl(e,(()=>{Gu(e,t,o),gc(e,r,ju(Ru({},n),{at:t.concat([0])}))}))},Yu=(e,{clear:t,key:n})=>{e.selection&&Gl(e,(()=>{if(Uu(e,n))e.removeMark(n);else{if(t){const n=vu()(t);qu(e,{key:n})}e.addMark(n,!0)}}))},Xu=(new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakMap,{ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=Xu.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Xu.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return Xu.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Xu.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===Xu.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===Xu.compare(e,t),isBefore:(e,t)=>-1===Xu.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===Xu.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===Xu.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===Xu.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===Xu.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&Xu.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!Xu.isAncestor(t,e)&&!Xu.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return null;var r=[...e],{affinity:o="forward"}=n;if(0===e.length)return r;switch(t.type){case"insert_node":var{path:i}=t;(Xu.equals(i,r)||Xu.endsBefore(i,r)||Xu.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Xu.equals(a,r)||Xu.isAncestor(a,r))return null;Xu.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:s,position:l}=t;Xu.equals(s,r)||Xu.endsBefore(s,r)?r[s.length-1]-=1:Xu.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=l);break;case"split_node":var{path:c,position:u}=t;if(Xu.equals(c,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else Xu.endsBefore(c,r)?r[c.length-1]+=1:Xu.isAncestor(c,r)&&e[c.length]>=u&&(r[c.length-1]+=1,r[c.length]-=u);break;case"move_node":var{path:d,newPath:p}=t;if(Xu.equals(d,p))return r;if(Xu.isAncestor(d,r)||Xu.equals(d,r)){var h=p.slice();return Xu.endsBefore(d,p)&&d.length<p.length&&(h[d.length-1]-=1),h.concat(r.slice(d.length))}Xu.isSibling(d,p)&&(Xu.isAncestor(p,r)||Xu.equals(p,r))?Xu.endsBefore(d,r)?r[d.length-1]-=1:r[d.length-1]+=1:Xu.endsBefore(p,r)||Xu.equals(p,r)||Xu.isAncestor(p,r)?(Xu.endsBefore(d,r)&&(r[d.length-1]-=1),r[p.length-1]+=1):Xu.endsBefore(d,r)&&(Xu.equals(p,r)&&(r[p.length-1]+=1),r[d.length-1]-=1)}return r}});function Ju(e){return Ju="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},Ju(e)}function Qu(e){var t=function(e,t){if("object"!==Ju(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ju(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ju(t)?t:String(t)}function ed(e,t,n){return(t=Qu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function td(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?td(Object(n),!0).forEach((function(t){ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):td(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rd={transform(e,t){e.children=(0,Pc.mq)(e.children);var n=e.selection&&(0,Pc.mq)(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=gd.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[s,l]of ud.points(t))t[l]=Cd.transform(s,n);break;case"insert_text":var{path:c,offset:u,text:d}=n;if(0===d.length)break;var p=gd.leaf(e,c),h=p.text.slice(0,u),f=p.text.slice(u);if(p.text=h+d+f,t)for(var[m,g]of ud.points(t))t[g]=Cd.transform(m,n);break;case"merge_node":var{path:v}=n,y=gd.get(e,v),b=Xu.previous(v),w=gd.get(e,b),x=gd.parent(e,v),S=v[v.length-1];if(Id.isText(y)&&Id.isText(w))w.text+=y.text;else{if(Id.isText(y)||Id.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(v,"] to nodes of different interfaces: ").concat(kd.stringify(y)," ").concat(kd.stringify(w)));w.children.push(...y.children)}if(x.children.splice(S,1),t)for(var[_,C]of ud.points(t))t[C]=Cd.transform(_,n);break;case"move_node":var{path:E,newPath:k}=n;if(Xu.isAncestor(E,k))throw new Error("Cannot move a path [".concat(E,"] to new path [").concat(k,"] because the destination is inside itself."));var z=gd.get(e,E),P=gd.parent(e,E),A=E[E.length-1];P.children.splice(A,1);var D=Xu.transform(E,n),T=gd.get(e,Xu.parent(D)),I=D[D.length-1];if(T.children.splice(I,0,z),t)for(var[M,N]of ud.points(t))t[N]=Cd.transform(M,n);break;case"remove_node":var{path:O}=n,R=O[O.length-1];if(gd.parent(e,O).children.splice(R,1),t)for(var[j,F]of ud.points(t)){var B=Cd.transform(j,n);if(null!=t&&null!=B)t[F]=B;else{var L=void 0,V=void 0;for(var[K,H]of gd.texts(e)){if(-1!==Xu.compare(H,O)){V=[K,H];break}L=[K,H]}var $=!1;L&&V&&($=Xu.equals(V[1],O)?!Xu.hasPrevious(V[1]):Xu.common(L[1],O).length<Xu.common(V[1],O).length),L&&!$?(j.path=L[1],j.offset=L[0].text.length):V?(j.path=V[1],j.offset=0):t=null}}break;case"remove_text":var{path:U,offset:W,text:q}=n;if(0===q.length)break;var G=gd.leaf(e,U),Z=G.text.slice(0,W),Y=G.text.slice(W+q.length);if(G.text=Z+Y,t)for(var[X,J]of ud.points(t))t[J]=Cd.transform(X,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=gd.get(e,Q);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var oe=te[re];null==oe?delete ne[re]:ne[re]=oe}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!ud.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(kd.stringify(ae)," when there is no current selection."));t=nd({},ae)}for(var se in ae){var le=ae[se];if(null==le){if("anchor"===se||"focus"===se)throw new Error('Cannot remove the "'.concat(se,'" selection property'));delete t[se]}else t[se]=le}}break;case"split_node":var{path:ce,position:ue,properties:de}=n;if(0===ce.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(ce,"] because the root node cannot be split."));var pe,he=gd.get(e,ce),fe=gd.parent(e,ce),me=ce[ce.length-1];if(Id.isText(he)){var ge=he.text.slice(0,ue),ve=he.text.slice(ue);he.text=ge,pe=nd(nd({},de),{},{text:ve})}else{var ye=he.children.slice(0,ue),be=he.children.slice(ue);he.children=ye,pe=nd(nd({},de),{},{children:be})}if(fe.children.splice(me+1,0,pe),t)for(var[we,xe]of ud.points(t))t[xe]=Cd.transform(we,n)}return t})(e,n,t)}finally{e.children=(0,Pc.vD)(e.children),e.selection=n?(0,Pc.Qx)(n)?(0,Pc.vD)(n):n:null}}},od={insertNodes(e,t,n){e.insertNodes(t,n)},liftNodes(e,t){e.liftNodes(t)},mergeNodes(e,t){e.mergeNodes(t)},moveNodes(e,t){e.moveNodes(t)},removeNodes(e,t){e.removeNodes(t)},setNodes(e,t,n){e.setNodes(t,n)},splitNodes(e,t){e.splitNodes(t)},unsetNodes(e,t,n){e.unsetNodes(t,n)},unwrapNodes(e,t){e.unwrapNodes(t)},wrapNodes(e,t,n){e.wrapNodes(t,n)}},id={collapse(e,t){e.collapse(t)},deselect(e){e.deselect()},move(e,t){e.move(t)},select(e,t){e.select(t)},setPoint(e,t,n){e.setPoint(t,n)},setSelection(e,t){e.setSelection(t)}},ad=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if((0,zc.Q)(r)&&(0,zc.Q)(o)){if(!ad(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0};function sd(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ld=["anchor","focus"];function cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ud={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return ud.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=ud.edges(e);return t},equals:(e,t)=>Cd.equals(e.anchor,t.anchor)&&Cd.equals(e.focus,t.focus),includes(e,t){if(ud.isRange(t)){if(ud.includes(e,t.anchor)||ud.includes(e,t.focus))return!0;var[n,r]=ud.edges(e),[o,i]=ud.edges(t);return Cd.isBefore(n,o)&&Cd.isAfter(r,i)}var[a,s]=ud.edges(e),l=!1,c=!1;return Cd.isPoint(t)?(l=Cd.compare(t,a)>=0,c=Cd.compare(t,s)<=0):(l=Xu.compare(t,a.path)>=0,c=Xu.compare(t,s.path)<=0),l&&c},intersection(e,t){var n=sd(e,ld),[r,o]=ud.edges(e),[i,a]=ud.edges(t),s=Cd.isBefore(r,i)?i:r,l=Cd.isBefore(o,a)?o:a;return Cd.isBefore(l,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cd(Object(n),!0).forEach((function(t){ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:s,focus:l},n)},isBackward(e){var{anchor:t,focus:n}=e;return Cd.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Cd.equals(t,n)},isExpanded:e=>!ud.isCollapsed(e),isForward:e=>!ud.isBackward(e),isRange:e=>(0,zc.Q)(e)&&Cd.isPoint(e.anchor)&&Cd.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=ud.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,Pc.jM)(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=ud.isCollapsed(e);ud.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?ud.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var s=Cd.transform(e.anchor,t,{affinity:r}),l=Cd.transform(e.focus,t,{affinity:o});if(!s||!l)return null;e.anchor=s,e.focus=l}))}},dd=e=>(0,zc.Q)(e)&&gd.isNodeList(e.children)&&!xd.isEditor(e),pd={isAncestor:e=>(0,zc.Q)(e)&&gd.isNodeList(e.children),isElement:dd,isElementList:e=>Array.isArray(e)&&e.every((e=>pd.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return dd(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},hd=["children"],fd=["text"],md=new WeakMap,gd={ancestor(e,t){var n=gd.get(e,t);if(Id.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(kd.stringify(n)));return n},ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var r of Xu.ancestors(t,n)){var o=[gd.ancestor(e,r),r];yield o}}()},child(e,t){if(Id.isText(e))throw new Error("Cannot get the child of a text node: ".concat(kd.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(kd.stringify(e)));return n},children(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var{reverse:r=!1}=n,o=gd.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var s=gd.child(o,a),l=t.concat(a);yield[s,l],a=r?a-1:a+1}}()},common(e,t,n){var r=Xu.common(t,n);return[gd.get(e,r),r]},descendant(e,t){var n=gd.get(e,t);if(xd.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(kd.stringify(n)));return n},descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[n,r]of gd.nodes(e,t))0!==r.length&&(yield[n,r])}()},elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[n,r]of gd.nodes(e,t))pd.isElement(n)&&(yield[n,r])}()},extractProps:e=>pd.isAncestor(e)?sd(e,hd):sd(e,fd),first(e,t){for(var n=t.slice(),r=gd.get(e,n);r&&!Id.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Id.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(kd.stringify(e)));var n=(0,Pc.jM)({children:e.children},(e=>{var[n,r]=ud.edges(t),o=gd.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!ud.includes(t,n)}});for(var[,i]of o){if(!ud.includes(t,i)){var a=gd.parent(e,i),s=i[i.length-1];a.children.splice(s,1)}if(Xu.equals(i,r.path)){var l=gd.leaf(e,i);l.text=l.text.slice(0,r.offset)}if(Xu.equals(i,n.path)){var c=gd.leaf(e,i);c.text=c.text.slice(n.offset)}}xd.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Id.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(kd.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Id.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>Id.isText(e)||pd.isElement(e)||xd.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=md.get(e);if(void 0!==t)return t;var n=e.every((e=>gd.isNode(e)));return md.set(e,n),n},last(e,t){for(var n=t.slice(),r=gd.get(e,n);r&&!Id.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=gd.get(e,t);if(!Id.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(kd.stringify(n)));return n},levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var r of Xu.levels(t,n)){var o=gd.get(e,r);yield[o,r]}}()},matches:(e,t)=>pd.isElement(e)&&pd.isElementProps(t)&&pd.matches(e,t)||Id.isText(e)&&Id.isTextProps(t)&&Id.matches(e,t),nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,s=[],l=e;!i||!(r?Xu.isBefore(s,i):Xu.isAfter(s,i));)if(a.has(l)||(yield[l,s]),a.has(l)||Id.isText(l)||0===l.children.length||null!=n&&!1!==n([l,s])){if(0===s.length)break;if(!r){var c=Xu.next(s);if(gd.has(e,c)){s=c,l=gd.get(e,s);continue}}if(r&&0!==s[s.length-1])s=Xu.previous(s),l=gd.get(e,s);else s=Xu.parent(s),l=gd.get(e,s),a.add(l)}else{a.add(l);var u=r?l.children.length-1:0;Xu.isAncestor(s,o)&&(u=o[s.length]),s=s.concat(u),l=gd.get(e,s)}}()},parent(e,t){var n=Xu.parent(t),r=gd.get(e,n);if(Id.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>Id.isText(e)?e.text:e.children.map(gd.string).join(""),texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[n,r]of gd.nodes(e,t))Id.isText(n)&&(yield[n,r])}()}};function vd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vd(Object(n),!0).forEach((function(t){ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bd={isNodeOperation:e=>bd.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!(0,zc.Q)(e))return!1;switch(e.type){case"insert_node":case"remove_node":return Xu.isPath(e.path)&&gd.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Xu.isPath(e.path);case"merge_node":return"number"==typeof e.position&&Xu.isPath(e.path)&&(0,zc.Q)(e.properties);case"move_node":return Xu.isPath(e.path)&&Xu.isPath(e.newPath);case"set_node":return Xu.isPath(e.path)&&(0,zc.Q)(e.properties)&&(0,zc.Q)(e.newProperties);case"set_selection":return null===e.properties&&ud.isRange(e.newProperties)||null===e.newProperties&&ud.isRange(e.properties)||(0,zc.Q)(e.properties)&&(0,zc.Q)(e.newProperties);case"split_node":return Xu.isPath(e.path)&&"number"==typeof e.position&&(0,zc.Q)(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>bd.isOperation(e))),isSelectionOperation:e=>bd.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>bd.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return yd(yd({},e),{},{type:"remove_node"});case"insert_text":return yd(yd({},e),{},{type:"remove_text"});case"merge_node":return yd(yd({},e),{},{type:"split_node",path:Xu.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(Xu.equals(t,n))return e;if(Xu.isSibling(n,t))return yd(yd({},e),{},{path:t,newPath:n});var r=Xu.transform(n,e),o=Xu.transform(Xu.next(n),e);return yd(yd({},e),{},{path:r,newPath:o});case"remove_node":return yd(yd({},e),{},{type:"insert_node"});case"remove_text":return yd(yd({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return yd(yd({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:s,newProperties:l}=e;return yd(yd({},e),{},null==s?{properties:l,newProperties:null}:null==l?{properties:null,newProperties:s}:{properties:l,newProperties:s});case"split_node":return yd(yd({},e),{},{type:"merge_node",path:Xu.next(e.path)})}}},wd=new WeakMap,xd={above:(e,t)=>e.above(t),addMark(e,t,n){e.addMark(t,n)},after:(e,t,n)=>e.after(t,n),before:(e,t,n)=>e.before(t,n),deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e,t){e.deleteFragment(t)},edges:(e,t)=>e.edges(t),elementReadOnly(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.elementReadOnly(t)},end:(e,t)=>e.end(t),first:(e,t)=>e.first(t),fragment:(e,t)=>e.fragment(t),hasBlocks:(e,t)=>e.hasBlocks(t),hasInlines:(e,t)=>e.hasInlines(t),hasPath:(e,t)=>e.hasPath(t),hasTexts:(e,t)=>e.hasTexts(t),insertBreak(e){e.insertBreak()},insertFragment(e,t,n){e.insertFragment(t,n)},insertNode(e,t){e.insertNode(t)},insertSoftBreak(e){e.insertSoftBreak()},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>e.isBlock(t),isEdge:(e,t,n)=>e.isEdge(t,n),isEditor:e=>(e=>{var t=wd.get(e);if(void 0!==t)return t;if(!(0,zc.Q)(e))return!1;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertSoftBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isElementReadOnly&&"function"==typeof e.isInline&&"function"==typeof e.isSelectable&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&"function"==typeof e.getDirtyPaths&&(null===e.marks||(0,zc.Q)(e.marks))&&(null===e.selection||ud.isRange(e.selection))&&gd.isNodeList(e.children)&&bd.isOperationList(e.operations);return wd.set(e,n),n})(e),isElementReadOnly:(e,t)=>e.isElementReadOnly(t),isEmpty:(e,t)=>e.isEmpty(t),isEnd:(e,t,n)=>e.isEnd(t,n),isInline:(e,t)=>e.isInline(t),isNormalizing:e=>e.isNormalizing(),isSelectable:(e,t)=>e.isSelectable(t),isStart:(e,t,n)=>e.isStart(t,n),isVoid:(e,t)=>e.isVoid(t),last:(e,t)=>e.last(t),leaf:(e,t,n)=>e.leaf(t,n),levels:(e,t)=>e.levels(t),marks:e=>e.getMarks(),next:(e,t)=>e.next(t),node:(e,t,n)=>e.node(t,n),nodes:(e,t)=>e.nodes(t),normalize(e,t){e.normalize(t)},parent:(e,t,n)=>e.parent(t,n),path:(e,t,n)=>e.path(t,n),pathRef:(e,t,n)=>e.pathRef(t,n),pathRefs:e=>e.pathRefs(),point:(e,t,n)=>e.point(t,n),pointRef:(e,t,n)=>e.pointRef(t,n),pointRefs:e=>e.pointRefs(),positions:(e,t)=>e.positions(t),previous:(e,t)=>e.previous(t),range:(e,t,n)=>e.range(t,n),rangeRef:(e,t,n)=>e.rangeRef(t,n),rangeRefs:e=>e.rangeRefs(),removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start:(e,t)=>e.start(t),string:(e,t,n)=>e.string(t,n),unhangRange:(e,t,n)=>e.unhangRange(t,n),void:(e,t)=>e.void(t),withoutNormalizing(e,t){e.withoutNormalizing(t)},shouldMergeNodesRemovePrevNode:(e,t,n)=>e.shouldMergeNodesRemovePrevNode(t,n)};function Sd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sd(Object(n),!0).forEach((function(t){ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cd={compare(e,t){var n=Xu.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===Cd.compare(e,t),isBefore:(e,t)=>-1===Cd.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Xu.equals(e.path,t.path),isPoint:e=>(0,zc.Q)(e)&&"number"==typeof e.offset&&Xu.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,Pc.jM)(e,(e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=Xu.transform(o,t,n);break;case"insert_text":Xu.equals(t.path,o)&&(t.offset<i||t.offset===i&&"forward"===r)&&(e.offset+=t.text.length);break;case"merge_node":Xu.equals(t.path,o)&&(e.offset+=t.position),e.path=Xu.transform(o,t,n);break;case"remove_text":Xu.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(Xu.equals(t.path,o)||Xu.isAncestor(t.path,o))return null;e.path=Xu.transform(o,t,n);break;case"split_node":if(Xu.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=Xu.transform(o,t,_d(_d({},n),{},{affinity:"forward"})))}else e.path=Xu.transform(o,t,n)}}))}},Ed=void 0,kd={setScrubber(e){Ed=e},stringify:e=>JSON.stringify(e,Ed)},zd=["text"],Pd=["anchor","focus"];function Ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ad(Object(n),!0).forEach((function(t){ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ad(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Td,Id={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return sd(e,zd)}return ad(r?o(e):e,r?o(t):t)},isText:e=>(0,zc.Q)(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>Id.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[Dd({},e)];for(var r of t){var o=sd(r,Pd),[i,a]=ud.edges(r),s=[],l=0,c=i.offset,u=a.offset;for(var d of n){var{length:p}=d.text,h=l;if(l+=p,c<=h&&l<=u)Object.assign(d,o),s.push(d);else if(c!==u&&(c===l||u===h)||c>l||u<h||u===h&&0!==h)s.push(d);else{var f=d,m=void 0,g=void 0;if(u<l){var v=u-h;g=Dd(Dd({},f),{},{text:f.text.slice(v)}),f=Dd(Dd({},f),{},{text:f.text.slice(0,v)})}if(c>h){var y=c-h;m=Dd(Dd({},f),{},{text:f.text.slice(0,y)}),f=Dd(Dd({},f),{},{text:f.text.slice(y)})}Object.assign(f,o),m&&s.push(m),s.push(f),g&&s.push(g)}}n=s}return n}},Md=e=>e.selection?e.selection:e.children.length>0?xd.end(e,[]):[0];!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(Td||(Td={}));Td.L,Td.L,Td.V,Td.LV,Td.LVT,Td.LV,Td.V,Td.V,Td.T,Td.LVT,Td.T,Td.T,Td.Any,Td.Extend,Td.ZWJ,Td.Any,Td.SpacingMark,Td.Prepend,Td.Any,Td.ZWJ,Td.ExtPict,Td.RI,Td.RI;var Nd={delete(e,t){e.delete(t)},insertFragment(e,t,n){e.insertFragment(t,n)},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};xd.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=Md(e)}=n;if(Xu.isPath(o)&&(o=xd.range(e,o)),ud.isRange(o))if(ud.isCollapsed(o))o=o.anchor;else{var i=ud.end(o);if(!r&&xd.void(e,{at:i}))return;var a=ud.start(o),s=xd.pointRef(e,a),l=xd.pointRef(e,i);jd.delete(e,{at:o,voids:r});var c=s.unref(),u=l.unref();o=c||u,jd.setSelection(e,{anchor:o,focus:o})}if(!(!r&&xd.void(e,{at:o})||xd.elementReadOnly(e,{at:o}))){var{path:d,offset:p}=o;t.length>0&&e.apply({type:"insert_text",path:d,offset:p,text:t})}}))}};function Od(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Od(Object(n),!0).forEach((function(t){ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Od(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jd=Rd(Rd(Rd(Rd({},rd),od),id),Nd);new WeakMap;var Fd={isHistory:e=>(0,zc.Q)(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||bd.isOperationList(e.redos[0].operations))&&(0===e.undos.length||bd.isOperationList(e.undos[0].operations))},Bd=(new WeakMap,new WeakMap),Ld=new WeakMap,Vd={isHistoryEditor:e=>Fd.isHistory(e.history)&&xd.isEditor(e),isMerging:e=>Ld.get(e),isSaving:e=>Bd.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=Vd.isMerging(e);Ld.set(e,!1),t(),Ld.set(e,n)},withoutSaving(e,t){var n=Vd.isSaving(e);Bd.set(e,!1),t(),Bd.set(e,n)}},Kd=e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];r.selectionBefore&&jd.setSelection(t,r.selectionBefore),Vd.withoutSaving(t,(()=>{xd.withoutNormalizing(t,(()=>{for(var e of r.operations)t.apply(e)}))})),e.redos.pop(),t.writeHistory("undos",r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];Vd.withoutSaving(t,(()=>{xd.withoutNormalizing(t,(()=>{var e=r.operations.map(bd.inverse).reverse();for(var n of e)t.apply(n);r.selectionBefore&&jd.setSelection(t,r.selectionBefore)}))})),t.writeHistory("redos",r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:o}=t,{undos:i}=o,a=i[i.length-1],s=a&&a.operations[a.operations.length-1],l=Vd.isSaving(t),c=Vd.isMerging(t);if(null==l&&(l=$d(e)),l){if(null==c&&(c=null!=a&&(0!==r.length||Hd(e,s))),a&&c)a.operations.push(e);else{var u={operations:[e],selectionBefore:t.selection};t.writeHistory("undos",u)}for(;i.length>100;)i.shift();o.redos=[]}n(e)},t.writeHistory=(e,n)=>{t.history[e].push(n)},t},Hd=(e,t)=>!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!Xu.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!Xu.equals(e.path,t.path)),$d=(e,t)=>"set_selection"!==e.type,Ud=n(38970),Wd=n.n(Ud),qd=n(55364),Gd=n.n(qd),Zd=n(35880),Yd=n.n(Zd),Xd=n(20053),Jd=n(44383),Qd=n.n(Jd),ep=n(2404),tp=n.n(ep),np=n(57746);n(69982);Symbol(),Symbol(),"undefined"==typeof window||/ServerSideRendering/.test(window.navigator&&window.navigator.userAgent);const rp=Symbol(),op=Symbol(),ip="a",ap="w";let sp=(e,t)=>new Proxy(e,t);const lp=Object.getPrototypeOf,cp=new WeakMap,up=e=>e&&(cp.has(e)?cp.get(e):lp(e)===Object.prototype||lp(e)===Array.prototype),dp=e=>"object"==typeof e&&null!==e,pp=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach((e=>{e.configurable=!0})),Object.create(lp(e),t)},hp=e=>e[op]||e,fp=(e,t,n,r)=>{if(!up(e))return e;let o=r&&r.get(e);if(!o){const t=hp(e);o=(e=>Object.values(Object.getOwnPropertyDescriptors(e)).some((e=>!e.configurable&&!e.writable)))(t)?[t,pp(t)]:[t],null==r||r.set(e,o)}const[i,a]=o;let s=n&&n.get(i);return s&&s[1].f===!!a||(s=((e,t)=>{const n={f:t};let r=!1;const o=(t,o)=>{if(!r){let r=n[ip].get(e);if(r||(r={},n[ip].set(e,r)),t===ap)r[ap]=!0;else{let e=r[t];e||(e=new Set,r[t]=e),e.add(o)}}},i={get:(t,r)=>r===op?e:(o("k",r),fp(Reflect.get(t,r),n[ip],n.c,n.t)),has:(t,i)=>i===rp?(r=!0,n[ip].delete(e),!0):(o("h",i),Reflect.has(t,i)),getOwnPropertyDescriptor:(e,t)=>(o("o",t),Reflect.getOwnPropertyDescriptor(e,t)),ownKeys:e=>(o(ap),Reflect.ownKeys(e))};return t&&(i.set=i.deleteProperty=()=>!1),[i,n]})(i,!!a),s[1].p=sp(a||i,s[0]),n&&n.set(i,s)),s[1][ip]=t,s[1].c=n,s[1].t=r,s[1].p},mp=(e,t,n,r,o=Object.is)=>{if(o(e,t))return!1;if(!dp(e)||!dp(t))return!0;const i=n.get(hp(e));if(!i)return!0;if(r){const n=r.get(e);if(n&&n.n===t)return n.g;r.set(e,{n:t,g:!1})}let a=null;try{for(const n of i.h||[])if(a=Reflect.has(e,n)!==Reflect.has(t,n),a)return a;if(!0===i[ap]){if(a=((e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some(((e,t)=>e!==r[t]))})(e,t),a)return a}else for(const n of i.o||[])if(a=!!Reflect.getOwnPropertyDescriptor(e,n)!=!!Reflect.getOwnPropertyDescriptor(t,n),a)return a;for(const s of i.k||[])if(a=mp(e[s],t[s],n,r,o),a)return a;return null===a&&(a=!0),a}finally{r&&r.set(e,{n:t,g:a})}},gp=e=>()=>{const[,t]=(0,l.useReducer)((e=>e+1),0),n=new WeakMap,r=(0,l.useRef)(),o=(0,l.useRef)(),i=(0,l.useRef)();(0,l.useEffect)((()=>{r.current=n,o.current!==i.current&&mp(o.current,i.current,n,new WeakMap)&&(o.current=i.current,t())}));const a=(0,l.useCallback)((e=>(i.current=e,o.current&&o.current!==e&&r.current&&!mp(o.current,e,r.current,new WeakMap)?o.current:(o.current=e,e))),[]),s=e(a);const c=(0,l.useMemo)((()=>new WeakMap),[]);return fp(s,n,c)};const vp=new Map,yp=e=>{const t=vp.get(e);return t?Object.fromEntries(Object.entries(t.stores).map((([e,t])=>[e,t.getState()]))):{}},bp=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:a,store:s,...l}=t;let c;try{c=(null==i||i)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(e){}if(!c)return i&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);const{connection:u,...d}=((e,t,n)=>{if(void 0===e)return{type:"untracked",connection:t.connect(n)};const r=vp.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return vp.set(n.name,o),{type:"tracked",store:e,...o}})(s,c,l);let p=!0;o.setState=(e,t,i)=>{const c=n(e,t);if(!p)return c;const d=void 0===i?{type:a||"anonymous"}:"string"==typeof i?{type:i}:i;return void 0===s?(null==u||u.send(d,r()),c):(null==u||u.send({...d,type:`${s}/${d.type}`},{...yp(l.name),[s]:o.getState()}),c)};const h=(...e)=>{const t=p;p=!1,n(...e),p=t},f=e(o.setState,r,o);if("untracked"===d.type?null==u||u.init(f):(d.stores[d.store]=o,null==u||u.init(Object.fromEntries(Object.entries(d.stores).map((([e,t])=>[e,e===d.store?f:t.getState()]))))),o.dispatchFromDevtools&&"function"==typeof o.dispatch){let e=!1;const t=o.dispatch;o.dispatch=(...n)=>{"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return u.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):wp(e.payload,(e=>{if("__setState"!==e.type)o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(e);else{if(void 0===s)return void h(e.state);1!==Object.keys(e.state).length&&console.error('\n                    [zustand devtools middleware] Unsupported __setState action format. \n                    When using \'store\' option in devtools(), the \'state\' should have only one key, which is a value of \'store\' that was passed in devtools(),\n                    and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }\n                    ');const t=e.state[s];if(null==t)return;JSON.stringify(o.getState())!==JSON.stringify(t)&&h(t)}}));case"DISPATCH":switch(e.payload.type){case"RESET":return h(f),void 0===s?null==u?void 0:u.init(o.getState()):null==u?void 0:u.init(yp(l.name));case"COMMIT":return void 0===s?void(null==u||u.init(o.getState())):null==u?void 0:u.init(yp(l.name));case"ROLLBACK":return wp(e.state,(e=>{if(void 0===s)return h(e),void(null==u||u.init(o.getState()));h(e[s]),null==u||u.init(yp(l.name))}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return wp(e.state,(e=>{void 0!==s?JSON.stringify(o.getState())!==JSON.stringify(e[s])&&h(e[s]):h(e)}));case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return h(void 0===s?r:r[s]),void(null==u||u.send(null,n))}case"PAUSE_RECORDING":return p=!p}return}})),f},wp=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==n&&t(n)};function xp(e,t){let n;try{n=e()}catch(e){return}const r={getItem:e=>{var r;const o=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),i=null!=(r=n.getItem(e))?r:null;return i instanceof Promise?i.then(o):o(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,null==t?void 0:t.replacer)),removeItem:e=>n.removeItem(e)};return r}const Sp=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>Sp(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>Sp(t)(e)}}},_p=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),((e,t)=>(n,r,o)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},a=!1;const s=new Set,l=new Set;let c;try{c=i.getStorage()}catch(e){}if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...e)}),r,o);const u=Sp(i.serialize),d=()=>{const e=i.partialize({...r()});let t;const n=u({state:e,version:i.version}).then((e=>c.setItem(i.name,e))).catch((e=>{t=e}));if(t)throw t;return n},p=o.setState;o.setState=(e,t)=>{p(e,t),d()};const h=e(((...e)=>{n(...e),d()}),r,o);let f;const m=()=>{var e;if(!c)return;a=!1,s.forEach((e=>e(r())));const t=(null==(e=i.onRehydrateStorage)?void 0:e.call(i,r()))||void 0;return Sp(c.getItem.bind(c))(i.name).then((e=>{if(e)return i.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===i.version)return e.state;if(i.migrate)return i.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return f=i.merge(e,null!=(t=r())?t:h),n(f,!0),d()})).then((()=>{null==t||t(f,void 0),a=!0,l.forEach((e=>e(f)))})).catch((e=>{null==t||t(void 0,e)}))};return o.persist={setOptions:e=>{i={...i,...e},e.getStorage&&(c=e.getStorage())},clearStorage:()=>{null==c||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},m(),f||h})(e,t)):((e,t)=>(n,r,o)=>{let i={storage:xp((()=>localStorage)),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},a=!1;const s=new Set,l=new Set;let c=i.storage;if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...e)}),r,o);const u=()=>{const e=i.partialize({...r()});return c.setItem(i.name,{state:e,version:i.version})},d=o.setState;o.setState=(e,t)=>{d(e,t),u()};const p=e(((...e)=>{n(...e),u()}),r,o);let h;o.getInitialState=()=>p;const f=()=>{var e,t;if(!c)return;a=!1,s.forEach((e=>{var t;return e(null!=(t=r())?t:p)}));const o=(null==(t=i.onRehydrateStorage)?void 0:t.call(i,null!=(e=r())?e:p))||void 0;return Sp(c.getItem.bind(c))(i.name).then((e=>{if(e){if("number"!=typeof e.version||e.version===i.version)return e.state;if(i.migrate)return i.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return h=i.merge(e,null!=(t=r())?t:p),n(h,!0),u()})).then((()=>{null==o||o(h,void 0),h=r(),a=!0,l.forEach((e=>e(h)))})).catch((e=>{null==o||o(void 0,e)}))};return o.persist={setOptions:e=>{i={...i,...e},e.storage&&(c=e.storage)},clearStorage:()=>{null==c||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>f(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},i.skipHydration||f(),h||p})(e,t);var Cp=n(69242);const Ep=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(r,o,i);return i},kp=e=>e?Ep(e):Ep;const{useDebugValue:zp}=l,{useSyncExternalStoreWithSelector:Pp}=Cp,Ap=e=>e;function Dp(e,t=Ap,n){const r=Pp(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return zp(r),r}n(35798);var Tp=Object.defineProperty,Ip=Object.defineProperties,Mp=Object.getOwnPropertyDescriptors,Np=Object.getOwnPropertySymbols,Op=Object.prototype.hasOwnProperty,Rp=Object.prototype.propertyIsEnumerable,jp=(e,t,n)=>t in e?Tp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fp=(e,t)=>{for(var n in t||(t={}))Op.call(t,n)&&jp(e,n,t[n]);if(Np)for(var n of Np(t))Rp.call(t,n)&&jp(e,n,t[n]);return e},Bp=(e,t)=>Ip(e,Mp(t)),Lp=e=>(t,n,r)=>{const o=(e,n)=>t((0,Pc.jM)(e),!0,n);return r.setState=o,e(o,n,r)};var Vp=e=>Bp(Fp({},e),{extendSelectors:t=>Vp(((e,t)=>{const n=Fp({},t.use),r=Fp({},t.useTracked),o=Fp({},t.get);return Object.keys(e(t.store.getState(),t.get,t)).forEach((i=>{n[i]=(...n)=>t.useStore((r=>(0,e(r,t.get,t)[i])(...n))),r[i]=(...n)=>{const r=t.useTrackedStore();return(0,e(r,t.get,t)[i])(...n)},o[i]=(...n)=>(0,e(t.store.getState(),t.get,t)[i])(...n)})),Bp(Fp({},t),{get:o,use:n,useTracked:r})})(t,e)),extendActions:t=>Vp(((e,t)=>{const n=e(t.set,t.get,t);return Bp(Fp({},t),{set:Fp(Fp({},t.set),n)})})(t,e))}),Kp=e=>(t,n={})=>{var r,o;const{middlewares:i=[],devtools:a,persist:s,immer:l}=n;(0,Pc.ht)(null!=(r=null==l?void 0:l.enabledAutoFreeze)&&r),(null==l?void 0:l.enableMapSet)&&(0,Pc.IP)();const c=[Lp,...i];if(null==s?void 0:s.enabled){const t=Bp(Fp({},s),{name:null!=(o=s.name)?o:e});c.push((e=>_p(e,t)))}(null==a?void 0:a.enabled)&&c.push((t=>bp(t,Bp(Fp({},a),{name:e})))),c.push(kp);const u=function(e,...t){return t.reduce(((e,t)=>t(e)),e)}((()=>t),...c);const d=(e,t)=>Dp(u,e,t),p=((e,t)=>{const n={};return Object.keys(e.getState()).forEach((r=>{n[r]=n=>{if(e.getState()[r]===n)return;const o=r.replace(/^\S/,(e=>e.toUpperCase()));e.setState((e=>{e[r]=n}),`@@${t}/set${o}`)}})),n})(u,e),h=((e,t)=>{const n={};return Object.keys(t.getState()).forEach((t=>{n[t]=n=>e((e=>e[t]),n)})),n})(d,u),f=(e=>{const t={};return Object.keys(e.getState()).forEach((n=>{t[n]=()=>e.getState()[n]})),t})(u),m=gp(d),g=((e,t)=>{const n={};return Object.keys(t.getState()).forEach((t=>{n[t]=()=>e()[t]})),n})(m,u),v={get:Fp({state:u.getState},f),name:e,set:Fp({state:(t,n)=>{u.setState(t,n||`@@${e}/setState`)},mergeState:(t,n)=>{u.setState((e=>{Object.assign(e,t)}),n||`@@${e}/mergeState`)}},p),store:u,use:h,useTracked:g,useStore:d,useTrackedStore:m,extendSelectors:()=>v,extendActions:()=>v};return Vp(v)},Hp=n(20265),$p=Object.defineProperty,Up=Object.defineProperties,Wp=Object.getOwnPropertyDescriptors,qp=Object.getOwnPropertySymbols,Gp=Object.prototype.hasOwnProperty,Zp=Object.prototype.propertyIsEnumerable,Yp=(e,t,n)=>t in e?$p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xp=(e,t)=>{for(var n in t||(t={}))Gp.call(t,n)&&Yp(e,n,t[n]);if(qp)for(var n of qp(t))Zp.call(t,n)&&Yp(e,n,t[n]);return e},Jp=(e,t)=>Up(e,Wp(t)),Qp=(e,t)=>{var n={};for(var r in e)Gp.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&qp)for(var r of qp(e))t.indexOf(r)<0&&Zp.call(e,r)&&(n[r]=e[r]);return n},eh=(e,t={},n=!1)=>{var r;if(t[e.key]){const r=t[e.key],{plugins:o,then:i}=r,a=Qp(r,["plugins","then"]);e=kc()(a,e),n||null==o||o.forEach((t=>{e.plugins||(e.plugins=[]);const n=e.plugins.find((e=>e.key===t.key));n||e.plugins.push(t)}))}e.plugins&&(e.plugins=e.plugins.map((e=>eh(e,t,!0))));const{then:o}=e;return o?(void 0===e._thenReplaced&&(e._thenReplaced=0),e._thenReplaced<3&&(e.then=(n,r)=>{const i=Xp({key:e.key},o(n,r));return kc()(eh(i,t),i)},e._thenReplaced++)):(null==(r=t[e.key])?void 0:r.then)&&(e.then=t[e.key].then),e},th="p",nh=(e,t)=>{var n;return null!=(n=(e=>{var t;return null!=(t=null==e?void 0:e.pluginsByKey)?t:{}})(e)[t])?n:{key:t}},rh=(e,t)=>{var n,r;return null!=(r=null!=(n=nh(e,t).type)?n:t)?r:""},oh=(e,t,n)=>{var r;const{activeType:o,inactiveType:i=rh(e,th)}=t,a=null!=(r=null==n?void 0:n.at)?r:e.selection;if(!o||!a)return;const s=xc(e,Jp(Xp({},n),{match:{type:o}}));s&&o===i||Sc(e,{type:s?i:o},{at:a})},ih=e=>(t,n={})=>(n[e.key]=t,eh(Xp({},e),n)),ah="deserializeAst",sh=(ih({editor:{insertData:{format:"application/x-slate-fragment",getFragment:({data:e})=>{const t=decodeURIComponent(window.atob(e));let n;try{n=JSON.parse(t)}catch(e){}return vu()(n)}}},key:ah}),(e,t)=>{var n;const{selection:r}=e;if(!r)return!1;const o=null==(n=((e,t={})=>$l(e,Jp(Xp({},t),{block:!0})))(e,t))?void 0:n[1];return!!o&&(ac(e,r.focus,o)||pc(e.selection)&&ac(e,r.anchor,o))}),lh="editorProtocol",ch=(ih({key:lh,withOverrides:e=>{const{deleteBackward:t,deleteForward:n,deleteFragment:r}=e,o=()=>{sh(e)&&(e=>{const t=nc(e);t&&Object.keys(t).forEach((t=>{lc(e,t)}))})(e)};return e.deleteBackward=e=>{t(e),o()},e.deleteForward=e=>{n(e),o()},e.deleteFragment=e=>{r(e),o()},e}}),ih({key:"history",withOverrides:e=>Kd(e)}),"inline-void"),uh=(ih({key:ch,withOverrides:e=>{const{isInline:t,isVoid:n,markableVoid:r}=e,o=[],i=[],a=[];return e.plugins.forEach((e=>{e.isInline&&i.push(e.type),e.isVoid&&o.push(e.type),e.isMarkableVoid&&a.push(e.type)})),e.isInline=e=>!!i.includes(e.type)||t(e),e.isVoid=e=>!!o.includes(e.type)||n(e),e.markableVoid=e=>!!a.includes(e.type)||r(e),e}}),(e,t)=>{const n=[];return[...e.plugins].reverse().forEach((e=>{var r;const o=null==(r=e.inject.pluginsByKey)?void 0:r[t.key];o&&n.push(o)})),[t,...n]}),dh="insertData",ph=(ih({key:dh,withOverrides:e=>{const{insertData:t}=e;return e.insertData=n=>{const r=[...e.plugins].reverse().some((t=>{const r=t.editor.insertData;if(!r)return!1;const o=uh(e,t),{format:i,getFragment:a}=r;if(!i)return!1;let s=n.getData(i);if(!s)return;if(!((e,{data:t,dataTransfer:n})=>e.every((e=>{var r,o;const i=null==(o=null==(r=e.editor)?void 0:r.insertData)?void 0:o.query;return!i||i({data:t,dataTransfer:n})})))(o,{data:s,dataTransfer:n}))return!1;s=((e,{data:t,dataTransfer:n})=>(e.forEach((e=>{var r,o;const i=null==(o=null==(r=e.editor)?void 0:r.insertData)?void 0:o.transformData;i&&(t=i(t,{dataTransfer:n}))})),t))(o,{data:s,dataTransfer:n});let l=null==a?void 0:a({data:s,dataTransfer:n});return!!(null==l?void 0:l.length)&&(l=((e,t)=>{var n=t,{fragment:r}=n,o=Qp(n,["fragment"]);return e.forEach((e=>{var t,n;const i=null==(n=null==(t=e.editor)?void 0:t.insertData)?void 0:n.transformFragment;i&&(r=i(r,o))})),r})(o,{data:s,dataTransfer:n,fragment:l}),0!==l.length&&(((e,t,n)=>{var r=n,{fragment:o}=r,i=Qp(r,["fragment"]);Gl(e,(()=>{t.some((e=>{var t,n,r;return!0===(null==(r=null==(n=null==(t=e.editor)?void 0:t.insertData)?void 0:n.preInsert)?void 0:r.call(n,o,i))})),e.insertFragment(o)}))})(e,o,{data:s,dataTransfer:n,fragment:l}),!0))}));r||t(n)},e}}),"length"),hh=(ih({key:ph,withOverrides:(e,{options:t})=>{const{apply:n}=e;return e.apply=r=>{Gl(e,(()=>{if(n(r),t.maxLength){const n=tc(e,[]).length;if(n>t.maxLength){const r=n-t.maxLength;e.delete({distance:r,reverse:!0,unit:"character"})}}}))},e}}),({apply:e,node:t,path:n=[],query:r,source:o})=>{mc([t,n],r)&&e(t,o instanceof Function?o():o),uc(t)&&t.children.forEach(((t,i)=>{hh({apply:e,node:t,path:n.concat([i]),query:r,source:o})}))}),fh=(e,t)=>{var n;return null!=(n=nh(e,t).options)?n:{}},mh=(e,t,n)=>(e=((e,t,n)=>{const r=((e,t)=>e.some(((e,n,r)=>{const o=r[n-1];return 0!==n&&t(e)!==t(o)})))(e,t),{fragment:o}=e.reduce(((e,o)=>{if(r&&t(o)){let t=e.precedingBlock;t||(t=n(),e.precedingBlock=t,e.fragment.push(t)),t.children.push(o)}else e.fragment.push(o),e.precedingBlock=null;return e}),{fragment:[],precedingBlock:null});return o})(e=(e=>0===e.length?[{text:""}]:e)(e),t,n),e=e.map((e=>Ll(e)?Jp(Xp({},e),{children:mh(e.children,t,n)}):e)),e),gh=(e,{descendants:t})=>{const n=(e=>t=>Zl(t)||Ll(t)&&e.isInline(t))(e),r=rh(e,th),o=(i=r,()=>({children:[],type:i}));var i;return mh(t,n,o)},vh={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",insertSoftBreak:"shift+enter",italic:"mod+i",moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",splitBlock:"enter",tab:"tab",undo:"mod+z",untab:"shift+tab"},yh={deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},bh={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},wh=e=>{const t=vh[e],n=yh[e],r=bh[e],o=t&&(0,np.Sn)(t),i=n&&(0,np.Sn)(n),a=r&&(0,np.Sn)(r);return e=>!!(null==o?void 0:o(e))||(!(!wu||!(null==i?void 0:i(e)))||!(wu||!(null==a?void 0:a(e))))},xh=(wh("bold"),wh("compose"),wh("deleteBackward"),wh("deleteForward"),wh("deleteLineBackward"),wh("deleteLineForward"),wh("deleteWordBackward"),wh("deleteWordForward"),wh("extendBackward"),wh("extendForward"),wh("extendLineBackward"),wh("extendLineForward"),wh("italic"),wh("moveBackward"),wh("moveForward"),wh("moveLineBackward"),wh("moveLineForward"),wh("moveWordBackward"),wh("moveWordForward"),wh("redo"),wh("insertSoftBreak"),wh("splitBlock"),wh("transposeCharacter"),wh("undo"),"nodeFactory"),Sh=(ih({key:xh,withOverrides:e=>(e.blockFactory=t=>Xp({children:[{text:""}],type:rh(e,th)},t),e.childrenFactory=()=>[e.blockFactory()],e)}),"prevSelection"),_h=(ih({handlers:{onKeyDown:e=>t=>{t.persist(),e.currentKeyboardEvent=t}},key:Sh,withOverrides:e=>{const{apply:t}=e;return e.apply=n=>{if("set_selection"===n.type){const{properties:r}=n;return e.prevSelection=r,t(n),void(e.currentKeyboardEvent=null)}t(n)},e}}),Kp("event-editor")({blur:null,focus:null,last:null})),Ch=_h.set,Eh=_h.get,kh=(_h.use,"event-editor"),zh=(ih({handlers:{onBlur:e=>()=>{Eh.focus()===e.id&&Ch.focus(null),Ch.blur(e.id),document.dispatchEvent(new CustomEvent("blur-editor-event",{detail:{id:e.id}}))},onFocus:e=>()=>{Ch.focus(e.id),document.dispatchEvent(new CustomEvent("focus-editor-event",{detail:{id:e.id}}))}},key:kh}),new Set(["A","ABBR","B","BDI","BDO","BR","CITE","CODE","DATA","DFN","EM","I","KBD","MARK","Q","S","SAMP","SMALL","SPAN","STRONG","SUB","SUP","TIME","U","VAR","WBR","IMG","MAP","TRACK","VIDEO","EMBED","IFRAME","OBJECT","PICTURE","PORTAL","SOURCE","svg","math","CANVAS","DEL","INS","BUTTON","INPUT","LABEL","METER","OUTPUT","PROGRESS","SELECT","TEXTAREA","ACRONYM","BIG","CONTENT","FONT","IMG","MARQUEE","MENUITEM","NOBR","SHADOW","STRIKE","TT"])),Ph=e=>e.nodeType===Node.ELEMENT_NODE,Ah=e=>{if(!Ph(e))return!1;const t=e,n=zh.has(t.tagName),r=t.style.display.split(" ")[0];return""===r?n:!!r.startsWith("inline")||("inherit"===r&&t.parentElement?Ah(t.parentElement):!!["contents","initial","none","revert","revert-layer","unset"].includes(r)&&n)},Dh=e=>e.nodeType===Node.TEXT_NODE,Th=e=>{if(!Ph(e))return!1;return!Ah(e)},Ih=e=>{e.inlineFormattingContext=null},Mh=(e,t)=>{const n=e.textContent||"",r=""===n.trim();!t.inlineFormattingContext&&r||(e=>{e.inlineFormattingContext?e.inlineFormattingContext.atStart=!1:e.inlineFormattingContext={atStart:!0,lastHasTrailingWhiteSpace:!1}})(t);const{whiteSpaceRule:o}=t,i="normal"!==o?"collapse":!t.inlineFormattingContext||t.inlineFormattingContext.atStart||t.inlineFormattingContext.lastHasTrailingWhiteSpace?"all":"collapse",a="normal"===o?"collapse":(e=>{let t=e;for(;;){if(t.nextSibling)t=t.nextSibling;else{if(t=t.parentElement,t&&Th(t))return!0;t=(null==t?void 0:t.nextSibling)||null}if(!t)return!0;if(Th(t))return!0;if((t.textContent||"").length>0)return!1}})(e)?"single-newline":"collapse",s={normal:!0,pre:!1,"pre-line":!0}[o],l=((e,{shouldCollapseWhiteSpace:t=!0,trimEnd:n="collapse",trimStart:r="collapse",whiteSpaceIncludesNewlines:o=!0}={})=>("all"===r&&(e=e.replace(/^\s+/,"")),"single-newline"===n&&(e=e.replace(/\n$/,"")),t&&(e=o?e.replaceAll(/\s+/g," "):(e=(e=e.replaceAll(/[^\S\n\r]+/g," ")).replaceAll(/^[^\S\n\r]+/gm,"")).replaceAll(/[^\S\n\r]+$/gm,"")),e))(n||"",{shouldCollapseWhiteSpace:s,trimEnd:a,trimStart:i,whiteSpaceIncludesNewlines:"pre-line"!==o});t.inlineFormattingContext&&s&&(t.inlineFormattingContext.lastHasTrailingWhiteSpace=l.endsWith(" ")),e.textContent=l},Nh=(e,t)=>{Ph(e)?Rh(e,t):Dh(e)?Mh(e,t):Oh(e,t)},Oh=(e,t)=>{const n=Array.from(e.childNodes);for(const e of n)Nh(e,t)},Rh=(e,t)=>{const n=Ah(e),r=t.whiteSpaceRule,o=(e=>{const t=e.style.whiteSpace;switch(t){case"normal":case"nowrap":return"normal";case"pre":case"pre-wrap":case"break-spaces":return"pre";case"pre-line":return"pre-line"}return"PRE"===e.tagName?"pre":"initial"===t?"normal":null})(e);o&&(t.whiteSpaceRule=o),n||Ih(t),Oh(e,t),n||Ih(t),t.whiteSpaceRule=r},jh=(e,t)=>Array.from(t.childNodes).flatMap(Vh(e)),Fh=(e,t,{deserializeLeaf:n,element:r})=>{var o;const{deserializeHtml:i,isElement:a,isLeaf:s,type:l}=t;if(!i)return;const{attributeNames:c,isElement:u,isLeaf:d,query:p,rules:h}=i;let{getNode:f}=i;const m=u||a,g=d||s;if(!n&&!m)return;if(n&&!g)return;if(h){if(!h.some((({validAttribute:e,validClassName:n,validNodeName:o="*",validStyle:i})=>{var a;if(o){const e=vu()(o);if(e.length>0&&!e.includes(r.nodeName)&&"*"!==o)return!1}if(n&&!r.classList.contains(n))return!1;if(i)for(const[e,n]of Object.entries(i)){if(!vu()(n).includes(r.style[e])&&"*"!==n)return;if("*"===n&&!r.style[e])return;const o=null==(a=t.inject.props)?void 0:a.defaultNodeValue;if(o&&o===r.style[e])return!1}if(e)if("string"==typeof e){if(!r.getAttributeNames().includes(e))return!1}else for(const[t,n]of Object.entries(e)){const e=vu()(n),o=r.getAttribute(t);if(!Pu(o)||!e.includes(o))return!1}return!0})))return}if(p&&!p(r))return;if(!f)if(m)f=()=>({type:l});else{if(!g)return;f=()=>({[l]:!0})}let v=null!=(o=f(r,{}))?o:{};if(0===Object.keys(v).length)return;if(uh(e,t).forEach((e=>{var t,n;const o=null==(n=null==(t=e.deserializeHtml)?void 0:t.getNode)?void 0:n.call(t,r,v);o&&(v=Xp(Xp({},v),o))})),c){const e={},t=r.getAttributeNames();for(const n of t)c.includes(n)&&(e[n]=r.getAttribute(n));Object.keys(e).length>0&&(v.attributes=e)}return Jp(Xp({},i),{node:v})},Bh=(e,t)=>{var n;const r=((e,t)=>{let n;return[...e.plugins].reverse().some((r=>(n=Fh(e,r,{element:t}),!!n))),n})(e,t);if(r){const{node:o,withoutChildren:i}=r;let a=null!=(n=o.children)?n:jh(e,t);return(0===a.length||i)&&(a=[{text:""}]),(0,Hp.Y)("element",o,a)}},Lh=(e,t)=>{const n=((e,t)=>{let n={};return[...e.plugins].reverse().forEach((r=>{const o=Fh(e,r,{deserializeLeaf:!0,element:t});o&&(n=Xp(Xp({},n),o.node))})),n})(e,t);return jh(e,t).reduce(((e,t)=>{if(!t)return e;if(Ll(t))Object.keys(n).length>0&&(r={node:t,query:{filter:([e])=>Zl(e)},source:n},hh(Jp(Xp({},r),{apply:Gd()}))),e.push(t);else{const r=Xp({},n);Zl(t)&&t.text&&Object.keys(r).forEach((e=>{r[e]&&t[e]&&(r[e]=t[e])})),e.push((0,Hp.Y)("text",r,t))}var r;return e}),[])},Vh=e=>t=>{const n=(e=>{if(Dh(e))return e.textContent||""})(t);if(n)return n;if(!Ph(t))return null;const r=(e=>{if("BR"===e.nodeName)return"\n"})(t);if(r)return r;const o=((e,t)=>{if("BODY"===t.nodeName)return(0,Hp.Y)("fragment",{},jh(e,t))})(e,t);if(o)return o;const i=Bh(e,t);return i||Lh(e,t)},Kh=(e,{collapseWhiteSpace:t=!0,element:n})=>{"string"==typeof n&&(n=(e=>{const t=document.createElement("body");return t.innerHTML=e,t})(n)),t&&(n=(e=>{const t=e.cloneNode(!0);return Rh(t,{inlineFormattingContext:null,whiteSpaceRule:"normal"}),t})(n));const r=((e,t)=>Vh(e)(t))(e,n);return gh(e,{descendants:r})},Hh=e=>(new DOMParser).parseFromString(e,"text/html"),$h="deserializeHtml",Uh=(ih({key:$h,then:e=>({editor:{insertData:{format:"text/html",getFragment:({data:t})=>{const n=Hh(t);return Kh(e,{element:n.body})}}}})}),(e,t)=>{if(!t(e))return;let n=e.firstChild;for(;n;){const r=n,o=n.previousSibling;n=n.nextSibling,Uh(r,t),r.previousSibling||r.nextSibling||r.parentNode||!n||o===n.previousSibling||!n.parentNode?r.previousSibling||r.nextSibling||r.parentNode||!n||n.previousSibling||n.nextSibling||n.parentNode||(o?n=o.nextSibling?o.nextSibling.nextSibling:null:e.firstChild&&(n=e.firstChild.nextSibling)):n=o?o.nextSibling:e.firstChild}}),Wh=(e,t)=>{Uh(e,(e=>!Ph(e)||t(e)))},qh=(e,t)=>!!((e,t)=>{let n=null;return Wh(e,(e=>!t(e)||(n=e,!1))),n})(e,t),Gh=e=>()=>e;ih({key:"react",withOverrides:e=>(e.hasEditableTarget=Gh(!1),e.hasRange=Gh(!1),e.hasSelectableTarget=Gh(!1),e.hasTarget=Gh(!1),e.insertData=Gh(),e.insertFragmentData=Gh(),e.insertTextData=Gh(!1),e.isTargetInsideNonReadonlyVoid=Gh(!1),e.setFragmentData=Gh(),e)});function Zh(){return Zh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zh.apply(this,arguments)}function Yh(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}const Xh=(0,l.forwardRef)(((e,t)=>{const{children:n,...r}=e,o=l.Children.toArray(n),i=o.find(ef);if(i){const e=i.props.children,n=o.map((t=>t===i?l.Children.count(e)>1?l.Children.only(null):(0,l.isValidElement)(e)?e.props.children:null:t));return(0,l.createElement)(Jh,Zh({},r,{ref:t}),(0,l.isValidElement)(e)?(0,l.cloneElement)(e,void 0,n):null)}return(0,l.createElement)(Jh,Zh({},r,{ref:t}),n)}));Xh.displayName="Slot";const Jh=(0,l.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,l.isValidElement)(n)?(0,l.cloneElement)(n,{...tf(r,n.props),ref:t?Yh(t,n.ref):n.ref}):l.Children.count(n)>1?l.Children.only(null):null}));Jh.displayName="SlotClone";const Qh=({children:e})=>(0,l.createElement)(l.Fragment,null,e);function ef(e){return(0,l.isValidElement)(e)&&e.type===Qh}function tf(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}var nf,rf=Object.defineProperty,of=Object.defineProperties,af=Object.getOwnPropertyDescriptors,sf=Object.getOwnPropertySymbols,lf=Object.prototype.hasOwnProperty,cf=Object.prototype.propertyIsEnumerable,uf=(e,t,n)=>t in e?rf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,df=(e,t)=>{for(var n in t||(t={}))lf.call(t,n)&&uf(e,n,t[n]);if(sf)for(var n of sf(t))cf.call(t,n)&&uf(e,n,t[n]);return e},pf=(e,t)=>of(e,af(t)),hf=(e,t)=>{var n={};for(var r in e)lf.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&sf)for(var r of sf(e))t.indexOf(r)<0&&cf.call(e,r)&&(n[r]=e[r]);return n},ff=e=>l.forwardRef(((t,n)=>{var r=t,{as:o,asChild:i=!1}=r,a=hf(r,["as","asChild"]);const s=i?Xh:o||e;return l.createElement(s,df({ref:n},a))})),mf=ff("div"),gf=ff("span"),vf=(...e)=>l.useCallback(((...e)=>t=>e.forEach((e=>((e,t)=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})(e,t))))(...e),e),yf=e=>{const t=ff(e);return({propsHook:e,stateHook:n}={})=>l.forwardRef(((r,o)=>{var i,a,s=r,{asChild:c,className:u,getClassName:d,options:p,state:h}=s,f=hf(s,["asChild","className","getClassName","options","state"]);const m=Pu(h)?h:n?n(p):void 0,{hidden:g,props:v,ref:y}=e?e(m):{hidden:!1,props:{},ref:null},b=vf(o,y),w=Pu(null==v?void 0:v.className)||Pu(u)?(0,Xd.clsx)(null==v?void 0:v.className,u):void 0,x=(null==v?void 0:v.style)||f.style?df(df({},null==v?void 0:v.style),f.style):void 0;return!c&&g?null:l.createElement(t,df(df(pf(df({asChild:c,ref:b},v),{className:w,style:x}),f),null!=(a=null==(i=f.setProps)?void 0:i.call(f,null!=v?v:{}))?a:{}))}))};"undefined"!=typeof window&&void 0!==(null==(nf=window.document)?void 0:nf.createElement)?l.useLayoutEffect:l.useEffect;function bf(e){return l.forwardRef(e)}n(84684),new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakMap;var wf={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=wf.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return wf.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return wf.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return wf.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===wf.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===wf.compare(e,t),isBefore:(e,t)=>-1===wf.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===wf.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===wf.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===wf.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===wf.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&wf.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!wf.isAncestor(t,e)&&!wf.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return null;var r=[...e],{affinity:o="forward"}=n;if(0===e.length)return r;switch(t.type){case"insert_node":var{path:i}=t;(wf.equals(i,r)||wf.endsBefore(i,r)||wf.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(wf.equals(a,r)||wf.isAncestor(a,r))return null;wf.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:s,position:l}=t;wf.equals(s,r)||wf.endsBefore(s,r)?r[s.length-1]-=1:wf.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=l);break;case"split_node":var{path:c,position:u}=t;if(wf.equals(c,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else wf.endsBefore(c,r)?r[c.length-1]+=1:wf.isAncestor(c,r)&&e[c.length]>=u&&(r[c.length-1]+=1,r[c.length]-=u);break;case"move_node":var{path:d,newPath:p}=t;if(wf.equals(d,p))return r;if(wf.isAncestor(d,r)||wf.equals(d,r)){var h=p.slice();return wf.endsBefore(d,p)&&d.length<p.length&&(h[d.length-1]-=1),h.concat(r.slice(d.length))}wf.isSibling(d,p)&&(wf.isAncestor(p,r)||wf.equals(p,r))?wf.endsBefore(d,r)?r[d.length-1]-=1:r[d.length-1]+=1:wf.endsBefore(p,r)||wf.equals(p,r)||wf.isAncestor(p,r)?(wf.endsBefore(d,r)&&(r[d.length-1]-=1),r[p.length-1]+=1):wf.endsBefore(d,r)&&(wf.equals(p,r)&&(r[p.length-1]+=1),r[d.length-1]-=1)}return r}};function xf(e){return xf="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},xf(e)}function Sf(e){var t=function(e,t){if("object"!==xf(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==xf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xf(t)?t:String(t)}function _f(e,t,n){return(t=Sf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ef(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cf(Object(n),!0).forEach((function(t){_f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kf={transform(e,t){e.children=(0,Pc.mq)(e.children);var n=e.selection&&(0,Pc.mq)(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=Bf.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[s,l]of Mf.points(t))t[l]=qf.transform(s,n);break;case"insert_text":var{path:c,offset:u,text:d}=n;if(0===d.length)break;var p=Bf.leaf(e,c),h=p.text.slice(0,u),f=p.text.slice(u);if(p.text=h+d+f,t)for(var[m,g]of Mf.points(t))t[g]=qf.transform(m,n);break;case"merge_node":var{path:v}=n,y=Bf.get(e,v),b=wf.previous(v),w=Bf.get(e,b),x=Bf.parent(e,v),S=v[v.length-1];if(tm.isText(y)&&tm.isText(w))w.text+=y.text;else{if(tm.isText(y)||tm.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(v,"] to nodes of different interfaces: ").concat(Zf.stringify(y)," ").concat(Zf.stringify(w)));w.children.push(...y.children)}if(x.children.splice(S,1),t)for(var[_,C]of Mf.points(t))t[C]=qf.transform(_,n);break;case"move_node":var{path:E,newPath:k}=n;if(wf.isAncestor(E,k))throw new Error("Cannot move a path [".concat(E,"] to new path [").concat(k,"] because the destination is inside itself."));var z=Bf.get(e,E),P=Bf.parent(e,E),A=E[E.length-1];P.children.splice(A,1);var D=wf.transform(E,n),T=Bf.get(e,wf.parent(D)),I=D[D.length-1];if(T.children.splice(I,0,z),t)for(var[M,N]of Mf.points(t))t[N]=qf.transform(M,n);break;case"remove_node":var{path:O}=n,R=O[O.length-1];if(Bf.parent(e,O).children.splice(R,1),t)for(var[j,F]of Mf.points(t)){var B=qf.transform(j,n);if(null!=t&&null!=B)t[F]=B;else{var L=void 0,V=void 0;for(var[K,H]of Bf.texts(e)){if(-1!==wf.compare(H,O)){V=[K,H];break}L=[K,H]}var $=!1;L&&V&&($=wf.equals(V[1],O)?!wf.hasPrevious(V[1]):wf.common(L[1],O).length<wf.common(V[1],O).length),L&&!$?(j.path=L[1],j.offset=L[0].text.length):V?(j.path=V[1],j.offset=0):t=null}}break;case"remove_text":var{path:U,offset:W,text:q}=n;if(0===q.length)break;var G=Bf.leaf(e,U),Z=G.text.slice(0,W),Y=G.text.slice(W+q.length);if(G.text=Z+Y,t)for(var[X,J]of Mf.points(t))t[J]=qf.transform(X,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=Bf.get(e,Q);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var oe=te[re];null==oe?delete ne[re]:ne[re]=oe}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!Mf.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(Zf.stringify(ae)," when there is no current selection."));t=Ef({},ae)}for(var se in ae){var le=ae[se];if(null==le){if("anchor"===se||"focus"===se)throw new Error('Cannot remove the "'.concat(se,'" selection property'));delete t[se]}else t[se]=le}}break;case"split_node":var{path:ce,position:ue,properties:de}=n;if(0===ce.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(ce,"] because the root node cannot be split."));var pe,he=Bf.get(e,ce),fe=Bf.parent(e,ce),me=ce[ce.length-1];if(tm.isText(he)){var ge=he.text.slice(0,ue),ve=he.text.slice(ue);he.text=ge,pe=Ef(Ef({},de),{},{text:ve})}else{var ye=he.children.slice(0,ue),be=he.children.slice(ue);he.children=ye,pe=Ef(Ef({},de),{},{children:be})}if(fe.children.splice(me+1,0,pe),t)for(var[we,xe]of Mf.points(t))t[xe]=qf.transform(we,n)}return t})(e,n,t)}finally{e.children=(0,Pc.vD)(e.children),e.selection=n?(0,Pc.Qx)(n)?(0,Pc.vD)(n):n:null}}},zf={insertNodes(e,t,n){e.insertNodes(t,n)},liftNodes(e,t){e.liftNodes(t)},mergeNodes(e,t){e.mergeNodes(t)},moveNodes(e,t){e.moveNodes(t)},removeNodes(e,t){e.removeNodes(t)},setNodes(e,t,n){e.setNodes(t,n)},splitNodes(e,t){e.splitNodes(t)},unsetNodes(e,t,n){e.unsetNodes(t,n)},unwrapNodes(e,t){e.unwrapNodes(t)},wrapNodes(e,t,n){e.wrapNodes(t,n)}},Pf={collapse(e,t){e.collapse(t)},deselect(e){e.deselect()},move(e,t){e.move(t)},select(e,t){e.select(t)},setPoint(e,t,n){e.setPoint(t,n)},setSelection(e,t){e.setSelection(t)}},Af=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if((0,zc.Q)(r)&&(0,zc.Q)(o)){if(!Af(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0};function Df(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Tf=["anchor","focus"];function If(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Mf={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return Mf.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=Mf.edges(e);return t},equals:(e,t)=>qf.equals(e.anchor,t.anchor)&&qf.equals(e.focus,t.focus),surrounds(e,t){var n=Mf.intersection(e,t);return!!n&&Mf.equals(n,t)},includes(e,t){if(Mf.isRange(t)){if(Mf.includes(e,t.anchor)||Mf.includes(e,t.focus))return!0;var[n,r]=Mf.edges(e),[o,i]=Mf.edges(t);return qf.isBefore(n,o)&&qf.isAfter(r,i)}var[a,s]=Mf.edges(e),l=!1,c=!1;return qf.isPoint(t)?(l=qf.compare(t,a)>=0,c=qf.compare(t,s)<=0):(l=wf.compare(t,a.path)>=0,c=wf.compare(t,s.path)<=0),l&&c},intersection(e,t){var n=Df(e,Tf),[r,o]=Mf.edges(e),[i,a]=Mf.edges(t),s=qf.isBefore(r,i)?i:r,l=qf.isBefore(o,a)?o:a;return qf.isBefore(l,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?If(Object(n),!0).forEach((function(t){_f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):If(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:s,focus:l},n)},isBackward(e){var{anchor:t,focus:n}=e;return qf.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return qf.equals(t,n)},isExpanded:e=>!Mf.isCollapsed(e),isForward:e=>!Mf.isBackward(e),isRange:e=>(0,zc.Q)(e)&&qf.isPoint(e.anchor)&&qf.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Mf.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,Pc.jM)(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=Mf.isCollapsed(e);Mf.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?Mf.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var s=qf.transform(e.anchor,t,{affinity:r}),l=qf.transform(e.focus,t,{affinity:o});if(!s||!l)return null;e.anchor=s,e.focus=l}))}},Nf=e=>(0,zc.Q)(e)&&Bf.isNodeList(e.children)&&!$f.isEditor(e),Of={isAncestor:e=>(0,zc.Q)(e)&&Bf.isNodeList(e.children),isElement:Nf,isElementList:e=>Array.isArray(e)&&e.every((e=>Of.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return Nf(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},Rf=["children"],jf=["text"],Ff=new WeakMap,Bf={ancestor(e,t){var n=Bf.get(e,t);if(tm.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(Zf.stringify(n)));return n},ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var r of wf.ancestors(t,n)){var o=[Bf.ancestor(e,r),r];yield o}}()},child(e,t){if(tm.isText(e))throw new Error("Cannot get the child of a text node: ".concat(Zf.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(Zf.stringify(e)));return n},children(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var{reverse:r=!1}=n,o=Bf.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var s=Bf.child(o,a),l=t.concat(a);yield[s,l],a=r?a-1:a+1}}()},common(e,t,n){var r=wf.common(t,n);return[Bf.get(e,r),r]},descendant(e,t){var n=Bf.get(e,t);if($f.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(Zf.stringify(n)));return n},descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[n,r]of Bf.nodes(e,t))0!==r.length&&(yield[n,r])}()},elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[n,r]of Bf.nodes(e,t))Of.isElement(n)&&(yield[n,r])}()},extractProps:e=>Of.isAncestor(e)?Df(e,Rf):Df(e,jf),first(e,t){for(var n=t.slice(),r=Bf.get(e,n);r&&!tm.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(tm.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(Zf.stringify(e)));var n=(0,Pc.jM)({children:e.children},(e=>{var[n,r]=Mf.edges(t),o=Bf.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!Mf.includes(t,n)}});for(var[,i]of o){if(!Mf.includes(t,i)){var a=Bf.parent(e,i),s=i[i.length-1];a.children.splice(s,1)}if(wf.equals(i,r.path)){var l=Bf.leaf(e,i);l.text=l.text.slice(0,r.offset)}if(wf.equals(i,n.path)){var c=Bf.leaf(e,i);c.text=c.text.slice(n.offset)}}$f.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){var n=Bf.getIf(e,t);if(void 0===n)throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(Zf.stringify(e)));return n},getIf(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(tm.isText(n)||!n.children[o])return;n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(tm.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>tm.isText(e)||Of.isElement(e)||$f.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Ff.get(e);if(void 0!==t)return t;var n=e.every((e=>Bf.isNode(e)));return Ff.set(e,n),n},last(e,t){for(var n=t.slice(),r=Bf.get(e,n);r&&!tm.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=Bf.get(e,t);if(!tm.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(Zf.stringify(n)));return n},levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var r of wf.levels(t,n)){var o=Bf.get(e,r);yield[o,r]}}()},matches:(e,t)=>Of.isElement(e)&&Of.isElementProps(t)&&Of.matches(e,t)||tm.isText(e)&&tm.isTextProps(t)&&tm.matches(e,t),nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,s=[],l=e;!i||!(r?wf.isBefore(s,i):wf.isAfter(s,i));)if(a.has(l)||(yield[l,s]),a.has(l)||tm.isText(l)||0===l.children.length||null!=n&&!1!==n([l,s])){if(0===s.length)break;if(!r){var c=wf.next(s);if(Bf.has(e,c)){s=c,l=Bf.get(e,s);continue}}if(r&&0!==s[s.length-1])s=wf.previous(s),l=Bf.get(e,s);else s=wf.parent(s),l=Bf.get(e,s),a.add(l)}else{a.add(l);var u=r?l.children.length-1:0;wf.isAncestor(s,o)&&(u=o[s.length]),s=s.concat(u),l=Bf.get(e,s)}}()},parent(e,t){var n=wf.parent(t),r=Bf.get(e,n);if(tm.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>tm.isText(e)?e.text:e.children.map(Bf.string).join(""),texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[n,r]of Bf.nodes(e,t))tm.isText(n)&&(yield[n,r])}()}};function Lf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lf(Object(n),!0).forEach((function(t){_f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kf={isNodeOperation:e=>Kf.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!(0,zc.Q)(e))return!1;switch(e.type){case"insert_node":case"remove_node":return wf.isPath(e.path)&&Bf.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&wf.isPath(e.path);case"merge_node":return"number"==typeof e.position&&wf.isPath(e.path)&&(0,zc.Q)(e.properties);case"move_node":return wf.isPath(e.path)&&wf.isPath(e.newPath);case"set_node":return wf.isPath(e.path)&&(0,zc.Q)(e.properties)&&(0,zc.Q)(e.newProperties);case"set_selection":return null===e.properties&&Mf.isRange(e.newProperties)||null===e.newProperties&&Mf.isRange(e.properties)||(0,zc.Q)(e.properties)&&(0,zc.Q)(e.newProperties);case"split_node":return wf.isPath(e.path)&&"number"==typeof e.position&&(0,zc.Q)(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>Kf.isOperation(e))),isSelectionOperation:e=>Kf.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Kf.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Vf(Vf({},e),{},{type:"remove_node"});case"insert_text":return Vf(Vf({},e),{},{type:"remove_text"});case"merge_node":return Vf(Vf({},e),{},{type:"split_node",path:wf.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(wf.equals(t,n))return e;if(wf.isSibling(n,t))return Vf(Vf({},e),{},{path:t,newPath:n});var r=wf.transform(n,e),o=wf.transform(wf.next(n),e);return Vf(Vf({},e),{},{path:r,newPath:o});case"remove_node":return Vf(Vf({},e),{},{type:"insert_node"});case"remove_text":return Vf(Vf({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return Vf(Vf({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:s,newProperties:l}=e;return Vf(Vf({},e),{},null==s?{properties:l,newProperties:null}:null==l?{properties:null,newProperties:s}:{properties:l,newProperties:s});case"split_node":return Vf(Vf({},e),{},{type:"merge_node",path:wf.next(e.path)})}}},Hf=new WeakMap,$f={above:(e,t)=>e.above(t),addMark(e,t,n){e.addMark(t,n)},after:(e,t,n)=>e.after(t,n),before:(e,t,n)=>e.before(t,n),deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e,t){e.deleteFragment(t)},edges:(e,t)=>e.edges(t),elementReadOnly(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.elementReadOnly(t)},end:(e,t)=>e.end(t),first:(e,t)=>e.first(t),fragment:(e,t)=>e.fragment(t),hasBlocks:(e,t)=>e.hasBlocks(t),hasInlines:(e,t)=>e.hasInlines(t),hasPath:(e,t)=>e.hasPath(t),hasTexts:(e,t)=>e.hasTexts(t),insertBreak(e){e.insertBreak()},insertFragment(e,t,n){e.insertFragment(t,n)},insertNode(e,t){e.insertNode(t)},insertSoftBreak(e){e.insertSoftBreak()},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>e.isBlock(t),isEdge:(e,t,n)=>e.isEdge(t,n),isEditor:e=>(e=>{var t=Hf.get(e);if(void 0!==t)return t;if(!(0,zc.Q)(e))return!1;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertSoftBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isElementReadOnly&&"function"==typeof e.isInline&&"function"==typeof e.isSelectable&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&"function"==typeof e.getDirtyPaths&&(null===e.marks||(0,zc.Q)(e.marks))&&(null===e.selection||Mf.isRange(e.selection))&&Bf.isNodeList(e.children)&&Kf.isOperationList(e.operations);return Hf.set(e,n),n})(e),isElementReadOnly:(e,t)=>e.isElementReadOnly(t),isEmpty:(e,t)=>e.isEmpty(t),isEnd:(e,t,n)=>e.isEnd(t,n),isInline:(e,t)=>e.isInline(t),isNormalizing:e=>e.isNormalizing(),isSelectable:(e,t)=>e.isSelectable(t),isStart:(e,t,n)=>e.isStart(t,n),isVoid:(e,t)=>e.isVoid(t),last:(e,t)=>e.last(t),leaf:(e,t,n)=>e.leaf(t,n),levels:(e,t)=>e.levels(t),marks:e=>e.getMarks(),next:(e,t)=>e.next(t),node:(e,t,n)=>e.node(t,n),nodes:(e,t)=>e.nodes(t),normalize(e,t){e.normalize(t)},parent:(e,t,n)=>e.parent(t,n),path:(e,t,n)=>e.path(t,n),pathRef:(e,t,n)=>e.pathRef(t,n),pathRefs:e=>e.pathRefs(),point:(e,t,n)=>e.point(t,n),pointRef:(e,t,n)=>e.pointRef(t,n),pointRefs:e=>e.pointRefs(),positions:(e,t)=>e.positions(t),previous:(e,t)=>e.previous(t),range:(e,t,n)=>e.range(t,n),rangeRef:(e,t,n)=>e.rangeRef(t,n),rangeRefs:e=>e.rangeRefs(),removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start:(e,t)=>e.start(t),string:(e,t,n)=>e.string(t,n),unhangRange:(e,t,n)=>e.unhangRange(t,n),void:(e,t)=>e.void(t),withoutNormalizing(e,t){e.withoutNormalizing(t)},shouldMergeNodesRemovePrevNode:(e,t,n)=>e.shouldMergeNodesRemovePrevNode(t,n)};function Uf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uf(Object(n),!0).forEach((function(t){_f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qf={compare(e,t){var n=wf.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===qf.compare(e,t),isBefore:(e,t)=>-1===qf.compare(e,t),equals:(e,t)=>e.offset===t.offset&&wf.equals(e.path,t.path),isPoint:e=>(0,zc.Q)(e)&&"number"==typeof e.offset&&wf.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,Pc.jM)(e,(e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=wf.transform(o,t,n);break;case"insert_text":wf.equals(t.path,o)&&(t.offset<i||t.offset===i&&"forward"===r)&&(e.offset+=t.text.length);break;case"merge_node":wf.equals(t.path,o)&&(e.offset+=t.position),e.path=wf.transform(o,t,n);break;case"remove_text":wf.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(wf.equals(t.path,o)||wf.isAncestor(t.path,o))return null;e.path=wf.transform(o,t,n);break;case"split_node":if(wf.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=wf.transform(o,t,Wf(Wf({},n),{},{affinity:"forward"})))}else e.path=wf.transform(o,t,n)}}))}},Gf=void 0,Zf={setScrubber(e){Gf=e},stringify:e=>JSON.stringify(e,Gf)},Yf=["text"],Xf=["anchor","focus","merge"];function Jf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jf(Object(n),!0).forEach((function(t){_f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var em,tm={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return Df(e,Yf)}return Af(r?o(e):e,r?o(t):t)},isText:e=>(0,zc.Q)(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>tm.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[Qf({},e)];for(var r of t){var{anchor:o,focus:i,merge:a}=r,s=Df(r,Xf),[l,c]=Mf.edges(r),u=[],d=0,p=l.offset,h=c.offset,f=null!=a?a:Object.assign;for(var m of n){var{length:g}=m.text,v=d;if(d+=g,p<=v&&d<=h)f(m,s),u.push(m);else if(p!==h&&(p===d||h===v)||p>d||h<v||h===v&&0!==v)u.push(m);else{var y=m,b=void 0,w=void 0;if(h<d){var x=h-v;w=Qf(Qf({},y),{},{text:y.text.slice(x)}),y=Qf(Qf({},y),{},{text:y.text.slice(0,x)})}if(p>v){var S=p-v;b=Qf(Qf({},y),{},{text:y.text.slice(0,S)}),y=Qf(Qf({},y),{},{text:y.text.slice(S)})}f(y,s),b&&u.push(b),u.push(y),w&&u.push(w)}}n=u}return n}},nm=e=>e.selection?e.selection:e.children.length>0?$f.end(e,[]):[0];!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(em||(em={}));em.L,em.L,em.V,em.LV,em.LVT,em.LV,em.V,em.V,em.T,em.LVT,em.T,em.T,em.Any,em.Extend,em.ZWJ,em.Any,em.SpacingMark,em.Prepend,em.Any,em.ZWJ,em.ExtPict,em.RI,em.RI;var rm={delete(e,t){e.delete(t)},insertFragment(e,t,n){e.insertFragment(t,n)},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};$f.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=nm(e)}=n;if(wf.isPath(o)&&(o=$f.range(e,o)),Mf.isRange(o))if(Mf.isCollapsed(o))o=o.anchor;else{var i=Mf.end(o);if(!r&&$f.void(e,{at:i}))return;var a=Mf.start(o),s=$f.pointRef(e,a),l=$f.pointRef(e,i);am.delete(e,{at:o,voids:r});var c=s.unref(),u=l.unref();o=c||u,am.setSelection(e,{anchor:o,focus:o})}if(!(!r&&$f.void(e,{at:o})||$f.elementReadOnly(e,{at:o}))){var{path:d,offset:p}=o;t.length>0&&e.apply({type:"insert_text",path:d,offset:p,text:t})}}))}};function om(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function im(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?om(Object(n),!0).forEach((function(t){_f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):om(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var am=im(im(im(im({},kf),zf),Pf),rm);new WeakMap;var sm=Object.defineProperty,lm=Object.defineProperties,cm=Object.getOwnPropertyDescriptors,um=Object.getOwnPropertySymbols,dm=Object.prototype.hasOwnProperty,pm=Object.prototype.propertyIsEnumerable,hm=(e,t,n)=>t in e?sm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fm=(e,t)=>{for(var n in t||(t={}))dm.call(t,n)&&hm(e,n,t[n]);if(um)for(var n of um(t))pm.call(t,n)&&hm(e,n,t[n]);return e},mm=(e,t)=>lm(e,cm(t)),gm=(e,t)=>{var n={};for(var r in e)dm.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&um)for(var r of um(e))t.indexOf(r)<0&&pm.call(e,r)&&(n[r]=e[r]);return n},vm=l.forwardRef(((e,t)=>{const{props:n,ref:r}=(e=>{const t=e,{attributes:n,editor:r,element:o,elementToAttributes:i,nodeProps:a}=t,s=gm(t,["attributes","editor","element","elementToAttributes","nodeProps"]);return{props:mm(fm(fm(fm(fm({},n),s),a),null==i?void 0:i(o)),{className:(0,Xd.clsx)(e.className,null==a?void 0:a.className)}),ref:vf(e.ref,n.ref)}})(mm(fm({},e),{ref:t}));return l.createElement(mf,mm(fm({},n),{ref:r}))}));vm.displayName="PlateElement";var ym=l.forwardRef(((e,t)=>{const{props:n,ref:r}=(e=>{const t=e,{attributes:n,editor:r,leaf:o,leafToAttributes:i,nodeProps:a,text:s}=t,l=gm(t,["attributes","editor","leaf","leafToAttributes","nodeProps","text"]);return{props:mm(fm(fm(fm(fm({},n),l),a),null==i?void 0:i(o)),{className:(0,Xd.clsx)(e.className,null==a?void 0:a.className)}),ref:vf(e.ref,n.ref)}})(mm(fm({},e),{ref:t}));return l.createElement(gf,mm(fm({},n),{ref:r}))}));ym.displayName="PlateLeaf";var bm=(e,{options:{clear:t,hotkey:n},type:r})=>o=>{o.defaultPrevented||n&&(0,np.v_)(n,o)&&(o.preventDefault(),Yu(e,{clear:t,key:r}))},wm="bold",xm=ih({deserializeHtml:{query:e=>!qh(e,(e=>"normal"===e.style.fontWeight)),rules:[{validNodeName:["STRONG","B"]},{validStyle:{fontWeight:["600","700","bold"]}}]},handlers:{onKeyDown:bm},isLeaf:!0,key:wm,options:{hotkey:"mod+b"}}),Sm=ih({deserializeHtml:{query(e){const t=xu(e,"P");return"Consolas"!==(null==t?void 0:t.style.fontFamily)&&!xu(e,"PRE")},rules:[{validNodeName:["CODE"]},{validStyle:{fontFamily:"Consolas"}}]},handlers:{onKeyDown:bm},isLeaf:!0,key:"code",options:{hotkey:"mod+e"}}),_m="italic",Cm=ih({deserializeHtml:{query:e=>!qh(e,(e=>"normal"===e.style.fontStyle)),rules:[{validNodeName:["EM","I"]},{validStyle:{fontStyle:"italic"}}]},handlers:{onKeyDown:bm},isLeaf:!0,key:_m,options:{hotkey:"mod+i"}}),Em=ih({deserializeHtml:{query:e=>!qh(e,(e=>"none"===e.style.textDecoration)),rules:[{validNodeName:["S","DEL","STRIKE"]},{validStyle:{textDecoration:"line-through"}}]},handlers:{onKeyDown:bm},isLeaf:!0,key:"strikethrough",options:{hotkey:"mod+shift+x"}}),km=ih({deserializeHtml:{rules:[{validNodeName:["SUB"]},{validStyle:{verticalAlign:"sub"}}]},handlers:{onKeyDown:bm},isLeaf:!0,key:"subscript",options:{clear:"superscript",hotkey:"mod+,"}}),zm=ih({deserializeHtml:{rules:[{validNodeName:["SUP"]},{validStyle:{verticalAlign:"super"}}]},handlers:{onKeyDown:bm},isLeaf:!0,key:"superscript",options:{clear:"subscript",hotkey:"mod+."}}),Pm="underline",Am=ih({deserializeHtml:{query:e=>!qh(e,(e=>"none"===e.style.textDecoration)),rules:[{validNodeName:["U"]},{validStyle:{textDecoration:["underline"]}}]},handlers:{onKeyDown:bm},isLeaf:!0,key:Pm,options:{hotkey:"mod+u"}});ih({key:"basicMarks",plugins:[xm(),Sm(),Cm(),Em(),km(),zm(),Am()]});let Dm=0;function Tm(e,t){const n="atom"+ ++Dm,r={toString(){return this.debugLabel?n+":"+this.debugLabel:n}};return"function"==typeof e?r.read=e:(r.init=e,r.read=Im,r.write=Mm),t&&(r.write=t),r}function Im(e){return e(this)}function Mm(e,t,n){return t(this,"function"==typeof n?n(e(this)):n)}const Nm=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,Om=e=>"init"in e,Rm=e=>!!e.write,jm=Symbol("CONTINUE_PROMISE"),Fm="pending",Bm=new WeakMap,Lm=e=>"v"in e||"e"in e,Vm=e=>{if("e"in e)throw e.e;if(!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v},Km=e=>{const t=e.v;return"object"==typeof(n=t)&&null!==n&&jm in n&&t.status===Fm?t:null;var n},Hm=(e,t,n)=>{n.p.has(e)||(n.p.add(e),t.then((()=>{n.p.delete(e)}),(()=>{n.p.delete(e)})))},$m=()=>[new Map,new Map,new Set],Um=(e,t,n)=>{e[0].has(t)||e[0].set(t,new Set),e[1].set(t,n)},Wm=(e,t)=>{e[2].add(t)},qm=e=>{for(;e[1].size||e[2].size;){e[0].clear();const t=new Set(e[1].values());e[1].clear();const n=new Set(e[2]);e[2].clear(),t.forEach((e=>{var t;return null==(t=e.m)?void 0:t.l.forEach((e=>e()))})),n.forEach((e=>e()))}},Gm=()=>{const e=new WeakMap;let t;t=new Set;const n=t=>{let n=e.get(t);return n||(n={d:new Map,p:new Set,n:0},e.set(t,n)),n},r=(e,t,r,o=()=>{},i=()=>{})=>{const a="v"in t,s=t.v,l=Km(t);if((e=>"function"==typeof(null==e?void 0:e.then))(r))if(l)l!==r&&(l[jm](r,o),++t.n);else{const a=((e,t,n)=>{if(!Bm.has(e)){let r;const o=new Promise(((i,a)=>{let s=e;const l=e=>t=>{s===e&&(o.status="fulfilled",o.value=t,i(t),n())},c=e=>t=>{s===e&&(o.status="rejected",o.reason=t,a(t),n())};e.then(l(e),c(e)),r=(e,n)=>{e&&(Bm.set(e,o),s=e,e.then(l(e),c(e)),t(),t=n)}}));o.status=Fm,o[jm]=r,Bm.set(e,o)}return Bm.get(e)})(r,o,i);if(a.status===Fm)for(const r of t.d.keys()){const t=n(r);Hm(e,a,t)}t.v=a,delete t.e}else l&&l[jm](Promise.resolve(r),o),t.v=r,delete t.e;a&&Object.is(s,t.v)||++t.n},o=(e,t,r,o)=>{var i;if(r===t)throw new Error("[Bug] atom cannot depend on itself");const a=n(t);a.d.set(r,o.n);const s=Km(a);s&&Hm(t,s,o),null==(i=o.m)||i.t.add(t),e&&((e,t,n)=>{const r=e[0].get(t);r&&r.add(n)})(e,r,t)},i=(e,t,a)=>{const s=n(t);if(!(null==a?void 0:a(t))&&Lm(s)){if(s.m)return s;if(Array.from(s.d).every((([t,n])=>i(e,t,a).n===n)))return s}s.d.clear();let u=!0;const d=l=>{if(Nm(t,l)){const e=n(l);if(!Lm(e)){if(!Om(l))throw new Error("no atom init");r(l,e,l.init)}return Vm(e)}const d=i(e,l,a);if(u)o(e,t,l,d);else{const e=$m();o(e,t,l,d),c(e,t,s),qm(e)}return Vm(d)};let p,h;const f={get signal(){return p||(p=new AbortController),p.signal},get setSelf(){return Rm(t)||console.warn("setSelf function cannot be used with read-only atom"),!h&&Rm(t)&&(h=(...e)=>{if(u&&console.warn("setSelf function cannot be called in sync"),!u)return l(t,...e)}),h}};try{const e=t.read(d,f);return r(t,s,e,(()=>null==p?void 0:p.abort()),(()=>{if(s.m){const e=$m();c(e,t,s),qm(e)}})),s}catch(e){return delete s.v,s.e=e,++s.n,s}finally{u=!1}},a=(e,t)=>{const r=[],o=new Set,a=t=>{if(!o.has(t)){o.add(t);for(const r of(t=>{var r,o;const i=n(t),a=new Set(null==(r=i.m)?void 0:r.t);for(const e of i.p)a.add(e);return null==(o=((e,t)=>e[0].get(t))(e,t))||o.forEach((e=>{a.add(e)})),a})(t))t!==r&&a(r);r.push(t)}};a(t);const s=new Set([t]),l=e=>o.has(e);for(let t=r.length-1;t>=0;--t){const a=r[t],u=n(a),d=u.n;let p=!1;for(const e of u.d.keys())if(e!==a&&s.has(e)){p=!0;break}p&&(i(e,a,l),c(e,a,u),d!==u.n&&(Um(e,a,u),s.add(a))),o.delete(a)}},s=(e,t,...o)=>{const l=t.write((t=>Vm(i(e,t))),((o,...i)=>{let l;if(Nm(t,o)){if(!Om(o))throw new Error("atom not writable");const t=n(o),s="v"in t,l=t.v,u=i[0];r(o,t,u),c(e,o,t),s&&Object.is(l,t.v)||(Um(e,o,t),a(e,o))}else l=s(e,o,...i);return qm(e),l}),...o);return l},l=(e,...t)=>{const n=$m(),r=s(n,e,...t);return qm(n),r},c=(e,t,n)=>{if(n.m&&!Km(n)){for(const r of n.d.keys())if(!n.m.d.has(r)){u(e,r).t.add(t),n.m.d.add(r)}for(const r of n.m.d||[])if(!n.d.has(r)){n.m.d.delete(r);const o=d(e,r);null==o||o.t.delete(t)}}},u=(e,r)=>{const o=n(r);if(!o.m){i(e,r);for(const t of o.d.keys()){u(e,t).t.add(r)}if(o.m={l:new Set,d:new Set(o.d.keys()),t:new Set},t.add(r),Rm(r)&&r.onMount){const t=o.m,{onMount:n}=r;Wm(e,(()=>{const o=n(((...t)=>s(e,r,...t)));o&&(t.u=o)}))}}return o.m},d=(e,r)=>{const o=n(r);if(!o.m||o.m.l.size||Array.from(o.m.t).some((e=>{var t;return null==(t=n(e).m)?void 0:t.d.has(r)})))return o.m;{const n=o.m.u;n&&Wm(e,n),delete o.m,t.delete(r);for(const t of o.d.keys()){const n=d(e,t);null==n||n.t.delete(r)}const i=Km(o);i&&i[jm](void 0,(()=>{}))}},p={get:e=>Vm(i(void 0,e)),set:l,sub:(e,t)=>{const n=$m(),r=u(n,e);qm(n);const o=r.l;return o.add(t),()=>{o.delete(t);const n=$m();d(n,e),qm(n)}}};{const o={dev4_get_internal_weak_map:()=>e,dev4_get_mounted_atoms:()=>t,dev4_restore_atoms:e=>{const t=$m();for(const[o,i]of e)if(Om(o)){const e=n(o),s="v"in e,l=e.v;r(o,e,i),c(t,o,e),s&&Object.is(l,e.v)||(Um(t,o,e),a(t,o))}qm(t)}};Object.assign(p,o)}return p};let Zm;const Ym=(0,l.createContext)(void 0),Xm=e=>{const t=(0,l.useContext)(Ym);return(null==e?void 0:e.store)||t||(Zm||(Zm=Gm(),globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=Zm),globalThis.__JOTAI_DEFAULT_STORE__!==Zm&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044")),Zm)},Jm=l.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)});function Qm(e,t){const n=Xm(t),[[r,o,i],a]=(0,l.useReducer)((t=>{const r=n.get(e);return Object.is(t[0],r)&&t[1]===n&&t[2]===e?t:[r,n,e]}),void 0,(()=>[n.get(e),n,e]));let s=r;o===n&&i===e||(a(),s=n.get(e));const c=null==t?void 0:t.delay;return(0,l.useEffect)((()=>{const t=n.sub(e,(()=>{"number"!=typeof c?a():setTimeout(a,c)}));return a(),t}),[n,e,c]),(0,l.useDebugValue)(s),(e=>"function"==typeof(null==e?void 0:e.then))(s)?Jm(s):s}function eg(e,t){const n=Xm(t);return(0,l.useCallback)(((...t)=>{if(!("write"in e))throw new Error("not writable atom");return n.set(e,...t)}),[n,e])}Symbol("RESET");const tg=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),ng=new WeakMap;function rg(e,t,n=Object.is){return((e,t,n,r)=>{const o=tg((()=>new WeakMap),ng,t),i=tg((()=>new WeakMap),o,n);return tg(e,i,r)})((()=>{const r=Symbol(),o=Tm((i=>{const a=i(o);return(([e,o])=>{if(o===r)return t(e);const i=t(e,o);return n(o,i)?o:i})([i(e),a])}));return o.init=r,o}),e,t,n)}const og=e=>"function"==typeof(null==e?void 0:e.then);!function(e=()=>{try{return window.localStorage}catch(e){return void("undefined"!=typeof window&&console.warn(e))}},t){var n;let r,o;const i={getItem:(n,i)=>{var a,s;const l=e=>{if(r!==(e=e||"")){try{o=JSON.parse(e,null==t?void 0:t.reviver)}catch(e){return i}r=e}return o},c=null!=(s=null==(a=e())?void 0:a.getItem(n))?s:null;return og(c)?c.then(l):l(c)},setItem:(n,r)=>{var o;return null==(o=e())?void 0:o.setItem(n,JSON.stringify(r,null==t?void 0:t.replacer))},removeItem:t=>{var n;return null==(n=e())?void 0:n.removeItem(t)}};let a;try{a=null==(n=e())?void 0:n.subscribe}catch(e){}var s;!a&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(a=(t,n)=>{if(!(e()instanceof window.Storage))return()=>{};const r=r=>{r.storageArea===e()&&r.key===t&&n(r.newValue)};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}}),a&&(i.subscribe=(s=a,(e,t,n)=>s(e,(e=>{let r;try{r=JSON.parse(e||"")}catch(e){r=n}t(r)}))))}();const ig=new WeakMap;const ag=e=>{let t=ig.get(e);return t||(t=new WeakSet,ig.set(e,t)),t};var sg=Object.defineProperty,lg=Object.defineProperties,cg=Object.getOwnPropertyDescriptors,ug=Object.getOwnPropertySymbols,dg=Object.prototype.hasOwnProperty,pg=Object.prototype.propertyIsEnumerable,hg=(e,t,n)=>t in e?sg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fg=(e,t)=>{for(var n in t||(t={}))dg.call(t,n)&&hg(e,n,t[n]);if(ug)for(var n of ug(t))pg.call(t,n)&&hg(e,n,t[n]);return e},mg=(e,t)=>lg(e,cg(t)),gg=(e,t)=>{var n={};for(var r in e)dg.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ug)for(var r of ug(e))t.indexOf(r)<0&&pg.call(e,r)&&(n[r]=e[r]);return n},vg=e=>"function"==typeof e?{__fn:e}:e,yg=e=>{const t=Tm(vg(e));return Tm((e=>{return(n=e(t))&&"object"==typeof n&&"__fn"in n?n.__fn:n;var n}),((e,n,r)=>n(t,vg(r))))},bg=(e,t,n={})=>{const r=[];for(const n of Object.keys(e)){const o=t[n];void 0!==o&&r.push([e[n],o])}!function(e,t){const n=Xm(t),r=ag(n);for(const[o,i]of e)r.has(o)&&!(null==t?void 0:t.dangerouslyForceHydrate)||(r.add(o),n.set(o,i))}(r,n)},wg=(e,t)=>`${e}:${t}`,xg="provider",Sg=l.createContext(new Map),_g=e=>{var t=e,{initialValues:n,children:r,store:o,atoms:i}=t,a=gg(t,["initialValues","children","store","atoms"]);return bg(i,fg(fg({},n),a),{store:o}),((e,t,{store:n}={})=>{for(const r of Object.keys(e)){const o=t[r],i=eg(e[r],{store:n});l.useEffect((()=>{null!=o&&i(o)}),[i,o])}})(i,a,{store:o}),l.createElement(l.Fragment,null,r)},Cg=(e="")=>e.length>0?e[0].toUpperCase()+e.slice(1):"",Eg=(e,t)=>Object.fromEntries(Object.entries(e).map((([e,n])=>[e,(e={})=>n(fg(fg({},t),e))]))),kg=(e={})=>"string"==typeof e?{scope:e}:e,zg=(e,{name:t,delay:n,effect:r,extend:o})=>{const i=((e="")=>`${Cg(e)}Provider`)(t),a=((e="")=>`use${Cg(e)}Store`)(t),s=((e="")=>e.length>0?`${e}Store`:"store")(t),c={},u={},d={};for(const[t,n]of Object.entries(e)){const e=(p=n)&&"object"==typeof p&&"read"in p&&"function"==typeof p.read?n:yg(n);c[t]=e;const r="write"in e;d[t]=r,r&&(u[t]=e)}var p;const h=fg({},c);if(o){const e=o(c);for(const[t,n]of Object.entries(e))h[t]=n,d[t]="write"in n}const f={},m={},g={},v=(e={})=>{const{scope:n,store:r,warnIfNoStore:o=!0}=kg(e),i=((e,t=xg,n=!0)=>{var r;const o=l.useContext(Sg),i=null!=(r=o.get(wg(e,t)))?r:o.get(wg(e,xg));return!i&&n&&console.warn(`Tried to access jotai store '${e}' outside of a matching provider.`),i})(t,n,!r&&o);return null!=r?r:i},y=(e,t)=>{var r;const o=kg(t);return Qm(e,{store:v(fg({warnIfNoStore:!1},o)),delay:null!=(r=o.delay)?r:n})},b=(e,t)=>eg(e,{store:v(t)}),w=(e,t)=>{const r=v(t),{delay:o=n}=kg(t);return function(e,t){return[Qm(e,t),eg(e,t)]}(e,{store:r,delay:o})};for(const e of Object.keys(h)){const t=h[e],n=d[e];f[e]=(e={})=>y(t,e),n&&(m[e]=(e={})=>b(t,e),g[e]=(e={})=>w(t,e))}const x=((e,t,n={})=>{const r=n.effect;return n=>{var o=n,{store:i,scope:a,children:s,resetKey:c}=o,u=gg(o,["store","scope","children","resetKey"]);const[d,p]=l.useState(Gm());l.useEffect((()=>{c&&p(Gm())}),[c]);const h=l.useContext(Sg),f=l.useMemo((()=>{const t=new Map(h);return a&&t.set(wg(e,a),d),t.set(wg(e,xg),d),t}),[h,a,d]);return l.createElement(Sg.Provider,{value:f},l.createElement(_g,fg({store:d,atoms:t},u),!!r&&l.createElement(r,null),s))}})(t,u,{effect:r}),S={atom:h,name:t};return{[i]:x,[a]:(e={})=>({get:mg(fg({},Eg(f,kg(e))),{atom:(t,n)=>y(t,fg(fg({},kg(e)),kg(n)))}),set:mg(fg({},Eg(m,kg(e))),{atom:(t,n)=>b(t,fg(fg({},kg(e)),kg(n)))}),use:mg(fg({},Eg(g,kg(e))),{atom:(t,n)=>w(t,fg(fg({},kg(e)),kg(n)))}),store:t=>v(fg(fg({},kg(e)),kg(t)))}),[s]:S,name:t}};var Pg=["shift","alt","meta","mod","ctrl"],Ag={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function Dg(e){return(Ag[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}"undefined"!=typeof document&&(document.addEventListener("keydown",(function(e){void 0!==e.key&&Ig([Dg(e.key),Dg(e.code)])})),document.addEventListener("keyup",(function(e){void 0!==e.key&&Mg([Dg(e.key),Dg(e.code)])}))),"undefined"!=typeof window&&window.addEventListener("blur",(function(){Tg.clear()}));var Tg=new Set;function Ig(e){var t=Array.isArray(e)?e:[e];Tg.has("meta")&&Tg.forEach((function(e){return!function(e){return Pg.includes(e)}(e)&&Tg.delete(e.toLowerCase())})),t.forEach((function(e){return Tg.add(e.toLowerCase())}))}function Mg(e){var t=Array.isArray(e)?e:[e];"meta"===e?Tg.clear():t.forEach((function(e){return Tg.delete(e.toLowerCase())}))}"undefined"!=typeof window?l.useLayoutEffect:l.useEffect;var Ng=n(19086),Og=n.n(Ng),Rg=n(38221),jg=n.n(Rg),Fg=n(7350),Bg=n.n(Fg);const Lg=e=>"object"==typeof e&&null!=e&&1===e.nodeType,Vg=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,Kg=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Vg(n.overflowY,t)||Vg(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},Hg=(e,t,n,r,o,i,a,s)=>i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0,$g=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},Ug=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!Lg(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,h=[];let f=e;for(;Lg(f)&&d(f);){if(f=$g(f),f===p){h.push(f);break}null!=f&&f===document.body&&Kg(f)&&!Kg(document.documentElement)||null!=f&&Kg(f,u)&&h.push(f)}const m=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,g=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:v,scrollY:y}=window,{height:b,width:w,top:x,right:S,bottom:_,left:C}=e.getBoundingClientRect(),{top:E,right:k,bottom:z,left:P}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let A="start"===s||"nearest"===s?x-E:"end"===s?_+z:x+b/2-E+z,D="center"===l?C+w/2-P+k:"end"===l?S+k:C-P;const T=[];for(let e=0;e<h.length;e++){const t=h[e],{height:n,width:r,top:o,right:i,bottom:c,left:u}=t.getBoundingClientRect();if("if-needed"===a&&x>=0&&C>=0&&_<=g&&S<=m&&x>=o&&_<=c&&C>=u&&S<=i)return T;const d=getComputedStyle(t),f=parseInt(d.borderLeftWidth,10),E=parseInt(d.borderTopWidth,10),k=parseInt(d.borderRightWidth,10),z=parseInt(d.borderBottomWidth,10);let P=0,I=0;const M="offsetWidth"in t?t.offsetWidth-t.clientWidth-f-k:0,N="offsetHeight"in t?t.offsetHeight-t.clientHeight-E-z:0,O="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,R="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(p===t)P="start"===s?A:"end"===s?A-g:"nearest"===s?Hg(y,y+g,g,E,z,y+A,y+A+b,b):A-g/2,I="start"===l?D:"center"===l?D-m/2:"end"===l?D-m:Hg(v,v+m,m,f,k,v+D,v+D+w,w),P=Math.max(0,P+y),I=Math.max(0,I+v);else{P="start"===s?A-o-E:"end"===s?A-c+z+N:"nearest"===s?Hg(o,c,n,E,z+N,A,A+b,b):A-(o+n/2)+N/2,I="start"===l?D-u-f:"center"===l?D-(u+r/2)+M/2:"end"===l?D-i+k+M:Hg(u,i,r,f,k+M,D,D+w,w);const{scrollLeft:e,scrollTop:a}=t;P=0===R?0:Math.max(0,Math.min(a+P/R,t.scrollHeight-n/R+N)),I=0===O?0:Math.max(0,Math.min(e+I/O,t.scrollWidth-r/O+M)),A+=a-P,D+=e-I}T.push({el:t,top:P,left:I})}return T};function Wg(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(Ug(e,t));const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of Ug(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=i-n.top+n.bottom,t=a-n.left+n.right;o.scroll({top:e,left:t,behavior:r})}}var qg,Gg,Zg=globalThis.Node,Yg=(globalThis.Element,globalThis.Text),Xg=(globalThis.Range,globalThis.Selection,globalThis.StaticRange,e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null),Jg=e=>Qg(e)&&1===e.nodeType,Qg=e=>{var t=Xg(e);return!!t&&e instanceof t.Node},ev=e=>{var t=e&&e.anchorNode&&Xg(e.anchorNode);return!!t&&e instanceof t.Selection},tv=e=>Qg(e)&&3===e.nodeType,nv=(e,t,n)=>{for(var r,{childNodes:o}=e,i=o[t],a=t,s=!1,l=!1;(Qg(r=i)&&8===r.nodeType||Jg(i)&&0===i.childNodes.length||Jg(i)&&"false"===i.getAttribute("contenteditable"))&&(!s||!l);)a>=o.length?(s=!0,a=t-1,n="backward"):a<0?(l=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]},rv=(e,t,n)=>{var[r]=nv(e,t,n);return r},ov=e=>{var t="";if(tv(e)&&e.nodeValue)return e.nodeValue;if(Jg(e)){for(var n of Array.from(e.childNodes))t+=ov(n);var r=getComputedStyle(e).getPropertyValue("display");"block"!==r&&"list"!==r&&"BR"!==e.tagName||(t+="\n")}return t},iv=/data-slate-fragment="(.+?)"/m,av=e=>null!=e.getSelection?e.getSelection():document.getSelection(),sv=(e,t,n)=>{var{target:r}=t;if(Jg(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:o}=Jv.getWindow(e);if(o.contains(r))return Jv.hasDOMNode(e,r,{editable:!0});var i=n.find((e=>{var{addedNodes:t,removedNodes:n}=e;for(var o of t)if(o===r||o.contains(r))return!0;for(var i of n)if(i===r||i.contains(r))return!0}));return!(!i||i===t)&&sv(e,i,n)},lv=(e,t)=>Boolean(e.compareDocumentPosition(t)&Zg.DOCUMENT_POSITION_PRECEDING),cv="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,uv="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),dv="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),pv="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),hv="undefined"!=typeof navigator&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),fv="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),mv="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),gv="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),vv=dv&&"undefined"!=typeof navigator&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),yv="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),bv="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),wv="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent),xv=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement);"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&/Version\/(\d+)/.test(navigator.userAgent)&&null!==(qg=navigator.userAgent.match(/Version\/(\d+)/))&&void 0!==qg&&qg[1]&&parseInt(null===(Gg=navigator.userAgent.match(/Version\/(\d+)/))||void 0===Gg?void 0:Gg[1],10);var Sv=(!gv||!vv)&&!fv&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges;function _v(e){return _v="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},_v(e)}function Cv(e){var t=function(e,t){if("object"!==_v(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_v(t)?t:String(t)}function Ev(e,t,n){return(t=Cv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kv=0;class zv{constructor(){Ev(this,"id",void 0),this.id="".concat(kv++)}}var Pv=new WeakMap,Av=new WeakMap,Dv=new WeakMap,Tv=new WeakMap,Iv=new WeakMap,Mv=new WeakMap,Nv=new WeakMap,Ov=new WeakMap,Rv=new WeakMap,jv=new WeakMap,Fv=new WeakMap,Bv=new WeakMap,Lv=new WeakMap,Vv=new WeakMap,Kv=new WeakMap,Hv=new WeakMap,$v=new WeakMap,Uv=new WeakMap,Wv=new WeakMap,qv=new WeakMap,Gv=new WeakMap,Zv=new WeakMap,Yv=Symbol("placeholder"),Xv=Symbol("mark-placeholder"),Jv={androidPendingDiffs:e=>Wv.get(e),androidScheduleFlush:e=>{var t;null===(t=Hv.get(e))||void 0===t||t()},blur:e=>{var t=Jv.toDOMNode(e,e),n=Jv.findDocumentOrShadowRoot(e);Bv.set(e,!1),n.activeElement===t&&t.blur()},deselect:e=>{var{selection:t}=e,n=Jv.findDocumentOrShadowRoot(e),r=av(n);r&&r.rangeCount>0&&r.removeAllRanges(),t&&Pl.gB.deselect(e)},findDocumentOrShadowRoot:e=>{var t=Jv.toDOMNode(e,e),n=t.getRootNode();return n instanceof Document||n instanceof ShadowRoot?n:t.ownerDocument},findEventRange:(e,t)=>{"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:n,clientY:r,target:o}=t;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var i,a=Jv.toSlateNode(e,t.target),s=Jv.findPath(e,a);if(Pl.Hg.isElement(a)&&Pl.KE.isVoid(e,a)){var l=o.getBoundingClientRect(),c=e.isInline(a)?n-l.left<l.left+l.width-n:r-l.top<l.top+l.height-r,u=Pl.KE.point(e,s,{edge:c?"start":"end"}),d=c?Pl.KE.before(e,u):Pl.KE.after(e,u);if(d)return Pl.KE.range(e,d)}var{document:p}=Jv.getWindow(e);if(p.caretRangeFromPoint)i=p.caretRangeFromPoint(n,r);else{var h=p.caretPositionFromPoint(n,r);h&&((i=p.createRange()).setStart(h.offsetNode,h.offset),i.setEnd(h.offsetNode,h.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));return Jv.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},findKey:(e,t)=>{var n=Rv.get(t);return n||(n=new zv,Rv.set(t,n)),n},findPath:(e,t)=>{for(var n=[],r=t;;){var o=Dv.get(r);if(null==o){if(Pl.KE.isEditor(r))return n;break}var i=Av.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: ".concat(Pl.h6.stringify(t)))},focus:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{retries:5};if(!Bv.get(e)){if(t.retries<=0)throw new Error("Could not set focus, editor seems stuck with pending operations");if(e.operations.length>0)setTimeout((()=>{Jv.focus(e,{retries:t.retries-1})}),10);else{var n=Jv.toDOMNode(e,e),r=Jv.findDocumentOrShadowRoot(e);if(r.activeElement!==n){if(e.selection&&r instanceof Document){var o=av(r),i=Jv.toDOMRange(e,e.selection);null==o||o.removeAllRanges(),null==o||o.addRange(i)}e.selection||Pl.gB.select(e,Pl.KE.start(e,[])),Bv.set(e,!0),n.focus({preventScroll:!0})}}}},getWindow:e=>{var t=Tv.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},hasDOMNode:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:o=!1}=r,i=Jv.toDOMNode(e,e);try{n=Jg(t)?t:t.parentElement}catch(e){if(e instanceof Error&&!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!n&&!(n.closest("[data-slate-editor]")!==i||o&&!n.isContentEditable&&("boolean"!=typeof n.isContentEditable||n.closest('[contenteditable="false"]')!==i)&&!n.getAttribute("data-slate-zero-width"))},hasEditableTarget:(e,t)=>Qg(t)&&Jv.hasDOMNode(e,t,{editable:!0}),hasRange:(e,t)=>{var{anchor:n,focus:r}=t;return Pl.KE.hasPath(e,n.path)&&Pl.KE.hasPath(e,r.path)},hasSelectableTarget:(e,t)=>Jv.hasEditableTarget(e,t)||Jv.isTargetInsideNonReadonlyVoid(e,t),hasTarget:(e,t)=>Qg(t)&&Jv.hasDOMNode(e,t),insertData:(e,t)=>{e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),isComposing:e=>!!Lv.get(e),isFocused:e=>!!Bv.get(e),isReadOnly:e=>!!Fv.get(e),isTargetInsideNonReadonlyVoid:(e,t)=>{if(Fv.get(e))return!1;var n=Jv.hasTarget(e,t)&&Jv.toSlateNode(e,t);return Pl.Hg.isElement(n)&&Pl.KE.isVoid(e,n)},setFragmentData:(e,t,n)=>e.setFragmentData(t,n),toDOMNode:(e,t)=>{var n=jv.get(e),r=Pl.KE.isEditor(t)?Iv.get(e):null==n?void 0:n.get(Jv.findKey(e,t));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(Pl.h6.stringify(t)));return r},toDOMPoint:(e,t)=>{var n,[r]=Pl.KE.node(e,t.path),o=Jv.toDOMNode(e,r);Pl.KE.void(e,{at:t})&&(t={path:t.path,offset:0});for(var i=Array.from(o.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),a=0,s=0;s<i.length;s++){var l=i[s],c=l.childNodes[0];if(null!=c&&null!=c.textContent){var{length:u}=c.textContent,d=l.getAttribute("data-slate-length"),p=a+(null==d?u:parseInt(d,10)),h=i[s+1];if(t.offset===p&&null!=h&&h.hasAttribute("data-slate-mark-placeholder")){var f,m=h.childNodes[0];n=[m instanceof Yg?m:h,null!==(f=h.textContent)&&void 0!==f&&f.startsWith("\ufeff")?1:0];break}if(t.offset<=p){n=[c,Math.min(u,Math.max(0,t.offset-a))];break}a=p}}if(!n)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(Pl.h6.stringify(t)));return n},toDOMRange:(e,t)=>{var{anchor:n,focus:r}=t,o=Pl.Q6.isBackward(t),i=Jv.toDOMPoint(e,n),a=Pl.Q6.isCollapsed(t)?i:Jv.toDOMPoint(e,r),s=Jv.getWindow(e).document.createRange(),[l,c]=o?a:i,[u,d]=o?i:a,p=!!(Jg(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),h=!!(Jg(u)?u:u.parentElement).getAttribute("data-slate-zero-width");return s.setStart(l,p?1:c),s.setEnd(u,h?1:d),s},toSlateNode:(e,t)=>{var n=Jg(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Nv.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},toSlatePoint:(e,t,n)=>{var{exactMatch:r,suppressThrow:o,searchDirection:i="backward"}=n,[a,s]=r?t:(e=>{var[t,n]=e;if(Jg(t)&&t.childNodes.length){var r=n===t.childNodes.length,o=r?n-1:n;for([t,o]=nv(t,o,r?"backward":"forward"),r=o<n;Jg(t)&&t.childNodes.length;){var i=r?t.childNodes.length-1:0;t=rv(t,i,r?"backward":"forward")}n=r&&null!=t.textContent?t.textContent.length:0}return[t,n]})(t),l=a.parentNode,c=null,u=0;if(l){var d,p,h=Jv.toDOMNode(e,e),f=l.closest('[data-slate-void="true"]'),m=f&&h.contains(f)?f:null,g=l.closest('[contenteditable="false"]'),v=g&&h.contains(g)?g:null,y=l.closest("[data-slate-leaf]"),b=null;if(y){if(c=y.closest('[data-slate-node="text"]')){var w=Jv.getWindow(e).document.createRange();w.setStart(c,0),w.setEnd(a,s);var x=w.cloneContents();[...Array.prototype.slice.call(x.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(x.querySelectorAll("[contenteditable=false]"))].forEach((e=>{dv&&!r&&e.hasAttribute("data-slate-zero-width")&&e.textContent.length>0&&"\ufeff"!==e.textContext?e.textContent.startsWith("\ufeff")&&(e.textContent=e.textContent.slice(1)):e.parentNode.removeChild(e)})),u=x.textContent.length,b=c}}else if(m){for(var S=m.querySelectorAll("[data-slate-leaf]"),_=0;_<S.length;_++){var C=S[_];if(Jv.hasDOMNode(e,C)){y=C;break}}y?(c=y.closest('[data-slate-node="text"]'),u=(b=y).textContent.length,b.querySelectorAll("[data-slate-zero-width]").forEach((e=>{u-=e.textContent.length}))):u=1}else if(v){var E,k,z=e=>e?e.querySelectorAll("[data-slate-leaf]:not(:scope [data-slate-editor] [data-slate-leaf])"):[],P=v.closest('[data-slate-node="element"]');if("forward"===i)y=null!==(E=[...z(P),...z(null==P?void 0:P.nextElementSibling)].find((e=>((e,t)=>Boolean(e.compareDocumentPosition(t)&Zg.DOCUMENT_POSITION_FOLLOWING))(v,e))))&&void 0!==E?E:null;else y=null!==(k=[...z(null==P?void 0:P.previousElementSibling),...z(P)].findLast((e=>lv(v,e))))&&void 0!==k?k:null;y&&(c=y.closest('[data-slate-node="text"]'),b=y,"forward"===i?u=0:(u=b.textContent.length,b.querySelectorAll("[data-slate-zero-width]").forEach((e=>{u-=e.textContent.length}))))}b&&u===b.textContent.length&&dv&&"z"===b.getAttribute("data-slate-zero-width")&&null!==(d=b.textContent)&&void 0!==d&&d.startsWith("\ufeff")&&(l.hasAttribute("data-slate-zero-width")||pv&&null!==(p=b.textContent)&&void 0!==p&&p.endsWith("\n\n"))&&u--}if(dv&&!c&&!r){var A=l.hasAttribute("data-slate-node")?l:l.closest("[data-slate-node]");if(A&&Jv.hasDOMNode(e,A,{editable:!0})){var D=Jv.toSlateNode(e,A),{path:T,offset:I}=Pl.KE.start(e,Jv.findPath(e,D));return A.querySelector("[data-slate-leaf]")||(I=s),{path:T,offset:I}}}if(!c){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var M=Jv.toSlateNode(e,c);return{path:Jv.findPath(e,M),offset:u}},toSlateRange:(e,t,n)=>{var r,o,i,a,s,l,{exactMatch:c,suppressThrow:u}=n;if(ev(t)?t.anchorNode:t.startContainer)if(ev(t)){if(pv&&t.rangeCount>1){a=t.focusNode;var d=t.getRangeAt(0),p=t.getRangeAt(t.rangeCount-1);if(a instanceof HTMLTableRowElement&&d.startContainer instanceof HTMLTableRowElement&&p.startContainer instanceof HTMLTableRowElement){function x(e){return e.childElementCount>0?x(e.children[0]):e}var h=d.startContainer,f=p.startContainer,m=x(h.children[d.startOffset]),g=x(f.children[p.startOffset]);s=0,o=g.childNodes.length>0?g.childNodes[0]:g,a=m.childNodes.length>0?m.childNodes[0]:m,i=g instanceof HTMLElement?g.innerHTML.length:0}else d.startContainer===a?(o=p.endContainer,i=p.endOffset,s=d.startOffset):(o=d.startContainer,i=d.endOffset,s=p.startOffset)}else o=t.anchorNode,i=t.anchorOffset,a=t.focusNode,s=t.focusOffset;l=mv&&(e=>{for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1})(o)||pv?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed}else o=t.startContainer,i=t.startOffset,a=t.endContainer,s=t.endOffset,l=t.collapsed;if(null==o||null==a||null==i||null==s)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));pv&&null!==(r=a.textContent)&&void 0!==r&&r.endsWith("\n\n")&&s===a.textContent.length&&s--;var v=Jv.toSlatePoint(e,[o,i],{exactMatch:c,suppressThrow:u});if(!v)return null;var y=lv(o,a)||o===a&&s<i,b=l?v:Jv.toSlatePoint(e,[a,s],{exactMatch:c,suppressThrow:u,searchDirection:y?"forward":"backward"});if(!b)return null;var w={anchor:v,focus:b};return Pl.Q6.isExpanded(w)&&Pl.Q6.isForward(w)&&Jg(a)&&Pl.KE.void(e,{at:w.focus,mode:"highest"})&&(w=Pl.KE.unhangRange(e,w,{voids:!0})),w}};function Qv(e,t){var{path:n,diff:r}=t;if(!Pl.KE.hasPath(e,n))return!1;var o=Pl.bP.get(e,n);if(!Pl.EY.isText(o))return!1;if(r.start!==o.text.length||0===r.text.length)return o.text.slice(r.start,r.start+r.text.length)===r.text;var i=Pl.wA.next(n);if(!Pl.KE.hasPath(e,i))return!1;var a=Pl.bP.get(e,i);return Pl.EY.isText(a)&&a.text.startsWith(r.text)}function ey(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce(((e,t)=>e.slice(0,t.start)+t.text+e.slice(t.end)),e)}function ty(e,t){var{start:n,end:r,text:o}=t,i=e.slice(n,r),a=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return n}(i,o),s=function(e,t,n){for(var r=Math.min(e.length,t.length,n),o=0;o<r;o++)if(e.charAt(e.length-o-1)!==t.charAt(t.length-o-1))return o;return r}(i,o,Math.min(i.length-a,o.length-a)),l={start:n+a,end:r-s,text:o.slice(a,o.length-s)};return l.start===l.end&&0===l.text.length?null:l}function ny(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function ry(e,t){var{path:n,offset:r}=t;if(!Pl.KE.hasPath(e,n))return null;var o=Pl.bP.get(e,n);if(!Pl.EY.isText(o))return null;var i=Pl.KE.above(e,{match:t=>Pl.Hg.isElement(t)&&Pl.KE.isBlock(e,t),at:n});if(!i)return null;for(;r>o.text.length;){var a=Pl.KE.next(e,{at:n,match:Pl.EY.isText});if(!a||!Pl.wA.isDescendant(a[1],i[1]))return null;r-=o.text.length,o=a[0],n=a[1]}return{path:n,offset:r}}function oy(e,t){var n=ry(e,t.anchor);if(!n)return null;if(Pl.Q6.isCollapsed(t))return{anchor:n,focus:n};var r=ry(e,t.focus);return r?{anchor:n,focus:r}:null}function iy(e,t,n){var r=Wv.get(e),o=null==r?void 0:r.find((e=>{var{path:n}=e;return Pl.wA.equals(n,t.path)}));if(!o||t.offset<=o.diff.start)return Pl.bR.transform(t,n,{affinity:"backward"});var{diff:i}=o;if(t.offset<=i.start+i.text.length){var a={path:t.path,offset:i.start},s=Pl.bR.transform(a,n,{affinity:"backward"});return s?{path:s.path,offset:s.offset+t.offset-i.start}:null}var l={path:t.path,offset:t.offset-i.text.length+i.end-i.start},c=Pl.bR.transform(l,n,{affinity:"backward"});return c?"split_node"===n.type&&Pl.wA.equals(n.path,t.path)&&l.offset<n.position&&i.start<n.position?c:{path:c.path,offset:c.offset+i.text.length-i.end+i.start}:null}function ay(e,t,n){var r=iy(e,t.anchor,n);if(!r)return null;if(Pl.Q6.isCollapsed(t))return{anchor:r,focus:r};var o=iy(e,t.focus,n);return o?{anchor:r,focus:o}:null}var sy=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},ly=(e,t,n)=>{var r=Jv.toDOMRange(e,t).getBoundingClientRect(),o=Jv.toDOMRange(e,n).getBoundingClientRect();return sy(r,o)&&sy(o,r)};function cy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cy(Object(n),!0).forEach((function(t){Ev(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dy=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x-slate-fragment",n=e,{apply:r,onChange:o,deleteBackward:i,addMark:a,removeMark:s}=n;return jv.set(n,new WeakMap),n.addMark=(e,t)=>{var r,o;null===(r=Hv.get(n))||void 0===r||r(),!$v.get(n)&&null!==(o=Wv.get(n))&&void 0!==o&&o.length&&$v.set(n,null),Uv.delete(n),a(e,t)},n.removeMark=e=>{var t;!$v.get(n)&&null!==(t=Wv.get(n))&&void 0!==t&&t.length&&$v.set(n,null),Uv.delete(n),s(e)},n.deleteBackward=e=>{if("line"!==e)return i(e);if(n.selection&&Pl.Q6.isCollapsed(n.selection)){var t=Pl.KE.above(n,{match:e=>Pl.Hg.isElement(e)&&Pl.KE.isBlock(n,e),at:n.selection});if(t){var[,r]=t,o=Pl.KE.range(n,r,n.selection.anchor),a=((e,t)=>{var n=Pl.KE.range(e,Pl.Q6.end(t)),r=Array.from(Pl.KE.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(ly(e,Pl.KE.range(e,r[o]),n))return Pl.KE.range(e,r[o],n);if(r.length<2)return Pl.KE.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)ly(e,Pl.KE.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return Pl.KE.range(e,r[i],n)})(n,o);Pl.Q6.isCollapsed(a)||Pl.gB.delete(n,{at:a})}}},n.apply=t=>{var o=[],i=[],a=Wv.get(n);if(null!=a&&a.length){var s=a.map((e=>function(e,t){var{path:n,diff:r,id:o}=e;switch(t.type){case"insert_text":return!Pl.wA.equals(t.path,n)||t.offset>=r.end?e:t.offset<=r.start?{diff:{start:t.text.length+r.start,end:t.text.length+r.end,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end+t.text.length,text:r.text},id:o,path:n};case"remove_text":return!Pl.wA.equals(t.path,n)||t.offset>=r.end?e:t.offset+t.text.length<=r.start?{diff:{start:r.start-t.text.length,end:r.end-t.text.length,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end-t.text.length,text:r.text},id:o,path:n};case"split_node":return!Pl.wA.equals(t.path,n)||t.position>=r.end?{diff:r,id:o,path:Pl.wA.transform(n,t,{affinity:"backward"})}:t.position>r.start?{diff:{start:r.start,end:Math.min(t.position,r.end),text:r.text},id:o,path:n}:{diff:{start:r.start-t.position,end:r.end-t.position,text:r.text},id:o,path:Pl.wA.transform(n,t,{affinity:"forward"})};case"merge_node":return Pl.wA.equals(t.path,n)?{diff:{start:r.start+t.position,end:r.end+t.position,text:r.text},id:o,path:Pl.wA.transform(n,t)}:{diff:r,id:o,path:Pl.wA.transform(n,t)}}var i=Pl.wA.transform(n,t);return i?{diff:r,path:i,id:o}:null}(e,t))).filter(Boolean);Wv.set(n,s)}var l=Gv.get(n);l&&Gv.set(n,ay(n,l,t));var c=qv.get(n);if(null!=c&&c.at){var u=Pl.bR.isPoint(null==c?void 0:c.at)?iy(n,c.at,t):ay(n,c.at,t);qv.set(n,u?uy(uy({},c),{},{at:u}):null)}switch(t.type){case"insert_text":case"remove_text":case"set_node":case"split_node":o.push(...py(n,t.path));break;case"set_selection":var d;null===(d=Vv.get(n))||void 0===d||d.unref(),Vv.delete(n);break;case"insert_node":case"remove_node":o.push(...py(n,Pl.wA.parent(t.path)));break;case"merge_node":var p=Pl.wA.previous(t.path);o.push(...py(n,p));break;case"move_node":var h,f=Pl.wA.common(Pl.wA.parent(t.path),Pl.wA.parent(t.newPath));o.push(...py(n,f)),Pl.wA.isBefore(t.path,t.newPath)?(o.push(...py(n,Pl.wA.parent(t.path))),h=t.newPath):(o.push(...py(n,Pl.wA.parent(t.newPath))),h=t.path);var m=Pl.bP.get(e,Pl.wA.parent(h)),g=Jv.findKey(n,m),v=Pl.KE.pathRef(n,Pl.wA.parent(h));i.push([v,g])}switch(r(t),t.type){case"insert_node":case"remove_node":case"merge_node":case"move_node":case"split_node":case"insert_text":case"remove_text":case"set_selection":Pv.set(n,!0)}for(var[y,b]of o){var[w]=Pl.KE.node(n,y);Rv.set(w,b)}for(var[x,S]of i){if(x.current){var[_]=Pl.KE.node(n,x.current);Rv.set(_,S)}x.unref()}},n.setFragmentData=e=>{var{selection:r}=n;if(r){var[o,i]=Pl.Q6.edges(r),a=Pl.KE.void(n,{at:o.path}),s=Pl.KE.void(n,{at:i.path});if(!Pl.Q6.isCollapsed(r)||a){var l=Jv.toDOMRange(n,r),c=l.cloneContents(),u=c.childNodes[0];if(c.childNodes.forEach((e=>{e.textContent&&""!==e.textContent.trim()&&(u=e)})),s){var[d]=s,p=l.cloneRange(),h=Jv.toDOMNode(n,d);p.setEndAfter(h),c=p.cloneContents()}if(a&&(u=c.querySelector("[data-slate-spacer]")),Array.from(c.querySelectorAll("[data-slate-zero-width]")).forEach((e=>{var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),tv(u)){var f=u.ownerDocument.createElement("span");f.style.whiteSpace="pre",f.appendChild(u),c.appendChild(f),u=f}var m=n.getFragment(),g=JSON.stringify(m),v=window.btoa(encodeURIComponent(g));u.setAttribute("data-slate-fragment",v),e.setData("application/".concat(t),v);var y=c.ownerDocument.createElement("div");return y.appendChild(c),y.setAttribute("hidden","true"),c.ownerDocument.body.appendChild(y),e.setData("text/html",y.innerHTML),e.setData("text/plain",ov(y)),c.ownerDocument.body.removeChild(y),e}}},n.insertData=e=>{n.insertFragmentData(e)||n.insertTextData(e)},n.insertFragmentData=e=>{var r=e.getData("application/".concat(t))||(e=>{var t=e.getData("text/html"),[,n]=t.match(iv)||[];return n})(e);if(r){var o=decodeURIComponent(window.atob(r)),i=JSON.parse(o);return n.insertFragment(i),!0}return!1},n.insertTextData=e=>{var t=e.getData("text/plain");if(t){var r=t.split(/\r\n|\r|\n/),o=!1;for(var i of r)o&&Pl.gB.splitNodes(n,{always:!0}),n.insertText(i),o=!0;return!0}return!1},n.onChange=e=>{var t=Kv.get(n);t&&t(e),o(e)},n},py=(e,t)=>{var n=[];for(var[r,o]of Pl.KE.levels(e,{at:t})){var i=Jv.findKey(e,r);n.push([o,i])}return n},hy={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},fy={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},my={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},gy=e=>{var t=hy[e],n=fy[e],r=my[e],o=t&&(0,np.v_)(t),i=n&&(0,np.v_)(n),a=r&&(0,np.v_)(r);return e=>!(!o||!o(e))||(!!(uv&&i&&i(e))||!(uv||!a||!a(e)))},vy={isBold:gy("bold"),isCompose:gy("compose"),isMoveBackward:gy("moveBackward"),isMoveForward:gy("moveForward"),isDeleteBackward:gy("deleteBackward"),isDeleteForward:gy("deleteForward"),isDeleteLineBackward:gy("deleteLineBackward"),isDeleteLineForward:gy("deleteLineForward"),isDeleteWordBackward:gy("deleteWordBackward"),isDeleteWordForward:gy("deleteWordForward"),isExtendBackward:gy("extendBackward"),isExtendForward:gy("extendForward"),isExtendLineBackward:gy("extendLineBackward"),isExtendLineForward:gy("extendLineForward"),isItalic:gy("italic"),isMoveLineBackward:gy("moveLineBackward"),isMoveLineForward:gy("moveLineForward"),isMoveWordBackward:gy("moveWordBackward"),isMoveWordForward:gy("moveWordForward"),isRedo:gy("redo"),isSoftBreak:gy("insertSoftBreak"),isSplitBlock:gy("splitBlock"),isTransposeCharacter:gy("transposeCharacter"),isUndo:gy("undo")};function yy(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var by=["anchor","focus"],wy=["anchor","focus"],xy=(e,t)=>{var n,r,o=yy(e,by),i=yy(t,wy);return e[Yv]===t[Yv]&&(n=o,r=i,Object.keys(n).length===Object.keys(r).length&&Object.keys(n).every((e=>r.hasOwnProperty(e)&&n[e]===r[e])))},Sy=n(44564);function _y(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Cy(e){return Cy="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},Cy(e)}function Ey(e){var t=function(e,t){if("object"!==Cy(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Cy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Cy(t)?t:String(t)}function ky(e,t,n){return(t=Ey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zy=(0,l.createContext)(null),Py=()=>{var e=(0,l.useContext)(zy);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},Ay=Jv;function Dy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ty(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dy(Object(n),!0).forEach((function(t){ky(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Iy(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=e,o=!1,i=null,a=null,s=null,l=0,c=!1,u=()=>{var e=Gv.get(t);if(Gv.delete(t),e){var{selection:n}=t,r=oy(t,e);!r||n&&Mf.equals(r,n)||am.select(t,r)}},d=()=>{if(a&&(clearTimeout(a),a=null),s&&(clearTimeout(s),s=null),g()||m()){o||(o=!0,setTimeout((()=>o=!1))),m()&&(o="action");var e=t.selection&&$f.rangeRef(t,t.selection,{affinity:"forward"});Uv.set(t,t.marks),qv.get(t),Wv.get(t);for(var i,l=g();i=null===(d=Wv.get(t))||void 0===d?void 0:d[0];){var d,p,h=$v.get(t);void 0!==h&&($v.delete(t),t.marks=h),h&&!1===c&&(c=null);var f=ny(i);t.selection&&Mf.equals(t.selection,f)||am.select(t,f),i.diff.text?$f.insertText(t,i.diff.text):$f.deleteFragment(t),Wv.set(t,null===(p=Wv.get(t))||void 0===p?void 0:p.filter((e=>{var{id:t}=e;return t!==i.id}))),Qv(t,i)||(l=!1,qv.delete(t),Uv.delete(t),o="action",Gv.delete(t),n.cancel(),r.cancel(),null==e||e.unref())}var v=null==e?void 0:e.unref();if(!v||Gv.get(t)||t.selection&&Mf.equals(v,t.selection)||am.select(t,v),m())(()=>{var e=qv.get(t);if(qv.delete(t),e){if(e.at){var n=qf.isPoint(e.at)?ry(t,e.at):oy(t,e.at);if(!n)return;var r=$f.range(t,n);t.selection&&Mf.equals(t.selection,r)||am.select(t,n)}e.run()}})();else{l&&n(),n.flush(),r.flush(),u();var y=Uv.get(t);Uv.delete(t),void 0!==y&&(t.marks=y,t.onChange())}}else u()},p=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=Mv.get(t);n&&(g()||e?n.style.display="none":n.style.removeProperty("display"))},h=(e,n)=>{var r,o=null!==(r=Wv.get(t))&&void 0!==r?r:[];Wv.set(t,o);var i=Bf.leaf(t,e),a=o.findIndex((t=>wf.equals(t.path,e)));if(a<0)return ty(i.text,n)&&o.push({path:e,diff:n,id:l++}),void p();var s=function(e,t,n){var r=Math.min(t.start,n.start),o=Math.max(0,Math.min(t.start+t.text.length,n.end)-n.start),i=ey(e,t,n),a=Math.max(n.start+n.text.length,t.start+t.text.length+(t.start+t.text.length>n.start?n.text.length:0)-o),s=i.slice(r,a);return ty(e,{start:r,end:Math.max(t.end,n.end-t.text.length+(t.end-t.start)),text:s})}(i.text,o[a].diff,n);if(!s)return o.splice(a,1),void p();o[a]=Ty(Ty({},o[a]),{},{diff:s})},f=function(e){var{at:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c=!1,Gv.delete(t),n.cancel(),r.cancel(),m()&&d(),qv.set(t,{at:o,run:e}),s=setTimeout(d)},m=()=>!!qv.get(t),g=()=>{var e;return!(null===(e=Wv.get(t))||void 0===e||!e.length)},v=e=>{Gv.set(t,e),a&&(clearTimeout(a),a=null);var{selection:n}=t;if(e){var r=!n||!wf.equals(n.anchor.path,e.anchor.path),o=!n||!wf.equals(n.anchor.path.slice(0,-1),e.anchor.path.slice(0,-1));(r&&c||o)&&(c=!1),(r||g())&&(a=setTimeout(d,200))}},y=()=>{m()||(s=setTimeout(d))};return{flush:d,scheduleFlush:y,hasPendingDiffs:g,hasPendingAction:m,hasPendingChanges:()=>m()||g(),isFlushing:()=>o,handleUserSelect:v,handleCompositionEnd:e=>{i&&clearTimeout(i),i=setTimeout((()=>{Lv.set(t,!1),d()}),25)},handleCompositionStart:e=>{Lv.set(t,!0),i&&(clearTimeout(i),i=null)},handleDOMBeforeInput:e=>{var n;if(a&&(clearTimeout(a),a=null),!Pv.get(t)){var{inputType:r}=e,o=null,i=e.dataTransfer||e.data||void 0;!1!==c&&"insertText"!==r&&"insertCompositionText"!==r&&(c=!1);var[s]=e.getTargetRanges();s&&(o=Ay.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!0}));var l=Ay.getWindow(t).getSelection();if(!o&&l&&(s=l,o=Ay.toSlateRange(t,l,{exactMatch:!1,suppressThrow:!0})),o=null!==(n=o)&&void 0!==n?n:t.selection){var u,d=!0;if(r.startsWith("delete")){if(Mf.isExpanded(o)){var[p,m]=Mf.edges(o);if(Bf.leaf(t,p.path).text.length===p.offset&&0===m.offset){var g=$f.next(t,{at:p.path,match:tm.isText});g&&wf.equals(g[1],m.path)&&(o={anchor:m,focus:m})}}var b=r.endsWith("Backward")?"backward":"forward",[w,x]=Mf.edges(o),[S,_]=$f.leaf(t,w.path),C={text:"",start:w.offset,end:x.offset},E=Wv.get(t),k=null==E?void 0:E.find((e=>wf.equals(e.path,_))),z=k?[k.diff,C]:[C];if(0===ey(S.text,...z).length&&(d=!1),Mf.isExpanded(o)){if(d&&wf.equals(o.anchor.path,o.focus.path)){var P={path:o.anchor.path,offset:w.offset},A=$f.range(t,P,P);return v(A),h(o.anchor.path,{text:"",end:x.offset,start:w.offset})}return f((()=>$f.deleteFragment(t,{direction:b})),{at:o})}}switch(r){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return f((()=>$f.deleteFragment(t)),{at:o});case"deleteContent":case"deleteContentForward":var{anchor:D}=o;if(d&&Mf.isCollapsed(o)){var T=Bf.leaf(t,D.path);if(D.offset<T.text.length)return h(D.path,{text:"",start:D.offset,end:D.offset+1})}return f((()=>$f.deleteForward(t)),{at:o});case"deleteContentBackward":var I,{anchor:M}=o,N=ev(s)?s.isCollapsed:!(null===(I=s)||void 0===I||!I.collapsed);return d&&N&&Mf.isCollapsed(o)&&M.offset>0?h(M.path,{text:"",start:M.offset-1,end:M.offset}):f((()=>$f.deleteBackward(t)),{at:o});case"deleteEntireSoftLine":return f((()=>{$f.deleteBackward(t,{unit:"line"}),$f.deleteForward(t,{unit:"line"})}),{at:o});case"deleteHardLineBackward":return f((()=>$f.deleteBackward(t,{unit:"block"})),{at:o});case"deleteSoftLineBackward":return f((()=>$f.deleteBackward(t,{unit:"line"})),{at:o});case"deleteHardLineForward":return f((()=>$f.deleteForward(t,{unit:"block"})),{at:o});case"deleteSoftLineForward":return f((()=>$f.deleteForward(t,{unit:"line"})),{at:o});case"deleteWordBackward":return f((()=>$f.deleteBackward(t,{unit:"word"})),{at:o});case"deleteWordForward":return f((()=>$f.deleteForward(t,{unit:"word"})),{at:o});case"insertLineBreak":return f((()=>$f.insertSoftBreak(t)),{at:o});case"insertParagraph":return f((()=>$f.insertBreak(t)),{at:o});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("DataTransfer"===(null==(u=i)?void 0:u.constructor.name))return f((()=>Ay.insertData(t,i)),{at:o});var O=null!=i?i:"";if($v.get(t)&&(O=O.replace("\ufeff","")),"insertText"===r&&/.*\n.*\n$/.test(O)&&(O=O.slice(0,-1)),O.includes("\n"))return f((()=>{var e=O.split("\n");e.forEach(((n,r)=>{n&&$f.insertText(t,n),r!==e.length-1&&$f.insertSoftBreak(t)}))}),{at:o});if(wf.equals(o.anchor.path,o.focus.path)){var[R,j]=Mf.edges(o),F={start:R.offset,end:j.offset,text:O};if(O&&c&&"insertCompositionText"===r){var B=c.start+c.text.search(/\S|$/);F.start+F.text.search(/\S|$/)===B+1&&F.end===c.start+c.text.length?(F.start-=1,c=null,y()):c=!1}else c="insertText"===r&&(null===c?F:!(!c||!Mf.isCollapsed(o)||c.end+c.text.length!==R.offset)&&Ty(Ty({},c),{},{text:c.text+O}));if(d)return void h(R.path,F)}return f((()=>$f.insertText(t,O)),{at:o})}}}},handleKeyDown:e=>{g()||(p(!0),setTimeout(p))},handleDomMutations:e=>{var n;g()||m()||e.some((n=>sv(t,n,e)))&&(null===(n=Zv.get(t))||void 0===n||n())},handleInput:()=>{!m()&&g()||d()}}}var My=xv?l.useLayoutEffect:l.useEffect;var Ny=["node"];function Oy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ry={subtree:!0,childList:!0,characterData:!0},jy=dv?e=>{var{node:t}=e,n=_y(e,Ny);if(!dv)return null;var r,o=Py(),i=(r=(0,l.useRef)(!1),(0,l.useEffect)((()=>(r.current=!0,()=>{r.current=!1})),[]),r.current),[a]=(0,l.useState)((()=>Iy(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oy(Object(n),!0).forEach((function(t){ky(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({editor:o},n))));return function(e,t,n){var[r]=(0,l.useState)((()=>new MutationObserver(t)));My((()=>{r.takeRecords()})),(0,l.useEffect)((()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(e.current,n),()=>r.disconnect()}),[r,e,n])}(t,a.handleDomMutations,Ry),Hv.set(o,a.scheduleFlush),i&&a.flush(),a}:()=>null;function Fy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var By=e=>{var{isLast:t,leaf:n,parent:r,text:o}=e,i=Py(),a=Ay.findPath(i,o),s=wf.parent(a),c=Boolean(n[Xv]);return i.isVoid(r)?l.createElement(Ky,{length:Bf.string(r).length}):""!==n.text||r.children[r.children.length-1]!==o||i.isInline(r)||""!==$f.string(i,s)?""===n.text?l.createElement(Ky,{isMarkPlaceholder:c}):t&&"\n"===n.text.slice(-1)?l.createElement(Ly,{isTrailing:!0,text:n.text}):l.createElement(Ly,{text:n.text}):l.createElement(Ky,{isLineBreak:!0,isMarkPlaceholder:c})},Ly=e=>{var{text:t,isTrailing:n=!1}=e,r=(0,l.useRef)(null),o=()=>"".concat(null!=t?t:"").concat(n?"\n":""),[i]=(0,l.useState)(o);return My((()=>{var e=o();r.current&&r.current.textContent!==e&&(r.current.textContent=e)})),l.createElement(Vy,{ref:r},i)},Vy=(0,l.memo)((0,l.forwardRef)(((e,t)=>l.createElement("span",{"data-slate-string":!0,ref:t},e.children)))),Ky=e=>{var{length:t=0,isLineBreak:n=!1,isMarkPlaceholder:r=!1}=e,o={"data-slate-zero-width":n?"n":"z","data-slate-length":t};return r&&(o["data-slate-mark-placeholder"]=!0),l.createElement("span",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fy(Object(n),!0).forEach((function(t){ky(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o),(dv||cv)&&n?null:"\ufeff",n?l.createElement("br",null):null)};function Hy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hy(Object(n),!0).forEach((function(t){ky(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Uy=dv?300:0;function Wy(e){e.current&&(clearTimeout(e.current),e.current=null)}var qy=e=>{var{leaf:t,isLast:n,text:r,parent:o,renderPlaceholder:i,renderLeaf:a=e=>l.createElement(Zy,$y({},e))}=e,s=Py(),c=(0,l.useRef)(null),u=(0,l.useRef)(null),[d,p]=(0,l.useState)(!1),h=(0,l.useRef)(null),f=(0,l.useCallback)((e=>{if(function(e,t){e.current&&(e.current.disconnect(),t&&(e.current=null))}(c,null==e),null==e){var n;Mv.delete(s),null===(n=t.onPlaceholderResize)||void 0===n||n.call(t,null)}else{if(Mv.set(s,e),!c.current){var r=window.ResizeObserver||Sy.tb;c.current=new r((()=>{var n;null===(n=t.onPlaceholderResize)||void 0===n||n.call(t,e)}))}c.current.observe(e),u.current=e}}),[u,t,s]),m=l.createElement(By,{isLast:n,leaf:t,parent:o,text:r}),g=Boolean(t[Yv]);if((0,l.useEffect)((()=>(g?h.current||(h.current=setTimeout((()=>{p(!0),h.current=null}),Uy)):(Wy(h),p(!1)),()=>Wy(h))),[g,p]),g&&d){var v={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",top:0,pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none",WebkitUserModify:hv?"inherit":void 0},contentEditable:!1,ref:f}};m=l.createElement(l.Fragment,null,i(v),m)}return a({attributes:{"data-slate-leaf":!0},children:m,leaf:t,text:r})},Gy=l.memo(qy,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&tm.equals(t.leaf,e.leaf)&&t.leaf[Yv]===e.leaf[Yv])),Zy=e=>{var{attributes:t,children:n}=e;return l.createElement("span",$y({},t),n)},Yy=e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:o,renderLeaf:i,text:a}=e,s=Py(),c=(0,l.useRef)(null),u=tm.decorations(a,t),d=Ay.findKey(s,a),p=[],h=0;h<u.length;h++){var f=u[h];p.push(l.createElement(Gy,{isLast:n&&h===u.length-1,key:"".concat(d.id,"-").concat(h),renderPlaceholder:o,leaf:f,text:a,parent:r,renderLeaf:i}))}var m=(0,l.useCallback)((e=>{var t=jv.get(s);e?(null==t||t.set(d,e),Ov.set(a,e),Nv.set(e,a)):(null==t||t.delete(d),Ov.delete(a),c.current&&Nv.delete(c.current)),c.current=e}),[c,s,d,a]);return l.createElement("span",{"data-slate-node":"text",ref:m},p)},Xy=l.memo(Yy,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&((e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(r.anchor.offset!==o.anchor.offset||r.focus.offset!==o.focus.offset||!xy(r,o))return!1}return!0})(t.decorations,e.decorations)));function Jy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jy(Object(n),!0).forEach((function(t){ky(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var eb=e=>{var{decorations:t,element:n,renderElement:r=e=>l.createElement(nb,Qy({},e)),renderPlaceholder:o,renderLeaf:i,selection:a}=e,s=Py(),c=sb(),u=s.isInline(n),d=Ay.findKey(s,n),p=(0,l.useCallback)((e=>{var t=jv.get(s);e?(null==t||t.set(d,e),Ov.set(n,e),Nv.set(e,n)):(null==t||t.delete(d),Ov.delete(n))}),[s,d,n]),h=ib({decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:i,selection:a}),f={"data-slate-node":"element",ref:p};if(u&&(f["data-slate-inline"]=!0),!u&&$f.hasInlines(s,n)){var m=Bf.string(n),g=Og()(m);"rtl"===g&&(f.dir=g)}if($f.isVoid(s,n)){f["data-slate-void"]=!0,!c&&u&&(f.contentEditable=!1);var v=u?"span":"div",[[y]]=Bf.texts(n);h=l.createElement(v,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},l.createElement(Xy,{renderPlaceholder:o,decorations:[],isLast:!1,parent:n,text:y})),Av.set(y,0),Dv.set(y,n)}return r({attributes:f,children:h,element:n})},tb=l.memo(eb,((e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&((e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(!Pl.Q6.equals(r,o)||!xy(r,o))return!1}return!0})(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&Mf.equals(e.selection,t.selection)))),nb=e=>{var{attributes:t,children:n,element:r}=e,o=Py().isInline(r)?"span":"div";return l.createElement(o,Qy(Qy({},t),{},{style:{position:"relative"}}),n)},rb=(0,l.createContext)((()=>[])),ob=(0,l.createContext)(!1),ib=e=>{var{decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:i,selection:a}=e,s=(0,l.useContext)(rb),c=Py();Pv.set(c,!1);for(var u=Ay.findPath(c,n),d=[],p=Of.isElement(n)&&!c.isInline(n)&&$f.hasInlines(c,n),h=0;h<n.children.length;h++){var f=u.concat(h),m=n.children[h],g=Ay.findKey(c,m),v=$f.range(c,f),y=a&&Mf.intersection(v,a),b=s([m,f]);for(var w of t){var x=Mf.intersection(w,v);x&&b.push(x)}Of.isElement(m)?d.push(l.createElement(ob.Provider,{key:"provider-".concat(g.id),value:!!y},l.createElement(tb,{decorations:b,element:m,key:g.id,renderElement:r,renderPlaceholder:o,renderLeaf:i,selection:y}))):d.push(l.createElement(Xy,{decorations:b,key:g.id,isLast:p&&h===n.children.length-1,parent:n,renderPlaceholder:o,renderLeaf:i,text:m})),Av.set(m,h),Dv.set(m,n)}return d},ab=(0,l.createContext)(!1),sb=()=>(0,l.useContext)(ab),lb=(0,l.createContext)(null),cb=()=>{var e=(0,l.useContext)(lb);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t};var ub={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class db extends l.Component{constructor(){super(...arguments),ky(this,"context",null),ky(this,"manager",null),ky(this,"mutationObserver",null)}observe(){var e,{node:t}=this.props;if(!t.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");null===(e=this.mutationObserver)||void 0===e||e.observe(t.current,ub)}componentDidMount(){var{receivedUserInput:e}=this.props,t=this.context;this.manager=((e,t)=>{var n=[],r=()=>{n=[]};return{registerMutations:r=>{if(t.current){var o=r.filter((t=>sv(e,t,r)));n.push(...o)}},restoreDOM:function(){n.length>0&&(n.reverse().forEach((e=>{"characterData"!==e.type&&(e.removedNodes.forEach((t=>{e.target.insertBefore(t,e.nextSibling)})),e.addedNodes.forEach((t=>{e.target.removeChild(t)})))})),r())},clear:r}})(t,e),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var e,t,n,r,o=null===(e=this.mutationObserver)||void 0===e?void 0:e.takeRecords();null!=o&&o.length&&(null===(r=this.manager)||void 0===r||r.registerMutations(o));return null===(t=this.mutationObserver)||void 0===t||t.disconnect(),null===(n=this.manager)||void 0===n||n.restoreDOM(),null}componentDidUpdate(){var e;null===(e=this.manager)||void 0===e||e.clear(),this.observe()}componentWillUnmount(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect()}render(){return this.props.children}}ky(db,"contextType",zy);var pb=dv?db:e=>{var{children:t}=e;return l.createElement(l.Fragment,null,t)},hb=(0,l.createContext)(!1),fb=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],mb=["text"];function gb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gb(Object(n),!0).forEach((function(t){ky(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var yb=e=>l.createElement(l.Fragment,null,ib(e)),bb=(0,l.forwardRef)(((e,t)=>{var n=(0,l.useCallback)((e=>l.createElement(wb,vb({},e))),[]),{autoFocus:r,decorate:o=xb,onDOMBeforeInput:i,placeholder:a,readOnly:s=!1,renderElement:c,renderLeaf:u,renderPlaceholder:d=n,scrollSelectionIntoView:p=Sb,style:h={},as:f="div",disableDefaultStyles:m=!1}=e,g=_y(e,fb),v=cb(),[y,b]=(0,l.useState)(!1),w=(0,l.useRef)(null),x=(0,l.useRef)([]),[S,_]=(0,l.useState)(),C=(0,l.useRef)(!1),{onUserInput:E,receivedUserInput:k}=function(){var e=Py(),t=(0,l.useRef)(!1),n=(0,l.useRef)(0),r=(0,l.useCallback)((()=>{if(!t.current){t.current=!0;var r=Ay.getWindow(e);r.cancelAnimationFrame(n.current),n.current=r.requestAnimationFrame((()=>{t.current=!1}))}}),[e]);return(0,l.useEffect)((()=>()=>cancelAnimationFrame(n.current)),[]),{receivedUserInput:t,onUserInput:r}}(),[,z]=(0,l.useReducer)((e=>e+1),0);Zv.set(v,z),Fv.set(v,s);var P=(0,l.useMemo)((()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1})),[]);(0,l.useEffect)((()=>{w.current&&r&&w.current.focus()}),[r]);var A=(0,l.useRef)(),D=(0,l.useMemo)((()=>Bg()((()=>{if(Pv.get(v))D();else{var e=Ay.toDOMNode(v,v).getRootNode();if(!C.current&&hv&&e instanceof ShadowRoot){C.current=!0;var t=(()=>{for(var e=document.activeElement;null!==(t=e)&&void 0!==t&&t.shadowRoot&&null!==(n=e.shadowRoot)&&void 0!==n&&n.activeElement;){var t,n,r;e=null===(r=e)||void 0===r||null===(r=r.shadowRoot)||void 0===r?void 0:r.activeElement}return e})();return t?document.execCommand("indent"):am.deselect(v),void(C.current=!1)}var n=A.current;if((dv||!Ay.isComposing(v))&&(!P.isUpdatingSelection||null!=n&&n.isFlushing())&&!P.isDraggingInternally){var r=Ay.findDocumentOrShadowRoot(v),{activeElement:o}=r,i=Ay.toDOMNode(v,v),a=av(r);if(o===i?(P.latestElement=o,Bv.set(v,!0)):Bv.delete(v),!a)return am.deselect(v);var{anchorNode:l,focusNode:c}=a,u=Ay.hasEditableTarget(v,l)||Ay.isTargetInsideNonReadonlyVoid(v,l),d=Ay.hasTarget(v,c);if(u&&d){var p=Ay.toSlateRange(v,a,{exactMatch:!1,suppressThrow:!0});p&&(Ay.isComposing(v)||null!=n&&n.hasPendingChanges()||null!=n&&n.isFlushing()?null==n||n.handleUserSelect(p):am.select(v,p))}!s||u&&d||am.deselect(v)}}}),100)),[v,s,P]),T=(0,l.useMemo)((()=>jg()(D,0)),[D]);A.current=jy({node:w,onDOMSelectionChange:D,scheduleOnDOMSelectionChange:T}),My((()=>{var e,t,n;w.current&&(n=Xg(w.current))?(Tv.set(v,n),Iv.set(v,w.current),Ov.set(v,w.current),Nv.set(w.current,v)):Ov.delete(v);var{selection:r}=v,o=Ay.findDocumentOrShadowRoot(v),i=av(o);if(i&&Ay.isFocused(v)&&(null===(e=A.current)||void 0===e||!e.hasPendingAction())){var a=e=>{var t="None"!==i.type;if(r||t){var n,o=i.focusNode;if(pv&&i.rangeCount>1){var a=i.getRangeAt(0),s=i.getRangeAt(i.rangeCount-1);n=a.startContainer===o?s.endContainer:a.startContainer}else n=i.anchorNode;var l=Iv.get(v),c=!1;if(l.contains(n)&&l.contains(o)&&(c=!0),t&&c&&r&&!e){var u=Ay.toSlateRange(v,i,{exactMatch:!0,suppressThrow:!0});if(u&&Mf.equals(u,r)){var d;if(!P.hasMarkPlaceholder)return;if(null!==(d=n)&&void 0!==d&&null!==(d=d.parentElement)&&void 0!==d&&d.hasAttribute("data-slate-mark-placeholder"))return}}if(!r||Ay.hasRange(v,r)){P.isUpdatingSelection=!0;var h=null;try{h=r&&Ay.toDOMRange(v,r)}catch(e){}return h?(Ay.isComposing(v)&&!dv?i.collapseToEnd():Mf.isBackward(r)?i.setBaseAndExtent(h.endContainer,h.endOffset,h.startContainer,h.startOffset):i.setBaseAndExtent(h.startContainer,h.startOffset,h.endContainer,h.endOffset),p(v,h)):i.removeAllRanges(),h}v.selection=Ay.toSlateRange(v,i,{exactMatch:!1,suppressThrow:!0})}};i.rangeCount<=1&&a();var s="action"===(null===(t=A.current)||void 0===t?void 0:t.isFlushing());if(dv&&s){var l=null,c=requestAnimationFrame((()=>{if(s){var e=e=>{try{Ay.toDOMNode(v,v).focus(),a(e)}catch(e){}};e(),l=setTimeout((()=>{e(!0),P.isUpdatingSelection=!1}))}}));return()=>{cancelAnimationFrame(c),l&&clearTimeout(l)}}setTimeout((()=>{P.isUpdatingSelection=!1}))}}));var I=(0,l.useCallback)((e=>{var t=Ay.toDOMNode(v,v).getRootNode();if(null!=C&&C.current&&hv&&t instanceof ShadowRoot){var n=e.getTargetRanges()[0],r=new window.Range;r.setStart(n.startContainer,n.startOffset),r.setEnd(n.endContainer,n.endOffset);var o=Ay.toSlateRange(v,r,{exactMatch:!1,suppressThrow:!1});return am.select(v,o),e.preventDefault(),void e.stopImmediatePropagation()}if(E(),!s&&Ay.hasEditableTarget(v,e.target)&&!Eb(e,i)){var a;if(A.current)return A.current.handleDOMBeforeInput(e);T.flush(),D.flush();var{selection:l}=v,{inputType:c}=e,u=e.dataTransfer||e.data||void 0,d="insertCompositionText"===c||"deleteCompositionText"===c;if(d&&Ay.isComposing(v))return;var p=!1;if("insertText"===c&&l&&Mf.isCollapsed(l)&&e.data&&1===e.data.length&&/[a-z ]/i.test(e.data)&&0!==l.anchor.offset&&(p=!0,v.marks&&(p=!1),!Pv.get(v))){var h,f,{anchor:m}=l,[g,y]=Ay.toDOMPoint(v,m),w=null===(h=g.parentElement)||void 0===h?void 0:h.closest("a"),S=Ay.getWindow(v);if(p&&w&&Ay.hasDOMNode(v,w)){var _,k=null==S?void 0:S.document.createTreeWalker(w,NodeFilter.SHOW_TEXT).lastChild();k===g&&(null===(_=k.textContent)||void 0===_?void 0:_.length)===y&&(p=!1)}if(p&&g.parentElement&&"pre"===(null==S||null===(f=S.getComputedStyle(g.parentElement))||void 0===f?void 0:f.whiteSpace)){var z=$f.above(v,{at:m.path,match:e=>Of.isElement(e)&&$f.isBlock(v,e)});z&&Bf.string(z[0]).includes("\t")&&(p=!1)}}if((!c.startsWith("delete")||c.startsWith("deleteBy"))&&!Pv.get(v)){var[P]=e.getTargetRanges();if(P){var I=Ay.toSlateRange(v,P,{exactMatch:!1,suppressThrow:!1});if(!l||!Mf.equals(l,I)){p=!1;var M=!d&&v.selection&&$f.rangeRef(v,v.selection);am.select(v,I),M&&Vv.set(v,M)}}}if(d)return;if(p||e.preventDefault(),l&&Mf.isExpanded(l)&&c.startsWith("delete")){var N=c.endsWith("Backward")?"backward":"forward";return void $f.deleteFragment(v,{direction:N})}switch(c){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":$f.deleteFragment(v);break;case"deleteContent":case"deleteContentForward":$f.deleteForward(v);break;case"deleteContentBackward":$f.deleteBackward(v);break;case"deleteEntireSoftLine":$f.deleteBackward(v,{unit:"line"}),$f.deleteForward(v,{unit:"line"});break;case"deleteHardLineBackward":$f.deleteBackward(v,{unit:"block"});break;case"deleteSoftLineBackward":$f.deleteBackward(v,{unit:"line"});break;case"deleteHardLineForward":$f.deleteForward(v,{unit:"block"});break;case"deleteSoftLineForward":$f.deleteForward(v,{unit:"line"});break;case"deleteWordBackward":$f.deleteBackward(v,{unit:"word"});break;case"deleteWordForward":$f.deleteForward(v,{unit:"word"});break;case"insertLineBreak":$f.insertSoftBreak(v);break;case"insertParagraph":$f.insertBreak(v);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":"insertFromComposition"===c&&Ay.isComposing(v)&&(b(!1),Lv.set(v,!1)),"DataTransfer"===(null==u?void 0:u.constructor.name)?Ay.insertData(v,u):"string"==typeof u&&(p?x.current.push((()=>$f.insertText(v,u))):$f.insertText(v,u))}var O=null===(a=Vv.get(v))||void 0===a?void 0:a.unref();Vv.delete(v),!O||v.selection&&Mf.equals(v.selection,O)||am.select(v,O)}}),[v,D,E,i,s,T]),M=(0,l.useCallback)((e=>{null==e?(D.cancel(),T.cancel(),Iv.delete(v),Ov.delete(v),w.current&&Sv&&w.current.removeEventListener("beforeinput",I)):Sv&&e.addEventListener("beforeinput",I),w.current=e,"function"==typeof t?t(e):t&&(t.current=e)}),[D,T,v,I,t]);My((()=>{var e=Ay.getWindow(v),t=e=>{var{target:t}=e,n=t instanceof HTMLElement?t:null,r=null==n?void 0:n.tagName;"INPUT"!==r&&"TEXTAREA"!==r&&T()};e.document.addEventListener("selectionchange",t);var n=()=>{P.isDraggingInternally=!1};return e.document.addEventListener("dragend",n),e.document.addEventListener("drop",n),()=>{e.document.removeEventListener("selectionchange",t),e.document.removeEventListener("dragend",n),e.document.removeEventListener("drop",n)}}),[T,P]);var N=o([v,[]]),O=a&&1===v.children.length&&1===Array.from(Bf.texts(v)).length&&""===Bf.string(v)&&!y,R=(0,l.useCallback)((e=>{var t;e&&O?_(null===(t=e.getBoundingClientRect())||void 0===t?void 0:t.height):_(void 0)}),[O]);if(O){var j=$f.start(v,[]);N.push({[Yv]:!0,placeholder:a,onPlaceholderResize:R,anchor:j,focus:j})}var{marks:F}=v;if(P.hasMarkPlaceholder=!1,v.selection&&Mf.isCollapsed(v.selection)&&F){var{anchor:B}=v.selection,L=Bf.leaf(v,B.path),V=_y(L,mb);if(!tm.equals(L,F,{loose:!0})){P.hasMarkPlaceholder=!0;var K=Object.fromEntries(Object.keys(V).map((e=>[e,null])));N.push(vb(vb(vb({[Xv]:!0},K),F),{},{anchor:B,focus:B}))}}return(0,l.useEffect)((()=>{setTimeout((()=>{var{selection:e}=v;if(e){var{anchor:t}=e,n=Bf.leaf(v,t.path);if(F&&!tm.equals(n,F,{loose:!0}))return void $v.set(v,F)}$v.delete(v)}))})),l.createElement(ab.Provider,{value:s},l.createElement(hb.Provider,{value:y},l.createElement(rb.Provider,{value:o},l.createElement(pb,{node:w,receivedUserInput:k},l.createElement(f,vb(vb({role:s?void 0:"textbox","aria-multiline":!s||void 0},g),{},{spellCheck:!(!Sv&&xv)&&g.spellCheck,autoCorrect:Sv||!xv?g.autoCorrect:"false",autoCapitalize:Sv||!xv?g.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!s,zindex:-1,suppressContentEditableWarning:!0,ref:M,style:vb(vb({},m?{}:vb({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},S?{minHeight:S}:{})),h),onBeforeInput:(0,l.useCallback)((e=>{if(!Sv&&!s&&!_b(e,g.onBeforeInput)&&Ay.hasSelectableTarget(v,e.target)&&(e.preventDefault(),!Ay.isComposing(v))){var t=e.data;$f.insertText(v,t)}}),[g.onBeforeInput,v,s]),onInput:(0,l.useCallback)((e=>{if(!_b(e,g.onInput))if(A.current)A.current.handleInput();else{for(var t of x.current)t();if(x.current=[],!Ay.isFocused(v)){var n=e.nativeEvent,r=v;if("historyUndo"===n.inputType&&"function"==typeof r.undo)return void r.undo();if("historyRedo"===n.inputType&&"function"==typeof r.redo)return void r.redo()}}}),[g.onInput,v]),onBlur:(0,l.useCallback)((e=>{if(!s&&!P.isUpdatingSelection&&Ay.hasSelectableTarget(v,e.target)&&!_b(e,g.onBlur)){var t=Ay.findDocumentOrShadowRoot(v);if(P.latestElement!==t.activeElement){var{relatedTarget:n}=e;if(!(n===Ay.toDOMNode(v,v)||Jg(n)&&n.hasAttribute("data-slate-spacer"))){if(null!=n&&Qg(n)&&Ay.hasDOMNode(v,n)){var r=Ay.toSlateNode(v,n);if(Of.isElement(r)&&!v.isVoid(r))return}if(hv){var o=av(t);null==o||o.removeAllRanges()}Bv.delete(v)}}}}),[s,P.isUpdatingSelection,P.latestElement,v,g.onBlur]),onClick:(0,l.useCallback)((e=>{if(Ay.hasTarget(v,e.target)&&!_b(e,g.onClick)&&Qg(e.target)){var t=Ay.toSlateNode(v,e.target),n=Ay.findPath(v,t);if(!$f.hasPath(v,n)||Bf.get(v,n)!==t)return;if(3===e.detail&&n.length>=1){var r=n;if(!Of.isElement(t)||!$f.isBlock(v,t)){var o,i=$f.above(v,{match:e=>Of.isElement(e)&&$f.isBlock(v,e),at:n});r=null!==(o=null==i?void 0:i[1])&&void 0!==o?o:n.slice(0,1)}var a=$f.range(v,r);return void am.select(v,a)}if(s)return;var l=$f.start(v,n),c=$f.end(v,n),u=$f.void(v,{at:l}),d=$f.void(v,{at:c});if(u&&d&&wf.equals(u[1],d[1])){var p=$f.range(v,l);am.select(v,p)}}}),[v,g.onClick,s]),onCompositionEnd:(0,l.useCallback)((e=>{if(Ay.hasSelectableTarget(v,e.target)){var t;if(Ay.isComposing(v)&&Promise.resolve().then((()=>{b(!1),Lv.set(v,!1)})),null===(t=A.current)||void 0===t||t.handleCompositionEnd(e),_b(e,g.onCompositionEnd)||dv)return;if(!hv&&!yv&&!cv&&!wv&&!bv&&e.data){var n=$v.get(v);$v.delete(v),void 0!==n&&(Uv.set(v,v.marks),v.marks=n),$f.insertText(v,e.data);var r=Uv.get(v);Uv.delete(v),void 0!==r&&(v.marks=r)}}}),[g.onCompositionEnd,v]),onCompositionUpdate:(0,l.useCallback)((e=>{Ay.hasSelectableTarget(v,e.target)&&!_b(e,g.onCompositionUpdate)&&(Ay.isComposing(v)||(b(!0),Lv.set(v,!0)))}),[g.onCompositionUpdate,v]),onCompositionStart:(0,l.useCallback)((e=>{if(Ay.hasSelectableTarget(v,e.target)){var t;if(null===(t=A.current)||void 0===t||t.handleCompositionStart(e),_b(e,g.onCompositionStart)||dv)return;b(!0);var{selection:n}=v;if(n&&Mf.isExpanded(n))return void $f.deleteFragment(v)}}),[g.onCompositionStart,v]),onCopy:(0,l.useCallback)((e=>{!Ay.hasSelectableTarget(v,e.target)||_b(e,g.onCopy)||Cb(e)||(e.preventDefault(),Ay.setFragmentData(v,e.clipboardData,"copy"))}),[g.onCopy,v]),onCut:(0,l.useCallback)((e=>{if(!s&&Ay.hasSelectableTarget(v,e.target)&&!_b(e,g.onCut)&&!Cb(e)){e.preventDefault(),Ay.setFragmentData(v,e.clipboardData,"cut");var{selection:t}=v;if(t)if(Mf.isExpanded(t))$f.deleteFragment(v);else{var n=Bf.parent(v,t.anchor.path);$f.isVoid(v,n)&&am.delete(v)}}}),[s,v,g.onCut]),onDragOver:(0,l.useCallback)((e=>{if(Ay.hasTarget(v,e.target)&&!_b(e,g.onDragOver)){var t=Ay.toSlateNode(v,e.target);Of.isElement(t)&&$f.isVoid(v,t)&&e.preventDefault()}}),[g.onDragOver,v]),onDragStart:(0,l.useCallback)((e=>{if(!s&&Ay.hasTarget(v,e.target)&&!_b(e,g.onDragStart)){var t=Ay.toSlateNode(v,e.target),n=Ay.findPath(v,t);if(Of.isElement(t)&&$f.isVoid(v,t)||$f.void(v,{at:n,voids:!0})){var r=$f.range(v,n);am.select(v,r)}P.isDraggingInternally=!0,Ay.setFragmentData(v,e.dataTransfer,"drag")}}),[s,v,g.onDragStart,P]),onDrop:(0,l.useCallback)((e=>{if(!s&&Ay.hasTarget(v,e.target)&&!_b(e,g.onDrop)){e.preventDefault();var t=v.selection,n=Ay.findEventRange(v,e),r=e.dataTransfer;am.select(v,n),P.isDraggingInternally&&(!t||Mf.equals(t,n)||$f.void(v,{at:n,voids:!0})||am.delete(v,{at:t})),Ay.insertData(v,r),Ay.isFocused(v)||Ay.focus(v)}}),[s,v,g.onDrop,P]),onDragEnd:(0,l.useCallback)((e=>{!s&&P.isDraggingInternally&&g.onDragEnd&&Ay.hasTarget(v,e.target)&&g.onDragEnd(e)}),[s,P,g,v]),onFocus:(0,l.useCallback)((e=>{if(!s&&!P.isUpdatingSelection&&Ay.hasEditableTarget(v,e.target)&&!_b(e,g.onFocus)){var t=Ay.toDOMNode(v,v),n=Ay.findDocumentOrShadowRoot(v);if(P.latestElement=n.activeElement,pv&&e.target!==t)return void t.focus();Bv.set(v,!0)}}),[s,P,v,g.onFocus]),onKeyDown:(0,l.useCallback)((e=>{if(!s&&Ay.hasEditableTarget(v,e.target)){var t;null===(t=A.current)||void 0===t||t.handleKeyDown(e);var{nativeEvent:n}=e;if(Ay.isComposing(v)&&!1===n.isComposing&&(Lv.set(v,!1),b(!1)),_b(e,g.onKeyDown)||Ay.isComposing(v))return;var{selection:r}=v,o=v.children[null!==r?r.focus.path[0]:0],i="rtl"===Og()(Bf.string(o));if(vy.isRedo(n)){e.preventDefault();var a=v;return void("function"==typeof a.redo&&a.redo())}if(vy.isUndo(n)){e.preventDefault();var l=v;return void("function"==typeof l.undo&&l.undo())}if(vy.isMoveLineBackward(n))return e.preventDefault(),void am.move(v,{unit:"line",reverse:!0});if(vy.isMoveLineForward(n))return e.preventDefault(),void am.move(v,{unit:"line"});if(vy.isExtendLineBackward(n))return e.preventDefault(),void am.move(v,{unit:"line",edge:"focus",reverse:!0});if(vy.isExtendLineForward(n))return e.preventDefault(),void am.move(v,{unit:"line",edge:"focus"});if(vy.isMoveBackward(n))return e.preventDefault(),void(r&&Mf.isCollapsed(r)?am.move(v,{reverse:!i}):am.collapse(v,{edge:i?"end":"start"}));if(vy.isMoveForward(n))return e.preventDefault(),void(r&&Mf.isCollapsed(r)?am.move(v,{reverse:i}):am.collapse(v,{edge:i?"start":"end"}));if(vy.isMoveWordBackward(n))return e.preventDefault(),r&&Mf.isExpanded(r)&&am.collapse(v,{edge:"focus"}),void am.move(v,{unit:"word",reverse:!i});if(vy.isMoveWordForward(n))return e.preventDefault(),r&&Mf.isExpanded(r)&&am.collapse(v,{edge:"focus"}),void am.move(v,{unit:"word",reverse:i});if(Sv){if((mv||hv)&&r&&(vy.isDeleteBackward(n)||vy.isDeleteForward(n))&&Mf.isCollapsed(r)){var c=Bf.parent(v,r.anchor.path);if(Of.isElement(c)&&$f.isVoid(v,c)&&($f.isInline(v,c)||$f.isBlock(v,c)))return e.preventDefault(),void $f.deleteBackward(v,{unit:"block"})}}else{if(vy.isBold(n)||vy.isItalic(n)||vy.isTransposeCharacter(n))return void e.preventDefault();if(vy.isSoftBreak(n))return e.preventDefault(),void $f.insertSoftBreak(v);if(vy.isSplitBlock(n))return e.preventDefault(),void $f.insertBreak(v);if(vy.isDeleteBackward(n))return e.preventDefault(),void(r&&Mf.isExpanded(r)?$f.deleteFragment(v,{direction:"backward"}):$f.deleteBackward(v));if(vy.isDeleteForward(n))return e.preventDefault(),void(r&&Mf.isExpanded(r)?$f.deleteFragment(v,{direction:"forward"}):$f.deleteForward(v));if(vy.isDeleteLineBackward(n))return e.preventDefault(),void(r&&Mf.isExpanded(r)?$f.deleteFragment(v,{direction:"backward"}):$f.deleteBackward(v,{unit:"line"}));if(vy.isDeleteLineForward(n))return e.preventDefault(),void(r&&Mf.isExpanded(r)?$f.deleteFragment(v,{direction:"forward"}):$f.deleteForward(v,{unit:"line"}));if(vy.isDeleteWordBackward(n))return e.preventDefault(),void(r&&Mf.isExpanded(r)?$f.deleteFragment(v,{direction:"backward"}):$f.deleteBackward(v,{unit:"word"}));if(vy.isDeleteWordForward(n))return e.preventDefault(),void(r&&Mf.isExpanded(r)?$f.deleteFragment(v,{direction:"forward"}):$f.deleteForward(v,{unit:"word"}))}}}),[s,v,g.onKeyDown]),onPaste:(0,l.useCallback)((e=>{s||!Ay.hasEditableTarget(v,e.target)||_b(e,g.onPaste)||(!Sv||(e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length)(e.nativeEvent)||hv)&&(e.preventDefault(),Ay.insertData(v,e.clipboardData))}),[s,v,g.onPaste])}),l.createElement(yb,{decorations:N,node:v,renderElement:c,renderPlaceholder:d,renderLeaf:u,selection:v.selection}))))))})),wb=e=>{var{attributes:t,children:n}=e;return l.createElement("span",vb({},t),n,dv&&l.createElement("br",null))},xb=()=>[],Sb=(e,t)=>{if(t.getBoundingClientRect&&(!e.selection||e.selection&&Mf.isCollapsed(e.selection))){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),Wg(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},_b=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.isDefaultPrevented()||e.isPropagationStopped()},Cb=e=>Qg(e.target)&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement),Eb=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.defaultPrevented},kb=(0,l.createContext)(!1);var zb=(0,l.createContext)({});var Pb=parseInt(l.version.split(".")[0],10),Ab=["editor","children","onChange","onSelectionChange","onValueChange","initialValue"],Db=e=>{var{editor:t,children:n,onChange:r,onSelectionChange:o,onValueChange:i,initialValue:a}=e,s=_y(e,Ab),[c,u]=l.useState((()=>{if(!Bf.isNodeList(a))throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(Zf.stringify(a)));if(!$f.isEditor(t))throw new Error("[Slate] editor is invalid! You passed: ".concat(Zf.stringify(t)));return t.children=a,Object.assign(t,s),{v:0,editor:t}})),{selectorContext:d,onChange:p}=function(e){var t=(0,l.useRef)([]).current,n=(0,l.useRef)({editor:e}).current,r=(0,l.useCallback)((e=>{n.editor=e,t.forEach((t=>t(e)))}),[t,n]);return{selectorContext:(0,l.useMemo)((()=>({getSlate:()=>n.editor,addEventListener:e=>(t.push(e),()=>{t.splice(t.indexOf(e),1)})})),[t,n]),onChange:r}}(t),h=(0,l.useCallback)((e=>{var n;if(r&&r(t.children),"set_selection"===(null==e||null===(n=e.operation)||void 0===n?void 0:n.type))null==o||o(t.selection);else null==i||i(t.children);u((e=>({v:e.v+1,editor:t}))),p(t)}),[t,p,r,o,i]);(0,l.useEffect)((()=>(Kv.set(t,h),()=>{Kv.set(t,(()=>{}))})),[t,h]);var[f,m]=(0,l.useState)(Ay.isFocused(t));return(0,l.useEffect)((()=>{m(Ay.isFocused(t))}),[t]),My((()=>{var e=()=>m(Ay.isFocused(t));return Pb>=17?(document.addEventListener("focusin",e),document.addEventListener("focusout",e),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",e)}):(document.addEventListener("focus",e,!0),document.addEventListener("blur",e,!0),()=>{document.removeEventListener("focus",e,!0),document.removeEventListener("blur",e,!0)})}),[]),l.createElement(zb.Provider,{value:d},l.createElement(lb.Provider,{value:c},l.createElement(zy.Provider,{value:c.editor},l.createElement(kb.Provider,{value:f},n))))},Tb=(e,t)=>{try{return Ay.findPath(e,t)}catch(e){}},Ib=(e,t)=>{t&&Gl(e,(()=>{hc(e),Xl(e,t)})),Ay.focus(e)};var Mb=n(90179),Nb=n.n(Mb),Ob=Object.prototype.hasOwnProperty;function Rb(e,t,n){for(n of e.keys())if(jb(n,t))return n}function jb(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&jb(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((o=r)&&"object"==typeof o&&!(o=Rb(t,o)))return!1;if(!t.has(o))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((o=r[0])&&"object"==typeof o&&!(o=Rb(t,o)))return!1;if(!jb(r[1],t.get(o)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"==typeof e){for(n in r=0,e){if(Ob.call(e,n)&&++r&&!Ob.call(t,n))return!1;if(!(n in t)||!jb(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}function Fb(e){const t=l.useRef(e),n=l.useRef(0);return jb(e,t.current)||(t.current=e,n.current+=1),l.useMemo((()=>t.current),[n.current])}function Bb(e,t){return l.useMemo(e,Fb(t))}const Lb=e=>e,Vb=e=>({_tag:"Left",value:e}),Kb=e=>({_tag:"Right",value:e}),Hb={dimap:(e,t,n)=>r=>t(n(e(r))),first:e=>([t,n])=>[e(t),n],right:e=>t=>"Left"===t._tag?t:Kb(e(t.value)),wander:e=>t=>t.map(e)},$b={empty:()=>{},foldMap:(e,t)=>{for(let n=0;n<t.length;n++){const r=e(t[n]);if(null!=r)return r}}},Ub={empty:()=>[],foldMap:(e,t)=>{let n=[];return t.forEach((t=>{n=n.concat(e(t))})),n}},Wb=e=>({dimap:(e,t,n)=>t=>n(e(t)),first:e=>([t,n])=>e(t),right:t=>n=>"Left"===n._tag?e.empty():t(n.value),wander:t=>n=>e.foldMap(t,n)}),qb={Equivalence:{Equivalence:"Equivalence",Iso:"Iso",Lens:"Lens",Prism:"Prism",Traversal:"Traversal",Getter:"Getter",AffineFold:"AffineFold",Fold:"Fold",Setter:"Setter"},Iso:{Equivalence:"Iso",Iso:"Iso",Lens:"Lens",Prism:"Prism",Traversal:"Traversal",Getter:"Getter",AffineFold:"AffineFold",Fold:"Fold",Setter:"Setter"},Lens:{Equivalence:"Lens",Iso:"Lens",Lens:"Lens",Prism:"Prism",Traversal:"Traversal",Getter:"Getter",AffineFold:"AffineFold",Fold:"Fold",Setter:"Setter"},Prism:{Equivalence:"Prism",Iso:"Prism",Lens:"Prism",Prism:"Prism",Traversal:"Traversal",Getter:"AffineFold",AffineFold:"AffineFold",Fold:"Fold",Setter:"Setter"},Traversal:{Equivalence:"Traversal",Iso:"Traversal",Lens:"Traversal",Prism:"Traversal",Traversal:"Traversal",Getter:"Fold",AffineFold:"Fold",Fold:"Fold",Setter:"Setter"},Getter:{Equivalence:"Getter",Iso:"Getter",Lens:"Getter",Prism:"AffineFold",Traversal:"Fold",Getter:"Getter",AffineFold:"AffineFold",Fold:"Fold",Setter:void 0},AffineFold:{Equivalence:"AffineFold",Iso:"AffineFold",Lens:"AffineFold",Prism:"AffineFold",Traversal:"Fold",Getter:"AffineFold",AffineFold:"AffineFold",Fold:"Fold",Setter:void 0},Fold:{Equivalence:"Fold",Iso:"Fold",Lens:"Fold",Prism:"Fold",Traversal:"Fold",Getter:"Fold",AffineFold:"Fold",Fold:"Fold",Setter:void 0},Setter:{Equivalence:void 0,Iso:void 0,Lens:void 0,Prism:void 0,Traversal:void 0,Getter:void 0,AffineFold:void 0,Fold:void 0,Setter:void 0}},Gb=(e,t)=>{const n=t;return n._tag=e,n},Zb=e=>(e._removable=!0,e);function Yb(e,t,n){if(2===arguments.length){const n=(n,r)=>e(n,t(n,r));return n._tag=qb[e._tag][t._tag],n._removable=t._removable||!1,n}{const r=qb[e._tag][t._tag],o=(r,o)=>e(r,t(r,n(r,o)));return o._tag=qb[r][n._tag],o._removable=n._removable||!1,o}}const Xb=Gb("Equivalence",((e,t)=>t)),Jb=(e,t)=>Gb("Iso",((n,r)=>n.dimap(e,t,r))),Qb=(e,t)=>Gb("Lens",((n,r)=>n.dimap((t=>[e(t),t]),t,n.first(r)))),ew=(e,t)=>Gb("Prism",((n,r)=>n.dimap(e,(e=>((e,t,n)=>"Left"===n._tag?e(n.value):t(n.value))(Lb,t,e)),n.right(r)))),tw=Gb("Traversal",((e,t)=>e.dimap(Lb,Lb,e.wander(t)))),nw=(e,t,n)=>e(Hb,t)(n),rw=(e,t,n)=>e(Hb,(()=>t))(n),ow=(e,t)=>e(Wb(Ub),(e=>[e]))(t),iw=Jb((e=>e.map(((e,t)=>[t,e]))),(e=>{const t=[...e].sort(((e,t)=>e[0]-t[0])),n=[];for(let e=0;e<t.length;++e)e!==t.length-1&&t[e][0]===t[e+1][0]||n.push(t[e][1]);return n})),aw=e=>Qb((t=>t[e]),(([t,n])=>Object.assign(Object.assign({},n),{[e]:t}))),sw=e=>Qb((t=>t[e]),(([t,n])=>{const r=n.slice();return r[e]=t,r})),lw=sw(0),cw=e=>ew((t=>e(t)?Kb(t):Vb(t)),Lb),uw=Symbol("__no_match__"),dw=cw((e=>e!==uw)),pw=Symbol("__remove_me__"),hw=e=>Zb(Yb(Qb((t=>0<=e&&e<t.length?t[e]:uw),(([t,n])=>{if(t===uw)return n;if(t===pw)return"string"==typeof n?n.substring(0,e)+n.substring(e+1):[...n.slice(0,e),...n.slice(e+1)];if("string"==typeof n)return 0===e?t+n.substring(1):e===n.length?n.substring(0,e-1)+t:n.substring(0,e)+t+n.substring(e+1);{const r=n.slice();return r[e]=t,r}})),dw)),fw=ew((e=>void 0===e?Vb(void 0):Kb(e)),Lb),mw=Qb((e=>{}),(([e,t])=>void 0===e?t:[e,...t])),gw=Qb((e=>{}),(([e,t])=>void 0===e?t:[...t,e])),vw=Yb(Jb((e=>e.split("")),(e=>e.join(""))),tw),yw=Yb(Jb((e=>e.split(/\b/)),(e=>e.join(""))),tw,cw((e=>!/\s+/.test(e))));class bw{constructor(e){this._ref=e}get _tag(){return this._ref._tag}get _removable(){return this._ref._removable}compose(e){return new bw(Yb(this._ref,e._ref))}iso(e,t){return new bw(Yb(this._ref,Jb(e,t)))}lens(e,t){return new bw(Yb(this._ref,Qb(e,(([e,n])=>t(n,e)))))}indexed(){return new bw(Yb(this._ref,iw))}prop(e){return new bw(Yb(this._ref,aw(e)))}path(...e){return 1===e.length&&(e=e[0].split(".")),new bw(e.reduce(((e,t)=>Yb(e,aw(t))),this._ref))}pick(e){return new bw(Yb(this._ref,(e=>Qb((t=>{const n={};for(const r of e)n[r]=t[r];return n}),(([t,n])=>{const r=Object.assign({},n);for(const t of e)delete r[t];return Object.assign(r,t)})))(e)))}nth(e){return new bw(Yb(this._ref,sw(e)))}filter(e){return new bw(Yb(this._ref,(e=>Yb(Qb((t=>{const n=t.map(((t,n)=>e(t)?n:null)).filter((e=>null!=e));return[n.map((e=>t[e])),n]}),(([[e,t],n])=>{const r=n.length,o=e.length;let i=0,a=0,s=0;const l=[];for(;i<r;)t[a]===i?(++a,s<o&&(l.push(e[s]),++s)):l.push(n[i]),++i;for(;s<o;)l.push(e[s++]);return l})),lw))(e)))}valueOr(e){return new bw(Yb(this._ref,(e=>Qb((t=>void 0===t?e:t),(([e,t])=>e)))(e)))}partsOf(e){const t="function"==typeof e?e(ww):e;return new bw(Yb(this._ref,(e=>Yb(Qb((t=>{const n=ow(e,t);return[n,n.length]}),(([[t,n],r])=>{if(t.length!==n)throw new Error("cannot add/remove elements through partsOf");let o=0;return nw(e,(()=>t[o++]),r)})),lw))(t._ref)))}reread(e){return new bw(Yb(this._ref,(e=>Qb((t=>e(t)),(([e,t])=>e)))(e)))}rewrite(e){return new bw(Yb(this._ref,(e=>Qb((e=>e),(([t,n])=>e(t))))(e)))}optional(){return new bw(Yb(this._ref,fw))}guard_(){return e=>this.guard(e)}guard(e){return new bw(Yb(this._ref,(e=>ew((t=>e(t)?Kb(t):Vb(t)),Lb))(e)))}at(e){return new bw(Yb(this._ref,hw(e)))}head(){return new bw(Yb(this._ref,hw(0)))}index(e){return new bw(Yb(this._ref,hw(e)))}find(e){return new bw(Yb(this._ref,(e=>Zb(Yb(Qb((t=>{const n=t.findIndex(e);return-1===n?[uw,-1]:[t[n],n]}),(([[e,t],n])=>{if(e===uw)return n;if(e===pw)return[...n.slice(0,t),...n.slice(t+1)];const r=n.slice();return r[t]=e,r})),lw,dw)))(e)))}elems(){return new bw(Yb(this._ref,tw))}to(e){return new bw(Yb(this._ref,(e=>Gb("Getter",((t,n)=>t.dimap(e,Lb,n))))(e)))}when(e){return new bw(Yb(this._ref,cw(e)))}chars(){return new bw(Yb(this._ref,vw))}words(){return new bw(Yb(this._ref,yw))}prependTo(){return new bw(Yb(this._ref,mw))}appendTo(){return new bw(Yb(this._ref,gw))}}const ww=new bw(Xb);function xw(e){return t=>((e,t)=>e(Wb({}),Lb)(t))(e._ref,t)}function Sw(e){return t=>((e,t)=>e(Wb($b),Lb)(t))(e._ref,t)}const _w=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),Cw=new WeakMap;function Ew(e,t){return((n,r,o)=>{const i=_w((()=>new WeakMap),Cw,r);return _w((()=>{const n=t(ww);return Tm((t=>{const r=t(e);return r instanceof Promise?r.then((e=>kw(n,e))):kw(n,r)}),((t,r,o)=>{const i="function"==typeof o?function(e){return t=>n=>nw(e._ref,t,n)}(n)(o):function(e){return t=>n=>rw(e._ref,t,n)}(n)(o),a=t(e);return r(e,a instanceof Promise?a.then(i):i(a))}))}),i,o)})(0,e,t)}const kw=(e,t)=>"Traversal"===e._tag?function(e){return t=>ow(e._ref,t)}(e)(t):"Prism"===e._tag?Sw(e)(t):xw(e)(t);var zw=Object.defineProperty,Pw=Object.defineProperties,Aw=Object.getOwnPropertyDescriptors,Dw=Object.getOwnPropertySymbols,Tw=Object.prototype.hasOwnProperty,Iw=Object.prototype.propertyIsEnumerable,Mw=(e,t,n)=>t in e?zw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nw=(e,t)=>{for(var n in t||(t={}))Tw.call(t,n)&&Mw(e,n,t[n]);if(Dw)for(var n of Dw(t))Iw.call(t,n)&&Mw(e,n,t[n]);return e},Ow=(e,t)=>Pw(e,Aw(t)),Rw=(e,t)=>{var n={};for(var r in e)Tw.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Dw)for(var r of Dw(e))t.indexOf(r)<0&&Iw.call(e,r)&&(n[r]=e[r]);return n},jw=["readOnly","plugins","onChange","decorate","renderElement","renderLeaf"],{ElementProvider:Fw,useElementStore:Bw}=zg({element:null},{name:"element"}),Lw=Kp("event-editor")({blur:null,focus:null,last:null}),Vw=Lw.set,Kw=Lw.get,Hw=(Lw.use,(e,t={},n=!1)=>{var r;if(t[e.key]){const r=t[e.key],{plugins:o,then:i}=r,a=Rw(r,["plugins","then"]);e=kc()(a,e),n||null==o||o.forEach((t=>{e.plugins||(e.plugins=[]);const n=e.plugins.find((e=>e.key===t.key));n||e.plugins.push(t)}))}e.plugins&&(e.plugins=e.plugins.map((e=>Hw(e,t,!0))));const{then:o}=e;return o?(void 0===e._thenReplaced&&(e._thenReplaced=0),e._thenReplaced<3&&(e.then=(n,r)=>{const i=Nw({key:e.key},o(n,r));return kc()(Hw(i,t),i)},e._thenReplaced++)):(null==(r=t[e.key])?void 0:r.then)&&(e.then=t[e.key].then),e}),$w=(e,{components:t,overrideByKey:n}={})=>{let r={};return n&&(r=Cc()(n)),t&&Object.keys(t).forEach((e=>{r[e]||(r[e]={}),r[e].component=t[e]})),Object.keys(r).length>0?e.map((e=>Hw(e,r))):e},Uw=e=>{((e,t)=>{Zu(e,Nw({at:[],nodes:e.childrenFactory()},t))})(e),e.history.undos=[],e.history.redos=[],e.operations=[]},Ww="p",qw=(e,t)=>{var n;return null!=(n=(e=>{var t;return null!=(t=null==e?void 0:e.pluginsByKey)?t:{}})(e)[t])?n:{key:t}},Gw=(e,t)=>{var n,r;return null!=(r=null!=(n=qw(e,t).type)?n:t)?r:""},Zw=e=>(t,n={})=>(n[e.key]=t,Hw(Nw({},e),n)),Yw="deserializeAst",Xw=Zw({editor:{insertData:{format:"application/x-slate-fragment",getFragment:({data:e})=>{const t=decodeURIComponent(window.atob(e));let n;try{n=JSON.parse(t)}catch(e){}return vu()(n)}}},key:Yw}),Jw=(e,t)=>{var n;const{selection:r}=e;if(!r)return!1;const o=null==(n=((e,t={})=>$l(e,Ow(Nw({},t),{block:!0})))(e,t))?void 0:n[1];return!!o&&(ac(e,r.focus,o)||pc(e.selection)&&ac(e,r.anchor,o))},Qw="editorProtocol",ex=Zw({key:Qw,withOverrides:e=>{const{deleteBackward:t,deleteForward:n,deleteFragment:r}=e,o=()=>{Jw(e)&&(e=>{const t=nc(e);t&&Object.keys(t).forEach((t=>{lc(e,t)}))})(e)};return e.deleteBackward=e=>{t(e),o()},e.deleteForward=e=>{n(e),o()},e.deleteFragment=e=>{r(e),o()},e}}),tx=Zw({key:"history",withOverrides:e=>Kd(e)}),nx="inline-void",rx=Zw({key:nx,withOverrides:e=>{const{isInline:t,isVoid:n,markableVoid:r}=e,o=[],i=[],a=[];return e.plugins.forEach((e=>{e.isInline&&i.push(e.type),e.isVoid&&o.push(e.type),e.isMarkableVoid&&a.push(e.type)})),e.isInline=e=>!!i.includes(e.type)||t(e),e.isVoid=e=>!!o.includes(e.type)||n(e),e.markableVoid=e=>!!a.includes(e.type)||r(e),e}}),ox=(e,t)=>{const n=[];return[...e.plugins].reverse().forEach((e=>{var r;const o=null==(r=e.inject.pluginsByKey)?void 0:r[t.key];o&&n.push(o)})),[t,...n]},ix="insertData",ax=Zw({key:ix,withOverrides:e=>{const{insertData:t}=e;return e.insertData=n=>{const r=[...e.plugins].reverse().some((t=>{const r=t.editor.insertData;if(!r)return!1;const o=ox(e,t),{format:i,getFragment:a}=r;if(!i)return!1;let s=n.getData(i);if(!s)return;if(!((e,{data:t,dataTransfer:n})=>e.every((e=>{var r,o;const i=null==(o=null==(r=e.editor)?void 0:r.insertData)?void 0:o.query;return!i||i({data:t,dataTransfer:n})})))(o,{data:s,dataTransfer:n}))return!1;s=((e,{data:t,dataTransfer:n})=>(e.forEach((e=>{var r,o;const i=null==(o=null==(r=e.editor)?void 0:r.insertData)?void 0:o.transformData;i&&(t=i(t,{dataTransfer:n}))})),t))(o,{data:s,dataTransfer:n});let l=null==a?void 0:a({data:s,dataTransfer:n});return!!(null==l?void 0:l.length)&&(l=((e,t)=>{var n=t,{fragment:r}=n,o=Rw(n,["fragment"]);return e.forEach((e=>{var t,n;const i=null==(n=null==(t=e.editor)?void 0:t.insertData)?void 0:n.transformFragment;i&&(r=i(r,o))})),r})(o,{data:s,dataTransfer:n,fragment:l}),0!==l.length&&(((e,t,n)=>{var r=n,{fragment:o}=r,i=Rw(r,["fragment"]);Gl(e,(()=>{t.some((e=>{var t,n,r;return!0===(null==(r=null==(n=null==(t=e.editor)?void 0:t.insertData)?void 0:n.preInsert)?void 0:r.call(n,o,i))})),e.insertFragment(o)}))})(e,o,{data:s,dataTransfer:n,fragment:l}),!0))}));r||t(n)},e}}),sx="length",lx=Zw({key:sx,withOverrides:(e,{options:t})=>{const{apply:n}=e;return e.apply=r=>{Gl(e,(()=>{if(n(r),t.maxLength){const n=tc(e,[]).length;if(n>t.maxLength){const r=n-t.maxLength;e.delete({distance:r,reverse:!0,unit:"character"})}}}))},e}}),cx=({apply:e,node:t,path:n=[],query:r,source:o})=>{mc([t,n],r)&&e(t,o instanceof Function?o():o),uc(t)&&t.children.forEach(((t,i)=>{cx({apply:e,node:t,path:n.concat([i]),query:r,source:o})}))},ux=(e,t)=>{const n=Nw({},t),{then:r}=n;if(r){delete n.then;const{plugins:t}=n,o=ux(e,kc()(r(e,n),n));if(t&&o.plugins){const e=Gd()(Wd()(t,"key"),Wd()(o.plugins,"key"));o.plugins=Yd()(e)}return o}return n},dx=(e,t)=>{t&&t.forEach((t=>{let n=(e=>(void 0===e.type&&(e.type=e.key),e.options||(e.options={}),e.inject||(e.inject={}),e.editor||(e.editor={}),e))(t);if(n=ux(e,n),!1!==n.enabled){if(e.pluginsByKey[n.key]){const t=e.plugins.indexOf(e.pluginsByKey[n.key]),r=kc()(n,e.pluginsByKey[n.key]);t>=0&&(e.plugins[t]=r),e.pluginsByKey[n.key]=r}else e.plugins.push(n),e.pluginsByKey[n.key]=n;dx(e,n.plugins)}}))},px=e=>`slate-${e}`,hx=({attributes:e,dangerouslyAllowAttributes:t,nodeProps:n,props:r,type:o})=>{var i;let a={};r&&(a=null!=(i="function"==typeof r?r(n):r)?i:{}),!a.nodeProps&&e&&(a.nodeProps=Qd()(e,null!=t?t:[])),(n=Nw(Nw({},n),a)).nodeProps&&Object.keys(n.nodeProps).forEach((e=>{var t,r;void 0===(null==(t=n.nodeProps)?void 0:t[e])&&(null==(r=n.nodeProps)||delete r[e])}));const{className:s}=n;return Ow(Nw({},n),{className:(0,Xd.clsx)(px(o),s)})},fx=(e,t,n)=>(e=((e,t,n)=>{const r=((e,t)=>e.some(((e,n,r)=>{const o=r[n-1];return 0!==n&&t(e)!==t(o)})))(e,t),{fragment:o}=e.reduce(((e,o)=>{if(r&&t(o)){let t=e.precedingBlock;t||(t=n(),e.precedingBlock=t,e.fragment.push(t)),t.children.push(o)}else e.fragment.push(o),e.precedingBlock=null;return e}),{fragment:[],precedingBlock:null});return o})(e=(e=>0===e.length?[{text:""}]:e)(e),t,n),e=e.map((e=>Ll(e)?Ow(Nw({},e),{children:fx(e.children,t,n)}):e)),e),mx=(e,{descendants:t})=>{const n=(e=>t=>Zl(t)||Ll(t)&&e.isInline(t))(e),r=Gw(e,Ww),o=(i=r,()=>({children:[],type:i}));var i;return fx(t,n,o)},gx=(e,t)=>{const n=e.plugins.flatMap((t=>{var n,r;return null!=(r=null==(n=t.decorate)?void 0:n.call(t,e,t))?r:[]}));if(t&&n.push(t),0!==n.length)return e=>{let t=[];return n.forEach((n=>{var r;(null==(r=n(e))?void 0:r.length)&&(t=[...t,...r])})),t}},vx=(e,t)=>{if(!t)return!1;const n=t(e);return null!=n?n:e.isPropagationStopped()},yx=(e,{editableProps:t,handlerKey:n})=>{let r=[];r=e.plugins.flatMap((t=>{var r,o,i;return null!=(i=null==(o=null==(r=t.handlers)?void 0:r[n])?void 0:o.call(r,e,t))?i:[]}));const o=null==t?void 0:t[n];if(0!==r.length||o)return e=>{const t=e instanceof Event?(e=>{let t=!1;return Ow(Nw({},e),{bubbles:e.bubbles,cancelable:e.cancelable,currentTarget:e.currentTarget,defaultPrevented:e.defaultPrevented,eventPhase:e.eventPhase,isDefaultPrevented:()=>e.defaultPrevented,isPropagationStopped:()=>t,isTrusted:e.isTrusted,nativeEvent:e,persist:()=>{throw new Error("persist is not implemented for synthetic events created using convertDomEventToSyntheticEvent")},preventDefault:()=>e.preventDefault(),stopPropagation:()=>{t=!0,e.stopPropagation()},target:e.target,timeStamp:e.timeStamp,type:e.type})})(e):e;return!!r.some((e=>vx(t,e)))||vx(t,o)}},bx=(e,t)=>(e.plugins.forEach((e=>{if(e.inject.props){const n=((e,{inject:{props:t},key:n},r)=>{var o,i,a,s;const{className:l,element:c,style:u,text:d}=r,p=null!=c?c:d;if(!p)return;if(!t)return;const{classNames:h,defaultNodeValue:f,nodeKey:m=n,query:g,styleKey:v=m,transformClassName:y,transformNodeValue:b,transformProps:w,transformStyle:x,validNodeValues:S,validTypes:_}=t,C=null==g?void 0:g(t,r);if(!C&&_&&Ll(p)&&p.type&&!_.includes(p.type))return;const E=p[m];if(!C&&(!Pu(E)||S&&!S.includes(E)||E===f))return;const k=Ow(Nw({},r),{nodeValue:E}),z=null!=(o=null==b?void 0:b(k))?o:E;k.value=z;let P={};return c&&(P.className=(0,Xd.clsx)(l,`slate-${m}-${E}`)),((null==h?void 0:h[E])||y)&&(P.className=null!=(i=null==y?void 0:y(k))?i:(0,Xd.clsx)(l,null==h?void 0:h[z])),v&&(P.style=null!=(a=null==x?void 0:x(k))?a:Ow(Nw({},u),{[v]:z})),w&&(P=null!=(s=w(k,P))?s:P),P})(0,e,t);n&&(t=Nw(Nw({},t),n))}})),Ow(Nw({},t),{editor:e})),wx={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",insertSoftBreak:"shift+enter",italic:"mod+i",moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",splitBlock:"enter",tab:"tab",undo:"mod+z",untab:"shift+tab"},xx={deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},Sx={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},_x=e=>{const t=wx[e],n=xx[e],r=Sx[e],o=t&&(0,np.Sn)(t),i=n&&(0,np.Sn)(n),a=r&&(0,np.Sn)(r);return e=>!!(null==o?void 0:o(e))||(!(!wu||!(null==i?void 0:i(e)))||!(wu||!(null==a?void 0:a(e))))},Cx={isBold:_x("bold"),isCompose:_x("compose"),isDeleteBackward:_x("deleteBackward"),isDeleteForward:_x("deleteForward"),isDeleteLineBackward:_x("deleteLineBackward"),isDeleteLineForward:_x("deleteLineForward"),isDeleteWordBackward:_x("deleteWordBackward"),isDeleteWordForward:_x("deleteWordForward"),isExtendBackward:_x("extendBackward"),isExtendForward:_x("extendForward"),isExtendLineBackward:_x("extendLineBackward"),isExtendLineForward:_x("extendLineForward"),isItalic:_x("italic"),isMoveBackward:_x("moveBackward"),isMoveForward:_x("moveForward"),isMoveLineBackward:_x("moveLineBackward"),isMoveLineForward:_x("moveLineForward"),isMoveWordBackward:_x("moveWordBackward"),isMoveWordForward:_x("moveWordForward"),isRedo:_x("redo"),isSoftBreak:_x("insertSoftBreak"),isSplitBlock:_x("splitBlock"),isTransposeCharacter:_x("transposeCharacter"),isUndo:_x("undo")},Ex="nodeFactory",kx=Zw({key:Ex,withOverrides:e=>(e.blockFactory=t=>Nw({children:[{text:""}],type:Gw(e,Ww)},t),e.childrenFactory=()=>[e.blockFactory()],e)}),zx="prevSelection",Px=Zw({handlers:{onKeyDown:e=>t=>{t.persist(),e.currentKeyboardEvent=t}},key:zx,withOverrides:e=>{const{apply:t}=e;return e.apply=n=>{if("set_selection"===n.type){const{properties:r}=n;return e.prevSelection=r,t(n),void(e.currentKeyboardEvent=null)}t(n)},e}}),Ax="focus-editor-event",Dx="blur-editor-event",Tx="event-editor",Ix=Zw({handlers:{onBlur:e=>()=>{Kw.focus()===e.id&&Vw.focus(null),Vw.blur(e.id),document.dispatchEvent(new CustomEvent(Dx,{detail:{id:e.id}}))},onFocus:e=>()=>{Vw.focus(e.id),document.dispatchEvent(new CustomEvent(Ax,{detail:{id:e.id}}))}},key:Tx}),Mx=new Set(["A","ABBR","B","BDI","BDO","BR","CITE","CODE","DATA","DFN","EM","I","KBD","MARK","Q","S","SAMP","SMALL","SPAN","STRONG","SUB","SUP","TIME","U","VAR","WBR","IMG","MAP","TRACK","VIDEO","EMBED","IFRAME","OBJECT","PICTURE","PORTAL","SOURCE","svg","math","CANVAS","DEL","INS","BUTTON","INPUT","LABEL","METER","OUTPUT","PROGRESS","SELECT","TEXTAREA","ACRONYM","BIG","CONTENT","FONT","IMG","MARQUEE","MENUITEM","NOBR","SHADOW","STRIKE","TT"]),Nx=e=>e.nodeType===Node.ELEMENT_NODE,Ox=e=>{if(!Nx(e))return!1;const t=e,n=Mx.has(t.tagName),r=t.style.display.split(" ")[0];return""===r?n:!!r.startsWith("inline")||("inherit"===r&&t.parentElement?Ox(t.parentElement):!!["contents","initial","none","revert","revert-layer","unset"].includes(r)&&n)},Rx=e=>e.nodeType===Node.TEXT_NODE,jx=e=>{if(!Nx(e))return!1;return!Ox(e)},Fx=e=>{e.inlineFormattingContext=null},Bx=(e,t)=>{const n=e.textContent||"",r=""===n.trim();!t.inlineFormattingContext&&r||(e=>{e.inlineFormattingContext?e.inlineFormattingContext.atStart=!1:e.inlineFormattingContext={atStart:!0,lastHasTrailingWhiteSpace:!1}})(t);const{whiteSpaceRule:o}=t,i="normal"!==o?"collapse":!t.inlineFormattingContext||t.inlineFormattingContext.atStart||t.inlineFormattingContext.lastHasTrailingWhiteSpace?"all":"collapse",a="normal"===o?"collapse":(e=>{let t=e;for(;;){if(t.nextSibling)t=t.nextSibling;else{if(t=t.parentElement,t&&jx(t))return!0;t=(null==t?void 0:t.nextSibling)||null}if(!t)return!0;if(jx(t))return!0;if((t.textContent||"").length>0)return!1}})(e)?"single-newline":"collapse",s={normal:!0,pre:!1,"pre-line":!0}[o],l=((e,{shouldCollapseWhiteSpace:t=!0,trimEnd:n="collapse",trimStart:r="collapse",whiteSpaceIncludesNewlines:o=!0}={})=>("all"===r&&(e=e.replace(/^\s+/,"")),"single-newline"===n&&(e=e.replace(/\n$/,"")),t&&(e=o?e.replaceAll(/\s+/g," "):(e=(e=e.replaceAll(/[^\S\n\r]+/g," ")).replaceAll(/^[^\S\n\r]+/gm,"")).replaceAll(/[^\S\n\r]+$/gm,"")),e))(n||"",{shouldCollapseWhiteSpace:s,trimEnd:a,trimStart:i,whiteSpaceIncludesNewlines:"pre-line"!==o});t.inlineFormattingContext&&s&&(t.inlineFormattingContext.lastHasTrailingWhiteSpace=l.endsWith(" ")),e.textContent=l},Lx=(e,t)=>{Nx(e)?Kx(e,t):Rx(e)?Bx(e,t):Vx(e,t)},Vx=(e,t)=>{const n=Array.from(e.childNodes);for(const e of n)Lx(e,t)},Kx=(e,t)=>{const n=Ox(e),r=t.whiteSpaceRule,o=(e=>{const t=e.style.whiteSpace;switch(t){case"normal":case"nowrap":return"normal";case"pre":case"pre-wrap":case"break-spaces":return"pre";case"pre-line":return"pre-line"}return"PRE"===e.tagName?"pre":"initial"===t?"normal":null})(e);o&&(t.whiteSpaceRule=o),n||Fx(t),Vx(e,t),n||Fx(t),t.whiteSpaceRule=r},Hx=(e,t)=>Array.from(t.childNodes).flatMap(qx(e)),$x=(e,t,{deserializeLeaf:n,element:r})=>{var o;const{deserializeHtml:i,isElement:a,isLeaf:s,type:l}=t;if(!i)return;const{attributeNames:c,isElement:u,isLeaf:d,query:p,rules:h}=i;let{getNode:f}=i;const m=u||a,g=d||s;if(!n&&!m)return;if(n&&!g)return;if(h){if(!h.some((({validAttribute:e,validClassName:n,validNodeName:o="*",validStyle:i})=>{var a;if(o){const e=vu()(o);if(e.length>0&&!e.includes(r.nodeName)&&"*"!==o)return!1}if(n&&!r.classList.contains(n))return!1;if(i)for(const[e,n]of Object.entries(i)){if(!vu()(n).includes(r.style[e])&&"*"!==n)return;if("*"===n&&!r.style[e])return;const o=null==(a=t.inject.props)?void 0:a.defaultNodeValue;if(o&&o===r.style[e])return!1}if(e)if("string"==typeof e){if(!r.getAttributeNames().includes(e))return!1}else for(const[t,n]of Object.entries(e)){const e=vu()(n),o=r.getAttribute(t);if(!Pu(o)||!e.includes(o))return!1}return!0})))return}if(p&&!p(r))return;if(!f)if(m)f=()=>({type:l});else{if(!g)return;f=()=>({[l]:!0})}let v=null!=(o=f(r,{}))?o:{};if(0===Object.keys(v).length)return;if(ox(e,t).forEach((e=>{var t,n;const o=null==(n=null==(t=e.deserializeHtml)?void 0:t.getNode)?void 0:n.call(t,r,v);o&&(v=Nw(Nw({},v),o))})),c){const e={},t=r.getAttributeNames();for(const n of t)c.includes(n)&&(e[n]=r.getAttribute(n));Object.keys(e).length>0&&(v.attributes=e)}return Ow(Nw({},i),{node:v})},Ux=(e,t)=>{var n;const r=((e,t)=>{let n;return[...e.plugins].reverse().some((r=>(n=$x(e,r,{element:t}),!!n))),n})(e,t);if(r){const{node:o,withoutChildren:i}=r;let a=null!=(n=o.children)?n:Hx(e,t);return(0===a.length||i)&&(a=[{text:""}]),(0,Hp.Y)("element",o,a)}},Wx=(e,t)=>{const n=((e,t)=>{let n={};return[...e.plugins].reverse().forEach((r=>{const o=$x(e,r,{deserializeLeaf:!0,element:t});o&&(n=Nw(Nw({},n),o.node))})),n})(e,t);return Hx(e,t).reduce(((e,t)=>{if(!t)return e;if(Ll(t))Object.keys(n).length>0&&(r={node:t,query:{filter:([e])=>Zl(e)},source:n},cx(Ow(Nw({},r),{apply:Gd()}))),e.push(t);else{const r=Nw({},n);Zl(t)&&t.text&&Object.keys(r).forEach((e=>{r[e]&&t[e]&&(r[e]=t[e])})),e.push((0,Hp.Y)("text",r,t))}var r;return e}),[])},qx=e=>t=>{const n=(e=>{if(Rx(e))return e.textContent||""})(t);if(n)return n;if(!Nx(t))return null;const r=(e=>{if("BR"===e.nodeName)return"\n"})(t);if(r)return r;const o=((e,t)=>{if("BODY"===t.nodeName)return(0,Hp.Y)("fragment",{},Hx(e,t))})(e,t);if(o)return o;const i=Ux(e,t);return i||Wx(e,t)},Gx=(e,{collapseWhiteSpace:t=!0,element:n})=>{"string"==typeof n&&(n=(e=>{const t=document.createElement("body");return t.innerHTML=e,t})(n)),t&&(n=(e=>{const t=e.cloneNode(!0);return Kx(t,{inlineFormattingContext:null,whiteSpaceRule:"normal"}),t})(n));const r=((e,t)=>qx(e)(t))(e,n);return mx(e,{descendants:r})},Zx=e=>(new DOMParser).parseFromString(e,"text/html"),Yx="deserializeHtml",Xx=Zw({key:Yx,then:e=>({editor:{insertData:{format:"text/html",getFragment:({data:t})=>{const n=Zx(t);return Gx(e,{element:n.body})}}}})}),Jx=Zw({key:"react",withOverrides:e=>{const t=function(e){var t=e;t=dy(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x-slate-fragment");var{onChange:n}=t;return t.onChange=e=>{(Pb<18?z.unstable_batchedUpdates:e=>e())((()=>{n(e)}))},t}(e),{reset:n}=t;return t.reset=()=>{const t=(e=>Ay.isFocused(e))(e);n(),t&&((e,{edge:t="start"}={})=>{const n="start"===t?ec(e,[]):Jl(e,[]);Ib(e,n)})(e,{edge:"start"})},t}}),Qx=(e,{disableCorePlugins:t,maxLength:n,plugins:r=[]})=>{var o,i,a,s,l,c,u,d,p,h,f,m,g,v,y,b,w,x,S,_,C,E;let k=[];if(!0!==t){const r=t;"object"==typeof r&&(null==r?void 0:r.react)||k.push(null!=(i=null==(o=null==e?void 0:e.pluginsByKey)?void 0:o.react)?i:Jx()),"object"==typeof r&&(null==r?void 0:r.history)||k.push(null!=(s=null==(a=null==e?void 0:e.pluginsByKey)?void 0:a.history)?s:tx()),"object"==typeof r&&(null==r?void 0:r.nodeFactory)||k.push(null!=(c=null==(l=null==e?void 0:e.pluginsByKey)?void 0:l[Ex])?c:kx()),"object"==typeof r&&(null==r?void 0:r.eventEditor)||k.push(null!=(d=null==(u=null==e?void 0:e.pluginsByKey)?void 0:u[Tx])?d:Ix()),"object"==typeof r&&(null==r?void 0:r.inlineVoid)||k.push(null!=(h=null==(p=null==e?void 0:e.pluginsByKey)?void 0:p[nx])?h:rx()),"object"==typeof r&&(null==r?void 0:r.insertData)||k.push(null!=(m=null==(f=null==e?void 0:e.pluginsByKey)?void 0:f[ix])?m:ax()),"object"==typeof r&&(null==r?void 0:r.selection)||k.push(null!=(v=null==(g=null==e?void 0:e.pluginsByKey)?void 0:g[zx])?v:Px()),"object"==typeof r&&(null==r?void 0:r.length)||!Pu(n)||k.push(null!=(b=null==(y=null==e?void 0:e.pluginsByKey)?void 0:y[sx])?b:lx({options:{maxLength:n}})),"object"==typeof r&&(null==r?void 0:r.deserializeHtml)||k.push(null!=(x=null==(w=null==e?void 0:e.pluginsByKey)?void 0:w[Yx])?x:Xx()),"object"==typeof r&&(null==r?void 0:r.deserializeAst)||k.push(null!=(_=null==(S=null==e?void 0:e.pluginsByKey)?void 0:S[Yw])?_:Xw()),"object"==typeof r&&(null==r?void 0:r.editorProtocol)||k.push(null!=(E=null==(C=null==e?void 0:e.pluginsByKey)?void 0:C[Qw])?E:ex())}k=[...k,...r],e.plugins=[],e.pluginsByKey={},dx(e,k),e.plugins.forEach((t=>{if(t.overrideByKey){const n=e.plugins.map((e=>Hw(e,t.overrideByKey)));e.plugins=[],e.pluginsByKey={},dx(e,n)}}))},eS=e=>()=>{console.warn(`editor.${e} should have been overriden but was not. Please report this issue here: https://github.com/udecode/plate/issues`)},tS=(e={})=>{var t=e,{components:n,editor:r=Fl(),normalizeInitialValue:o,overrideByKey:i,plugins:a=[]}=t,s=Rw(t,["components","editor","normalizeInitialValue","overrideByKey","plugins"]);a=$w(a,{components:n,overrideByKey:i});const l=((e,{disableCorePlugins:t,id:n,maxLength:r,plugins:o=[]}={})=>{let i=e;return i.id=null!=n?n:i.id,i.prevSelection=null,i.isFallback=!1,i.currentKeyboardEvent=null,i.reset=()=>Uw(i),i.redecorate=()=>eS("redecorate"),i.plate={get set(){return eS("plate.set"),null}},i.key||(i.key=Math.random()),Qx(i,{disableCorePlugins:t,maxLength:r,plugins:o}),i.plugins.forEach((e=>{e.withOverrides&&(i=e.withOverrides(i,e))})),i})(r,Nw({plugins:a},s));return o&&sc(l,{force:!0}),l},nS=(e={})=>{const t=tS(e);return t.isFallback=!0,t.apply=()=>{throw new Error("Cannot apply operations on the fallback editor. The fallback editor is used when a hook that depends on the Plate store was unable to locate a valid store. If you are using PlateController, use `useEditorMounted(id?: PlateId)` or `!editor.isFallback` to ensure that a valid Plate store is available before attempting to call operations on the editor.")},t},rS=e=>(t,n,{composing:r}={})=>!!_x(e)(n)&&!!r===(e=>Ay.isComposing(e))(t),oS=Ow(Nw({},Cx),{isTab:rS("tab"),isUntab:rS("untab")}),iS=(e,t)=>{const n=[];return e.plugins.forEach((t=>{t.isElement&&n.push(((e,{component:t,dangerouslyAllowAttributes:n,key:r,props:o,type:i})=>function(a){const{children:s,element:c}=a;if(c.type===i){const u=null!=t?t:nb,d=e.plugins.flatMap((e=>{var t,n;return null!=(n=null==(t=e.inject)?void 0:t.aboveComponent)?n:[]})),p=e.plugins.flatMap((e=>{var t,n;return null!=(n=null==(t=e.inject)?void 0:t.belowComponent)?n:[]}));a=hx({attributes:c.attributes,dangerouslyAllowAttributes:n,nodeProps:a,props:o,type:i});let h=s;p.forEach((e=>{const t=e(Ow(Nw({},a),{key:r}));t&&(h=t(Ow(Nw({},a),{children:h})))}));let f=l.createElement(u,Nw({},a),h);return d.forEach((e=>{const t=e(Ow(Nw({},a),{key:r}));t&&(f=t(Ow(Nw({},a),{children:f})))})),l.createElement(Fw,{element:c,scope:r},f)}})(e,t))})),function(r){const o=bx(e,r);let i;return n.some((e=>(i=e(o),!!i))),i||(t?t(o):l.createElement(nb,Nw({},o)))}};function aS(e){var t=e,{attributes:n,children:r,editor:o,leaf:i,nodeProps:a,text:s}=t,c=Rw(t,["attributes","children","editor","leaf","nodeProps","text"]);return l.createElement("span",Nw(Nw({},n),c),r)}var sS=["onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onDOMBeforeInput","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],lS=(e,t)=>{const n=[];return e.plugins.forEach((e=>{e.isLeaf&&e.key&&n.push(((e,{component:t,dangerouslyAllowAttributes:n,key:r,props:o,type:i=r})=>function(e){const{children:r,leaf:a}=e;if(a[i]){const s=null!=t?t:aS;return e=hx({attributes:a.attributes,dangerouslyAllowAttributes:n,nodeProps:e,props:o,type:i}),l.createElement(s,Nw({},e),r)}return r})(0,e))})),function(r){const o=bx(e,r);return n.forEach((e=>{const t=e(o);void 0!==t&&(o.children=t)})),t?t(o):l.createElement(aS,Nw({},o))}},{PlateControllerProvider:cS,plateControllerStore:uS,usePlateControllerStore:dS}=zg({activeId:Tm(null),editorStores:Tm({}),primaryEditorIds:Tm([])},{name:"plateController"}),pS=()=>dS().set,hS=e=>{const t=l.useMemo((()=>Tm((t=>{const n=t(uS.atom.editorStores),r=e=>{var t;return e&&null!=(t=n[e])?t:null};if(e)return r(e);const o=[t(uS.atom.activeId),...t(uS.atom.primaryEditorIds)];for(const e of o){const t=r(e);if(t)return t}return null}))),[e]);return dS().get.atom(t)},{PlateProvider:fS,plateStore:mS,usePlateStore:gS}=(Symbol("global-plate"),((e={})=>{var t=e,{decorate:n=null,editor:r=nS(),editorRef:o=null,id:i,isMounted:a=!1,onChange:s=null,onSelectionChange:l=null,onValueChange:c=null,plugins:u=[],primary:d=!0,rawPlugins:p=[],readOnly:h=null,renderElement:f=null,renderLeaf:m=null,value:g=null,versionDecorate:v=1,versionEditor:y=1,versionSelection:b=1}=t,w=Rw(t,["decorate","editor","editorRef","id","isMounted","onChange","onSelectionChange","onValueChange","plugins","primary","rawPlugins","readOnly","renderElement","renderLeaf","value","versionDecorate","versionEditor","versionSelection"]);return zg(Nw({decorate:n,editor:r,editorRef:o,id:i,isMounted:a,onChange:s,onSelectionChange:l,onValueChange:c,plugins:u,primary:d,rawPlugins:p,readOnly:h,renderElement:f,renderLeaf:m,value:g,versionDecorate:v,versionEditor:y,versionSelection:b},w),{extend:e=>({trackedEditor:Tm((t=>({editor:t(e.editor),version:t(e.versionEditor)}))),trackedSelection:Tm((t=>({selection:t(e.editor).selection,version:t(e.versionSelection)})))}),name:"plate"})})()),vS=(e,{debugHookName:t="usePlateEditorStore"}={})=>{var n;const r=null!=(n=gS(e).store({warnIfNoStore:!1}))?n:null,[o]=l.useState(!!r),i=o?r:hS(e),a=!!dS().store({warnIfNoStore:!1}),s=l.useMemo((()=>Gm()),[]);if(!i){if(a)return s;throw new Error(`${t} must be used inside a Plate or PlateController`)}return i},yS=(e,t)=>{const n=vS(e,Nw({debugHookName:"usePlateSelectors"},t));return gS({store:n}).get},bS=(e,t)=>{const n=vS(e,Nw({debugHookName:"usePlateActions"},t));return gS({store:n}).set},wS=(e,t,n={})=>{const r=l.useRef(1),o=bS(t,Nw({debugHookName:"useIncrementVersion"},n))[e]();return l.useCallback((()=>{const e=r.current+1;o(e),r.current=e}),[o])},xS=(e,t={})=>yS(e,Nw({debugHookName:"useEditorRef"},t)).editor(),SS=(e,t,n={})=>{var r=n,{equalityFn:o=(e,t)=>e===t,id:i}=r,a=Rw(r,["equalityFn","id"]);const s=l.useMemo((()=>rg(mS.atom.trackedEditor,(({editor:t},n)=>e(t,n)),o)),t);return yS(i,Nw({debugHookName:"useEditorSelector"},a)).atom(s)},_S=({id:e})=>{const t=xS(e),n=((e,t={})=>{const n=wS("versionDecorate",e,Nw({debugHookName:"useRedecorate"},t));return l.useCallback((()=>{n()}),[n])})(e),r=gS(e),o=Object.fromEntries(jw.map((e=>[e,r.set[e]()]))),i=l.useMemo((()=>o),[]);return l.useEffect((()=>{t.redecorate=n,t.plate={set:i}}),[t,n,i]),null};function CS({id:e,plugin:t}){var n;const r=xS(e);return null==(n=t.useHooks)||n.call(t,r,t),null}function ES({id:e}){const t=bS(e).isMounted(),n=yS(e).plugins(),r=xS(e),o=yS(e).editorRef();return l.useEffect((()=>(t(!0),()=>{t(!1)})),[t]),l.useEffect((()=>"function"==typeof o?(o(r),()=>o(null)):o?(o.current=r,()=>{o.current=null}):void 0),[o,r]),l.createElement(l.Fragment,null,n.map((t=>l.createElement(CS,{id:e,key:t.key,plugin:t}))))}var kS=l.memo((({id:e})=>{const t=cb(),n=wS("versionEditor",e);l.useEffect((()=>{n()}));const r=wS("versionSelection",e),o=l.useRef(t.selection),i=zS(o.current,t.selection);return l.useEffect((()=>{i||r(),o.current=t.selection}),[t.selection,i,r]),null})),zS=(e,t)=>!e&&!t||!(!e||!t)&&ud.equals(e,t),PS=({disableCorePlugins:e,id:t,plugins:n})=>{const r=xS(t),o=((e,t)=>{const n=vS(e,Nw({debugHookName:"usePlateStates"},t));return gS({store:n}).use})(t),[i,a]=o.rawPlugins(),[,s]=o.plugins();l.useEffect((()=>{Pu(n)&&n!==i&&(a(i),Qx(r,{disableCorePlugins:e,plugins:n}),s(r.plugins))}),[e,r,i,n,s,a])};function AS(e){var t=e,{children:n}=t,r=Rw(t,["children"]);return PS(r),l.createElement(l.Fragment,null,n)}function DS({children:e,decorate:t,disableCorePlugins:n,editor:r,editorRef:o,id:i,initialValue:a,maxLength:s,normalizeInitialValue:c,onChange:u,onSelectionChange:d,onValueChange:p,plugins:h,primary:f,readOnly:m,renderElement:g,renderLeaf:v,value:y}){const[b]=l.useState((()=>{var e,t;return null!=(t=null!=(e=null==r?void 0:r.id)?e:i)?t:((e=21)=>{let t="",n=0|e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t})()})),w=l.useMemo((()=>null!=r?r:tS({disableCorePlugins:n,id:b,maxLength:s,plugins:h})),[]),x=l.useMemo((()=>{let e=null!=a?a:y;e||(e=w.children.length>0?w.children:w.childrenFactory());const t=((e,t)=>{let n=Cc()(t);if(e.plugins.forEach((e=>{var t;const r=null==(t=e.normalizeInitialValue)?void 0:t.call(e,n);r&&(n=r)})),!tp()(t,n))return n})(w,e);return t&&(e=t),w.children=e,c&&sc(w,{force:!0}),w.children}),[]);return l.createElement(fS,{decorate:t,editor:w,editorRef:o,id:b,onChange:u,onSelectionChange:d,onValueChange:p,plugins:w.plugins,primary:f,rawPlugins:h,readOnly:m,renderElement:g,renderLeaf:v,scope:b,value:x},l.createElement(AS,{disableCorePlugins:n,id:b,plugins:h},e))}function TS(e){const{id:t}=e;return l.createElement(DS,Nw({key:null==t?void 0:t.toString()},e))}var IS=({id:e})=>{const t=yS(void 0,{debugHookName:"usePlateId"}).id(),n=null!=e?e:t,r=l.useMemo((()=>Ew(uS.atom.editorStores,(e=>e.prop(n)))),[n]),o=pS().atom(r,{warnIfNoStore:!1}),i=gS(n).store(),a=yS(n).primary(),s=pS().primaryEditorIds({warnIfNoStore:!1}),c=(0,l.useContext)(kb),u=pS().activeId({warnIfNoStore:!1});return l.useEffect((()=>(o(null!=i?i:null),()=>{o(null),u((e=>e===n?null:e))})),[i,o,u,n]),l.useEffect((()=>{if(a)return s((e=>[...e,n])),()=>{s((e=>e.filter((e=>e!==n))))}}),[n,a,s]),l.useEffect((()=>{n&&c&&u(n)}),[n,c,u]),null};function MS({children:e,id:t}){var n;const r=(({id:e})=>{const t=xS(e),n=yS(e).value(),r=bS(e).value(),o=yS(e).onChange(),i=yS(e).onValueChange(),a=yS(e).onSelectionChange(),s=l.useCallback((e=>{const n=(e=>{const t=e.plugins.flatMap((t=>{var n,r,o;return null!=(o=null==(r=null==(n=t.handlers)?void 0:n.onChange)?void 0:r.call(n,e,t))?o:[]}));return e=>t.some((t=>{if(!t)return!1;const n=t(e);return null!=n&&n}))})(t)(e);n||null==o||o(e),r(e)}),[t,r,o]),c=l.useMemo((()=>i),[i]),u=l.useMemo((()=>a),[a]);return l.useMemo((()=>({editor:t,initialValue:n,key:t.key,onChange:s,onSelectionChange:u,onValueChange:c,value:n})),[t,s,u,c,n])})({id:t}),o=xS(t);let i=l.createElement(Db,Nw({},r),e);return null==(n=o.plugins)||n.forEach((e=>{const{renderAboveSlate:t}=e;t&&(i=l.createElement(t,null,i))})),i}var NS=l.forwardRef(((e,t)=>{var n=e,{renderEditable:r}=n,o=Rw(n,["renderEditable"]);const{id:i}=o,a=xS(i);if(!a)throw new Error("Editor not found. Please ensure that PlateContent is rendered below Plate.");const s=((e={})=>{const{id:t}=e,n=xS(t),r=yS(t),o=r.versionDecorate(),i=r.readOnly(),a=r.decorate(),s=r.renderLeaf(),c=r.renderElement(),u=l.useMemo((()=>gx(n,null!=a?a:null==e?void 0:e.decorate)),[null==e?void 0:e.decorate,n,a]),d=l.useMemo((()=>{if(o&&u)return e=>u(e)}),[u,o]),p=l.useMemo((()=>iS(n,null!=c?c:null==e?void 0:e.renderElement)),[null==e?void 0:e.renderElement,n,c]),h=l.useMemo((()=>lS(n,null!=s?s:null==e?void 0:e.renderLeaf)),[null==e?void 0:e.renderLeaf,n,s]),f=Bb((()=>{const t={decorate:d,renderElement:p,renderLeaf:h};return Pu(i)&&(t.readOnly=i),sS.forEach((r=>{const o=yx(n,{editableProps:e,handlerKey:r});o&&(t[r]=o)})),t}),[d,e,p,h,i]);return Bb((()=>Nw(Nw({},Nb()(e,[...sS,"renderElement","renderLeaf"])),f)),[e,f])})(o),c=l.createElement(bb,Nw({ref:t},s));let u=null,d=null;a.plugins.forEach((e=>{const{renderAfterEditable:t,renderBeforeEditable:n}=e;t&&(u=l.createElement(l.Fragment,null,u,l.createElement(t,Nw({},s)))),n&&(d=l.createElement(l.Fragment,null,d,l.createElement(n,Nw({},s))))}));let p=l.createElement(l.Fragment,null,d,r?r(c):c,l.createElement(_S,{id:i}),l.createElement(kS,{id:i}),l.createElement(ES,{id:i}),l.createElement(IS,{id:i}),u);return a.plugins.forEach((e=>{const{renderAboveEditable:t}=e;t&&(p=l.createElement(t,null,p))})),l.createElement(MS,{id:i},p)}));NS.displayName="PlateContent";var OS=Object.defineProperty,RS=Object.defineProperties,jS=Object.getOwnPropertyDescriptors,FS=Object.getOwnPropertySymbols,BS=Object.prototype.hasOwnProperty,LS=Object.prototype.propertyIsEnumerable,VS=(e,t,n)=>t in e?OS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,KS=(e,t)=>{for(var n in t||(t={}))BS.call(t,n)&&VS(e,n,t[n]);if(FS)for(var n of FS(t))LS.call(t,n)&&VS(e,n,t[n]);return e},HS=(e,t)=>RS(e,jS(t)),$S=(e,t)=>{var n={};for(var r in e)BS.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&FS)for(var r of FS(e))t.indexOf(r)<0&&LS.call(e,r)&&(n[r]=e[r]);return n},US=l.forwardRef(((e,t)=>{const{props:n,ref:r}=(e=>{const t=e,{attributes:n,editor:r,element:o,elementToAttributes:i,nodeProps:a}=t,s=$S(t,["attributes","editor","element","elementToAttributes","nodeProps"]);return{props:HS(KS(KS(KS(KS({},n),s),a),null==i?void 0:i(o)),{className:(0,Xd.clsx)(e.className,null==a?void 0:a.className)}),ref:vf(e.ref,n.ref)}})(HS(KS({},e),{ref:t}));return l.createElement(mf,HS(KS({},n),{ref:r}))}));US.displayName="PlateElement";var WS=l.forwardRef(((e,t)=>{const{props:n,ref:r}=(e=>{const t=e,{attributes:n,editor:r,leaf:o,leafToAttributes:i,nodeProps:a,text:s}=t,l=$S(t,["attributes","editor","leaf","leafToAttributes","nodeProps","text"]);return{props:HS(KS(KS(KS(KS({},n),l),a),null==i?void 0:i(o)),{className:(0,Xd.clsx)(e.className,null==a?void 0:a.className)}),ref:vf(e.ref,n.ref)}})(HS(KS({},e),{ref:t}));return l.createElement(gf,HS(KS({},n),{ref:r}))}));WS.displayName="PlateLeaf";var qS="backgroundColor",GS=ih({inject:{props:{nodeKey:qS}},key:qS,then:(e,{type:t})=>({deserializeHtml:{getNode:e=>({[t]:e.style.backgroundColor}),isLeaf:!0,rules:[{validStyle:{backgroundColor:"*"}}]}})}),ZS="color",YS=ih({inject:{props:{defaultNodeValue:"black",nodeKey:ZS}},key:ZS,then:(e,{type:t})=>({deserializeHtml:{getNode(e){if(e.style.color)return{[t]:e.style.color}},isLeaf:!0,rules:[{validStyle:{color:"*"}}]}})}),XS="fontFamily",JS=(ih({inject:{props:{nodeKey:XS}},key:XS,then:(e,{type:t})=>({deserializeHtml:{getNode:e=>({[t]:e.style.fontFamily}),isLeaf:!0,rules:[{validStyle:{fontFamily:"*"}}]}})}),"fontSize"),QS=(ih({inject:{props:{nodeKey:JS}},key:JS,then:(e,{type:t})=>({deserializeHtml:{getNode:e=>({[t]:e.style.fontSize}),isLeaf:!0,rules:[{validStyle:{fontSize:"*"}}]}})}),"fontWeight"),e_=(ih({inject:{props:{nodeKey:QS}},key:QS,then:(e,{type:t})=>({deserializeHtml:{getNode:e=>({[t]:e.style.fontWeight}),isLeaf:!0,rules:[{validStyle:{fontWeight:"*"}}]}})}),({closeOnSelect:e=!0,colors:t,customColors:n,nodeType:r})=>{const o=xS(),i=SS((e=>!!e.selection),[]),a=SS((e=>Lu(e,r)),[r]),[s,c]=l.useState(),[u,d]=l.useState(!1),p=l.useCallback(((e=!u)=>{d(e)}),[u,d]),h=l.useCallback((e=>{o.selection&&(c(e),Xl(o,o.selection),Ib(o),((e,t,n=[])=>{e.selection&&Gl(e,(()=>{const r=vu()(n);qu(e,{key:r}),qu(e,{key:Object.keys(t)}),Object.keys(t).forEach((n=>{e.addMark(n,t[n])}))}))})(o,{[r]:e}))}),[o,r]),f=l.useCallback((t=>{h(t),e&&p()}),[e,p,h]),m=l.useCallback((()=>{o.selection&&(Xl(o,o.selection),Ib(o),s&&qu(o,{key:r}),e&&p())}),[o,s,e,p,r]);return l.useEffect((()=>{i&&c(a)}),[a,i]),{clearColor:m,color:a,colors:t,customColors:n,onToggle:p,open:u,selectedColor:s,updateColor:h,updateColorAndClose:f}}),t_="p",n_=ih({deserializeHtml:{query:e=>"Consolas"!==e.style.fontFamily,rules:[{validNodeName:"P"}]},handlers:{onKeyDown:(e,{options:{hotkey:t},type:n})=>r=>{if(r.defaultPrevented)return;const o=rh(e,th);if(!t)return;const i=vu()(t);for(const t of i)if((0,np.v_)(t,r))return r.preventDefault(),void oh(e,{activeType:n,inactiveType:o})}},isElement:!0,key:t_,options:{hotkey:["mod+opt+0","mod+shift+0"]}});Math.min,Math.max,Math.round,Math.floor;"undefined"!=typeof document?l.useLayoutEffect:l.useEffect;new WeakMap,new WeakMap;var r_="undefined"==typeof Element;r_||Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,!r_&&Element.prototype.getRootNode;"undefined"!=typeof document?l.useLayoutEffect:l.useEffect;c["useId".toString()];c["useInsertionEffect".toString()];Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,ih({key:"normalizeTypes",options:{rules:[]},withOverrides:(e,{options:{onError:t,rules:n}})=>{const{normalizeNode:r}=e;return e.normalizeNode=([o,i])=>{if(0===i.length){const r=n.some((({path:n,strictType:r,type:o})=>{const i=((e,t)=>{try{for(let n=0;n<t.length;n++){const r=t[n];if(Zl(e)||!e.children[r])return null;e=e.children[r]}return e}catch(e){return null}})(e,n);if(i){if(r&&Ll(i)&&i.type!==r)return Sc(e,{type:r},{at:n}),!0}else try{return Wu(e,{children:[{text:""}],type:null!=r?r:o},{at:n}),!0}catch(e){null==t||t(e)}return!1}));if(r)return}return r([o,i])},e}});var o_=(e,{options:{types:t}})=>{const n=vu()(t),{normalizeNode:r}=e;return e.normalizeNode=([t,o])=>{Ll(t)&&t.type&&n.includes(t.type)&&""===cc(t)?Yl(e,{at:o}):r([t,o])},e},i_=(ih({key:"removeEmptyNodes",withOverrides:o_}),Object.defineProperty),a_=Object.defineProperties,s_=Object.getOwnPropertyDescriptors,l_=Object.getOwnPropertySymbols,c_=Object.prototype.hasOwnProperty,u_=Object.prototype.propertyIsEnumerable,d_=(e,t,n)=>t in e?i_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p_=(e,t)=>{for(var n in t||(t={}))c_.call(t,n)&&d_(e,n,t[n]);if(l_)for(var n of l_(t))u_.call(t,n)&&d_(e,n,t[n]);return e},h_=(e,t)=>a_(e,s_(t)),f_=(e,t)=>{var n={};for(var r in e)c_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&l_)for(var r of l_(e))t.indexOf(r)<0&&u_.call(e,r)&&(n[r]=e[r]);return n},m_=(e,{children:t,target:n,text:r="",url:o})=>({children:null!=t?t:[{text:r}],target:n,type:rh(e,k_),url:o}),g_=(e,t)=>{const{allowedSchemes:n,dangerouslySkipSanitization:r,defaultLinkAttributes:o}=fh(e,k_),i=p_({},o),a=r?t.url:zu(t.url,{allowedSchemes:n})||void 0;return void 0!==a&&(i.href=a),"target"in t&&(i.target=t.target),i},v_=Kp("floatingLink")({isEditing:!1,mode:"",mouseDown:!1,newTab:!1,openEditorId:null,text:"",updated:!1,url:""}).extendActions((e=>({reset:()=>{e.url(""),e.text(""),e.newTab(!1),e.mode(""),e.isEditing(!1)}}))).extendActions((e=>({hide:()=>{e.openEditorId(null),e.reset()},show:(t,n)=>{e.mode(t),e.isEditing(!1),e.openEditorId(n)}}))).extendSelectors((e=>({isOpen:t=>e.openEditorId===t}))),y_=v_.set,b_=v_.get,w_=()=>v_.use,x_=(yf("input")({propsHook:({checked:e,ref:t,setChecked:n})=>{const r=l.useCallback((e=>{n(e.target.checked),y_.newTab(e.target.checked)}),[n]);return{props:{checked:e,onChange:r,type:"checkbox"},ref:t}},stateHook:()=>{const e=w_().updated(),t=l.useRef(null),[n,r]=l.useState(b_.newTab());return l.useEffect((()=>{t.current&&e&&setTimeout((()=>{var e;null==(e=t.current)||e.focus()}),0)}),[e]),{checked:n,ref:t,setChecked:r}}}),yf("input")({propsHook:e=>{const t=l.useCallback((e=>{const t=(e=>{try{return e!==decodeURIComponent(e)?e:encodeURI(e)}catch(t){if(t instanceof URIError)return e;throw t}})(e.target.value);y_.url(t)}),[]);return{props:{defaultValue:b_.url(),onChange:t},ref:e.ref}},stateHook:()=>{const e=w_().updated(),t=l.useRef(null);return l.useEffect((()=>{t.current&&e&&setTimeout((()=>{const e=t.current;e&&(e.focus(),e.value=b_.url()?(e=>{try{return decodeURI(e)}catch(t){if(t instanceof URIError)return e;throw t}})(b_.url()):"")}),0)}),[e]),{ref:t}}}),yf("a")({propsHook:({element:e})=>{const t=xS();if(!e)return{props:{}};const n=g_(t,e);return{props:h_(p_({},n),{"aria-label":"Open link in a new tab",onMouseOver:e=>{e.stopPropagation()},target:"_blank"})}},stateHook:()=>{const e=xS(),t=((e,t={})=>yS(e,Nw({debugHookName:"useEditorSelection"},t)).trackedSelection().selection)(),n=l.useMemo((()=>wc(e,{match:{type:rh(e,k_)}})),[e,t]);if(!n)return{};const[r]=n;return{element:r}}}),(e,t)=>Gl(e,(()=>{var n,r,o,i,a,s;if(null==t?void 0:t.split){if($l(e,{at:null==(n=e.selection)?void 0:n.anchor,match:{type:rh(e,k_)}}))return bc(e,{at:null==(r=e.selection)?void 0:r.anchor,match:t=>Ll(t)&&t.type===rh(e,k_)}),x_(e,{at:null==(o=e.selection)?void 0:o.anchor}),!0;if($l(e,{at:null==(i=e.selection)?void 0:i.focus,match:{type:rh(e,k_)}}))return bc(e,{at:null==(a=e.selection)?void 0:a.focus,match:t=>Ll(t)&&t.type===rh(e,k_)}),x_(e,{at:null==(s=e.selection)?void 0:s.focus}),!0}((e,t)=>{Pl.gB.unwrapNodes(e,Hl(e,t))})(e,p_({match:{type:rh(e,k_)}},t))}))),S_=(e,{text:t})=>{const n=$l(e,{match:{type:rh(e,k_)}});if(n){const[r,o]=n;if((null==t?void 0:t.length)&&t!==tc(e,o)){const n=r.children[0];Zu(e,{at:o,insertOptions:{select:!0},nodes:h_(p_({},n),{text:t})})}}},__=(e,t)=>{var n=t,{target:r,url:o}=n,i=f_(n,["target","url"]);((e,t,n)=>{Ul(e,null==n?void 0:n.at,n),Pl.gB.wrapNodes(e,t,n)})(e,{children:[],target:r,type:rh(e,k_),url:o},p_({split:!0},i))},C_=(e,{insertNodesOptions:t,insertTextInLink:n,skipValidation:r=!1,target:o,text:i,url:a})=>{var s,l,c;const u=e.selection;if(!u)return;const d=$l(e,{at:u,match:{type:rh(e,k_)}});if(n&&d)return e.insertText(a),!0;if(!r&&!E_(e,a))return;if(Pu(i)&&0===i.length&&(i=a),d)return a===(null==(s=d[0])?void 0:s.url)&&o===(null==(l=d[0])?void 0:l.target)||yc(e,{target:o,url:a},{at:d[1]}),S_(e,{target:o,text:i,url:a}),!0;const p=wc(e,{at:u,match:{type:rh(e,k_)}}),[h,f]=null!=p?p:[];let m=!1;if(f&&(null==i?void 0:i.length)){i!==tc(e,f)&&(m=!0)}if(pc(u))return x_(e,d?{at:d[1]}:{split:!0}),__(e,{target:o,url:a}),S_(e,{target:o,text:i,url:a}),!0;m&&Yl(e,{at:f});const g=(e=>Pl.bP.extractProps(e))(null!=h?h:{}),v=null==(c=e.selection)?void 0:c.focus.path;if(!v)return;const y=((e,t)=>Pl.bP.leaf(e,t))(e,v);return(null==i?void 0:i.length)||(i=a),((e,t,n)=>{gc(e,[m_(e,t)],n)})(e,h_(p_({},g),{children:[h_(p_({},y),{text:i})],target:o,url:a}),t),!0},E_=(e,t)=>{const{allowedSchemes:n,dangerouslySkipSanitization:r,isUrl:o}=fh(e,k_);return!(o&&!o(t))&&!(!r&&!zu(t,{allowedSchemes:n,permitInvalid:!0}))},k_="a",z_=ih({isElement:!0,isInline:!0,key:k_,options:{allowedSchemes:["http","https","mailto","tel"],dangerouslySkipSanitization:!1,defaultLinkAttributes:{},isUrl:e=>{if("string"!=typeof e)return!1;const t=e.match(_u),n=e.match(Cu),r=t||n;if(!r)return!1;const o=r[1];if(!o)return!1;try{new URL(e)}catch(e){return!1}return Eu.test(o)||ku.test(o)},keepSelectedTextOnPaste:!0,rangeBeforeOptions:{afterMatch:!0,matchString:" ",skipInvalid:!0},triggerFloatingLinkHotkeys:"meta+k, ctrl+k"},then:(e,{type:t})=>({deserializeHtml:{getNode:n=>{const r=n.getAttribute("href");if(r&&E_(e,r))return{target:n.getAttribute("target")||"_blank",type:t,url:r}},rules:[{validNodeName:"A"}]},props:({element:t})=>({nodeProps:g_(e,t)})}),withOverrides:(e,{options:{getUrlHref:t,isUrl:n,keepSelectedTextOnPaste:r,rangeBeforeOptions:o},type:i})=>{const{apply:a,insertBreak:s,insertData:l,insertText:c,normalizeNode:u}=e,d=()=>{Gl(e,(()=>{var r;const i=e.selection;let a=Hu(e,i,o);if(a||(a=$u(e)),!a)return;if(xc(e,{at:a,match:{type:rh(e,k_)}}))return;let s=tc(e,a);s=null!=(r=null==t?void 0:t(s))?r:s,n(s)&&(Xl(e,a),C_(e,{url:s}),((e,t)=>{Pl.gB.collapse(e,t)})(e,{edge:"end"}))}))};return e.insertBreak=()=>{if(!dc(e.selection))return s();d(),s()},e.insertText=t=>{" "===t&&dc(e.selection)&&d(),c(t)},e.insertData=n=>{const o=n.getData("text/plain"),i=null==t?void 0:t(o);if(o){const t=i||o;if(C_(e,{insertTextInLink:!0,text:r?void 0:t,url:t}))return}l(n)},e.apply=t=>{if("set_selection"===t.type){const n=t.newProperties;if((null==n?void 0:n.focus)&&n.anchor&&dc(n)){const r=$l(e,{at:n,match:{type:rh(e,k_)}});if(r){const[,o]=r;let i;ac(e,n.focus,o)&&(i=((e,t)=>{const n=ql(e,{at:t});if(n)return Jl(e,n[1])})(e,o)),ic(e,n.focus,o)&&(i=Vu(e,o)),i&&(t.newProperties={anchor:i,focus:i})}}}a(t)},e.normalizeNode=([t,n])=>{if(t.type===rh(e,k_)){const t=e.selection;if(t&&dc(t)&&ic(e,t.focus,n)){const t=Vu(e,n);if(t)Xl(e,t);else{const t=wf.next(n);gc(e,{text:""},{at:t}),Xl(e,t)}}}u([t,n])},e=o_(e,Xp({editor:{},inject:{},key:"",options:{},type:""},{options:{types:i}}))}});function P_(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=P_(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function A_(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=P_(e))&&(r&&(r+=" "),r+=t);return r}const D_=A_;function T_(e){const t=function(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]},o=function(e,t){if(!t)return e;return e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))]))}(Object.entries(e.classGroups),n);return o.forEach((([e,n])=>{N_(n,r,e,t)})),r}(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:function(e){const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),I_(n,t)||function(e){if(M_.test(e)){const t=M_.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}}function I_(e,t){if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?I_(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find((({validator:e})=>e(i)))?.classGroupId}const M_=/^\[(.+)\]$/;function N_(e,t,n,r){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void N_(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{N_(o,O_(t,e),n,r)}))}else{(""===e?t:O_(t,e)).classGroupId=n}}))}function O_(e,t){let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function R_(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(o,i){n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}}function j_(e){const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length;function a(e){const n=[];let a,s=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===s){if(u===o&&(r||e.slice(c,c+i)===t)){n.push(e.slice(l,c)),l=c+i;continue}if("/"===u){a=c;continue}}"["===u?s++:"]"===u&&s--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:a&&a>l?a-l:void 0}}return n?function(e){return n({className:e,parseClassName:a})}:a}const F_=/\s+/;function B_(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=L_(e))&&(r&&(r+=" "),r+=t);return r}function L_(e){if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=L_(e[r]))&&(n&&(n+=" "),n+=t);return n}function V_(e,...t){let n,r,o,i=function(s){const l=t.reduce(((e,t)=>t(e)),e());return n=function(e){return{cache:R_(e.cacheSize),parseClassName:j_(e),...T_(e)}}(l),r=n.cache.get,o=n.cache.set,i=a,a(s)};function a(e){const t=r(e);if(t)return t;const i=function(e,t){const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(F_).map((e=>{const{modifiers:t,hasImportantModifier:o,baseClassName:i,maybePostfixModifierPosition:a}=n(e);let s=Boolean(a),l=r(s?i.substring(0,a):i);if(!l){if(!s)return{isTailwindClass:!1,originalClassName:e};if(l=r(i),!l)return{isTailwindClass:!1,originalClassName:e};s=!1}const c=function(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t}(t).join(":");return{isTailwindClass:!0,modifierId:o?c+"!":c,classGroupId:l,originalClassName:e,hasPostfixModifier:s}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:n,hasPostfixModifier:r}=e,a=t+n;return!i.has(a)&&(i.add(a),o(n,r).forEach((e=>i.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}(e,n);return o(e,i),i}return function(){return i(B_.apply(null,arguments))}}function K_(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const H_=/^\[(?:([a-z-]+):)?(.+)\]$/i,$_=/^\d+\/\d+$/,U_=new Set(["px","full","screen"]),W_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,q_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,G_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Z_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Y_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function X_(e){return Q_(e)||U_.has(e)||$_.test(e)}function J_(e){return pC(e,"length",hC)}function Q_(e){return Boolean(e)&&!Number.isNaN(Number(e))}function eC(e){return pC(e,"number",Q_)}function tC(e){return Boolean(e)&&Number.isInteger(Number(e))}function nC(e){return e.endsWith("%")&&Q_(e.slice(0,-1))}function rC(e){return H_.test(e)}function oC(e){return W_.test(e)}const iC=new Set(["length","size","percentage"]);function aC(e){return pC(e,iC,fC)}function sC(e){return pC(e,"position",fC)}const lC=new Set(["image","url"]);function cC(e){return pC(e,lC,gC)}function uC(e){return pC(e,"",mC)}function dC(){return!0}function pC(e,t,n){const r=H_.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))}function hC(e){return q_.test(e)&&!G_.test(e)}function fC(){return!1}function mC(e){return Z_.test(e)}function gC(e){return Y_.test(e)}Symbol.toStringTag;function vC(){const e=K_("colors"),t=K_("spacing"),n=K_("blur"),r=K_("brightness"),o=K_("borderColor"),i=K_("borderRadius"),a=K_("borderSpacing"),s=K_("borderWidth"),l=K_("contrast"),c=K_("grayscale"),u=K_("hueRotate"),d=K_("invert"),p=K_("gap"),h=K_("gradientColorStops"),f=K_("gradientColorStopPositions"),m=K_("inset"),g=K_("margin"),v=K_("opacity"),y=K_("padding"),b=K_("saturate"),w=K_("scale"),x=K_("sepia"),S=K_("skew"),_=K_("space"),C=K_("translate"),E=()=>["auto",rC,t],k=()=>[rC,t],z=()=>["",X_,J_],P=()=>["auto",Q_,rC],A=()=>["","0",rC],D=()=>[Q_,eC],T=()=>[Q_,rC];return{cacheSize:500,separator:":",theme:{colors:[dC],spacing:[X_,J_],blur:["none","",oC,rC],brightness:D(),borderColor:[e],borderRadius:["none","","full",oC,rC],borderSpacing:k(),borderWidth:z(),contrast:D(),grayscale:A(),hueRotate:T(),invert:A(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[nC,J_],inset:E(),margin:E(),opacity:D(),padding:k(),saturate:D(),scale:D(),sepia:A(),skew:T(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",rC]}],container:["container"],columns:[{columns:[oC]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",rC]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",tC,rC]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",rC]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",tC,rC]}],"grid-cols":[{"grid-cols":[dC]}],"col-start-end":[{col:["auto",{span:["full",tC,rC]},rC]}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":[dC]}],"row-start-end":[{row:["auto",{span:[tC,rC]},rC]}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",rC]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",rC]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",rC,t]}],"min-w":[{"min-w":[rC,t,"min","max","fit"]}],"max-w":[{"max-w":[rC,t,"none","full","min","max","fit","prose",{screen:[oC]},oC]}],h:[{h:[rC,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[rC,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[rC,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[rC,t,"auto","min","max","fit"]}],"font-size":[{text:["base",oC,J_]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",eC]}],"font-family":[{font:[dC]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",rC]}],"line-clamp":[{"line-clamp":["none",Q_,eC]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",X_,rC]}],"list-image":[{"list-image":["none",rC]}],"list-style-type":[{list:["none","disc","decimal",rC]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",X_,J_]}],"underline-offset":[{"underline-offset":["auto",X_,rC]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",rC]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",rC]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",sC]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",aC]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},cC]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[X_,rC]}],"outline-w":[{outline:[X_,J_]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[X_,J_]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",oC,uC]}],"shadow-color":[{shadow:[dC]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",oC,rC]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",rC]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",rC]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",rC]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[tC,rC]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",rC]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",rC]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",rC]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[X_,J_,eC]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const yC=V_(vC);var bC=Object.defineProperty,wC=Object.defineProperties,xC=Object.getOwnPropertyDescriptors,SC=Object.getOwnPropertySymbols,_C=Object.prototype.hasOwnProperty,CC=Object.prototype.propertyIsEnumerable,EC=(e,t,n)=>t in e?bC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kC=(e,t)=>{for(var n in t||(t={}))_C.call(t,n)&&EC(e,n,t[n]);if(SC)for(var n of SC(t))CC.call(t,n)&&EC(e,n,t[n]);return e};function zC(...e){return yC(D_(e))}function PC(e,t){const n=e;return l.forwardRef((function(e,r){return l.createElement(n,((e,t)=>wC(e,xC(t)))(kC(kC({ref:r},t),e),{className:zC(t.className,e.className)}))}))}var AC=n(84997);const DC={};function TC(e,t){"string"!=typeof t&&(t=TC.defaultChars);const n=function(e){let t=DC[e];if(t)return t;t=DC[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}(t);return e.replace(/(%[a-f0-9]{2})+/gi,(function(e){let t="";for(let r=0,o=e.length;r<o;r+=3){const i=parseInt(e.slice(r+1,r+3),16);if(i<128)t+=n[i];else{if(192==(224&i)&&r+3<o){const n=parseInt(e.slice(r+4,r+6),16);if(128==(192&n)){const e=i<<6&1984|63&n;t+=e<128?"��":String.fromCharCode(e),r+=3;continue}}if(224==(240&i)&&r+6<o){const n=parseInt(e.slice(r+4,r+6),16),o=parseInt(e.slice(r+7,r+9),16);if(128==(192&n)&&128==(192&o)){const e=i<<12&61440|n<<6&4032|63&o;t+=e<2048||e>=55296&&e<=57343?"���":String.fromCharCode(e),r+=6;continue}}if(240==(248&i)&&r+9<o){const n=parseInt(e.slice(r+4,r+6),16),o=parseInt(e.slice(r+7,r+9),16),a=parseInt(e.slice(r+10,r+12),16);if(128==(192&n)&&128==(192&o)&&128==(192&a)){let e=i<<18&1835008|n<<12&258048|o<<6&4032|63&a;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),r+=9;continue}}t+="�"}}return t}))}TC.defaultChars=";/?:@&=+$,#",TC.componentChars="";const IC=TC,MC={};function NC(e,t,n){"string"!=typeof t&&(n=t,t=NC.defaultChars),void 0===n&&(n=!0);const r=function(e){let t=MC[e];if(t)return t;t=MC[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}(t);let o="";for(let t=0,i=e.length;t<i;t++){const a=e.charCodeAt(t);if(n&&37===a&&t+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3)))o+=e.slice(t,t+3),t+=2;else if(a<128)o+=r[a];else if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&t+1<i){const n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){o+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}o+="%EF%BF%BD"}else o+=encodeURIComponent(e[t])}return o}NC.defaultChars=";/?:@&=+$,-_.!~*'()#",NC.componentChars="-_.!~*'()";const OC=NC;function RC(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function jC(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const FC=/^([a-z0-9.+-]+:)/i,BC=/:[0-9]*$/,LC=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,VC=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),KC=["'"].concat(VC),HC=["%","/","?",";","#"].concat(KC),$C=["/","?","#"],UC=/^[+a-z0-9A-Z_-]{0,63}$/,WC=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,qC={javascript:!0,"javascript:":!0},GC={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};jC.prototype.parse=function(e,t){let n,r,o,i=e;if(i=i.trim(),!t&&1===e.split("#").length){const e=LC.exec(i);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let a=FC.exec(i);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,i=i.substr(a.length)),(t||a||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o="//"===i.substr(0,2),!o||a&&qC[a]||(i=i.substr(2),this.slashes=!0)),!qC[a]&&(o||a&&!GC[a])){let e,t,n=-1;for(let e=0;e<$C.length;e++)r=i.indexOf($C[e]),-1!==r&&(-1===n||r<n)&&(n=r);t=-1===n?i.lastIndexOf("@"):i.lastIndexOf("@",n),-1!==t&&(e=i.slice(0,t),i=i.slice(t+1),this.auth=e),n=-1;for(let e=0;e<HC.length;e++)r=i.indexOf(HC[e]),-1!==r&&(-1===n||r<n)&&(n=r);-1===n&&(n=i.length),":"===i[n-1]&&n--;const o=i.slice(0,n);i=i.slice(n),this.parseHost(o),this.hostname=this.hostname||"";const a="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!a){const e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n&&!n.match(UC)){let r="";for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+="x":r+=n[e];if(!r.match(UC)){const r=e.slice(0,t),o=e.slice(t+1),a=n.match(WC);a&&(r.push(a[1]),o.unshift(a[2])),o.length&&(i=o.join(".")+i),this.hostname=r.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),a&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=i.indexOf("#");-1!==s&&(this.hash=i.substr(s),i=i.slice(0,s));const l=i.indexOf("?");return-1!==l&&(this.search=i.substr(l),i=i.slice(0,l)),i&&(this.pathname=i),GC[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},jC.prototype.parseHost=function(e){let t=BC.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const ZC=function(e,t){if(e&&e instanceof jC)return e;const n=new jC;return n.parse(e,t),n},YC=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,XC=/[\0-\x1F\x7F-\x9F]/,JC=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,QC=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,eE=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,tE=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,nE=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTǇǋǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉ǲኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻ǲᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤĳạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ﬃɩᾹ\0\0᾽g;耀ﬀig;耀ﬄ;쀀𝔣lig;耀ﬁlig;쀀fjƀaltῙ῜ῡt;晭ig;耀ﬂns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒α‚‰‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସǳ⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗǈⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼ǲ㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((e=>e.charCodeAt(0)))),rE=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e=>e.charCodeAt(0))));var oE;const iE=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),aE=null!==(oE=String.fromCodePoint)&&void 0!==oE?oE:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};function sE(e){return aE(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=iE.get(e))&&void 0!==t?t:e}(e))}var lE,cE;function uE(e){return function(t,n){let r="",o=0,i=0;for(;(i=t.indexOf("&",i))>=0;){if(r+=t.slice(o,i),o=i,i+=1,t.charCodeAt(i)===lE.NUM){let e=i+1,a=10,s=t.charCodeAt(e);(s|lE.To_LOWER_BIT)===lE.LOWER_X&&(a=16,i+=1,e+=1);do{s=t.charCodeAt(++i)}while(s>=lE.ZERO&&s<=lE.NINE||16===a&&(s|lE.To_LOWER_BIT)>=lE.LOWER_A&&(s|lE.To_LOWER_BIT)<=lE.LOWER_F);if(e!==i){const s=t.substring(e,i),l=parseInt(s,a);if(t.charCodeAt(i)===lE.SEMI)i+=1;else if(n)continue;r+=sE(l),o=i}continue}let a=0,s=1,l=0,c=e[l];for(;i<t.length&&(l=dE(e,c,l+1,t.charCodeAt(i)),!(l<0));i++,s++){c=e[l];const r=c&cE.VALUE_LENGTH;if(r){n&&t.charCodeAt(i)!==lE.SEMI||(a=l,s=0);const e=(r>>14)-1;if(0===e)break;l+=e}}if(0!==a){const t=(e[a]&cE.VALUE_LENGTH)>>14;r+=1===t?String.fromCharCode(e[a]&~cE.VALUE_LENGTH):2===t?String.fromCharCode(e[a+1]):String.fromCharCode(e[a+1],e[a+2]),o=i-s+1}}return r+t.slice(o)}}function dE(e,t,n,r){const o=(t&cE.BRANCH_LENGTH)>>7,i=t&cE.JUMP_TABLE;if(0===o)return 0!==i&&r===i?n:-1;if(i){const t=r-i;return t<0||t>=o?-1:e[n+t]-1}let a=n,s=a+o-1;for(;a<=s;){const t=a+s>>>1,n=e[t];if(n<r)a=t+1;else{if(!(n>r))return e[t+o];s=t-1}}return-1}!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.To_LOWER_BIT=32]="To_LOWER_BIT"}(lE||(lE={})),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(cE||(cE={}));const pE=uE(nE);uE(rE);function hE(e){return pE(e,!1)}function fE(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}new Map(fE([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(fE([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(fE([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(fE([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));const mE=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);String.prototype.codePointAt;function gE(e,t){return function(n){let r,o=0,i="";for(;r=e.exec(n);)o!==r.index&&(i+=n.substring(o,r.index)),i+=t.get(r[0].charCodeAt(0)),o=r.index+1;return i+n.substring(o)}}gE(/[&<>'"]/g,mE),gE(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),gE(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));var vE,yE,bE;function wE(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}!function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(vE||(vE={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict"}(yE||(yE={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(bE||(bE={}));const xE=Object.prototype.hasOwnProperty;function SE(e,t){return xE.call(e,t)}function _E(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e}function CE(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function EE(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(!!(65535&~e&&65534!=(65535&e))&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function kE(e){if(e>65535){const t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const zE=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,PE=new RegExp(zE.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),AE=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function DE(e){return e.indexOf("\\")<0?e:e.replace(zE,"$1")}function TE(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(PE,(function(e,t,n){return t||function(e,t){if(35===t.charCodeAt(0)&&AE.test(t)){const n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return EE(n)?kE(n):e}const n=hE(e);return n!==e?n:e}(e,n)}))}const IE=/[&<>"]/,ME=/[&<>"]/g,NE={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function OE(e){return NE[e]}function RE(e){return IE.test(e)?e.replace(ME,OE):e}const jE=/[.?*+^$[\]\\(){}|-]/g;function FE(e){return e.replace(jE,"\\$&")}function BE(e){switch(e){case 9:case 32:return!0}return!1}function LE(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function VE(e){return QC.test(e)||eE.test(e)}function KE(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function HE(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const $E={mdurl:r,ucmicro:o};function UE(e,t,n){let r,o,i,a;const s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(i=e.src.charCodeAt(e.pos),93===i&&(r--,0===r)){o=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===i)if(a===e.pos-1)r++;else if(n)return e.pos=l,-1}let c=-1;return o&&(c=e.pos),e.pos=l,c}function WE(e,t,n){let r,o=t;const i={ok:!1,pos:0,str:""};if(60===e.charCodeAt(o)){for(o++;o<n;){if(r=e.charCodeAt(o),10===r)return i;if(60===r)return i;if(62===r)return i.pos=o+1,i.str=TE(e.slice(t+1,o)),i.ok=!0,i;92===r&&o+1<n?o+=2:o++}return i}let a=0;for(;o<n&&(r=e.charCodeAt(o),32!==r)&&!(r<32||127===r);)if(92===r&&o+1<n){if(32===e.charCodeAt(o+1))break;o+=2}else{if(40===r&&(a++,a>32))return i;if(41===r){if(0===a)break;a--}o++}return t===o||0!==a||(i.str=TE(e.slice(t,o)),i.pos=o,i.ok=!0),i}function qE(e,t,n,r){let o,i=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)a.str=r.str,a.marker=r.marker;else{if(i>=n)return a;let r=e.charCodeAt(i);if(34!==r&&39!==r&&40!==r)return a;t++,i++,40===r&&(r=41),a.marker=r}for(;i<n;){if(o=e.charCodeAt(i),o===a.marker)return a.pos=i+1,a.str+=TE(e.slice(t,i)),a.ok=!0,a;if(40===o&&41===a.marker)return a;92===o&&i+1<n&&i++,i++}return a.can_continue=!0,a.str+=TE(e.slice(t,i)),a}const GE={};function ZE(){this.rules=_E({},GE)}GE.code_inline=function(e,t,n,r,o){const i=e[t];return"<code"+o.renderAttrs(i)+">"+RE(i.content)+"</code>"},GE.code_block=function(e,t,n,r,o){const i=e[t];return"<pre"+o.renderAttrs(i)+"><code>"+RE(e[t].content)+"</code></pre>\n"},GE.fence=function(e,t,n,r,o){const i=e[t],a=i.info?TE(i.info).trim():"";let s,l="",c="";if(a){const e=a.split(/(\s+)/g);l=e[0],c=e.slice(2).join("")}if(s=n.highlight&&n.highlight(i.content,l,c)||RE(i.content),0===s.indexOf("<pre"))return s+"\n";if(a){const e=i.attrIndex("class"),t=i.attrs?i.attrs.slice():[];e<0?t.push(["class",n.langPrefix+l]):(t[e]=t[e].slice(),t[e][1]+=" "+n.langPrefix+l);const r={attrs:t};return`<pre><code${o.renderAttrs(r)}>${s}</code></pre>\n`}return`<pre><code${o.renderAttrs(i)}>${s}</code></pre>\n`},GE.image=function(e,t,n,r,o){const i=e[t];return i.attrs[i.attrIndex("alt")][1]=o.renderInlineAsText(i.children,n,r),o.renderToken(e,t,n)},GE.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},GE.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},GE.text=function(e,t){return RE(e[t].content)},GE.html_block=function(e,t){return e[t].content},GE.html_inline=function(e,t){return e[t].content},ZE.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+RE(e.attrs[t][0])+'="'+RE(e.attrs[t][1])+'"';return r},ZE.prototype.renderToken=function(e,t,n){const r=e[t];let o="";if(r.hidden)return"";r.block&&-1!==r.nesting&&t&&e[t-1].hidden&&(o+="\n"),o+=(-1===r.nesting?"</":"<")+r.tag,o+=this.renderAttrs(r),0===r.nesting&&n.xhtmlOut&&(o+=" /");let i=!1;if(r.block&&(i=!0,1===r.nesting&&t+1<e.length)){const n=e[t+1];("inline"===n.type||n.hidden||-1===n.nesting&&n.tag===r.tag)&&(i=!1)}return o+=i?">\n":">",o},ZE.prototype.renderInline=function(e,t,n){let r="";const o=this.rules;for(let i=0,a=e.length;i<a;i++){const a=e[i].type;void 0!==o[a]?r+=o[a](e,i,t,n,this):r+=this.renderToken(e,i,t)}return r},ZE.prototype.renderInlineAsText=function(e,t,n){let r="";for(let o=0,i=e.length;o<i;o++)switch(e[o].type){case"text":case"html_inline":case"html_block":r+=e[o].content;break;case"image":r+=this.renderInlineAsText(e[o].children,t,n);break;case"softbreak":case"hardbreak":r+="\n"}return r},ZE.prototype.render=function(e,t,n){let r="";const o=this.rules;for(let i=0,a=e.length;i<a;i++){const a=e[i].type;"inline"===a?r+=this.renderInline(e[i].children,t,n):void 0!==o[a]?r+=o[a](e,i,t,n,this):r+=this.renderToken(e,i,t,n)}return r};const YE=ZE;function XE(){this.__rules__=[],this.__cache__=null}XE.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},XE.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},XE.prototype.at=function(e,t,n){const r=this.__find__(e),o=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=o.alt||[],this.__cache__=null},XE.prototype.before=function(e,t,n,r){const o=this.__find__(e),i=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},XE.prototype.after=function(e,t,n,r){const o=this.__find__(e),i=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},XE.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},XE.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach((function(e){const r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},XE.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},XE.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach((function(e){const r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},XE.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};const JE=XE;function QE(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}QE.prototype.attrIndex=function(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1},QE.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},QE.prototype.attrSet=function(e,t){const n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},QE.prototype.attrGet=function(e){const t=this.attrIndex(e);let n=null;return t>=0&&(n=this.attrs[t][1]),n},QE.prototype.attrJoin=function(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t};const ek=QE;function tk(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}tk.prototype.Token=ek;const nk=tk,rk=/\r\n?|\n/g,ok=/\0/g;function ik(e){return/^<\/a\s*>/i.test(e)}const ak=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,sk=/\((c|tm|r)\)/i,lk=/\((c|tm|r)\)/gi,ck={c:"©",r:"®",tm:"™"};function uk(e,t){return ck[t.toLowerCase()]}function dk(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||(r.content=r.content.replace(lk,uk)),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}function pk(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||ak.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}const hk=/['"]/,fk=/['"]/g;function mk(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function gk(e,t){let n;const r=[];for(let o=0;o<e.length;o++){const i=e[o],a=e[o].level;for(n=r.length-1;n>=0&&!(r[n].level<=a);n--);if(r.length=n+1,"text"!==i.type)continue;let s=i.content,l=0,c=s.length;e:for(;l<c;){fk.lastIndex=l;const u=fk.exec(s);if(!u)break;let d=!0,p=!0;l=u.index+1;const h="'"===u[0];let f=32;if(u.index-1>=0)f=s.charCodeAt(u.index-1);else for(n=o-1;n>=0&&("softbreak"!==e[n].type&&"hardbreak"!==e[n].type);n--)if(e[n].content){f=e[n].content.charCodeAt(e[n].content.length-1);break}let m=32;if(l<c)m=s.charCodeAt(l);else for(n=o+1;n<e.length&&("softbreak"!==e[n].type&&"hardbreak"!==e[n].type);n++)if(e[n].content){m=e[n].content.charCodeAt(0);break}const g=KE(f)||VE(String.fromCharCode(f)),v=KE(m)||VE(String.fromCharCode(m)),y=LE(f),b=LE(m);if(b?d=!1:v&&(y||g||(d=!1)),y?p=!1:g&&(b||v||(p=!1)),34===m&&'"'===u[0]&&f>=48&&f<=57&&(p=d=!1),d&&p&&(d=g,p=v),d||p){if(p)for(n=r.length-1;n>=0;n--){let d=r[n];if(r[n].level<a)break;if(d.single===h&&r[n].level===a){let a,p;d=r[n],h?(a=t.md.options.quotes[2],p=t.md.options.quotes[3]):(a=t.md.options.quotes[0],p=t.md.options.quotes[1]),i.content=mk(i.content,u.index,p),e[d.token].content=mk(e[d.token].content,d.pos,a),l+=p.length-1,d.token===o&&(l+=a.length-1),s=i.content,c=s.length,r.length=n;continue e}}d?r.push({token:o,pos:u.index,single:h,level:a}):p&&h&&(i.content=mk(i.content,u.index,"’"))}else h&&(i.content=mk(i.content,u.index,"’"))}}}const vk=[["normalize",function(e){let t;t=e.src.replace(rk,"\n"),t=t.replace(ok,"�"),e.src=t}],["block",function(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const r=t[n];"inline"===r.type&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}],["linkify",function(e){const t=e.tokens;var n;if(e.md.options.linkify)for(let r=0,o=t.length;r<o;r++){if("inline"!==t[r].type||!e.md.linkify.pretest(t[r].content))continue;let o=t[r].children,i=0;for(let a=o.length-1;a>=0;a--){const s=o[a];if("link_close"!==s.type){if("html_inline"===s.type&&(n=s.content,/^<a[>\s]/i.test(n)&&i>0&&i--,ik(s.content)&&i++),!(i>0)&&"text"===s.type&&e.md.linkify.test(s.content)){const n=s.content;let i=e.md.linkify.match(n);const l=[];let c=s.level,u=0;i.length>0&&0===i[0].index&&a>0&&"text_special"===o[a-1].type&&(i=i.slice(1));for(let t=0;t<i.length;t++){const r=i[t].url,o=e.md.normalizeLink(r);if(!e.md.validateLink(o))continue;let a=i[t].text;a=i[t].schema?"mailto:"!==i[t].schema||/^mailto:/i.test(a)?e.md.normalizeLinkText(a):e.md.normalizeLinkText("mailto:"+a).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+a).replace(/^http:\/\//,"");const s=i[t].index;if(s>u){const t=new e.Token("text","",0);t.content=n.slice(u,s),t.level=c,l.push(t)}const d=new e.Token("link_open","a",1);d.attrs=[["href",o]],d.level=c++,d.markup="linkify",d.info="auto",l.push(d);const p=new e.Token("text","",0);p.content=a,p.level=c,l.push(p);const h=new e.Token("link_close","a",-1);h.level=--c,h.markup="linkify",h.info="auto",l.push(h),u=i[t].lastIndex}if(u<n.length){const t=new e.Token("text","",0);t.content=n.slice(u),t.level=c,l.push(t)}t[r].children=o=CE(o,a,l)}}else for(a--;o[a].level!==s.level&&"link_open"!==o[a].type;)a--}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(sk.test(e.tokens[t].content)&&dk(e.tokens[t].children),ak.test(e.tokens[t].content)&&pk(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&hk.test(e.tokens[t].content)&&gk(e.tokens[t].children,e)}],["text_join",function(e){let t,n;const r=e.tokens,o=r.length;for(let e=0;e<o;e++){if("inline"!==r[e].type)continue;const o=r[e].children,i=o.length;for(t=0;t<i;t++)"text_special"===o[t].type&&(o[t].type="text");for(t=n=0;t<i;t++)"text"===o[t].type&&t+1<i&&"text"===o[t+1].type?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}}]];function yk(){this.ruler=new JE;for(let e=0;e<vk.length;e++)this.ruler.push(vk[e][0],vk[e][1])}yk.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},yk.prototype.State=nk;const bk=yk;function wk(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const o=this.src;for(let e=0,t=0,n=0,r=0,i=o.length,a=!1;t<i;t++){const s=o.charCodeAt(t);if(!a){if(BE(s)){n++,9===s?r+=4-r%4:r++;continue}a=!0}10!==s&&t!==i-1||(10!==s&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),a=!1,n=0,r=0,e=t+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}wk.prototype.push=function(e,t,n){const r=new ek(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},wk.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},wk.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},wk.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t;e++){if(!BE(this.src.charCodeAt(e)))break}return e},wk.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!BE(this.src.charCodeAt(--e)))return e+1;return e},wk.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},wk.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},wk.prototype.getLines=function(e,t,n,r){if(e>=t)return"";const o=new Array(t-e);for(let i=0,a=e;a<t;a++,i++){let e=0;const s=this.bMarks[a];let l,c=s;for(l=a+1<t||r?this.eMarks[a]+1:this.eMarks[a];c<l&&e<n;){const t=this.src.charCodeAt(c);if(BE(t))9===t?e+=4-(e+this.bsCount[a])%4:e++;else{if(!(c-s<this.tShift[a]))break;e++}c++}o[i]=e>n?new Array(e-n+1).join(" ")+this.src.slice(c,l):this.src.slice(c,l)}return o.join("")},wk.prototype.Token=ek;const xk=wk;function Sk(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function _k(e){const t=[],n=e.length;let r=0,o=e.charCodeAt(r),i=!1,a=0,s="";for(;r<n;)124===o&&(i?(s+=e.substring(a,r-1),a=r):(t.push(s+e.substring(a,r)),s="",a=r+1)),i=92===o,r++,o=e.charCodeAt(r);return t.push(s+e.substring(a)),t}function Ck(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(r++);if(42!==o&&45!==o&&43!==o)return-1;if(r<n){if(!BE(e.src.charCodeAt(r)))return-1}return r}function Ek(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let o=n;if(o+1>=r)return-1;let i=e.src.charCodeAt(o++);if(i<48||i>57)return-1;for(;;){if(o>=r)return-1;if(i=e.src.charCodeAt(o++),!(i>=48&&i<=57)){if(41===i||46===i)break;return-1}if(o-n>=10)return-1}return o<r&&(i=e.src.charCodeAt(o),!BE(i))?-1:o}const kk="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",zk="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Pk=new RegExp("^(?:"+kk+"|"+zk+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),Ak=new RegExp("^(?:"+kk+"|"+zk+")"),Dk=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"].join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Ak.source+"\\s*$"),/^$/,!1]];const Tk=[["table",function(e,t,n,r){if(t+2>n)return!1;let o=t+1;if(e.sCount[o]<e.blkIndent)return!1;if(e.sCount[o]-e.blkIndent>=4)return!1;let i=e.bMarks[o]+e.tShift[o];if(i>=e.eMarks[o])return!1;const a=e.src.charCodeAt(i++);if(124!==a&&45!==a&&58!==a)return!1;if(i>=e.eMarks[o])return!1;const s=e.src.charCodeAt(i++);if(124!==s&&45!==s&&58!==s&&!BE(s))return!1;if(45===a&&BE(s))return!1;for(;i<e.eMarks[o];){const t=e.src.charCodeAt(i);if(124!==t&&45!==t&&58!==t&&!BE(t))return!1;i++}let l=Sk(e,t+1),c=l.split("|");const u=[];for(let e=0;e<c.length;e++){const t=c[e].trim();if(!t){if(0===e||e===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?u.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?u.push("left"):u.push("")}if(l=Sk(e,t).trim(),-1===l.indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;c=_k(l),c.length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop();const d=c.length;if(0===d||d!==u.length)return!1;if(r)return!0;const p=e.parentType;e.parentType="table";const h=e.md.block.ruler.getRules("blockquote"),f=[t,0];e.push("table_open","table",1).map=f,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<c.length;t++){const n=e.push("th_open","th",1);u[t]&&(n.attrs=[["style","text-align:"+u[t]]]);const r=e.push("inline","",0);r.content=c[t].trim(),r.children=[],e.push("th_close","th",-1)}let m;e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let g=0;for(o=t+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let r=!1;for(let t=0,i=h.length;t<i;t++)if(h[t](e,o,n,!0)){r=!0;break}if(r)break;if(l=Sk(e,o).trim(),!l)break;if(e.sCount[o]-e.blkIndent>=4)break;if(c=_k(l),c.length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),g+=d-c.length,g>65536)break;if(o===t+2){e.push("tbody_open","tbody",1).map=m=[t+2,0]}e.push("tr_open","tr",1).map=[o,o+1];for(let t=0;t<d;t++){const n=e.push("td_open","td",1);u[t]&&(n.attrs=[["style","text-align:"+u[t]]]);const r=e.push("inline","",0);r.content=c[t]?c[t].trim():"",r.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return m&&(e.push("tbody_close","tbody",-1),m[1]=o),e.push("table_close","table",-1),f[1]=o,e.parentType=p,e.line=o,!0},["paragraph","reference"]],["code",function(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,o=r;for(;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;r++,o=r}e.line=o;const i=e.push("code_block","code",0);return i.content=e.getLines(t,o,4+e.blkIndent,!1)+"\n",i.map=[t,e.line],!0}],["fence",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(o+3>i)return!1;const a=e.src.charCodeAt(o);if(126!==a&&96!==a)return!1;let s=o;o=e.skipChars(o,a);let l=o-s;if(l<3)return!1;const c=e.src.slice(s,o),u=e.src.slice(o,i);if(96===a&&u.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let d=t,p=!1;for(;(d++,!(d>=n))&&(o=s=e.bMarks[d]+e.tShift[d],i=e.eMarks[d],!(o<i&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(o)===a&&!(e.sCount[d]-e.blkIndent>=4||(o=e.skipChars(o,a),o-s<l||(o=e.skipSpaces(o),o<i)))){p=!0;break}l=e.sCount[t],e.line=d+(p?1:0);const h=e.push("fence","code",0);return h.info=u,h.content=e.getLines(t+1,d,l,!0),h.markup=c,h.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];const a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(o))return!1;if(r)return!0;const s=[],l=[],c=[],u=[],d=e.md.block.ruler.getRules("blockquote"),p=e.parentType;e.parentType="blockquote";let h,f=!1;for(h=t;h<n;h++){const t=e.sCount[h]<e.blkIndent;if(o=e.bMarks[h]+e.tShift[h],i=e.eMarks[h],o>=i)break;if(62===e.src.charCodeAt(o++)&&!t){let t,n,r=e.sCount[h]+1;32===e.src.charCodeAt(o)?(o++,r++,n=!1,t=!0):9===e.src.charCodeAt(o)?(t=!0,(e.bsCount[h]+r)%4==3?(o++,r++,n=!1):n=!0):t=!1;let a=r;for(s.push(e.bMarks[h]),e.bMarks[h]=o;o<i;){const t=e.src.charCodeAt(o);if(!BE(t))break;9===t?a+=4-(a+e.bsCount[h]+(n?1:0))%4:a++,o++}f=o>=i,l.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(t?1:0),c.push(e.sCount[h]),e.sCount[h]=a-r,u.push(e.tShift[h]),e.tShift[h]=o-e.bMarks[h];continue}if(f)break;let r=!1;for(let t=0,o=d.length;t<o;t++)if(d[t](e,h,n,!0)){r=!0;break}if(r){e.lineMax=h,0!==e.blkIndent&&(s.push(e.bMarks[h]),l.push(e.bsCount[h]),u.push(e.tShift[h]),c.push(e.sCount[h]),e.sCount[h]-=e.blkIndent);break}s.push(e.bMarks[h]),l.push(e.bsCount[h]),u.push(e.tShift[h]),c.push(e.sCount[h]),e.sCount[h]=-1}const m=e.blkIndent;e.blkIndent=0;const g=e.push("blockquote_open","blockquote",1);g.markup=">";const v=[t,0];g.map=v,e.md.block.tokenize(e,t,h),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=a,e.parentType=p,v[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=s[n],e.tShift[n+t]=u[n],e.sCount[n+t]=c[n],e.bsCount[n+t]=l[n];return e.blkIndent=m,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,n,r){const o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(i++);if(42!==a&&45!==a&&95!==a)return!1;let s=1;for(;i<o;){const t=e.src.charCodeAt(i++);if(t!==a&&!BE(t))return!1;t===a&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(a)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,n,r){let o,i,a,s,l=t,c=!0;if(e.sCount[l]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let u,d,p,h=!1;if(r&&"paragraph"===e.parentType&&e.sCount[l]>=e.blkIndent&&(h=!0),(p=Ek(e,l))>=0){if(u=!0,a=e.bMarks[l]+e.tShift[l],d=Number(e.src.slice(a,p-1)),h&&1!==d)return!1}else{if(!((p=Ck(e,l))>=0))return!1;u=!1}if(h&&e.skipSpaces(p)>=e.eMarks[l])return!1;if(r)return!0;const f=e.src.charCodeAt(p-1),m=e.tokens.length;u?(s=e.push("ordered_list_open","ol",1),1!==d&&(s.attrs=[["start",d]])):s=e.push("bullet_list_open","ul",1);const g=[l,0];s.map=g,s.markup=String.fromCharCode(f);let v=!1;const y=e.md.block.ruler.getRules("list"),b=e.parentType;for(e.parentType="list";l<n;){i=p,o=e.eMarks[l];const t=e.sCount[l]+p-(e.bMarks[l]+e.tShift[l]);let r=t;for(;i<o;){const t=e.src.charCodeAt(i);if(9===t)r+=4-(r+e.bsCount[l])%4;else{if(32!==t)break;r++}i++}const d=i;let h;h=d>=o?1:r-t,h>4&&(h=1);const m=t+h;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(f);const g=[l,0];s.map=g,u&&(s.info=e.src.slice(a,p-1));const b=e.tight,w=e.tShift[l],x=e.sCount[l],S=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=m,e.tight=!0,e.tShift[l]=d-e.bMarks[l],e.sCount[l]=r,d>=o&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),e.tight&&!v||(c=!1),v=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[l]=w,e.sCount[l]=x,e.tight=b,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(f),l=e.line,g[1]=l,l>=n)break;if(e.sCount[l]<e.blkIndent)break;if(e.sCount[l]-e.blkIndent>=4)break;let _=!1;for(let t=0,r=y.length;t<r;t++)if(y[t](e,l,n,!0)){_=!0;break}if(_)break;if(u){if(p=Ek(e,l),p<0)break;a=e.bMarks[l]+e.tShift[l]}else if(p=Ck(e,l),p<0)break;if(f!==e.src.charCodeAt(p-1))break}return s=u?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(f),g[1]=l,e.line=l,e.parentType=b,c&&function(e,t){const n=e.level+2;for(let r=t+2,o=e.tokens.length-2;r<o;r++)e.tokens[r].level===n&&"paragraph_open"===e.tokens[r].type&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}(e,m),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(o))return!1;function s(t){const n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){const r=e.md.block.ruler.getRules("reference"),o=e.parentType;e.parentType="reference";let i=!1;for(let o=0,a=r.length;o<a;o++)if(r[o](e,t,n,!0)){i=!0;break}if(e.parentType=o,i)return null}const o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];return e.src.slice(o,i+1)}let l=e.src.slice(o,i+1);i=l.length;let c=-1;for(o=1;o<i;o++){const e=l.charCodeAt(o);if(91===e)return!1;if(93===e){c=o;break}if(10===e){const e=s(a);null!==e&&(l+=e,i=l.length,a++)}else if(92===e&&(o++,o<i&&10===l.charCodeAt(o))){const e=s(a);null!==e&&(l+=e,i=l.length,a++)}}if(c<0||58!==l.charCodeAt(c+1))return!1;for(o=c+2;o<i;o++){const e=l.charCodeAt(o);if(10===e){const e=s(a);null!==e&&(l+=e,i=l.length,a++)}else if(!BE(e))break}const u=e.md.helpers.parseLinkDestination(l,o,i);if(!u.ok)return!1;const d=e.md.normalizeLink(u.str);if(!e.md.validateLink(d))return!1;o=u.pos;const p=o,h=a,f=o;for(;o<i;o++){const e=l.charCodeAt(o);if(10===e){const e=s(a);null!==e&&(l+=e,i=l.length,a++)}else if(!BE(e))break}let m,g=e.md.helpers.parseLinkTitle(l,o,i);for(;g.can_continue;){const t=s(a);if(null===t)break;l+=t,o=i,i=l.length,a++,g=e.md.helpers.parseLinkTitle(l,o,i,g)}for(o<i&&f!==o&&g.ok?(m=g.str,o=g.pos):(m="",o=p,a=h);o<i;){if(!BE(l.charCodeAt(o)))break;o++}if(o<i&&10!==l.charCodeAt(o)&&m)for(m="",o=p,a=h;o<i;){if(!BE(l.charCodeAt(o)))break;o++}if(o<i&&10!==l.charCodeAt(o))return!1;const v=HE(l.slice(1,c));return!!v&&(r||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[v]&&(e.env.references[v]={title:m,href:d}),e.line=a),!0)}],["html_block",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(o))return!1;let a=e.src.slice(o,i),s=0;for(;s<Dk.length&&!Dk[s][0].test(a);s++);if(s===Dk.length)return!1;if(r)return Dk[s][2];let l=t+1;if(!Dk[s][1].test(a))for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(o=e.bMarks[l]+e.tShift[l],i=e.eMarks[l],a=e.src.slice(o,i),Dk[s][1].test(a)){0!==a.length&&l++;break}e.line=l;const c=e.push("html_block","",0);return c.map=[t,l],c.content=e.getLines(t,l,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(o);if(35!==a||o>=i)return!1;let s=1;for(a=e.src.charCodeAt(++o);35===a&&o<i&&s<=6;)s++,a=e.src.charCodeAt(++o);if(s>6||o<i&&!BE(a))return!1;if(r)return!0;i=e.skipSpacesBack(i,o);const l=e.skipCharsBack(i,35,o);l>o&&BE(e.src.charCodeAt(l-1))&&(i=l),e.line=t+1;const c=e.push("heading_open","h"+String(s),1);c.markup="########".slice(0,s),c.map=[t,e.line];const u=e.push("inline","",0);return u.content=e.src.slice(o,i).trim(),u.map=[t,e.line],u.children=[],e.push("heading_close","h"+String(s),-1).markup="########".slice(0,s),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let i,a=0,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s];const n=e.eMarks[s];if(t<n&&(i=e.src.charCodeAt(t),(45===i||61===i)&&(t=e.skipChars(t,i),t=e.skipSpaces(t),t>=n))){a=61===i?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let o=0,i=r.length;o<i;o++)if(r[o](e,s,n,!0)){t=!0;break}if(t)break}if(!a)return!1;const l=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;const c=e.push("heading_open","h"+String(a),1);c.markup=String.fromCharCode(i),c.map=[t,e.line];const u=e.push("inline","",0);return u.content=l,u.map=[t,e.line-1],u.children=[],e.push("heading_close","h"+String(a),-1).markup=String.fromCharCode(i),e.parentType=o,!0}],["paragraph",function(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),o=e.parentType;let i=t+1;for(e.parentType="paragraph";i<n&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3)continue;if(e.sCount[i]<0)continue;let t=!1;for(let o=0,a=r.length;o<a;o++)if(r[o](e,i,n,!0)){t=!0;break}if(t)break}const a=e.getLines(t,i,e.blkIndent,!1).trim();e.line=i,e.push("paragraph_open","p",1).map=[t,e.line];const s=e.push("inline","",0);return s.content=a,s.map=[t,e.line],s.children=[],e.push("paragraph_close","p",-1),e.parentType=o,!0}]];function Ik(){this.ruler=new JE;for(let e=0;e<Tk.length;e++)this.ruler.push(Tk[e][0],Tk[e][1],{alt:(Tk[e][2]||[]).slice()})}Ik.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),o=r.length,i=e.md.options.maxNesting;let a=t,s=!1;for(;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=i){e.line=n;break}const t=e.line;let l=!1;for(let i=0;i<o;i++)if(l=r[i](e,a,n,!1),l){if(t>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),a=e.line,a<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},Ik.prototype.parse=function(e,t,n,r){if(!e)return;const o=new this.State(e,t,n,r);this.tokenize(o,o.line,o.lineMax)},Ik.prototype.State=xk;const Mk=Ik;function Nk(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Nk.prototype.pushPending=function(){const e=new ek("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Nk.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new ek(e,t,n);let o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r},Nk.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),o=e>0?this.src.charCodeAt(e-1):32;let i=e;for(;i<n&&this.src.charCodeAt(i)===r;)i++;const a=i-e,s=i<n?this.src.charCodeAt(i):32,l=KE(o)||VE(String.fromCharCode(o)),c=KE(s)||VE(String.fromCharCode(s)),u=LE(o),d=LE(s),p=!d&&(!c||u||l),h=!u&&(!l||d||c);return{can_open:p&&(t||!h||l),can_close:h&&(t||!p||c),length:a}},Nk.prototype.Token=ek;const Ok=Nk;function Rk(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}const jk=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;const Fk=[];for(let e=0;e<256;e++)Fk.push(0);function Bk(e,t){let n;const r=[],o=t.length;for(let i=0;i<o;i++){const o=t[i];if(126!==o.marker)continue;if(-1===o.end)continue;const a=t[o.end];n=e.tokens[o.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[a.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="","text"===e.tokens[a.token-1].type&&"~"===e.tokens[a.token-1].content&&r.push(a.token-1)}for(;r.length;){const t=r.pop();let o=t+1;for(;o<e.tokens.length&&"s_close"===e.tokens[o].type;)o++;o--,t!==o&&(n=e.tokens[o],e.tokens[o]=e.tokens[t],e.tokens[t]=n)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){Fk[e.charCodeAt(0)]=1}));const Lk={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(126!==r)return!1;const o=e.scanDelims(e.pos,!0);let i=o.length;const a=String.fromCharCode(r);if(i<2)return!1;let s;i%2&&(s=e.push("text","",0),s.content=a,i--);for(let t=0;t<i;t+=2)s=e.push("text","",0),s.content=a+a,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Bk(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Bk(e,t[r].delimiters)}};function Vk(e,t){for(let n=t.length-1;n>=0;n--){const r=t[n];if(95!==r.marker&&42!==r.marker)continue;if(-1===r.end)continue;const o=t[r.end],i=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===o.token+1,a=String.fromCharCode(r.marker),s=e.tokens[r.token];s.type=i?"strong_open":"em_open",s.tag=i?"strong":"em",s.nesting=1,s.markup=i?a+a:a,s.content="";const l=e.tokens[o.token];l.type=i?"strong_close":"em_close",l.tag=i?"strong":"em",l.nesting=-1,l.markup=i?a+a:a,l.content="",i&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}const Kk={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(95!==r&&42!==r)return!1;const o=e.scanDelims(e.pos,42===r);for(let t=0;t<o.length;t++){e.push("text","",0).content=String.fromCharCode(r),e.delimiters.push({marker:r,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return e.pos+=o.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Vk(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Vk(e,t[r].delimiters)}};const Hk=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,$k=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;const Uk=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Wk=/^&([a-z][a-z0-9]{1,31});/i;function qk(e){const t={},n=e.length;if(!n)return;let r=0,o=-2;const i=[];for(let a=0;a<n;a++){const n=e[a];if(i.push(0),e[r].marker===n.marker&&o===n.token-1||(r=a),o=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);const s=t[n.marker][(n.open?3:0)+n.length%3];let l=r-i[r]-1,c=l;for(;l>s;l-=i[l]+1){const t=e[l];if(t.marker===n.marker&&(t.open&&t.end<0)){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3==0&&n.length%3==0||(r=!0)),!r){const r=l>0&&!e[l-1].open?i[l-1]+1:0;i[a]=a-l+r,i[l]=r,n.open=!1,t.end=a,t.close=!1,c=-1,o=-2;break}}}-1!==c&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=c)}}const Gk=[["text",function(e,t){let n=e.pos;for(;n<e.posMax&&!Rk(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["linkify",function(e,t){if(!e.md.options.linkify)return!1;if(e.linkLevel>0)return!1;const n=e.pos;if(n+3>e.posMax)return!1;if(58!==e.src.charCodeAt(n))return!1;if(47!==e.src.charCodeAt(n+1))return!1;if(47!==e.src.charCodeAt(n+2))return!1;const r=e.pending.match(jk);if(!r)return!1;const o=r[1],i=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!i)return!1;let a=i.url;if(a.length<=o.length)return!1;a=a.replace(/\*+$/,"");const s=e.md.normalizeLink(a);if(!e.md.validateLink(s))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const t=e.push("link_open","a",1);t.attrs=[["href",s]],t.markup="linkify",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(a);const n=e.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return e.pos+=a.length-o.length,!0}],["newline",function(e,t){let n=e.pos;if(10!==e.src.charCodeAt(n))return!1;const r=e.pending.length-1,o=e.posMax;if(!t)if(r>=0&&32===e.pending.charCodeAt(r))if(r>=1&&32===e.pending.charCodeAt(r-1)){let t=r-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<o&&BE(e.src.charCodeAt(n));)n++;return e.pos=n,!0}],["escape",function(e,t){let n=e.pos;const r=e.posMax;if(92!==e.src.charCodeAt(n))return!1;if(n++,n>=r)return!1;let o=e.src.charCodeAt(n);if(10===o){for(t||e.push("hardbreak","br",0),n++;n<r&&(o=e.src.charCodeAt(n),BE(o));)n++;return e.pos=n,!0}let i=e.src[n];if(o>=55296&&o<=56319&&n+1<r){const t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(i+=e.src[n+1],n++)}const a="\\"+i;if(!t){const t=e.push("text_special","",0);o<256&&0!==Fk[o]?t.content=i:t.content=a,t.markup=a,t.info="escape"}return e.pos=n+1,!0}],["backticks",function(e,t){let n=e.pos;if(96!==e.src.charCodeAt(n))return!1;const r=n;n++;const o=e.posMax;for(;n<o&&96===e.src.charCodeAt(n);)n++;const i=e.src.slice(r,n),a=i.length;if(e.backticksScanned&&(e.backticks[a]||0)<=r)return t||(e.pending+=i),e.pos+=a,!0;let s,l=n;for(;-1!==(s=e.src.indexOf("`",l));){for(l=s+1;l<o&&96===e.src.charCodeAt(l);)l++;const r=l-s;if(r===a){if(!t){const t=e.push("code_inline","code",0);t.markup=i,t.content=e.src.slice(n,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[r]=s}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=a,!0}],["strikethrough",Lk.tokenize],["emphasis",Kk.tokenize],["link",function(e,t){let n,r,o,i,a="",s="",l=e.pos,c=!0;if(91!==e.src.charCodeAt(e.pos))return!1;const u=e.pos,d=e.posMax,p=e.pos+1,h=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(h<0)return!1;let f=h+1;if(f<d&&40===e.src.charCodeAt(f)){for(c=!1,f++;f<d&&(n=e.src.charCodeAt(f),BE(n)||10===n);f++);if(f>=d)return!1;if(l=f,o=e.md.helpers.parseLinkDestination(e.src,f,e.posMax),o.ok){for(a=e.md.normalizeLink(o.str),e.md.validateLink(a)?f=o.pos:a="",l=f;f<d&&(n=e.src.charCodeAt(f),BE(n)||10===n);f++);if(o=e.md.helpers.parseLinkTitle(e.src,f,e.posMax),f<d&&l!==f&&o.ok)for(s=o.str,f=o.pos;f<d&&(n=e.src.charCodeAt(f),BE(n)||10===n);f++);}(f>=d||41!==e.src.charCodeAt(f))&&(c=!0),f++}if(c){if(void 0===e.env.references)return!1;if(f<d&&91===e.src.charCodeAt(f)?(l=f+1,f=e.md.helpers.parseLinkLabel(e,f),f>=0?r=e.src.slice(l,f++):f=h+1):f=h+1,r||(r=e.src.slice(p,h)),i=e.env.references[HE(r)],!i)return e.pos=u,!1;a=i.href,s=i.title}if(!t){e.pos=p,e.posMax=h;const t=[["href",a]];e.push("link_open","a",1).attrs=t,s&&t.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=f,e.posMax=d,!0}],["image",function(e,t){let n,r,o,i,a,s,l,c,u="";const d=e.pos,p=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;const h=e.pos+2,f=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(f<0)return!1;if(i=f+1,i<p&&40===e.src.charCodeAt(i)){for(i++;i<p&&(n=e.src.charCodeAt(i),BE(n)||10===n);i++);if(i>=p)return!1;for(c=i,s=e.md.helpers.parseLinkDestination(e.src,i,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?i=s.pos:u=""),c=i;i<p&&(n=e.src.charCodeAt(i),BE(n)||10===n);i++);if(s=e.md.helpers.parseLinkTitle(e.src,i,e.posMax),i<p&&c!==i&&s.ok)for(l=s.str,i=s.pos;i<p&&(n=e.src.charCodeAt(i),BE(n)||10===n);i++);else l="";if(i>=p||41!==e.src.charCodeAt(i))return e.pos=d,!1;i++}else{if(void 0===e.env.references)return!1;if(i<p&&91===e.src.charCodeAt(i)?(c=i+1,i=e.md.helpers.parseLinkLabel(e,i),i>=0?o=e.src.slice(c,i++):i=f+1):i=f+1,o||(o=e.src.slice(h,f)),a=e.env.references[HE(o)],!a)return e.pos=d,!1;u=a.href,l=a.title}if(!t){r=e.src.slice(h,f);const t=[];e.md.inline.parse(r,e.md,e.env,t);const n=e.push("image","img",0),o=[["src",u],["alt",""]];n.attrs=o,n.children=t,n.content=r,l&&o.push(["title",l])}return e.pos=i,e.posMax=p,!0}],["autolink",function(e,t){let n=e.pos;if(60!==e.src.charCodeAt(n))return!1;const r=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const t=e.src.charCodeAt(n);if(60===t)return!1;if(62===t)break}const i=e.src.slice(r+1,n);if($k.test(i)){const n=e.md.normalizeLink(i);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(i);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=i.length+2,!0}if(Hk.test(i)){const n=e.md.normalizeLink("mailto:"+i);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(i);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=i.length+2,!0}return!1}],["html_inline",function(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(60!==e.src.charCodeAt(r)||r+2>=n)return!1;const o=e.src.charCodeAt(r+1);if(33!==o&&63!==o&&47!==o&&!function(e){const t=32|e;return t>=97&&t<=122}(o))return!1;const i=e.src.slice(r).match(Pk);if(!i)return!1;if(!t){const t=e.push("html_inline","",0);t.content=i[0],a=t.content,/^<a[>\s]/i.test(a)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--}var a;return e.pos+=i[0].length,!0}],["entity",function(e,t){const n=e.pos,r=e.posMax;if(38!==e.src.charCodeAt(n))return!1;if(n+1>=r)return!1;if(35===e.src.charCodeAt(n+1)){const r=e.src.slice(n).match(Uk);if(r){if(!t){const t="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push("text_special","",0);n.content=EE(t)?kE(t):kE(65533),n.markup=r[0],n.info="entity"}return e.pos+=r[0].length,!0}}else{const r=e.src.slice(n).match(Wk);if(r){const n=hE(r[0]);if(n!==r[0]){if(!t){const t=e.push("text_special","",0);t.content=n,t.markup=r[0],t.info="entity"}return e.pos+=r[0].length,!0}}}return!1}]],Zk=[["balance_pairs",function(e){const t=e.tokens_meta,n=e.tokens_meta.length;qk(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&qk(t[e].delimiters)}],["strikethrough",Lk.postProcess],["emphasis",Kk.postProcess],["fragments_join",function(e){let t,n,r=0;const o=e.tokens,i=e.tokens.length;for(t=n=0;t<i;t++)o[t].nesting<0&&r--,o[t].level=r,o[t].nesting>0&&r++,"text"===o[t].type&&t+1<i&&"text"===o[t+1].type?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}]];function Yk(){this.ruler=new JE;for(let e=0;e<Gk.length;e++)this.ruler.push(Gk[e][0],Gk[e][1]);this.ruler2=new JE;for(let e=0;e<Zk.length;e++)this.ruler2.push(Zk[e][0],Zk[e][1])}Yk.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,o=e.md.options.maxNesting,i=e.cache;if(void 0!==i[t])return void(e.pos=i[t]);let a=!1;if(e.level<o){for(let o=0;o<r;o++)if(e.level++,a=n[o](e,!0),e.level--,a){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,i[t]=e.pos},Yk.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,o=e.md.options.maxNesting;for(;e.pos<r;){const i=e.pos;let a=!1;if(e.level<o)for(let r=0;r<n;r++)if(a=t[r](e,!1),a){if(i>=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(a){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Yk.prototype.parse=function(e,t,n,r){const o=new this.State(e,t,n,r);this.tokenize(o);const i=this.ruler2.getRules(""),a=i.length;for(let e=0;e<a;e++)i[e](o)},Yk.prototype.State=Ok;const Xk=Yk;function Jk(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function Qk(e){return Object.prototype.toString.call(e)}function ez(e){return"[object Function]"===Qk(e)}function tz(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const nz={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};const rz={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},oz="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function iz(e){const t=e.re=function(e){const t={};e=e||{},t.src_Any=YC.source,t.src_Cc=XC.source,t.src_Z=tE.source,t.src_P=QC.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><｜]";return t.src_pseudo_letter="(?:(?![><｜]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><｜]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><｜]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const o=[];function i(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){const n=e.__schemas__[t];if(null===n)return;const r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===Qk(n))return!function(e){return"[object RegExp]"===Qk(e)}(n.validate)?ez(n.validate)?r.validate=n.validate:i(t,n):r.validate=function(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(ez(n.normalize)?r.normalize=n.normalize:n.normalize?i(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===Qk(e)}(n)?i(t,n):o.push(t)})),o.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};const a=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(tz).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><｜]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><｜]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function az(e,t){const n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function sz(e,t){const n=new az(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function lz(e,t){if(!(this instanceof lz))return new lz(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||nz.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=Jk({},nz,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Jk({},rz,e),this.__compiled__={},this.__tlds__=oz,this.__tlds_replaced__=!1,this.re={},iz(this)}lz.prototype.add=function(e,t){return this.__schemas__[e]=t,iz(this),this},lz.prototype.set=function(e){return this.__opts__=Jk(this.__opts__,e),this},lz.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,o,i,a,s,l,c;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;null!==(t=s.exec(e));)if(o=this.testSchemaAt(e,t[2],s.lastIndex),o){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=e.indexOf("@"),c>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(i=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a))),this.__index__>=0},lz.prototype.pretest=function(e){return this.re.pretest.test(e)},lz.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},lz.prototype.match=function(e){const t=[];let n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(sz(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(sz(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},lz.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,sz(this,0)):null},lz.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),iz(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,iz(this),this)},lz.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},lz.prototype.onCompile=function(){};const cz=lz,uz=2147483647,dz=36,pz=/^xn--/,hz=/[^\0-\x7F]/,fz=/[\x2E\u3002\uFF0E\uFF61]/g,mz={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},gz=Math.floor,vz=String.fromCharCode;function yz(e){throw new RangeError(mz[e])}function bz(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const o=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(fz,".")).split("."),t).join(".");return r+o}function wz(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&o)<<10)+(1023&r)+65536):(t.push(o),n--)}else t.push(o)}return t}const xz=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},Sz=function(e,t,n){let r=0;for(e=n?gz(e/700):e>>1,e+=gz(e/t);e>455;r+=dz)e=gz(e/35);return gz(r+36*e/(e+38))},_z=function(e){const t=[],n=e.length;let r=0,o=128,i=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let n=0;n<a;++n)e.charCodeAt(n)>=128&&yz("not-basic"),t.push(e.charCodeAt(n));for(let l=a>0?a+1:0;l<n;){const a=r;for(let t=1,o=dz;;o+=dz){l>=n&&yz("invalid-input");const a=(s=e.charCodeAt(l++))>=48&&s<58?s-48+26:s>=65&&s<91?s-65:s>=97&&s<123?s-97:dz;a>=dz&&yz("invalid-input"),a>gz((uz-r)/t)&&yz("overflow"),r+=a*t;const c=o<=i?1:o>=i+26?26:o-i;if(a<c)break;const u=dz-c;t>gz(uz/u)&&yz("overflow"),t*=u}const c=t.length+1;i=Sz(r-a,c,0==a),gz(r/c)>uz-o&&yz("overflow"),o+=gz(r/c),r%=c,t.splice(r++,0,o)}var s;return String.fromCodePoint(...t)},Cz=function(e){const t=[],n=(e=wz(e)).length;let r=128,o=0,i=72;for(const n of e)n<128&&t.push(vz(n));const a=t.length;let s=a;for(a&&t.push("-");s<n;){let n=uz;for(const t of e)t>=r&&t<n&&(n=t);const l=s+1;n-r>gz((uz-o)/l)&&yz("overflow"),o+=(n-r)*l,r=n;for(const n of e)if(n<r&&++o>uz&&yz("overflow"),n===r){let e=o;for(let n=dz;;n+=dz){const r=n<=i?1:n>=i+26?26:n-i;if(e<r)break;const o=e-r,a=dz-r;t.push(vz(xz(r+o%a,0))),e=gz(o/a)}t.push(vz(xz(e,0))),i=Sz(o,l,s===a),o=0,++s}++o,++r}return t.join("")},Ez={version:"2.3.1",ucs2:{decode:wz,encode:e=>String.fromCodePoint(...e)},decode:_z,encode:Cz,toASCII:function(e){return bz(e,(function(e){return hz.test(e)?"xn--"+Cz(e):e}))},toUnicode:function(e){return bz(e,(function(e){return pz.test(e)?_z(e.slice(4).toLowerCase()):e}))}},kz=Ez,zz={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},Pz=/^(vbscript|javascript|file|data):/,Az=/^data:image\/(gif|png|jpeg|webp);/;function Dz(e){const t=e.trim().toLowerCase();return!Pz.test(t)||Az.test(t)}const Tz=["http:","https:","mailto:"];function Iz(e){const t=ZC(e,!0);if(t.hostname&&(!t.protocol||Tz.indexOf(t.protocol)>=0))try{t.hostname=kz.toASCII(t.hostname)}catch(e){}return OC(RC(t))}function Mz(e){const t=ZC(e,!0);if(t.hostname&&(!t.protocol||Tz.indexOf(t.protocol)>=0))try{t.hostname=kz.toUnicode(t.hostname)}catch(e){}return IC(RC(t),IC.defaultChars+"%")}function Nz(e,t){if(!(this instanceof Nz))return new Nz(e,t);t||wE(e)||(t=e||{},e="default"),this.inline=new Xk,this.block=new Mk,this.core=new bk,this.renderer=new YE,this.linkify=new cz,this.validateLink=Dz,this.normalizeLink=Iz,this.normalizeLinkText=Mz,this.utils=i,this.helpers=_E({},a),this.options={},this.configure(e),t&&this.set(t)}Nz.prototype.set=function(e){return _E(this.options,e),this},Nz.prototype.configure=function(e){const t=this;if(wE(e)){const t=e;if(!(e=zz[t]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach((function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)})),this},Nz.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},Nz.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},Nz.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Nz.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Nz.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Nz.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Nz.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const Oz=Nz;let Rz=null;function jz(e,t="assertive",n=7e3){Rz||(Rz=new Fz),Rz.announce(e,t,n)}class Fz{createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",n=7e3){if(!this.node)return;let r=document.createElement("div");r.textContent=e,"assertive"===t?this.assertiveLog.appendChild(r):this.politeLog.appendChild(r),""!==e&&setTimeout((()=>{r.remove()}),n)}clear(e){this.node&&(e&&"assertive"!==e||(this.assertiveLog.innerHTML=""),e&&"polite"!==e||(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}const Bz={none:"toolbar",single:"radiogroup",multiple:"toolbar"};const Lz={none:void 0,single:"radio",multiple:"checkbox"};var Vz;!function(e){e.DoubleClickItemToExpand="double-click-item-to-expand",e.ClickItemToExpand="click-item-to-expand",e.ClickArrowToExpand="click-arrow-to-expand"}(Vz||(Vz={}));var Kz=function(){return Kz=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Kz.apply(this,arguments)},Hz=function(e){return e.ctrlKey||navigator.platform.toUpperCase().indexOf("MAC")>=0&&e.metaKey},$z=function(){function e(e){this.mode=Vz.DoubleClickItemToExpand,this.environment=e}return e.prototype.createInteractiveElementProps=function(e,t,n,r){var o=this;return{onClick:function(e){n.focusItem(),e.shiftKey?n.selectUpTo(!Hz(e)):Hz(e)?r.isSelected?n.unselectItem():n.addToSelectedItems():n.selectItem()},onDoubleClick:function(){n.focusItem(),n.selectItem(),e.isFolder&&n.toggleExpandedState(),e.isFolder&&!o.environment.canInvokePrimaryActionOnItemContainer||n.primaryAction()},onFocus:function(){n.focusItem()},onDragStart:function(e){e.dataTransfer.dropEffect="move",n.startDragging()},onDragOver:function(e){e.preventDefault()},draggable:r.canDrag&&!r.isRenaming,tabIndex:r.isRenaming?void 0:r.isFocused?0:-1}},e}(),Uz=function(){function e(e){this.mode=Vz.ClickItemToExpand,this.environment=e}return e.prototype.createInteractiveElementProps=function(e,t,n,r){var o=this;return{onClick:function(t){n.focusItem(),t.shiftKey?n.selectUpTo(!Hz(t)):Hz(t)?r.isSelected?n.unselectItem():n.addToSelectedItems():(e.isFolder&&n.toggleExpandedState(),n.selectItem(),e.isFolder&&!o.environment.canInvokePrimaryActionOnItemContainer||n.primaryAction())},onFocus:function(){n.focusItem()},onDragStart:function(e){e.dataTransfer.dropEffect="move",n.startDragging()},onDragOver:function(e){e.preventDefault()},draggable:r.canDrag&&!r.isRenaming,tabIndex:r.isRenaming?void 0:r.isFocused?0:-1}},e}(),Wz=function(){function e(e){this.mode=Vz.ClickItemToExpand,this.environment=e}return e.prototype.createInteractiveElementProps=function(e,t,n,r){var o=this;return{onClick:function(t){n.focusItem(),t.shiftKey?n.selectUpTo(!Hz(t)):Hz(t)?r.isSelected?n.unselectItem():n.addToSelectedItems():(n.selectItem(),e.isFolder&&!o.environment.canInvokePrimaryActionOnItemContainer||n.primaryAction())},onFocus:function(){n.focusItem()},onDragStart:function(e){e.dataTransfer.dropEffect="move",n.startDragging()},onDragOver:function(e){e.preventDefault()},draggable:r.canDrag&&!r.isRenaming,tabIndex:r.isRenaming?void 0:r.isFocused?0:-1}},e}(),qz=function(e,t){switch(e){case Vz.DoubleClickItemToExpand:return new $z(t);case Vz.ClickItemToExpand:return new Uz(t);case Vz.ClickArrowToExpand:return new Wz(t);default:throw Error("Unknown interaction mode ".concat(e))}},Gz=l.createContext(null),Zz=function(e){var t=e.children,n=AP(),r=n.defaultInteractionMode,o=(0,l.useMemo)((function(){var e,t,o;return r&&"string"!=typeof r?r.extends?(t=r,o=qz(r.extends,n),{mode:t.mode,createInteractiveElementProps:function(e,n,r,i){return Kz(Kz({},o.createInteractiveElementProps(e,n,r,i)),t.createInteractiveElementProps(e,n,r,i))}}):r:qz(null!==(e=r)&&void 0!==e?e:Vz.ClickItemToExpand,n)}),[]);return l.createElement(Gz.Provider,{value:o},t)},Yz=function(){var e=AP();return(0,l.useCallback)((function(t,n){if("between-items"===t.targetType){if(!e.canReorderItems)return!1}else if("root"===t.targetType){if(!e.canDropOnFolder)return!1}else{var r=e.items[t.targetItem];if(!r||!e.canDropOnFolder&&r.isFolder||!e.canDropOnNonFolder&&!r.isFolder||n.some((function(e){return e.index===t.targetItem})))return!1}return!!(!e.canDropAt||n&&e.canDropAt(n,t))}),[e])},Xz=function(){var e=AP();return(0,l.useCallback)((function(t,n){for(var r=e.linearItems[n],o=r[t].depth,i=t;r[i]&&r[i].depth!==o-1;i-=1);var a=r[i];return a||(a={item:e.trees[n].rootItem,depth:0},i=0),{parent:a,parentLinearIndex:i}}),[e.linearItems,e.trees])},Jz=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},Qz=function(e,t,n){var r=(0,l.useRef)();(0,l.useEffect)((function(){if(r.current){var t=r.current.some((function(e,t){return e!==n[t]}));t&&(r.current=Jz([],n,!0),e())}else r.current=Jz([],n,!0),e()}),Jz(Jz([],t,!0),n,!0))},eP=function(){return eP=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},eP.apply(this,arguments)},tP=function(e,t){return e.map((function(e){return[e,t(e)]})).reduce((function(e,t){var n,r=t[0],o=t[1];return eP(eP({},e),((n={})[r]=o,n))}),{})},nP=function(){return"undefined"!=typeof document?document:void 0};function rP(e){void 0===e&&(e=!1);var t=(0,l.useRef)(new Array);return(0,l.useEffect)((function(){if(e)return function(){};var n=t.current;return function(){return n.forEach((function(e){return cancelAnimationFrame(e)}))}}),[e,t]),(0,l.useCallback)((function(e){var n=requestAnimationFrame((function(){t.current.splice(t.current.indexOf(n),1),e()}));t.current.push(n)}),[t])}var oP=function(e){var t=(0,l.useRef)(e);return t.current=e,t},iP=function(e){var t=oP(e);return(0,l.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.current.apply(t,e)}),[t])},aP=function(){var e=AP();return iP((function(t,n){return n.map((function(n){return[n,e.linearItems[t].findIndex((function(e){return e.item===n.index}))]})).sort((function(e,t){e[0];var n=e[1];t[0];return n-t[1]})).map((function(e){return e[0]}))}))},sP=function(){function e(e,t,n,r,o,i){this.env=e,this.e=t,this.treeId=n,this.linearIndex=r.linearIndex,this.offset=r.offset,this.indentation=r.indentation,this.targetItem=this.env.linearItems[this.treeId][this.linearIndex],this.getParentOfLinearItem=i,this.draggingItems=o}return e.prototype.getEmptyTreeDragPosition=function(){return{targetType:"root",treeId:this.treeId,depth:0,linearIndex:0,targetItem:this.env.trees[this.treeId].rootItem}},e.prototype.maybeRedirectToParent=function(){if(!this.env.canReorderItems&&!this.env.canDropOnNonFolder&&!this.env.items[this.targetItem.item].isFolder){var e=this.getParentOfLinearItem(this.linearIndex,this.treeId),t=e.parentLinearIndex,n=e.parent;this.targetItem=n,this.linearIndex=t}},e.prototype.maybeReparentUpwards=function(){var e,t;if(void 0!==this.indentation){var n=this.env.linearItems[this.treeId],r=n[this.linearIndex].depth,o=r-(null!==(t=null===(e=n[this.linearIndex+1])||void 0===e?void 0:e.depth)&&void 0!==t?t:0);if("bottom"===this.offset&&o>0){for(var i,a=Math.max(r-o,this.indentation),s={parentLinearIndex:this.linearIndex,parent:this.targetItem},l=r;l>=a;l-=1)i=s,s=this.getParentOfLinearItem(s.parentLinearIndex,this.treeId);if(this.indentation!==n[this.linearIndex].depth&&i){var c=this.env.items[s.parent.item].children.indexOf(i.parent.item)+1;if(!this.draggingItems||!this.isDescendant(this.treeId,s.parentLinearIndex+1,this.draggingItems))return{targetType:"between-items",treeId:this.treeId,parentItem:s.parent.item,depth:a,linearIndex:this.linearIndex+1,childIndex:c,linePosition:"bottom"}}}}},e.prototype.maybeRedirectInsideOpenFolder=function(){var e=this.env.linearItems[this.treeId][this.linearIndex+1];!this.env.canDropBelowOpenFolders&&e&&this.targetItem.depth===e.depth-1&&"bottom"===this.offset&&(this.targetItem=e,this.linearIndex+=1,this.offset="top")},e.prototype.maybeMapToBottomOffset=function(){var e=this.env.linearItems[this.treeId][this.linearIndex-1];if(e&&void 0!==(null==e?void 0:e.depth)){var t=e.depth-this.targetItem.depth;"top"===this.offset&&(0===t||t>0&&void 0!==this.indentation)&&(this.offset="bottom",this.linearIndex-=1,this.targetItem=this.env.linearItems[this.treeId][this.linearIndex])}},e.prototype.canDropAtCurrentTarget=function(){var e,t=this,n=this.env.items[this.targetItem.item];return!!(this.offset||this.env.canDropOnNonFolder||n.isFolder)&&(!(!this.offset&&!this.env.canDropOnFolder&&n.isFolder)&&(!(this.offset&&!this.env.canReorderItems)&&!(null===(e=this.draggingItems)||void 0===e?void 0:e.some((function(e){return e.index===t.targetItem.item})))))},e.prototype.getDraggingPosition=function(){if(0===this.env.linearItems[this.treeId].length)return this.getEmptyTreeDragPosition();if(!(!this.draggingItems||this.linearIndex<0||this.linearIndex>=this.env.linearItems[this.treeId].length)){this.maybeRedirectToParent(),this.maybeRedirectInsideOpenFolder(),this.maybeMapToBottomOffset();var e=this.maybeReparentUpwards();if(e)return e;if(!this.areDraggingItemsDescendantOfTarget()&&this.canDropAtCurrentTarget()){var t=this.getParentOfLinearItem(this.linearIndex,this.treeId).parent,n=this.env.items[t.item].children.indexOf(this.targetItem.item)+("top"===this.offset?0:1);return this.offset?{targetType:"between-items",treeId:this.treeId,parentItem:t.item,depth:this.targetItem.depth,linearIndex:this.linearIndex+("top"===this.offset?0:1),childIndex:n,linePosition:this.offset}:{targetType:"item",treeId:this.treeId,parentItem:t.item,targetItem:this.targetItem.item,depth:this.targetItem.depth,linearIndex:this.linearIndex}}}},e.prototype.isDescendant=function(e,t,n){var r=this.getParentOfLinearItem(t,e),o=r.parentLinearIndex,i=r.parent;return!!n.some((function(e){return e.index===i.item}))||0!==i.depth&&this.isDescendant(e,o,n)},e.prototype.areDraggingItemsDescendantOfTarget=function(){return this.draggingItems&&this.isDescendant(this.treeId,this.linearIndex,this.draggingItems)},e}(),lP=function(){var e=(0,l.useRef)("initial"),t=(0,l.useState)(void 0),n=t[0],r=t[1],o=(0,l.useRef)(0),i=AP(),a=Xz(),s=iP((function(t,n,r){if(!r)return!1;var o=r.offset,i=r.linearIndex,a="".concat(n,"__").concat(i,"__").concat(null!=o?o:"","__").concat(r.indentation);return a!==e.current&&(e.current=a,!0)})),c=iP((function(e,t,n){if(n.current){var r=n.current.getBoundingClientRect();if(!function(e,t){return e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom}(e,r)){var a=(e.clientY-r.top)/o.current,s=i.linearItems[t],l=Math.min(Math.max(0,Math.floor(a)),s.length-1);if(0===s.length)return{linearIndex:0,offset:"bottom",indentation:0};var c,u=s[l],d=i.items[u.item],p=i.renderDepthOffset?Math.max(Math.floor((e.clientX-r.left)/i.renderDepthOffset),0):void 0,h=i.canReorderItems?(null==d?void 0:d.isFolder)&&i.canDropOnFolder||i.canDropOnNonFolder?.2:.5:0;return a-.5>=s.length-1?c="bottom":a%1<h?c="top":a%1>1-h&&(c="bottom"),{linearIndex:l,offset:c,indentation:p}}}})),u=iP((function(e,t,r){var o=c(e,t,r);if(s(e,t,o))return!n||!i.canDragAndDrop||!o||e.clientX<0||e.clientY<0?"invalid":new sP(i,e,t,o,n,a).getDraggingPosition()})),d=iP((function(t,n){r(n),e.current="initial",o.current=function(e){var t,n=null===(t=nP())||void 0===t?void 0:t.querySelector('[data-rct-tree="'.concat(e,'"] [data-rct-item-container="true"]'));if(n){var r=getComputedStyle(n);return n.offsetHeight+Math.max(parseFloat(r.marginTop),parseFloat(r.marginBottom))}return 5}(t)}));return{initiateDraggingPosition:d,resetDraggingPosition:iP((function(){r(void 0),e.current="initial",o.current=0})),draggingItems:n,getDraggingPosition:u,itemHeight:o}},cP=l.createContext(null),uP=function(){return l.useContext(cP)},dP=function(e){var t=e.children,n=AP(),r=(0,l.useState)(!1),o=r[0],i=r[1],a=(0,l.useState)({}),s=a[0],c=a[1],u=(0,l.useState)(0),d=u[0],p=u[1],h=(0,l.useState)(),f=h[0],m=h[1],g=function(){var e=AP(),t=Xz(),n=Yz(),r=(0,l.useCallback)((function(e,n,o){var i=t(n,e),a=i.parent,s=i.parentLinearIndex;return!!o.some((function(e){return e.index===a.item}))||0!==a.depth&&r(e,s,o)}),[t]);return(0,l.useCallback)((function(o,i){for(var a,s,l=e.linearItems[o],c=[],u=-1,d=0;d<l.length;d++){var p=l[d],h=p.item,f=p.depth;if(!(-1!==u&&f>u)){u=-1;var m=t(d,o).parent,g=e.items[m.item].children.indexOf(h);if(r(o,d,i))u=f+1;else{var v={targetType:"item",parentItem:m.item,targetItem:h,linearIndex:d,depth:f,treeId:o},y={targetType:"between-items",parentItem:m.item,linePosition:"top",childIndex:g,depth:f,treeId:o,linearIndex:d},b={targetType:"between-items",parentItem:m.item,linePosition:"bottom",linearIndex:d+1,childIndex:g+1,depth:f,treeId:o};!(f===(null!==(s=null===(a=l[d-1])||void 0===a?void 0:a.depth)&&void 0!==s?s:-1))&&n(y,i)&&c.push(y),n(v,i)&&c.push(v),n(b,i)&&c.push(b)}}}return c}),[n,e.items,e.linearItems,t,r])}(),v=rP(),y=aP(),b=lP(),w=b.initiateDraggingPosition,x=b.resetDraggingPosition,S=b.draggingItems,_=b.getDraggingPosition,C=b.itemHeight,E=(0,l.useCallback)((function(e,t){var r;if(n.activeTreeId&&(null===(r=n.viewState[n.activeTreeId])||void 0===r?void 0:r.focusedItem)&&n.linearItems&&t){var o=n.viewState[n.activeTreeId].focusedItem,i=g(n.activeTreeId,t),a=i.findIndex((function(e){return"item"===e.targetType?e.targetItem===o:"between-items"===e.targetType&&n.items[e.parentItem].children[e.childIndex]===o}));p(a?Math.min(a+1,i.length-1):0)}else p(0)}),[n.activeTreeId,n.items,n.linearItems,n.viewState,g]),k=iP((function(){i(!1),c({}),p(0),m(void 0),x()}));Qz((function(){n.activeTreeId&&n.linearItems[n.activeTreeId]&&s[n.activeTreeId]&&E(s[n.activeTreeId],S)}),[S,n.activeTreeId,n.linearItems,E,s],[n.activeTreeId]),Qz((function(){o&&n.activeTreeId&&m(s[n.activeTreeId][d])}),[d,n.activeTreeId,o,s],[d,n.activeTreeId]);var z=Yz(),P=iP((function(e,t,r){if(S){var o=_(e,t,r);o&&("invalid"!==o?function(e){var t;S&&!z(e,S)||(m(e),n.setActiveTree(e.treeId),S&&n.activeTreeId!==e.treeId&&(null===(t=n.onSelectItems)||void 0===t||t.call(n,S.map((function(e){return e.index})),e.treeId)))}(o):m(void 0))}})),A=iP((function(){S&&f&&n.onDrop&&(n.onDrop(S,f),v((function(){var e;null===(e=n.onFocusItem)||void 0===e||e.call(n,S[0],f.treeId),k()})))})),D=(0,l.useCallback)((function(e,t){var r=tP(n.treeIds,(function(t){return g(t,e)}));w(t,e),c(r),n.activeTreeId&&E(r[n.activeTreeId],e)}),[n.activeTreeId,n.treeIds,g,w,E]),T=(0,l.useCallback)((function(){var e,t,r;if(n.canDragAndDrop&&n.activeTreeId){var o=null!==(t=null===(e=n.viewState[n.activeTreeId])||void 0===e?void 0:e.selectedItems)&&void 0!==t?t:[null===(r=n.viewState[n.activeTreeId])||void 0===r?void 0:r.focusedItem];if(0===o.length||void 0===o[0])return;var a=y(n.activeTreeId,o.map((function(e){return n.items[e]})));if(n.canDrag&&!n.canDrag(a))return;D(a,n.activeTreeId),setTimeout((function(){i(!0)}))}}),[n,y,D]),I=(0,l.useCallback)((function(){k()}),[k]),M=(0,l.useCallback)((function(){A(),k()}),[A,k]),N=(0,l.useCallback)((function(){p((function(e){return Math.max(0,e-1)}))}),[]),O=(0,l.useCallback)((function(){n.activeTreeId&&p((function(e){return Math.min(s[n.activeTreeId].length,e+1)}))}),[n.activeTreeId,s]),R=(0,l.useMemo)((function(){return{onStartDraggingItems:D,startProgrammaticDrag:T,abortProgrammaticDrag:I,completeProgrammaticDrag:M,programmaticDragUp:N,programmaticDragDown:O,draggingItems:S,draggingPosition:f,itemHeight:C.current,isProgrammaticallyDragging:o,onDragOverTreeHandler:P,viableDragPositions:s}}),[I,M,S,f,o,C,P,D,O,N,T,s]);return(0,l.useEffect)((function(){return window.addEventListener("dragend",k),window.addEventListener("drop",A),function(){window.removeEventListener("dragend",k),window.removeEventListener("drop",A)}}),[A,k]),l.createElement(cP.Provider,{value:R},t)},pP=function(){return pP=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},pP.apply(this,arguments)},hP=function(e,t,n){return void 0===t&&(t=50),void 0===n&&(n=1e4),new Promise((function(r){var o;e()&&r();var i=setInterval((function(){e()&&o()}),t),a=setTimeout((function(){o()}),n);o=function(){clearInterval(i),clearTimeout(a),r()}}))},fP=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},mP=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},gP=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},vP=l.createContext(null),yP=function(e,t,n){return fP(void 0,void 0,void 0,(function(){var r,o,i,a,s,l,c;return mP(this,(function(u){for(r=function(e){hP((function(){var n;return!!(null===(n=t.current)||void 0===n?void 0:n[e])})).then((function(){var r,o=null===(r=t.current)||void 0===r?void 0:r[e];(null==o?void 0:o.isFolder)&&(n(o),yP(e,t,n))}))},o=0,i=null!==(c=null===(l=null===(s=t.current)||void 0===s?void 0:s[e])||void 0===l?void 0:l.children)&&void 0!==c?c:[];o<i.length;o++)a=i[o],r(a);return[2]}))}))},bP=l.forwardRef((function(e,t){var n=AP(),r=n.onCollapseItem,o=n.items,i=n.trees,a=n.viewState,s=n.onExpandItem,c=n.onFocusItem,u=n.setActiveTree,d=n.onRenameItem,p=n.onSelectItems,h=n.onPrimaryAction,f=n.linearItems,m=uP(),g=m.abortProgrammaticDrag,v=m.completeProgrammaticDrag,y=m.programmaticDragDown,b=m.programmaticDragUp,w=m.startProgrammaticDrag,x=oP(o),S=(0,l.useCallback)((function(e,t){null==r||r(o[e],t)}),[o,r]),_=(0,l.useCallback)((function(e,t){null==s||s(o[e],t)}),[o,s]),C=(0,l.useCallback)((function(e,t,n){void 0===n&&(n=!0),null==c||c(o[e],t,n)}),[o,c]),E=(0,l.useCallback)((function(e,t){void 0===t&&(t=!0),u(e,t)}),[u]),k=(0,l.useCallback)((function(e){var t=f[e],n=t.findIndex((function(t){var n;return t.item===(null===(n=a[e])||void 0===n?void 0:n.focusedItem)})),r=void 0!==n?Math.min(t.length-1,n+1):0,i=o[t[r].item];null==c||c(i,e)}),[o,f,c,a]),z=(0,l.useCallback)((function(e){var t=f[e],n=t.findIndex((function(t){var n;return t.item===(null===(n=a[e])||void 0===n?void 0:n.focusedItem)})),r=void 0!==n?Math.max(0,n-1):0,i=o[t[r].item];null==c||c(i,e)}),[o,f,c,a]),P=(0,l.useCallback)((function(e,t,n){null==d||d(o[e],t,n)}),[o,d]),A=(0,l.useCallback)((function(e,t){null==p||p(e,t)}),[p]),D=(0,l.useCallback)((function(e,t){var n,i;(null===(i=null===(n=a[t])||void 0===n?void 0:n.expandedItems)||void 0===i?void 0:i.includes(e))?null==r||r(o[e],t):null==s||s(o[e],t)}),[o,r,s,a]),T=(0,l.useCallback)((function(e,t){var n,r,o,i,s;(null===(r=null===(n=a[t])||void 0===n?void 0:n.selectedItems)||void 0===r?void 0:r.includes(e))?null==p||p(null!==(i=null===(o=a[t].selectedItems)||void 0===o?void 0:o.filter((function(t){return t!==e})))&&void 0!==i?i:[],t):null==p||p(gP(gP([],null!==(s=a[t].selectedItems)&&void 0!==s?s:[],!0),[e],!1),t)}),[p,a]),I=(0,l.useCallback)((function(e,t){null==h||h(o[e],t)}),[o,h]),M=(0,l.useCallback)((function(e,t){return fP(void 0,void 0,void 0,(function(){var n,r;return mP(this,(function(o){switch(o.label){case 0:return n=t[0],r=t.slice(1),[4,hP((function(){var e;return!!(null===(e=x.current)||void 0===e?void 0:e[n])})).then((function(){var t=x.current[n];return t?(null==s||s(t,e),r.length>0?M(e,r):Promise.resolve()):Promise.resolve()}))];case 1:return o.sent(),[2]}}))}))}),[x,s]),N=(0,l.useCallback)((function(e){return fP(void 0,void 0,void 0,(function(){return mP(this,(function(t){switch(t.label){case 0:return[4,yP(i[e].rootItem,x,(function(t){return null==s?void 0:s(t,e)}))];case 1:return t.sent(),[2]}}))}))}),[x,s,i]),O=(0,l.useCallback)((function(e){for(var t,n,i=0,s=null!==(n=null===(t=a[e])||void 0===t?void 0:t.expandedItems)&&void 0!==n?n:[];i<s.length;i++){var l=s[i];null==r||r(o[l],e)}}),[o,r,a]),R=(0,l.useMemo)((function(){return{collapseItem:S,expandItem:_,focusItem:C,focusTree:E,moveFocusDown:k,moveFocusUp:z,renameItem:P,selectItems:A,toggleItemExpandedState:D,toggleItemSelectStatus:T,invokePrimaryAction:I,expandAll:N,expandSubsequently:M,collapseAll:O,abortProgrammaticDrag:g,completeProgrammaticDrag:v,moveProgrammaticDragPositionDown:y,moveProgrammaticDragPositionUp:b,startProgrammaticDrag:w}}),[S,_,C,E,k,z,P,A,D,T,I,N,M,O,g,v,y,b,w]);return function(e,t){var n=AP(),r=uP();(0,l.useImperativeHandle)(e,(function(){return pP(pP(pP({},t),n),{treeEnvironmentContext:n,dragAndDropContext:r})}))}(t,R),l.createElement(vP.Provider,{value:R},e.children)})),wP=function(){return wP=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wP.apply(this,arguments)},xP=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return!!e})).join(" ")},SP=function(e){var t=e.renderItem,n=e.renderItemTitle,r=e.renderItemArrow,o=e.renderRenameInput,i=e.renderItemsContainer,a=e.renderTreeContainer,s=e.renderDragBetweenLine,c=e.renderSearchInput,u=e.renderLiveDescriptorContainer,d=e.renderDepthOffset,p=(0,l.useMemo)((function(){return function(e,t){return{renderItemTitle:function(e){var t=e.title,n=e.context,r=e.info;if(!r.isSearching||!n.isSearchMatching)return t;var o=t.toLowerCase().indexOf(r.search.toLowerCase());return l.createElement(l.Fragment,null,o>0&&l.createElement("span",null,t.slice(0,o)),l.createElement("span",{className:"rct-tree-item-search-highlight"},t.slice(o,o+r.search.length)),o+r.search.length<t.length&&l.createElement("span",null,t.slice(o+r.search.length,t.length)))},renderItemArrow:function(e){var t=e.item,n=e.context;return l.createElement("div",wP({className:xP(t.isFolder&&"rct-tree-item-arrow-isFolder",n.isExpanded&&"rct-tree-item-arrow-expanded","rct-tree-item-arrow")},n.arrowProps),t.isFolder&&(n.isExpanded?l.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 16 16",enableBackground:"new 0 0 16 16",xmlSpace:"preserve"},l.createElement("g",null,l.createElement("g",null,l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z",className:"rct-tree-item-arrow-path"})))):l.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 16 16",enableBackground:"new 0 0 16 16",xmlSpace:"preserve"},l.createElement("g",null,l.createElement("g",null,l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z",className:"rct-tree-item-arrow-path"}))))))},renderItem:function(t){var n=t.item,r=t.depth,o=t.children,i=t.title,a=t.context,s=t.arrow,c=a.isRenaming?"div":"button",u=a.isRenaming?void 0:"button";return l.createElement("li",wP({},a.itemContainerWithChildrenProps,{className:xP("rct-tree-item-li",n.isFolder&&"rct-tree-item-li-isFolder",a.isSelected&&"rct-tree-item-li-selected",a.isExpanded&&"rct-tree-item-li-expanded",a.isFocused&&"rct-tree-item-li-focused",a.isDraggingOver&&"rct-tree-item-li-dragging-over",a.isSearchMatching&&"rct-tree-item-li-search-match")}),l.createElement("div",wP({},a.itemContainerWithoutChildrenProps,{style:{"--depthOffset":"".concat((r+1)*e,"px")},className:xP("rct-tree-item-title-container",n.isFolder&&"rct-tree-item-title-container-isFolder",a.isSelected&&"rct-tree-item-title-container-selected",a.isExpanded&&"rct-tree-item-title-container-expanded",a.isFocused&&"rct-tree-item-title-container-focused",a.isDraggingOver&&"rct-tree-item-title-container-dragging-over",a.isSearchMatching&&"rct-tree-item-title-container-search-match")}),s,l.createElement(c,wP({type:u},a.interactiveElementProps,{className:xP("rct-tree-item-button",n.isFolder&&"rct-tree-item-button-isFolder",a.isSelected&&"rct-tree-item-button-selected",a.isExpanded&&"rct-tree-item-button-expanded",a.isFocused&&"rct-tree-item-button-focused",a.isDraggingOver&&"rct-tree-item-button-dragging-over",a.isSearchMatching&&"rct-tree-item-button-search-match")}),i)),o)},renderRenameInput:function(e){var t=e.inputProps,n=e.inputRef,r=e.submitButtonProps,o=e.submitButtonRef,i=e.formProps;return l.createElement("form",wP({},i,{className:"rct-tree-item-renaming-form"}),l.createElement("input",wP({},t,{ref:n,className:"rct-tree-item-renaming-input"})),l.createElement("input",wP({},r,{ref:o,type:"submit",className:"rct-tree-item-renaming-submit-button",value:"🗸"})))},renderTreeContainer:function(e){var n=e.children,r=e.containerProps,o=e.info;return l.createElement("div",{className:xP("rct-tree-root",o.isFocused&&"rct-tree-root-focus",o.isRenaming&&"rct-tree-root-renaming",o.areItemsSelected&&"rct-tree-root-itemsselected",t&&"rct-rtl")},l.createElement("div",wP({},r,{style:wP({minHeight:"30px"},r.style)}),n))},renderItemsContainer:function(e){var t=e.children,n=e.containerProps;return l.createElement("ul",wP({},n,{className:"rct-tree-items-container"}),t)},renderDragBetweenLine:function(t){var n=t.draggingPosition,r=t.lineProps;return l.createElement("div",wP({},r,{style:{left:"".concat(n.depth*e,"px")},className:xP("rct-tree-drag-between-line","between-items"===n.targetType&&"top"===n.linePosition&&"rct-tree-drag-between-line-top","between-items"===n.targetType&&"bottom"===n.linePosition&&"rct-tree-drag-between-line-bottom")}))},renderSearchInput:function(e){var t=e.inputProps;return l.createElement("div",{className:xP("rct-tree-search-input-container")},l.createElement("span",{className:"rct-tree-input-icon"}),l.createElement("input",wP({},t,{className:xP("rct-tree-search-input")})))},renderLiveDescriptorContainer:function(e){var t=e.tree,n=e.children;return l.createElement("div",{id:"rct-livedescription-".concat(t.treeId),style:{clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}},n)},renderDepthOffset:e}}(null!=d?d:10)}),[d]),h={renderItem:t,renderItemTitle:n,renderItemArrow:r,renderRenameInput:o,renderItemsContainer:i,renderTreeContainer:a,renderDragBetweenLine:s,renderSearchInput:c,renderLiveDescriptorContainer:u,renderDepthOffset:d},f=Object.entries(p).reduce((function(e,t){var n=t[0],r=t[1],o=n;return e[o]=h[o]?h[o]:r,e}),{});return f.renderItem.displayName="RenderItem",f.renderItemTitle.displayName="RenderItemTitle",f.renderItemArrow.displayName="RenderItemArrow",f.renderRenameInput.displayName="RenderRenameInput",f.renderItemsContainer.displayName="RenderItemsContainer",f.renderTreeContainer.displayName="RenderTreeContainer",f.renderDragBetweenLine.displayName="RenderDragBetweenLine",f.renderSearchInput.displayName="RenderSearchInput",f},_P=function(e,t,n,r){var o,i,a;void 0===r&&(r=0);for(var s=[],l=0,c=null!==(i=null===(o=n[e])||void 0===o?void 0:o.children)&&void 0!==i?i:[];l<c.length;l++){var u=c[l],d=n[u];s.push({item:u,depth:r}),d&&d.isFolder&&d.children&&(null===(a=t.expandedItems)||void 0===a?void 0:a.includes(u))&&s.push.apply(s,_P(u,t,n,r+1))}return s},CP=function(){return CP=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},CP.apply(this,arguments)},EP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},kP=function(e){var t=e.onExpandItem,n=e.onCollapseItem,r=e.onDrop,o=EP(e,["onExpandItem","onCollapseItem","onDrop"]),i=(0,l.useState)({}),a=i[0],s=i[1],c=(0,l.useState)(),u=c[0],d=c[1],p=(0,l.useMemo)((function(){return Object.keys(a)}),[a]),h=o.onFocusItem,f=o.autoFocus,m=o.onRegisterTree,g=o.onUnregisterTree,v=o.items,y=o.viewState,b=oP(h),w=oP(y),x=(0,l.useMemo)((function(){return tP(p,(function(e){var t;return _P(a[e].rootItem,null!==(t=y[e])&&void 0!==t?t:{},v)}))}),[a,v,p,y]),S=(0,l.useCallback)((function(e,t,n){var r,o,i,a,s,l,c,u,d;if(void 0===n&&(n=!0),(null==f||f)&&n){var p=null!==(o=null===(r=nP())||void 0===r?void 0:r.querySelector('[data-rct-tree="'.concat(t,'"] [data-rct-item-id="').concat(e.index,'"]')))&&void 0!==o?o:null===(i=nP())||void 0===i?void 0:i.querySelector('[data-rct-tree="'.concat(t,'"] [data-rct-item-id]'));"true"!==(null===(l=null===(s=null===(a=nP())||void 0===a?void 0:a.activeElement)||void 0===s?void 0:s.attributes.getNamedItem("data-rct-search-input"))||void 0===l?void 0:l.value)?null===(c=null==p?void 0:p.focus)||void 0===c||c.call(p):function(e){var t,n,r,o;if(e)if(e.scrollIntoViewIfNeeded)e.scrollIntoViewIfNeeded();else{var i=e.getBoundingClientRect();i.top>=0&&i.left>=0&&i.bottom<=(window.innerHeight||!!(null===(n=null===(t=nP())||void 0===t?void 0:t.documentElement)||void 0===n?void 0:n.clientHeight))&&i.right<=(window.innerWidth||!!(null===(o=null===(r=nP())||void 0===r?void 0:r.documentElement)||void 0===o?void 0:o.clientWidth))||e.scrollIntoView()}}(p)}(null===(u=w.current[t])||void 0===u?void 0:u.focusedItem)!==e.index&&(null===(d=b.current)||void 0===d||d.call(b,e,t))}),[f,b,w]),_=(0,l.useCallback)((function(e){s((function(t){var n;return CP(CP({},t),((n={})[e.treeId]=e,n))})),null==m||m(e)}),[m]),C=(0,l.useCallback)((function(e){null==g||g(a[e]),delete a[e],s(a)}),[g,a]),E=(0,l.useCallback)((function(e,t){null==n||n(e,t),s((function(e){return e}))}),[n]),k=(0,l.useCallback)((function(e,n){null==t||t(e,n),s((function(e){return e}))}),[t]),z=(0,l.useCallback)((function(e,t){null==r||r(e,t),s((function(e){return e}))}),[r]),P=(0,l.useCallback)((function(e){var t,n,r=null===(t=nP())||void 0===t?void 0:t.querySelector('[data-rct-tree="'.concat(e,'"] [data-rct-item-focus="true"]'));null===(n=null==r?void 0:r.focus)||void 0===n||n.call(r)}),[]),A=(0,l.useCallback)((function(e,t){void 0===t&&(t=!0);var n=function(e){var n,r;t&&(null==f||f)&&e&&!(null===(r=null===(n=nP())||void 0===n?void 0:n.querySelector('[data-rct-tree="'.concat(e,'"]')))||void 0===r?void 0:r.contains(document.activeElement))&&P(e)};if("function"==typeof e)d((function(t){var r=e(t);return r!==t&&n(r),r}));else{var r=e;d(r),n(r)}}),[f,P]),D=SP(o);return CP(CP(CP({},D),o),{onFocusItem:S,registerTree:_,unregisterTree:C,onExpandItem:k,onCollapseItem:E,onDrop:z,setActiveTree:A,treeIds:p,trees:a,activeTreeId:u,linearItems:x})},zP=function(){return zP=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zP.apply(this,arguments)},PP=l.createContext(null),AP=function(){return(0,l.useContext)(PP)},DP=l.forwardRef((function(e,t){for(var n,r,o,i=kP(e),a=e.viewState,s=0,c=Object.keys(i.trees);s<c.length;s++){var u=c[s];!(null===(n=a[u])||void 0===n?void 0:n.focusedItem)&&i.trees[u]&&(a[u]=zP(zP({},a[u]),{focusedItem:null===(o=null===(r=e.items[i.trees[u].rootItem])||void 0===r?void 0:r.children)||void 0===o?void 0:o[0]}))}return l.createElement(PP.Provider,{value:i},l.createElement(Zz,null,l.createElement(dP,null,l.createElement(bP,{ref:t},e.children))))})),TP=function(e){var t,n=e.treeId,r=uP(),o=r.draggingPosition,i=r.itemHeight,a=aA().renderers;if(!(o&&"between-items"===o.targetType&&o.treeId===n))return null;return l.createElement("div",{style:{position:"absolute",left:"0",right:"0",top:"".concat((null!==(t=null==o?void 0:o.linearIndex)&&void 0!==t?t:0)*i,"px")}},a.renderDragBetweenLine({draggingPosition:o,lineProps:{onDragOver:function(e){return e.preventDefault()}}}))},IP=function(e,t,n){var r=iP(n);(0,l.useEffect)((function(){return e?(e.addEventListener(t,r),function(){return e.removeEventListener(t,r)}):function(){}}),[e,r,t])},MP=function(e,t,n){IP(nP(),"keydown",(function(r){n&&n&&e.toLowerCase()===r.key.toLowerCase()&&t(r)}))},NP={expandSiblings:["control+*"],moveFocusToFirstItem:["home"],moveFocusToLastItem:["end"],primaryAction:["enter"],renameItem:["f2"],abortRenameItem:["escape"],toggleSelectItem:["control+space"],abortSearch:["escape","enter"],startSearch:[],selectAll:["control+a"],startProgrammaticDnd:["control+d"],completeProgrammaticDnd:["enter"],abortProgrammaticDnd:["escape"]},OP=function(){return OP=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},OP.apply(this,arguments)},RP=function(){var e=AP();return(0,l.useMemo)((function(){return e.keyboardBindings?OP(OP({},NP),e.keyboardBindings):NP}),[e.keyboardBindings])},jP=["input","textarea"],FP=function(e,t,n,r){void 0===r&&(r=!1);var o=(0,l.useRef)([]),i=RP(),a=rP(),s=(0,l.useMemo)((function(){return i[e].map((function(e){return e.split("+")}))}),[e,i]);IP(nP(),"keydown",(function(e){var t;if(!1!==n&&(!jP.includes(null===(t=e.target.tagName)||void 0===t?void 0:t.toLowerCase())&&!e.target.isContentEditable||r)&&!o.current.includes(e.key)){o.current.push(e.key);var i=o.current.map((function(e){return e.toLowerCase()})),a=s.map((function(e){return i.map((function(t){return e.includes(t.toLowerCase())})).reduce((function(e,t){return e&&t}),!0)})).reduce((function(e,t){return e||t}),!1);a&&(o.current.length>1||!/^[a-zA-Z]$/.test(e.key))&&e.preventDefault()}})),IP(nP(),"keyup",(function(e){if(!1!==n){var r=o.current.map((function(e){return e.toLowerCase()})),i=s.map((function(e){return e.map((function(e){return r.includes(e.toLowerCase())})).reduce((function(e,t){return e&&t}),!0)})).reduce((function(e,t){return e||t}),!1);i&&a((function(){return t(e)})),o.current=o.current.filter((function(t){return t!==e.key}))}}))},BP=function(){var e,t=aA().treeId;return null!==(e=AP().viewState[t])&&void 0!==e?e:{}},LP=function(e){return AP().linearItems[e]},VP=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},KP=function(e){var t=BP(),n=aA().treeId,r=LP(n),o=AP().onSelectItems,i=function(e){var t=(0,l.useRef)({target:e,previous:void 0});return t.current.target!==e&&(t.current.previous=t.current.target,t.current.target=e),t.current.previous}(t.focusedItem);return(0,l.useCallback)((function(a,s){var l,c;void 0===s&&(s=!1);var u=a.index,d=function(e,t){var r=VP(VP([],s?[]:e,!0),t.filter((function(t){return s||!e.includes(t)})),!0);null==o||o(r,n)};if(t&&t.selectedItems&&t.selectedItems.length>0){var p=t.focusedItem===u?i:t.focusedItem,h="last-focus"===e?r.findIndex((function(e){return p===e.item})):r.findIndex((function(e){var n;return null===(n=t.selectedItems)||void 0===n?void 0:n.includes(e.item)})),f=r.findIndex((function(e){return e.item===u}));if(h<f){var m=r.slice(h,f+1).map((function(e){return e.item}));d(null!==(l=t.selectedItems)&&void 0!==l?l:[],m)}else{m=r.slice(f,h+1).map((function(e){return e.item}));d(null!==(c=t.selectedItems)&&void 0!==c?c:[],m)}}else null==o||o([u],n)}),[t,o,n,e,r,i])},HP=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},$P=function(){var e,t=AP(),n=aA(),r=n.treeId,o=n.setRenamingItem,i=n.setSearch,a=n.renamingItem,s=LP(r),l=uP(),c=BP(),u=function(){var e=aA().treeId,t=AP(),n=t.onFocusItem,r=t.items,o=LP(e),i=BP();return iP((function(t){var a,s=t(null!==(a=o.findIndex((function(e){return e.item===i.focusedItem})))&&void 0!==a?a:0,o),l=Math.max(0,Math.min(o.length-1,s)),c=r[o[l].item];return null==n||n(c,e),c}))}(),d=KP("first-selected"),p=t.activeTreeId===r,h=!!a,f=!t.disableArrowKeys&&p&&!h;MP("arrowdown",(function(e){if(e.preventDefault(),l.isProgrammaticallyDragging)l.programmaticDragDown();else{var t=u((function(e){return e+1}));e.shiftKey&&d(t)}}),f),MP("arrowup",(function(e){if(e.preventDefault(),l.isProgrammaticallyDragging)l.programmaticDragUp();else{var t=u((function(e){return e-1}));e.shiftKey&&d(t)}}),f),FP("moveFocusToFirstItem",(function(e){e.preventDefault(),u((function(){return 0}))}),p&&!l.isProgrammaticallyDragging&&!h),FP("moveFocusToLastItem",(function(e){e.preventDefault(),u((function(e,t){return t.length-1}))}),p&&!l.isProgrammaticallyDragging&&!h),MP("arrowright",(function(e){e.preventDefault(),u((function(e,n){var o,i,a=t.items[n[e].item];if(a.isFolder){if(null===(o=c.expandedItems)||void 0===o?void 0:o.includes(a.index))return e+1;null===(i=t.onExpandItem)||void 0===i||i.call(t,a,r)}return e}))}),f&&!l.isProgrammaticallyDragging),MP("arrowleft",(function(e){e.preventDefault(),u((function(e,n){var o,i,a=t.items[n[e].item],s=n[e].depth;if(a.isFolder&&(null===(o=c.expandedItems)||void 0===o?void 0:o.includes(a.index)))null===(i=t.onCollapseItem)||void 0===i||i.call(t,a,r);else if(s>0){for(var l=e;n[l].depth!==s-1;l-=1);return l}return e}))}),f&&!l.isProgrammaticallyDragging),FP("primaryAction",(function(e){var n,o;e.preventDefault(),void 0!==c.focusedItem&&(null===(n=t.onSelectItems)||void 0===n||n.call(t,[c.focusedItem],r),null===(o=t.onPrimaryAction)||void 0===o||o.call(t,t.items[c.focusedItem],r))}),p&&!l.isProgrammaticallyDragging&&!h),FP("toggleSelectItem",(function(e){var n,o,i;e.preventDefault(),void 0!==c.focusedItem&&(c.selectedItems&&c.selectedItems.includes(c.focusedItem)?null===(n=t.onSelectItems)||void 0===n||n.call(t,c.selectedItems.filter((function(e){return e!==c.focusedItem})),r):null===(o=t.onSelectItems)||void 0===o||o.call(t,HP(HP([],null!==(i=c.selectedItems)&&void 0!==i?i:[],!0),[c.focusedItem],!1),r))}),p&&!l.isProgrammaticallyDragging&&!h),FP("selectAll",(function(e){var n;e.preventDefault(),null===(n=t.onSelectItems)||void 0===n||n.call(t,s.map((function(e){return e.item})),r)}),p&&!l.isProgrammaticallyDragging&&!h),FP("renameItem",(function(e){var n;if(void 0!==c.focusedItem){e.preventDefault();var i=t.items[c.focusedItem];!1!==i.canRename&&(null===(n=t.onStartRenamingItem)||void 0===n||n.call(t,i,r),o(i.index))}}),p&&(null===(e=t.canRename)||void 0===e||e)&&!h),FP("startSearch",(function(e){var t,n;e.preventDefault(),i(""),null===(n=null===(t=document.querySelector('[data-rct-search-input="true"]'))||void 0===t?void 0:t.focus)||void 0===n||n.call(t)}),p&&!l.isProgrammaticallyDragging&&!h),FP("startProgrammaticDnd",(function(e){e.preventDefault(),l.startProgrammaticDrag()}),p&&!h),FP("completeProgrammaticDnd",(function(e){e.preventDefault(),l.completeProgrammaticDrag()}),p&&l.isProgrammaticallyDragging&&!h),FP("abortProgrammaticDnd",(function(e){e.preventDefault(),l.abortProgrammaticDrag()}),p&&l.isProgrammaticallyDragging&&!h)},UP=function(e,t,n){return n.toLowerCase().includes(e.toLowerCase())},WP=function(){return WP=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},WP.apply(this,arguments)},qP=function(e){var t,n=e.containerRef,r=aA(),o=r.search,i=r.setSearch,a=r.treeId,s=r.renderers,l=r.renamingItem,c=AP();BP();var u=c.activeTreeId===a,d=rP();!function(){var e=AP(),t=e.doesSearchMatchItem,n=e.items,r=e.getItemTitle,o=e.onFocusItem,i=aA(),a=i.search,s=i.treeId,l=LP(s),c=rP();Qz((function(){a&&a.length>0&&c((function(){var e=l.find((function(e){var o=e.item;return(null!=t?t:UP)(a,n[o],r(n[o]))}));e&&(null==o||o(n[e.item],s))}))}),[t,r,l,n,o,a,s,c],[a])}();var p=function(){var e,t,n;if(i(null),null===(e=c.autoFocus)||void 0===e||e){var r=null===(t=nP())||void 0===t?void 0:t.querySelector('[data-rct-tree="'.concat(a,'"] [data-rct-item-focus="true"]'));null===(n=null==r?void 0:r.focus)||void 0===n||n.call(r)}};return FP("abortSearch",(function(){d((function(){p()}))}),u&&null!==o,!0),IP(n,"keydown",(function(e){var t,n,r=e.key.charCodeAt(0);null!==(t=c.canSearch)&&void 0!==t&&!t||null!==(n=c.canSearchByStartingTyping)&&void 0!==n&&!n||!u||null!==o||l||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey||!(r>=48&&r<=57||r>=97&&r<=122)||i("")})),null!==(t=c.canSearch)&&void 0!==t&&!t||null===o?null:s.renderSearchInput({inputProps:WP({value:o,onChange:function(e){return i(e.target.value)},onBlur:function(){p()},ref:function(e){var t;null===(t=null==e?void 0:e.focus)||void 0===t||t.call(e)},"aria-label":"Search for items"},{"data-rct-search-input":"true"})})},GP={introduction:"\n    <p>Accessibility guide for tree {treeLabel}.</p>\n    <p>\n      Navigate the tree with the arrow keys. Common tree hotkeys apply. Further keybindings are available:\n    </p>\n    <ul>\n      <li>{keybinding:primaryAction} to execute primary action on focused item</li>\n      <li>{keybinding:renameItem} to start renaming the focused item</li>\n      <li>{keybinding:abortRenameItem} to abort renaming an item</li>\n      <li>{keybinding:startProgrammaticDnd} to start dragging selected items</li>\n    </ul>\n  ",renamingItem:"\n    <p>Renaming the item {renamingItem}.</p>\n    <p>Use the keybinding {keybinding:abortRenameItem} to abort renaming.</p>\n  ",searching:"\n    <p>Searching</p>\n  ",programmaticallyDragging:"\n    <p>Dragging items {dragItems}.</p>\n    <p>Press the arrow keys to move the drag target.</p>\n    <p>Press {keybinding:completeProgrammaticDnd} to drop or {keybinding:abortProgrammaticDnd} to abort.</p>\n  ",programmaticallyDraggingTarget:"\n    <p>Drop target is {dropTarget}.</p>\n  "},ZP=function(e,t,n,r,o){var i=function(e){return t.getItemTitle(t.items[e])};return e.replace(/({[^\s}]+)}/g,(function(e){var a,s,l,c=e.slice(1,-1);switch(c){case"treeLabel":return null!==(a=r.treeLabel)&&void 0!==a?a:"";case"renamingItem":return r.renamingItem?i(r.renamingItem):"None";case"dragItems":return null!==(l=null===(s=n.draggingItems)||void 0===s?void 0:s.map((function(e){return t.getItemTitle(e)})).join(", "))&&void 0!==l?l:"None";case"dropTarget":if(!n.draggingPosition)return"None";if("item"===n.draggingPosition.targetType||"root"===n.draggingPosition.targetType)return"within ".concat(i(n.draggingPosition.targetItem));var u=t.items[n.draggingPosition.parentItem],d=t.getItemTitle(u);return 0===n.draggingPosition.childIndex?"within ".concat(d," at the start"):"within ".concat(d," after ").concat(i(u.children[n.draggingPosition.childIndex-1]));default:if(c.startsWith("keybinding:"))return o[c.slice(11)][0];throw Error("Unknown live descriptor variable {".concat(c,"}"))}}))},YP=function(e){var t=e.children,n=e.live;return l.createElement("div",{"aria-live":n,dangerouslySetInnerHTML:{__html:t}})},XP=function(){var e=AP(),t=aA(),n=uP(),r=RP(),o=(0,l.useMemo)((function(){var t;return null!==(t=e.liveDescriptors)&&void 0!==t?t:GP}),[e.liveDescriptors]),i=t.renderers.renderLiveDescriptorContainer;return t.treeInformation.isRenaming?l.createElement(i,{tree:t},l.createElement(YP,{live:"polite"},ZP(o.renamingItem,e,n,t,r))):t.treeInformation.isSearching?l.createElement(i,{tree:t},l.createElement(YP,{live:"polite"},ZP(o.searching,e,n,t,r))):t.treeInformation.isProgrammaticallyDragging?l.createElement(i,{tree:t},l.createElement(YP,{live:"polite"},ZP(o.programmaticallyDragging,e,n,t,r)),l.createElement(YP,{live:"assertive"},ZP(o.programmaticallyDraggingTarget,e,n,t,r))):l.createElement(i,{tree:t},l.createElement(YP,{live:"off"},ZP(o.introduction,e,n,t,r)))},JP=function(){var e;return null===(e=AP().showLiveDescription)||void 0===e||e?l.createElement(XP,null):null},QP=function(){return QP=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},QP.apply(this,arguments)},eA=function(){var e=aA(),t=e.treeId,n=e.rootItem,r=e.renderers,o=e.treeInformation,i=AP(),a=(0,l.useRef)(),s=uP();$P(),function(e,t,n){var r=(0,l.useState)(!1),o=r[0],i=r[1],a=(0,l.useRef)(!1),s=rP();IP(e,"focusin",(function(){o||(i(!0),null==t||t()),a.current&&(a.current=!1)})),IP(e,"focusout",(function(){a.current=!0,s((function(){a.current&&!(null==e?void 0:e.contains(document.activeElement))&&(null==n||n(),a.current=!1,i(!1))}))}))}(a.current,(function(){i.setActiveTree(t)}),(function(){i.setActiveTree((function(e){return e===t?void 0:e}))}));var c=i.items[n].children,u=l.createElement(l.Fragment,null,l.createElement(JP,null),l.createElement(lA,{depth:0,parentId:n},null!=c?c:[]),l.createElement(TP,{treeId:t}),l.createElement(qP,{containerRef:a.current})),d=QP({onDragOver:function(e){e.preventDefault(),s.onDragOverTreeHandler(e,t,a)},onMouseDown:function(){return s.abortProgrammaticDrag()},ref:a,style:{position:"relative"},role:"tree","aria-label":o.treeLabelledBy?void 0:o.treeLabel,"aria-labelledby":o.treeLabelledBy},{"data-rct-tree":t});return r.renderTreeContainer({children:u,info:o,containerProps:d})},tA=function(){return tA=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},tA.apply(this,arguments)},nA=l.createContext(null),rA=l.forwardRef((function(e,t){AP();var n=aA();uP();var r=l.useContext(vP),o=(0,l.useMemo)((function(){return{abortRenamingItem:function(){n.setRenamingItem(null)},abortSearch:function(){n.setSearch(null)},collapseItem:function(e){r.collapseItem(e,n.treeId)},completeRenamingItem:function(){},expandItem:function(e){r.expandItem(e,n.treeId)},focusItem:function(e,t){void 0===t&&(t=!0),r.focusItem(e,n.treeId,t)},focusTree:function(e){void 0===e&&(e=!0),r.focusTree(n.treeId,e)},invokePrimaryAction:function(e){r.invokePrimaryAction(e,n.treeId)},moveFocusDown:function(){r.moveFocusDown(n.treeId)},moveFocusUp:function(){r.moveFocusUp(n.treeId)},renameItem:function(e,t){r.renameItem(e,t,n.treeId)},selectItems:function(e){r.selectItems(e,n.treeId)},setSearch:function(e){n.setSearch(e)},startRenamingItem:function(e){n.setRenamingItem(e)},stopRenamingItem:function(){n.setRenamingItem(null)},toggleItemExpandedState:function(e){r.toggleItemExpandedState(e,n.treeId)},toggleItemSelectStatus:function(e){r.toggleItemSelectStatus(e,n.treeId)},expandAll:function(){r.expandAll(n.treeId)},collapseAll:function(){r.collapseAll(n.treeId)},expandSubsequently:function(e){return r.expandSubsequently(n.treeId,e)}}}),[r,n]);return function(e,t){var n=AP(),r=aA(),o=uP();(0,l.useImperativeHandle)(e,(function(){return tA(tA(tA({},t),{treeEnvironmentContext:n,dragAndDropContext:o,treeContext:r}),r.treeInformation)}))}(t,o),l.createElement(nA.Provider,{value:o},e.children)})),oA=function(){return oA=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oA.apply(this,arguments)},iA=l.createContext(null),aA=function(){return(0,l.useContext)(iA)},sA=l.forwardRef((function(e,t){var n,r=AP(),o=(0,l.useMemo)((function(){return oA(oA({},r),e)}),[e,r]),i=(0,l.useState)(null),a=i[0],s=i[1],c=(0,l.useState)(null),u=c[0],d=c[1],p=r.items[e.rootItem],h=r.viewState[e.treeId];(0,l.useEffect)((function(){return r.registerTree({treeId:e.treeId,rootItem:e.rootItem}),function(){return r.unregisterTree(e.treeId)}}),[e.treeId,e.rootItem]);var f=function(e,t,n){var r,o=AP(),i=uP(),a=null===(r=o.viewState[e.treeId])||void 0===r?void 0:r.selectedItems;return(0,l.useMemo)((function(){var r,s;return{isFocused:o.activeTreeId===e.treeId,isRenaming:!!t,areItemsSelected:(null!==(r=null==a?void 0:a.length)&&void 0!==r?r:0)>0,isSearching:null!==n,search:n,isProgrammaticallyDragging:null!==(s=i.isProgrammaticallyDragging)&&void 0!==s&&s,treeId:e.treeId,rootItem:e.rootItem,treeLabel:e.treeLabel,treeLabelledBy:e.treeLabelledBy}}),[o.activeTreeId,e.treeId,e.rootItem,e.treeLabel,e.treeLabelledBy,t,null==a?void 0:a.length,n,i.isProgrammaticallyDragging])}(e,u,a),m=(0,l.useMemo)((function(){return{treeId:e.treeId,rootItem:e.rootItem,treeLabel:e.treeLabel,treeLabelledBy:e.treeLabelledBy,getItemsLinearly:function(){return _P(e.rootItem,null!=h?h:{},r.items)},treeInformation:f,search:a,setSearch:s,renamingItem:u,setRenamingItem:d,renderers:o}}),[r.items,e.rootItem,e.treeId,e.treeLabel,e.treeLabelledBy,u,o,a,f,h]);return void 0===p?(null===(n=r.onMissingItems)||void 0===n||n.call(r,[e.rootItem]),null):l.createElement(iA.Provider,{value:m},l.createElement(rA,{ref:t},l.createElement(eA,null)))})),lA=function(e){for(var t=aA(),n=t.renderers,r=t.treeInformation,o=[],i=0,a=e.children;i<a.length;i++){var s=a[i];o.push(l.createElement(hA,{key:s,itemIndex:s,depth:e.depth}))}if(0===o.length)return null;var c={role:0!==e.depth?"group":void 0};return n.renderItemsContainer({children:o,info:r,containerProps:c,depth:e.depth,parentId:e.parentId})},cA=function(){return cA=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},cA.apply(this,arguments)},uA=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},dA=function(e){var t,n,r,o,i=aA(),a=i.treeId,s=i.search,c=i.renamingItem,u=i.setRenamingItem,d=AP(),p=l.useContext(Gz),h=uP(),f=KP("last-focus"),m=e&&d.getItemTitle(e),g=aP(),v=(0,l.useMemo)((function(){var t;return!(null===s||0===s.length||!e||!m)&&(null!==(t=d.doesSearchMatchItem)&&void 0!==t?t:UP)(s,e,m)}),[s,e,m,d.doesSearchMatchItem]),y=e&&(null===(n=null===(t=d.viewState[a])||void 0===t?void 0:t.selectedItems)||void 0===n?void 0:n.includes(e.index)),b=e&&(null===(o=null===(r=d.viewState[a])||void 0===r?void 0:r.expandedItems)||void 0===o?void 0:o.includes(e.index)),w=e&&c===e.index;return(0,l.useMemo)((function(){var t,n,r,o,i,s,l,c,m;if(e){var x=d.viewState[a],S=(null!==(n=null===(t=null==x?void 0:x.selectedItems)||void 0===t?void 0:t.map((function(e){return d.items[e]})))&&void 0!==n?n:(null==x?void 0:x.focusedItem)?[d.items[null==x?void 0:x.focusedItem]]:[]).filter((function(e){return!!e})),_=!!S.find((function(t){return t.index===e.index})),C=S&&(null===(o=null===(r=d.canDrag)||void 0===r?void 0:r.call(d,S))||void 0===o||o)&&S.map((function(e){var t;return null===(t=e.canMove)||void 0===t||t})).reduce((function(e,t){return e&&t}),!0),E=(null===(s=null===(i=d.canDrag)||void 0===i?void 0:i.call(d,[e]))||void 0===s||s)&&(null===(l=e.canMove)||void 0===l||l),k=d.canDragAndDrop&&(_&&C||!_&&E),z=d.canDragAndDrop&&!!(null===(m=null===(c=h.viableDragPositions)||void 0===c?void 0:c[a])||void 0===m?void 0:m.find((function(t){return"item"===t.targetType&&t.targetItem===e.index}))),P={primaryAction:function(){var t;null===(t=d.onPrimaryAction)||void 0===t||t.call(d,d.items[e.index],a)},collapseItem:function(){var t;null===(t=d.onCollapseItem)||void 0===t||t.call(d,e,a)},expandItem:function(){var t;null===(t=d.onExpandItem)||void 0===t||t.call(d,e,a)},toggleExpandedState:function(){var t,n;b?null===(t=d.onCollapseItem)||void 0===t||t.call(d,e,a):null===(n=d.onExpandItem)||void 0===n||n.call(d,e,a)},selectItem:function(){var t;null===(t=d.onSelectItems)||void 0===t||t.call(d,[e.index],a)},addToSelectedItems:function(){var t,n;null===(t=d.onSelectItems)||void 0===t||t.call(d,uA(uA([],null!==(n=null==x?void 0:x.selectedItems)&&void 0!==n?n:[],!0),[e.index],!1),a)},unselectItem:function(){var t,n,r;null===(t=d.onSelectItems)||void 0===t||t.call(d,null!==(r=null===(n=null==x?void 0:x.selectedItems)||void 0===n?void 0:n.filter((function(t){return t!==e.index})))&&void 0!==r?r:[],a)},selectUpTo:function(t){f(e,t)},startRenamingItem:function(){u(e.index)},stopRenamingItem:function(){u(null)},focusItem:function(t){var n;void 0===t&&(t=!0),null===(n=d.onFocusItem)||void 0===n||n.call(d,e,a,t)},startDragging:function(){var t,n,r=null!==(t=null==x?void 0:x.selectedItems)&&void 0!==t?t:[];if(r.includes(e.index)||(r=[e.index],null===(n=d.onSelectItems)||void 0===n||n.call(d,r,a)),k){var o=g(a,r.map((function(e){return d.items[e]})));h.onStartDraggingItems(o,a)}}},A={isSelected:y,isExpanded:b,isFocused:(null==x?void 0:x.focusedItem)===e.index,isRenaming:w,isDraggingOver:h.draggingPosition&&"item"===h.draggingPosition.targetType&&h.draggingPosition.targetItem===e.index&&h.draggingPosition.treeId===a,isDraggingOverParent:!1,isSearchMatching:v,canDrag:k,canDropOn:z},D=cA(cA({},p.createInteractiveElementProps(e,a,P,A,x)),{"data-rct-item-interactive":!0,"data-rct-item-focus":A.isFocused?"true":"false","data-rct-item-id":e.index}),T=cA({},{"data-rct-item-container":"true"}),I={role:"treeitem","aria-selected":A.isSelected,"aria-expanded":e.isFolder?A.isExpanded?"true":"false":void 0},M={onClick:function(){e.isFolder&&P.toggleExpandedState(),P.selectItem()},onFocus:function(){P.focusItem()},onDragOver:function(e){e.preventDefault()},"aria-hidden":!0,tabIndex:-1},N=x?Object.entries(x).reduce((function(t,n){var r=n[0],o=n[1];return t[r]=Array.isArray(o)?o.includes(e.index):o===e.index,t}),{}):{};return cA(cA(cA({},P),A),{interactiveElementProps:D,itemContainerWithChildrenProps:I,itemContainerWithoutChildrenProps:T,arrowProps:M,viewStateFlags:N})}}),[e,d,a,h,y,b,w,v,p,f,u,g])},pA=function(e){var t=aA(),n=t.renderers,r=t.treeInformation,o=t.setRenamingItem,i=t.treeId,a=AP(),s=(0,l.useRef)(null),c=(0,l.useRef)(null),u=a.items[e.itemIndex],d=(0,l.useState)(a.getItemTitle(u)),p=d[0],h=d[1],f=rP(!0),m=function(){var e;null===(e=a.onAbortRenamingItem)||void 0===e||e.call(a,u,r.treeId),o(null),f((function(){a.setActiveTree(i)}))},g=function(){var e;null===(e=a.onRenameItem)||void 0===e||e.call(a,u,p,r.treeId),o(null),f((function(){a.setActiveTree(i)}))};Qz((function(){var e,t,n,r;a.setActiveTree(i),(null===(e=a.autoFocus)||void 0===e||e)&&(null===(t=s.current)||void 0===t||t.select(),null===(r=null===(n=s.current)||void 0===n?void 0:n.focus)||void 0===r||r.call(n))}),[a,i],[]),FP("abortRenameItem",(function(){m()}),!0,!0);var v={value:p,onChange:function(e){h(e.target.value)},onBlur:function(e){e.relatedTarget&&e.relatedTarget===c.current||m()},"aria-label":"New item name",tabIndex:0},y={onClick:function(e){e.stopPropagation(),g()}},b={onSubmit:function(e){e.preventDefault(),g()}};return n.renderRenameInput({item:u,inputRef:s,submitButtonProps:y,submitButtonRef:c,formProps:b,inputProps:v})},hA=function(e){var t,n,r,o,i=(0,l.useState)(!1),a=i[0],s=i[1],c=aA(),u=c.renderers,d=c.treeInformation,p=c.renamingItem,h=AP(),f=BP(),m=h.items[e.itemIndex],g=(0,l.useMemo)((function(){var t;return null===(t=f.expandedItems)||void 0===t?void 0:t.includes(e.itemIndex)}),[e.itemIndex,f.expandedItems]),v=dA(m);if(void 0===m||void 0===v)return a||(s(!0),null===(t=h.onMissingItems)||void 0===t||t.call(h,[e.itemIndex])),null;var y=null!==(r=null===(n=h.shouldRenderChildren)||void 0===n?void 0:n.call(h,m,v))&&void 0!==r?r:m.isFolder&&g,b=m.children&&y&&l.createElement(lA,{depth:e.depth+1,parentId:e.itemIndex},m.children),w=h.getItemTitle(m),x=p===e.itemIndex?l.createElement(pA,{itemIndex:e.itemIndex}):u.renderItemTitle({info:d,context:v,title:w,item:m}),S=u.renderItemArrow({info:d,context:v,item:h.items[e.itemIndex]});return null!==(o=u.renderItem({item:h.items[e.itemIndex],depth:e.depth,title:x,arrow:S,context:v,info:d,children:b}))&&void 0!==o?o:null},fA=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},mA=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},gA=function(){function e(e){this.provider=e}return e.prototype.getTreeItem=function(e){return fA(this,void 0,void 0,(function(){return mA(this,(function(t){return[2,this.provider.getTreeItem(e)]}))}))},e.prototype.getTreeItems=function(e){return fA(this,void 0,void 0,(function(){var t=this;return mA(this,(function(n){return[2,this.provider.getTreeItems?this.provider.getTreeItems(e):Promise.all(e.map((function(e){return t.provider.getTreeItem(e)})))]}))}))},e.prototype.onChangeItemChildren=function(e,t){var n,r;return fA(this,void 0,void 0,(function(){return mA(this,(function(o){return[2,null===(r=(n=this.provider).onChangeItemChildren)||void 0===r?void 0:r.call(n,e,t)]}))}))},e.prototype.onDidChangeTreeData=function(e){return this.provider.onDidChangeTreeData?this.provider.onDidChangeTreeData(e):{dispose:function(){}}},e.prototype.onRenameItem=function(e,t){var n,r;return fA(this,void 0,void 0,(function(){return mA(this,(function(o){return[2,null===(r=(n=this.provider).onRenameItem)||void 0===r?void 0:r.call(n,e,t)]}))}))},e}(),vA=function(){return vA=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},vA.apply(this,arguments)},yA=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},bA=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},wA=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},xA=(l.forwardRef((function(e,t){var n,r=(0,l.useState)({}),o=r[0],i=r[1],a=(0,l.useState)(e.viewState),s=a[0],c=a[1],u=oP(s),d=(0,l.useRef)([]),p=(0,l.useMemo)((function(){return new gA(e.dataProvider)}),[e.dataProvider]),h=(n=(0,l.useRef)(!1),(0,l.useEffect)((function(){return n.current=!0,function(){n.current=!1}}),[]),n),f=(0,l.useCallback)((function(e){h.current&&i((function(t){return vA(vA({},t),e)}))}),[h]),m=(0,l.useCallback)((function(e,t){c((function(n){var r,o;return vA(vA({},n),((r={})[e]=vA(vA({},n[e]),t(null!==(o=n[e])&&void 0!==o?o:{})),r))}))}),[]);return(0,l.useEffect)((function(){var e=p.onDidChangeTreeData((function(e){p.getTreeItems(e).then((function(e){f(e.map((function(e){var t;return(t={})[e.index]=e,t})).reduce((function(e,t){return vA(vA({},e),t)}),{}))}))})).dispose;return e}),[p,f]),l.createElement(DP,vA({},e,{ref:t,viewState:s,items:o,onExpandItem:function(t,n){var r;m(n,(function(e){var n;return vA(vA({},e),{expandedItems:wA(wA([],null!==(n=e.expandedItems)&&void 0!==n?n:[],!0),[t.index],!1)})})),null===(r=e.onExpandItem)||void 0===r||r.call(e,t,n)},onCollapseItem:function(t,n){var r;m(n,(function(e){var n;return vA(vA({},e),{expandedItems:null===(n=e.expandedItems)||void 0===n?void 0:n.filter((function(e){return e!==t.index}))})})),null===(r=e.onCollapseItem)||void 0===r||r.call(e,t,n)},onSelectItems:function(t,n){var r,o,i,a=null===(r=u.current[n])||void 0===r?void 0:r.focusedItem;if(e.disableMultiselect){var s=a?[a]:[];null===(o=e.onSelectItems)||void 0===o||o.call(e,s,n),m(n,(function(e){return vA(vA({},e),{selectedItems:s})}))}else null===(i=e.onSelectItems)||void 0===i||i.call(e,t,n),m(n,(function(e){return vA(vA({},e),{selectedItems:t})}))},onFocusItem:function(t,n){var r;m(n,(function(e){return vA(vA({},e),{focusedItem:t.index})})),null===(r=e.onFocusItem)||void 0===r||r.call(e,t,n)},onRenameItem:function(t,n,r){return yA(void 0,void 0,void 0,(function(){var o,i,a;return bA(this,(function(s){switch(s.label){case 0:return[4,p.onRenameItem(t,n)];case 1:return s.sent(),m(r,(function(e){return vA(vA({},e),{renamingItem:void 0})})),[4,p.getTreeItem(t.index)];case 2:return o=s.sent(),f(((i={})[t.index]=o,i)),null===(a=e.onRenameItem)||void 0===a||a.call(e,t,n,r),[2]}}))}))},onDrop:function(t,n){return yA(void 0,void 0,void 0,(function(){var r,i,a,s,l,c,u,d,h,f,m,g,v,y,b;return bA(this,(function(w){switch(w.label){case 0:for(r=[],i=t.map((function(e){return e.index})),a=0,s=function(e){var t=Object.values(o).find((function(t){var n,r;return null===(r=null===(n=null==t?void 0:t.children)||void 0===n?void 0:n.includes)||void 0===r?void 0:r.call(n,e.index)}));if(!t)throw Error('Could not find parent of item "'.concat(e.index,'"'));if(!t.children)throw Error('Parent "'.concat(t.index,'" of item "').concat(e.index,'" did not have any children'));if("between-items"===n.targetType&&n.parentItem===e.index)return{value:void 0};if("item"!==n.targetType&&"root"!==n.targetType||n.targetItem===t.index||r.push(p.onChangeItemChildren(t.index,t.children.filter((function(t){return t!==e.index})))),"between-items"===n.targetType)if(n.parentItem===t.index){var i=o[n.parentItem],s=(null!==(g=(null!==(m=i.children)&&void 0!==m?m:[]).findIndex((function(t){return t===e.index})))&&void 0!==g?g:1/0)<n.childIndex;a+=s?1:0}else r.push(p.onChangeItemChildren(t.index,t.children.filter((function(t){return t!==e.index}))))},l=0,c=t;l<c.length;l++)if(u=c[l],"object"==typeof(d=s(u)))return[2,d.value];return"item"===n.targetType||"root"===n.targetType?r.push(p.onChangeItemChildren(n.targetItem,wA(wA([],(null!==(v=o[n.targetItem].children)&&void 0!==v?v:[]).filter((function(e){return!i.includes(e)})),!0),i,!0))):(h=o[n.parentItem],f=wA([],null!==(y=h.children)&&void 0!==y?y:[],!0).filter((function(e){return!i.includes(e)})),f.splice.apply(f,wA([n.childIndex-a,0],i,!1)),r.push(p.onChangeItemChildren(n.parentItem,f))),[4,Promise.all(r)];case 1:return w.sent(),null===(b=e.onDrop)||void 0===b||b.call(e,t,n),[2]}}))}))},onMissingItems:function(t){var n,r;0===d.current.length&&setTimeout((function(){p.getTreeItems(d.current).then((function(e){f(e.map((function(e){var t;return(t={})[null==e?void 0:e.index]=e,t})).reduce((function(e,t){return vA(vA({},e),t)}),{}))})),d.current=[]})),(n=d.current).push.apply(n,t),null===(r=e.onMissingItems)||void 0===r||r.call(e,t)}}),e.children)})),function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}),SA=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},_A=function(){function e(e){this.handlerCount=0,this.handlers=[],this.options=e}return Object.defineProperty(e.prototype,"numberOfHandlers",{get:function(){return this.handlers.filter((function(e){return!!e})).length},enumerable:!1,configurable:!0}),e.prototype.emit=function(e){var t,n;return xA(this,void 0,void 0,(function(){var r,o,i,a,s;return SA(this,(function(l){switch(l.label){case 0:for(r=[],null===(n=null===(t=this.options)||void 0===t?void 0:t.logger)||void 0===n||n.call(t,"emit",e),o=0,i=this.handlers;o<i.length;o++)(a=i[o])&&"function"==typeof(null==(s=a(e))?void 0:s.then)&&r.push(s);return[4,Promise.all(r)];case 1:return l.sent(),[2]}}))}))},e.prototype.on=function(e){var t,n;return null===(n=null===(t=this.options)||void 0===t?void 0:t.logger)||void 0===n||n.call(t,"on"),this.handlers.push(e),this.handlerCount++},e.prototype.off=function(e){this.delete(e)},e.prototype.delete=function(e){var t,n;null===(n=null===(t=this.options)||void 0===t?void 0:t.logger)||void 0===n||n.call(t,"off"),this.handlers[e]=null},e}(),CA=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},EA=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};!function(){function e(e,t){this.onDidChangeTreeDataEmitter=new _A,this.data={items:e},this.setItemName=t}e.prototype.getTreeItem=function(e){return CA(this,void 0,void 0,(function(){return EA(this,(function(t){return[2,this.data.items[e]]}))}))},e.prototype.onChangeItemChildren=function(e,t){return CA(this,void 0,void 0,(function(){return EA(this,(function(n){return this.data.items[e].children=t,this.onDidChangeTreeDataEmitter.emit([e]),[2]}))}))},e.prototype.onDidChangeTreeData=function(e){var t=this,n=this.onDidChangeTreeDataEmitter.on((function(t){return e(t)}));return{dispose:function(){return t.onDidChangeTreeDataEmitter.off(n)}}},e.prototype.onRenameItem=function(e,t){return CA(this,void 0,void 0,(function(){return EA(this,(function(n){return this.setItemName&&(this.data.items[e.index]=this.setItemName(e,t)),[2]}))}))}}();const{createElement:kA,createContext:zA,createRef:PA,forwardRef:AA,useCallback:DA,useContext:TA,useEffect:IA,useImperativeHandle:MA,useLayoutEffect:NA,useMemo:OA,useRef:RA,useState:jA}=c,FA=c[`useId${Math.random()}`.slice(0,5)],BA=NA,LA=zA(null);LA.displayName="PanelGroupContext";const VA=BA,KA="function"==typeof FA?FA:()=>null;let HA=0;function $A(e=null){const t=KA(),n=RA(e||t||null);return null===n.current&&(n.current=""+HA++),null!=e?e:n.current}function UA({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:o,forwardedRef:i,id:a,maxSize:s,minSize:l,onCollapse:c,onExpand:u,onResize:d,order:p,style:h,tagName:f="div",...m}){const g=TA(LA);if(null===g)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:v,expandPanel:y,getPanelSize:b,getPanelStyle:w,groupId:x,isPanelCollapsed:S,reevaluatePanelConstraints:_,registerPanel:C,resizePanel:E,unregisterPanel:k}=g,z=$A(a),P=RA({callbacks:{onCollapse:c,onExpand:u,onResize:d},constraints:{collapsedSize:n,collapsible:r,defaultSize:o,maxSize:s,minSize:l},id:z,idIsFromProps:void 0!==a,order:p});RA({didLogMissingDefaultSizeWarning:!1}),VA((()=>{const{callbacks:e,constraints:t}=P.current,i={...t};P.current.id=z,P.current.idIsFromProps=void 0!==a,P.current.order=p,e.onCollapse=c,e.onExpand=u,e.onResize=d,t.collapsedSize=n,t.collapsible=r,t.defaultSize=o,t.maxSize=s,t.minSize=l,i.collapsedSize===t.collapsedSize&&i.collapsible===t.collapsible&&i.maxSize===t.maxSize&&i.minSize===t.minSize||_(P.current,i)})),VA((()=>{const e=P.current;return C(e),()=>{k(e)}}),[p,z,C,k]),MA(i,(()=>({collapse:()=>{v(P.current)},expand:e=>{y(P.current,e)},getId:()=>z,getSize:()=>b(P.current),isCollapsed:()=>S(P.current),isExpanded:()=>!S(P.current),resize:e=>{E(P.current,e)}})),[v,y,b,S,z,E]);const A=w(P.current,o);return kA(f,{...m,children:e,className:t,id:a,style:{...A,...h},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":x,"data-panel-id":z,"data-panel-size":parseFloat(""+A.flexGrow).toFixed(1)})}const WA=AA(((e,t)=>kA(UA,{...e,forwardedRef:t})));UA.displayName="Panel",WA.displayName="forwardRef(Panel)";let qA=null,GA=null;function ZA(e,t){const n=function(e,t){if(t){const e=!!(t&cD),n=!!(t&uD);if(t&sD)return e?"se-resize":n?"ne-resize":"e-resize";if(t&lD)return e?"sw-resize":n?"nw-resize":"w-resize";if(e)return"s-resize";if(n)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}(e,t);qA!==n&&(qA=n,null===GA&&(GA=document.createElement("style"),document.head.appendChild(GA)),GA.innerHTML=`*{cursor: ${n}!important;}`)}function YA(e){return"keydown"===e.type}function XA(e){return e.type.startsWith("pointer")}function JA(e){return e.type.startsWith("mouse")}function QA(e){if(XA(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(JA(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function eD(e,t,n){return n?e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y:e.x<=t.x+t.width&&e.x+e.width>=t.x&&e.y<=t.y+t.height&&e.y+e.height>=t.y}const tD=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function nD(e){const t=getComputedStyle(e);return"fixed"===t.position||(!("auto"===t.zIndex||"static"===t.position&&!function(e){var t;const n=getComputedStyle(null!==(t=aD(e))&&void 0!==t?t:e).display;return"flex"===n||"inline-flex"===n}(e))||(+t.opacity<1||("transform"in t&&"none"!==t.transform||("webkitTransform"in t&&"none"!==t.webkitTransform||("mixBlendMode"in t&&"normal"!==t.mixBlendMode||("filter"in t&&"none"!==t.filter||("webkitFilter"in t&&"none"!==t.webkitFilter||("isolation"in t&&"isolate"===t.isolation||(!!tD.test(t.willChange)||"touch"===t.webkitOverflowScrolling)))))))))}function rD(e){let t=e.length;for(;t--;){const n=e[t];if(ED(n,"Missing node"),nD(n))return n}return null}function oD(e){return e&&Number(getComputedStyle(e).zIndex)||0}function iD(e){const t=[];for(;e;)t.push(e),e=aD(e);return t}function aD(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const sD=1,lD=2,cD=4,uD=8,dD="coarse"===function(){if("function"==typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}();let pD=[],hD=!1,fD=new Map,mD=new Map;const gD=new Set;function vD(e){const{target:t}=e,{x:n,y:r}=QA(e);hD=!0,wD({target:t,x:n,y:r}),_D(),pD.length>0&&(CD("down",e),e.preventDefault(),e.stopPropagation())}function yD(e){const{x:t,y:n}=QA(e);if(0===e.buttons&&(hD=!1,CD("up",e)),!hD){const{target:r}=e;wD({target:r,x:t,y:n})}CD("move",e),SD(),pD.length>0&&e.preventDefault()}function bD(e){const{target:t}=e,{x:n,y:r}=QA(e);mD.clear(),hD=!1,pD.length>0&&e.preventDefault(),CD("up",e),wD({target:t,x:n,y:r}),SD(),_D()}function wD({target:e,x:t,y:n}){pD.splice(0);let r=null;e instanceof HTMLElement&&(r=e),gD.forEach((e=>{const{element:o,hitAreaMargins:i}=e,a=o.getBoundingClientRect(),{bottom:s,left:l,right:c,top:u}=a,d=dD?i.coarse:i.fine;if(t>=l-d&&t<=c+d&&n>=u-d&&n<=s+d){if(null!==r&&o!==r&&!o.contains(r)&&!r.contains(o)&&function(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:iD(e),b:iD(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;ED(r,"Stacking order can only be calculated for elements with a common ancestor");const o=oD(rD(n.a)),i=oD(rD(n.b));if(o===i){const e=r.childNodes,t={a:n.a.at(-1),b:n.b.at(-1)};let o=e.length;for(;o--;){const n=e[o];if(n===t.a)return 1;if(n===t.b)return-1}}return Math.sign(o-i)}(r,o)>0){let e=r,t=!1;for(;e&&!e.contains(o);){if(eD(e.getBoundingClientRect(),a,!0)){t=!0;break}e=e.parentElement}if(t)return}pD.push(e)}}))}function xD(e,t){mD.set(e,t)}function SD(){let e=!1,t=!1;pD.forEach((n=>{const{direction:r}=n;"horizontal"===r?e=!0:t=!0}));let n=0;mD.forEach((e=>{n|=e})),e&&t?ZA("intersection",n):e?ZA("horizontal",n):t?ZA("vertical",n):null!==GA&&(document.head.removeChild(GA),qA=null,GA=null)}function _D(){fD.forEach(((e,t)=>{const{body:n}=t;n.removeEventListener("contextmenu",bD),n.removeEventListener("pointerdown",vD),n.removeEventListener("pointerleave",yD),n.removeEventListener("pointermove",yD)})),window.removeEventListener("pointerup",bD),window.removeEventListener("pointercancel",bD),gD.size>0&&(hD?(pD.length>0&&fD.forEach(((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("contextmenu",bD),n.addEventListener("pointerleave",yD),n.addEventListener("pointermove",yD))})),window.addEventListener("pointerup",bD),window.addEventListener("pointercancel",bD)):fD.forEach(((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("pointerdown",vD,{capture:!0}),n.addEventListener("pointermove",yD))})))}function CD(e,t){gD.forEach((n=>{const{setResizeHandlerState:r}=n,o=pD.includes(n);r(e,o,t)}))}function ED(e,t){if(!e)throw console.error(t),Error(t)}function kD(e,t,n=10){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function zD(e,t,n=10){return 0===kD(e,t,n)}function PD(e,t,n){return 0===kD(e,t,n)}function AD({panelConstraints:e,panelIndex:t,size:n}){const r=e[t];ED(null!=r,`Panel constraints not found for index ${t}`);let{collapsedSize:o=0,collapsible:i,maxSize:a=100,minSize:s=0}=r;if(kD(n,s)<0)if(i){n=kD(n,(o+s)/2)<0?o:s}else n=s;return n=Math.min(a,n),n=parseFloat(n.toFixed(10))}function DD({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:o,trigger:i}){if(PD(e,0))return t;const a=[...t],[s,l]=r;ED(null!=s,"Invalid first pivot index"),ED(null!=l,"Invalid second pivot index");let c=0;if("keyboard"===i){{const r=e<0?l:s,o=n[r];ED(o,`Panel constraints not found for index ${r}`);const{collapsedSize:i=0,collapsible:a,minSize:c=0}=o;if(a){const n=t[r];if(ED(null!=n,`Previous layout not found for panel index ${r}`),PD(n,i)){const t=c-n;kD(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{const r=e<0?s:l,o=n[r];ED(o,`No panel constraints found for index ${r}`);const{collapsedSize:i=0,collapsible:a,minSize:c=0}=o;if(a){const n=t[r];if(ED(null!=n,`Previous layout not found for panel index ${r}`),PD(n,c)){const t=n-i;kD(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}{const r=e<0?1:-1;let o=e<0?l:s,i=0;for(;;){const e=t[o];ED(null!=e,`Previous layout not found for panel index ${o}`);if(i+=AD({panelConstraints:n,panelIndex:o,size:100})-e,o+=r,o<0||o>=n.length)break}const a=Math.min(Math.abs(e),Math.abs(i));e=e<0?0-a:a}{let r=e<0?s:l;for(;r>=0&&r<n.length;){const o=Math.abs(e)-Math.abs(c),i=t[r];ED(null!=i,`Previous layout not found for panel index ${r}`);const s=AD({panelConstraints:n,panelIndex:r,size:i-o});if(!PD(i,s)&&(c+=i-s,a[r]=s,c.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?r--:r++}}if(function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!PD(e[r],t[r],n))return!1;return!0}(o,a))return o;{const r=e<0?l:s,o=t[r];ED(null!=o,`Previous layout not found for panel index ${r}`);const i=o+c,u=AD({panelConstraints:n,panelIndex:r,size:i});if(a[r]=u,!PD(u,i)){let t=i-u;let r=e<0?l:s;for(;r>=0&&r<n.length;){const o=a[r];ED(null!=o,`Previous layout not found for panel index ${r}`);const i=AD({panelConstraints:n,panelIndex:r,size:o+t});if(PD(o,i)||(t-=i-o,a[r]=i),PD(t,0))break;e>0?r--:r++}}}const u=a.reduce(((e,t)=>t+e),0);return PD(u,100)?a:o}function TD({layout:e,panelsArray:t,pivotIndices:n}){let r=0,o=100,i=0,a=0;const s=n[0];ED(null!=s,"No pivot index found"),t.forEach(((e,t)=>{const{constraints:n}=e,{maxSize:l=100,minSize:c=0}=n;t===s?(r=c,o=l):(i+=c,a+=l)}));return{valueMax:Math.min(o,100-i),valueMin:Math.max(r,100-a),valueNow:e[s]}}function ID(e,t=document){return Array.from(t.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`))}function MD(e,t,n=document){const r=ID(e,n).findIndex((e=>e.getAttribute("data-panel-resize-handle-id")===t));return null!=r?r:null}function ND(e,t,n){const r=MD(e,t,n);return null!=r?[r,r+1]:[-1,-1]}function OD(e,t=document){var n;if(t instanceof HTMLElement&&(null==t||null===(n=t.dataset)||void 0===n?void 0:n.panelGroupId)==e)return t;const r=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return r||null}function RD(e,t=document){const n=t.querySelector(`[data-panel-resize-handle-id="${e}"]`);return n||null}function jD({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:o,panelGroupElement:i,setLayout:a}){RA({didWarnAboutMissingResizeHandle:!1}),VA((()=>{if(!i)return;const e=ID(n,i);for(let t=0;t<o.length-1;t++){const{valueMax:n,valueMin:i,valueNow:a}=TD({layout:r,panelsArray:o,pivotIndices:[t,t+1]}),s=e[t];if(null==s);else{const e=o[t];ED(e,`No panel data found for index "${t}"`),s.setAttribute("aria-controls",e.id),s.setAttribute("aria-valuemax",""+Math.round(n)),s.setAttribute("aria-valuemin",""+Math.round(i)),s.setAttribute("aria-valuenow",null!=a?""+Math.round(a):"")}}return()=>{e.forEach(((e,t)=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-valuemax"),e.removeAttribute("aria-valuemin"),e.removeAttribute("aria-valuenow")}))}}),[n,r,o,i]),IA((()=>{if(!i)return;const e=t.current;ED(e,"Eager values not found");const{panelDataArray:o}=e;ED(null!=OD(n,i),`No group found for id "${n}"`);const s=ID(n,i);ED(s,`No resize handles found for group id "${n}"`);const l=s.map((e=>{const t=e.getAttribute("data-panel-resize-handle-id");ED(t,"Resize handle element has no handle id attribute");const[s,l]=function(e,t,n,r=document){var o,i,a,s;const l=RD(t,r),c=ID(e,r),u=l?c.indexOf(l):-1;return[null!==(o=null===(i=n[u])||void 0===i?void 0:i.id)&&void 0!==o?o:null,null!==(a=null===(s=n[u+1])||void 0===s?void 0:s.id)&&void 0!==a?a:null]}(n,t,o,i);if(null==s||null==l)return()=>{};const c=e=>{if(!e.defaultPrevented)switch(e.key){case"Enter":{e.preventDefault();const l=o.findIndex((e=>e.id===s));if(l>=0){const e=o[l];ED(e,`No panel data found for index ${l}`);const s=r[l],{collapsedSize:c=0,collapsible:u,minSize:d=0}=e.constraints;if(null!=s&&u){const e=DD({delta:PD(s,c)?d-c:c-s,initialLayout:r,panelConstraints:o.map((e=>e.constraints)),pivotIndices:ND(n,t,i),prevLayout:r,trigger:"keyboard"});r!==e&&a(e)}}break}}};return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}}));return()=>{l.forEach((e=>e()))}}),[i,e,t,n,r,o,a])}function FD(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function BD(e,t){const n="horizontal"===e,{x:r,y:o}=QA(t);return n?r:o}function LD(e,t,n,r,o,i){if(YA(e)){const t="horizontal"===n;let r=0;r=e.shiftKey?100:null!=o?o:10;let i=0;switch(e.key){case"ArrowDown":i=t?0:r;break;case"ArrowLeft":i=t?-r:0;break;case"ArrowRight":i=t?r:0;break;case"ArrowUp":i=t?0:-r;break;case"End":i=100;break;case"Home":i=-100}return i}return null==r?0:function(e,t,n,r,o){const i="horizontal"===n,a=RD(t,o);ED(a,`No resize handle element found for id "${t}"`);const s=a.getAttribute("data-panel-group-id");ED(s,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r;const c=BD(n,e),u=OD(s,o);ED(u,`No group element found for id "${s}"`);const d=u.getBoundingClientRect();return(c-l)/(i?d.width:d.height)*100}(e,t,n,r,i)}function VD(e,t,n){t.forEach(((t,r)=>{const o=e[r];ED(o,`Panel data not found for index ${r}`);const{callbacks:i,constraints:a,id:s}=o,{collapsedSize:l=0,collapsible:c}=a,u=n[s];if(null==u||t!==u){n[s]=t;const{onCollapse:e,onExpand:r,onResize:o}=i;o&&o(t,u),c&&(e||r)&&(!r||null!=u&&!zD(u,l)||zD(t,l)||r(),!e||null!=u&&zD(u,l)||!zD(t,l)||e())}}))}function KD(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function HD(e){try{if("undefined"==typeof localStorage)throw new Error("localStorage not supported in this environment");e.getItem=e=>localStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)}}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function $D(e){return`react-resizable-panels:${e}`}function UD(e){return e.map((e=>{const{constraints:t,id:n,idIsFromProps:r,order:o}=e;return r?n:o?`${o}:${JSON.stringify(t)}`:JSON.stringify(t)})).sort(((e,t)=>e.localeCompare(t))).join(",")}function WD(e,t){try{const n=$D(e),r=t.getItem(n);if(r){const e=JSON.parse(r);if("object"==typeof e&&null!=e)return e}}catch(e){}return null}function qD(e,t,n,r,o){var i;const a=$D(e),s=UD(t),l=null!==(i=WD(e,o))&&void 0!==i?i:{};l[s]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{o.setItem(a,JSON.stringify(l))}catch(e){console.error(e)}}function GD({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce(((e,t)=>e+t),0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map((e=>`${e}%`)).join(", ")}`);if(!PD(r,100))for(let e=0;e<t.length;e++){const t=n[e];ED(null!=t,`No layout data found for index ${e}`);const o=100/r*t;n[e]=o}let o=0;for(let e=0;e<t.length;e++){const r=n[e];ED(null!=r,`No layout data found for index ${e}`);const i=AD({panelConstraints:t,panelIndex:e,size:r});r!=i&&(o+=r-i,n[e]=i)}if(!PD(o,0))for(let e=0;e<t.length;e++){const r=n[e];ED(null!=r,`No layout data found for index ${e}`);const i=AD({panelConstraints:t,panelIndex:e,size:r+o});if(r!==i&&(o-=i-r,n[e]=i,PD(o,0)))break}return n}const ZD={getItem:e=>(HD(ZD),ZD.getItem(e)),setItem:(e,t)=>{HD(ZD),ZD.setItem(e,t)}},YD={};function XD({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:o,id:i=null,onLayout:a=null,keyboardResizeBy:s=null,storage:l=ZD,style:c,tagName:u="div",...d}){const p=$A(i),h=RA(null),[f,m]=jA(null),[g,v]=jA([]),y=function(){const[e,t]=jA(0);return DA((()=>t((e=>e+1))),[])}(),b=RA({}),w=RA(new Map),x=RA(0),S=RA({autoSaveId:e,direction:r,dragState:f,id:p,keyboardResizeBy:s,onLayout:a,storage:l}),_=RA({layout:g,panelDataArray:[],panelDataArrayChanged:!1});RA({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),MA(o,(()=>({getId:()=>S.current.id,getLayout:()=>{const{layout:e}=_.current;return e},setLayout:e=>{const{onLayout:t}=S.current,{layout:n,panelDataArray:r}=_.current,o=GD({layout:e,panelConstraints:r.map((e=>e.constraints))});FD(n,o)||(v(o),_.current.layout=o,t&&t(o),VD(r,o,b.current))}})),[]),VA((()=>{S.current.autoSaveId=e,S.current.direction=r,S.current.dragState=f,S.current.id=p,S.current.onLayout=a,S.current.storage=l})),jD({committedValuesRef:S,eagerValuesRef:_,groupId:p,layout:g,panelDataArray:_.current.panelDataArray,setLayout:v,panelGroupElement:h.current}),IA((()=>{const{panelDataArray:t}=_.current;if(e){if(0===g.length||g.length!==t.length)return;let n=YD[e];null==n&&(n=function(e,t=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout((()=>{e(...r)}),t)}}(qD,100),YD[e]=n);const r=[...t],o=new Map(w.current);n(e,r,o,g,l)}}),[e,g,l]),IA((()=>{}));const C=DA((e=>{const{onLayout:t}=S.current,{layout:n,panelDataArray:r}=_.current;if(e.constraints.collapsible){const o=r.map((e=>e.constraints)),{collapsedSize:i=0,panelSize:a,pivotIndices:s}=eT(r,e,n);if(ED(null!=a,`Panel size not found for panel "${e.id}"`),!zD(a,i)){w.current.set(e.id,a);const l=DD({delta:QD(r,e)===r.length-1?a-i:i-a,initialLayout:n,panelConstraints:o,pivotIndices:s,prevLayout:n,trigger:"imperative-api"});KD(n,l)||(v(l),_.current.layout=l,t&&t(l),VD(r,l,b.current))}}}),[]),E=DA(((e,t)=>{const{onLayout:n}=S.current,{layout:r,panelDataArray:o}=_.current;if(e.constraints.collapsible){const i=o.map((e=>e.constraints)),{collapsedSize:a=0,panelSize:s=0,minSize:l=0,pivotIndices:c}=eT(o,e,r),u=null!=t?t:l;if(zD(s,a)){const t=w.current.get(e.id),a=null!=t&&t>=u?t:u,l=DD({delta:QD(o,e)===o.length-1?s-a:a-s,initialLayout:r,panelConstraints:i,pivotIndices:c,prevLayout:r,trigger:"imperative-api"});KD(r,l)||(v(l),_.current.layout=l,n&&n(l),VD(o,l,b.current))}}}),[]),k=DA((e=>{const{layout:t,panelDataArray:n}=_.current,{panelSize:r}=eT(n,e,t);return ED(null!=r,`Panel size not found for panel "${e.id}"`),r}),[]),z=DA(((e,t)=>{const{panelDataArray:n}=_.current,r=QD(n,e);return function({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:o,precision:i=3}){const a=n[o];let s;return s=null==a?null!=e?e.toPrecision(i):"1":1===r.length?"1":a.toPrecision(i),{flexBasis:0,flexGrow:s,flexShrink:1,overflow:"hidden",pointerEvents:null!==t?"none":void 0}}({defaultSize:t,dragState:f,layout:g,panelData:n,panelIndex:r})}),[f,g]),P=DA((e=>{const{layout:t,panelDataArray:n}=_.current,{collapsedSize:r=0,collapsible:o,panelSize:i}=eT(n,e,t);return ED(null!=i,`Panel size not found for panel "${e.id}"`),!0===o&&zD(i,r)}),[]),A=DA((e=>{const{layout:t,panelDataArray:n}=_.current,{collapsedSize:r=0,collapsible:o,panelSize:i}=eT(n,e,t);return ED(null!=i,`Panel size not found for panel "${e.id}"`),!o||kD(i,r)>0}),[]),D=DA((e=>{const{panelDataArray:t}=_.current;t.push(e),t.sort(((e,t)=>{const n=e.order,r=t.order;return null==n&&null==r?0:null==n?-1:null==r?1:n-r})),_.current.panelDataArrayChanged=!0,y()}),[y]);VA((()=>{if(_.current.panelDataArrayChanged){_.current.panelDataArrayChanged=!1;const{autoSaveId:e,onLayout:t,storage:n}=S.current,{layout:r,panelDataArray:o}=_.current;let i=null;if(e){const t=function(e,t,n){var r,o;return null!==(o=(null!==(r=WD(e,n))&&void 0!==r?r:{})[UD(t)])&&void 0!==o?o:null}(e,o,n);t&&(w.current=new Map(Object.entries(t.expandToSizes)),i=t.layout)}null==i&&(i=function({panelDataArray:e}){const t=Array(e.length),n=e.map((e=>e.constraints));let r=0,o=100;for(let i=0;i<e.length;i++){const e=n[i];ED(e,`Panel constraints not found for index ${i}`);const{defaultSize:a}=e;null!=a&&(r++,t[i]=a,o-=a)}for(let i=0;i<e.length;i++){const a=n[i];ED(a,`Panel constraints not found for index ${i}`);const{defaultSize:s}=a;if(null!=s)continue;const l=o/(e.length-r);r++,t[i]=l,o-=l}return t}({panelDataArray:o}));const a=GD({layout:i,panelConstraints:o.map((e=>e.constraints))});FD(r,a)||(v(a),_.current.layout=a,t&&t(a),VD(o,a,b.current))}})),VA((()=>{const e=_.current;return()=>{e.layout=[]}}),[]);const T=DA((e=>function(t){t.preventDefault();const n=h.current;if(!n)return()=>null;const{direction:r,dragState:o,id:i,keyboardResizeBy:a,onLayout:s}=S.current,{layout:l,panelDataArray:c}=_.current,{initialLayout:u}=null!=o?o:{},d=ND(i,e,n);let p=LD(t,e,r,o,a,n);const f="horizontal"===r;"rtl"===document.dir&&f&&(p=-p);const m=DD({delta:p,initialLayout:null!=u?u:l,panelConstraints:c.map((e=>e.constraints)),pivotIndices:d,prevLayout:l,trigger:YA(t)?"keyboard":"mouse-or-touch"}),g=!KD(l,m);(XA(t)||JA(t))&&x.current!=p&&(x.current=p,xD(e,g?0:f?p<0?sD:lD:p<0?cD:uD)),g&&(v(m),_.current.layout=m,s&&s(m),VD(c,m,b.current))}),[]),I=DA(((e,t)=>{const{onLayout:n}=S.current,{layout:r,panelDataArray:o}=_.current,i=o.map((e=>e.constraints)),{panelSize:a,pivotIndices:s}=eT(o,e,r);ED(null!=a,`Panel size not found for panel "${e.id}"`);const l=DD({delta:QD(o,e)===o.length-1?a-t:t-a,initialLayout:r,panelConstraints:i,pivotIndices:s,prevLayout:r,trigger:"imperative-api"});KD(r,l)||(v(l),_.current.layout=l,n&&n(l),VD(o,l,b.current))}),[]),M=DA(((e,t)=>{const{layout:n,panelDataArray:r}=_.current,{collapsedSize:o=0,collapsible:i}=t,{collapsedSize:a=0,collapsible:s,maxSize:l=100,minSize:c=0}=e.constraints,{panelSize:u}=eT(r,e,n);null!=u&&(i&&s&&zD(u,o)?zD(o,a)||I(e,a):u<c?I(e,c):u>l&&I(e,l))}),[I]),N=DA(((e,t)=>{const{direction:n}=S.current,{layout:r}=_.current;if(!h.current)return;const o=RD(e,h.current);ED(o,`Drag handle element not found for id "${e}"`);const i=BD(n,t);m({dragHandleId:e,dragHandleRect:o.getBoundingClientRect(),initialCursorPosition:i,initialLayout:r})}),[]),O=DA((()=>{m(null)}),[]),R=DA((e=>{const{panelDataArray:t}=_.current,n=QD(t,e);n>=0&&(t.splice(n,1),delete b.current[e.id],_.current.panelDataArrayChanged=!0,y())}),[y]),j=OA((()=>({collapsePanel:C,direction:r,dragState:f,expandPanel:E,getPanelSize:k,getPanelStyle:z,groupId:p,isPanelCollapsed:P,isPanelExpanded:A,reevaluatePanelConstraints:M,registerPanel:D,registerResizeHandle:T,resizePanel:I,startDragging:N,stopDragging:O,unregisterPanel:R,panelGroupElement:h.current})),[C,f,r,E,k,z,p,P,A,M,D,T,I,N,O,R]),F={display:"flex",flexDirection:"horizontal"===r?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return kA(LA.Provider,{value:j},kA(u,{...d,children:t,className:n,id:i,ref:h,style:{...F,...c},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":p}))}const JD=AA(((e,t)=>kA(XD,{...e,forwardedRef:t})));function QD(e,t){return e.findIndex((e=>e===t||e.id===t.id))}function eT(e,t,n){const r=QD(e,t),o=r===e.length-1?[r-1,r]:[r,r+1],i=n[r];return{...t.constraints,panelSize:i,pivotIndices:o}}function tT({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:o,onBlur:i,onDragging:a,onFocus:s,style:l={},tabIndex:c=0,tagName:u="div",...d}){var p,h;const f=RA(null),m=RA({onDragging:a});IA((()=>{m.current.onDragging=a}));const g=TA(LA);if(null===g)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:v,groupId:y,registerResizeHandle:b,startDragging:w,stopDragging:x,panelGroupElement:S}=g,_=$A(o),[C,E]=jA("inactive"),[k,z]=jA(!1),[P,A]=jA(null),D=RA({state:C});VA((()=>{D.current.state=C})),IA((()=>{if(n)A(null);else{const e=b(_);A((()=>e))}}),[n,_,b]);const T=null!==(p=null==r?void 0:r.coarse)&&void 0!==p?p:15,I=null!==(h=null==r?void 0:r.fine)&&void 0!==h?h:5;IA((()=>{if(n||null==P)return;const e=f.current;ED(e,"Element ref not attached");return function(e,t,n,r,o){var i;const{ownerDocument:a}=t,s={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:o},l=null!==(i=fD.get(a))&&void 0!==i?i:0;return fD.set(a,l+1),gD.add(s),_D(),function(){var t;mD.delete(e),gD.delete(s);const n=null!==(t=fD.get(a))&&void 0!==t?t:1;if(fD.set(a,n-1),_D(),1===n&&fD.delete(a),pD.includes(s)){const e=pD.indexOf(s);e>=0&&pD.splice(e,1),SD()}}}(_,e,v,{coarse:T,fine:I},((e,t,n)=>{if(t)switch(e){case"down":{E("drag"),w(_,n);const{onDragging:e}=m.current;e&&e(!0);break}case"move":{const{state:e}=D.current;"drag"!==e&&E("hover"),P(n);break}case"up":{E("hover"),x();const{onDragging:e}=m.current;e&&e(!1);break}}else E("inactive")}))}),[T,v,n,I,b,_,P,w,x]),function({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){IA((()=>{if(e||null==n||null==r)return;const o=RD(t,r);if(null==o)return;const i=e=>{if(!e.defaultPrevented)switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":e.preventDefault(),n(e);break;case"F6":{e.preventDefault();const n=o.getAttribute("data-panel-group-id");ED(n,`No group element found for id "${n}"`);const i=ID(n,r),a=MD(n,t,r);ED(null!==a,`No resize element found for id "${t}"`),i[e.shiftKey?a>0?a-1:i.length-1:a+1<i.length?a+1:0].focus();break}}};return o.addEventListener("keydown",i),()=>{o.removeEventListener("keydown",i)}}),[r,e,t,n])}({disabled:n,handleId:_,resizeHandler:P,panelGroupElement:S});return kA(u,{...d,children:e,className:t,id:o,onBlur:()=>{z(!1),null==i||i()},onFocus:()=>{z(!0),null==s||s()},ref:f,role:"separator",style:{touchAction:"none",userSelect:"none",...l},tabIndex:c,"data-panel-group-direction":v,"data-panel-group-id":y,"data-resize-handle":"","data-resize-handle-active":"drag"===C?"pointer":k?"keyboard":void 0,"data-resize-handle-state":C,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":_})}XD.displayName="PanelGroup",JD.displayName="forwardRef(PanelGroup)",tT.displayName="PanelResizeHandle";var nT=n(54516);function rT(e){let t=(0,l.useCallback)((t=>e.subscribe(t)),[e]),n=(0,l.useCallback)((()=>e.visibleToasts),[e]);return{visibleToasts:(0,nT.useSyncExternalStore)(t,n,n),add:(t,n)=>e.add(t,n),close:t=>e.close(t),remove:t=>e.remove(t),pauseAll:()=>e.pauseAll(),resumeAll:()=>e.resumeAll()}}class oT{subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}add(e,t={}){let n=Math.random().toString(36),r={...t,content:e,key:n,timer:t.timeout?new iT((()=>this.close(n)),t.timeout):void 0},o=0,i=this.queue.length;for(;o<i;){let e=Math.floor((o+i)/2);(r.priority||0)>(this.queue[e].priority||0)?i=e:o=e+1}this.queue.splice(o,0,r),r.animation=o<this.maxVisibleToasts?"entering":"queued";let a=this.maxVisibleToasts;for(;a<this.queue.length;)this.queue[a++].animation="queued";return this.updateVisibleToasts({action:"add"}),n}close(e){let t=this.queue.findIndex((t=>t.key===e));var n,r;t>=0&&(null===(n=(r=this.queue[t]).onClose)||void 0===n||n.call(r),this.queue.splice(t,1));this.updateVisibleToasts({action:"close",key:e})}remove(e){this.updateVisibleToasts({action:"remove",key:e})}updateVisibleToasts(e){let{action:t,key:n}=e,r=this.queue.slice(0,this.maxVisibleToasts);if("add"===t&&this.hasExitAnimation){let e=this.visibleToasts.filter((e=>!r.some((t=>e.key===t.key)))).map((e=>({...e,animation:"exiting"})));this.visibleToasts=e.concat(r).sort(((e,t)=>{var n,r;return(null!==(n=t.priority)&&void 0!==n?n:0)-(null!==(r=e.priority)&&void 0!==r?r:0)}))}else"close"===t&&this.hasExitAnimation?this.visibleToasts=this.visibleToasts.map((e=>e.key!==n?e:{...e,animation:"exiting"})):this.visibleToasts=r;for(let e of this.subscriptions)e()}pauseAll(){for(let e of this.visibleToasts)e.timer&&e.timer.pause()}resumeAll(){for(let e of this.visibleToasts)e.timer&&e.timer.resume()}constructor(e){var t,n;this.queue=[],this.subscriptions=new Set,this.visibleToasts=[],this.maxVisibleToasts=null!==(t=null==e?void 0:e.maxVisibleToasts)&&void 0!==t?t:1,this.hasExitAnimation=null!==(n=null==e?void 0:e.hasExitAnimation)&&void 0!==n&&n}}class iT{reset(e){this.remaining=e,this.resume()}pause(){null!=this.timerId&&(clearTimeout(this.timerId),this.timerId=null,this.remaining-=Date.now()-this.startTime)}resume(){this.remaining<=0||(this.startTime=Date.now(),this.timerId=setTimeout((()=>{this.timerId=null,this.remaining=0,this.callback()}),this.remaining))}constructor(e,t){this.startTime=null,this.remaining=t,this.callback=e}}var aT;aT={"ar-AE":{close:"إغلاق",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} إشعار`,other:()=>`${t.number(e.count)} إشعارات`})}.`},"bg-BG":{close:"Затвори",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} известие`,other:()=>`${t.number(e.count)} известия`})}.`},"cs-CZ":{close:"Zavřít",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} oznámení`,other:()=>`${t.number(e.count)} oznámení`})}.`},"da-DK":{close:"Luk",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} besked`,other:()=>`${t.number(e.count)} beskeder`})}.`},"de-DE":{close:"Schließen",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} Benachrichtigung`,other:()=>`${t.number(e.count)} Benachrichtigungen`})}.`},"el-GR":{close:"Κλείσιμο",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ειδοποίηση`,other:()=>`${t.number(e.count)} ειδοποιήσεις`})}.`},"en-US":{close:"Close",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notification`,other:()=>`${t.number(e.count)} notifications`})}.`},"es-ES":{close:"Cerrar",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notificación`,other:()=>`${t.number(e.count)} notificaciones`})}.`},"et-EE":{close:"Sule",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} teatis`,other:()=>`${t.number(e.count)} teatist`})}.`},"fi-FI":{close:"Sulje",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ilmoitus`,other:()=>`${t.number(e.count)} ilmoitusta`})}.`},"fr-FR":{close:"Fermer",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notification`,other:()=>`${t.number(e.count)} notifications`})}.`},"he-IL":{close:"סגור",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} התראה`,other:()=>`${t.number(e.count)} התראות`})}.`},"hr-HR":{close:"Zatvori",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obavijest`,other:()=>`${t.number(e.count)} obavijesti`})}.`},"hu-HU":{close:"Bezárás",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} értesítés`,other:()=>`${t.number(e.count)} értesítés`})}.`},"it-IT":{close:"Chiudi",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notifica`,other:()=>`${t.number(e.count)} notifiche`})}.`},"ja-JP":{close:"閉じる",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} 個の通知`,other:()=>`${t.number(e.count)} 個の通知`})}。`},"ko-KR":{close:"닫기",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}개 알림`,other:()=>`${t.number(e.count)}개 알림`})}.`},"lt-LT":{close:"Uždaryti",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} pranešimas`,other:()=>`${t.number(e.count)} pranešimai`})}.`},"lv-LV":{close:"Aizvērt",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} paziņojums`,other:()=>`${t.number(e.count)} paziņojumi`})}.`},"nb-NO":{close:"Lukk",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} varsling`,other:()=>`${t.number(e.count)} varsler`})}.`},"nl-NL":{close:"Sluiten",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} melding`,other:()=>`${t.number(e.count)} meldingen`})}.`},"pl-PL":{close:"Zamknij",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} powiadomienie`,few:()=>`${t.number(e.count)} powiadomienia`,many:()=>`${t.number(e.count)} powiadomień`,other:()=>`${t.number(e.count)} powiadomienia`})}.`},"pt-BR":{close:"Fechar",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notificação`,other:()=>`${t.number(e.count)} notificações`})}.`},"pt-PT":{close:"Fechar",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notificação`,other:()=>`${t.number(e.count)} notificações`})}.`},"ro-RO":{close:"Închideţi",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} notificare`,other:()=>`${t.number(e.count)} notificări`})}.`},"ru-RU":{close:"Закрыть",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} уведомление`,other:()=>`${t.number(e.count)} уведомления`})}.`},"sk-SK":{close:"Zatvoriť",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} oznámenie`,few:()=>`${t.number(e.count)} oznámenia`,other:()=>`${t.number(e.count)} oznámení`})}.`},"sl-SI":{close:"Zapri",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obvestilo`,two:()=>`${t.number(e.count)} obvestili`,few:()=>`${t.number(e.count)} obvestila`,other:()=>`${t.number(e.count)} obvestil`})}.`},"sr-SP":{close:"Zatvori",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} obaveštenje`,other:()=>`${t.number(e.count)} obaveštenja`})}.`},"sv-SE":{close:"Stäng",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} meddelande`,other:()=>`${t.number(e.count)} meddelanden`})}.`},"tr-TR":{close:"Kapat",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} bildirim`,other:()=>`${t.number(e.count)} bildirim`})}.`},"uk-UA":{close:"Закрити",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} сповіщення`,other:()=>`${t.number(e.count)} сповіщення`})}.`},"zh-CN":{close:"关闭",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} 个通知`,other:()=>`${t.number(e.count)} 个通知`})}。`},"zh-TW":{close:"關閉",notifications:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} 個通知`,other:()=>`${t.number(e.count)} 個通知`})}。`}};var sT=n(13552);const lT=Symbol.for("react-aria-landmark-manager");function cT(e){return document.addEventListener("react-aria-landmark-manager-change",e),()=>document.removeEventListener("react-aria-landmark-manager-change",e)}function uT(){if("undefined"==typeof document)return null;let e=document[lT];return e&&e.version>=1?e:(document[lT]=new dT,document.dispatchEvent(new CustomEvent("react-aria-landmark-manager-change")),document[lT])}class dT{setupIfNeeded(){this.isListening||(document.addEventListener("keydown",this.f6Handler,{capture:!0}),document.addEventListener("focusin",this.focusinHandler,{capture:!0}),document.addEventListener("focusout",this.focusoutHandler,{capture:!0}),this.isListening=!0)}teardownIfNeeded(){!this.isListening||this.landmarks.length>0||this.refCount>0||(document.removeEventListener("keydown",this.f6Handler,{capture:!0}),document.removeEventListener("focusin",this.focusinHandler,{capture:!0}),document.removeEventListener("focusout",this.focusoutHandler,{capture:!0}),this.isListening=!1)}focusLandmark(e,t){var n,r;null===(r=this.landmarks.find((t=>t.ref.current===e)))||void 0===r||null===(n=r.focus)||void 0===n||n.call(r,t)}getLandmarksByRole(e){return new Set(this.landmarks.filter((t=>t.role===e)))}getLandmarkByRole(e){return this.landmarks.find((t=>t.role===e))}addLandmark(e){if(this.setupIfNeeded(),this.landmarks.find((t=>t.ref===e.ref))||!e.ref.current)return;if(this.landmarks.filter((e=>"main"===e.role)).length>1&&console.error('Page can contain no more than one landmark with the role "main".'),0===this.landmarks.length)return this.landmarks=[e],void this.checkLabels(e.role);let t=0,n=this.landmarks.length-1;for(;t<=n;){let r=Math.floor((t+n)/2),o=e.ref.current.compareDocumentPosition(this.landmarks[r].ref.current);Boolean(o&Node.DOCUMENT_POSITION_PRECEDING||o&Node.DOCUMENT_POSITION_CONTAINS)?t=r+1:n=r-1}this.landmarks.splice(t,0,e),this.checkLabels(e.role)}updateLandmark(e){let t=this.landmarks.findIndex((t=>t.ref===e.ref));t>=0&&(this.landmarks[t]={...this.landmarks[t],...e},this.checkLabels(this.landmarks[t].role))}removeLandmark(e){this.landmarks=this.landmarks.filter((t=>t.ref!==e)),this.teardownIfNeeded()}checkLabels(e){let t=this.getLandmarksByRole(e);if(t.size>1){let n=[...t].filter((e=>!e.label));if(n.length>0)console.warn(`Page contains more than one landmark with the '${e}' role. If two or more landmarks on a page share the same role, all must be labeled with an aria-label or aria-labelledby attribute: `,n.map((e=>e.ref.current)));else{let n=[...t].map((e=>e.label)),r=n.filter(((e,t)=>n.indexOf(e)!==t));r.forEach((n=>{console.warn(`Page contains more than one landmark with the '${e}' role and '${n}' label. If two or more landmarks on a page share the same role, they must have unique labels: `,[...t].filter((e=>e.label===n)).map((e=>e.ref.current)))}))}}}closestLandmark(e){let t=new Map(this.landmarks.map((e=>[e.ref.current,e]))),n=e;for(;n&&!t.has(n)&&n!==document.body&&n.parentElement;)n=n.parentElement;return t.get(n)}getNextLandmark(e,{backward:t}){var n;let r=this.closestLandmark(e),o=t?this.landmarks.length-1:0;r&&(o=this.landmarks.indexOf(r)+(t?-1:1));let i=()=>{if(o<0){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"backward"},bubbles:!0,cancelable:!0})))return!0;o=this.landmarks.length-1}else if(o>=this.landmarks.length){if(!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation",{detail:{direction:"forward"},bubbles:!0,cancelable:!0})))return!0;o=0}return o<0||o>=this.landmarks.length};if(i())return;let a=o;for(;null===(n=this.landmarks[o].ref.current)||void 0===n?void 0:n.closest("[aria-hidden=true]");){if(o+=t?-1:1,i())return;if(o===a)break}return this.landmarks[o]}f6Handler(e){if("F6"===e.key){(e.altKey?this.focusMain():this.navigate(e.target,e.shiftKey))&&(e.preventDefault(),e.stopPropagation())}}focusMain(){let e=this.getLandmarkByRole("main");return!!(e&&e.ref.current&&document.contains(e.ref.current))&&(this.focusLandmark(e.ref.current,"forward"),!0)}navigate(e,t){let n=this.getNextLandmark(e,{backward:t});if(!n)return!1;if(n.lastFocused){let e=n.lastFocused;if(document.body.contains(e))return e.focus(),!0}return!(!n.ref.current||!document.contains(n.ref.current))&&(this.focusLandmark(n.ref.current,t?"backward":"forward"),!0)}focusinHandler(e){let t=this.closestLandmark(e.target);t&&t.ref.current!==e.target&&this.updateLandmark({ref:t.ref,lastFocused:e.target});let n=e.relatedTarget;if(n){let e=this.closestLandmark(n);e&&e.ref.current===n&&e.blur()}}focusoutHandler(e){let t=e.target,n=e.relatedTarget;if(!n||n===document){let e=this.closestLandmark(t);e&&e.ref.current===t&&e.blur()}}createLandmarkController(){let e=this;return e.refCount++,e.setupIfNeeded(),{navigate(t,n){let r=(null==n?void 0:n.from)||document.activeElement;return e.navigate(r,"backward"===t)},focusNext(t){let n=(null==t?void 0:t.from)||document.activeElement;return e.navigate(n,!1)},focusPrevious(t){let n=(null==t?void 0:t.from)||document.activeElement;return e.navigate(n,!0)},focusMain:()=>e.focusMain(),dispose(){e&&(e.refCount--,e.teardownIfNeeded(),e=null)}}}registerLandmark(e){return this.landmarks.find((t=>t.ref===e.ref))?this.updateLandmark(e):this.addLandmark(e),()=>this.removeLandmark(e.ref)}constructor(){this.landmarks=[],this.isListening=!1,this.refCount=0,this.version=1,this.f6Handler=this.f6Handler.bind(this),this.focusinHandler=this.focusinHandler.bind(this),this.focusoutHandler=this.focusoutHandler.bind(this)}}function pT(e,t){const{role:n,"aria-label":r,"aria-labelledby":o,focus:i}=e;let a=(0,sT.useSyncExternalStore)(cT,uT,uT),s=r||o,[c,u]=(0,l.useState)(!1),d=(0,l.useCallback)((()=>{u(!0)}),[u]),p=(0,l.useCallback)((()=>{u(!1)}),[u]);return(0,Ae.Nf)((()=>{if(a)return a.registerLandmark({ref:t,label:s,role:n,focus:i||d,blur:p})}),[a,s,t,n,i,d,p]),(0,l.useEffect)((()=>{var e;c&&(null===(e=t.current)||void 0===e||e.focus())}),[c,t]),{landmarkProps:{role:n,tabIndex:c?-1:void 0,"aria-label":r,"aria-labelledby":o}}}var hT=Object.create,fT=Object.defineProperty,mT=Object.getOwnPropertyDescriptor,gT=Object.getOwnPropertyNames,vT=Object.getPrototypeOf,yT=Object.prototype.hasOwnProperty,bT=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),wT=(e,t,n)=>(n=null!=e?hT(vT(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of gT(t))!yT.call(e,o)&&o!==n&&fT(e,o,{get:()=>t[o],enumerable:!(r=mT(t,o))||r.enumerable});return e})(e&&e.__esModule?n:fT(n,"default",{value:e,enumerable:!0}),e)),xT=bT(((e,t)=>{var n={}.hasOwnProperty,r=/[ -,\.\/:-@\[-\^`\{-~]/,o=/[ -,\.\/:-@\[\]\^`\{-~]/,i=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,a=function e(t,a){a=function(e,t){if(!e)return t;var r={};for(var o in t)r[o]=n.call(e,o)?e[o]:t[o];return r}(a,e.options),"single"!=a.quotes&&"double"!=a.quotes&&(a.quotes="single");for(var s="double"==a.quotes?'"':"'",l=a.isIdentifier,c=t.charAt(0),u="",d=0,p=t.length;d<p;){var h=t.charAt(d++),f=h.charCodeAt(),m=void 0;if(f<32||f>126){if(f>=55296&&f<=56319&&d<p){var g=t.charCodeAt(d++);56320==(64512&g)?f=((1023&f)<<10)+(1023&g)+65536:d--}m="\\"+f.toString(16).toUpperCase()+" "}else m=a.escapeEverything?r.test(h)?"\\"+h:"\\"+f.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(h)?"\\"+f.toString(16).toUpperCase()+" ":"\\"==h||!l&&('"'==h&&s==h||"'"==h&&s==h)||l&&o.test(h)?"\\"+h:h;u+=m}return l&&(/^-[-\d]/.test(u)?u="\\-"+u.slice(1):/\d/.test(c)&&(u="\\3"+c+" "+u.slice(1))),u=u.replace(i,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!l&&a.wrap?s+u+s:u};a.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},a.version="3.0.0",t.exports=a})),ST=bT(((e,t)=>{var n=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===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c(function(e){return Array.isArray(e)?[]:{}}(e),e,t):e}function i(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function s(e,t){try{return t in e}catch{return!1}}function l(e,t,n){var r={};return n.isMergeableObject(e)&&a(e).forEach((function(t){r[t]=o(e[t],n)})),a(t).forEach((function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))})),r}function c(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=o;var a=Array.isArray(t);return a===Array.isArray(e)?a?r.arrayMerge(e,t,r):l(e,t,r):o(t,r)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return c(e,n,t)}),{})};var u=c;t.exports=u})),_T=typeof document<"u"?l.useLayoutEffect:()=>{};function CT(e){let t=(0,l.useRef)(null);return _T((()=>{t.current=e}),[e]),(0,l.useCallback)(((...e)=>{let n=t.current;return n?.(...e)}),[])}var ET={prefix:String(Math.round(1e10*Math.random())),current:0},kT=l.createContext(ET),zT=l.createContext(!1),PT=!!(typeof window<"u"&&window.document&&window.document.createElement),AT=new WeakMap;var DT="function"==typeof l.useId?function(e){let t=l.useId(),[n]=(0,l.useState)("function"==typeof l.useSyncExternalStore?l.useSyncExternalStore(MT,TT,IT):(0,l.useContext)(zT));return e||`${n?"react-aria":`react-aria${ET.prefix}`}-${t}`}:function(e){let t=(0,l.useContext)(kT);t===ET&&!PT&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=function(e=!1){let t=(0,l.useContext)(kT),n=(0,l.useRef)(null);if(null===n.current&&!e){var r,o;let e=null===(o=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===o||null===(r=o.ReactCurrentOwner)||void 0===r?void 0:r.current;if(e){let n=AT.get(e);null==n?AT.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,AT.delete(e))}n.current=++t.current}return n.current}(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`};function TT(){return!1}function IT(){return!0}function MT(e){return()=>{}}var NT=!!(typeof window<"u"&&window.document&&window.document.createElement),OT=new Map;function RT(e){let[t,n]=(0,l.useState)(e),r=(0,l.useRef)(null),o=DT(t),i=(0,l.useCallback)((e=>{r.current=e}),[]);return NT&&(OT.has(o)&&!OT.get(o).includes(i)?OT.set(o,[...OT.get(o),i]):OT.set(o,[i])),_T((()=>{let e=o;return()=>{OT.delete(e)}}),[o]),(0,l.useEffect)((()=>{let e=r.current;e&&(r.current=null,n(e))})),o}function jT(e,t){if(e===t)return e;let n=OT.get(e);if(n)return n.forEach((e=>e(t))),t;let r=OT.get(t);return r?(r.forEach((t=>t(e))),e):t}function FT(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}var BT=e=>{var t;return null!==(t=e?.ownerDocument)&&void 0!==t?t:document},LT=e=>e&&"window"in e&&e.window===e?e:BT(e).defaultView||window;var VT=(e=document)=>{var t;let n=e.activeElement;for(;n&&"shadowRoot"in n&&null!==(t=n.shadowRoot)&&void 0!==t&&t.activeElement;)n=n.shadowRoot.activeElement;return n};function KT(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=KT(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}var HT=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=KT(e))&&(r&&(r+=" "),r+=t);return r};function $T(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],o=r[e];"function"==typeof n&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=FT(n,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof o?"id"===e&&n&&o?t.id=jT(n,o):t[e]=void 0!==o?o:n:t[e]=HT(n,o)}}return t}function UT(...e){return 1===e.length&&e[0]?e[0]:t=>{for(let n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}var WT=new Set(["id"]),qT=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),GT=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),ZT=/^(data-.*)$/;function YT(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(WT.has(t)||n&&qT.has(t)||r&&GT.has(t)||o?.has(t)||ZT.test(t))&&(i[t]=e[t]);return i}var XT=function(e){let t=null;return()=>(null==t&&(t=e()),t)}((function(){return function(e){var t;return!(typeof window>"u"||null==window.navigator)&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}(/Firefox/i)}));function JT(e){let t=(0,l.useRef)(null);return(0,l.useMemo)((()=>({get current(){return t.current},set current(n){t.current=n,"function"==typeof e?e(n):e&&(e.current=n)}})),[e])}function QT(e){let{ref:t,box:n,onResize:r}=e;(0,l.useEffect)((()=>{let e=t?.current;if(e){if(typeof window.ResizeObserver<"u"){let t=new window.ResizeObserver((e=>{e.length&&r()}));return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}}}),[r,t,n])}function eI(e){return!!e&&"label"in e&&!!e.label}function tI(e){return!!e&&"children"in e&&!!e.children&&"title"in e}function nI(){return(0,l.useCallback)((e=>function(e){return tI(e)?(0,m.jsx)(f.wn,{items:e.children,title:e.title,"aria-label":e.title,children:e=>(0,m.jsx)(f.q7,{textValue:e.label,children:e.label},e.id)},e.id):(0,m.jsx)(f.q7,{textValue:e.label,children:e.label},e.id)}(e)),[])}function rI(e,t,n){let{direction:r}=(0,h.Ym)(),o=(0,f.uA)({...e,collection:t.collection,selectionManager:t.selectionManager,isDisabled:!e.enableReorder,getItems:e.getItems||(e=>[...e].map((e=>{let n=t.collection.getItem(e);return(0,s.V1)(n,"Expected item to be defined."),{"text/plain":n.textValue}})))});(0,h.TG)(e,o,n);let i=(0,f.ek)({...e,collection:t.collection,selectionManager:t.selectionManager}),{collectionProps:a}=(0,h.z2)({...e,keyboardDelegate:new h.nW({collection:t.collection,disabledKeys:t.disabledKeys,ref:n,orientation:e.orientation,layout:e.layout,direction:r}),dropTargetDelegate:new h._z(t.collection,n)},i,n);return{collectionProps:a,dragState:o,dropState:i}}function oI(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function iI(e,t,n){return(t=oI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aI(Object(n),!0).forEach((function(t){iI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lI(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}var cI=(e,t,n)=>{for(var r of Object.keys(e)){var o;if(e[r]!==(null!==(o=t[r])&&void 0!==o?o:n[r]))return!1}return!0},uI=e=>{var t=t=>{var n=e.defaultClassName,r=sI(sI({},e.defaultVariants),t);for(var o in r){var i,a=null!==(i=r[o])&&void 0!==i?i:e.defaultVariants[o];if(null!=a){var s=a;"boolean"==typeof s&&(s=!0===s?"true":"false");var l=e.variantClassNames[o][s];l&&(n+=" "+l)}}for(var[c,u]of e.compoundVariants)cI(c,r,e.defaultVariants)&&(n+=" "+u);return n};return t.variants=()=>Object.keys(e.variantClassNames),t.classNames={get base(){return e.defaultClassName.split(" ")[0]},get variants(){return lI(e.variantClassNames,(e=>lI(e,(e=>e.split(" ")[0]))))}},t},dI=uI({defaultClassName:"_6n12k9b _1yep5z6ls _1yep5z6lr _1yep5z6ic _1yep5z6la",variantClassNames:{isDropTarget:{true:"_1yep5z6140"},orientation:{vertical:"_1yep5z617q",horizontal:"_1yep5z617r"}},defaultVariants:{},compoundVariants:[]}),pI=uI({defaultClassName:"_6n12k99 _1yep5z6ev _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),hI=uI({defaultClassName:"_6n12k91 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6dy _1yep5z6eu _1yep5z6la _1yep5z6ld _1yep5z6lq _1yep5z6lp _1yep5z6ln _1yep5z6lk",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z6140 _1yep5z617w _1yep5z617u _1yep5z617x _1yep5z614g _1yep5z614h _1yep5z614i"},isHovered:{true:"_1yep5z6125",false:"_1yep5z6124"},isFirstChild:{true:"_6n12k95"},isLastChild:{true:"_6n12k96"},isDisabled:{true:"z9nup83 _1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),fI=uI({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]}),mI=l.forwardRef((({className:e,style:t,variant:n="primary",orientation:r="horizontal",UNSAFE_omitRole:o,elementType:i="div","data-block-id":a,"data-block-class":l,...c},u)=>{let{separatorProps:d}=(0,h.ry)({...c,orientation:r,elementType:i});return(0,m.jsx)(i,{...d,className:(0,s.xW)(fI({isVertical:"vertical"===r,isSecondary:"secondary"===n}),"BaselineUI-Separator",e),"data-orientation":r,"data-block-id":a,"data-block-class":l,style:t,role:o?void 0:d.role,ref:u})}));function gI(e){return v.UV.properties.has(e)}mI.displayName="Separator";var vI=l.forwardRef((({elementType:e="div",children:t,...n},r)=>{let o=e,{sprinkleProps:i,domProps:a}=(0,l.useMemo)((()=>{let e={},t={};for(let r in n)gI(r)?e[r]=n[r]:t[r]=n[r];return{sprinkleProps:e,domProps:t}}),[n]);return(0,m.jsx)(o,{...a,className:(0,s.xW)((0,v.UV)(i),"BaselineUI-Box",a.className),ref:r,children:t})}));vI.displayName="Box";var yI=l.forwardRef((({item:e,isDisabled:t,isFocusVisible:n,isSelected:r,liProps:o,showSelectedIcon:i,description:a,descriptionProps:l,labelProps:c,isFocused:u,isPressed:d,_state:p},f)=>{(0,s.V1)(e.value&&eI(e.value),"Item cannot be a section");let{icon:v,label:y}=e.value,{hoverProps:b,isHovered:w}=(0,h.Mk)({isDisabled:t}),x=(0,s.nP)({"data-selected":r,"data-disabled":t,"data-focused":u,"data-hovered":w,"data-pressed":d,"data-focus-visible":n,"data-selection-mode":p.selectionManager.selectionMode});return(0,m.jsxs)("li",{...(0,h.v6)(o,b,x),className:(0,s.xW)(hI({isHovered:w,isFocused:n,isFirstChild:p.collection.getFirstKey()===e.key,isLastChild:p.collection.getLastKey()===e.key,isDisabled:t}),o.className,"BaselineUI-ListBox-Option"),style:o.style,ref:f,children:[(0,m.jsxs)(vI,{display:"flex",alignItems:"center",gap:"lg",children:[i?(0,m.jsx)("span",{"aria-hidden":!0,style:{height:24,width:24},children:r?(0,m.jsx)(g.Nrt,{size:24}):null}):null,v?(0,m.jsx)(v,{size:24}):null,(0,m.jsx)("span",{...c,children:y})]}),a?(0,m.jsx)("span",{className:pI({isDisabled:t}),...l,children:a}):null]})}));yI.displayName="DefaultRenderOption";var bI=({dropState:e,orientation:t="vertical",dropIndicatorStyle:n,dropIndicatorClassName:r,renderDropIndicator:o=({isDropTarget:e,isHidden:t,dropIndicatorProps:o,orientation:i},a)=>t?null:(0,m.jsx)("li",{...o,ref:a,"data-drop-target":e,className:(0,s.xW)(dI({isDropTarget:e,orientation:i}),"BaselineUI-DropIndicator",r),style:n}),...i})=>{let a=l.useRef(null),{dropIndicatorProps:c,isHidden:u,isDropTarget:d}=(0,h.mp)(i,e,a);return o({dropIndicatorProps:{...c,role:"option"},isHidden:u,isDropTarget:d,orientation:t},a)};function wI(e,t,n){return"function"==typeof e?e(t,n):e}function xI(e,t,n){return"function"==typeof e?e(t,n):e}function SI(e,t){return"function"==typeof e?e(t):e}function _I(e,t){return"function"==typeof e?e(t):e}var CI=({item:e,children:t,state:n,dragState:r,...o})=>{let{dragProps:i}=(0,h.OG)({key:e.key},r);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(bI,{target:{type:"item",key:e.key,dropPosition:"before"},...o}),t(i),null==n.collection.getKeyAfter(e.key)&&(0,m.jsx)(bI,{target:{type:"item",key:e.key,dropPosition:"after"},...o})]})};CI.displayName="DraggableListOption";var EI=l.forwardRef((({item:e,renderOption:t=(e,t,n)=>(0,m.jsx)(yI,{item:e,liProps:t.optionProps,...t,ref:n}),showSelectedIcon:n,state:r,dragState:o,dropState:i,orientation:a,dropIndicatorStyle:c,dropIndicatorClassName:u,optionStyle:d,optionClassName:p},f)=>{let g=l.useRef(null),v=(0,h.xW)({key:e.key},r,g),{value:y}=e;(0,s.V1)(y&&eI(y),"ListSection should not be passed to ListOption");let b={isFocusVisible:v.isFocusVisible,isSelected:v.isSelected,isFocused:v.isFocused,isDisabled:v.isDisabled,isPressed:v.isPressed},w={style:xI(d,y,b),className:wI(p,y,b)};return o&&i?(0,m.jsx)(CI,{orientation:a,state:r,item:e,dropState:i,dragState:o,dropIndicatorStyle:c,dropIndicatorClassName:u,children:o=>t(e,{...v,showSelectedIcon:n,_state:r,optionProps:{...(0,h.v6)(v.optionProps,o),...w}},UT(g,f))}):t(e,{...v,showSelectedIcon:n,_state:r,optionProps:{...v.optionProps,...w}},UT(g,f))}));EI.displayName="Option";var kI=({section:e,state:t,sectionClassName:n,sectionStyle:r,showSectionHeader:o,renderSectionHeader:i,withSectionHeaderPadding:a=!1,...c})=>{let u=l.useRef(null),{itemProps:d,groupProps:p,headingProps:f}=(0,h.u4)({heading:o?i?.(e,u)||e.rendered:void 0,"aria-label":e["aria-label"]}),g=t.collection.getChildren?.(e.key);(0,s.V1)(g,"children must be defined");let{value:v}=e;(0,s.V1)(v&&tI(v),"section must be a ListSection");let y="function"==typeof r?r(v):r,b="function"==typeof n?n(v):n;return(0,m.jsxs)(m.Fragment,{children:[e.key===t.collection.getFirstKey()?null:(0,m.jsx)(mI,{UNSAFE_omitRole:!0}),(0,m.jsxs)("li",{...d,style:{...d.style,...y},className:(0,s.xW)("_6n12k90",b,"BaselineUI-ListBox-Section"),children:[e.rendered&&o?i?.(e,u)||(0,m.jsx)(vI,{...f,className:(0,s.xW)("BaselineUI-ListBox-SectionHeader","_6n12k9f _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl"),ref:u,paddingX:"lg",typography:"label.md.medium",color:"text.primary",paddingInlineStart:a?"5xl":"lg",paddingInlineEnd:"lg",children:e.rendered}):null,(0,m.jsx)("ul",{...p,children:[...g].map((e=>(0,m.jsx)(EI,{item:e,state:t,...c},e.key)))})]})]})};function zI({type:e="listbox",handle:t},n,r){let o=(0,l.useCallback)((t=>"listbox"===e?r.current?.querySelector(`[data-key="${t}"][role="option"]`):r.current?.querySelector(`[data-key="${t}"][role="row"]`)),[e,r]),i=(0,l.useCallback)(((e,t)=>{let n=o(e);n&&n?.scrollIntoView({block:"nearest",inline:"nearest",...t})}),[o]);(0,l.useImperativeHandle)(t,(()=>({scrollIntoView:i,setFocusedKey:e=>{n.selectionManager.setFocused(!0),n.selectionManager.setFocusedKey(e),i(e),o(e)?.focus()}})),[i,n.selectionManager,o]),(0,y.useGranularEffect)((()=>{let e=r.current?.getRootNode(),t=e&&function(e){return function(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&"number"==typeof e.nodeType}(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}(e),o=n.selectionManager.focusedKey;t&&o&&i(o)}),[n.selectionManager.focusedKey],[i,r])}var PI=l.createContext(null),AI=l.forwardRef((({className:e,layout:t="stack",orientation:n="vertical",showSelectedIcon:r=!0,style:o,renderOption:i,enableReorder:a=!1,"data-block-id":c,"data-block-class":u,renderDragPreview:d,onReorder:p,state:f,listBoxHandle:g,...v},y)=>{let b=l.useRef(null),{direction:w}=(0,h.Ym)(),x=l.useRef(null),{listBoxProps:S}=(0,h.Xv)({...v,shouldSelectOnPressUp:a,keyboardDelegate:new h.nW({collection:f.collection,ref:x,layout:t,orientation:n,direction:w,disabledKeys:f.disabledKeys})},f,x);zI({handle:g},f,x);let{collectionProps:_,dragState:C,dropState:E}=rI({...v,onReorder:p,layout:t,orientation:n,enableReorder:a,preview:b},f,x),{isFocusVisible:k,isFocused:z,focusProps:P}=(0,h.og)(),A=(0,s.nP)({"data-block-id":c,"data-block-class":u,"data-layout":t,"data-empty":0===f.collection.size,"data-focused":z,"data-focus-visible":k,"data-orientation":n});return(0,m.jsxs)("ul",{...(0,h.v6)(S,P,A,_),className:(0,s.xW)("_6n12k98 _1yep5z6lq _1yep5z6is _1yep5z6it _1yep5z6iu","BaselineUI-ListBox",e),style:o,ref:UT(y,x),children:[[...f.collection].map((e=>{let t={key:e.key,state:f,dragState:C,dropState:E,renderOption:i,renderDropIndicator:v.renderDropIndicator,renderSectionHeader:v.renderSectionHeader,showSelectedIcon:r,orientation:n,dropIndicatorStyle:v.dropIndicatorStyle,dropIndicatorClassName:v.dropIndicatorClassName,optionStyle:v.optionStyle,optionClassName:v.optionClassName,sectionClassName:v.sectionClassName,sectionStyle:v.sectionStyle,showSectionHeader:v.showSectionHeader,withSectionHeaderPadding:v.withSectionHeaderPadding};return"section"===e.type?(0,l.createElement)(kI,{...t,key:e.key,section:e}):(0,l.createElement)(EI,{...t,key:e.key,item:e})})),d?(0,m.jsx)(h.B2,{ref:b,children:d}):null]})}));AI.displayName="ListBoxCore";var DI=l.forwardRef(((e,t)=>{let n=nI(),r=(0,f.pE)({...e,children:n});return(0,m.jsx)(AI,{...e,ref:t,state:r})}));DI.displayName="ListBoxStandalone";var TI=l.forwardRef(((e,t)=>{let n=(0,l.useContext)(PI);return(0,l.useEffect)((()=>{if(!e.items&&!n)throw new Error("ListBox: You must provide a `state` or `items` prop to render the listbox.")}),[e.items,n]),n?(0,m.jsx)(AI,{...e,ref:t,state:n}):(0,m.jsx)(DI,{...e,ref:t})}));TI.displayName="ListBox";var II="uf19bsf _1yep5z6la",MI=uI({defaultClassName:"uf19bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5 _1yep5z6lp _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6lk",variantClassNames:{size:{xxs:"uf19bs1",xs:"uf19bs2",sm:"uf19bs3",md:"uf19bs4",lg:"uf19bs5 _1yep5z6wo _1yep5z6wp _1yep5z6wq _1yep5z6xc _1yep5z6xd _1yep5z6xe _1yep5z6y0 _1yep5z6y1 _1yep5z6y2 _1yep5z6yo _1yep5z6yp _1yep5z6yq"},isHovered:{true:"uf19bs6"},isDisabled:{true:"uf19bs7 _1yep5z611a"},isFocusVisible:{true:"uf19bs8"},variant:{primary:"uf19bs9",secondary:"uf19bsa",tertiary:"uf19bsb",ghost:"uf19bsc",toolbar:"uf19bsd _1yep5z6x6 _1yep5z6x7 _1yep5z6x8 _1yep5z6xu _1yep5z6xv _1yep5z6xw _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8",popover:"uf19bse _1yep5z6pr _1yep5z6ps _1yep5z6pt _1yep5z6nf _1yep5z6ng _1yep5z6nh _1yep5z6m6 _1yep5z6m7 _1yep5z6m8 _1yep5z6oi _1yep5z6oj _1yep5z6ok _1yep5z6vr _1yep5z6vs _1yep5z6vt"}},defaultVariants:{},compoundVariants:[[{variant:"toolbar",isHovered:!0,isFocusVisible:!1},"_1yep5z61o9"],[{variant:"primary",isHovered:!0,isFocusVisible:!1},"_1yep5z61o9"],[{variant:"secondary",isHovered:!0,isFocusVisible:!1},"_1yep5z61nc"],[{variant:"tertiary",isHovered:!0,isFocusVisible:!1},"_1yep5z61nb _1yep5z61o9"],[{variant:"ghost",isHovered:!0,isFocusVisible:!1},"_1yep5z61nh"],[{variant:"popover",isHovered:!0,isFocusVisible:!1},"_1yep5z61q6 _1yep5z61tx _1yep5z61u1 _1yep5z61ty"],[{variant:"ghost",isDisabled:!1},"_1yep5z61ng"],[{variant:"popover",size:"lg"},"_1yep5z61io _1yep5z61ip _1yep5z61iq _1yep5z61jc _1yep5z61jd _1yep5z61je _1yep5z61k0 _1yep5z61k1 _1yep5z61k2 _1yep5z61ko _1yep5z61kp _1yep5z61kq"]]}),NI=l.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),OI=({children:e,...t})=>{let n=l.useRef(null),r=(0,f.Tl)(t),o=(0,h.oJ)(t,r),i=(0,l.useMemo)((()=>({state:r,overlayTriggerAria:o,triggerRef:n})),[r,o]);return(0,m.jsx)(NI.Provider,{value:i,children:e})},RI=uI({defaultClassName:"_1gzftth2",variantClassNames:{placement:{bottom:"_1gzftth3",top:"_1gzftth4",right:"_1gzftth5",left:"_1gzftth6"}},defaultVariants:{},compoundVariants:[]}),jI=uI({defaultClassName:"_1gzftth7",variantClassNames:{placement:{bottom:"_1gzftth8",top:"_1gzftth9",right:"_1gzfttha",left:"_1gzftthb"}},defaultVariants:{},compoundVariants:[]}),FI="var(--_1gzftth0)";function BI(e){return e.closest(".BaselineUI-Portal")||e.closest(".BaselineUI-Popover-Content")}function LI(e){return!("object"!=typeof e||"number"!=typeof e.left||"number"!=typeof e.top||"number"!=typeof e.width&&void 0!==e.width||"number"!=typeof e.height&&void 0!==e.height)}var VI=l.createContext({isSelected:!1,ref:void 0}),KI=({children:e,anchorRect:t})=>{let{state:n,overlayTriggerAria:r,triggerRef:o}=(0,l.useContext)(NI);(0,s.V1)(n,"PopoverTrigger must be used within a Popover");let{triggerProps:i}=r,a=(0,l.useMemo)((()=>({...i,isSelected:n.isOpen,ref:o})),[i,n.isOpen,o]);return(0,s.V1)(!t&&e||t&&!e,"Either one of anchorRect or children has to be provided."),(0,s.V1)(!t||LI(t),"If provided, the anchorRect prop must be an object with left and top number values, and optionally width and height."),(0,m.jsx)(VI.Provider,{value:a,children:t?(0,m.jsx)("div",{className:(0,s.xW)("_1gzftthd","BaselineUI-PopoverTrigger-Hidden"),style:t,ref:o,tabIndex:-1},JSON.stringify(t)):e})},HI=({label:e,tooltip:t})=>({tooltipProps:(0,l.useMemo)((()=>{let n={size:"sm",variant:"inverse",text:e,includeArrow:!1,placement:"bottom start",offset:4};return"object"==typeof t?{...n,...t}:t?n:void 0}),[e,t])});function $I({tooltip:e,"aria-label":t,"aria-labelledby":n},r){let[o,i]=(0,l.useState)(t||"");(0,l.useEffect)((()=>{if(n){let e=BT(r.current).querySelector(`#${n}`);e&&i(e.textContent||"")}else t&&i(t)}),[n,r,t]);let{tooltipProps:a}=HI({label:o,tooltip:e});return{tooltipProps:a}}var UI=e=>{let t=l.useRef(null),{ref:n,...r}=(0,l.useContext)(VI)||{},{buttonProps:o,isPressed:i}=(0,h.sL)({...e,...r},t),{isFocusVisible:a,isFocused:s,focusProps:c}=(0,h.og)(),{hoverProps:u,isHovered:d}=(0,h.Mk)({isDisabled:e.isDisabled});return{buttonProps:$T(o,c,u),isPressed:i,ref:UT(t,n||null),isFocusVisible:a,isFocused:s,isHovered:d,uiStateOptions:{isHovered:d,isFocused:s,isPressed:i,isDisabled:e.isDisabled,isFocusVisible:a}}},WI=(e,t)=>{let n=l.useRef(null),{ref:r,...o}=(0,l.useContext)(VI)||{},{buttonProps:i,isPressed:a}=(0,h.qQ)({...e,...o},t,n);("radio"===i.role||"checkbox"===i.role)&&(i["aria-pressed"]=void 0);let{isFocusVisible:s,isFocused:c,focusProps:u}=(0,h.og)(),{hoverProps:d,isHovered:p}=(0,h.Mk)({isDisabled:e.isDisabled});return{buttonProps:$T(i,u,d),isPressed:a,ref:UT(n,r||null),isFocusVisible:s,isFocused:c,isHovered:p,uiStateOptions:{isHovered:p,isFocused:c,isPressed:a,isDisabled:e.isDisabled,isFocusVisible:s,isSelected:t.isSelected}}},qI=uI({defaultClassName:"oom8bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6dy _1yep5z6la",variantClassNames:{variant:{primary:"oom8bs1",secondary:"oom8bs2",tertiary:"oom8bs3",ghost:"oom8bs4",popover:"oom8bs5",toolbar:"oom8bs6",success:"oom8bs7",warning:"oom8bs8",error:"oom8bs9"},isDisabled:{true:"oom8bsa"},isFocusVisible:{true:"oom8bsb"},isHovered:{true:"oom8bsc"},size:{sm:"oom8bsd",md:"oom8bse",lg:"oom8bsf"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:!0},"oom8bsg"],[{variant:"secondary",isHovered:!0},"oom8bsh"],[{variant:"tertiary",isHovered:!0},"oom8bsi"],[{variant:"popover",isHovered:!0},"oom8bsj"],[{variant:"ghost",isHovered:!0},"oom8bsk"],[{variant:"success",isHovered:!0},"oom8bsl"],[{variant:"warning",isHovered:!0},"oom8bsm"],[{variant:"error",isHovered:!0},"oom8bsn"],[{variant:"primary",isFocusVisible:!0},"oom8bso"],[{variant:"tertiary",isFocusVisible:!0},"oom8bsp"],[{variant:"success",isFocusVisible:!0},"oom8bsq"],[{variant:"warning",isFocusVisible:!0},"oom8bsr"],[{variant:"error",isFocusVisible:!0},"oom8bss"]]}),GI=uI({defaultClassName:"oom8bst _1yep5z6la",variantClassNames:{isDisabled:{true:"oom8bsu"},isFocusVisible:{true:"oom8bsv"},isHovered:{true:"_1yep5z6115"},variant:{primary:"_1yep5z611c",secondary:"_1yep5z6118",tertiary:"_1yep5z611d",ghost:"_1yep5z611d",popover:"_1yep5z6118",toolbar:"_1yep5z6118",success:"_1yep5z611b",warning:"_1yep5z611b",error:"_1yep5z611b"}},defaultVariants:{},compoundVariants:[[{variant:"tertiary",isHovered:!0},"_1yep5z61nf"],[{variant:"ghost",isHovered:!0},"_1yep5z61nh"],[{variant:"tertiary",isFocusVisible:!0},"_1yep5z61nf"],[{variant:"secondary",isDisabled:!0},"_1yep5z61nd"],[{variant:"tertiary",isDisabled:!0},"_1yep5z61nd"],[{variant:"ghost",isDisabled:!0},"_1yep5z61nd"],[{variant:"popover",isDisabled:!0},"_1yep5z61nd"],[{variant:"toolbar",isDisabled:!0},"_1yep5z61nd"]]}),ZI={sm:16,md:20,lg:24},YI=l.forwardRef((({label:e,style:t,className:n,iconStart:r,iconEnd:o,variant:i="primary",elementType:a="button",isDisabled:l,size:c="sm","data-block-id":u,"data-block-class":d,...p},f)=>{let{buttonProps:g,isPressed:v,ref:y,isFocusVisible:w,isFocused:x,isHovered:S,uiStateOptions:_}=UI({...p,elementType:a,isDisabled:l}),C=ZI[c],E=(0,s.nP)({"data-block-id":u,"data-block-class":d,"data-disabled":l,"data-focused":x,"data-focus-visible":w,"data-hovered":S,"data-pressed":v});return(0,m.jsxs)(a,{...(0,h.v6)(g,E),className:(0,s.xW)(qI({isDisabled:!!l,isFocusVisible:w,isHovered:S,variant:i,size:c}),"BaselineUI-ActionButton","function"==typeof n?n(_):n),style:"function"==typeof t?t(_):t,ref:UT(f,y),children:[!!r&&(0,m.jsx)(r,{size:C,className:GI({variant:i,isDisabled:l,isFocusVisible:w,isHovered:S})}),e,!!o&&(0,m.jsx)(o,{size:C,className:GI({variant:i,isDisabled:l,isFocusVisible:w,isHovered:S})}),"popover"===i&&(0,m.jsx)(b.bD,{size:8,className:II})]})}));YI.displayName="ActionButton";var XI=l.forwardRef((({className:e,style:t,node:n,"data-block-id":r,"data-block-class":o,...i},a)=>{let s=l.useRef(null);l.useEffect((()=>{let e=s.current;return e?.append(n),()=>{e?.contains(n)&&n.remove()}}),[n]);let{pressProps:c,isPressed:u}=(0,h.dD)(i);return(0,m.jsx)("div",{...c,className:e,style:t,"data-block-id":r,"data-block-class":o,"data-pressed":u,"data-testid":"dom-node-renderer",ref:UT(a,s)})}));XI.displayName="DomNodeRenderer";var JI=uI({defaultClassName:"_14uvjig4",variantClassNames:{isDisabled:{true:"_14uvjig5"},hasNumberInput:{false:"_14uvjig6"}},defaultVariants:{},compoundVariants:[]}),QI=uI({defaultClassName:"_14uvjigf _14uvjig1",variantClassNames:{active:{true:"_14uvjigg _14uvjig2"},isDisabled:{true:"_14uvjigh"},isReadOnly:{true:"_14uvjigi"},isFocusVisible:{true:"_14uvjigj _14uvjig2"},isHovered:{true:"_14uvjigk _14uvjig2"}},defaultVariants:{},compoundVariants:[]}),eM=uI({defaultClassName:"_14uvjig9 _14uvjig1",variantClassNames:{active:{true:"_14uvjig2"},isFocusVisible:{true:"_14uvjig2"},isDisabled:{true:"_14uvjigc"},isHovered:{true:"_14uvjig2"}},defaultVariants:{},compoundVariants:[]}),tM=uI({defaultClassName:"nrh1ehx",variantClassNames:{isDisabled:{true:"nrh1ehy"},hasError:{true:"nrh1ehz"},labelPosition:{start:"nrh1eh10",top:"nrh1eh11"}},defaultVariants:{},compoundVariants:[]}),nM=uI({defaultClassName:"nrh1eho",variantClassNames:{isDisabled:{true:"nrh1ehp"},labelPosition:{top:"nrh1ehq",start:"nrh1ehr"}},defaultVariants:{},compoundVariants:[]}),rM=uI({defaultClassName:"nrh1ehs",variantClassNames:{validationState:{valid:"nrh1eht",error:"nrh1ehu",warning:"nrh1ehv"},isReadOnly:{true:"nrh1ehw"}},defaultVariants:{},compoundVariants:[]}),oM="nrh1eh3",iM=uI({defaultClassName:"nrh1eh4",variantClassNames:{labelPosition:{top:"nrh1eh5",start:"nrh1eh6"},hasMessage:{true:"nrh1eh7"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"nrh1eh8"]]}),aM=uI({defaultClassName:"nrh1eh0",variantClassNames:{labelPosition:{top:"z9nup81",start:"nrh1eh2 z9nup82"}},defaultVariants:{},compoundVariants:[]}),sM=uI({defaultClassName:"nrh1eh9 z9nup82",variantClassNames:{validationState:{valid:"nrh1eha",error:"nrh1ehb",warning:"nrh1ehc"},isHovered:{true:"nrh1ehd"},isFocused:{true:"nrh1ehe"},isDisabled:{true:"nrh1ehf"},variant:{primary:"nrh1ehg",ghost:"nrh1ehh"},isReadOnly:{true:"nrh1ehi"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:!0,isFocused:!1,validationState:"valid"},"nrh1ehj"],[{variant:"ghost",isFocused:!1,isHovered:!1,validationState:"valid"},"nrh1ehk"],[{isHovered:!0,validationState:"valid",isDisabled:!1,isReadOnly:!1,isFocused:!1,variant:"primary"},"nrh1ehl"],[{isHovered:!0,validationState:"warning",isDisabled:!1,isReadOnly:!1,isFocused:!1},"nrh1ehm"],[{isReadOnly:!0,variant:"primary",isFocused:!1},"nrh1ehn"]]});function lM({description:e,errorMessageProps:t,descriptionProps:n,warningMessage:r,errorMessage:o,labelPosition:i,isDisabled:a}){return e?(0,m.jsx)("div",{...n,className:tM({isDisabled:a,labelPosition:i}),children:e}):o?(0,m.jsx)("div",{...t,className:tM({hasError:!0,labelPosition:i}),children:o}):r?(0,m.jsx)("div",{className:tM({isDisabled:a,labelPosition:i}),children:r}):null}var cM=uI({defaultClassName:"_1lnwne1 z9nup82",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup83"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:!0,isInteractive:!0},"_1lnwne4"]]}),uM="_1lnwne0",dM=uI({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"},variant:{default:"_1jwycy85",inverse:"_1jwycy86"}},defaultVariants:{},compoundVariants:[]}),pM=uI({defaultClassName:"_1jwycy87 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn",variantClassNames:{size:{md:"_1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6e7",sm:"_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6dv"},variant:{default:"_1yep5z6g9 _1yep5z6ez",inverse:"_1yep5z6d7 _1yep5z6g1 _1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});function hM({placement:e}){let t=(0,l.useMemo)((()=>{switch(e){case"top":return{x:0,y:-4};case"bottom":default:return{x:0,y:4};case"left":return{x:-4,y:0};case"right":return{x:4,y:0}}}),[e]);return{transitionProps:{initial:{opacity:0,transform:`translate3d(${t.x}px, ${t.y}px, 0) scale(0.98)`},animate:{opacity:1,transform:"translate3d(0, 0, 0) scale(1)"},transition:{ease:"easeOut"}}}}var fM=l.forwardRef((({children:e,state:t,overlayProps:n,arrowProps:r,placement:o,variant:i,size:a,tooltipProps:s,includeArrow:l},c)=>{let{tooltipProps:u}=(0,h.fS)({isOpen:t.isOpen},t),d="center"===o?"bottom":o,{transitionProps:p}=hM({placement:o});return(0,m.jsxs)(S.PY.span,{...(0,h.v6)(n,p),ref:c,"data-placement":d,children:[l?(0,m.jsx)("div",{className:dM({placement:d,variant:i}),...r}):null,(0,m.jsx)("div",{...(0,h.v6)(u,s),className:pM({variant:i,size:a}),children:e})]})}));fM.displayName="TooltipContent";var mM=l.createContext(void 0),gM=({portalContainer:e,children:t})=>(0,m.jsx)(mM.Provider,{value:e,children:t});gM.displayName="PortalContainerProvider";var vM="var(--lz9qs1)",yM="var(--lz9qs0)";function bM({ref:e,onIntersect:t,isDisabled:n,threshold:r,rootMargin:o,root:i}){let a=l.useRef(null);(0,l.useEffect)((()=>{if(n)return a.current?.disconnect(),void(a.current=null);a.current=new IntersectionObserver((([e])=>{t(e)}),{root:i?.current,rootMargin:o,threshold:r})}),[t,n,i,o,r]),(0,l.useEffect)((()=>{let{current:t}=a;return e.current&&t?.observe(e.current),()=>t?.disconnect()}),[e])}function wM({ref:e,onResize:t,isDisabled:n}){let r=l.useRef(null),[o,i]=l.useState();return l.useEffect((()=>{if(n)return r.current?.disconnect(),void(r.current=null);r.current=new ResizeObserver((([e])=>{i(e.contentRect),t?.(e)}))}),[t,n,i]),l.useEffect((()=>{let{current:t}=r;return e.current&&t?.observe(e.current),()=>t?.disconnect()}),[e]),{size:o}}function xM({src:e,alt:t}){let[n,r]=(0,l.useState)(!1),[o,i]=(0,l.useState)(!1),[a,s]=(0,l.useState)(!1),c=()=>{r(!0),s(!1)},u=()=>{i(!0),s(!1)};return(0,l.useEffect)((()=>{if(!e)return;s(!0);let t=new Image;return t.src=e,t.addEventListener("load",c),t.addEventListener("error",u),()=>{t.removeEventListener("load",c),t.removeEventListener("error",u)}}),[e]),{isLoaded:n,hasError:o,isLoading:a,imgProps:{src:n?e:void 0,alt:t}}}function SM(){let e=(0,l.useRef)(!0);return(0,l.useEffect)((()=>{e.current=!1}),[]),e.current}var _M="SET_STATE",CM="UNDO",EM="REDO",kM=(e,t)=>{let{past:n,present:r,future:o}=e;switch(t.type){case _M:return{past:[...n,r],present:t.data,future:[]};case CM:return{past:n.slice(0,n?.length-1),present:n[n?.length-1],future:[r,...o]};case EM:return{past:[...n,r],present:o[0],future:o.slice(1)};default:throw new Error("Invalid action type")}},zM=(e={},{isDisabled:t,onAction:n})=>{let r=SM(),[o,i]=(0,l.useReducer)(kM,{past:[],present:e,future:[]}),{past:a,present:s,future:c}=o,u=(0,l.useRef)(),d=!!a?.length,p=!!c?.length;return(0,y.useGranularEffect)((()=>{(u.current===CM||u.current===EM)&&(n?.(s,u.current),u.current=void 0)}),[s],[n,r]),{state:s,push:t?()=>{}:e=>{i({type:_M,data:e})},undo:t?()=>{}:()=>{u.current=CM,i({type:CM})},redo:t?()=>{}:()=>{u.current=EM,i({type:EM})},pastStates:a,futureStates:c,canUndo:d,canRedo:p}},PM=l.createContext({messages:{},shouldLogMissingMessages:!0,hasMissingErrorLoggedFor:{current:new Set},setLang:()=>{}}),AM=({children:e,messages:t={},shouldLogMissingMessages:n=!0,...r})=>{let o=(0,l.useRef)(new Set),[i,a]=(0,l.useState)(r.locale||"");(0,l.useEffect)((()=>{o.current.clear()}),[i,r.locale]);let s=l.useMemo((()=>({messages:t,shouldLogMissingMessages:n,hasMissingErrorLoggedFor:o,setLang:a})),[t,n,a]);return(0,m.jsx)(h.CY,{...r,children:(0,m.jsx)(PM.Provider,{value:s,children:e})})};function DM(e){let{messages:t,shouldLogMissingMessages:n,hasMissingErrorLoggedFor:r,setLang:o}=(0,l.useContext)(PM);(0,l.useEffect)((()=>{!e&&E()(t)&&console.warn("BUI 🌍: No messages object provided and no messages found in the `I18nProvider`. Please provide a messages object to the `useI18n` hook.")}),[e,t]);let i=(0,l.useMemo)((()=>e?(0,s.eh)(e):t),[e,t]),a=(0,h.pn)(i),c=(0,h.Ym)();(0,l.useEffect)((()=>{o(c.locale)}),[c.locale,o]);let u=(0,l.useCallback)((e=>{n&&!r.current.has(e)&&(console.log(`BUI 🌍: Translation not found for key: \`${e}\` for locale: \`${c.locale}\`. The default message, i.e. \`${e}\`, will be used instead.`),r.current.add(e))}),[r,c.locale,n]),d=(0,l.useCallback)(((e,t)=>{if("object"==typeof e)try{return a(e.id,t)}catch{return u(e.id),e.defaultMessage||e.id}else try{return a(e,t)}catch{return u(e),e}}),[a,u]);return(0,l.useMemo)((()=>({formatMessage:d,locale:c})),[d,c])}AM.displayName="I18nProvider";var TM=e=>e;function IM(e,t,n){let r=l.useRef(null);return l.useEffect((()=>{if(e)return r.current=new MutationObserver(n),r.current.observe(e,t),()=>{r.current&&r.current.disconnect()}}),[e,t,n]),r.current}function MM(e,t){let[n,r]=(0,l.useState)((()=>{try{let n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return console.log(e),t}}));return[n,t=>{try{let o=t instanceof Function?t(n):t;r(o),window.localStorage.setItem(e,JSON.stringify(o))}catch(e){console.log(e)}}]}function NM({ref:e,onSelectionChange:t,onSelectionEnd:n,isDisabled:r}){let o=l.useRef(null);(0,h.dD)({ref:e,isDisabled:r,onPressEnd(){let t=LT(e.current).getSelection();t&&e.current?.contains(t.anchorNode)&&n?.(t)},onPressStart(){let t=LT(e.current);o.current=t.getSelection(),o.current&&o.current.removeAllRanges()}}),(0,l.useEffect)((()=>{let n=e.current;if(!n||r)return;function o(){let r=LT(n).getSelection();r&&e.current?.contains(r.anchorNode)&&t(r)}let i=BT(n);return i.addEventListener("selectionchange",o),()=>{i.removeEventListener("selectionchange",o)}}),[e,t,r])}function OM(e){let t=(0,l.useCallback)((()=>{let t=LT(e??typeof window>"u"?void 0:document.body),n=t.matchMedia(v.Pq.tablet);return t.matchMedia(v.Pq.desktop).matches?"desktop":n.matches?"tablet":"mobile"}),[e]),[n,r]=l.useState(t);return _T((()=>{let n=LT(e),o=()=>{r(t())};return n.addEventListener("resize",o),o(),()=>{n.removeEventListener("resize",o)}}),[e,t]),n}var RM=typeof window<"u";function jM(){return RM?document.body:null}var FM=l.createContext({container:null,portalContainer:null,shouldContainOverlays:!1,isContainerPositioned:!1}),BM=({children:e,container:t=jM(),portalContainer:n,shouldContainOverlays:r="auto"})=>{let o=OM(),i=(0,l.useMemo)((()=>t!==jM()&&"never"!==r&&("always"===r||"mobile"!==o)),[r,o,t]),[a,s]=(0,l.useState)(!1),c=SM();(0,l.useEffect)((()=>{if(!t||c)return;let e=LT(t).getComputedStyle(t),n=!!e.position&&"static"!==e.position;s(n);let r=t.getBoundingClientRect();function o({width:e,height:n}){t&&(0,_.b)(t,{[yM]:e,[vM]:n})}(0===r.width||0===r.height)&&console.error("FrameProvider: container does not have a width or height. Please ensure that the container is visible and has a width and height.");let a=new ResizeObserver((e=>{for(let t of e)o({width:`${t.contentRect.width}px`,height:`${t.contentRect.height}px`})}));return i&&(o({width:`${r.width}px`,height:`${r.height}px`}),a.observe(t)),t.dataset.shouldContainOverlays=i.toString(),()=>{a.disconnect(),o({width:"",height:""}),t.dataset.shouldContainOverlays=""}}),[t,c,i]);let u=(0,l.useMemo)((()=>({container:t,portalContainer:n||t||jM(),shouldContainOverlays:i,isContainerPositioned:a})),[t,n,i,a]);return(0,m.jsx)(FM.Provider,{value:u,children:(0,m.jsx)(gM,{portalContainer:u.portalContainer||void 0,children:e})})};function LM(e){let t=(0,l.useContext)(mM),{portalContainer:n}=(0,l.useContext)(FM);return e||t||n||void 0}var VM=uI({defaultClassName:"z9nup84",variantClassNames:{size:{xs:"z9nup85",sm:"z9nup86"}},defaultVariants:{},compoundVariants:[]}),KM="z9nup83";function HM(e=(typeof window>"u"?void 0:window)){let[t,n]=(0,l.useState)("light"),[r,o]=(0,l.useState)(!1),[i,a]=(0,l.useState)(!1),[s,c]=(0,l.useState)(!1);return(0,l.useEffect)((()=>{if(!e)return;let t=e.matchMedia("(prefers-color-scheme: dark)"),r=e=>{n(e.matches?"dark":"light")};return t.matches&&n("dark"),t.addEventListener("change",r),()=>{t.addEventListener("change",r)}}),[e]),(0,l.useEffect)((()=>{if(!e)return;let t=e.matchMedia("(prefers-contrast: more)"),n=e=>{o(e.matches)};return o(t.matches),t.addEventListener("change",n),()=>{t.addEventListener("change",n)}}),[e]),(0,l.useEffect)((()=>{if(!e)return;let t=e.matchMedia("(prefers-reduced-motion: reduce)"),n=e=>{a(e.matches)};return t.matches&&a(!0),t.addEventListener("change",n),()=>{t.addEventListener("change",n)}}),[e]),(0,l.useEffect)((()=>{if(!e)return;let t=e.matchMedia("(prefers-reduced-transparency: reduce)"),n=e=>{c(e.matches)};return t.matches&&c(!0),t.addEventListener("change",n),()=>{t.addEventListener("change",n)}}),[e]),{colorScheme:t,highContrast:r,reducedMotion:i,transparency:s}}var $M=(0,l.createContext)({theme:v._k,setTheme:()=>{},shouldHandleVirtualKeyboard:!0}),UM="var(--hj25q10)",WM={LIGHT:{name:"light",theme:v._k},DARK:{name:"dark",theme:v.a5}},qM=l.forwardRef((({theme:e="system",children:t,setTheme:n,onThemeChange:r,className:o,style:i,UNSAFE_domProps:a,"data-block-id":c,"data-block-class":u,reducedMotion:d="user",shouldHandleVirtualKeyboard:p=!0},f)=>{let{direction:g}=(0,h.Ym)(),{colorScheme:y,reducedMotion:b,highContrast:w,transparency:x}=HM(),{name:C,theme:E}=(0,l.useMemo)((()=>{switch(e){case"system":return"light"===y?WM.LIGHT:WM.DARK;case"light":return WM.LIGHT;case"dark":return WM.DARK;default:return{name:"custom",theme:e}}}),[y,e]),k={"data-theme":C,"data-block-id":c,"data-block-class":u,"data-reduced-motion":"user"===d?b:"always"===d,"data-high-contrast":w,"data-transparency":x,"data-device":OM()},z=(0,l.useMemo)((()=>({theme:E,setTheme:e=>{n?.(e),r?.(e)},shouldHandleVirtualKeyboard:p})),[E,n,r,p]);return(0,l.useEffect)((()=>{n&&console.warn("ThemeProvider: The `setTheme` prop is deprecated and will be removed in a future version of Baseline UI. Use the `onThemeChange` prop instead.")}),[n]),(0,m.jsx)($M.Provider,{value:z,children:(0,m.jsx)(S.xe,{reducedMotion:d,children:(0,m.jsx)("div",{...(0,h.v6)(a,k),className:(0,s.xW)("z9nup80","BaselineUI-ThemeProvider",o),style:{...(0,_.D)(v.G6,E),...(0,_.D)({[UM]:"rtl"===g?"-1":"1"}),...i},ref:f,children:t})})})}));function GM(){S.W9.skipAnimations=!0}function ZM(){S.W9.skipAnimations=!1}qM.displayName="ThemeProvider";var YM=l.forwardRef((({className:e,style:t,children:n,"data-block-id":r,"data-block-class":o,portalContainer:i,...a},c)=>{let{theme:u}=(0,l.useContext)($M),d=LM();return(0,m.jsx)(h.hJ,{...a,portalContainer:i??d,children:(0,m.jsx)(qM,{ref:c,theme:u,style:t,className:(0,s.xW)("BaselineUI-Portal",e),"data-block-id":r,"data-block-class":o,children:n})})}));YM.displayName="Portal";var XM=l.forwardRef((({children:e,placement:t="bottom",delay:n=1e3,closeDelay:r=500,variant:o="default",size:i="md",includeArrow:a=!0,portalContainer:s,className:c,style:u,"data-block-id":d,"data-block-class":p,...g},v)=>{let y=l.useRef(null),b=l.useRef(null),w=!g.text||g.isDisabled,S=(0,f.O1)({...g,delay:n,closeDelay:r,isDisabled:w}),{triggerProps:_,tooltipProps:C}=(0,h.Dr)({...g,isDisabled:w,delay:n,closeDelay:r},S,y),E=LM(s),{overlayProps:k,arrowProps:z,placement:P,updatePosition:A}=(0,h.v8)({arrowSize:a?13:0,targetRef:y,arrowBoundaryOffset:a?8:0,offset:a?12:2,overlayRef:b,placement:t,isOpen:S.isOpen,...g});return bM({ref:b,threshold:1,onIntersect:A,isDisabled:!S.isOpen}),wM({ref:y,onResize:A,isDisabled:!S.isOpen}),(0,m.jsxs)(x.M2,{..._,ref:y,children:[e,S.isOpen?(0,m.jsx)(YM,{disableFocusManagement:!0,portalContainer:E,className:c,style:u,"data-block-id":d,"data-block-class":p,children:(0,m.jsx)(fM,{ref:UT(v,b),state:S,arrowProps:z,overlayProps:k,placement:P,tooltipProps:C,variant:o,size:i,includeArrow:a,children:g.text})}):null]})}));XM.displayName="Tooltip";var JM=l.forwardRef((({elementType:e,children:t,...n},r)=>{let o=JT(r),{focusableProps:i}=(0,x.Wc)(n,o);return(0,m.jsx)(e??"div",{ref:o,...i,children:t})}));JM.displayName="Focusable";var QM={xxs:8,xs:12,sm:16,md:20,lg:24},eN=l.forwardRef(((e,t)=>{let n=JT(t),{tooltipProps:r}=$I(e,n);return r?(0,m.jsx)(XM,{...r,children:(0,m.jsx)(tN,{...e,ref:n})}):(0,m.jsx)(tN,{...e,ref:n})}));eN.displayName="ActionIconButton";var tN=l.forwardRef((({className:e,style:t,icon:n,size:r="md",variant:o="primary",UNSAFE_NON_INTERACTIVE:i,elementType:a=(i?"div":"button"),...c},u)=>{let d=c["aria-label"],p=c["aria-labelledby"];(0,l.useEffect)((()=>{!d&&!p&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.")}),[d,p]);let{buttonProps:f,isPressed:g,ref:v,isFocusVisible:y,isFocused:w,isHovered:x,uiStateOptions:S}=UI({...c,elementType:a}),_=(0,s.nP)({"data-block-id":c["data-block-id"],"data-block-class":c["data-block-class"],"data-focused":w,"data-focus-visible":y,"data-disabled":c.isDisabled,"data-hovered":x,"data-pressed":g});return(0,m.jsxs)(a,{...(0,h.v6)(f,_),className:(0,s.xW)(MI({variant:o,size:r,isDisabled:!!c.isDisabled,isFocusVisible:y,isHovered:x}),"BaselineUI-ActionIconButton","function"==typeof e?e(S):e),ref:UT(u,v),style:"function"==typeof t?t(S):t,...i&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:[(0,m.jsx)(n,{role:"presentation",size:QM[r]}),"popover"===o&&(0,m.jsx)(b.bD,{size:8,className:II})]})}));tN.displayName="ActionIconButtonCore";var nN=l.forwardRef((({className:e,style:t,labelPosition:n="top",variant:r="primary",showStepper:o=!0,...i},a)=>{let c=l.useRef(null),{locale:u}=(0,h.Ym)(),d=(0,f.sb)({...i,locale:u}),{hoverProps:p,isHovered:g}=(0,h.Mk)({isDisabled:i.isDisabled}),{focusProps:v,isFocusVisible:y,isFocused:x}=(0,h.og)(),{labelProps:S,decrementButtonProps:_,inputProps:C,incrementButtonProps:E,groupProps:k,descriptionProps:z,errorMessageProps:P}=(0,h.v)(i,d,c),A=(0,l.useMemo)((()=>i.isReadOnly?w.Eo:i.isInvalid?w.U9:null),[i.isInvalid,i.isReadOnly]),D=lM({description:i.description,errorMessageProps:P,descriptionProps:z,errorMessage:i.errorMessage,labelPosition:n,isDisabled:i.isDisabled}),T=(0,s.nP)({"data-disabled":i.isDisabled,"data-readonly":i.isReadOnly,"data-hovered":g,"data-focused":x,"data-focus-visible":y,"data-invalid":i.isInvalid,"data-block-id":i["data-block-id"],"data-block-class":i["data-block-class"]});return(0,m.jsxs)("div",{style:t,className:(0,s.xW)(aM({labelPosition:n}),"BaselineUI-NumberInput",e),...T,ref:a,children:[i.label?(0,m.jsxs)("div",{className:iM({labelPosition:n,hasMessage:!!D}),children:[(0,m.jsx)("label",{...S,className:oM,children:i.label}),"start"===n&&D]}):null,(0,m.jsxs)("div",{className:(0,s.xW)({[KM]:i.isDisabled}),children:[(0,m.jsxs)("div",{...(0,h.v6)(k,p),className:(0,s.xW)(sM({isHovered:g,isDisabled:!!i.isDisabled,isReadOnly:!!i.isReadOnly,validationState:i.isInvalid?"error":"valid",isFocused:x,variant:r}),{[uM]:"start"===n},"BaselineUI-NumberInput-Container"),children:[(0,m.jsx)("input",{...(0,h.v6)(C,v),ref:c,className:(0,s.xW)("BaselineUI-NumberInput-Input",nM({isDisabled:i.isDisabled,labelPosition:n}))}),A?(0,m.jsx)(A,{className:rM({validationState:"error",isReadOnly:i.isReadOnly}),size:16}):null,o?(0,m.jsxs)("div",{className:cM({isHoveredOrFocused:g||x,isInteractive:!i.isReadOnly&&!i.isDisabled}),children:[(0,m.jsx)(eN,{variant:"secondary",size:"xxs",icon:b.QG,..._,className:"BaselineUI-NumberInput-DecrementButton"}),(0,m.jsx)(mI,{style:{height:16},orientation:"vertical"}),(0,m.jsx)(eN,{variant:"secondary",size:"xxs",icon:b.c1,...E,className:"BaselineUI-NumberInput-DecrementButton"})]}):null]}),"top"===n&&D]})]})}));nN.displayName="NumberInput";var rN=l.forwardRef((({className:e,style:t,onChange:n,onChangeEnd:r,numberFormatOptions:o,isDisabled:i,step:a,minValue:c,maxValue:u,value:d,"aria-label":p,"aria-labelledby":g,"aria-details":v,"aria-describedby":y,"data-block-id":b,"data-block-class":w,defaultValue:x,isReadOnly:S,label:_,id:C,includeNumberInput:E},k)=>{let z=l.useRef(null),P={onChange:void 0===n?void 0:e=>{n(e[0])},isDisabled:i||S,step:a,minValue:c,maxValue:u,onChangeEnd:void 0===r?void 0:e=>{r(e[0])},value:void 0===d?void 0:[d],defaultValue:void 0===x?void 0:[x],"aria-label":p,"aria-labelledby":g,"aria-details":v,"aria-describedby":y,id:C,label:_},A=(0,h.JY)(o),D=(0,f.Sp)({...P,numberFormatter:A}),{trackProps:T,groupProps:I,labelProps:M}=(0,h.PF)(P,D,z),N=(0,m.jsx)(nN,{variant:"ghost",showStepper:!1,"aria-label":p,"aria-labelledby":M.id,value:D.getThumbValue(0),formatOptions:o,onChange:e=>{D.setThumbValue(0,e)},style:{width:55,textAlign:"right",flexShrink:0}});return(0,m.jsxs)("div",{...I,style:t,"data-block-id":b,"data-block-class":w,className:(0,s.xW)("_14uvjig0 z9nup81","BaselineUI-Slider",e),children:[_?(0,m.jsxs)("div",{className:"_14uvjig3",children:[(0,m.jsx)("label",{...M,className:(0,s.xW)(JI({isDisabled:i,hasNumberInput:!!E}),"BaselineUI-Slider-Label"),children:_}),E?N:null]}):null,(0,m.jsxs)("div",{className:"_14uvjig7",children:[(0,m.jsx)("div",{...T,className:(0,s.xW)("_14uvjig8","BaselineUI-Slider-Track"),ref:UT(z,k),"data-testid":"track",children:(0,m.jsx)(oN,{state:D,trackRef:z,isDisabled:i,isReadOnly:S})}),E&&!_?N:null]})]})}));function oN({state:e,trackRef:t,isDisabled:n,isReadOnly:r}){let o=l.useRef(null),{thumbProps:i,inputProps:a,isDragging:c}=(0,h.xX)({trackRef:t,inputRef:o},e),{focusProps:u,isFocused:d,isFocusVisible:p}=(0,h.og)(),{hoverProps:f,isHovered:g}=(0,h.Mk)({isDisabled:n}),v=(0,s.nP)({"data-disabled":n,"data-readonly":r,"data-hovered":g,"data-focus-visible":p,"data-dragging":c,"data-focused":d});return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:(0,s.xW)(eM({isDisabled:n,isFocusVisible:p,active:c,isHovered:g}),"BaselineUI-Slider-TrackHighlight"),style:{width:i.style?.left},"data-testid":"track-highlight"}),(0,m.jsxs)("div",{...(0,h.v6)(i,f,v),className:(0,s.xW)("_14uvjige _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf","BaselineUI-Slider-ThumbHandle"),"data-testid":"thumb",children:[(0,m.jsx)("div",{className:(0,s.xW)(QI({isDisabled:n,isFocusVisible:p,active:c,isReadOnly:r,isHovered:g}),"BaselineUI-Slider-Thumb")}),(0,m.jsx)(h.s6,{children:(0,m.jsx)("input",{ref:o,...(0,h.v6)(a,u)})})]})]})}rN.displayName="Slider";var iN=uI({defaultClassName:"_1tkzayn0 _1yep5z6dy",variantClassNames:{size:{sm:"_1tkzayn1",md:"_1tkzayn2",lg:"_1tkzayn3"},type:{subtitle:"_1yep5z610x",title:"_1yep5z610x",label:"_1yep5z610y",value:"_1yep5z610y",helper:"_1yep5z610z",body:"_1yep5z610x"}},defaultVariants:{},compoundVariants:[[{type:"title",size:"sm"},"_1yep5z61lj"],[{type:"title",size:"md"},"_1yep5z61lm"],[{type:"title",size:"lg"},"_1yep5z61lp"],[{type:"body",size:"sm"},"_1yep5z61m9"],[{type:"body",size:"md"},"_1yep5z61mc"],[{type:"body",size:"lg"},"_1yep5z61mc"],[{type:"subtitle",size:"sm"},"_1yep5z61m5"],[{type:"subtitle",size:"md"},"_1yep5z61m8"],[{type:"subtitle",size:"lg"},"_1yep5z61m8"],[{type:"label",size:"md"},"_1yep5z61m7"],[{type:"label",size:"lg"},"_1yep5z61m7"],[{type:"value",size:"md"},"_1yep5z61m7"],[{type:"value",size:"lg"},"_1yep5z61m7"],[{type:"helper",size:"sm"},"_1yep5z61m1"]]}),aN=l.forwardRef((({elementType:e="span",type:t="title",children:n,size:r="md",...o},i)=>(0,m.jsx)(e,{...o,className:(0,s.xW)(iN({size:r,type:t}),"BaselineUI-Text",o.className),ref:i,children:n})));aN.displayName="Text";var sN=uI({defaultClassName:"siobe20 _1yep5z6ao _1yep5z6ap _1yep5z6aq _1yep5z6bc _1yep5z6bd _1yep5z6be _1yep5z6d7 _1yep5z6m1 _1yep5z6lz _1yep5z6h4 _1yep5z6lq _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6",variantClassNames:{background:{subtle:"_1yep5z6124",medium:"_1yep5z6125"},isFocusVisible:{true:"_1yep5z617u _1yep5z617w _1yep5z617x _1yep5z6140"}},defaultVariants:{},compoundVariants:[]}),lN=l.forwardRef((({className:e,style:t,children:n,background:r="medium",title:o,action:i,"data-block-id":a,"data-block-class":c,onCloseRequest:u,contentStyle:d,contentClassName:p,...f},g)=>{let{formatMessage:v}=DM(),y=l.useRef(null),{dialogProps:b,titleProps:w}=(0,h.sp)(f,y),{focusProps:x,isFocusVisible:S}=(0,h.og)();return(0,m.jsxs)("div",{...(0,h.v6)(b,x),className:(0,s.xW)(sN({background:r,isFocusVisible:S}),"BaselineUI-Drawer",e),"data-block-id":a,"data-block-class":c,style:t,ref:UT(g,y),children:[(0,m.jsxs)(vI,{paddingLeft:"lg",paddingRight:"sm",backgroundColor:"background.primary.subtle",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"lg",className:"siobe24",children:[(0,m.jsx)(aN,{type:"title",size:"sm",...w,className:"z9nup87",children:o}),(0,m.jsxs)(vI,{children:[i?(0,m.jsx)(eN,{...i,variant:"secondary"}):null,(0,m.jsx)(eN,{variant:"secondary",size:"md",icon:k.uv,onPress:u,"aria-label":v(cN.close)})]})]}),(0,m.jsx)(mI,{variant:"subtle"===r?"primary":"secondary"}),(0,m.jsx)(vI,{display:"flex",flexDirection:"column",flex:1,style:{overflow:"auto",...d},className:(0,s.xW)(p,"BaselineUI-Drawer-Content"),children:n})]})}));lN.displayName="Drawer";var cN=TM({close:{id:"close",defaultMessage:"Close"}}),uN=uI({defaultClassName:"aml2vl3 _1yep5z6lg _1yep5z6lh _1yep5z6lj _1yep5z6li _1yep5z6is _1yep5z6it _1yep5z6iu",variantClassNames:{enableDrawer:{false:"_1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf",true:"aml2vl5"},shouldContainOverlays:{true:"aml2vl6",false:"aml2vl7"}},defaultVariants:{},compoundVariants:[]}),dN=uI({defaultClassName:"aml2vl0 _1yep5z6lg _1yep5z6lh _1yep5z6lj _1yep5z6li _1yep5z6gb",variantClassNames:{shouldContainOverlays:{true:"aml2vl1",false:"aml2vl2"}},defaultVariants:{},compoundVariants:[]}),pN=l.createContext({state:null,triggerProps:{},overlayProps:{}}),hN=({children:e,...t})=>{let n=(0,f.Tl)(t),{triggerProps:r,overlayProps:o}=(0,h.oJ)({type:"dialog"},n),i=(0,l.useMemo)((()=>({state:n,triggerProps:r,overlayProps:o})),[n,r,o]);return(0,m.jsx)(pN.Provider,{value:i,children:e})};hN.displayName="Modal";var fN={};var mN,gN,vN=wT(xT()),yN=class{constructor(e){let{failure:t,gotoFn:n,output:r}=this._buildTables(e);this.gotoFn=n,this.output=r,this.failure=t}_buildTables(e){let t={0:{}},n={},r=0;for(let o of e){let e=0;for(let i of o)t[e]&&i in t[e]?e=t[e][i]:(r++,t[e][i]=r,t[r]={},e=r,n[r]=[]);n[e].push(o)}let o={},i=[];for(let e in t[0]){let n=t[0][e];o[n]=0,i.push(n)}for(;i.length>0;){let e=i.shift();if(void 0!==e)for(let r in t[e]){let a=t[e][r];i.push(a);let s=o[e];for(;s>0&&!(r in t[s]);)s=o[s];if(r in t[s]){let e=t[s][r];o[a]=e,n[a]=[...n[a],...n[e]]}else o[a]=0}}return{gotoFn:t,output:n,failure:o}}search(e){let t=0,n=[];for(let r=0;r<e.length;r++){let o=e[r];for(;t>0&&!(o in this.gotoFn[t]);)t=this.failure[t];if(o in this.gotoFn[t]&&(t=this.gotoFn[t][o],this.output[t].length>0)){let e=this.output[t];n.push([r,e])}}return n}match(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];for(;t>0&&!(r in this.gotoFn[t]);)t=this.failure[t];if(r in this.gotoFn[t]&&(t=this.gotoFn[t][r],this.output[t].length>0))return!0}return!1}},bN=[{appendCss:()=>{},registerClassName:()=>{},onEndFileScope:()=>{},registerComposition:()=>{},markCompositionUsed:()=>{},getIdentOption:()=>"short"}],wN=!1,xN=e=>{if(!e)throw new Error('No adapter provided when calling "setAdapter"');wN=!0,bN.push(e)},SN=function(){return(()=>{if(bN.length<1)throw new Error("No adapter configured");return bN[bN.length-1]})().markCompositionUsed(...arguments)};function _N(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}!function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"}(mN||(mN={})),function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"}(gN||(gN={}));var CN=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,EN=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,kN=new Map([[126,gN.Element],[94,gN.Start],[36,gN.End],[42,gN.Any],[33,gN.Not],[124,gN.Hyphen]]),zN=new Set(["has","not","matches","is","where","host","host-context"]);var PN=new Set(["contains","icontains"]);function AN(e,t,n){let r=parseInt(t,16)-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)}function DN(e){return e.replace(EN,AN)}function TN(e){return 39===e||34===e}function IN(e){return 32===e||9===e||10===e||12===e||13===e}function MN(e){let t=[],n=NN(t,`${e}`,0);if(n<e.length)throw new Error(`Unmatched selector: ${e.slice(n)}`);return t}function NN(e,t,n){let r=[];function o(e){let r=t.slice(n+e).match(CN);if(!r)throw new Error(`Expected name, found ${t.slice(n)}`);let[o]=r;return n+=e+o.length,DN(o)}function i(e){for(n+=e;n<t.length&&IN(t.charCodeAt(n));)n++}function a(){let e=n+=1,r=1;for(;r>0&&n<t.length;n++)40!==t.charCodeAt(n)||s(n)?41===t.charCodeAt(n)&&!s(n)&&r--:r++;if(r)throw new Error("Parenthesis not matched");return DN(t.slice(e,n-1))}function s(e){let n=0;for(;92===t.charCodeAt(--e);)n++;return!(1&~n)}function l(){if(r.length>0&&function(e){switch(e.type){case mN.Adjacent:case mN.Child:case mN.Descendant:case mN.Parent:case mN.Sibling:case mN.ColumnCombinator:return!0;default:return!1}}(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function c(e){r.length>0&&r[r.length-1].type===mN.Descendant?r[r.length-1].type=e:(l(),r.push({type:e}))}function u(e,t){r.push({type:mN.Attribute,name:e,action:t,value:o(1),namespace:null,ignoreCase:"quirks"})}function d(){if(r.length&&r[r.length-1].type===mN.Descendant&&r.pop(),0===r.length)throw new Error("Empty sub-selector");e.push(r)}if(i(0),t.length===n)return n;e:for(;n<t.length;){let e=t.charCodeAt(n);switch(e){case 32:case 9:case 10:case 12:case 13:(0===r.length||r[0].type!==mN.Descendant)&&(l(),r.push({type:mN.Descendant})),i(1);break;case 62:c(mN.Child),i(1);break;case 60:c(mN.Parent),i(1);break;case 126:c(mN.Sibling),i(1);break;case 43:c(mN.Adjacent),i(1);break;case 46:u("class",gN.Element);break;case 35:u("id",gN.Equals);break;case 91:{i(1);let e,a=null;124===t.charCodeAt(n)?e=o(1):t.startsWith("*|",n)?(a="*",e=o(2)):(e=o(0),124===t.charCodeAt(n)&&61!==t.charCodeAt(n+1)&&(a=e,e=o(1))),i(0);let l=gN.Exists,c=kN.get(t.charCodeAt(n));if(c){if(l=c,61!==t.charCodeAt(n+1))throw new Error("Expected `=`");i(2)}else 61===t.charCodeAt(n)&&(l=gN.Equals,i(1));let u="",d=null;if("exists"!==l){if(TN(t.charCodeAt(n))){let e=t.charCodeAt(n),r=n+1;for(;r<t.length&&(t.charCodeAt(r)!==e||s(r));)r+=1;if(t.charCodeAt(r)!==e)throw new Error("Attribute value didn't end");u=DN(t.slice(n+1,r)),n=r+1}else{let e=n;for(;n<t.length&&(!IN(t.charCodeAt(n))&&93!==t.charCodeAt(n)||s(n));)n+=1;u=DN(t.slice(e,n))}i(0);let e=32|t.charCodeAt(n);115===e?(d=!1,i(1)):105===e&&(d=!0,i(1))}if(93!==t.charCodeAt(n))throw new Error("Attribute selector didn't terminate");n+=1;let p={type:mN.Attribute,name:e,action:l,value:u,namespace:a,ignoreCase:d};r.push(p);break}case 58:{if(58===t.charCodeAt(n+1)){r.push({type:mN.PseudoElement,name:o(2).toLowerCase(),data:40===t.charCodeAt(n)?a():null});continue}let e=o(1).toLowerCase(),i=null;if(40===t.charCodeAt(n))if(zN.has(e)){if(TN(t.charCodeAt(n+1)))throw new Error(`Pseudo-selector ${e} cannot be quoted`);if(i=[],n=NN(i,t,n+1),41!==t.charCodeAt(n))throw new Error(`Missing closing parenthesis in :${e} (${t})`);n+=1}else{if(i=a(),PN.has(e)){let e=i.charCodeAt(0);e===i.charCodeAt(i.length-1)&&TN(e)&&(i=i.slice(1,-1))}i=DN(i)}r.push({type:mN.Pseudo,name:e,data:i});break}case 44:d(),r=[],i(1);break;default:{if(t.startsWith("/*",n)){let e=t.indexOf("*/",n+2);if(e<0)throw new Error("Comment was not terminated");n=e+2,0===r.length&&i(0);break}let a,s=null;if(42===e)n+=1,a="*";else if(124===e){if(a="",124===t.charCodeAt(n+1)){c(mN.ColumnCombinator),i(2);break}}else{if(!CN.test(t.slice(n)))break e;a=o(0)}124===t.charCodeAt(n)&&124!==t.charCodeAt(n+1)&&(s=a,42===t.charCodeAt(n+1)?(a="*",n+=2):a=o(1)),r.push("*"===a?{type:mN.Universal,namespace:s}:{type:mN.Tag,name:a,namespace:s})}}}return d(),n}function ON(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function RN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ON(Object(n),!0).forEach((function(t){jN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ON(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jN(e,t,n){return t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var FN=function e(t){return n.withOptions=n=>e(RN(RN({},t),n)),n;function n(e,...n){let r="string"==typeof e?[e]:e.raw,{escapeSpecialCharacters:o=Array.isArray(e)}=t,i="";for(let e=0;e<r.length;e++){let t=r[e];o&&(t=t.replace(/\\\n[ \t]*/g,"").replace(/\\`/g,"`").replace(/\\\$/g,"$").replace(/\\\{/g,"{")),i+=t,e<n.length&&(i+=n[e])}let a=i.split("\n"),s=null;for(let e of a){let t=e.match(/^(\s+)\S+/);if(t){let e=t[1].length;s=s?Math.min(s,e):e}}if(null!==s){let e=s;i=a.map((t=>" "===t[0]||"\t"===t[0]?t.slice(e):t)).join("\n")}return i=i.trim(),o&&(i=i.replace(/\\n/g,"\n")),i}}({}),BN=FN;var LN=function(){return LN=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},LN.apply(this,arguments)};function VN(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function KN(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var HN,$N=/(\u000D|\u000C|\u000D\u000A)/g,UN=/[\u0000\uD800-\uDFFF]/g,WN=/(\/\*)[\s\S]*?(\*\/)/g,qN=function(e,t){if(e.length<=t+1)return null;for(var n=e.charCodeAt(t),r=[],o=t+1;o<e.length;o+=1){var i=e.charCodeAt(o);if(i===n)return[o,String.fromCharCode.apply(null,r)];if(92===i){var a=ZN(e,o);if(null===a)return null;var s=KN(a,2),l=s[0],c=s[1];r.push(c),o=l}else{if(10===i)return null;r.push(i)}}return null},GN=function(e,t){if(e.length<=t)return!1;var n,r=e.charCodeAt(t);return 45===r?!(e.length<=t+1)&&(45===(n=e.charCodeAt(t+1))||95===n||n>=65&&n<=90||n>=97&&n<=122||n>=128||92===n&&(!(e.length<=t+2)&&10!==e.charCodeAt(t+2))):95===r||r>=65&&r<=90||r>=97&&r<=122||r>=128||92===r&&(!(e.length<=t+1)&&10!==(n=e.charCodeAt(t+1)))},ZN=function(e,t){if(e.length<=t+1||92!==e.charCodeAt(t))return null;var n=e.charCodeAt(t+1);if(10===n)return null;if(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102){for(var r=[n],o=Math.min(t+7,e.length),i=t+2;i<o;i+=1){var a=e.charCodeAt(i);if(!(a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102))break;r.push(a)}if(i<e.length){var s=e.charCodeAt(i);(9===s||32===s||10===s)&&(i+=1)}return[i-1,parseInt(String.fromCharCode.apply(null,r),16)]}return[t+1,n]},YN=function(e,t){var n=XN(e,t);if(null===n)return null;var r=KN(n,3),o=r[0],i=r[1],a=r[2],s=QN(e,o+1);if(null!==s){var l=KN(s,2);return[l[0],["<dimension-token>",i,l[1]]]}return o+1<e.length&&37===e.charCodeAt(o+1)?[o+1,["<percentage-token>",i]]:[o,["<number-token>",i,a]]},XN=function(e,t){if(e.length<=t)return null;var n="integer",r=[],o=e.charCodeAt(t);for((43===o||45===o)&&(t+=1,45===o&&r.push(45));t<e.length;){if(!((c=e.charCodeAt(t))>=48&&c<=57))break;r.push(c),t+=1}if(t+1<e.length){var i=e.charCodeAt(t),a=e.charCodeAt(t+1);if(46===i&&a>=48&&a<=57)for(r.push(i,a),n="number",t+=2;t<e.length;){if(!((c=e.charCodeAt(t))>=48&&c<=57))break;r.push(c),t+=1}}if(t+1<e.length){i=e.charCodeAt(t),a=e.charCodeAt(t+1);var s=e.charCodeAt(t+2);if(69===i||101===i){var l=a>=48&&a<=57;if(l||(43===a||45===a)&&s>=48&&s<=57)for(n="number",l?(r.push(69,a),t+=2):45===a?(r.push(69,45,s),t+=3):(r.push(69,s),t+=3);t<e.length;){var c;if(!((c=e.charCodeAt(t))>=48&&c<=57))break;r.push(c),t+=1}}}var u=String.fromCharCode.apply(null,r),d="number"===n?parseFloat(u):parseInt(u);return-0===d&&(d=0),Number.isNaN(d)?null:[t-1,d,n]},JN=function(e,t){if(e.length<=t)return null;for(var n=[],r=e.charCodeAt(t);t<e.length;r=e.charCodeAt(++t))if(45===r||95===r||r>=65&&r<=90||r>=97&&r<=122||r>=128||r>=48&&r<=57)n.push(r);else{var o=ZN(e,t);if(null===o)break;var i=KN(o,2),a=i[0],s=i[1];n.push(s),t=a}return 0===t?null:[t-1,String.fromCharCode.apply(null,n)]},QN=function(e,t){if(e.length<=t||!GN(e,t))return null;for(var n=[],r=e.charCodeAt(t);t<e.length;r=e.charCodeAt(++t))if(45===r||95===r||r>=65&&r<=90||r>=97&&r<=122||r>=128||r>=48&&r<=57)n.push(r);else{var o=ZN(e,t);if(null===o)break;var i=KN(o,2),a=i[0],s=i[1];n.push(s),t=a}return[t-1,String.fromCharCode.apply(null,n)]},eO=function(e,t){for(var n=e.charCodeAt(t);9===n||32===n||10===n;)n=e.charCodeAt(++t);for(var r=[],o=!1;t<e.length;){if(41===n)return[t,String.fromCharCode.apply(null,r)];if(34===n||39===n||40===n)return null;if(9===n||32===n||10===n)!o&&0!==r.length&&(o=!0);else if(92===n){var i=ZN(e,t);if(null===i||o)return null;var a=KN(i,2),s=a[0],l=a[1];r.push(l),t=s}else{if(o)return null;r.push(n)}n=e.charCodeAt(++t)}return null},tO=function(e,t){var n=QN(e,t);if(null===n)return null;var r=KN(n,2),o=r[0],i=r[1];if("url"===i.toLowerCase()){if(e.length>o+1&&40===e.charCodeAt(o+1)){for(var a=2;o+a<e.length;a+=1){var s=e.charCodeAt(o+a);if(34===s||39===s)return[o+1,i.toLowerCase(),"<function-token>"];if(9!==s&&32!==s&&10!==s){var l=eO(e,o+a);if(null===l)return null;var c=KN(l,2);return[c[0],c[1],"<url-token>"]}}return[o+1,i.toLowerCase(),"<function-token>"]}}else if(e.length>o+1){if(40===e.charCodeAt(o+1))return[o+1,i.toLowerCase(),"<function-token>"]}return[o,i.toLowerCase(),"<ident-token>"]},nO=function(e){if(null===e.mediaCondition)return e;var t=rO(e.mediaCondition);return null===t.operator&&1===t.children.length&&"children"in t.children[0]&&(t=t.children[0]),{mediaPrefix:e.mediaPrefix,mediaType:e.mediaType,mediaCondition:t}},rO=function e(t){for(var n=t.children.length-1;n>=0;n--){var r=t.children[n];if(!("context"in r)){var o=e(r);if(null===o.operator&&1===o.children.length)t.children[n]=o.children[0];else if(o.operator===t.operator&&("and"===o.operator||"or"===o.operator)){for(var i=[n,1],a=0;a<o.children.length;a++)i.push(o.children[a]);t.children.splice.apply(t.children,i)}}}return t},oO=function(e,t){return t instanceof Error?new Error("".concat(t.message.trim(),"\n").concat(e.trim())):new Error(e.trim())},iO=function(e){return function(e){for(var t=e.length-1;t>=0;t--)e[t]=nO(e[t]);return e}(aO(e))},aO=function(e){var t=function(e,t){void 0===t&&(t=0),e=(e=e.replace($N,"\n").replace(UN,"�")).replace(WN,"");for(var n=[];t<e.length;t+=1){var r=e.charCodeAt(t);if(9===r||32===r||10===r){for(var o=e.charCodeAt(++t);9===o||32===o||10===o;)o=e.charCodeAt(++t);t-=1,n.push({type:"<whitespace-token>"})}else if(34===r){if(null===(E=qN(e,t)))return null;var i=KN(E,2),a=i[0],s=i[1];n.push({type:"<string-token>",value:s}),t=a}else if(35===r){if(t+1<e.length&&(95===(f=e.charCodeAt(t+1))||f>=65&&f<=90||f>=97&&f<=122||f>=128||f>=48&&f<=57||92===f&&t+2<e.length&&10!==e.charCodeAt(t+2))){var l=GN(e,t+1)?"id":"unrestricted";if(null!==(E=JN(e,t+1))){var c=KN(E,2);a=c[0],s=c[1],n.push({type:"<hash-token>",value:s.toLowerCase(),flag:l}),t=a;continue}}n.push({type:"<delim-token>",value:r})}else if(39===r){if(null===(E=qN(e,t)))return null;var u=KN(E,2);a=u[0],s=u[1],n.push({type:"<string-token>",value:s}),t=a}else if(40===r)n.push({type:"<(-token>"});else if(41===r)n.push({type:"<)-token>"});else if(43===r){var d=YN(e,t);if(null===d)n.push({type:"<delim-token>",value:r});else{var p=KN(d,2);a=p[0],"<dimension-token>"===(_=p[1])[0]?n.push({type:"<dimension-token>",value:_[1],unit:_[2].toLowerCase(),flag:"number"}):"<number-token>"===_[0]?n.push({type:_[0],value:_[1],flag:_[2]}):n.push({type:_[0],value:_[1],flag:"number"}),t=a}}else if(44===r)n.push({type:"<comma-token>"});else if(45===r){if(null!==(y=YN(e,t))){var h=KN(y,2);a=h[0],"<dimension-token>"===(_=h[1])[0]?n.push({type:"<dimension-token>",value:_[1],unit:_[2].toLowerCase(),flag:"number"}):"<number-token>"===_[0]?n.push({type:_[0],value:_[1],flag:_[2]}):n.push({type:_[0],value:_[1],flag:"number"}),t=a;continue}if(t+2<e.length){var f=e.charCodeAt(t+1),m=e.charCodeAt(t+2);if(45===f&&62===m){n.push({type:"<CDC-token>"}),t+=2;continue}}if(null!==(E=tO(e,t))){var g=KN(E,3),v=(a=g[0],s=g[1],g[2]);n.push({type:v,value:s}),t=a;continue}n.push({type:"<delim-token>",value:r})}else if(46===r){var y;if(null!==(y=YN(e,t))){var b=KN(y,2);a=b[0],"<dimension-token>"===(_=b[1])[0]?n.push({type:"<dimension-token>",value:_[1],unit:_[2].toLowerCase(),flag:"number"}):"<number-token>"===_[0]?n.push({type:_[0],value:_[1],flag:_[2]}):n.push({type:_[0],value:_[1],flag:"number"}),t=a;continue}n.push({type:"<delim-token>",value:r})}else if(58===r)n.push({type:"<colon-token>"});else if(59===r)n.push({type:"<semicolon-token>"});else if(60===r){if(t+3<e.length){f=e.charCodeAt(t+1),m=e.charCodeAt(t+2);var w=e.charCodeAt(t+3);if(33===f&&45===m&&45===w){n.push({type:"<CDO-token>"}),t+=3;continue}}n.push({type:"<delim-token>",value:r})}else if(64===r){if(null!==(E=QN(e,t+1))){var x=KN(E,2);a=x[0],s=x[1],n.push({type:"<at-keyword-token>",value:s.toLowerCase()}),t=a;continue}n.push({type:"<delim-token>",value:r})}else if(91===r)n.push({type:"<[-token>"});else if(92===r){if(null===(E=ZN(e,t)))return null;var S=KN(E,2);a=S[0],s=S[1],e=e.slice(0,t)+s+e.slice(a+1),t-=1}else if(93===r)n.push({type:"<]-token>"});else if(123===r)n.push({type:"<{-token>"});else if(125===r)n.push({type:"<}-token>"});else if(r>=48&&r<=57){var _,C=KN(E=YN(e,t),2);a=C[0],"<dimension-token>"===(_=C[1])[0]?n.push({type:"<dimension-token>",value:_[1],unit:_[2].toLowerCase(),flag:"number"}):"<number-token>"===_[0]?n.push({type:_[0],value:_[1],flag:_[2]}):n.push({type:_[0],value:_[1],flag:"number"}),t=a}else if(95===r||r>=65&&r<=90||r>=97&&r<=122||r>=128){var E;if(null===(E=tO(e,t)))return null;var k=KN(E,3);a=k[0],s=k[1],v=k[2],n.push({type:v,value:s}),t=a}else n.push({type:"<delim-token>",value:r})}return n.push({type:"<EOF-token>"}),n}(e.trim());if(null===t)throw oO("Failed tokenizing");var n=0,r=t.length-1;if("<at-keyword-token>"===t[0].type&&"media"===t[0].value){if("<whitespace-token>"!==t[1].type)throw oO("Expected whitespace after media");n=2;for(var o=2;o<t.length-1;o++){var i=t[o];if("<{-token>"===i.type){r=o;break}if("<semicolon-token>"===i.type)throw oO("Expected '{' in media query but found ';'")}}return t=t.slice(n,r),lO(t)},sO=function(e){for(var t=[],n=!1,r=0;r<e.length;r++)"<whitespace-token>"===e[r].type?(n=!0,t.length>0&&(t[t.length-1].wsAfter=!0)):(t.push(LN(LN({},e[r]),{wsBefore:n,wsAfter:!1})),n=!1);return t},lO=function(e){for(var t,n,r=[[]],o=0;o<e.length;o++){var i=e[o];"<comma-token>"===i.type?r.push([]):r[r.length-1].push(i)}var a=r.map(sO);if(1===a.length&&0===a[0].length)return[{mediaCondition:null,mediaPrefix:null,mediaType:"all"}];var s=a.map((function(e){return 0===e.length?null:cO(e)})),l=[];try{for(var c=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(s),u=c.next();!u.done;u=c.next()){var d=u.value;null!==d&&l.push(d)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}if(0===l.length)throw oO("No valid media queries");return l},cO=function(e){var t=e[0];if("<(-token>"===t.type)try{return{mediaPrefix:null,mediaType:"all",mediaCondition:uO(e,!0)}}catch(e){throw oO("Expected media condition after '('",e)}else{if("<ident-token>"!==t.type)throw oO("Expected media condition or media prefix");var n=null,r=void 0,o=t.value;("only"===o||"not"===o)&&(n=o);var i=null===n?0:1;if(e.length<=i)throw oO("Expected extra token in media query");var a=e[i];if("<ident-token>"===a.type){var s=a.value;if("all"===s)r="all";else if("print"===s||"screen"===s)r=s;else{if("tty"!==s&&"tv"!==s&&"projection"!==s&&"handheld"!==s&&"braille"!==s&&"embossed"!==s&&"aural"!==s&&"speech"!==s)throw oO("Unknown ident '".concat(s,"' in media query"));n="not"===n?null:"not",r="all"}}else{if("not"!==n||"<(-token>"!==a.type)throw oO("Invalid media query");var l=[{type:"<(-token>",wsBefore:!1,wsAfter:!1}];l.push.apply(l,e),l.push({type:"<)-token>",wsBefore:!1,wsAfter:!1});try{return{mediaPrefix:null,mediaType:"all",mediaCondition:uO(l,!0)}}catch(e){throw oO("Expected media condition after '('",e)}}if(i+1===e.length)return{mediaPrefix:n,mediaType:r,mediaCondition:null};if(!(i+4<e.length))throw oO("Expected media condition after media prefix");var c=e[i+1];if("<ident-token>"!==c.type||"and"!==c.value)throw oO("Expected 'and' after media prefix");try{return{mediaPrefix:n,mediaType:r,mediaCondition:uO(e.slice(i+2),!1)}}catch(e){throw oO("Expected media condition after 'and'",e)}}},uO=function e(t,n,r){if(void 0===r&&(r=null),t.length<3||"<(-token>"!==t[0].type||"<)-token>"!==t[t.length-1].type)throw new Error("Invalid media condition");for(var o=t.length-1,i=0,a=0,s=0;s<t.length;s++){var l=t[s];if("<(-token>"===l.type?(a+=1,i=Math.max(i,a)):"<)-token>"===l.type&&(a-=1),0===a){o=s;break}}if(0!==a)throw new Error("Mismatched parens\nInvalid media condition");var c,u=t.slice(0,o+1);if(c=1===i?dO(u):"<ident-token>"===u[1].type&&"not"===u[1].value?e(u.slice(2,-1),!0,"not"):e(u.slice(1,-1),!0),o===t.length-1)return{operator:r,children:[c]};var d=t[o+1];if("<ident-token>"!==d.type)throw new Error("Invalid operator\nInvalid media condition");if(null!==r&&r!==d.value)throw new Error("'".concat(d.value,"' and '").concat(r,"' must not be at same level\nInvalid media condition"));if("or"===d.value&&!n)throw new Error("Cannot use 'or' at top level of a media query\nInvalid media condition");if("and"!==d.value&&"or"!==d.value)throw new Error("Invalid operator: '".concat(d.value,"'\nInvalid media condition"));var p=e(t.slice(o+2),n,d.value);return{operator:d.value,children:[c].concat(p.children)}},dO=function(e){if(e.length<3||"<(-token>"!==e[0].type||"<)-token>"!==e[e.length-1].type)throw new Error("Invalid media feature");for(var t=[e[0]],n=1;n<e.length;n++){if(n<e.length-2){var r=e[n],o=e[n+1],i=e[n+2];if("<number-token>"===r.type&&r.value>0&&"<delim-token>"===o.type&&47===o.value&&"<number-token>"===i.type&&i.value>0){t.push({type:"<ratio-token>",numerator:r.value,denominator:i.value,wsBefore:r.wsBefore,wsAfter:i.wsAfter}),n+=2;continue}}t.push(e[n])}var a=t[1];if("<ident-token>"===a.type&&3===t.length)return{context:"boolean",feature:a.value};if(5===t.length&&"<ident-token>"===t[1].type&&"<colon-token>"===t[2].type){var s=t[3];if("<number-token>"===s.type||"<dimension-token>"===s.type||"<ratio-token>"===s.type||"<ident-token>"===s.type){var l=t[1].value,c=null,u=l.slice(0,4);return"min-"===u?(c="min",l=l.slice(4)):"max-"===u&&(c="max",l=l.slice(4)),s.wsBefore,s.wsAfter,{context:"value",prefix:c,feature:l,value:VN(s,["wsBefore","wsAfter"])}}}else if(t.length>=5)try{var d=pO(t);return{context:"range",feature:d.featureName,range:d}}catch(e){throw oO("Invalid media feature",e)}throw new Error("Invalid media feature")},pO=function(e){var t,n,r,o;if(e.length<5||"<(-token>"!==e[0].type||"<)-token>"!==e[e.length-1].type)throw new Error("Invalid range");var i={leftToken:null,leftOp:null,featureName:"",rightOp:null,rightToken:null},a="<number-token>"===e[1].type||"<dimension-token>"===e[1].type||"<ratio-token>"===e[1].type||"<ident-token>"===e[1].type&&"infinite"===e[1].value;if("<delim-token>"===e[2].type){if(60===e[2].value)"<delim-token>"!==e[3].type||61!==e[3].value||e[3].wsBefore?i[a?"leftOp":"rightOp"]="<":i[a?"leftOp":"rightOp"]="<=";else if(62===e[2].value)"<delim-token>"!==e[3].type||61!==e[3].value||e[3].wsBefore?i[a?"leftOp":"rightOp"]=">":i[a?"leftOp":"rightOp"]=">=";else{if(61!==e[2].value)throw new Error("Invalid range");i[a?"leftOp":"rightOp"]="="}if(a)i.leftToken=e[1];else{if("<ident-token>"!==e[1].type)throw new Error("Invalid range");i.featureName=e[1].value}var s=2+(null!==(n=null===(t=i[a?"leftOp":"rightOp"])||void 0===t?void 0:t.length)&&void 0!==n?n:0),l=e[s];if(a){if("<ident-token>"!==l.type)throw new Error("Invalid range");if(i.featureName=l.value,e.length>=7){var c=e[s+1],u=e[s+2];if("<delim-token>"!==c.type)throw new Error("Invalid range");var d=c.value;if(60===d)"<delim-token>"!==u.type||61!==u.value||u.wsBefore?i.rightOp="<":i.rightOp="<=";else{if(62!==d)throw new Error("Invalid range");"<delim-token>"!==u.type||61!==u.value||u.wsBefore?i.rightOp=">":i.rightOp=">="}var p=e[s+1+(null!==(o=null===(r=i.rightOp)||void 0===r?void 0:r.length)&&void 0!==o?o:0)];i.rightToken=p}else if(s+2!==e.length)throw new Error("Invalid range")}else i.rightToken=l;var h=null,f=i.leftToken,m=i.leftOp,g=i.featureName,v=i.rightOp,y=i.rightToken,b=null;if(null!==f)if("<ident-token>"===f.type){var w=f.type;"infinite"===(S=f.value)&&(b={type:w,value:S})}else if("<number-token>"===f.type||"<dimension-token>"===f.type||"<ratio-token>"===f.type){f.wsBefore,f.wsAfter,b=VN(f,["wsBefore","wsAfter"])}var x=null;if(null!==y)if("<ident-token>"===y.type){var S;w=y.type;"infinite"===(S=y.value)&&(x={type:w,value:S})}else if("<number-token>"===y.type||"<dimension-token>"===y.type||"<ratio-token>"===y.type){y.wsBefore,y.wsAfter,x=VN(y,["wsBefore","wsAfter"])}if(null!==b&&null!==x)if("<"!==m&&"<="!==m||"<"!==v&&"<="!==v){if(">"!==m&&">="!==m||">"!==v&&">="!==v)throw new Error("Invalid range");h={leftToken:b,leftOp:m,featureName:g,rightOp:v,rightToken:x}}else h={leftToken:b,leftOp:m,featureName:g,rightOp:v,rightToken:x};else(null===b&&null===m&&null!==v&&null!==x||null!==b&&null!==m&&null===v&&null===x)&&(h={leftToken:b,leftOp:m,featureName:g,rightOp:v,rightToken:x});return h}throw new Error("Invalid range")};function hO(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function fO(e,t,n){return(t=hO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mO(Object(n),!0).forEach((function(t){fO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vO(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function yO(e,t){for(var n in e)t(e[n],n)}function bO(e,t){var n={};for(var r in e)-1===t.indexOf(r)&&(n[r]=e[r]);return n}var wO,xO=class e{constructor(){this.ruleset=new Map,this.precedenceLookup=new Map}findOrCreateCondition(t){var n=this.ruleset.get(t);return n||(n={query:t,rules:[],children:new e},this.ruleset.set(t,n)),n}getConditionalRulesetByPath(e){var t=this;for(var n of e){var r=t.findOrCreateCondition(n);t=r.children}return t}addRule(e,t,n){var r=this.getConditionalRulesetByPath(n).findOrCreateCondition(t);if(!r)throw new Error("Failed to add conditional rule");r.rules.push(e)}addConditionPrecedence(e,t){for(var n=this.getConditionalRulesetByPath(e),r=0;r<t.length;r++){var o,i=t[r],a=null!==(o=n.precedenceLookup.get(i))&&void 0!==o?o:new Set;for(var s of t.slice(r+1))a.add(s);n.precedenceLookup.set(i,a)}}isCompatible(e){for(var[t,n]of this.precedenceLookup.entries())for(var r of n){var o;if(null!==(o=e.precedenceLookup.get(r))&&void 0!==o&&o.has(t))return!1}for(var{query:i,children:a}of e.ruleset.values()){var s=this.ruleset.get(i);if(s&&!s.children.isCompatible(a))return!1}return!0}merge(e){for(var{query:t,rules:n,children:r}of e.ruleset.values()){var o=this.ruleset.get(t);o?(o.rules.push(...n),o.children.merge(r)):this.ruleset.set(t,{query:t,rules:n,children:r})}for(var[i,a]of e.precedenceLookup.entries()){var s,l=null!==(s=this.precedenceLookup.get(i))&&void 0!==s?s:new Set;this.precedenceLookup.set(i,new Set([...l,...a]))}}mergeIfCompatible(e){return!!this.isCompatible(e)&&(this.merge(e),!0)}getSortedRuleset(){var e=this,t=[],n=function(n){var o=e.ruleset.get(r);if(!o)throw new Error("Can't find condition for ".concat(r));var i=t.findIndex((e=>n.has(e.query)));i>-1?t.splice(i,0,o):t.push(o)};for(var[r,o]of this.precedenceLookup.entries())n(o);return t}renderToArray(){var e=[];for(var{query:t,rules:n,children:r}of this.getSortedRuleset()){var o={};for(var i of n)o[i.selector]=gO(gO({},o[i.selector]),i.rule);Object.assign(o,...r.renderToArray()),e.push({[t]:o})}return e}},SO={":-moz-any-link":!0,":-moz-full-screen":!0,":-moz-placeholder":!0,":-moz-read-only":!0,":-moz-read-write":!0,":-ms-fullscreen":!0,":-ms-input-placeholder":!0,":-webkit-any-link":!0,":-webkit-full-screen":!0,"::-moz-color-swatch":!0,"::-moz-list-bullet":!0,"::-moz-list-number":!0,"::-moz-page-sequence":!0,"::-moz-page":!0,"::-moz-placeholder":!0,"::-moz-progress-bar":!0,"::-moz-range-progress":!0,"::-moz-range-thumb":!0,"::-moz-range-track":!0,"::-moz-scrolled-page-sequence":!0,"::-moz-selection":!0,"::-ms-backdrop":!0,"::-ms-browse":!0,"::-ms-check":!0,"::-ms-clear":!0,"::-ms-fill-lower":!0,"::-ms-fill-upper":!0,"::-ms-fill":!0,"::-ms-reveal":!0,"::-ms-thumb":!0,"::-ms-ticks-after":!0,"::-ms-ticks-before":!0,"::-ms-tooltip":!0,"::-ms-track":!0,"::-ms-value":!0,"::-webkit-backdrop":!0,"::-webkit-calendar-picker-indicator":!0,"::-webkit-inner-spin-button":!0,"::-webkit-input-placeholder":!0,"::-webkit-meter-bar":!0,"::-webkit-meter-even-less-good-value":!0,"::-webkit-meter-inner-element":!0,"::-webkit-meter-optimum-value":!0,"::-webkit-meter-suboptimum-value":!0,"::-webkit-outer-spin-button":!0,"::-webkit-progress-bar":!0,"::-webkit-progress-inner-element":!0,"::-webkit-progress-inner-value":!0,"::-webkit-progress-value":!0,"::-webkit-resizer":!0,"::-webkit-scrollbar-button":!0,"::-webkit-scrollbar-corner":!0,"::-webkit-scrollbar-thumb":!0,"::-webkit-scrollbar-track-piece":!0,"::-webkit-scrollbar-track":!0,"::-webkit-scrollbar":!0,"::-webkit-search-cancel-button":!0,"::-webkit-search-results-button":!0,"::-webkit-slider-runnable-track":!0,"::-webkit-slider-thumb":!0,"::after":!0,"::backdrop":!0,"::before":!0,"::cue":!0,"::file-selector-button":!0,"::first-letter":!0,"::first-line":!0,"::grammar-error":!0,"::marker":!0,"::placeholder":!0,"::selection":!0,"::spelling-error":!0,"::target-text":!0,"::view-transition-group":!0,"::view-transition-image-pair":!0,"::view-transition-new":!0,"::view-transition-old":!0,"::view-transition":!0,":active":!0,":after":!0,":any-link":!0,":before":!0,":blank":!0,":checked":!0,":default":!0,":defined":!0,":disabled":!0,":empty":!0,":enabled":!0,":first-child":!0,":first-letter":!0,":first-line":!0,":first-of-type":!0,":first":!0,":focus-visible":!0,":focus-within":!0,":focus":!0,":fullscreen":!0,":hover":!0,":in-range":!0,":indeterminate":!0,":invalid":!0,":last-child":!0,":last-of-type":!0,":left":!0,":link":!0,":only-child":!0,":only-of-type":!0,":optional":!0,":out-of-range":!0,":placeholder-shown":!0,":read-only":!0,":read-write":!0,":required":!0,":right":!0,":root":!0,":scope":!0,":target":!0,":valid":!0,":visited":!0},_O=Object.keys(SO),CO=SO,EO=(e,t)=>new Error(BN(wO||(wO=_N(['\n    Invalid media query: "','"\n\n    ',"\n\n    Read more on MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries\n  "])),e,t)),kO=e=>{if("@media "===e)throw EO(e,"Query is empty");try{iO(e)}catch(t){throw EO(e,t.message)}},zO=["vars"],PO=["content"],AO="__DECLARATION",DO={animationIterationCount:!0,borderImage:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,initialLetter:!0,lineClamp:!0,lineHeight:!0,maxLines:!0,opacity:!0,order:!0,orphans:!0,scale:!0,tabSize:!0,WebkitLineClamp:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,maskBorder:!0,maskBorderOutset:!0,maskBorderSlice:!0,maskBorderWidth:!0,shapeImageThreshold:!0,stopOpacity:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function TO(e,t,n,r){var o=e.slice(0,t),i=e.slice(n);return"".concat(o).concat(r).concat(i)}var IO=[..._O,"@layer","@media","@supports","@container","selectors"],MO=class{constructor(e,t){this.rules=[],this.conditionalRulesets=[new xO],this.fontFaceRules=[],this.keyframesRules=[],this.propertyRules=[],this.localClassNamesMap=new Map(e.map((e=>[e,e]))),this.localClassNamesSearch=new yN(e),this.layers=new Map,this.composedClassLists=t.map((e=>{var{identifier:t,classList:n}=e;return{identifier:t,regex:RegExp("(".concat(n,")"),"g")}})).reverse()}processCssObj(e){if("fontFace"!==e.type)if("property"!==e.type){if("keyframes"===e.type)return e.rule=Object.fromEntries(Object.entries(e.rule).map((e=>{var[t,n]=e;return[t,this.transformVars(this.transformProperties(n))]}))),void this.keyframesRules.push(e);if(this.currConditionalRuleset=new xO,"layer"===e.type){var t="@layer ".concat(e.name);this.addLayer([t])}else{var n=bO(e.rule,IO);this.addRule({selector:e.selector,rule:n}),this.transformLayer(e,e.rule["@layer"]),this.transformMedia(e,e.rule["@media"]),this.transformSupports(e,e.rule["@supports"]),this.transformContainer(e,e.rule["@container"]),this.transformSimplePseudos(e,e.rule),this.transformSelectors(e,e.rule)}this.conditionalRulesets[this.conditionalRulesets.length-1].mergeIfCompatible(this.currConditionalRuleset)||this.conditionalRulesets.push(this.currConditionalRuleset)}else this.propertyRules.push(e);else this.fontFaceRules.push(e.rule)}addConditionalRule(e,t){var n=this.transformVars(this.transformProperties(e.rule)),r=this.transformSelector(e.selector);if(!this.currConditionalRuleset)throw new Error("Couldn't add conditional rule");var o=t[t.length-1],i=t.slice(0,t.length-1);this.currConditionalRuleset.addRule({selector:r,rule:n},o,i)}addRule(e){var t=this.transformVars(this.transformProperties(e.rule)),n=this.transformSelector(e.selector);this.rules.push({selector:n,rule:t})}addLayer(e){var t=e.join(" - ");this.layers.set(t,e)}transformProperties(e){return this.transformContent(this.pixelifyProperties(e))}pixelifyProperties(e){return yO(e,((t,n)=>{"number"==typeof t&&0!==t&&!DO[n]&&(e[n]="".concat(t,"px"))})),e}transformVars(e){var{vars:t}=e,n=vO(e,zO);return t?gO(gO({},function(e,t){var n={};for(var r in e)n[t(e[r],r)]=e[r];return n}(t,((e,t)=>function(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}(t)))),n):n}transformContent(e){var{content:t}=e,n=vO(e,PO);return typeof t>"u"?n:gO({content:(Array.isArray(t)?t:[t]).map((e=>e&&(e.includes('"')||e.includes("'")||/^([A-Za-z\-]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)(\s|$)/.test(e))?e:'"'.concat(e,'"')))},n)}transformClassname(e){return".".concat((0,vN.default)(e,{isIdentifier:!0}))}transformSelector(e){var t=e,n=function(e){t=t.replace(o,(()=>(SN(e),e)))};for(var{identifier:r,regex:o}of this.composedClassLists)n(r);if(this.localClassNamesMap.has(t))return this.transformClassname(t);for(var i=this.localClassNamesSearch.search(t),a=t.length,s=i.length-1;s>=0;s--){var[l,[c]]=i[s],u=l-c.length+1;a<=l||(a=u,"."!==t[u-1]&&(t=TO(t,u,l+1,this.transformClassname(c))))}return t}transformSelectors(e,t,n){yO(t.selectors,((t,r)=>{if("local"!==e.type)throw new Error("Selectors are not allowed within ".concat("global"===e.type?'"globalStyle"':'"selectors"'));var o=this.transformSelector(r.replace(RegExp("&","g"),e.selector));((e,t)=>{var n,r=()=>{var n=new RegExp(".".concat(function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}((0,vN.default)(t,{isIdentifier:!0}))),"g");return e.replace(n,"&")};try{n=MN(e)}catch{throw new Error("Invalid selector: ".concat(r()))}n.forEach((e=>{try{for(var n=e.length-1;n>=-1;n--){if(!e[n])throw new Error;var o=e[n];if("child"===o.type||"parent"===o.type||"sibling"===o.type||"adjacent"===o.type||"descendant"===o.type)throw new Error;if("attribute"===o.type&&"class"===o.name&&o.value===t)return}}catch{throw new Error(BN(HN||(HN=_N(["\n        Invalid selector: ","\n    \n        Style selectors must target the '&' character (along with any modifiers), e.g. "," or ",".\n        \n        This is to ensure that each style block only affects the styling of a single class.\n        \n        If your selector is targeting another class, you should move it to the style definition for that class, e.g. given we have styles for 'parent' and 'child' elements, instead of adding a selector of ",") to 'parent', you should add "," to 'child').\n        \n        If your selector is targeting something global, use the 'globalStyle' function instead, e.g. if you wanted to write ",", you should instead write 'globalStyle(",", { ... })'\n      "])),r(),"`${parent} &`","`${parent} &:hover`","`& ${child}`","`${parent} &`","`& h1`","`${parent} h1`"))}}))})(o,e.selector);var i={selector:o,rule:bO(t,IO)};n?this.addConditionalRule(i,n):this.addRule(i);var a={type:"selector",selector:o,rule:t};this.transformLayer(a,t["@layer"],n),this.transformSupports(a,t["@supports"],n),this.transformMedia(a,t["@media"],n),this.transformContainer(a,t["@container"],n)}))}transformMedia(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(t)for(var[o,i]of(null===(n=this.currConditionalRuleset)||void 0===n||n.addConditionPrecedence(r,Object.keys(t).map((e=>"@media ".concat(e)))),Object.entries(t))){var a="@media ".concat(o);kO(a);var s=[...r,a];this.addConditionalRule({selector:e.selector,rule:bO(i,IO)},s),"local"===e.type&&(this.transformSimplePseudos(e,i,s),this.transformSelectors(e,i,s)),this.transformLayer(e,i["@layer"],s),this.transformSupports(e,i["@supports"],s),this.transformContainer(e,i["@container"],s)}}transformContainer(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t&&(null===(n=this.currConditionalRuleset)||void 0===n||n.addConditionPrecedence(r,Object.keys(t).map((e=>"@container ".concat(e)))),yO(t,((t,n)=>{var o="@container ".concat(n),i=[...r,o];this.addConditionalRule({selector:e.selector,rule:bO(t,IO)},i),"local"===e.type&&(this.transformSimplePseudos(e,t,i),this.transformSelectors(e,t,i)),this.transformLayer(e,t["@layer"],i),this.transformSupports(e,t["@supports"],i),this.transformMedia(e,t["@media"],i)})))}transformLayer(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t&&(null===(n=this.currConditionalRuleset)||void 0===n||n.addConditionPrecedence(r,Object.keys(t).map((e=>"@layer ".concat(e)))),yO(t,((t,n)=>{var o=[...r,"@layer ".concat(n)];this.addLayer(o),this.addConditionalRule({selector:e.selector,rule:bO(t,IO)},o),"local"===e.type&&(this.transformSimplePseudos(e,t,o),this.transformSelectors(e,t,o)),this.transformMedia(e,t["@media"],o),this.transformSupports(e,t["@supports"],o),this.transformContainer(e,t["@container"],o)})))}transformSupports(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];t&&(null===(n=this.currConditionalRuleset)||void 0===n||n.addConditionPrecedence(r,Object.keys(t).map((e=>"@supports ".concat(e)))),yO(t,((t,n)=>{var o=[...r,"@supports ".concat(n)];this.addConditionalRule({selector:e.selector,rule:bO(t,IO)},o),"local"===e.type&&(this.transformSimplePseudos(e,t,o),this.transformSelectors(e,t,o)),this.transformLayer(e,t["@layer"],o),this.transformMedia(e,t["@media"],o),this.transformContainer(e,t["@container"],o)})))}transformSimplePseudos(e,t,n){for(var r of Object.keys(t))if(CO[r]){if("local"!==e.type)throw new Error("Simple pseudos are not valid in ".concat("global"===e.type?'"globalStyle"':'"selectors"'));n?this.addConditionalRule({selector:"".concat(e.selector).concat(r),rule:t[r]},n):this.addRule({conditions:n,selector:"".concat(e.selector).concat(r),rule:t[r]})}}toCss(){var e=[];for(var t of this.fontFaceRules)e.push(NO({"@font-face":t}));for(var n of this.propertyRules)e.push(NO({["@property ".concat(n.name)]:n.rule}));for(var r of this.keyframesRules)e.push(NO({["@keyframes ".concat(r.name)]:r.rule}));for(var o of this.layers.values()){var[i,...a]=o.reverse(),s={[i]:AO};for(var l of a)s={[l]:s};e.push(NO(s))}for(var c of this.rules)e.push(NO({[c.selector]:c.rule}));for(var u of this.conditionalRulesets)for(var d of u.renderToArray())e.push(NO(d));return e.filter(Boolean)}};function NO(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],r=function(r){var o=e[r];if(o&&Array.isArray(o))n.push(...o.map((e=>NO({[r]:e},t))));else if(o&&"object"==typeof o){0===Object.keys(o).length||n.push("".concat(t).concat(r," {\n").concat(NO(o,t+"  "),"\n").concat(t,"}"))}else o===AO?n.push("".concat(t).concat(r,";")):n.push("".concat(t).concat(r.startsWith("--")?r:function(e){return e.replace(/([A-Z])/g,"-$1").replace(/^ms-/,"-ms-").toLowerCase()}(r),": ").concat(o,";"))};for(var o of Object.keys(e))r(o);return n.join("\n")}var OO="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,RO=new Set,jO="object"==typeof process&&process?process:{},FO=(e,t,n,r)=>{"function"==typeof jO.emitWarning?jO.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`)},BO=globalThis.AbortController,LO=globalThis.AbortSignal;if(typeof BO>"u"){LO=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(e,t){this._onabort.push(t)}},BO=class{constructor(){t()}signal=new LO;abort(e){if(!this.signal.aborted){this.signal.reason=e,this.signal.aborted=!0;for(let t of this.signal._onabort)t(e);this.signal.onabort?.(e)}}};let e="1"!==jO.env?.LRU_CACHE_IGNORE_AC_WARNING,t=()=>{e&&(e=!1,FO("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var VO=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),KO=e=>VO(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?HO:null:null,HO=class extends Array{constructor(e){super(e),this.fill(0)}},$O=class e{heap;length;static#e=!1;static create(t){let n=KO(t);if(!n)return[];e.#e=!0;let r=new e(t,n);return e.#e=!1,r}constructor(t,n){if(!e.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},UO=class e{#e;#t;#n;#r;#o;#i;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#s;#l;#c;#u;#d;#p;#h;#f;#m;#g;#v;#y;#b;#w;#x;#S;static unsafeExposeInternals(e){return{starts:e.#y,ttls:e.#b,sizes:e.#v,keyMap:e.#l,keyList:e.#c,valList:e.#u,next:e.#d,prev:e.#p,get head(){return e.#h},get tail(){return e.#f},free:e.#m,isBackgroundFetch:t=>e.#_(t),backgroundFetch:(t,n,r,o)=>e.#C(t,n,r,o),moveToTail:t=>e.#E(t),indexes:t=>e.#k(t),rindexes:t=>e.#z(t),isStale:t=>e.#P(t)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#s}get size(){return this.#a}get fetchMethod(){return this.#o}get memoMethod(){return this.#i}get dispose(){return this.#n}get disposeAfter(){return this.#r}constructor(t){let{max:n=0,ttl:r,ttlResolution:o=1,ttlAutopurge:i,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:l,dispose:c,disposeAfter:u,noDisposeOnSet:d,noUpdateTTL:p,maxSize:h=0,maxEntrySize:f=0,sizeCalculation:m,fetchMethod:g,memoMethod:v,noDeleteOnFetchRejection:y,noDeleteOnStaleGet:b,allowStaleOnFetchRejection:w,allowStaleOnFetchAbort:x,ignoreFetchAbort:S}=t;if(0!==n&&!VO(n))throw new TypeError("max option must be a nonnegative integer");let _=n?KO(n):Array;if(!_)throw new Error("invalid max value: "+n);if(this.#e=n,this.#t=h,this.maxEntrySize=f||this.#t,this.sizeCalculation=m,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==v&&"function"!=typeof v)throw new TypeError("memoMethod must be a function if defined");if(this.#i=v,void 0!==g&&"function"!=typeof g)throw new TypeError("fetchMethod must be a function if specified");if(this.#o=g,this.#x=!!g,this.#l=new Map,this.#c=new Array(n).fill(void 0),this.#u=new Array(n).fill(void 0),this.#d=new _(n),this.#p=new _(n),this.#h=0,this.#f=0,this.#m=$O.create(n),this.#a=0,this.#s=0,"function"==typeof c&&(this.#n=c),"function"==typeof u?(this.#r=u,this.#g=[]):(this.#r=void 0,this.#g=void 0),this.#w=!!this.#n,this.#S=!!this.#r,this.noDisposeOnSet=!!d,this.noUpdateTTL=!!p,this.noDeleteOnFetchRejection=!!y,this.allowStaleOnFetchRejection=!!w,this.allowStaleOnFetchAbort=!!x,this.ignoreFetchAbort=!!S,0!==this.maxEntrySize){if(0!==this.#t&&!VO(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!VO(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#A()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!b,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=VO(o)||0===o?o:1,this.ttlAutopurge=!!i,this.ttl=r||0,this.ttl){if(!VO(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#D()}if(0===this.#e&&0===this.ttl&&0===this.#t)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let t="LRU_CACHE_UNBOUNDED";(e=>!RO.has(e))(t)&&(RO.add(t),FO("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,e))}}getRemainingTTL(e){return this.#l.has(e)?1/0:0}#D(){let e=new HO(this.#e),t=new HO(this.#e);this.#b=e,this.#y=t,this.#T=(n,r,o=OO.now())=>{if(t[n]=0!==r?o:0,e[n]=r,0!==r&&this.ttlAutopurge){let e=setTimeout((()=>{this.#P(n)&&this.#I(this.#c[n],"expire")}),r+1);e.unref&&e.unref()}},this.#M=n=>{t[n]=0!==e[n]?OO.now():0},this.#N=(o,i)=>{if(e[i]){let a=e[i],s=t[i];if(!a||!s)return;o.ttl=a,o.start=s,o.now=n||r();let l=o.now-s;o.remainingTTL=a-l}};let n=0,r=()=>{let e=OO.now();if(this.ttlResolution>0){n=e;let t=setTimeout((()=>n=0),this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=o=>{let i=this.#l.get(o);if(void 0===i)return 0;let a=e[i],s=t[i];return a&&s?a-((n||r())-s):1/0},this.#P=o=>{let i=t[o],a=e[o];return!!a&&!!i&&(n||r())-i>a}}#M=()=>{};#N=()=>{};#T=()=>{};#P=()=>!1;#A(){let e=new HO(this.#e);this.#s=0,this.#v=e,this.#O=t=>{this.#s-=e[t],e[t]=0},this.#R=(e,t,n,r)=>{if(this.#_(t))return 0;if(!VO(n)){if(!r)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof r)throw new TypeError("sizeCalculation must be a function");if(n=r(t,e),!VO(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return n},this.#j=(t,n,r)=>{if(e[t]=n,this.#t){let n=this.#t-e[t];for(;this.#s>n;)this.#F(!0)}this.#s+=e[t],r&&(r.entrySize=n,r.totalCalculatedSize=this.#s)}}#O=e=>{};#j=(e,t,n)=>{};#R=(e,t,n,r)=>{if(n||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#k({allowStale:e=this.allowStale}={}){if(this.#a)for(let t=this.#f;this.#B(t)&&((e||!this.#P(t))&&(yield t),t!==this.#h);)t=this.#p[t]}*#z({allowStale:e=this.allowStale}={}){if(this.#a)for(let t=this.#h;this.#B(t)&&((e||!this.#P(t))&&(yield t),t!==this.#f);)t=this.#d[t]}#B(e){return void 0!==e&&this.#l.get(this.#c[e])===e}*entries(){for(let e of this.#k())void 0!==this.#u[e]&&void 0!==this.#c[e]&&!this.#_(this.#u[e])&&(yield[this.#c[e],this.#u[e]])}*rentries(){for(let e of this.#z())void 0!==this.#u[e]&&void 0!==this.#c[e]&&!this.#_(this.#u[e])&&(yield[this.#c[e],this.#u[e]])}*keys(){for(let e of this.#k()){let t=this.#c[e];void 0!==t&&!this.#_(this.#u[e])&&(yield t)}}*rkeys(){for(let e of this.#z()){let t=this.#c[e];void 0!==t&&!this.#_(this.#u[e])&&(yield t)}}*values(){for(let e of this.#k())void 0!==this.#u[e]&&!this.#_(this.#u[e])&&(yield this.#u[e])}*rvalues(){for(let e of this.#z())void 0!==this.#u[e]&&!this.#_(this.#u[e])&&(yield this.#u[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(let n of this.#k()){let r=this.#u[n],o=this.#_(r)?r.__staleWhileFetching:r;if(void 0!==o&&e(o,this.#c[n],this))return this.get(this.#c[n],t)}}forEach(e,t=this){for(let n of this.#k()){let r=this.#u[n],o=this.#_(r)?r.__staleWhileFetching:r;void 0!==o&&e.call(t,o,this.#c[n],this)}}rforEach(e,t=this){for(let n of this.#z()){let r=this.#u[n],o=this.#_(r)?r.__staleWhileFetching:r;void 0!==o&&e.call(t,o,this.#c[n],this)}}purgeStale(){let e=!1;for(let t of this.#z({allowStale:!0}))this.#P(t)&&(this.#I(this.#c[t],"expire"),e=!0);return e}info(e){let t=this.#l.get(e);if(void 0===t)return;let n=this.#u[t],r=this.#_(n)?n.__staleWhileFetching:n;if(void 0===r)return;let o={value:r};if(this.#b&&this.#y){let e=this.#b[t],n=this.#y[t];if(e&&n){let t=e-(OO.now()-n);o.ttl=t,o.start=Date.now()}}return this.#v&&(o.size=this.#v[t]),o}dump(){let e=[];for(let t of this.#k({allowStale:!0})){let n=this.#c[t],r=this.#u[t],o=this.#_(r)?r.__staleWhileFetching:r;if(void 0===o||void 0===n)continue;let i={value:o};if(this.#b&&this.#y){i.ttl=this.#b[t];let e=OO.now()-this.#y[t];i.start=Math.floor(Date.now()-e)}this.#v&&(i.size=this.#v[t]),e.unshift([n,i])}return e}load(e){this.clear();for(let[t,n]of e){if(n.start){let e=Date.now()-n.start;n.start=OO.now()-e}this.set(t,n.value,n)}}set(e,t,n={}){if(void 0===t)return this.delete(e),this;let{ttl:r=this.ttl,start:o,noDisposeOnSet:i=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:s}=n,{noUpdateTTL:l=this.noUpdateTTL}=n,c=this.#R(e,t,n.size||0,a);if(this.maxEntrySize&&c>this.maxEntrySize)return s&&(s.set="miss",s.maxEntrySizeExceeded=!0),this.#I(e,"set"),this;let u=0===this.#a?void 0:this.#l.get(e);if(void 0===u)u=0===this.#a?this.#f:0!==this.#m.length?this.#m.pop():this.#a===this.#e?this.#F(!1):this.#a,this.#c[u]=e,this.#u[u]=t,this.#l.set(e,u),this.#d[this.#f]=u,this.#p[u]=this.#f,this.#f=u,this.#a++,this.#j(u,c,s),s&&(s.set="add"),l=!1;else{this.#E(u);let n=this.#u[u];if(t!==n){if(this.#x&&this.#_(n)){n.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:t}=n;void 0!==t&&!i&&(this.#w&&this.#n?.(t,e,"set"),this.#S&&this.#g?.push([t,e,"set"]))}else i||(this.#w&&this.#n?.(n,e,"set"),this.#S&&this.#g?.push([n,e,"set"]));if(this.#O(u),this.#j(u,c,s),this.#u[u]=t,s){s.set="replace";let e=n&&this.#_(n)?n.__staleWhileFetching:n;void 0!==e&&(s.oldValue=e)}}else s&&(s.set="update")}if(0!==r&&!this.#b&&this.#D(),this.#b&&(l||this.#T(u,r,o),s&&this.#N(s,u)),!i&&this.#S&&this.#g){let e,t=this.#g;for(;e=t?.shift();)this.#r?.(...e)}return this}pop(){try{for(;this.#a;){let e=this.#u[this.#h];if(this.#F(!0),this.#_(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(void 0!==e)return e}}finally{if(this.#S&&this.#g){let e,t=this.#g;for(;e=t?.shift();)this.#r?.(...e)}}}#F(e){let t=this.#h,n=this.#c[t],r=this.#u[t];return this.#x&&this.#_(r)?r.__abortController.abort(new Error("evicted")):(this.#w||this.#S)&&(this.#w&&this.#n?.(r,n,"evict"),this.#S&&this.#g?.push([r,n,"evict"])),this.#O(t),e&&(this.#c[t]=void 0,this.#u[t]=void 0,this.#m.push(t)),1===this.#a?(this.#h=this.#f=0,this.#m.length=0):this.#h=this.#d[t],this.#l.delete(n),this.#a--,t}has(e,t={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:r}=t,o=this.#l.get(e);if(void 0!==o){let e=this.#u[o];if(this.#_(e)&&void 0===e.__staleWhileFetching)return!1;if(!this.#P(o))return n&&this.#M(o),r&&(r.has="hit",this.#N(r,o)),!0;r&&(r.has="stale",this.#N(r,o))}else r&&(r.has="miss");return!1}peek(e,t={}){let{allowStale:n=this.allowStale}=t,r=this.#l.get(e);if(void 0===r||!n&&this.#P(r))return;let o=this.#u[r];return this.#_(o)?o.__staleWhileFetching:o}#C(e,t,n,r){let o=void 0===t?void 0:this.#u[t];if(this.#_(o))return o;let i=new BO,{signal:a}=n;a?.addEventListener("abort",(()=>i.abort(a.reason)),{signal:i.signal});let s={signal:i.signal,options:n,context:r},l=(r,o=!1)=>{let{aborted:a}=i.signal,l=n.ignoreFetchAbort&&void 0!==r;if(n.status&&(a&&!o?(n.status.fetchAborted=!0,n.status.fetchError=i.signal.reason,l&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),a&&!l&&!o)return c(i.signal.reason);let d=u;return this.#u[t]===u&&(void 0===r?d.__staleWhileFetching?this.#u[t]=d.__staleWhileFetching:this.#I(e,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.set(e,r,s.options))),r},c=r=>{let{aborted:o}=i.signal,a=o&&n.allowStaleOnFetchAbort,s=a||n.allowStaleOnFetchRejection,l=s||n.noDeleteOnFetchRejection,c=u;if(this.#u[t]===u&&(l&&void 0!==c.__staleWhileFetching?a||(this.#u[t]=c.__staleWhileFetching):this.#I(e,"fetch")),s)return n.status&&void 0!==c.__staleWhileFetching&&(n.status.returnedStale=!0),c.__staleWhileFetching;if(c.__returned===c)throw r};n.status&&(n.status.fetchDispatched=!0);let u=new Promise(((t,r)=>{let a=this.#o?.(e,o,s);a&&a instanceof Promise&&a.then((e=>t(void 0===e?void 0:e)),r),i.signal.addEventListener("abort",(()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(t(void 0),n.allowStaleOnFetchAbort&&(t=e=>l(e,!0)))}))})).then(l,(e=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=e),c(e)))),d=Object.assign(u,{__abortController:i,__staleWhileFetching:o,__returned:void 0});return void 0===t?(this.set(e,d,{...s.options,status:void 0}),t=this.#l.get(e)):this.#u[t]=d,d}#_(e){if(!this.#x)return!1;let t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof BO}async fetch(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:s=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:h=this.allowStaleOnFetchAbort,context:f,forceRefresh:m=!1,status:g,signal:v}=t;if(!this.#x)return g&&(g.fetch="get"),this.get(e,{allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:o,status:g});let y={allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:o,ttl:i,noDisposeOnSet:a,size:s,sizeCalculation:l,noUpdateTTL:c,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:h,ignoreFetchAbort:p,status:g,signal:v},b=this.#l.get(e);if(void 0===b){g&&(g.fetch="miss");let t=this.#C(e,b,y,f);return t.__returned=t}{let t=this.#u[b];if(this.#_(t)){let e=n&&void 0!==t.__staleWhileFetching;return g&&(g.fetch="inflight",e&&(g.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}let o=this.#P(b);if(!m&&!o)return g&&(g.fetch="hit"),this.#E(b),r&&this.#M(b),g&&this.#N(g,b),t;let i=this.#C(e,b,y,f),a=void 0!==i.__staleWhileFetching&&n;return g&&(g.fetch=o?"stale":"refresh",a&&o&&(g.returnedStale=!0)),a?i.__staleWhileFetching:i.__returned=i}}async forceFetch(e,t={}){let n=await this.fetch(e,t);if(void 0===n)throw new Error("fetch() returned undefined");return n}memo(e,t={}){let n=this.#i;if(!n)throw new Error("no memoMethod provided to constructor");let{context:r,forceRefresh:o,...i}=t,a=this.get(e,i);if(!o&&void 0!==a)return a;let s=n(e,a,{options:i,context:r});return this.set(e,s,i),s}get(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:i}=t,a=this.#l.get(e);if(void 0!==a){let t=this.#u[a],s=this.#_(t);return i&&this.#N(i,a),this.#P(a)?(i&&(i.get="stale"),s?(i&&n&&void 0!==t.__staleWhileFetching&&(i.returnedStale=!0),n?t.__staleWhileFetching:void 0):(o||this.#I(e,"expire"),i&&n&&(i.returnedStale=!0),n?t:void 0)):(i&&(i.get="hit"),s?t.__staleWhileFetching:(this.#E(a),r&&this.#M(a),t))}i&&(i.get="miss")}#L(e,t){this.#p[t]=e,this.#d[e]=t}#E(e){e!==this.#f&&(e===this.#h?this.#h=this.#d[e]:this.#L(this.#p[e],this.#d[e]),this.#L(this.#f,e),this.#f=e)}delete(e){return this.#I(e,"delete")}#I(e,t){let n=!1;if(0!==this.#a){let r=this.#l.get(e);if(void 0!==r)if(n=!0,1===this.#a)this.#V(t);else{this.#O(r);let n=this.#u[r];if(this.#_(n)?n.__abortController.abort(new Error("deleted")):(this.#w||this.#S)&&(this.#w&&this.#n?.(n,e,t),this.#S&&this.#g?.push([n,e,t])),this.#l.delete(e),this.#c[r]=void 0,this.#u[r]=void 0,r===this.#f)this.#f=this.#p[r];else if(r===this.#h)this.#h=this.#d[r];else{let e=this.#p[r];this.#d[e]=this.#d[r];let t=this.#d[r];this.#p[t]=this.#p[r]}this.#a--,this.#m.push(r)}}if(this.#S&&this.#g?.length){let e,t=this.#g;for(;e=t?.shift();)this.#r?.(...e)}return n}clear(){return this.#V("delete")}#V(e){for(let t of this.#z({allowStale:!0})){let n=this.#u[t];if(this.#_(n))n.__abortController.abort(new Error("deleted"));else{let r=this.#c[t];this.#w&&this.#n?.(n,r,e),this.#S&&this.#g?.push([n,r,e])}}if(this.#l.clear(),this.#u.fill(void 0),this.#c.fill(void 0),this.#b&&this.#y&&(this.#b.fill(0),this.#y.fill(0)),this.#v&&this.#v.fill(0),this.#h=0,this.#f=0,this.#m.length=0,this.#s=0,this.#a=0,this.#S&&this.#g){let e,t=this.#g;for(;e=t?.shift();)this.#r?.(...e)}}};wT(xT()),wT(ST());var WO=new Set,qO=[],GO=[],ZO={appendCss:e=>{GO.push(e)},registerClassName:e=>{WO.add(e)},registerComposition:e=>{qO.push(e)},markCompositionUsed:()=>{},onEndFileScope:e=>{var t=function(e){var{localClassNames:t,cssObjs:n,composedClassLists:r}=e,o=new MO(t,r);for(var i of n)o.processCssObj(i);return o.toCss()}({localClassNames:Array.from(WO),composedClassLists:qO,cssObjs:GO}).join("\n");(e=>{var{fileScope:t,css:n}=e,r=t.packageName?[t.packageName,t.filePath].join("/"):t.filePath,o=fN[r];if(!o){var i=document.createElement("style");t.packageName&&i.setAttribute("data-package",t.packageName),i.setAttribute("data-file",t.filePath),i.setAttribute("type","text/css"),o=fN[r]=i,document.head.appendChild(i)}o.innerHTML=n})({fileScope:e,css:t}),GO=[]},getIdentOption:()=>"short"};typeof window<"u"&&(e=>{wN||xN(e)})(ZO);function YO(){for(var e="",t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reverse().forEach((t=>{""===e?e=String(t):(function(e){if("string"!=typeof e||!/^var\(--.*\)$/.test(e))throw new Error("Invalid variable name: ".concat(e))}(t),e=t.replace(/\)$/,", ".concat(e,")")))})),e}(()=>{var e=new UO({max:500})})();var XO=l.createContext({isDrawer:!1,closeDrawer:()=>{},dialogStyle:{},setDialogElement:()=>{},isWithinModal:!1}),JO=l.createContext({setIsPopoverSafelyClosed:()=>{}}),QO=({children:e,className:t,style:n,isDismissable:r=!0,isKeyboardDismissDisabled:o=!1,portalContainer:i,disableAnimation:a,enableDrawer:c=!1,"data-block-id":u,"data-block-class":d,shouldCloseOnInteractOutside:p})=>{let{state:f}=l.useContext(pN),[g,y]=l.useState(!0),b=l.useRef(null),[w,x]=l.useState(null),{shouldHandleVirtualKeyboard:_}=(0,l.useContext)($M),{shouldContainOverlays:C,container:E}=(0,l.useContext)(FM),k=OM(),z="boolean"==typeof c&&c||"auto"===c&&"mobile"===k;(0,s.V1)(f,"ModalContent must be a child of Modal");let P=l.useRef(null),A="function"==typeof r?r(z):r,D="function"==typeof o?o(z):o,{modalProps:T,underlayProps:I}=(0,h.ln)({isDismissable:g&&A,shouldCloseOnInteractOutside:e=>!(!E?.contains(e)&&C)&&(p?.(e)??!0),isKeyboardDismissDisabled:D},f,P),{dialogStyle:M,containerStyle:N}=function(e,t,n){let[r,o]=(0,l.useState)({}),i=(0,l.useRef)(!1),[a,c]=(0,l.useState)(null),{container:u,shouldContainOverlays:d,isContainerPositioned:p}=(0,l.useContext)(FM);(0,l.useEffect)((()=>{if(!e||!n)return;let r=LT(e),a=r.visualViewport,l=()=>{let n=a?.height,l=r.innerHeight-(n||0);if(i.current=l>60,i.current){let t=(0,s.bq)(e);t&&(0,s.gS)(t)&&t.scrollIntoView({behavior:"smooth",block:"center"})}if(t)o({maxHeight:.8*(n||0),bottom:l});else{let e=`${n||0}px`,t=d?`min(${e}, ${YO(vM,e)})`:e;o({maxHeight:`calc(${t} - (2 * ${v.G6.spacing.xl} + env(safe-area-inset-top) + env(safe-area-inset-bottom)))`,top:i.current?`calc(env(safe-area-inset-top) + ${v.G6.spacing.xl})`:void 0})}};return l(),a?.addEventListener("resize",l),r.addEventListener("resize",l),()=>{a?.removeEventListener("resize",l),r.removeEventListener("resize",l)}}),[e,t,d,n]),(0,l.useEffect)((()=>{if(!u||!d||p)return;let e=()=>{u&&c((0,s.Fl)(u))};e();let t=new ResizeObserver((()=>{e()}));return t.observe(u),()=>{t.disconnect()}}),[u,d,p]);let h=(0,l.useMemo)((()=>({...r,overflow:"auto",position:"relative"})),[r]),f=(0,l.useMemo)((()=>{if(!t&&i.current)return{alignItems:"flex-start"};if(d&&!p){let e=a||(u?(0,s.Fl)(u):{x:0,y:0,height:0,width:0});return{position:"absolute",left:e.x,top:e.y,height:e.height,width:e.width}}return{}}),[t,i.current,u,p,d,a]);return{dialogStyle:h,containerStyle:f}}(w,z,_),O=(0,l.useMemo)((()=>({isDrawer:z,closeDrawer:f.close,dialogStyle:M,dialogRef:b,setDialogElement:x,isWithinModal:!0})),[z,f.close,M,b,x]),R=(0,l.useMemo)((()=>({setIsPopoverSafelyClosed:y})),[y]),j={duration:.3,type:"tween",ease:"easeOut"},F={open:{opacity:1,transform:z?"translateY(0%)":"scale(1)"},closed:a?{opacity:1,transform:z?"translateY(0%)":"scale(1)"}:{opacity:0,transform:z?"translateY(100%)":"scale(0.95)"}};return(0,m.jsx)(S.Ny,{initial:!1,children:f.isOpen?(0,m.jsx)(XO.Provider,{value:O,children:(0,m.jsx)(JO.Provider,{value:R,children:(0,m.jsxs)(YM,{className:(0,s.xW)(uN({enableDrawer:z,shouldContainOverlays:C}),t),"data-block-id":u,"data-block-class":d,style:{...n,...N},portalContainer:i,children:[(0,m.jsx)(S.PY.div,{...I,variants:{open:{opacity:1},closed:{opacity:a?1:0}},initial:"closed",animate:"open",exit:"closed","data-testid":"underlay",transition:j,className:(0,s.xW)(dN({shouldContainOverlays:C}),"BaselineUI-Modal-Underlay")}),(0,m.jsx)(S.PY.div,{...T,ref:P,"data-drawer":z,className:(0,s.xW)(z?"aml2vl8 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6ij _1yep5z6ik _1yep5z6il":"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7","BaselineUI-Modal-Content"),variants:F,transition:z?j:{type:"spring",duration:.3},initial:"closed",animate:"open",exit:"closed",children:"function"==typeof e?e(f):e})]})})}):null})},eR=uI({defaultClassName:"cjv3et0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g1 _1yep5z6lz _1yep5z6m1",variantClassNames:{size:{sm:"cjv3et1",md:"cjv3et2",lg:"cjv3et3",content:"cjv3et4"},variant:{primary:"_1yep5z6137",ghost:"cjv3et6"},overlayType:{modal:"cjv3et7",popover:"cjv3et8"},isDrawer:{true:"cjv3et9 _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8 _1yep5z617q"},isFocusVisible:{true:"_1yep5z61q3 _1yep5z61tx _1yep5z61tz _1yep5z61u1"}},defaultVariants:{},compoundVariants:[]}),tR=l.createContext({titleProps:{}}),nR=l.forwardRef((({children:e,className:t,style:n,inheritDrawer:r,size:o="md",variant:i="primary","data-block-id":a,"data-block-class":c,drawerBackground:u,...d},p)=>{let f=l.useRef(null),g=l.useRef(null),{isDrawer:v,closeDrawer:y,dialogStyle:b,setDialogElement:w,isWithinModal:x}=(0,l.useContext)(XO),[S,_]=l.useState(""),{focusProps:C,isFocusVisible:E}=(0,h.og)();(0,l.useLayoutEffect)((()=>{let e=g.current?.getRootNode(),t=d["aria-label"]||"";d["aria-labelledby"]&&(t=e?.querySelector(`#${d["aria-labelledby"].replaceAll(":",String.raw`\:`)}`)?.textContent||""),_(t)}),[d]);let{dialogProps:k,titleProps:z}=(0,h.sp)(d,f),P=(0,l.useMemo)((()=>({titleProps:z})),[z]);return v&&r?(0,m.jsx)(lN,{title:S,onCloseRequest:y,className:t,style:b,...d,"data-drawer":!0,"data-block-id":a,"data-block-class":c,ref:UT(g,p,(e=>{w(e)})),background:u,children:e}):(0,m.jsx)(tR.Provider,{value:P,children:(0,m.jsx)("section",{...(0,h.v6)(k,C),"data-block-id":a,"data-block-class":c,"data-focus-visible":E,"data-overlay-type":x?"modal":"popover",ref:UT(f,p,(e=>{w(e)})),style:{...b,...n},className:(0,s.xW)(eR({size:v?"content":o,variant:i,isDrawer:v,isFocusVisible:E,overlayType:x?"modal":"popover"}),"BaselineUI-Dialog",t),children:e})})}));nR.displayName="Dialog";var rR=l.forwardRef((({children:e,className:t,style:n},r)=>{let{titleProps:o}=(0,l.useContext)(tR);return l.isValidElement(e)?l.cloneElement(e,{...o,ref:r,className:(0,s.xW)(e.props.className,t),style:{...e.props.style,...n}}):(0,m.jsx)("h3",{...o,ref:r,className:t,style:n,children:e})}));rR.displayName="DialogTitle";var oR=({children:e,isOpen:t,popoverContentRef:n,portalContainer:r=document.body,style:o})=>{let[i,a]=(0,l.useState)(!1),[s,c]=(0,l.useState)(null),u=(0,l.useRef)(null),{setIsPopoverSafelyClosed:d}=(0,l.useContext)(JO);(0,l.useEffect)((()=>{t?(a(!0),u.current&&clearTimeout(u.current)):u.current=setTimeout((()=>{a(!1)}),300)}),[t]),(0,l.useEffect)((()=>()=>{u.current&&clearTimeout(u.current)}),[]);let p=n.current;return(0,l.useEffect)((()=>{p&&c(p.getBoundingClientRect())}),[p]),(0,l.useEffect)((()=>{d(!i)}),[i,d]),(0,m.jsxs)(m.Fragment,{children:[i?z.createPortal((0,m.jsx)("div",{style:{position:"absolute",left:o?.left,top:o?.top,width:s?.width,height:s?.height,zIndex:o?.zIndex?+o.zIndex-1:void 0},className:"BaselineUI-Popover-ClickPreventionLayer"}),r):null,e]})},{color:iR}=v.G6,aR=l.forwardRef((({portalClassName:e,portalStyle:t,className:n,style:r,state:o,overlayProps:i,underlayClassName:a,children:c,includeArrow:u=!1,offset:d=2,portalContainer:p,contentContainerClassName:f,contentContainerStyle:g,"data-block-id":v,"data-block-class":y,...b},w)=>{let x=l.useRef(null),C=LM(p),E=u?8:0,{underlayProps:k,popoverProps:z,placement:P,arrowProps:A}=(0,h.fP)({...b,offset:d+E,popoverRef:x,containerPadding:b.containerPadding||0},o);delete z.style?.position;let D="center"===P?"bottom":P,T=(0,l.useMemo)((()=>({isOpen:o.isOpen})),[o.isOpen]),{transitionProps:I}=hM({placement:P}),M=(0,l.useMemo)((()=>({...z.style,...(0,_.D)({[FI]:`${b.triggerRef?.current?.offsetWidth}px`}),..._I(r,T)})),[z.style,b.triggerRef,r,T]);return(0,m.jsx)(oR,{isOpen:o.isOpen,popoverContentRef:x,portalContainer:C,style:z.style,children:o.isOpen?(0,m.jsxs)(YM,{portalContainer:C,style:t,className:e,ref:w,"data-block-id":v,"data-block-class":y,children:[!b.isNonModal&&(0,m.jsx)("div",{...k,className:(0,s.xW)("_1gzftthc",SI(a,T),"BaselineUI-Popover-Underlay")}),(0,m.jsxs)(S.PY.div,{...(0,h.v6)(z,I),style:M,ref:UT(x,w),className:(0,s.xW)("_1gzftth1 _1yep5z6is _1yep5z6it _1yep5z6iu","BaselineUI-Popover-ContentContainer",SI(n,T)),"data-placement":["top","bottom","left","right"].filter((e=>P?.includes(e))),children:[u?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("svg",{className:(0,s.xW)(RI({placement:D}),"BaselineUI-PopoverContent-Arrow"),...A,style:{...A.style,position:"absolute"},width:"15",height:"9",viewBox:"0 0 15 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,m.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.019 0h1.228l6.272 7.237L13.791 0h1.228v1h-.772L7.519 8.763.791 1H.019V0Z",fill:iR.border.medium}),(0,m.jsx)("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:iR.background.primary.subtle,stroke:iR.background.primary.subtle})]}),(0,m.jsxs)("svg",{className:(0,s.xW)(jI({placement:D}),"BaselineUI-PopoverContent-Arrow-Focused"),width:"15",height:"11",viewBox:"0 0 15 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A,style:{...A.style,position:"absolute"},children:[(0,m.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.543371 2H0V0H1.45663L7.5 6.97312L13.5434 0H15V2H14.4566L7.5 10.0269L0.543371 2Z",fill:iR.border.interactive.enabled}),(0,m.jsx)("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:iR.background.primary.subtle,stroke:iR.background.primary.subtle})]})]}):null,(0,m.jsx)(h.Rz,{onDismiss:o.close}),(0,m.jsx)("div",{...i,style:_I(g,T),className:(0,s.xW)("_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6d7",SI(f,T),"BaselineUI-Popover-Content"),children:"function"==typeof c?c(o):c}),(0,m.jsx)(h.Rz,{onDismiss:o.close})]})]}):null})}));aR.displayName="PopoverContentCore";var sR=l.forwardRef(((e,t)=>{let{state:n,overlayTriggerAria:{overlayProps:r},triggerRef:o}=(0,l.useContext)(NI);return(0,s.V1)(o),n?(0,m.jsx)(aR,{ref:t,...e,triggerRef:e.triggerRef||o,overlayProps:r,state:n}):null}));sR.displayName="PopoverContent";var lR=l.forwardRef((({className:e,style:t,onChange:n,"data-block-id":r,icon:o,formatValue:i=e=>e,tooltipProps:a,popoverContentProps:c,isDisabled:d,...p},f)=>{let g=JT(f),[y,b]=u(p.value,p.defaultValue||0,n),[w,x]=l.useState(!1),{keyboardProps:S}=(0,h.de)({onKeyDown:e=>{("Enter"===e.key||"Escape"===e.key)&&x(!1)}}),_=i(y||0),C=a?.isDisabled||p["aria-label"]?`${p["aria-label"]}, ${_}`:_.toString();return(0,m.jsxs)(vI,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:(0,s.xW)("BaselineUI-IconSlider",e),"data-block-id":r,style:t,ref:g,children:[o?(0,m.jsx)(o,{size:24,className:(0,v.UV)({color:"icon.primary"})}):null,(0,m.jsxs)(OI,{type:"dialog",isOpen:w,onOpenChange:x,children:[(0,m.jsx)(KI,{children:(0,m.jsx)(XM,{text:p["aria-label"],size:"sm",variant:"inverse",includeArrow:!1,isDisabled:d,...a,children:(0,m.jsx)(YI,{label:_,variant:"popover","aria-label":C,isDisabled:d,style:{fontVariantNumeric:"tabular-nums",minWidth:68,justifyContent:"space-between"}})})}),(0,m.jsx)(sR,{placement:"bottom start",...c,children:(0,m.jsx)(nR,{size:"content","aria-label":C,children:(0,m.jsx)(h.n1,{autoFocus:!0,children:(0,m.jsx)(vI,{paddingY:"sm",paddingX:"lg",marginY:"md",style:{width:215},...S,children:(0,m.jsx)(rN,{...p,onChange:e=>{b(e),n?.(e)},value:y})})})})})]})]})}));lR.displayName="IconSlider";var cR=uI({defaultClassName:"bpklwa7",variantClassNames:{isReadOnly:{true:"bpklwa8"},isDisabled:{true:"bpklwa9"},isSelected:{true:"bpklwaa"},isFocused:{true:"bpklwab"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"bpklwac"]]}),uR=uI({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),dR=uI({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),pR=uI({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]}),hR=l.forwardRef((({className:e,label:t,labelPosition:n="top",statusLabel:r,style:o,"data-block-id":i,"data-block-class":a,...c},u)=>{let d=l.useRef(null),p=(0,f.Hn)(c),{inputProps:g,isPressed:v}=(0,h.Kc)({...c,children:t},p,d),{isFocusVisible:y,focusProps:b}=(0,h.og)(),{hoverProps:w,isHovered:x}=(0,h.Mk)({isDisabled:c.isDisabled}),S=(0,s.nP)({"data-block-id":i,"data-block-class":a,"data-focused":y,"data-disabled":c.isDisabled,"data-focus-visible":y,"data-selected":p.isSelected,"data-readonly":c.isReadOnly,"data-hovered":x,"data-pressed":v}),_=(0,m.jsx)("div",{className:(0,s.xW)(cR({isSelected:p.isSelected,isDisabled:!!c.isDisabled,isFocused:y,isReadOnly:!!c.isReadOnly}),"BaselineUI-Switch-Track"),children:(0,m.jsx)("div",{className:(0,s.xW)(uR({isSelected:p.isSelected,isDisabled:c.isDisabled,isReadOnly:c.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})});return(0,m.jsxs)("label",{...(0,h.v6)(S,w),className:(0,s.xW)(dR({labelPosition:n}),"BaselineUI-Switch",e),style:o,ref:u,children:[t?(0,m.jsx)("span",{className:(0,s.xW)("bpklwad","BaselineUI-Switch-Label"),children:t}):null,(0,m.jsx)(h.s6,{children:(0,m.jsx)("input",{...(0,h.v6)(g,b),ref:d})}),r?(0,m.jsxs)("div",{className:pR({labelPosition:n}),children:[(0,m.jsx)("span",{className:(0,s.xW)("BaselineUI-Switch-Status-Label","bpklwa6"),children:p.isSelected?r.on:r.off}),_]}):_]})}));hR.displayName="Switch";var fR=uI({defaultClassName:"_19n40yy0",variantClassNames:{size:{lg:"_19n40yy1",md:"_19n40yy2",sm:"_19n40yy3"},variant:{primary:"_19n40yy4",ghost:"_19n40yy5"},isFocused:{true:"_19n40yy6"},hasText:{true:"_19n40yy7"},isDisabled:{true:"_19n40yy8"}},defaultVariants:{},compoundVariants:[]}),mR={sm:k.WI,md:g.WIv,lg:g.WIv},gR=l.forwardRef((({className:e,size:t="md",variant:n="primary","data-block-id":r,"data-block-class":o,style:i,...a},c)=>{let u=l.useRef(null),d=(0,f.Vk)(a),{inputProps:p,clearButtonProps:g}=(0,h.Ql)({...a,"aria-haspopup":!1,"aria-autocomplete":"none",type:"search"},d,u),{focusProps:v,isFocusVisible:y,isFocused:b}=(0,h.og)({within:!0,isTextInput:!0}),x=mR[t],S="sm"===t?P.uv:w.uv,_=(0,s.nP)({"data-block-id":r,"data-block-class":o,"data-focused":b,"data-disabled":a.isDisabled,"data-focus-visible":y});return(0,m.jsxs)("div",{..._,className:(0,s.xW)(fR({size:t,isFocused:b,variant:n,hasText:!!d.value,isDisabled:a.isDisabled}),"BaselineUI-SearchInput",e),style:i,ref:c,children:[(0,m.jsx)(x,{size:"sm"===t?20:24}),(0,m.jsx)("input",{...(0,h.v6)(p,v),className:"_19n40yy9",ref:u}),""!==d.value&&(0,m.jsx)(eN,{icon:S,...g,size:"sm"===t?"xs":"sm",variant:"secondary"})]})}));gR.displayName="SearchInput";var vR=({section:e,showSelectedIcon:t,state:n})=>{let{itemProps:r,groupProps:o,headingProps:i}=(0,h.y7)({heading:e.value?.title,"aria-label":e["aria-label"]});return(0,m.jsxs)(m.Fragment,{children:[e.key!==n.collection.getFirstKey()&&(0,m.jsx)(mI,{elementType:"li"}),(0,m.jsxs)("li",{...r,children:[e.value?.title?(0,m.jsx)(h.s6,{children:(0,m.jsx)("span",{...i,children:e.value.title})}):null,(0,m.jsx)("ul",{...o,className:"xyd2ss0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b",children:[...e.childNodes].map((e=>((0,s.V1)("item"===e.type),(0,m.jsx)(yR,{item:e,state:n,showSelectedIcon:t},e.key))))})]})]})};vR.displayName="MenuSection";var yR=({item:e,state:t,className:n,showSelectedIcon:r})=>{let o=l.useRef(null),i=(0,h.Os)({key:e.key},t,o),{isFocusVisible:a,focusProps:s}=(0,h.og)();return(0,m.jsx)(yI,{item:e,liProps:(0,h.v6)(i.menuItemProps,s,{className:n}),...i,isFocusVisible:a,ref:o,description:e.value?.keyboardShortcut,descriptionProps:i.keyboardShortcutProps,_state:t,showSelectedIcon:r})};yR.displayName="MenuItem";var bR=l.forwardRef((({className:e,itemClassName:t,onContentKeyDown:n,...r},o)=>{let i=(0,f.pk)(r),a=l.useRef(null),{menuProps:c}=(0,h.b)(r,i,a),{keyboardProps:u}=(0,h.de)({onKeyDown:n});return(0,m.jsx)("ul",{...(0,h.v6)(c,u),className:(0,s.xW)("xyd2ss1 _1yep5z613 _1yep5z614 _1yep5z615 _1yep5z63f _1yep5z63g _1yep5z63h _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z65r _1yep5z65s _1yep5z65t _1yep5z683 _1yep5z684 _1yep5z685 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z66x _1yep5z66y _1yep5z66z _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6ls _1yep5z6lr _1yep5z6i0 _1yep5z6lv _1yep5z6g1",e),ref:UT(a,o),children:[...i.collection].map((e=>"section"===e.type?(0,m.jsx)(vR,{section:e,state:i,showSelectedIcon:"multiple"===r.selectionMode||"single"===r.selectionMode},e.key):(0,m.jsx)(yR,{item:e,state:i,className:t,showSelectedIcon:"multiple"===r.selectionMode||"single"===r.selectionMode},e.key)))})}));bR.displayName="MenuContent";var wR=uI({defaultClassName:"_1mdhlqv8",variantClassNames:{isOpen:{true:"_1mdhlqv9"}},defaultVariants:{},compoundVariants:[]}),xR="_1mdhlqvb cjv3et0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g1 _1yep5z6lz _1yep5z6m1 _1yep5z6137 cjv3et4",SR=uI({defaultClassName:"_1mdhlqv0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6eu _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6dy",variantClassNames:{isFocused:{false:"_1mdhlqv1"},isOpen:{true:"_1mdhlqv2"},isDisabled:{true:"z9nup83 _1yep5z6ey"},isHovered:{true:"_1mdhlqv4"},variant:{primary:"_1mdhlqv5",ghost:"_1mdhlqv6"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:!0},"_1mdhlqv7"]]}),_R=l.forwardRef((({defaultOpen:e,onOpenChange:t,isOpen:n,isDisabled:r,contentClassName:o,placement:i="bottom start",isNonModal:a,shouldFlip:c,shouldUpdatePosition:u,boundaryElement:d,crossOffset:p,offset:g,triggerLabel:v,renderTrigger:y=({buttonProps:e,ref:t})=>(0,m.jsx)(YI,{...e,variant:"popover",ref:t}),portalContainer:b,...w},x)=>{let S=l.useRef(null),_=LM(b),C=(0,f.Iq)({defaultOpen:e,isOpen:n,onOpenChange:t}),{menuTriggerProps:E,menuProps:k}=(0,h.Vi)({isDisabled:r,type:"menu"},C,S),z=nI(),P=(0,l.useMemo)((()=>(0,h.v6)(E,{isDisabled:r,isSelected:C.isOpen,className:"BaselineUI-Menu-Trigger",label:"function"==typeof v?v(C.isOpen):v})),[E,r,C.isOpen,v]);return(0,l.useEffect)((()=>{!v&&!y&&console.warn("The `triggerLabel` prop is required when no `renderTrigger` or `children` is provided.")}),[y,v]),(0,m.jsxs)(m.Fragment,{children:[y({buttonProps:P,ref:S}),(0,m.jsx)(aR,{triggerRef:S,state:C,placement:i,isNonModal:a,shouldFlip:c,shouldUpdatePosition:u,boundaryElement:d,crossOffset:p,offset:g||2,className:"BaselineUI-Menu-Popover",portalContainer:_,children:(0,m.jsx)(bR,{className:(0,s.xW)(xR,o),...k,...w,ref:x,autoFocus:C.focusStrategy||"first",children:z})})]})}));_R.displayName="Menu";var CR=uI({defaultClassName:"_13f0naj0",variantClassNames:{variant:{default:"_13f0naj1",inline:"_13f0naj2"},isHovered:{true:"_13f0naj3"},isFocusVisible:{true:"_13f0naj4"},isDisabled:{true:"_13f0naj5"},size:{sm:"_13f0naj6",md:"_13f0naj7",lg:"_13f0naj8"},type:{body:"_13f0naj9",label:"_13f0naja"},isActive:{true:"_13f0najb"}},defaultVariants:{},compoundVariants:[[{isActive:!0,isDisabled:!1},"_13f0najc"],[{type:"body",size:"sm"},"_13f0najd"],[{type:"body",size:"md"},"_13f0naje"],[{type:"body",size:"lg"},"_13f0najf"],[{type:"label",size:"sm"},"_13f0najg"],[{type:"label",size:"md"},"_13f0najh"],[{type:"label",size:"lg"},"_13f0naji"]]}),ER=l.forwardRef((({className:e,style:t,children:n,variant:r="default",size:o="md",elementType:i="a",type:a="body","data-block-id":c,"data-block-class":u,title:d,role:p,...f},g)=>{let v=l.useRef(null),{linkProps:y,isPressed:b}=(0,h.iE)({...f,elementType:f.onPress?"span":i},v),{isFocusVisible:w,isFocused:x,focusProps:S}=(0,h.og)(),{hoverProps:_,isHovered:C}=(0,h.Mk)({isDisabled:f.isDisabled}),E=i,k=(0,s.nP)({"data-block-id":c,"data-block-class":u,"data-disabled":f.isDisabled,"data-focused":x,"data-pressed":b,"data-focus-visible":w,"data-hovered":C,role:p,title:d});return(0,m.jsx)(E,{...(0,h.v6)(y,S,_,k),className:(0,s.xW)(CR({variant:r,isFocusVisible:w,isHovered:C,isDisabled:f.isDisabled,size:o,isActive:b,type:a}),"BaselineUI-Link",e),ref:UT(v,g),style:t,children:n})}));async function kR({items:e}){let t=e.filter((e=>"file"===e.kind)).map((async e=>((0,s.V1)("file"===e.kind),e.getFile())));return await Promise.all(t)}ER.displayName="Link";var zR=uI({defaultClassName:"_180w5ed0",variantClassNames:{variant:{default:"_180w5ed1",inline:"_180w5ed2"},hoveredOrFocusedOrActive:{true:"_180w5ed3"},disabled:{true:"_180w5ed4"}},defaultVariants:{},compoundVariants:[[{variant:"inline",hoveredOrFocusedOrActive:!0},"_180w5ed5"],[{variant:"default",hoveredOrFocusedOrActive:!0},"_180w5ed6"],[{variant:"default",disabled:!0},"_180w5ed7"],[{variant:"inline",disabled:!0},"_180w5ed8"]]}),PR=uI({defaultClassName:"_180w5ede",variantClassNames:{disabled:{true:"_180w5edf"}},defaultVariants:{},compoundVariants:[]}),AR=uI({defaultClassName:"_180w5ed9",variantClassNames:{disabled:{true:"_180w5eda"}},defaultVariants:{},compoundVariants:[]}),DR=uI({defaultClassName:"_180w5edb",variantClassNames:{disabled:{true:"_180w5edc"},hovered:{true:"_180w5edd"}},defaultVariants:{},compoundVariants:[]}),TR=l.forwardRef((({className:e,label:t,description:n,icon:r,variant:o="default",...i},a)=>{let c=l.useRef(null),{inputProps:u,descriptionProps:d,labelProps:p}=function({isDisabled:e,onValueChange:t,onChange:n,name:r,"aria-describedby":o,"aria-label":i,accept:a,multiple:s}){let l=(0,h.Bi)(),c=(0,h.Bi)(),u=(0,h.Bi)();return{inputProps:{type:"file",id:c,disabled:!!e,"aria-labelledby":i?void 0:l,"aria-describedby":o||u,"aria-label":i,onChange:e=>{let r=[...e.target.files||[]];t?.(r),n?.(e)},name:r,accept:a,multiple:s},labelProps:{htmlFor:c,id:l},descriptionProps:{id:u}}}(i),{dropProps:f}=(0,h.Hd)({ref:c,onDrop:async({items:e})=>{let t=e.filter((e=>"file"===e.kind)).map((async e=>((0,s.V1)("file"===e.kind),e.getFile()))),n=await Promise.all(t);i.onValueChange?.(n)}}),{focusProps:g,isFocusVisible:v}=(0,h.og)(),{hoverProps:y,isHovered:b}=(0,h.Mk)({isDisabled:i.isDisabled});return(0,m.jsxs)("label",{...(0,h.v6)(f,y,p),className:(0,s.xW)(zR({variant:o,disabled:i.isDisabled,hoveredOrFocusedOrActive:b||v}),e),ref:UT(a,c),children:[(0,m.jsx)(h.s6,{children:(0,m.jsx)("input",{...(0,h.v6)(g,u)})}),r?(0,m.jsx)(r,{size:20,className:AR({disabled:i.isDisabled})}):null,(0,m.jsxs)("div",{children:[(0,m.jsx)("div",{className:DR({disabled:i.isDisabled,hovered:b}),children:t}),n?(0,m.jsx)("div",{...d,className:PR({disabled:i.isDisabled}),children:n}):null]})]})}));TR.displayName="FileUpload";var IR=uI({defaultClassName:"_12vfhl48",variantClassNames:{variant:{success:"_12vfhl49",error:"_12vfhl4a",active:"_12vfhl4b"}},defaultVariants:{},compoundVariants:[]}),MR=uI({defaultClassName:"_12vfhl43 _12vfhl42",variantClassNames:{hasLabel:{false:"_12vfhl44"}},defaultVariants:{},compoundVariants:[]}),NR=l.forwardRef((({className:e,style:t,variant:n="active",showValue:r,description:o,errorMessage:i,"data-block-id":a,"data-block-class":l,...c},u)=>{let d=(0,h.Bi)(),{labelProps:p,progressBarProps:f}=(0,h.EB)({...c,"aria-describedby":o?d:c["aria-describedby"]}),{minValue:g=0,maxValue:v=100,value:y=0,label:b}=c,w=(y-g)/(v-g),x=`${Math.round(100*w)}%`,S=(0,m.jsx)("output",{className:MR({hasLabel:!!b}),children:f["aria-valuetext"]}),_="error"===n?i:o;return(0,m.jsxs)("div",{...f,style:t,className:(0,s.xW)("_12vfhl40 z9nup81","BaselineUI-ProgressBar",e),"data-block-id":a,"data-block-class":l,ref:u,children:[b?(0,m.jsxs)("div",{className:"_12vfhl41 z9nup82",children:[(0,m.jsx)("label",{...p,className:"_12vfhl42",children:b}),r?S:null]}):null,(0,m.jsxs)("div",{className:"_12vfhl45",children:[(0,m.jsxs)("div",{className:"_12vfhl46 z9nup82",children:[(0,m.jsx)("div",{className:"_12vfhl47",children:(0,m.jsx)("div",{style:{width:x},className:IR({variant:n})})}),!b&&r?S:null]}),_?(0,m.jsx)("div",{className:tM({hasError:"error"===n}),id:d,children:_}):null]})]})}));function OR({isReadOnly:e,validationState:t}){return e?w.Eo:"error"===t?w.U9:"warning"===t?w.AK:null}NR.displayName="ProgressBar";var RR=l.forwardRef((({className:e,validationState:t,variant:n="primary",style:r,labelPosition:o="top",inputStyle:i,inputClassName:a,"data-block-id":c,"data-block-class":u,...d},p)=>{let f=l.useRef(null),{inputProps:g,labelProps:v,descriptionProps:y,errorMessageProps:b,validationErrors:w}=(0,h.vZ)({...d,validationState:t?"error"===t?"invalid":"valid":void 0},f),x=d.errorMessage||w.join(" "),S=lM({...d,errorMessage:x,descriptionProps:y,errorMessageProps:b,labelPosition:o});x&&(t="error");let{hoverProps:_,isHovered:C}=(0,h.Mk)({isDisabled:d.isDisabled}),{isFocused:E,focusProps:k,isFocusVisible:z}=(0,h.og)(),P=OR({isReadOnly:d.isReadOnly,validationState:t??"valid"}),A=(0,s.nP)({"data-readonly":d.isReadOnly,"data-disabled":d.isDisabled,"data-validation-state":t,"data-focused":E,"data-focus-visible":z});return(0,m.jsxs)("div",{className:(0,s.xW)(aM({labelPosition:o}),"BaselineUI-TextInput",e),"data-block-id":c,"data-block-class":u,style:r,ref:p,children:[d.label||"start"===o&&S?(0,m.jsxs)("div",{className:iM({labelPosition:o,hasMessage:!!S}),children:[(0,m.jsx)("label",{...v,className:oM,children:d.label}),"start"===o&&S]}):null,(0,m.jsxs)("div",{className:(0,s.xW)({[KM]:d.isDisabled}),children:[(0,m.jsxs)("div",{..._,className:sM({validationState:t??"valid",isHovered:C,isFocused:E,variant:n,isReadOnly:!!d.isReadOnly,isDisabled:!!d.isDisabled}),children:[(0,m.jsx)("input",{...(0,h.v6)(g,k,A),className:(0,s.xW)(nM({isDisabled:d.isDisabled,labelPosition:o}),"BaselineUI-TextInput-Input",a),style:i,ref:f}),P?(0,m.jsx)(P,{className:rM({validationState:t??"valid",isReadOnly:d.isReadOnly}),size:16}):null]}),"top"===o&&S]})]})}));RR.displayName="TextInput";var jR=({value:e,...t})=>{let n=(0,h.JY)(t);return(0,m.jsx)(m.Fragment,{children:n.format(e)})};jR.displayName="NumberFormat";var FR=uI({defaultClassName:"_9b1tml0",variantClassNames:{isSelected:{true:"_9b1tml1",false:"_9b1tml2"},isDisabled:{true:"z9nup83"},isHovered:{true:"_9b1tml4"},isFocusVisible:{true:"_9b1tml5"},isReadOnly:{true:"_9b1tml6"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0,isReadOnly:!1},"_9b1tml7"],[{isSelected:!0,isHovered:!0,isDisabled:!1,isReadOnly:!1},"_9b1tml8"],[{isSelected:!1,isHovered:!0,isDisabled:!1,isReadOnly:!1},"_9b1tml9"],[{isSelected:!0,isDisabled:!0},"_9b1tmla"],[{isSelected:!0,isReadOnly:!0},"_9b1tmlb"]]}),BR=uI({defaultClassName:"_9b1tmlf _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6eu _1yep5z6la _1yep5z6e9",variantClassNames:{isSelected:{true:"_9b1tmlg"},size:{sm:"_9b1tmlh",md:"_9b1tmli"},isDisabled:{true:"_9b1tmlj"},isReadOnly:{true:"_1yep5z610x"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"_1yep5z61n6"],[{isSelected:!0,isDisabled:!0},"_1yep5z61n6"],[{isSelected:!1,isDisabled:!0},"_1yep5z61n4"]]}),LR=uI({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]}),VR=l.forwardRef((({className:e,count:t,style:n,size:r="md",icon:o,"data-block-id":i,"data-block-class":a,...c},u)=>{let d={isRequired:!1},p=o||("md"===r?k.Nr:w.Nr);!c["aria-label"]&&!c["aria-labelledby"]&&console.warn("You must provide either an `aria-label` or `aria-labelledby` prop to the `Reaction` component.");let g=l.useRef(null),v=(0,f.Hn)({...c,...d}),{inputProps:y,isPressed:b,isDisabled:x,isReadOnly:S,isSelected:_}=(0,h.Kc)({...c,...d},v,g),{focusProps:C,isFocused:E,isFocusVisible:z}=(0,h.og)(),{hoverProps:P,isHovered:A}=(0,h.Mk)({}),D=(0,s.nP)({"data-block-id":i,"data-block-class":a,"data-focused":E,"data-focus-visible":z,"data-disabled":x,"data-hovered":A,"data-pressed":b,"data-selected":_});return(0,m.jsxs)("label",{ref:u,style:n,className:(0,s.xW)("_1yep5z6iv _1yep5z6iw _1yep5z6ix","BaselineUI-Reaction",e),...D,children:[(0,m.jsx)(h.s6,{children:(0,m.jsx)("input",{...y,...C,ref:g})}),(0,m.jsxs)("div",{...P,className:FR({isSelected:_,isFocusVisible:z,isHovered:A,isReadOnly:S,isDisabled:x}),children:[(0,m.jsx)("div",{className:LR({isDisabled:x,isReadOnly:S}),children:(0,m.jsx)(p,{size:"md"===r?20:16})}),(0,m.jsx)("div",{className:BR({isSelected:v.isSelected,isDisabled:x,isReadOnly:S,size:r}),children:(0,m.jsx)(jR,{value:t})})]})]})}));VR.displayName="Reaction";var KR="var(--_1azy5680)",HR={sm:16,md:20},$R={sm:[w.x7,w.bL],md:[k._9,k.bL]},UR=l.forwardRef((({className:e,style:t,size:n="md",variant:r="active","data-block-id":o,"data-block-class":i,...a},l)=>{let{labelProps:c,progressBarProps:u}=(0,h.EB)({...a,isIndeterminate:!0}),d=HR[n],p=d/2-2,f=2*p*Math.PI,g=$R[n]["success"===r?0:1];return(0,m.jsxs)("div",{className:(0,s.xW)("_1azy5681 z9nup82","BaselineUI-ProgressSpinner",e),ref:l,style:{...(0,_.D)({[KR]:`${f}px`}),...t},"data-block-id":o,"data-block-class":i,children:[(0,m.jsxs)("div",{...u,className:"_1azy5682",children:[("active"===r||"inactive"===r)&&(0,m.jsxs)("svg",{height:d,width:d,viewBox:`0 0 ${d} ${d}`,children:[(0,m.jsx)("circle",{role:"presentation",className:"_1azy5686",cx:d/2,cy:d/2,r:p}),"active"===r&&(0,m.jsx)("circle",{role:"presentation",className:"_1azy5685",cx:d/2,cy:d/2,r:p})]}),"success"===r&&(0,m.jsx)(g,{className:"_1azy5687",size:d}),"error"===r&&(0,m.jsx)(g,{className:"_1azy5688",size:d})]}),a.label?(0,m.jsx)("span",{...c,className:"_1azy5689",children:a.label}):null]})}));UR.displayName="ProgressSpinner";var WR=uI({defaultClassName:"_5uw3kp0 oom8bs0 z9nup82",variantClassNames:{isHovered:{true:"_5uw3kp1"},isFocusVisible:{true:"_5uw3kp2"},isDisabled:{true:"_5uw3kp3"},isSelected:{true:"_5uw3kp4"},size:{sm:"_5uw3kp5",md:"_5uw3kp6",lg:"_5uw3kp7"},variant:{primary:"_5uw3kp8",toolbar:"_5uw3kp9"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0},"_5uw3kpa"],[{isSelected:!0,isDisabled:!0},"_5uw3kpb"],[{variant:"primary",size:"lg"},"_5uw3kpc"]]}),qR=uI({defaultClassName:"_5uw3kpd _1yep5z6f5",variantClassNames:{isDisabled:{true:"_1yep5z611a"},isSelected:{true:"_1yep5z611c"}},defaultVariants:{},compoundVariants:[]}),GR={sm:16,md:20,lg:24},ZR=l.forwardRef((({className:e,style:t,iconStart:n,size:r="md",elementType:o="button",variant:i="toolbar",...a},l)=>{let c=(0,f.Hn)(a),{buttonProps:u,isPressed:d,ref:p,isFocusVisible:g,isFocused:v,isHovered:y,uiStateOptions:b}=WI(a,c),w=(0,s.nP)({"data-block-id":a["data-block-id"],"data-block-class":a["data-block-class"],"data-focused":v,"data-focus-visible":g,"data-disabled":a.isDisabled,"data-hovered":y,"data-pressed":d,"data-selected":c.isSelected});return(0,m.jsxs)(o,{...(0,h.v6)(u,w),className:(0,s.xW)(WR({isHovered:y,isFocusVisible:g,isSelected:c.isSelected,size:r,isDisabled:a.isDisabled,variant:i}),"BaselineUI-ToggleButton","function"==typeof e?e(b):e),style:"function"==typeof t?t(b):t,ref:UT(p,l),children:[n?(0,m.jsx)(n,{size:GR[r],className:qR({isDisabled:a.isDisabled,isSelected:c.isSelected})}):null,a.label]})}));ZR.displayName="ToggleButton";var YR=uI({defaultClassName:"_16vugd0f",variantClassNames:{isDisabled:{true:"_16vugd0g"}},defaultVariants:{},compoundVariants:[]}),XR=uI({defaultClassName:"_16vugd02 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{labelPosition:{end:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z6vl _1yep5z6vm _1yep5z6vn",start:"_1yep5z615a _1yep5z615b _1yep5z615c _1yep5z616m _1yep5z616n _1yep5z616o"}},defaultVariants:{},compoundVariants:[]}),JR=uI({defaultClassName:"_16vugd06",variantClassNames:{isIndeterminate:{true:"_16vugd05"},isSelected:{true:"_16vugd05"},isFocusVisible:{true:"_16vugd09"},isHovered:{true:"_16vugd0a"},isDisabled:{true:"_16vugd0b"},isReadOnly:{true:"_16vugd0c"},hasError:{true:"_16vugd0d"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_16vugd0e"]]}),QR=l.forwardRef((({className:e,style:t,label:n,labelPosition:r="end","data-block-id":o,"data-block-class":i,...a},c)=>{let u=l.useRef(null),d=(0,f.Hn)(a),{isFocusVisible:p,isFocused:g,focusProps:v}=(0,h.og)(),{inputProps:y,isPressed:b,isDisabled:w,isSelected:x,isReadOnly:S}=(0,h.vp)({...a,children:n},d,u),{hoverProps:_,isHovered:C}=(0,h.Mk)({isDisabled:w}),E=(0,s.nP)({"data-disabled":w,"data-readonly":S,"data-hovered":C,"data-selected":x,"data-pressed":b,"data-indeterminate":a.isIndeterminate,"data-invalid":a.isInvalid,"data-focus-visible":p,"data-focused":g,"data-block-id":o,"data-block-class":i});return(0,m.jsxs)("label",{...E,className:(0,s.xW)(XR({labelPosition:r}),"BaselineUI-Checkbox",e),style:t,ref:c,children:[(0,m.jsx)(h.s6,{children:(0,m.jsx)("input",{...(0,h.v6)(y,v),ref:u})}),(0,m.jsxs)("div",{..._,className:JR({isSelected:x&&!a.isIndeterminate,isIndeterminate:a.isIndeterminate,isFocusVisible:p,isDisabled:w,isReadOnly:S,hasError:a.isInvalid,isHovered:C}),children:[x&&!a.isIndeterminate?(0,m.jsx)(P.Nr,{size:12}):null,a.isIndeterminate?(0,m.jsx)(P.QG,{size:12}):null]}),n?(0,m.jsx)("span",{className:YR({isDisabled:w}),children:n}):null]})}));QR.displayName="Checkbox";var ej={ar:{goToPage:"انتقال إلى صفحة",nextPage:"الصفحة التالية",pageXofY:"صفحة {arg0} من {arg1}",prevPage:"الصفحة السابقة"},cs:{goToPage:"Přejít na stranu",nextPage:"Další stránka",pageXofY:"Strana {arg0} z {arg1}",prevPage:"Předchozí strana"},cy:{goToPage:"Mynd i Dudalen",nextPage:"Tudalen Nesaf",pageXofY:"Tudalen {arg0} o {arg1}",prevPage:"Tudalen Blaenorol"},da:{goToPage:"Gå til side",nextPage:"Næste side",pageXofY:"Side {arg0} af {arg1}",prevPage:"Forrige side"},de:{goToPage:"Zu Seite wechseln",nextPage:"Nächste Seite",pageXofY:"Seite {arg0} von {arg1}",prevPage:"Vorherige Seite"},el:{goToPage:"Μετάβαση στη σελίδα",nextPage:"Επόμενη σελίδα",pageXofY:"Σελίδα {arg0} από {arg1}",prevPage:"Προηγούμενη σελίδα"},"en-GB":{goToPage:"Go to Page",nextPage:"Next Page",pageXofY:"Page {arg0} of {arg1}",prevPage:"Previous Page"},en:{goToPage:"Go to Page",nextPage:"Next Page",pageXofY:"Page {arg0} of {arg1}",prevPage:"Previous Page"},es:{goToPage:"Ir a la página",nextPage:"Página siguiente",pageXofY:"Página {arg0} de {arg1}",prevPage:"Página anterior"},fi:{goToPage:"Mene sivulle",nextPage:"Seuraava sivu",pageXofY:"Sivu {arg0} / {arg1}",prevPage:"Edellinen sivu"},"fr-CA":{goToPage:"Aller à la page",nextPage:"Page suivante",pageXofY:"Page {arg0} sur {arg1}",prevPage:"Page précédente"},fr:{goToPage:"Aller à la page",nextPage:"Page suivante",pageXofY:"Page {arg0} sur {arg1}",prevPage:"Page précédente"},he:{goToPage:"מעבר לעמוד",nextPage:"העמוד הבא",pageXofY:"עמוד {arg0} מתוך {arg1}",prevPage:"העמוד הקודם"},hr:{goToPage:"Idi na stranicu",nextPage:"Slijedeća stranica",pageXofY:"Stranica {arg0} od {arg1}",prevPage:"Prethodna stranica"},id:{goToPage:"Buka halaman",nextPage:"Halaman Berikutnya",pageXofY:"Halaman {arg0} dari {arg1}",prevPage:"Halaman Sebelumnya"},it:{goToPage:"Vai a pagina",nextPage:"Pagina successiva",pageXofY:"Pagina {arg0} di {arg1}",prevPage:"Pagina precedente"},ja:{goToPage:"ページに移動",nextPage:"次のページ",pageXofY:"ページ {arg0}/{arg1}",prevPage:"前のページ"},ko:{goToPage:"페이지로 이동",nextPage:"다음 페이지",pageXofY:"{arg0}/{arg1} 페이지",prevPage:"이전 페이지"},ms:{goToPage:"Pergi ke Halaman",nextPage:"Halaman Seterusnya",pageXofY:"Halaman {arg0} daripada {arg1}",prevPage:"Halaman Sebelumnya"},"nb-NO":{goToPage:"Gå til side",nextPage:"Neste side",pageXofY:"Side {arg0} av {arg1}",prevPage:"Forrige side"},nl:{goToPage:"Ga naar pagina",nextPage:"Volgende pagina",pageXofY:"Pagina {arg0} van {arg1}",prevPage:"Vorige pagina"},pl:{goToPage:"Przejdź do strony",nextPage:"Następna strona",pageXofY:"Strona {arg0} z {arg1}",prevPage:"Poprzednia strona"},"pt-PT":{goToPage:"Ir para página",nextPage:"Página seguinte",pageXofY:"Página {arg0} de {arg1}",prevPage:"Página anterior"},pt:{goToPage:"Ir à Página",nextPage:"Página Seguinte",pageXofY:"Página {arg0} de {arg1}",prevPage:"Página Anterior"},ru:{goToPage:"Перейти к странице",nextPage:"Следующая страница",pageXofY:"Страница {arg0} из {arg1}",prevPage:"Предыдущая страница"},sk:{goToPage:"Ísť na stranu",nextPage:"Dalšia strana",pageXofY:"Strana {arg0} z {arg1}",prevPage:"Predchádzajúca strana"},sl:{goToPage:"Pojdi na stran",nextPage:"Naslednja stran",pageXofY:"Stran {arg0} od {arg1}",prevPage:"Prejšnja stran"},sv:{goToPage:"Gå till sida",nextPage:"Nästa sida",pageXofY:"Sida {arg0} av {arg1}",prevPage:"Föregående sida"},th:{goToPage:"ไปที่หน้า",nextPage:"หน้าถัดไป",pageXofY:"หน้า {arg0} จาก {arg1}",prevPage:"หน้าก่อนหน้า"},tr:{goToPage:"Sayfaya Git",nextPage:"Sonraki Sayfa",pageXofY:"Sayfa {arg0}/{arg1}",prevPage:"Önceki Sayfa"},uk:{goToPage:"Перейти на сторінку",nextPage:"Наступна сторінка",pageXofY:"Сторінка {arg0} з {arg1}",prevPage:"Попередня сторінка"},"zh-Hans":{goToPage:"前往页面",nextPage:"下一页",pageXofY:"第 {arg0}/{arg1} 页",prevPage:"上一页"},"zh-Hant":{goToPage:"到此頁",nextPage:"下一頁",pageXofY:"第{arg0}頁，共{arg1}頁",prevPage:"上一頁"}},tj=uI({defaultClassName:"_1nsi9h17",variantClassNames:{isFocused:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"},size:{xs:"_1nsi9h1b",sm:"_1nsi9h1c",md:"_1nsi9h1d",lg:"_1nsi9h1e"}},defaultVariants:{},compoundVariants:[]}),nj=uI({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6g1 _1yep5z6e1",variantClassNames:{size:{xs:"_1nsi9h11 _1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z6zy",sm:"_1nsi9h12 _1yep5z6101",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1yep5z6za _1yep5z6184 _1yep5z6182 _1yep5z6136",pinned:"_1yep5z617q"}},defaultVariants:{},compoundVariants:[]}),rj=uI({defaultClassName:"_1nsi9h1g _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),oj={style:"decimal"},ij={xs:[P.eC,P.JJ],sm:[w.eC,w.JJ],md:[k.eC,k.JJ],lg:[g.eCO,g.JJd]},aj=l.forwardRef((({className:e,style:t,minValue:n=1,defaultValue:r=1,incrementAriaLabel:o,decrementAriaLabel:i,"aria-label":a,size:c="md",variant:u="floating",hideActions:d,isDisabled:p,...g},v)=>{let{locale:y}=(0,h.Ym)(),b=DM(ej),w={...g,formatOptions:oj,minValue:n,incrementAriaLabel:o||b.formatMessage("nextPage"),decrementAriaLabel:i||b.formatMessage("prevPage"),defaultValue:r,"aria-label":a||b.formatMessage("goToPage")},x=l.useRef(null),S=(0,f.sb)({...w,locale:y}),{inputProps:_,decrementButtonProps:C,incrementButtonProps:E,groupProps:k}=(0,h.v)({...w,onKeyDown:e=>{"Enter"===e.key&&x.current?.blur(),g.onKeyDown?.(e)},isDisabled:p},S,x),{hoverProps:z,isHovered:P}=(0,h.Mk)({}),{focusProps:D,isFocused:T,isFocusVisible:I}=(0,h.og)(),M="floating"===u,[N,O]=ij[c],R=(0,s.nP)({"data-focus-visible":I,"data-focused":T,"data-hovered":P,"data-block-id":g["data-block-id"],"data-block-class":g["data-block-class"]}),j="keyboard"===(0,A.lb)();return(0,m.jsxs)("div",{...(0,h.v6)(k,z,R),className:(0,s.xW)(nj({size:c,variant:u}),"BaselineUI-Pagination",e),style:t,ref:v,children:[d?null:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(eN,{icon:N,...C,elementType:"div",size:c,style:{height:"100%",...M&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton",UNSAFE_NON_INTERACTIVE:j,isDisabled:p||C.isDisabled}),"floating"===u&&(0,m.jsx)(mI,{orientation:"vertical"})]}),(0,m.jsxs)("div",{className:tj({isFocused:T,variant:u,size:c}),"aria-label":b.formatMessage("pageXofY",{arg0:_.value,arg1:S.maxValue}),children:[(0,m.jsx)("input",{...(0,h.v6)(_,D),ref:x,className:(0,s.xW)("BaselineUI-Pagination-Input","_1nsi9h1f _1yep5z6ly _1yep5z6lq _1yep5z6eu"),style:{width:`${_.value?.toString().length||1}ch`}}),(0,m.jsxs)("span",{className:rj({isDisabled:p}),children:["/ ",(0,m.jsx)(jR,{value:S.maxValue})]})]}),d?null:(0,m.jsxs)(m.Fragment,{children:["floating"===u&&(0,m.jsx)(mI,{orientation:"vertical"}),(0,m.jsx)(eN,{icon:O,...E,elementType:"div",size:c,style:{height:"100%",...M&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton",UNSAFE_NON_INTERACTIVE:j,isDisabled:p||E.isDisabled})]})]})}));aj.displayName="Pagination";var sj=({date:e,...t})=>{let n=(0,h.iF)(t);return(0,m.jsx)(m.Fragment,{children:n.format(e)})};sj.displayName="DateFormat";var lj=uI({defaultClassName:"_1f789qjm",variantClassNames:{variant:{neutral:"_1yep5z6118",red:"_1yep5z610i",green:"_1yep5z610m",blue:"_1yep5z610u","high-contrast":"_1yep5z611b"},isDisabled:{true:"_1yep5z61nd"},isSelected:{true:"_1yep5z611c"}},defaultVariants:{},compoundVariants:[]}),cj=uI({defaultClassName:"_1f789qj0 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ax _1yep5z6ay _1yep5z6az _1yep5z6bl _1yep5z6bm _1yep5z6bn _1yep5z6c9 _1yep5z6ca _1yep5z6cb _1yep5z6cx _1yep5z6cy _1yep5z6cz _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6la _1yep5z6lq _1yep5z6ld",variantClassNames:{isFocusVisible:{true:"_1f789qj1"},variant:{neutral:"_1yep5z6128",red:"_1yep5z611n",green:"_1yep5z611r",blue:"_1yep5z611z","high-contrast":"_1yep5z612c"},isDisabled:{true:"_1f789qj7 _1yep5z6127"},allowsRemoving:{true:"_1f789qj8"},isSelected:{true:"_1yep5z612i"},allowsSelection:{true:"_1f789qja"},isHovered:{true:"_1f789qjb"},size:{md:"_1f789qjc",sm:"_1f789qjd"}},defaultVariants:{},compoundVariants:[[{allowsSelection:!0,isHovered:!0,variant:"neutral"},"_1yep5z61oa"],[{allowsSelection:!0,isHovered:!0,variant:"red"},"_1yep5z61np"],[{allowsSelection:!0,isHovered:!0,variant:"blue"},"_1yep5z61o1"],[{allowsSelection:!0,isHovered:!0,variant:"green"},"_1yep5z61nt"],[{allowsSelection:!0,isHovered:!0,variant:"high-contrast"},"_1yep5z61oe"],[{allowsSelection:!0,isSelected:!0,isHovered:!0},"_1yep5z61om"],[{variant:"high-contrast",isDisabled:!0},"_1yep5z61oa"],[{allowsRemoving:!0,size:"md"},"_1yep5z619c _1yep5z619d _1yep5z619e"],[{allowsRemoving:!0,size:"sm"},"_1yep5z61af _1yep5z61ag _1yep5z61ah"]]}),uj=uI({defaultClassName:"_1f789qju",variantClassNames:{variant:{neutral:"_1f789qjv",red:"_1f789qjw",green:"_1f789qjx",blue:"_1f789qjy","high-contrast":"_1f789qjz"},isHovered:{true:"_1f789qj10"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,variant:"neutral"},"_1f789qj11"],[{isHovered:!0,variant:"red"},"_1f789qj12"],[{isHovered:!0,variant:"blue"},"_1f789qj13"],[{isHovered:!0,variant:"green"},"_1f789qj14"],[{isHovered:!0,variant:"high-contrast"},"_1f789qj15"]]}),dj=uI({defaultClassName:"_1f789qje",variantClassNames:{variant:{neutral:"_1yep5z610x",red:"_1yep5z610i",green:"_1yep5z610m",blue:"_1yep5z610u","high-contrast":"_1yep5z6112"},isDisabled:{true:"_1yep5z61n4"},isSelected:{true:"_1yep5z6113"}},defaultVariants:{},compoundVariants:[]}),pj=({item:e,state:t,variant:n="neutral",size:r="md"})=>{let o=l.useRef(null),{focusProps:i,isFocusVisible:a}=(0,h.og)({within:!0}),{rowProps:c,gridCellProps:u,removeButtonProps:d,allowsRemoving:p,isDisabled:f,isSelected:g,allowsSelection:v}=(0,h.Ok)({item:e},t,o),y=l.useRef(null),{buttonProps:x}=(0,h.sL)(d,y),{hoverProps:S,isHovered:_}=(0,h.Mk)({isDisabled:f}),{hoverProps:C,isHovered:E}=(0,h.Mk)({isDisabled:f}),k=e.value?.icon,z=e.value?.data?.variant??n,A="md"===r?P.uv:b.uv,D="md"===r?w.Nr:P.Nr;return(0,m.jsx)("div",{...(0,h.v6)(c,i,C),ref:o,className:(0,s.xW)(cj({isFocusVisible:a,variant:z,isDisabled:f,allowsRemoving:p,isSelected:g,allowsSelection:v,isHovered:E,size:r}),dj({variant:z,isDisabled:f,isSelected:g}),"BaselineUI-Tag"),children:(0,m.jsxs)("div",{...u,className:"_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69f _1yep5z69g _1yep5z69h",children:[g?(0,m.jsx)(D,{size:"md"===r?16:12,className:(0,s.xW)(lj({variant:z,isDisabled:f,isSelected:g}),"BaselineUI-Tag-Icon")}):null,!g&&k?(0,m.jsx)(k,{size:"md"===r?16:12,className:(0,s.xW)(lj({variant:z,isDisabled:f,isSelected:g}),"BaselineUI-Tag-Icon")}):null,(0,m.jsx)(vI,{paddingY:"md"===r?"sm":"none",typography:"sm"===r?"label.sm.medium":"label.md.medium",children:e.rendered}),p?(0,m.jsx)("button",{...(0,h.v6)(x,S),className:uj({variant:z,isHovered:_}),children:(0,m.jsx)(A,{size:"md"===r?12:8})}):null]})})},hj=l.forwardRef((({className:e,style:t,"data-block-id":n,"data-block-class":r,items:o,size:i="md",...a},c)=>{let u=(0,l.useMemo)((()=>o.map((e=>({...e,data:{variant:e.variant}})))),[o]),d=nI(),p=l.useRef(null),g=(0,f.pE)({...a,items:u,children:d}),{gridProps:v}=(0,h.Gh)(a,g,p);return(0,m.jsx)("div",{...v,className:(0,s.xW)("_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z69i _1yep5z69j _1yep5z69k","BaselineUI-TagGroup",e),style:t,"data-block-id":n,"data-block-class":r,ref:UT(c,p),children:[...g.collection].map((e=>(0,m.jsx)(pj,{state:g,item:e,variant:a.variant,size:i},e.key)))})}));hj.displayName="TagGroup";var fj=uI({defaultClassName:"_1kvz17db _1yep5z6la _1yep5z6lc",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),mj=uI({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6la _1yep5z6lb",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),gj=uI({defaultClassName:"_1kvz17d2 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6la _1yep5z6ld",variantClassNames:{isFocusVisible:{true:"_1kvz17d3"},isHovered:{true:"_1yep5z6g2",false:"_1yep5z6g3"},isDisabled:{true:"z9nup83"}},defaultVariants:{},compoundVariants:[]}),vj=uI({defaultClassName:"_1kvz17d7 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{isDisabled:{true:"_1yep5z6ey",false:"_1yep5z6eu"}},defaultVariants:{},compoundVariants:[]}),yj=l.forwardRef((({children:e,className:t,style:n},r)=>{let{headers:o}=(0,l.useContext)(bj),{disabledKeys:i}=(0,l.useContext)(bj),{keyboardProps:a}=(0,h.de)({onKeyDown:e=>{let t=BT(e.target),n=t?VT(t):VT(),r=[...o?.keys()||[]].findIndex((e=>o?.get(e)?.current===n)),a=o?.get(r||0),s=o?.size||0,l=e=>{let t=o.get(e-1<0?s-1:e-1);i?.has(t?.current?.getAttribute("data-key")||"")?l(e-1):t?.current?.focus()},c=e=>{let t=o.get((e+1)%s);i?.has(t?.current?.getAttribute("data-key")||"")?c(e+1):t?.current?.focus()};if(a)switch(e.key){case"Home":e.preventDefault(),c(-1);break;case"End":e.preventDefault(),l(s);break;case"ArrowDown":e.preventDefault(),c(r);break;case"ArrowUp":e.preventDefault(),l(r);break;default:e.continuePropagation()}}});return(0,m.jsx)("div",{...a,style:n,className:(0,s.xW)("_1yep5z6ln",t),ref:r,children:l.Children.map(e,((e,t)=>l.cloneElement(e,{index:t})))})}));yj.displayName="AccordionBase";var bj=l.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),wj=l.forwardRef((({children:e,disabledKeys:t,defaultExpandedKeys:n=new Set,expandedKeys:r,expansionMode:o="multiple",onChange:i,className:a,style:s},c)=>{let[u,d]=l.useState(n),p=l.useRef(new Map).current,[f,g]=l.useState(o);(0,l.useEffect)((()=>{g(o)}),[o]),(0,l.useEffect)((()=>{i?.(u)}),[u,i]);let v=(0,l.useMemo)((()=>({expandedKeys:r||u,setExpandedKeys:r?()=>{}:d,disabledKeys:t,headers:p,expansionMode:f})),[r,u,t,p,f]);return(0,m.jsx)(bj.Provider,{value:v,children:(0,m.jsx)(h.n1,{children:(0,m.jsx)(yj,{className:a,style:s,ref:c,children:e})})})}));wj.displayName="Accordion";var xj=l.forwardRef((({title:e,actions:t,controlId:n,value:r,id:o,index:i,subLabel:a,showActionsOnTriggerOnly:c},u)=>{let d=l.useRef(null),{expandedKeys:p,setExpandedKeys:f,expansionMode:g,disabledKeys:v,headers:y}=(0,l.useContext)(bj),w=v?.has(r),x=(0,h.H8)();(0,s.V1)(x);let{focusNext:S,focusPrevious:_}=x,{keyboardProps:C}=(0,h.de)({onKeyDown:e=>{"ArrowRight"===e.key?S({wrap:!0}):"ArrowLeft"===e.key?_({wrap:!0}):e.continuePropagation()},isDisabled:w});(0,l.useEffect)((()=>{(0,s.V1)("number"==typeof i,"AccordionItem must have an index"),y?.set(i,d)}),[i,y]);let E=()=>{f((e=>{let t=new Set(e);return t.has(r)?t.delete(r):("single"===g&&t.clear(),t.add(r)),t}))},{buttonProps:k}=(0,h.sL)({"aria-expanded":p.has(r),"aria-controls":n,onPress:E,isDisabled:w},d),{pressProps:z}=(0,h.dD)({onPress:E,isDisabled:w}),{focusProps:P,isFocusVisible:A}=(0,h.og)(),{hoverProps:D,isHovered:T}=(0,h.Mk)({isDisabled:w}),{focusProps:I,isFocusVisible:M}=(0,h.og)({within:!0}),N=p.has(r);return(0,m.jsxs)("h3",{...(0,h.v6)(C,z,D,I),className:gj({isFocusVisible:A,isHovered:T,isDisabled:w}),ref:u,children:[(0,m.jsxs)("div",{className:vj({isDisabled:!!w}),children:[(0,m.jsx)(b.vK,{className:mj({isExpanded:N}),size:8}),(0,m.jsx)("button",{...(0,h.v6)(k,P),id:o,"data-key":r,className:"_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6dz",ref:d,children:e})]}),t?.length?(0,m.jsx)("div",{"data-testid":"action-buttons",className:fj({showActionsOnTriggerOnly:c,isTriggered:M||T}),children:t.map(((e,t)=>(0,m.jsx)(eN,{variant:"secondary",size:"sm",excludeFromTabOrder:!0,isDisabled:w,...e},t)))}):null,a?(0,m.jsx)("div",{className:"_1yep5z6ev _1yep5z6dy",children:a}):null]})}));xj.displayName="AccordionHeader";var Sj=l.forwardRef((({title:e,actions:t,children:n,value:r,index:o,subLabel:i,style:a,className:s,showActionsOnTriggerOnly:c},u)=>{let d=(0,h.Bi)(),p=(0,h.Bi)(),{expandedKeys:f}=(0,l.useContext)(bj),g=f.has(r);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(h.n1,{children:(0,m.jsx)(xj,{value:r,actions:t,id:p,title:e,controlId:d,ref:u,index:o,subLabel:i,showActionsOnTriggerOnly:c})}),(0,m.jsx)(S.Ny,{initial:!1,children:g?(0,m.jsx)(S.PY.section,{role:"region","aria-labelledby":p,id:d,className:"_1kvz17de",variants:{open:{height:"auto",opacity:1},closed:{height:0,opacity:0}},initial:"closed",animate:"open",exit:"closed",children:(0,m.jsx)("div",{style:a,className:s,children:n})}):null})]})}));Sj.displayName="AccordionItem";var _j=l.forwardRef((({variant:e,isOpen:t,selectedIcon:n,validationState:r="valid",valueProps:o,label:i,className:a,style:c,"data-block-id":u,"data-block-class":d,...p},f)=>{let g=l.useRef(null),{buttonProps:v,isPressed:y}=(0,h.sL)({...p,isDisabled:p.isDisabled||p.isReadOnly},g),{hoverProps:w,isHovered:x}=(0,h.Mk)({isDisabled:p.isDisabled}),{focusProps:S,isFocused:_,isFocusVisible:C}=(0,h.og)(),E=OR({isReadOnly:p.isReadOnly,validationState:r});p.isReadOnly&&(v.disabled=!1);let k=(0,s.nP)({"data-disabled":p.isDisabled,"data-readonly":p.isReadOnly,"data-focused":_,"data-focus-visible":C,"data-hovered":x,"data-pressed":y,"data-open":t,"data-block-id":u,"data-block-class":d});return(0,m.jsxs)("button",{...(0,h.v6)(v,w,S,k),ref:UT(f,g),className:(0,s.xW)(SR({isFocused:C,isDisabled:p.isDisabled,isOpen:t,isHovered:x,variant:e}),sM({variant:e,isHovered:x,isFocused:C,validationState:r,isDisabled:!!p.isDisabled,isReadOnly:p.isReadOnly}),a,"BaselineUI-Select-Button"),style:c,children:[(0,m.jsxs)("span",{className:"_1mdhlqva _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k",children:[n?(0,m.jsx)(n,{size:24}):null,(0,m.jsx)("span",{...o,children:i})]}),E?(0,m.jsx)("span",{"aria-hidden":!0,className:(0,s.xW)(rM({validationState:r,isReadOnly:!!p.isReadOnly}),"_1yep5z66x _1yep5z66y _1yep5z66z"),children:(0,m.jsx)(E,{size:16})}):null,(0,m.jsx)("span",{"aria-hidden":!0,children:(0,m.jsx)(b.bD,{size:8,className:wR({isOpen:t})})})]})}));_j.displayName="SelectButton";var Cj=l.createContext({state:null,popoverAnchorRef:null}),Ej=l.forwardRef((({className:e,style:t,labelPosition:n="top",variant:r="primary","data-block-id":o,"data-block-class":i,optionStyle:a,optionClassName:c,placement:u="bottom start",triggerClassName:d,triggerStyle:p,state:f,renderTrigger:g=({buttonProps:e,selectedValue:t,valueProps:n,isOpen:o,ref:i})=>{let a=t&&"icon"in t&&t.icon;return(0,m.jsx)(_j,{...e,className:d,style:p,isOpen:o,isReadOnly:v.isReadOnly,ref:i,variant:r,validationState:v.validationState,selectedIcon:a||void 0,label:t?"label"in t&&t?.label:v.placeholder,valueProps:n})},...v},y)=>{let{popoverAnchorRef:b}=(0,l.useContext)(Cj),w=l.useRef(null),x=LM(v.portalContainer),{labelProps:S,triggerProps:_,valueProps:C,menuProps:E,descriptionProps:k,errorMessageProps:z}=(0,h.WM)({...v,validationState:"error"===v.validationState?"invalid":"valid"},f,w),P=lM({...v,descriptionProps:k,errorMessageProps:z,labelPosition:n}),A=f.selectedItem?.value??null;return(0,m.jsxs)(PI.Provider,{value:f,children:[(0,m.jsxs)("div",{style:t,className:(0,s.xW)(aM({labelPosition:n}),"BaselineUI-Select",e),"data-block-id":o,"data-block-class":i,ref:y,children:[v.label||P?(0,m.jsxs)("div",{className:iM({labelPosition:n,hasMessage:!!P}),children:[v.label?(0,m.jsx)("div",{...S,className:(0,s.xW)(oM,"BaselineUI-Select-Label"),children:v.label}):null,"start"===n&&P]}):null,(0,m.jsx)(h.HJ,{state:f,triggerRef:w,isDisabled:v.isDisabled,label:v.label,name:v.name}),g({buttonProps:_,selectedValue:A,valueProps:C,isOpen:f.isOpen,ref:w}),"top"===n&&P]}),f?(0,m.jsx)(aR,{placement:u,portalContainer:x,offset:2,state:f,triggerRef:b||w,style:t,className:"BaselineUI-Select-Popover",...v,children:(0,m.jsx)(TI,{...E,label:v.label,items:v.items,showSelectedIcon:v.showSelectedIcon,className:xR,optionStyle:a,optionClassName:c})}):null]})}));Ej.displayName="SelectCore";var kj=l.forwardRef(((e,t)=>{let n=nI(),r=(0,f.nj)({...e,validationState:"error"===e.validationState?"invalid":"valid",children:n});return(0,m.jsx)(Ej,{...e,ref:t,state:r})}));kj.displayName="SelectStandalone";var zj=l.forwardRef(((e,t)=>{let{state:n}=(0,l.useContext)(Cj);return(0,l.useEffect)((()=>{(0,s.V1)(n||e.items,"Select: A `state` that can be passed via context or `items` are required.")}),[e.items,n]),n?(0,m.jsx)(Ej,{state:n,...e,ref:t}):(0,m.jsx)(kj,{...e,ref:t})}));zj.displayName="Select";var Pj=l.forwardRef((({className:e,style:t,variant:n,"data-block-id":r,icon:o,tooltipProps:i,...a},c)=>{let u=l.useRef(null),d=(0,l.useCallback)((({buttonProps:e,selectedValue:t,valueProps:r,isOpen:o,ref:s})=>{let l=t&&"icon"in t&&t.icon;return(0,m.jsx)(XM,{variant:"inverse",size:"sm",includeArrow:!1,text:a["aria-label"],offset:4,...i,children:(0,m.jsx)(_j,{...e,isOpen:o,isReadOnly:a.isReadOnly,ref:s,variant:n,validationState:a.validationState,selectedIcon:l||void 0,label:t?"label"in t&&t?.label:a.placeholder,valueProps:r})})}),[a,i,n]);return(0,m.jsxs)(vI,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:(0,s.xW)("BaselineUI-IconSelect",e),"data-block-id":r,style:t,ref:UT(c,u),children:[o?(0,m.jsx)(o,{size:24,className:(0,v.UV)({color:"icon.primary",display:"flex",flexShrink:0})}):null,(0,m.jsx)(zj,{...a,renderTrigger:d})]})}));Pj.displayName="IconSelect";var Aj=uI({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),Dj={sm:w.hS,md:g.hSU},Tj=l.forwardRef((({className:e,style:t,size:n="md",icon:r=Dj[n],name:o,imgSrc:i,showInitials:a,isDisabled:l,hasNotifications:c,imgLoading:u,"data-block-id":d,"data-block-class":p},h)=>{let{imgProps:f}=xM({src:i,alt:o}),g=o?.split(" ").map((e=>e[0])).join("");return(0,m.jsxs)("span",{className:(0,s.xW)(Aj({size:n,isDisabled:l}),"BaselineUI-Avatar",e),"data-disabled":l,ref:h,style:t,"aria-disabled":l,"data-block-id":d,"data-block-class":p,children:[i?(0,m.jsx)("img",{...f,loading:u,className:"_1017q4c4"}):null,!a&&!i&&(0,m.jsx)(r,{size:"sm"===n?16:24}),a&&!i?"sm"===n?g[0]:g:null,c?(0,m.jsx)("div",{"data-testid":"notification",className:"_1017q4c5"}):null]})}));Tj.displayName="Avatar";var Ij=uI({defaultClassName:"_1x62fhb6 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6la _1yep5z6ld _1yep5z6ev _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isHovered:{true:"_1yep5z610x"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba _1yep5z6111"},variant:{primary:"_1x62fhbb _1yep5z6zy",ghost:"_1yep5z6101"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:!0,isDisabled:!1},"_1yep5z61n0"],[{variant:"primary",isSelected:!0},"_1yep5z61o7"],[{variant:"ghost",isSelected:!0,isFocusVisible:!1},"_1x62fhbd"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1yep5z61n7"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1x62fhbe _1yep5z6ey"],[{variant:"primary",isHovered:!0},"_1yep5z61o8"]]}),Mj=uI({defaultClassName:"_1x62fhb3 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6vl _1yep5z6vm _1yep5z6vn"}},defaultVariants:{},compoundVariants:[]}),Nj=uI({defaultClassName:"_1x62fhbf _1yep5z6f6",variantClassNames:{isHovered:{true:"_1yep5z6118"},isSelected:{true:"_1x62fhbh"},isDisabled:{true:"_1yep5z611a"},variant:{primary:"_1x62fhbj",ghost:"_1x62fhbk"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:!0,isDisabled:!1},"_1yep5z61nb"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1yep5z61ng"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1yep5z61nd"]]}),Oj="_1yep5z6lu _1yep5z6lr _1yep5z6hx _1yep5z6lt",Rj=uI({defaultClassName:"_1x62fhb0 _1yep5z6ln _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{variant:{primary:"_1yep5z6126",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]}),jj=({state:e,...t})=>{let n=l.useRef(null),{tabPanelProps:r}=(0,h.Jn)(t,e,n),{selectedItem:o}=e,{focusProps:i,isFocusVisible:a}=(0,h.og)();if(!o?.value)return null;let{className:c,style:u,"data-block-id":d}=o.value;return(0,m.jsx)("div",{...(0,h.v6)(r,i),ref:n,className:(0,s.xW)({[Oj]:a},"Baseline-Tabs-TabPanel",c),"data-block-id":d,style:u,children:o?.props.children})},Fj=l.forwardRef((({className:e,style:t,tabHeaderStyle:n,tabHeaderClassName:r,variant:o="primary",actions:i,onRemove:a,"data-block-id":c,...u},d)=>{let p=(0,f.gv)({...u,selectedKey:u.selectedValue,defaultSelectedKey:u.defaultSelectedValue,disabledKeys:u.disabledValues}),g=l.useRef(null),{tabListProps:v}=(0,h.$c)({...u,selectedKey:u.selectedValue,defaultSelectedKey:u.defaultSelectedValue,disabledKeys:u.disabledValues},p,g);return(0,m.jsxs)("div",{className:(0,s.xW)("BaselineUI-Tabs",e),style:t,ref:d,"data-block-id":c,children:[(0,m.jsxs)("div",{className:(0,s.xW)(Rj({variant:o}),r),style:n,children:[(0,m.jsx)("div",{...v,className:Mj({variant:o}),ref:g,children:[...p.collection].map((e=>((0,s.V1)(e.value,"TabItem requires a value prop"),(0,m.jsx)(Bj,{item:e,state:p,onRemove:a,variant:o},e.key))))}),i?.map(((e,t)=>(0,m.jsx)("div",{className:"_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",children:(0,m.jsx)(eN,{...e,variant:"secondary",size:"sm",className:(0,s.xW)("_1x62fhbl",e.className)})},t)))]}),(0,m.jsx)(jj,{state:p},p.selectedItem?.key)]})}));Fj.displayName="TabsBase";var Bj=({item:e,onRemove:t,state:n,variant:r})=>{let{key:o,value:i}=e,a=l.useRef(null),{tabProps:c,isSelected:u,isDisabled:d}=(0,h.Vh)({key:o},n,a),{hoverProps:p,isHovered:f}=(0,h.Mk)({});(0,s.V1)(i,"TabButton requires a value prop");let{title:g,icon:v,titleStyle:y,titleClassName:w}=i,{focusProps:x,isFocusVisible:S,isFocused:_}=(0,h.og)(),{keyboardProps:C}=(0,h.de)({onKeyDown:e=>{"Backspace"===e.key&&t?t(o):e.continuePropagation()}}),E=(0,s.nP)({"data-selected":u,"data-disabled":d,"data-focused":_,"data-hovered":f,"data-focus-visible":S});return(0,m.jsxs)("div",{...(0,h.v6)(C,c,p,x,E),className:(0,s.xW)(Ij({isHovered:f,isSelected:u,isFocusVisible:S,isDisabled:d,variant:r}),"BaselineUI-Tabs-TabButton",w),style:y,ref:a,children:[v?(0,m.jsx)(v,{size:20,className:Nj({isHovered:f,isSelected:u,isDisabled:d,variant:r})}):null,g,t?(0,m.jsx)(eN,{variant:"secondary",elementType:"div",icon:b.uv,size:"xxs",onPress:()=>{t(o)},excludeFromTabOrder:!0,UNSAFE_NON_INTERACTIVE:!0,style:{display:"inline-flex",opacity:u||_||f?1:0},className:Nj({isHovered:f,isSelected:u,isDisabled:d,variant:r})}):null]})};Bj.displayName="TabButton";var Lj=l.forwardRef((function({children:e,...t},n){let r=(0,l.useMemo)((()=>l.Children.map(e,(e=>e&&l.isValidElement(e)&&"string"!=typeof e.type?{...e.props,id:e.props.value}:null)).filter(Boolean)),[e]);return(0,m.jsx)(Fj,{...t,ref:n,items:r,children:e=>(0,m.jsx)(f.q7,{title:e.title,children:e.children},e.key)})}));Lj.displayName="Tabs";var Vj=({children:e,title:t,value:n})=>((0,s.V1)(n,"TabItem requires a value prop"),(0,s.V1)(t,"TabItem requires a title prop"),(0,s.V1)(e,"TabItem requires children"),e);Vj.displayName="TabItem";var Kj={ar:{close:"إغلاق"},cs:{close:"Zavřít"},cy:{close:"Cau"},da:{close:"Luk"},de:{close:"Schließen"},el:{close:"Κλείσιμο"},"en-GB":{close:"Close"},en:{close:"Close"},es:{close:"Cerrar"},fi:{close:"Sulje"},"fr-CA":{close:"Fermer"},fr:{close:"Fermer"},he:{close:"סגירה"},hr:{close:"Zatvori"},id:{close:"Tutup"},it:{close:"Chiudi"},ja:{close:"閉じる"},ko:{close:"닫기"},ms:{close:"Tutup"},"nb-NO":{close:"Lukk"},nl:{close:"Sluit"},pl:{close:"Zamknij"},"pt-PT":{close:"Fechar"},pt:{close:"Fechar"},ru:{close:"Закрыть"},sk:{close:"Zavrieť"},sl:{close:"Zapri"},sv:{close:"Stäng"},th:{close:"ปิด"},tr:{close:"Kapat"},uk:{close:"Закрити"},"zh-Hans":{close:"关闭"},"zh-Hant":{close:"關閉"}},Hj=uI({defaultClassName:"kfun6yt _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6af _1yep5z6ag _1yep5z6ah",variantClassNames:{arrangement:{single:"_1yep5z6vi _1yep5z6vj _1yep5z6vk",multi:"_1yep5z6157 _1yep5z6158 _1yep5z6159",compact:"_1yep5z6157 _1yep5z6158 _1yep5z6159"}},defaultVariants:{},compoundVariants:[]}),$j=uI({defaultClassName:"kfun6y0 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ln",variantClassNames:{variant:{info:"_1yep5z611y",warning:"_1yep5z611u",error:"_1yep5z611m",success:"_1yep5z611q"},arrangement:{single:"kfun6y5 _1yep5z616m _1yep5z616n _1yep5z616o _1yep5z615m _1yep5z615n _1yep5z615o",multi:"kfun6y6",compact:"kfun6y7 _1yep5z6mc _1yep5z6md _1yep5z6me _1yep5z6oo _1yep5z6op _1yep5z6oq _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk _1yep5z615d _1yep5z615e _1yep5z615f _1yep5z6wi _1yep5z6wj _1yep5z6wk"},hasButton:{true:"kfun6y8"},hasCloseButton:{true:"kfun6y9"}},defaultVariants:{},compoundVariants:[[{hasButton:!1,arrangement:"single"},"_1yep5z618f _1yep5z618g _1yep5z618h _1yep5z61ar _1yep5z61as _1yep5z61at _1yep5z61bx _1yep5z61by _1yep5z61bz _1yep5z619l _1yep5z619m _1yep5z619n"],[{hasButton:!0,arrangement:"compact"},"_1yep5z618f _1yep5z618g _1yep5z618h _1yep5z61ar _1yep5z61as _1yep5z61at _1yep5z61bx _1yep5z61by _1yep5z61bz _1yep5z619l _1yep5z619m _1yep5z619n"],[{hasCloseButton:!0,arrangement:"compact"},"_1yep5z61af _1yep5z61ag _1yep5z61ah _1yep5z6199 _1yep5z619a _1yep5z619b"]]}),Uj=uI({defaultClassName:"kfun6yq _1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6106",md:"_1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),Wj=uI({defaultClassName:"kfun6ym _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{arrangement:{single:"kfun6yn",multi:"_1yep5z615j _1yep5z615k _1yep5z615l",compact:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8 _1yep5z6pi _1yep5z6pj _1yep5z6pk _1yep5z6qo _1yep5z6qp _1yep5z6qq _1yep5z6oc _1yep5z6od _1yep5z6oe _1yep5z6161 _1yep5z6162 _1yep5z6163"}},defaultVariants:{},compoundVariants:[]}),qj=uI({defaultClassName:"kfun6yh _1yep5z6lk",variantClassNames:{variant:{info:"_1yep5z610t",warning:"_1yep5z610p",error:"_1yep5z610h",success:"_1yep5z610l"}},defaultVariants:{},compoundVariants:[]}),Gj=uI({defaultClassName:"kfun6ye _1yep5z6eu",variantClassNames:{size:{sm:"_1yep5z6108",md:"_1yep5z610b"}},defaultVariants:{},compoundVariants:[]}),Zj=uI({defaultClassName:"kfun6ya _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{arrangement:{single:"_1yep5z615m _1yep5z615n _1yep5z615o",multi:"_1yep5z6r0 _1yep5z6r1 _1yep5z6r2 _1yep5z6tc _1yep5z6td _1yep5z6te",compact:"_1yep5z6157 _1yep5z6158 _1yep5z6159"}},defaultVariants:{},compoundVariants:[]}),Yj={error:{sm:w.bL,md:k.bL},info:{sm:w.S_,md:k.S_},success:{sm:w.x7,md:k._9},warning:{sm:w.AK,md:k.AK}},Xj=l.forwardRef((({className:e,description:t,actionLabel:n,onAction:r,style:o,variant:i="info",title:a,arrangement:l="single",onClose:c,size:u="sm","data-block-id":d,"data-block-class":p,elementProps:h},f)=>{let g=DM(Kj),v=n&&(0,m.jsx)(YI,{variant:"compact"===l?"tertiary":"ghost",label:n,onPress:r}),y=Yj[i][u];return(0,m.jsxs)("div",{className:(0,s.xW)($j({variant:i,arrangement:l,hasButton:!!n||!!c,hasCloseButton:!!c}),"BaselineUI-InlineAlert",e),"data-block-id":d,"data-block-class":p,style:o,role:"alert",ref:f,...h?.root,children:[(0,m.jsxs)("div",{className:Zj({arrangement:l}),children:[(0,m.jsx)(y,{className:qj({variant:i}),size:16}),(0,m.jsxs)("div",{className:Hj({arrangement:l}),...h?.content,children:[(0,m.jsx)("h3",{className:Gj({size:u}),...h?.title,children:a}),(0,m.jsx)("section",{className:Uj({size:u}),...h?.description,children:t})]}),"compact"===l&&v]}),(0,m.jsxs)("div",{className:Wj({arrangement:l}),children:["compact"!==l&&v,c?(0,m.jsx)(eN,{variant:"secondary",icon:w.uv,size:"sm",onPress:c,"aria-label":g.formatMessage("close"),...h?.close}):null]})]})}));Xj.displayName="InlineAlert";var Jj={ar:{add:"إضافة",addColor:"إضافة لون",cancel:"إلغاء",colorFormat:"تنسيق اللون",colorPresets:"الألوان المسبقة",customColors:"ألوان مخصصة",newColor:"لون مخصص جديد",noColor:"لا يوجد",removeColor:"إزالة اللون",transparent:"شفاف"},cs:{add:"Přidat",addColor:"Přidat barvu",cancel:"Zrušit",colorFormat:"Formát barvy",colorPresets:"Předvolby barev",customColors:"Vlastní barvy",newColor:"Vlastní barva",noColor:"Není",removeColor:"Odebrat barvu",transparent:"Průhledná"},cy:{add:"Ychwanegu",addColor:"Ychwanegu Lliw",cancel:"Canslo",colorFormat:"Fformat Lliw",colorPresets:"Rhagosodiadau Lliw",customColors:"Lliwiau Custom",newColor:"Lliw Personol Newydd",noColor:"Dim",removeColor:"Tynnu Lliw",transparent:"Tryloyw"},da:{add:"Tilføj",addColor:"Tilføj Farve",cancel:"Annuller",colorFormat:"Farveformat",colorPresets:"Farvevalg",customColors:"Brugerdefinerede farver",newColor:"Ny tilpasset farve",noColor:"Ingen",removeColor:"Fjern Farve",transparent:"Transparent"},de:{add:"Hinzufügen",addColor:"Farbe hinzufügen",cancel:"Abbrechen",colorFormat:"Farbformat",colorPresets:"Farbvorlagen",customColors:"Benutzerdefinierte Farben",newColor:"Neue benutzerdefinierte Farbe",noColor:"Kein",removeColor:"Farbe entfernen",transparent:"Transparent"},el:{add:"Προσθήκη",addColor:"Προσθήκη Χρώματος",cancel:"Ακύρωση",colorFormat:"Μορφή χρώματος",colorPresets:"Προεπιλογές χρωμάτων",customColors:"Προσαρμοσμένα Χρώματα",newColor:"Νέο προσαρμοσμένο χρώμα",noColor:"Κανένας",removeColor:"Αφαίρεση Χρώματος",transparent:"Ημιδιαφανής"},"en-GB":{add:"Add",addColor:"Add Colour",cancel:"Cancel",colorFormat:"Colour Format",colorPresets:"Colour Presets",customColors:"Custom Colours",newColor:"New Custom Colour",noColor:"None",removeColor:"Remove Colour",transparent:"Transparent"},en:{add:"Add",addColor:"Add Color",cancel:"Cancel",colorFormat:"Color Format",colorPresets:"Color Presets",customColors:"Custom Colors",newColor:"New Custom Color",noColor:"None",removeColor:"Remove Color",transparent:"Transparent"},es:{add:"Añadir",addColor:"Añadir color",cancel:"Cancelar",colorFormat:"Formato de color",colorPresets:"Preajustes de color",customColors:"Colores personalizados",newColor:"Nuevo color personalizado",noColor:"Ninguna",removeColor:"Eliminar color",transparent:"Transparente"},fi:{add:"Lisää",addColor:"Lisää väri",cancel:"Kumoa",colorFormat:"Värimuoto",colorPresets:"Värin esiasetukset",customColors:"Mukautetut värit",newColor:"Uusi muokattu väri",noColor:"Ei mitään",removeColor:"Poista väri",transparent:"Läpinäkyvä"},"fr-CA":{add:"Ajouter",addColor:"Ajouter une couleur",cancel:"Annuler",colorFormat:"Format de couleur",colorPresets:"Préréglages de couleur",customColors:"Couleurs personnalisées",newColor:"Nouvelle couleur personnalisée",noColor:"Aucune",removeColor:"Supprimer la couleur",transparent:"Transparent"},fr:{add:"Ajouter",addColor:"Ajouter une couleur",cancel:"Annuler",colorFormat:"Format de couleur",colorPresets:"Préréglages de couleur",customColors:"Couleurs personnalisées",newColor:"Nouvelle couleur personnalisée",noColor:"Aucune",removeColor:"Supprimer la couleur",transparent:"Transparent"},he:{add:"הוספה",addColor:"הוסף צבע",cancel:"ביטול",colorFormat:"פורמט צבע",colorPresets:"מצבי צבע מתוכנתים",customColors:"צבעים מותאמים אישית",newColor:"צבע מותאם אישית חדש",noColor:"ללא",removeColor:"הסר צבע",transparent:"שקוף"},hr:{add:"Dodati",addColor:"Dodaj boju",cancel:"Otkaži",colorFormat:"Format boje",colorPresets:"Prijedlozi boja",customColors:"Prilagođene boje",newColor:"Nova prilagođena boja",noColor:"Prazno",removeColor:"Ukloni boju",transparent:"Prozirna"},id:{add:"Tambah",addColor:"Tambah Warna",cancel:"Batalkan",colorFormat:"Format Warna",colorPresets:"Preset Warna",customColors:"Warna Kustom",newColor:"Warna Khusus Baru",noColor:"Tidak ada",removeColor:"Hapus Warna",transparent:"Transparan"},it:{add:"Aggiungi",addColor:"Aggiungi colore",cancel:"Annulla",colorFormat:"Formato del colore",colorPresets:"Colori predefiniti",customColors:"Colori personalizzati",newColor:"Nuovo colore personalizzato",noColor:"Nessuno",removeColor:"Rimuovi colore",transparent:"Trasparente"},ja:{add:"追加",addColor:"色を追加",cancel:"キャンセル",colorFormat:"カラーフォーマット",colorPresets:"カラープリセット",customColors:"カスタムカラー",newColor:"新規カスタムカラー",noColor:"なし",removeColor:"色を削除",transparent:"透明"},ko:{add:"추가",addColor:"색상 추가",cancel:"취소",colorFormat:"색상 형식",colorPresets:"색상 미리설정",customColors:"사용자 정의 색상",newColor:"새로운 사용자지정 색상",noColor:"없음",removeColor:"색상 제거",transparent:"투명"},ms:{add:"Tambah",addColor:"Tambah Warna",cancel:"Batal",colorFormat:"Format Warna",colorPresets:"Praset Warna",customColors:"Warna Kustom",newColor:"Warna Tersuai Baharu",noColor:"Tiada",removeColor:"Buang Warna",transparent:"Lut Sinar"},"nb-NO":{add:"Legg til",addColor:"Legg til farge",cancel:"Avbryt",colorFormat:"Fargeformat",colorPresets:"Fargeinnstillinger",customColors:"Egendefinerte farger",newColor:"Ny tilpasset farge",noColor:"Ingen",removeColor:"Fjern farge",transparent:"Gjennomsiktig"},nl:{add:"Voeg toe",addColor:"Kleur toevoegen",cancel:"Annuleer",colorFormat:"Kleurformaat",colorPresets:"Kleurvoorinstellingen",customColors:"Aangepaste kleuren",newColor:"Nieuwe aangepaste kleur",noColor:"Geen",removeColor:"Kleur verwijderen",transparent:"Doorzichtig"},pl:{add:"Dodaj",addColor:"Dodaj kolor",cancel:"Anuluj",colorFormat:"Format koloru",colorPresets:"Wstępnie ustawione kolory",customColors:"Niestandardowe kolory",newColor:"Nowy kolor niestandardowy",noColor:"Brak",removeColor:"Usuń kolor",transparent:"Przeświecające"},"pt-PT":{add:"Adicionar",addColor:"Adicionar cor",cancel:"Cancelar",colorFormat:"Formato de cor",colorPresets:"Predefinições de cor",customColors:"Cores personalizadas",newColor:"Nova cor personalizada",noColor:"Nenhum",removeColor:"Remover cor",transparent:"Transparente"},pt:{add:"Adicionar",addColor:"Adicionar cor",cancel:"Cancelar",colorFormat:"Formato de cor",colorPresets:"Pré-ajustes de Cores",customColors:"Cores personalizadas",newColor:"Nova Cor Personalizada",noColor:"Nenhum",removeColor:"Remover cor",transparent:"Transparente"},ru:{add:"Добавить",addColor:"Добавить цвет",cancel:"Отменить",colorFormat:"Формат цвета",colorPresets:"Библиотека цветов",customColors:"Пользовательские цвета",newColor:"Новый собственный цвет",noColor:"Нет",removeColor:"Удалить цвет",transparent:"Прозрачный"},sk:{add:"Pridať",addColor:"Pridať farbu",cancel:"Zrušiť",colorFormat:"Formát farby",colorPresets:"Predvoľby farieb",customColors:"Vlastné farby",newColor:"Vlastná farba",noColor:"Žiadny",removeColor:"Odstrániť farbu",transparent:"Priehľadná"},sl:{add:"Dodaj",addColor:"Dodaj barvo",cancel:"Prekliči",colorFormat:"Barvni format",colorPresets:"Barvne predloge",customColors:"Prilagojene barve",newColor:"Nova barva po meri",noColor:"Prazna stran",removeColor:"Odstrani barvo",transparent:"Prosojna"},sv:{add:"Lägg till",addColor:"Lägg till färg",cancel:"Avbryt",colorFormat:"Färgformat",colorPresets:"Förval för färger",customColors:"Anpassade färger",newColor:"Ny anpassad färg",noColor:"Ingen",removeColor:"Ta bort färg",transparent:"Genomskinligt"},th:{add:"เพิ่ม",addColor:"เพิ่มสี",cancel:"ยกเลิก",colorFormat:"รูปแบบสี",colorPresets:"ค่าสีที่ตั้งไว้ล่วงหน้า",customColors:"สีที่กำหนดเอง",newColor:"สีที่กำหนดเองใหม่",noColor:"ไม่มีเลย",removeColor:"ลบสี",transparent:"โปร่งใส"},tr:{add:"Ekle",addColor:"Renk Ekle",cancel:"Vazgeç",colorFormat:"Renk Formatı",colorPresets:"Renk Önayarları",customColors:"Özel Renkler",newColor:"Yeni özel renk",noColor:"Hiçbiri",removeColor:"Rengi Kaldır",transparent:"Şeffaf"},uk:{add:"Додати",addColor:"Додати колір",cancel:"Скасувати",colorFormat:"Формат кольору",colorPresets:"Бібліотека кольорів",customColors:"Користувацькі кольори",newColor:"Новий власний колір",noColor:"Немає",removeColor:"Видалити колір",transparent:"Прозорий"},"zh-Hans":{add:"添加",addColor:"添加颜色",cancel:"取消",colorFormat:"颜色格式",colorPresets:"颜色预设",customColors:"自定义颜色",newColor:"新自定义颜色",noColor:"无",removeColor:"移除颜色",transparent:"透明"},"zh-Hant":{add:"加入",addColor:"添加顏色",cancel:"取消",colorFormat:"顏色格式",colorPresets:"顏色預設項",customColors:"自訂顏色",newColor:"新自訂顏色",noColor:"無",removeColor:"移除顏色",transparent:"透明"}},Qj=({children:e})=>{let{triggerProps:t}=l.useContext(pN);return(0,m.jsx)(A.YI,{...t,children:e})};Qj.displayName="ModalTrigger";var eF=({children:e})=>{let{state:t}=l.useContext(pN);return(0,m.jsx)(A.YI,{onPress:()=>{t?.close()},children:e})},tF=uI({defaultClassName:"_1dbkl54 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6ly _1yep5z6lq _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6eu _1yep5z6lp _1yep5z6dy",variantClassNames:{isHovered:{true:"_1dbkl55"},isFocusVisible:{true:"_1dbkl56"},isDisabled:{true:"z9nup83 _1yep5z6111"},labelPosition:{top:"_1dbkl58",start:"_1dbkl59"}},defaultVariants:{},compoundVariants:[]}),nF="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kj _1yep5z6kk _1yep5z6kl",rF=uI({defaultClassName:"_1dbkl50 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6dy _1yep5z6ev",variantClassNames:{labelPosition:{top:"_1yep5z6oi _1yep5z6oj _1yep5z6ok",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),oF="_1dbkl5l _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69f _1yep5z69g _1yep5z69h",iF="_1dbkl5m _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6id _1yep5z6ie _1yep5z6if",aF=uI({defaultClassName:"_1dbkl5h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g1",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8"}},defaultVariants:{},compoundVariants:[]}),sF="_1dbkl5v _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",lF=uI({defaultClassName:"_1dbkl5q _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6br _1yep5z6bs _1yep5z6bt _1yep5z6d3 _1yep5z6d4 _1yep5z6d5 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lz _1yep5z6h4 _1yep5z6lq _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocused:{true:"_1dbkl5r _1yep5z6134"},isHovered:{true:"_1dbkl5s"},allowAlpha:{false:"_1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z617q"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,isFocused:!1},"_1yep5z61pb"]]}),cF=uI({defaultClassName:"_1dbkl5a _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62c _1yep5z62d _1yep5z62e _1yep5z63i _1yep5z63j _1yep5z63k _1yep5z616 _1yep5z617 _1yep5z618 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69c _1yep5z69d _1yep5z69e _1yep5z6f5 _1yep5z6lp _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6la _1yep5z6ld",variantClassNames:{isHovered:{true:"_1yep5z6126"},isFocusVisible:{true:"_1yep5z617w _1yep5z617u _1yep5z617x _1yep5z6140"},isDisabled:{true:"_1yep5z611a"}},defaultVariants:{},compoundVariants:[]}),uF="_1dbkl5u",dF="_1dbkl5g",pF="_1dbkl5j _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69f _1yep5z69g _1yep5z69h",hF="_1dbkl5x",fF="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69l _1yep5z69m _1yep5z69n",mF=uI({defaultClassName:"_1dbkl5n _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6lu _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6lz _1yep5z6m2",variantClassNames:{isFocusVisible:{true:"_1dbkl5o _1yep5z617u _1yep5z6140 _1yep5z617w"}},defaultVariants:{},compoundVariants:[]}),gF="z9nup84 z9nup86 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6lg _1yep5z6lh _1yep5z6lj _1yep5z6li _1yep5z6ig _1yep5z6ih _1yep5z6ii",vF=uI({defaultClassName:"_1344e9q0 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6lk _1yep5z6ic _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf",variantClassNames:{isFocusVisible:{true:"_1344e9q1"},isDisabled:{true:"_1344e9q2"},removeBlendMode:{true:"_1344e9q3"},isSelected:{true:"_1yep5z617w _1yep5z617u _1yep5z6140 _1yep5z617z"},isHovered:{true:"_1344e9q5"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isFocusVisible:!0},"_1344e9q6"],[{isSelected:!0,isFocusVisible:!0},"_1344e9q7 _1yep5z61tz _1yep5z61tx _1yep5z61q3 _1yep5z61u2"],[{isSelected:!0,isDisabled:!0},"_1yep5z61tz _1yep5z61tx _1yep5z61q3 _1yep5z61u2 _1yep5z61qd"],[{isHovered:!0,isSelected:!1},"_1yep5z61u2 _1yep5z61tz _1yep5z61tx _1yep5z61q7"]]}),yF=l.forwardRef((({color:e,isFocusVisible:t,isSelected:n,isInteractive:r,isDisabled:o,style:i,className:a,id:c,tooltip:u,"data-block-id":d,"data-block-class":p,...f},g)=>{let v=e&&e!==EF&&("string"==typeof e?F(e):e),{formatMessage:y}=DM(),b=!v,{colorSwatchProps:w}=function(e){let{color:t,colorName:n}=e,r=t||"#fff0",o=(0,l.useMemo)((()=>"string"==typeof r?ue(r):r),[r]),{locale:i}=(0,De.Ym)(),a=(0,Ae.$X)(e,{labelable:!0}),s=(0,De.oe)(function(e){return e&&e.__esModule?e.default:e}(ae),"@react-aria/color"),c=(0,Ae.Bi)(e.id);return n||(n=0===o.getChannelValue("alpha")?s.format("transparent"):o.getColorName(i)),{colorSwatchProps:{...a,role:"img","aria-roledescription":s.format("colorSwatch"),"aria-label":[n,e["aria-label"]||""].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]?`${c} ${e["aria-labelledby"]}`:void 0,id:c,style:{backgroundColor:o.toString("css"),forcedColorAdjust:"none"}},color:o||null}}({color:b?"#000000":e}),{hoverProps:x,isHovered:S}=(0,h.Mk)({isDisabled:o||!r}),_=(0,s.nP)({"data-focus-visible":t,"data-selected":n,"data-hovered":S,"data-block-id":d,"data-block-class":p,"data-disabled":o,"data-interactive":r}),C=b?y(bF.none):w["aria-label"],E=f["aria-label"]??C,{tooltipProps:k}=HI({tooltip:u,label:E}),z=(0,m.jsx)("div",{...(0,h.v6)(x,_,b?{}:w),style:i,"aria-label":b?y(bF.none):w["aria-label"],role:"img",className:(0,s.xW)(vF({removeBlendMode:b,isFocusVisible:t,isDisabled:!!o,isSelected:!!n,isHovered:S}),"BaselineUI-ColorSwatch",a),ref:g,id:c,...f,children:(0,m.jsx)(vI,{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"full",height:"full",width:"full",opacity:o?"medium":void 0,style:v?zF(v,4):void 0,children:b?(0,m.jsx)("div",{className:"_1344e9q9 _1yep5z6fl"}):null})});return k&&!o?(0,m.jsx)(XM,{...k,children:(0,m.jsx)(JM,{children:z})}):z}));yF.displayName="ColorSwatch";var bF=TM({none:{id:"none",defaultMessage:"None"}}),wF=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],xF=F("#000000").toFormat("hsla"),SF="hsla",_F="hexa";function CF(e){return"string"==typeof e?F(e).toFormat(SF):e?e.toFormat(SF):null}var EF="NONE";var kF=(e,{optionProps:t,isFocusVisible:n,isSelected:r},o)=>((0,s.V1)(e.value&&"label"in e.value,"Item must have label"),(0,m.jsx)("li",{...t,ref:o,className:"_1dbkl5k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6lq",children:(0,m.jsx)(yF,{color:e.value.id,isFocusVisible:n,isSelected:r,"aria-label":e.value.label,isInteractive:!0})})),zF=(e,t=4)=>{let n=0===e.getChannelValue("alpha"),r=`repeating-conic-gradient(transparent 0% 25%, ${v.G6.color.background.secondary.medium} 25% 50%)`;return{backgroundImage:n?r:`linear-gradient(${e.toString("hexa")}, ${e.toString("hexa")}), ${r}`,backgroundSize:`${t}px ${t}px`}},PF=({value:e,...t})=>{let n=l.useRef(null),r=l.useRef(null),o=l.useRef(null),i=function(e){let{value:t,defaultValue:n,colorSpace:r,xChannel:o,yChannel:i,onChange:a,onChangeEnd:s}=e;t||n||(n=X);let[c,u]=D(t&&B(t),n&&B(n),a),d=(0,l.useMemo)((()=>r&&c?c.toFormat(r):c),[c,r]),p=(0,l.useRef)(d),h=e=>{p.current=e,u(e)},f=(0,l.useMemo)((()=>d.getColorSpaceAxes({xChannel:o,yChannel:i})),[d,o,i]),m=d.getChannelRange(f.xChannel),g=d.getChannelRange(f.yChannel),{minValue:v,maxValue:y,step:b,pageSize:w}=m,{minValue:x,maxValue:S,step:_,pageSize:C}=g,[E,k]=(0,l.useState)(!1),z=(0,l.useRef)(!1),P=d.getChannelValue(f.xChannel),A=d.getChannelValue(f.yChannel),I=e=>{if(e===P)return;let t=d.withChannelValue(f.xChannel,e);h(t)},N=e=>{if(e===A)return;let t=d.withChannelValue(f.yChannel,e);h(t)};return{channels:f,xChannelStep:b,yChannelStep:_,xChannelPageStep:w,yChannelPageStep:C,value:d,setValue(e){h(B(e))},xValue:P,setXValue:I,yValue:A,setYValue:N,setColorFromPoint(e,t){let n,r=v+T(e,0,1)*(y-v),o=x+(1-T(t,0,1))*(S-x);r!==P&&(r=M(r,v,y,b),n=d.withChannelValue(f.xChannel,r)),o!==A&&(o=M(o,x,S,_),n=(n||d).withChannelValue(f.yChannel,o)),n&&h(n)},getThumbPosition:()=>({x:(P-v)/(y-v),y:1-(A-x)/(S-x)}),incrementX(e){I(P+e>y?y:M(P+e,v,y,b))},incrementY(e){N(A+e>S?S:M(A+e,x,S,_))},decrementX(e){I(M(P-e,v,y,b))},decrementY(e){N(M(A-e,x,S,_))},setDragging(e){let t=z.current;z.current=e,s&&!e&&t&&s(p.current),k(e)},isDragging:E,getDisplayColor:()=>d.withChannelValue("alpha",1)}}({...t,value:e}),{colorAreaProps:a,xInputProps:c,yInputProps:u,thumbProps:d}=Ie({...t,value:e,inputXRef:n,inputYRef:r,containerRef:o},i);(0,l.useEffect)((()=>{n.current?.focus()}),[]);let{focusProps:p,isFocusVisible:f}=(0,h.og)();return(0,m.jsx)("div",{ref:o,...a,className:(0,s.xW)("_1dbkl53 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6ln","BaselineUI-ColorInput-ColorArea"),children:(0,m.jsxs)("div",{...d,className:(0,s.xW)(mF({isFocusVisible:f}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...d.style,transform:"translate(-50%, -50%)",backgroundColor:CF(e)?.withChannelValue("alpha",1).toString("css")},children:[(0,m.jsx)("input",{ref:n,...c,...p}),(0,m.jsx)("input",{ref:r,...u,...p})]})})},AF=({color:e,setColor:t,allowAlpha:n,...r})=>{let o=function(e){let{value:t,defaultValue:n,onChange:r}=e,{step:o}=te.getChannelRange("red"),i=Q(t),a=Q(n),[s,c]=D(i,a,r),[u,d]=(0,l.useState)((()=>(t||n)&&s?s.toString("hex"):"")),p=(0,ee.KZ)({...e,value:s}),h=e=>{s&&e&&e.toHexInt()===s.toHexInt()||c(e)},[f,m]=(0,l.useState)(s);f!==s&&(d(s?s.toString("hex"):""),m(s));let g=(0,l.useMemo)((()=>{let e;try{e=F(u.startsWith("#")?u:`#${u}`)}catch(t){e=null}return e}),[u]);return{...p,validate:e=>{var t;return""===e||!!(null===(t=e.match(/^#?[0-9a-f]{0,6}$/i))||void 0===t?void 0:t[0])},colorValue:s,inputValue:u,setInputValue:d,commit:()=>{if(!u.length)return h(null),void d(void 0===t?"":s.toString("hex"));if(null==g)return void d(s?s.toString("hex"):"");h(g);let e="";s&&(e=s.toString("hex")),d(e)},increment:()=>{let e=ie(g,o);e===s&&d(e.toString("hex")),h(e),p.commitValidation()},incrementToMax:()=>h(ne),decrement:()=>{let e=ie(g,-o);e===s&&d(e.toString("hex")),h(e),p.commitValidation()},decrementToMin:()=>h(te)}}({value:e,onChange:n=>{t(CF(n)?.toFormat(SF).withChannelValue("alpha",e.getChannelValue("alpha")??1)||xF)}}),i=l.useRef(null),{inputProps:a}=function(e,t,n){let{isDisabled:r,isReadOnly:o,isRequired:i,isWheelDisabled:a,validationBehavior:s="aria"}=e,{colorValue:c,inputValue:u,increment:d,decrement:p,incrementToMax:h,decrementToMin:f,commit:m}=t,g=(0,Ae.Bi)(),{spinButtonProps:v}=(0,Oe.y)({isDisabled:r,isReadOnly:o,isRequired:i,maxValue:16777215,minValue:0,onIncrement:d,onIncrementToMax:h,onDecrement:p,onDecrementToMin:f,value:c?c.toHexInt():void 0,textValue:c?c.toString("hex"):void 0}),[y,b]=(0,l.useState)(!1),{focusWithinProps:w}=(0,A.Rb)({isDisabled:r,onFocusWithinChange:b}),x=(0,l.useCallback)((e=>{Math.abs(e.deltaY)<=Math.abs(e.deltaX)||(e.deltaY>0?d():e.deltaY<0&&p())}),[p,d]),S=a||r||o||!y;(0,A.Q7)({onScroll:x,isDisabled:S},n);let{inputProps:_,...C}=(0,Ne.r)({...e,id:g,value:u,defaultValue:void 0,validate:void 0,[ee.Lf]:t,type:"text",autoComplete:"off",onChange:e=>{t.validate(e)&&t.setInputValue(e)}},t,n);return _=(0,Ae.v6)(_,v,w,{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false",onBlur:m}),"native"===s&&(_["aria-required"]=void 0),{inputProps:_,...C}}({...r,"aria-label":"Hex"},o,i),{focusProps:c,isFocused:u}=(0,h.og)({isTextInput:!0}),{hoverProps:d,isHovered:p}=(0,h.Mk)({});return(0,m.jsxs)("div",{className:(0,s.xW)(sF,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":n?"hexa":"hex",children:[(0,m.jsx)("input",{...(0,h.v6)(a,c,d),ref:i,className:lF({isFocused:u,isHovered:p,allowAlpha:n})}),n?(0,m.jsx)(IF,{color:e,setColor:t}):null]})},DF=({color:e,setColor:t,allowAlpha:n})=>{let r=e.toFormat("rgba"),{locale:o}=(0,h.Ym)();return(0,m.jsxs)("div",{className:(0,s.xW)(sF,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":n?"rgba":"rgb",children:[(0,m.jsx)(nN,{"aria-label":e.getChannelName("red",o),value:r.getChannelValue("red"),showStepper:!1,className:uF,onChange:e=>{t(r.withChannelValue("red",e).toFormat(SF))},step:1,minValue:0,maxValue:255}),(0,m.jsx)(nN,{"aria-label":e.getChannelName("green",o),value:r.getChannelValue("green"),showStepper:!1,className:uF,onChange:e=>{t(r.withChannelValue("green",e).toFormat(SF))},step:1,minValue:0,maxValue:255}),(0,m.jsx)(nN,{"aria-label":e.getChannelName("blue",o),value:r.getChannelValue("blue"),showStepper:!1,className:uF,onChange:e=>{t(r.withChannelValue("blue",e).toFormat(SF))},step:1,minValue:0,maxValue:255}),n?(0,m.jsx)(IF,{color:e,setColor:t}):null]})},TF={style:"percent",maximumFractionDigits:0},IF=({color:e,setColor:t})=>{let{locale:n}=(0,h.Ym)(),r=(0,l.useCallback)((n=>{t(e.withChannelValue("alpha",n))}),[e,t]);return(0,m.jsx)(nN,{"aria-label":e.getChannelName("alpha",n),value:e.getChannelValue("alpha"),formatOptions:TF,className:uF,showStepper:!1,onChange:r,minValue:0,maxValue:1})},MF=({channel:e,...t})=>{let{locale:n}=(0,h.Ym)(),r=function(e){let{channel:t,colorSpace:n,value:r,defaultValue:o,onChange:i,locale:a,...s}=e;if(null==r&&null==o)throw new Error("useColorSliderState requires a value or defaultValue");let[c,u]=D(r&&B(r),o&&B(o),i),d=(0,l.useMemo)((()=>n&&c?c.toFormat(n):c),[c,n]),p=(0,J.S)({...d.getChannelRange(t),...s,numberFormatter:null,value:d.getChannelValue(t),onChange(e){u(d.withChannelValue(t,e))},onChangeEnd(n){e.onChangeEnd&&e.onChangeEnd(d.withChannelValue(t,n))}}),{step:h,pageSize:f}=d.getChannelRange(t);return{...p,value:d,setValue(e){u(B(e))},getDisplayColor(){switch(t){case"hue":return F(`hsl(${d.getChannelValue("hue")}, 100%, 50%)`);case"lightness":case"brightness":case"saturation":case"red":case"green":case"blue":return d.withChannelValue("alpha",1);case"alpha":return d;default:throw new Error("Unknown color channel: "+t)}},getThumbValueLabel:()=>d.formatChannelValue(t,a),step:h,pageSize:f,isDragging:p.isThumbDragging(0)}}({...t,channel:e,locale:n}),o=l.useRef(null),i=l.useRef(null),{trackProps:a,thumbProps:c,inputProps:u}=function(e,t){let{trackRef:n,inputRef:r,orientation:o,channel:i,"aria-label":a,name:s}=e,{locale:l,direction:c}=(0,De.Ym)();e.label||a||e["aria-labelledby"]||(a=t.value.getChannelName(i,l));let{groupProps:u,trackProps:d,labelProps:p,outputProps:h}=(0,Me.P)({...e,"aria-label":a},t,n),{inputProps:f,thumbProps:m}=(0,Me.x)({index:0,orientation:o,isDisabled:e.isDisabled,name:s,trackRef:n,inputRef:r},t),g=t.getDisplayColor(),v={forcedColorAdjust:"none"};"hue"===i?f["aria-valuetext"]+=`, ${g.getHueName(l)}`:"alpha"!==i&&(f["aria-valuetext"]+=`, ${g.getColorName(l)}`);let{visuallyHiddenProps:y}=(0,Te.B)({style:{opacity:"0.0001",width:"100%",height:"100%",pointerEvents:"none"}});return{trackProps:{...(0,Ae.v6)(u,d),style:{...d.style,...v,background:(()=>{let e;switch(e="vertical"===o?"top":"ltr"===c?"right":"left",i){case"hue":return`linear-gradient(to ${e}, ${[0,60,120,180,240,300,360].map((e=>g.withChannelValue("hue",e).toString("css"))).join(", ")})`;case"lightness":{let n=t.getThumbMinValue(0),r=t.getThumbMaxValue(0);return`linear-gradient(to ${e}, ${g.withChannelValue(i,n).toString("css")}, ${g.withChannelValue(i,(r-n)/2).toString("css")}, ${g.withChannelValue(i,r).toString("css")})`}case"saturation":case"brightness":case"red":case"green":case"blue":case"alpha":return`linear-gradient(to ${e}, ${g.withChannelValue(i,t.getThumbMinValue(0)).toString("css")}, ${g.withChannelValue(i,t.getThumbMaxValue(0)).toString("css")})`;default:throw new Error("Unknown color channel: "+i)}})()}},inputProps:{...f,style:{...f.style,...y.style}},thumbProps:{...m,style:{...m.style,...v}},labelProps:p,outputProps:h}}({...t,channel:e,trackRef:o,inputRef:i,"aria-label":r.value.getChannelName(e,n)},r),{focusProps:d,isFocusVisible:p}=(0,h.og)();return(0,m.jsxs)("div",{className:(0,s.xW)(iF,{[VM({size:"xs"})]:"alpha"===e},"BaselineUI-ColorInput-ColorSlider"),"data-channel":e,...a,ref:o,children:["alpha"===e&&(0,m.jsx)("div",{className:gF}),(0,m.jsx)("div",{className:iF,style:a.style}),(0,m.jsxs)("div",{className:(0,s.xW)(mF({isFocusVisible:p}),"BaselineUI-ColorInput-ColorSliderThumb"),...c,children:[(0,m.jsx)("div",{className:gF,style:{backgroundColor:"#ffffff"}}),(0,m.jsx)("div",{style:{backgroundColor:r.getDisplayColor().toString("css"),height:8},className:iF}),(0,m.jsx)(h.s6,{children:(0,m.jsx)("input",{ref:i,...u,...d})})]})]})},NF=({color:e,setColor:t,allowAlpha:n,onChangeEnd:r})=>{let[o,i]=l.useState("hex"),{formatMessage:a}=DM(Jj);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(PF,{value:e,xChannel:"saturation",yChannel:"lightness",onChange:t,onChangeEnd:r}),(0,m.jsxs)("div",{className:fF,children:[(0,m.jsx)(MF,{channel:"hue",value:e,onChange:t,onChangeEnd:r}),n?(0,m.jsx)(MF,{channel:"alpha",value:e,onChange:t,onChangeEnd:r}):null]}),(0,m.jsxs)("div",{className:(0,s.xW)(fF,v.UV.variants({paddingTop:"none",gap:"sm"})),children:[(0,m.jsx)(zj,{label:a("colorFormat"),labelPosition:"start",variant:"ghost",items:wF,selectedKey:o,onSelectionChange:e=>{i(e)}}),"hex"===o&&(0,m.jsx)(AF,{color:e,setColor:e=>{t(e),r?.(e)},allowAlpha:n}),"rgb"===o&&(0,m.jsx)(DF,{color:e,setColor:e=>{t(e),r?.(e)},allowAlpha:n})]})]})},OF=({color:e,setColor:t,storePickedColorKey:n,addColorButtonLabel:r,removeColorButtonLabel:o,customColorsLabel:i,pickerMode:a,allowAlpha:c})=>{let{locale:u}=(0,h.Ym)(),{formatMessage:d}=DM(Jj),p=l.useRef(null),f=OM(p.current),[g,y]=MM(n,[]),b=l.useRef(null),[w,x]=l.useState(e),S=l.useMemo((()=>g.map((e=>({id:e,label:F(e).getColorName(u),description:e})))),[g,u]),_=(0,l.useCallback)((()=>{let t="active"===a?e:w;g.includes(t.toString(SF))?b.current?.querySelector(`[data-key='${t.toString(SF)}']`)?.classList.add(hF):y([...g,t.toString(SF)])}),[g,e,y,w,a]);(0,l.useEffect)((()=>{let e=b.current;function t(e){"_1dbkl5w"===e.animationName&&e.target?.classList.remove(hF)}return e?.addEventListener("animationend",t),()=>{e?.removeEventListener("animationend",t)}}),[]);let C=(0,h.Bi)(),E=(0,m.jsx)(eN,{ref:p,variant:"secondary",size:"md","aria-label":r,icon:k.c1,onPress:"active"===a?_:void 0}),z=(0,l.useCallback)((e=>(0,m.jsxs)(nR,{size:"content",className:aF({includesCustomColorPicker:!0}),style:{paddingBlockEnd:0},"aria-label":d("newColor"),children:[(0,m.jsx)(NF,{color:w,setColor:x,allowAlpha:c}),(0,m.jsx)(mI,{}),(0,m.jsx)(vI,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:(0,m.jsxs)(vI,{display:"inline-flex",gap:"lg",children:[(0,m.jsx)(YI,{label:d("cancel"),size:"sm",variant:"secondary",onPress:e}),(0,m.jsx)(YI,{label:d("add"),variant:"primary",onPress:()=>{_(),e()},size:"sm"})]})})]})),[w,_,d,c]),P=(0,l.useCallback)((e=>{(0,s.V1)(e instanceof Set,"Key must be a set");let n=[...e][0];n&&t(F(n).toFormat(SF))}),[t]);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(mI,{}),(0,m.jsxs)("div",{className:(0,s.xW)("_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6dy _1yep5z6ev _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jj _1yep5z6jk _1yep5z6jl","BaselineUI-ColorInput-CustomColors"),children:[(0,m.jsx)("span",{id:C,children:i}),(0,m.jsxs)(vI,{display:"flex",children:[!!g.length&&g.includes(e.toString(SF))&&(0,m.jsx)(eN,{variant:"secondary",size:"md",elementType:"div",icon:k.QG,"aria-label":o,onPress:()=>{y(g.filter((t=>t!==e.toString(SF))))}}),"active"===a&&E,"lazy"===a&&("mobile"===f?(0,m.jsxs)(hN,{children:[(0,m.jsx)(Qj,{children:E}),(0,m.jsx)(QO,{style:{zIndex:1e5},children:({close:e})=>z(e)})]}):(0,m.jsxs)(OI,{type:"dialog",children:[(0,m.jsx)(KI,{children:E}),(0,m.jsx)(sR,{placement:"right top",className:dF,offset:6,children:({close:e})=>z(e)})]}))]})]}),!!g.length&&(0,m.jsx)(TI,{items:S,layout:"grid","aria-labelledby":C,className:(0,s.xW)(oF,pF,v.UV.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:kF,ref:b,autoFocus:!1,selectionMode:"single",selectedKeys:[e.toString(SF)],onSelectionChange:P})]})},RF=l.forwardRef((({setColor:e,color:t,triggerRef:n,autoFocus:r,presets:o,state:i},a)=>{let{formatMessage:c}=DM(Jj),u=(0,l.useCallback)((t=>{if(t instanceof Set&&t.size){let n=[...t][0],r=o.find((e=>e.id===n));(0,s.V1)(r,"Preset not found"),e(r.id===EF?null:F(r.id).toFormat(SF)),i.close()}}),[i,o,e]);return(0,m.jsx)("div",{className:(0,s.xW)(pF,"BaselineUI-ColorInput-Presets"),style:{minWidth:n.current?.offsetWidth},ref:a,children:(0,m.jsx)(TI,{autoFocus:r,items:o,layout:"grid","aria-label":c("colorPresets"),className:oF,renderOption:kF,selectionMode:"single",selectedKeys:[t?.toString(_F)||EF],onSelectionChange:u})})}));RF.displayName="ColorPresetList";var jF=l.forwardRef((({color:e,colorLabel:t,colorName:n,...r},o)=>{let i=l.useRef(null),{hoverProps:a,isHovered:c}=(0,h.Mk)({isDisabled:r.isDisabled}),{buttonProps:u,isPressed:d}=(0,h.sL)(r,i),{isFocusVisible:p,focusProps:f}=(0,h.og)(),g=(0,s.nP)({"data-block-id":r["data-block-id"],"data-focused":p,"data-focus-visible":p,"data-disabled":r.isDisabled,"data-hovered":c,"data-pressed":d}),v=RT(),y=RT();return(0,m.jsxs)("button",{...(0,h.v6)(u,a,f,g),style:r.style,className:(0,s.xW)(tF({isHovered:c,isFocusVisible:p||r.isOpen,isDisabled:r.isDisabled,labelPosition:r.labelPosition}),"BaselineUI-ColorInputButton",r.className),ref:UT(o,i),id:v,"aria-labelledby":r["aria-labelledby"]||`${v} ${y}`,children:[(0,m.jsx)(yF,{color:e?.toString("hexa")}),t?(0,m.jsx)("div",{className:"_1dbkl5f z9nup87",id:y,"aria-hidden":"true",children:n}):"string"==typeof n&&(0,m.jsx)(h.s6,{children:n})]})}));jF.displayName="ColorInputButton";var FF=l.forwardRef((({className:e,style:t,icon:n,...r},o)=>{let i=l.useRef(null),{hoverProps:a,isHovered:c}=(0,h.Mk)({isDisabled:r.isDisabled}),{buttonProps:u,isPressed:d}=(0,h.sL)(r,i),{isFocusVisible:p,focusProps:f}=(0,h.og)(),g=(0,s.nP)({"data-block-id":r["data-block-id"],"data-focused":p,"data-focus-visible":p,"data-disabled":r.isDisabled,"data-hovered":c,"data-pressed":d});return(0,m.jsxs)("button",{...(0,h.v6)(u,a,f,g),ref:UT(o,i),style:t,className:(0,s.xW)(cF({isHovered:c||d||r.isOpen,isFocusVisible:p,isDisabled:r.isDisabled}),"BaselineUI-IconColorInputButton",e),children:[(0,m.jsx)(n,{size:16}),(0,m.jsx)("div",{className:"_1dbkl5e",style:{backgroundColor:r.color||void 0}})]})}));function BF({colorLabel:e,color:t,presets:n}){let{formatMessage:r}=DM(),{locale:o}=(0,h.Ym)(),i=(0,l.useMemo)((()=>n.find((e=>e.id===EF?!t:!!t&&function(e,t){return e?.getChannelValue("alpha")?t?.toString(_F)===e.toString(_F):!t?.getChannelValue("alpha")}(t,F(e.id))))),[n,t]),a=(0,l.useMemo)((()=>"function"==typeof e?e?.(t):!!e&&function(e,t,n){return t?.label?t.label:0===e?.getChannelValue("alpha")?n:e?.toString("rgba")}(t,i,r(LF.transparent))),[t,e,r,i]);return{colorName:a,humanReadableName:(0,l.useMemo)((()=>{if(i?.label)return i.label;t?.getColorName(o)}),[t,o,i?.label])}}FF.displayName="IconColorInputButton";var LF=TM({transparent:{defaultMessage:"Transparent",id:"transparent"}}),VF=l.forwardRef((({className:e,style:t,allowRemoval:n,allowAlpha:r=!0,presets:o,labelPosition:i="top",colorLabel:a=!0,includePicker:c=!0,onChange:d,onChangeEnd:p,defaultValue:g,storePickedColorKey:v="baselinePickedColor",value:y,addColorButtonLabel:b,removeColorButtonLabel:w,customColorsLabel:x,renderTriggerButton:S=({isOpen:e,color:t,ref:n,colorName:r,triggerProps:o,labelId:s})=>(0,m.jsx)(jF,{...(0,h.v6)(o,{...P.label?{"aria-labelledby":s}:{"aria-label":P["aria-label"]}}),ref:n,isOpen:e,isDisabled:P.isDisabled,labelPosition:i,color:t,colorLabel:a,colorName:r}),pickerMode:_="active",offset:C=2,placement:E=("start"===i?"bottom end":"bottom start"),"data-block-id":k,"data-block-class":z,...P},A)=>{let D=l.useRef(null),T=l.useRef(null),I=(0,f.Tl)(P),{triggerProps:M,overlayProps:N}=(0,h.oJ)({type:"listbox"},I,D),O=LM(P.portalContainer),[R,j]=u(void 0===y?void 0:CF(y),CF(g),(e=>d?.(e?.toFormat("rgba")||null))),{formatMessage:B}=DM(Jj),L=(0,l.useMemo)((()=>function(e,t){let n=t?.map((e=>({id:F(e.color).toString(_F),label:e.label})))||[];return[...n,{id:EF,label:e}]}(B(KF.noColor),o)),[o,B]),V=(0,h.Bi)(),{colorName:K}=BF({colorLabel:a,color:R,presets:L}),H=(0,l.useMemo)((()=>L.filter((e=>n||e.id!==EF))),[L,n]),$=b||B(KF.addColor),U=w||B(KF.removeColor),W=x||B(KF.customColors),q=(0,m.jsx)(OF,{color:R||xF,setColor:e=>{j(e),p?.(e?.toFormat("rgba")||null)},storePickedColorKey:v,addColorButtonLabel:$,removeColorButtonLabel:U,customColorsLabel:W,pickerMode:_,allowAlpha:r});return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("div",{className:(0,s.xW)({[nF]:"start"===i},"BaselineUI-ColorInput-Trigger",e),"data-block-id":k,"data-block-class":z,style:t,ref:A,children:[P.label?(0,m.jsx)("label",{id:V,className:rF({labelPosition:i}),children:P.label}):null,S({isOpen:I.isOpen,color:R,ref:D,colorName:K,triggerProps:M,labelId:V})]}),(0,m.jsx)(aR,{...P,portalContainer:O,placement:E,state:I,offset:C,className:(0,s.xW)(dF,"BaselineUI-ColorInput-Popover"),triggerRef:D,overlayProps:N,children:(0,m.jsxs)(nR,{size:"content",className:aF({includesCustomColorPicker:c}),ref:T,"aria-labelledby":V,"aria-label":P["aria-label"],children:[c&&"active"===_?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(NF,{color:R||xF,setColor:j,allowAlpha:r,onChangeEnd:e=>{p?.(e?.toFormat("rgba")||null)}}),q]}):null,!!H.length&&(0,m.jsxs)(m.Fragment,{children:[c&&"active"===_?(0,m.jsx)(mI,{}):null,(0,m.jsx)(RF,{autoFocus:(!c||"active"!==_)&&"first",state:I,triggerRef:D,presets:H,color:R,setColor:e=>{j(e),p?.(e?.toFormat("rgba")||null)}})]}),c&&"lazy"===_?q:null]})})]})}));VF.displayName="ColorInput";var KF=TM({addColor:{defaultMessage:"Add color",id:"addColor"},removeColor:{defaultMessage:"Remove color",id:"removeColor"},customColors:{defaultMessage:"Custom colors",id:"customColors"},noColor:{defaultMessage:"No color",id:"noColor"},transparent:{defaultMessage:"Transparent",id:"transparent"}}),HF=l.forwardRef((({className:e,style:t,icon:n,variant:r="standard","data-block-id":o,tooltipProps:i,...a},c)=>{let u=l.useRef(null),d=(0,l.useCallback)((({isOpen:e,color:t,ref:n,colorName:o,triggerProps:s})=>(0,m.jsx)(XM,{variant:"inverse",size:"sm",includeArrow:!1,text:a["aria-label"],placement:"bottom start",offset:4,...i,children:"standard"===r?(0,m.jsx)(jF,{...s,"aria-label":a["aria-label"],ref:n,isOpen:e,isDisabled:a.isDisabled,color:t,colorLabel:!1,colorName:o}):(0,m.jsx)(FF,{...s,isOpen:e,icon:k.N$,color:t?.toString("hexa"),ref:n,isDisabled:a.isDisabled,"aria-label":a["aria-label"]})})),[a,i,r]);return(0,m.jsxs)(vI,{display:"flex",flexDirection:"row",gap:"md",paddingX:"standard"===r?"md":"none",alignItems:"center",className:(0,s.xW)("BaselineUI-IconColorInput",e),"data-block-id":o,style:t,ref:UT(c,u),children:["standard"===r&&n?(0,m.jsx)(n,{size:24,className:(0,v.UV)({color:"icon.primary"})}):null,(0,m.jsx)(VF,{...a,colorLabel:!1,renderTriggerButton:d})]})}));HF.displayName="IconColorInput";var $F={ar:{redo:"إعادة",undo:"تراجع"},cs:{redo:"Opakovat",undo:"Zrušit"},cy:{redo:"Ail-wneud",undo:"Dad-wneud"},da:{redo:"Gentag",undo:"Fortryd"},de:{redo:"Wiederholen",undo:"Rückgängig machen"},el:{redo:"Επανάληψη",undo:"Αναίρεση"},"en-GB":{redo:"Redo",undo:"Undo"},en:{redo:"Redo",undo:"Undo"},es:{redo:"Rehacer",undo:"Deshacer"},fi:{redo:"Tee sittenkin",undo:"Peru"},"fr-CA":{redo:"Rétablir",undo:"Annuler"},fr:{redo:"Rétablir",undo:"Annuler"},he:{redo:"ביצוע מחדש",undo:"ביטול פעולה"},hr:{redo:"Ponovi",undo:"Vrati"},id:{redo:"Ulangi",undo:"Kembalikan"},it:{redo:"Ripristina",undo:"Annulla"},ja:{redo:"やり直す",undo:"取り消す"},ko:{redo:"실행복귀",undo:"실행취소"},ms:{redo:"Buat Semula",undo:"Buat Asal"},"nb-NO":{redo:"Gjør om igjen",undo:"Angre"},nl:{redo:"Opnieuw",undo:"Herstel"},pl:{redo:"Ponów",undo:"Cofnij"},"pt-PT":{redo:"Refazer",undo:"Desfazer"},pt:{redo:"Refazer",undo:"Desfazer"},ru:{redo:"Повторить",undo:"Отменить"},sk:{redo:"Opakovať",undo:"Zrušiť"},sl:{redo:"Uveljavi",undo:"Razveljavi"},sv:{redo:"Gör om",undo:"Ångra"},th:{redo:"ทำซ้ำ",undo:"ถอนคำสั่งกลับ"},tr:{redo:"Yinele",undo:"Geri Al"},uk:{redo:"Повторити",undo:"Скасувати"},"zh-Hans":{redo:"重做",undo:"撤销"},"zh-Hant":{redo:"重作",undo:"復原"}},UF=uI({defaultClassName:"mnnh5s1 _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6la _1yep5z6ld _1yep5z6lp _1yep5z6lo _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ln",variantClassNames:{isInline:{true:"mnnh5s2 _1yep5z6wo _1yep5z6wp _1yep5z6wq _1yep5z6xc _1yep5z6xd _1yep5z6xe _1yep5z6y0 _1yep5z6y1 _1yep5z6y2 _1yep5z6yo _1yep5z6yp _1yep5z6yq _1yep5z6138 _1yep5z6183 _1yep5z6184",false:"_1yep5z617q _1yep5z6127"},isHovered:{true:"mnnh5s4"},hasLoadedImage:{true:"_1yep5z6126"},includeCheckeredBackground:{true:"mnnh5s6"},showFocusRing:{true:"_1yep5z613j _1yep5z617w _1yep5z617u _1yep5z6140 _1yep5z617x"},isDisabled:{true:"mnnh5s8 _1yep5z6zd"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,hasLoadedImage:!1},"_1yep5z61oh"],[{isHovered:!0,hasLoadedImage:!0},"mnnh5s9"],[{isInline:!0,isDisabled:!0},"_1yep5z61pb"],[{hasLoadedImage:!0,includeCheckeredBackground:!0},"_1yep5z61o9"]]}),WF="_1yep5z6d8",qF=uI({defaultClassName:"mnnh5sa",variantClassNames:{isInline:{true:"mnnh5sb",false:"mnnh5sc"},isDisabled:{true:"mnnh5sd"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]}),GF=uI({defaultClassName:"_1i0ytqa3 _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6ln _1yep5z6lo _1yep5z6lq",variantClassNames:{isFocusVisible:{true:"_1i0ytqa4"},isInline:{true:"_1yep5z612f",false:"_1yep5z612h"},isDisabled:{true:"_1i0ytqa7 _1yep5z6zd",false:"_1i0ytqa8"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isFocusVisible:!0},"_1i0ytqa9 _1yep5z61p7 _1yep5z61u5 _1yep5z61u7"],[{isInline:!1,isFocusVisible:!0},"_1i0ytqaa"],[{isInline:!0,isDisabled:!0},"_1yep5z61oi"],[{isInline:!1,isDisabled:!0},"_1yep5z61ok"]]}),ZF=uI({defaultClassName:"_1i0ytqab _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ln",variantClassNames:{isInline:{false:"_1yep5z6126"},isDisabled:{true:"_1i0ytqad _1yep5z6zd"}},defaultVariants:{},compoundVariants:[]}),YF=uI({defaultClassName:"_1i0ytqa1 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6ln",variantClassNames:{isInline:{false:"_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b"}},defaultVariants:{},compoundVariants:[]});var XF=180,JF={size:1,thinning:0,smoothing:0,streamline:0,easing:e=>e,start:{taper:0,easing:e=>e,cap:!0},end:{taper:0,easing:e=>e,cap:!0},simulatePressure:!1},QF=l.forwardRef((({className:e,style:t,canvasClassName:n,canvasStyle:r,isBound:o=!0,strokeWidth:i=2,strokeColor:a="#3A87FD",onChange:c,defaultValue:u,onChangeEnd:p,enableHistory:f=!1,isInline:g=!0,isDisabled:v,placeholder:y,clearLabel:b,undoLabel:x,redoLabel:S,footerClassName:_,canvasRef:C,value:E,footerStyle:k,"data-block-id":z,"data-block-class":P,"aria-label":A="Drawing canvas",description:D="This is a canvas for drawing using a mouse or touch input.",...T},I)=>{let M=DM($F),N=l.useRef(null),[O,R]=l.useState(E||u||[]),j=l.useMemo((()=>({...JF,...T})),[T]),[F,B]=l.useState(),L=(0,h.Bi)(),{labelProps:V,fieldProps:K}=(0,h.MW)({...T,"aria-label":A,labelElementType:"span"}),{isFocusVisible:H,focusProps:$}=(0,h.og)({within:!0}),{hoverProps:U,isHovered:W}=(0,h.Mk)({isDisabled:v}),{undo:q,redo:G,canRedo:Z,canUndo:Y,push:X}=zM(O,{onAction:e=>{e&&(R(e),p?.(e))},isDisabled:!f}),{keyboardProps:J}=(0,h.de)({onKeyDown:e=>{"Backspace"===e.key?re():"z"===e.key&&(e.metaKey||e.ctrlKey)&&(e.shiftKey?Z&&G():Y&&q())}}),[Q,ee]=(0,l.useState)(!1),te=(0,l.useCallback)((e=>{let t=e.currentTarget.getBoundingClientRect();B(t),e.target.setPointerCapture(e.pointerId);let n=[e.clientX-t.x,e.clientY-t.y,e.pressure];R((e=>[...e,[n]])),ee(!0)}),[]),ne=(0,l.useCallback)((e=>{if(1!==e.buttons||!F)return;let t=nB(e.nativeEvent).map((e=>[o?d(e.clientX-F.left,0,F.width):e.clientX-F.left,o?d(e.clientY-F.top,0,F.height):e.clientY-F.top,e.pressure]));R((e=>{let n=[...e];return n[e.length-1]=[...n[e.length-1],...t],n}))}),[F,o]);(0,l.useEffect)((()=>{c?.(O)}),[O,c]);let re=()=>{R([]),c?.([]),X([])};return(0,m.jsxs)("div",{ref:UT(N,I),className:(0,s.xW)("_1i0ytqa0","BaselineUI-FreehandCanvas",e),style:t,"aria-disabled":v,"data-block-id":z,"data-block-class":P,children:[T.label||f?(0,m.jsxs)("div",{className:YF({isInline:g}),children:[T.label?(0,m.jsx)(aN,{type:"label",size:"sm",...V,children:T.label}):(0,m.jsx)("span",{}),f?(0,m.jsxs)("div",{children:[(0,m.jsx)(eN,{variant:"secondary",size:"sm",isDisabled:!Y||v,icon:w.ej,onPress:q,"aria-label":x||M.formatMessage("undo")}),(0,m.jsx)(eN,{variant:"secondary",size:"sm",isDisabled:!Z||v,icon:w.Uf,onPress:G,"aria-label":S||M.formatMessage("redo")})]}):null]}):null,(0,m.jsxs)("div",{role:"application",...(0,h.v6)($,J,U,K),tabIndex:v?void 0:0,className:(0,s.xW)(UF({isInline:g,isHovered:W}),GF({isFocusVisible:H,isInline:g,isDisabled:!!v}),n),"aria-describedby":T["aria-describedby"]||L,style:r,ref:C,children:[(0,m.jsx)(h.s6,{children:(0,m.jsx)("div",{id:L,children:D})}),(0,m.jsx)("svg",{width:r?.width||"100%",height:r?.height||"100%",onPointerDown:te,onPointerMove:ne,onPointerUp:()=>{F&&(p?.(O),X(O),ee(!1))},children:(E||O).map(((e,t,n)=>t<n.length-1||!Q?(0,m.jsx)(eB,{line:e,options:j,strokeColor:a,strokeWidth:i},t):(0,m.jsx)(tB,{line:e,options:j,strokeColor:a,strokeWidth:i},t)))})]}),y||b?(0,m.jsx)("div",{style:k,className:(0,s.xW)(ZF({isInline:g,isDisabled:v}),_),children:!O.length&&y||!b?(0,m.jsx)(YI,{size:"sm",variant:"ghost",label:y,isDisabled:!0}):(0,m.jsx)(YI,{size:"sm",variant:"ghost",label:b,isDisabled:v,onPress:re})}):null]})}));QF.displayName="FreehandCanvas";var eB=l.memo((({line:e,options:t,strokeColor:n,strokeWidth:r})=>{let o=(0,l.useMemo)((()=>(0,s.op)(Je(e.map((([e,t,n])=>({x:e,y:t,pressure:n}))),t))),[e,t]);return(0,m.jsx)("path",{d:o,stroke:n,strokeWidth:r})}));eB.displayName="Stroke";var tB=l.memo((({line:e,options:t,strokeColor:n,strokeWidth:r})=>{let o=function({line:e,options:t}){let n=(0,l.useRef)([]),r=(0,l.useMemo)((()=>{let r,o=Math.ceil(e.length/XF);for(let i=0;i<o;i++)if(i===o-1||!n.current[i]){let o=e.slice(i*XF-(i>0?1:0),i*XF+XF);r=(0,s.op)(Je(o.map((([e,t,n])=>({x:e,y:t,pressure:n}))),t)),o.length>=(i>0?XF+1:XF)&&(n.current[i]=r)}return r}),[e,t]);return[...n.current,r]}({line:e,options:t});return(0,m.jsx)(m.Fragment,{children:o.map(((e,t)=>(0,m.jsx)("path",{d:e,stroke:n,strokeWidth:r},t)))})}));function nB(e){if("function"==typeof e.getCoalescedEvents){let t=e.getCoalescedEvents();return t.length>0?t.flatMap((e=>nB(e))):[e]}return[e]}tB.displayName="SplitStroke";var rB=uI({defaultClassName:"_1vac7ws1",variantClassNames:{isDragging:{true:"_1vac7ws2"}},defaultVariants:{},compoundVariants:[]});var oB=function(e){var t;return t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Rr(t,e),t}(El),t.defaultAbles=e,t}([Zi,Qi,aa,Pa]),iB=l.forwardRef((({className:e,children:t,isRotatable:n,isResizable:r,isDraggable:o,style:i,onTransform:a,onTransformStart:c,onTransformEnd:u,onDoubleClick:d,onDragStart:p,onDragEnd:f,onDrag:g,onResizeStart:v,onResizeEnd:b,onResize:w,onRotateStart:x,onRotateEnd:S,onRotate:_,onSnap:C,isSnappable:E,elementGuidelines:k,hideAnchorOnDrag:P=!0,title:A,rotationPosition:D,autoUpdate:T,bound:I,snapRotationDegrees:M,snapRotationThreshold:N,scrollableAncestor:O,renderDirections:R,stopPropagation:j,transformOrigin:F,preventDefault:B},L)=>{let V=(0,l.useRef)(null),K=(0,l.useRef)(null),[H,$]=(0,l.useState)(document),U=(0,l.useRef)(H.createElement("div")),[W,q]=(0,l.useState)({}),[G,Z]=(0,l.useState)(!1),[Y,X]=(0,l.useState)(!1),[J,Q]=(0,l.useState)(),ee=function(e,t){let[n,r]=(0,l.useState)([]),o=()=>e?.flatMap((e=>[...t.querySelectorAll(e)])).map((e=>({current:e})));return(0,y.useGranularEffect)((()=>{r(o())}),[],[o]),(0,y.useGranularEffect)((()=>{let e=o();r(e)}),[e],[o]),n}(k,H);(0,l.useLayoutEffect)((()=>{let e=U.current;return U.current=H.createElement("div"),()=>{e.remove()}}),[H]);let{keyboardProps:te}=(0,h.de)({onKeyDown:e=>{let t=e.shiftKey?10:1,n=e.metaKey||e.ctrlKey;function r(e,r="x"){n?K.current?.request("rotatable",{deltaRotate:e*t},!0):K.current?.request("draggable","x"===r?{deltaX:e*t}:{deltaY:e*t},!0)}switch(n&&e.shiftKey&&(t=45),e.key){case"ArrowRight":r(1);break;case"ArrowLeft":r(-1);break;case"ArrowUp":r(-1,"y");break;case"ArrowDown":r(1,"y")}requestAnimationFrame((()=>{K.current?.updateRect()}))}});(0,l.useEffect)((()=>{let e=BT(V.current);$(e);let t=U.current;function n(e){X(e.shiftKey)}function r(){X(!1)}return e.body.append(U.current),e.addEventListener("keydown",n),e.addEventListener("keyup",r),()=>{e.removeEventListener("keydown",n),e.removeEventListener("keyup",r),t.remove()}}),[]),function(e){let{scrollable:t,ownerDocument:n,onScroll:r}=e;(0,l.useEffect)((()=>{let e=(0,s.gi)(t,n);if(e)return("static"===e.style.position||!e.style.position)&&console.warn("Scrollable ancestor passed to `Transform` component should not be statically positioned."),e.addEventListener("scroll",r),()=>{e.removeEventListener("scroll",r)}}),[t,r,n])}({scrollable:O,onScroll:()=>{K.current?.updateRect()},ownerDocument:H});let ne=(0,l.useCallback)((e=>{q((t=>({...t,...e.style}))),a?.(e)}),[a]),re=(0,l.useCallback)((e=>{if(Z(!0),V.current?.focus(),I){let e=(0,s.gi)(I,H)?.getBoundingClientRect();Q({position:"client",left:e?.left??0,top:e?.top??0,right:e?.right??0,bottom:e?.bottom??0})}p?.(e)}),[I,H,p]),oe=(0,l.useCallback)((e=>{Z(!1),f?.(e)}),[f]),ie=t({style:{...W.width&&{width:W.width},...W.height&&{height:W.height}}});return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{role:"button",...te,ref:UT(V,L),style:{display:"inline-block",...i,...W},className:(0,s.xW)("_1vac7ws0",e),onDoubleClick:d,tabIndex:0,title:A,children:ie}),(0,z.createPortal)((0,m.jsx)(oB,{ref:K,target:V,draggable:o,resizable:r,rotatable:n,keepRatio:Y,throttleDrag:1,snappable:E||!!I,elementGuidelines:ee,snapRenderThreshold:.9,className:rB({isDragging:G&&P}),onRender:ne,onDragStart:re,onDragEnd:oe,useResizeObserver:T,useMutationObserver:T,onRenderEnd:u,onDrag:g,onResizeStart:v,onResizeEnd:b,onResize:w,onRotateStart:x,onRotateEnd:S,onRotate:_,onRenderStart:c,onSnap:C,rotationPosition:D,bounds:J,snapRotationDegrees:M,snapRotationThreshold:N,renderDirections:R,stopPropagation:j,preventDefault:B,transformOrigin:F}),U.current)]})}));iB.displayName="Transform";var aB={ar:{delete:"حذف",selectImage:"تحديد صورة"},cs:{delete:"Smazat",selectImage:"Vybrat obrázek"},cy:{delete:"Dileu",selectImage:"Dewiswch Ddelwedd"},da:{delete:"Slet",selectImage:"Vælg billede"},de:{delete:"Löschen",selectImage:"Bild auswählen"},el:{delete:"Διαγραφή",selectImage:"Επιλογή εικόνας"},"en-GB":{delete:"Delete",selectImage:"Select Image"},en:{delete:"Delete",selectImage:"Select Image"},es:{delete:"Eliminar",selectImage:"Seleccionar imagen"},fi:{delete:"Poista",selectImage:"Valitse kuva"},"fr-CA":{delete:"Supprimer",selectImage:"Sélectionner une image"},fr:{delete:"Supprimer",selectImage:"Sélectionner une image"},he:{delete:"מחיקה",selectImage:"בחירת תמונה"},hr:{delete:"Obriši",selectImage:"Odaberi sliku"},id:{delete:"Hapus",selectImage:"Pilih Gambar"},it:{delete:"Elimina",selectImage:"Seleziona immagine"},ja:{delete:"削除",selectImage:"イメージを選択"},ko:{delete:"삭제",selectImage:"이미지 선택"},ms:{delete:"Padam",selectImage:"Pilih Imej"},"nb-NO":{delete:"Slett",selectImage:"Velg bilde"},nl:{delete:"Verwijder",selectImage:"Selecteer afbeelding"},pl:{delete:"Usuń",selectImage:"Wybierz obraz"},"pt-PT":{delete:"Apagar",selectImage:"Selecionar imagem"},pt:{delete:"Apagar",selectImage:"Selecionar Imagem"},ru:{delete:"Удалить",selectImage:"Выбрать изобр."},sk:{delete:"Zmazať",selectImage:"Vybrať obrázok"},sl:{delete:"Izbriši",selectImage:"Izberi sliko"},sv:{delete:"Radera",selectImage:"Välj bild"},th:{delete:"ลบ",selectImage:"เลือกรูปภาพ"},tr:{delete:"Sil",selectImage:"Resim Seç"},uk:{delete:"Видалити",selectImage:"Обрати зображення"},"zh-Hans":{delete:"删除",selectImage:"选择图像"},"zh-Hant":{delete:"刪除",selectImage:"選取圖像"}},sB=l.forwardRef((({className:e,style:t,isInline:n=!0,accept:r="image/*",defaultImageSrc:o,imageSrc:i,imageAlt:a,pickerButtonLabel:c,isDisabled:d,onDrop:p,onPaste:f,includeCheckeredBackground:g=!0,"data-block-id":v,"data-block-class":y,pickerButtonStyle:b,pickerButtonClassName:w,footerClassName:x,footerStyle:S,clearLabel:_,placeholder:C,labelStyle:E,labelClassName:k,...z},P)=>{let A=l.useRef(null),D=l.useRef(null),{formatMessage:T}=DM(aB),[I,M]=u(i,o||null,(e=>{(0,s.V1)("string"!=typeof e),z.onValueChange?.(e?[e]:[])})),N=(0,l.useMemo)((()=>function(e){return e instanceof File?URL.createObjectURL(e):e}(I||void 0)),[I]),{fieldProps:O,labelProps:R}=(0,h.Mt)(z),{dropProps:j,isDropTarget:F}=(0,h.Hd)({ref:A,onDrop:async e=>{if(d)return;let t=await kR({items:e.items});t.length&&M(t[0]),p?.(e)},...z}),{clipboardProps:B}=(0,h.iD)({onPaste:async e=>{if(d)return;let t=await kR({items:e});t.length&&M(t[0]),f?.(e)},...z}),L={type:"file",onChange:e=>{let t=[...e.target.files];M(t[0]),z.onChange?.(e)},accept:r,disabled:d},{focusProps:V,isFocused:K,isFocusVisible:H}=(0,h.og)({within:!0}),{hoverProps:$,isHovered:U}=(0,h.Mk)({isDisabled:d}),{imgProps:W,isLoading:q,isLoaded:G}=xM({src:N,alt:a||""}),Z={label:c||T("selectImage"),onPress:()=>A.current?.click(),variant:"secondary",isDisabled:d,excludeFromTabOrder:!0,className:(0,s.xW)(qI({isFocusVisible:H}),{[WF]:F&&!d},w),style:b},Y=(0,s.nP)({"data-loaded":G,"data-block-id":v,"data-block-class":y,"data-hovered":U,"data-focused":K,"data-drop-target":F,"data-disabled":d,"data-focus-visible":H});return(0,m.jsxs)(vI,{...Y,className:(0,s.xW)("BaselineUI-ImageDropZone",e),display:"flex",flexDirection:"column",alignItems:"center",style:t,ref:P,children:[(0,m.jsxs)("label",{...(0,h.v6)(j,$,V,R),className:(0,s.xW)(UF({isInline:n,isHovered:U,isDisabled:d,hasLoadedImage:!!N&&G,showFocusRing:F||!!N&&H}),k),style:E,ref:A,children:[(0,m.jsx)(h.s6,{children:(0,m.jsx)("input",{...(0,h.v6)(O,B,L),ref:D})}),!N&&(0,m.jsx)(YI,{...Z}),!!N&&(q?(0,m.jsx)(UR,{}):(0,m.jsx)("img",{className:qF({isInline:n,isDisabled:d,hasLoadedImage:!!N&&G&&g}),...W}))]}),C||_?(0,m.jsx)("div",{style:S,className:(0,s.xW)(ZF({isInline:n,isDisabled:d}),x),children:!N&&C||!_?(0,m.jsx)(YI,{size:"sm",variant:"ghost",label:C,isDisabled:!0}):(0,m.jsx)(YI,{size:"sm",variant:"ghost",label:_,isDisabled:d,onPress:()=>{M(null),D.current&&(D.current.value="")}})}):null]})}));sB.displayName="ImageDropZone";var lB="_1vm2oh48 _1yep5z6lo _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",cB=uI({defaultClassName:"_1vm2oh40 mnnh5s1 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6lt _1yep5z6lr _1yep5z6ic _1yep5z6lu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6la _1yep5z6lp _1yep5z6id _1yep5z6ie _1yep5z6if",variantClassNames:{accent:{theme:"_1vm2oh41",positive:"_1vm2oh42"},isInline:{true:"mnnh5s2 _1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z6137 _1yep5z6182 _1yep5z6184",false:"_1yep5z612h"},isFocusVisible:{true:"_1yep5z613j _1yep5z617w _1yep5z617u _1yep5z6140 _1yep5z617x"},isDisabled:{true:"mnnh5s8 z9nup83 _1yep5z6zd"},isHovered:{true:"_1vm2oh47"}},defaultVariants:{},compoundVariants:[[{accent:"positive",isInline:!0},"_1yep5z61oi"],[{accent:"theme",isInline:!0},"_1yep5z61o7"],[{accent:"positive",isInline:!1},"_1yep5z61ok"],[{accent:"theme",isInline:!1},"_1yep5z61o9"],[{isFocusVisible:!0,isInline:!0},"_1yep5z61q3 _1yep5z61tx _1yep5z61tz _1yep5z61u0"],[{isHovered:!0,isInline:!0},"_1yep5z61u0 _1yep5z61q3 _1yep5z61tx _1yep5z61tz"],[{isHovered:!0,isInline:!1,accent:"positive"},"_1yep5z61oj"],[{isHovered:!0,isInline:!1,accent:"theme"},"_1yep5z61ob"],[{isHovered:!0,isInline:!0,accent:"theme"},"_1yep5z61o8"]]}),uB=l.forwardRef((({className:e,style:t,isDisabled:n,isInline:r=!0,imageAlt:o,imageSrc:i,svgSrc:a,textValue:l,textStyle:c,onPress:u,onDelete:d,deleteAriaLabel:p,addAriaLabel:f,accent:g="positive","data-block-id":v,"data-block-class":y,...b},x)=>{let{focusProps:S,isFocused:_,isFocusVisible:C}=(0,h.og)({within:!0}),{isHovered:E,hoverProps:k}=(0,h.Mk)({isDisabled:n}),{pressProps:z}=(0,h.dD)({isDisabled:n,onPress:u});(0,s.V1)(i||a||l,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop.");let P=(0,s.nP)({"data-hovered":E,"data-focus-visible":C,"data-focused":_,"data-disabled":n});return(0,m.jsxs)("div",{...b,className:(0,s.xW)(cB({isInline:r,isFocusVisible:C,isDisabled:n,isHovered:E,accent:g}),"BaselineUI-Preview",e),"data-block-id":v,"data-block-class":y,"aria-label":b["aria-label"]||o||l,style:t,ref:x,children:["string"==typeof a?(0,m.jsx)("button",{disabled:n,...(0,h.v6)(k,S,z,P),className:lB,"aria-label":f,dangerouslySetInnerHTML:{__html:a}}):(0,m.jsxs)("button",{...(0,h.v6)(k,S,z,P),disabled:n,style:c,"aria-label":f,className:lB,children:[i?(0,m.jsx)("img",{src:i,alt:o,className:qF({isInline:r,isDisabled:n})}):null,!!a&&"object"==typeof a&&a,l]}),d?(0,m.jsx)(eN,{isDisabled:n,className:"_1vm2oh49 _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6g4","aria-label":p,size:"xs",icon:w.uc,onPress:d}):null]})}));uB.displayName="Preview";var dB=uI({defaultClassName:"cw3m0n8 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),pB=uI({defaultClassName:"cw3m0n0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{labelPosition:{end:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z6vl _1yep5z6vm _1yep5z6vn",start:"_1yep5z615a _1yep5z615b _1yep5z615c _1yep5z616m _1yep5z616n _1yep5z616o"}},defaultVariants:{},compoundVariants:[]}),hB=uI({defaultClassName:"cw3m0n3 _16vugd06",variantClassNames:{isFocusVisible:{true:"_16vugd09"},isSelected:{true:"_16vugd08"},isDisabled:{true:"_16vugd0b"}},defaultVariants:{},compoundVariants:[]}),fB=({label:e,description:t},{isSelected:n,isFocusVisible:r,isDisabled:o,optionLabelPosition:i})=>(0,m.jsxs)("div",{className:pB({labelPosition:i}),children:[(0,m.jsx)("div",{className:hB({isSelected:n,isFocusVisible:r,isDisabled:o}),children:n?(0,m.jsx)("div",{className:"cw3m0n7"}):null}),e?(0,m.jsxs)("div",{className:"_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69c _1yep5z69d _1yep5z69e",children:[(0,m.jsx)("span",{className:YR({isDisabled:o}),children:e}),t?(0,m.jsx)("span",{className:dB({isDisabled:o}),children:t}):null]}):null]}),mB=({state:e,renderOption:t=fB,item:n,optionLabelPosition:r="end",optionStyle:o,optionClassName:i,isReadOnly:a,...c})=>{let u=!!c.isDisabled||!!c.disabledValues?.includes(n.id),d=l.useRef(null),{inputProps:p,isPressed:f,isSelected:g}=(0,h.zU)({...c,isDisabled:u,children:n.label,value:n.id},e,d),{focusProps:v,isFocusVisible:y,isFocused:b}=(0,h.og)(),{isHovered:w}=(0,h.Mk)({isDisabled:u}),x=(0,s.nP)({"data-selected":g,"data-focused":b,"data-focus-visible":y,"data-hovered":w,"data-disabled":u,"data-pressed":f,"data-read-only":a});return(0,m.jsxs)("label",{...x,style:o,className:(0,s.xW)("BaselineUI-Radio-Item",i),children:[(0,m.jsx)(h.s6,{children:(0,m.jsx)("input",{...(0,h.v6)(p,v),ref:d})}),t(n,{isFocusVisible:y,isSelected:g,isFocused:b,isHovered:w,isDisabled:u,optionLabelPosition:r,isReadOnly:a})]})},gB=l.forwardRef((({className:e,style:t,optionsContainerClassName:n,optionsContainerStyle:r,items:o,labelPosition:i="top",renderOption:a,"aria-label":l,"aria-labelledby":c,"aria-describedby":u,"aria-details":d,"data-block-id":p,"data-block-class":g,...v},y)=>{let b=(0,f.Zf)(v),{radioGroupProps:w,labelProps:x,descriptionProps:S,errorMessageProps:_}=(0,h.mP)({...v,"aria-label":l,"aria-labelledby":c,"aria-describedby":u,"aria-details":d},b),C=lM({...v,descriptionProps:S,errorMessageProps:_,labelPosition:i}),E=(0,s.nP)({"data-orientation":v.orientation,"data-block-id":p,"data-block-class":g,"data-disabled":v.isDisabled,"data-readonly":v.isReadOnly});return(0,m.jsxs)("div",{...(0,h.v6)(w,E),className:(0,s.xW)(aM({labelPosition:i}),"BaselineUI-RadioGroup",e),style:t,ref:y,children:[v.label||C?(0,m.jsxs)("div",{className:iM({labelPosition:i,hasMessage:!!C}),children:[(0,m.jsx)("span",{...x,className:(0,s.xW)(oM,"BaselineUI-RadioGroup-Label"),children:v.label}),"start"===i&&C]}):null,(0,m.jsx)("div",{className:(0,s.xW)("_1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6lk",{[KM]:v.isDisabled},n),style:r,children:o.map((e=>(0,m.jsx)(mB,{state:b,renderOption:a,item:e,...v,value:e.id},e.id)))}),"top"===i&&C]})}));gB.displayName="RadioGroup";var vB=({id:e,defaultMessage:t,elementType:n=l.Fragment})=>{(0,s.V1)(e||t,"`id` or `defaultMessage` is required.");let r=DM();return(0,m.jsx)(n,{children:r.formatMessage(e)||t})};vB.displayName="MessageFormat";var yB=l.forwardRef((({className:e,style:t,children:n,"data-block-id":r,"data-block-class":o,role:i="group",isDisabled:a,...s},l)=>{let{hoverProps:c,isHovered:u}=(0,h.Mk)({isDisabled:a});return(0,m.jsx)("div",{...c,role:i,"data-hovered":u,"data-disabled":a,"data-block-id":r,"data-block-class":o,className:e,style:t,...s,ref:l,children:n})}));yB.displayName="Group";var bB="UNSUPPORTED_IN_MENU";function wB(e,t){return t?(0,zl.flatMapDeep)(l.Children.toArray(e),(e=>l.isValidElement(e)&&e.props.children?[e,...l.Children.toArray(e.props.children)]:[e])).find((e=>l.isValidElement(e)&&e.type===t)):void 0}function xB(e){return wB(e,YI)||wB(e,eN)}var SB={horizontal:"xvr3wn0",vertical:"xvr3wn1"},_B=l.forwardRef((({className:e,style:t,children:n,collapsibleMenuProps:r,"data-block-id":o,"data-block-class":i,renderSpacer:a,onKeyDown:c,...u},d)=>{let{formatMessage:p}=DM(),[v,y]=(0,l.useState)(),b=function(e){return(0,l.useMemo)((()=>l.Children.toArray(e).map((e=>{let t,n,r=e,o=(0,zl.uniqueId)("item"),i=wB(r,OI),a=xB(r);if(i){let e=wB(i,KI);(0,s.V1)(e),t=xB(e),n=wB(i,sR).props.children}else t=a||r;let{onPress:c,label:u,"aria-label":d,iconStart:p,isDisabled:h,icon:m}=t.props,g=u||d||bB;(0,s.V1)("string"==typeof g,"ActionGroup children must have a string label");let v=`${o}-${g}`;return(0,l.createElement)(f.q7,{key:v,onPress:c,textValue:g,"aria-label":d,icon:p||m,dialogContent:n,isDisabled:h,key:v},r)}))),[e])}(n),w=(0,f.pE)({...u,children:b}),x=JT(d),S=(0,l.useRef)(null),[{visibleItems:_,isMeasuring:C},E]=function(e){let[t,n]=(0,l.useState)(e),r=(0,l.useRef)(null),o=CT((()=>{if(!r.current)return;let e=r.current.next();e.done?r.current=null:t===e.value?o():n(e.value)}));_T((()=>{r.current&&o()}));let i=CT((e=>{r.current=e(t),o()}));return[t,i]}({visibleItems:w.collection.size,isMeasuring:!1}),k=(0,l.useCallback)((()=>{let e=e=>{if(S.current&&x.current){let t=[...S.current.children],n=x.current.getBoundingClientRect().width,r=0,o=0;if(e<w.collection.size){let e=t.pop();e&&(r+=CB(e,!1,!0))}for(let[e,i]of t.entries()){if(r+=CB(i,0===e,e===t.length-1),!(Math.round(r)<=Math.round(n)))break;o++}return o}return e};E((function*(){yield{visibleItems:w.collection.size,isMeasuring:!0};let t=e(w.collection.size),n=t<w.collection.size&&t>0;yield{visibleItems:t,isMeasuring:n},n&&(yield{visibleItems:e(t),isMeasuring:!1})}))}),[E,x,w.collection.size]);QT({ref:(0,l.useMemo)((()=>({get current(){return x.current?.parentElement}})),[x]),onResize:k}),_T(k,[w.collection,k]);let{toolbarProps:z}=kl(u,x),P=[...w.collection],A=P.slice(0,_),D=P.slice(_).filter((e=>e.textValue!==bB)),T=D.length>0;(0,l.useEffect)((()=>{y(void 0)}),[D.length]),(0,l.useEffect)((()=>{"vertical"===u.orientation&&console.warn("Toolbar: Vertical orientation is not supported when `isCollapsible` is true.")}),[u.orientation]);let{keyboardProps:I}=(0,h.de)({onKeyDown:c});return(0,m.jsxs)(h.n1,{children:[(0,m.jsx)("div",{...(0,h.v6)(z,I),className:e,"data-block-id":o,"data-block-class":i,"data-collapse":!0,style:{...t,flexBasis:C?"100%":void 0},ref:x,children:(0,m.jsxs)("div",{ref:S,className:"_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6ln _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6lf",children:[A.map((e=>e.rendered)),T?(0,m.jsxs)(m.Fragment,{children:[!C&&a?(0,m.jsx)(vI,{flexGrow:1}):null,(0,m.jsx)(_R,{placement:"bottom end",renderTrigger:({buttonProps:e,ref:t})=>(0,m.jsx)(eN,{...e,size:"md",icon:g.Z4s,"aria-label":p(kB.more),variant:"toolbar",ref:t,tooltip:!0}),...r,disabledKeys:D.filter((e=>e.props?.isDisabled)).map((e=>e.key)),items:D.map((e=>{let t=e.textValue||e["aria-label"];return(0,s.V1)(t,"ActionItem must have a label"),{id:e.key,label:t,icon:e.props.icon}})),onAction:e=>{let t=w.collection.getItem(e);(0,s.V1)(t,"Item not found");let{onPress:n,dialogContent:r}=t.props;n?.(),y(r)}})]}):null]})}),(0,m.jsx)(hN,{isOpen:!!v,onOpenChange:e=>{e||y(void 0)},children:(0,m.jsx)(QO,{enableDrawer:"auto",style:{zIndex:1e5},children:v?l.cloneElement(v,{inheritDrawer:!0}):null})})]})}));function CB(e,t,n){let r=LT(e).getComputedStyle(e);return e.getBoundingClientRect().width+(t?0:EB(r.marginLeft))+(n?0:EB(r.marginRight))}function EB(e){let t=Number.parseInt(e,10);return Number.isNaN(t)?0:t}_B.displayName="CollapsibleToolbar";var kB=TM({more:{id:"more",defaultMessage:"More"}}),zB=l.forwardRef((({className:e,style:t,"data-block-id":n,"data-block-class":r,"aria-controls":o,onKeyDown:i,...a},c)=>{let u=l.useRef(null),{toolbarProps:d}=kl(a,u),{keyboardProps:p}=(0,h.de)({onKeyDown:i});return(0,m.jsx)("div",{...(0,h.v6)(d,p),"aria-controls":o,className:(0,s.xW)(SB[a.orientation||"horizontal"],"BaselineUI-Toolbar",e),style:t,"data-block-id":n,"data-block-class":r,ref:UT(c,u),children:a.children})}));zB.displayName="WrappedToolbar";var PB=l.forwardRef(((e,t)=>{let n=e.isCollapsible?_B:zB;return(0,m.jsx)(n,{...e,ref:t})}));PB.displayName="Toolbar";var AB=uI({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),DB=uI({defaultClassName:"_1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g1 _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7g"},isFocusVisible:{true:"_1j5skr7h"},isDisabled:{true:"z9nup83 _1yep5z611a"},isSelected:{true:"_1j5skr7j"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_1yep5z61u0 _1yep5z61tz _1yep5z61tx _1yep5z61qd _1yep5z61nd"],[{isSelected:!1,isHovered:!0,isDisabled:!1},"_1yep5z6g3"],[{isSelected:!1,isFocusVisible:!0,isDisabled:!1},"_1yep5z61u0 _1yep5z61tz _1yep5z61q3 _1yep5z61tx"],[{isSelected:!0,isFocusVisible:!0,isDisabled:!1},"_1j5skr7k _1yep5z61ty _1yep5z61tx _1yep5z61q4 _1yep5z61ne"],[{isSelected:!0,isFocusVisible:!1,isDisabled:!1},"_1yep5z61tx _1yep5z61tz _1yep5z61q3 _1yep5z61u0"]]}),TB=uI({defaultClassName:"_1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7m"},isFocusVisible:{true:"_1yep5z617x _1yep5z617w _1yep5z6140 _1yep5z617u"},isSelected:{true:"_1yep5z6119"},isDisabled:{true:"z9nup83 _1yep5z611a"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61nc"]]}),IB=uI({defaultClassName:"_1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7r"},isFocusVisible:{true:"_1yep5z617x _1yep5z617w _1yep5z6140 _1yep5z617u"},isSelected:{true:"_1j5skr7t"},isDisabled:{true:"z9nup83 _1yep5z611a"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61o9"],[{isSelected:!0,isDisabled:!1},"_1yep5z61o9 _1yep5z61ng"],[{isSelected:!0,isDisabled:!0},"_1yep5z61o9 _1yep5z61nd"]]}),MB=uI({defaultClassName:"_1j5skr77 _1j5skr70 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lp _1yep5z6lq _1yep5z6lk _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6kd _1yep5z6ke _1yep5z6kf _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr78"},isFocusVisible:{true:"_1j5skr79"},isSelected:{true:"_1j5skr7a"},isDisabled:{true:"_1j5skr7b z9nup83 _1yep5z611c"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1},"_1j5skr7c _1yep5z61nf"],[{isSelected:!1,isDisabled:!0},"_1j5skr7d _1yep5z61nd"],[{isSelected:!1,isHovered:!0},"_1yep5z61o9"],[{isSelected:!1,isFocusVisible:!0},"_1yep5z61u0 _1yep5z61tz _1yep5z61q3 _1yep5z61tx"],[{isSelected:!0,isFocusVisible:!0},"_1j5skr7e _1yep5z61ty _1yep5z61tx _1yep5z61q4"]]}),NB={xxs:8,xs:12,sm:16,md:20,lg:24},OB=l.forwardRef(((e,t)=>{let n=JT(t),{tooltipProps:r}=$I(e,n);return r?(0,m.jsx)(XM,{...r,children:(0,m.jsx)(RB,{...e,ref:t})}):(0,m.jsx)(RB,{...e,ref:t})}));OB.displayName="ToggleIconButton";var RB=l.forwardRef((({className:e,style:t,icon:n,size:r="md",variant:o="primary","data-block-id":i,"data-block-class":a,...c},u)=>{let d=(0,f.Hn)(c),{buttonProps:p,isPressed:g,ref:v,isFocusVisible:y,isFocused:b,isHovered:w,uiStateOptions:x}=WI(c,d),S=(0,l.useMemo)((()=>"function"==typeof n?n:d.isSelected?n.selected:n.unselected),[n,d.isSelected]),_={isSelected:d.isSelected,isHovered:w,isFocusVisible:y,isDisabled:!!c.isDisabled},C=(0,s.nP)({"data-hovered":w,"data-selected":d.isSelected,"data-focus-visible":y,"data-disabled":c.isDisabled,"data-block-id":i,"data-block-class":a,"data-focused":b,"data-pressed":g});return(0,m.jsx)("button",{...(0,h.v6)(p,C),className:(0,s.xW)("toolbar"===o&&MB(_),"primary"===o&&DB(_),"secondary"===o&&TB(_),"tertiary"===o&&IB(_),AB({size:r}),"BaselineUI-ToggleIconButton","function"==typeof e?e(x):e),style:"function"==typeof t?t(x):t,ref:UT(v,u),children:(0,m.jsx)(S,{size:NB[r]})})}));RB.displayName="ToggleIconButtonCore";var jB="_1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",FB=uI({defaultClassName:"f6jv6b0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6g1",variantClassNames:{isInline:{true:"f6jv6b1"},isMinimal:{true:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z6vo _1yep5z6vp _1yep5z6vq _1yep5z615m _1yep5z615n _1yep5z615o",false:"_1yep5z6157 _1yep5z6158 _1yep5z6159"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isMinimal:!1},"_1yep5z61ir _1yep5z61is _1yep5z61it _1yep5z61jf _1yep5z61jg _1yep5z61jh _1yep5z61k3 _1yep5z61k4 _1yep5z61k5 _1yep5z61kr _1yep5z61ks _1yep5z61kt _1yep5z61u7 _1yep5z61u5 _1yep5z61pa"]]}),BB=uI({defaultClassName:"f6jv6b4 _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6e3 _1yep5z6eu _1yep5z6lq",variantClassNames:{isDisabled:{true:"f6jv6b5 _1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),LB=uI({defaultClassName:"f6jv6bf _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6lq _1yep5z6la _1yep5z6ld _1yep5z6lp",variantClassNames:{isHovered:{true:"_1yep5z6126"},isDisabled:{true:"_1yep5z6zd"}},defaultVariants:{},compoundVariants:[]}),VB=uI({defaultClassName:"f6jv6bb _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",variantClassNames:{isInline:{true:"_1yep5z6pr _1yep5z6ps _1yep5z6pt _1yep5z6184 _1yep5z6182 _1yep5z6137",false:"_1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6x6 _1yep5z6x7 _1yep5z6x8 _1yep5z6xu _1yep5z6xv _1yep5z6xw _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8"}},defaultVariants:{},compoundVariants:[]}),KB=uI({defaultClassName:"f6jv6b6",variantClassNames:{isInline:{true:"f6jv6b7",false:"f6jv6b8"}},defaultVariants:{},compoundVariants:[]}),HB="f6jv6b9 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl",$B="f6jv6bn",UB=[["Toolbar Focus","Alt+F10"],["Bold","Ctrl+B"],["Italic","Ctrl+I"],["Underline","Ctrl+U"],["Select All","Ctrl+A"],["Cut","Ctrl+X"],["Copy","Ctrl+C"],["Paste","Ctrl+V"],["Undo","Ctrl+Z"],["Redo","Ctrl+Shift+Z"],["Submit","Ctrl+Enter"],["Open Help Dialog","Ctrl+Shift+H"]],{dialog:{row:WB}}=v.Br,qB=({isOpen:e,onClose:t})=>{let{formatMessage:n}=DM(),r=(0,h.Bi)();return(0,m.jsx)(hN,{isOpen:e,onOpenChange:e=>{e||t()},children:(0,m.jsx)(QO,{enableDrawer:"auto",style:{zIndex:999999},children:(0,m.jsxs)(nR,{"aria-labelledby":r,className:"f6jv6bi _1yep5z6wr _1yep5z6ws _1yep5z6wt _1yep5z6xf _1yep5z6xg _1yep5z6xh _1yep5z6y3 _1yep5z6y4 _1yep5z6y5 _1yep5z6yr _1yep5z6ys _1yep5z6yt",drawerBackground:"subtle",children:[(0,m.jsxs)(vI,{paddingLeft:WB.padding.horizontal.lg,paddingRight:WB.padding.horizontal.sm,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",backgroundColor:"background.primary.subtle",className:"f6jv6bj",children:[(0,m.jsx)(aN,{id:r,elementType:"h3",type:"title",size:"md",children:n(GB.help)}),(0,m.jsx)(eN,{icon:k.uv,size:"md",variant:"secondary","aria-label":n(GB.close),onPress:t})]}),(0,m.jsx)(mI,{className:"f6jv6bk"}),(0,m.jsxs)(vI,{paddingX:WB.padding.horizontal.lg,role:"table","aria-labelledby":r,backgroundColor:"background.primary.subtle",children:[(0,m.jsx)("div",{role:"rowgroup",children:(0,m.jsxs)(vI,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:WB.padding.vertical.md,color:"text.primary",children:[(0,m.jsx)("h6",{className:(0,v.UV)({typography:"heading.h6.semibold"}),role:"columnheader",children:n(GB.action)}),(0,m.jsx)("h6",{className:(0,v.UV)({typography:"heading.h6.semibold"}),role:"columnheader",style:{textTransform:"capitalize"},children:n(GB.shortcut)})]})}),(0,m.jsx)("div",{role:"rowgroup",children:UB.map((([e,t],r)=>(0,m.jsxs)(l.Fragment,{children:[(0,m.jsxs)(vI,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:WB.padding.vertical.xs,style:{minHeight:40},children:[(0,m.jsx)(aN,{type:"subtitle",size:"sm",role:"cell",children:n(GB[(0,zl.camelCase)(e)])}),(0,m.jsx)(aN,{elementType:"kbd",type:"subtitle",size:"sm",role:"cell",children:(0,s.YZ)(t,!0)})]}),r!==UB.length-1&&(0,m.jsx)(mI,{})]},e)))})]})]})})})},GB=TM({toolbarFocus:{id:"toolbarFocus",defaultMessage:"Toolbar Focus"},help:{id:"help",defaultMessage:"Help"},close:{id:"close",defaultMessage:"Close"},action:{id:"action",defaultMessage:"Action"},shortcut:{id:"shortcut",defaultMessage:"Shortcut"},bold:{id:"bold",defaultMessage:"Bold"},italic:{id:"italic",defaultMessage:"Italic"},underline:{id:"underline",defaultMessage:"Underline"},selectAll:{id:"selectAll",defaultMessage:"Select All"},cut:{id:"cut",defaultMessage:"Cut"},copy:{id:"copy",defaultMessage:"Copy"},paste:{id:"paste",defaultMessage:"Paste"},undo:{id:"undo",defaultMessage:"Undo"},redo:{id:"redo",defaultMessage:"Redo"},openHelpDialog:{id:"openHelpDialog",defaultMessage:"Open Help Dialog"},submit:{id:"submit",defaultMessage:"Submit"}}),ZB=l.forwardRef((({value:e,defaultValue:t,onChange:n,placeholder:r,spellCheck:o,textBoxRef:i,isInline:a,isMinimal:c,isDisabled:d,editableContentAriaLabel:p,editorHandle:f,autoFocus:g,saveOnEnter:v,onSave:b},w)=>{let x=l.useRef(null),[S,_]=u(e,t||"",n),C=(0,l.useCallback)((e=>{_(e.currentTarget.value||"")}),[_]),E=(0,l.useCallback)((e=>{(v&&"Enter"===e.key&&!e.shiftKey||(e.ctrlKey||e.metaKey)&&"Enter"===e.key)&&(e.preventDefault(),b())}),[v,b]);(0,l.useImperativeHandle)(w,(()=>({clear:()=>{_("")}})));let k=(0,l.useCallback)((e=>{e.currentTarget.style.height="16px",e.currentTarget.style.height=e.currentTarget.scrollHeight+"px"}),[]);(0,y.useGranularLayoutEffect)((()=>{let e=x.current;e&&(e.style.height="16px",e.style.height=e.scrollHeight+"px")}),[c],[S]),(0,l.useImperativeHandle)(f,(()=>({setCaretPosition:e=>{x.current&&(x.current.focus(),x.current.setSelectionRange(e,e))},focus:()=>{x.current&&x.current.focus()}})));let{focusProps:z,isFocused:P,isFocusVisible:A}=(0,h.og)(),{hoverProps:D,isHovered:T}=(0,h.Mk)({}),I=(0,s.nP)({"data-focus-visible":A,"data-hovered":T,"data-focused":P});return(0,m.jsx)("textarea",{...(0,h.v6)(z,D,I),ref:UT(x,i),className:(0,s.xW)(c?"f6jv6be f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6eu _1yep5z6e3 _1yep5z6ln":[BB(),KB({isInline:a}),"f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ip _1yep5z6iq _1yep5z6ir _1yep5z6eu"]),autoFocus:g,onChange:C,disabled:d,onInput:k,value:S,placeholder:r,spellCheck:o,"aria-label":p,onKeyDown:E})}));ZB.displayName="PlainEditor";var YB="mention",XB="mention_input",JB=l.forwardRef((({onCancel:e,editor:t,element:n,onSelectionChange:r},o)=>{let{containerRef:i,items:a,maxMentionableUsersSuggestions:c}=(0,l.useContext)(yL),u=(0,l.useContext)(ob),[d,p]=(0,l.useState)(""),{contains:g}=(0,h.U2)({sensitivity:"base"}),{formatMessage:y}=DM(),b=(0,l.useMemo)((()=>{let e=a.filter((e=>""===d||g(e.displayName,d))).map((e=>({id:e.id,label:e.displayName,data:e})));return c?(0,zl.take)(e,c):e}),[a,c,d,g]),w=(0,l.useCallback)((e=>(0,m.jsx)(f.q7,{children:e.label},e.id)),[]),x=(0,l.useCallback)(((e=!1)=>{let r=Tb(t,n);r&&(Yl(t,{at:r}),e&&Ib(t))}),[t,n]),S=(0,f.kf)({items:b,children:w,menuTrigger:"focus",onSelectionChange:e=>{x(!0),r?.(e)}}),_=l.useRef(null),C=l.useRef(null),E=l.useRef(null),k=l.useRef(null),z=(e=>{const[t,n]=(0,l.useState)(!1),[r,o]=(0,l.useState)(!1),i=(0,l.useCallback)((()=>{setTimeout((()=>{if(!e.current)return;const{selectionEnd:t,selectionStart:r,value:i}=e.current;n(0===r),o(t===i.length)}))}),[e]);return(0,l.useEffect)((()=>{i();const t=e.current;if(t)return t.addEventListener("input",i),t.addEventListener("selectionchange",i),t.addEventListener("keydown",i),t.addEventListener("pointerdown",i),t.addEventListener("pointerup",i),()=>{t.removeEventListener("input",i),t.removeEventListener("selectionchange",i),t.removeEventListener("keydown",i),t.removeEventListener("pointerdown",i),t.removeEventListener("pointerup",i)}}),[i,e]),(0,l.useMemo)((()=>({atStart:t,atEnd:r})),[t,r])})(C);(0,h.$Z)({ref:k,onInteractOutside:()=>{S.close()}});let{inputProps:P,listBoxProps:A}=(0,h.rE)({defaultItems:b,inputRef:C,buttonRef:_,listBoxRef:E,popoverRef:k,menuTrigger:"focus","aria-label":y(tL.mention)},S);(0,l.useEffect)((()=>{C.current?.focus()}),[]);let D=(0,l.useCallback)(((t="manual",n=!1)=>{x(n),e?.(t,S.inputValue)}),[e,x,S.inputValue]),T=(0,l.useRef)(u);(0,l.useEffect)((()=>{T.current&&!u&&D("deselect"),T.current=u}),[u,D]);let I=z?.atStart??!1,M=z?.atEnd??!1,N=(0,l.useCallback)((e=>{"Backspace"===e.key&&I?D("backspace",!0):"Escape"===e.key?D("escape",!0):"ArrowLeft"===e.key&&I?D("arrowLeft",!0):"ArrowRight"===e.key&&M&&D("arrowRight",!0);let n=oS.isUndo(e)&&t.history.undos.length>0,r=oS.isRedo(e)&&t.history.redos.length>0;(n||r)&&(e.preventDefault(),t[n?"undo":"redo"](),Ib(t))}),[I,M,D,t]),O=(0,l.useMemo)((()=>{if(!CSS.supports("field-sizing","content")){let e=LT(C.current),t=C.current?e?.getComputedStyle(C.current).font:void 0;return{width:t?(0,s.jT)({text:S.inputValue,font:t}).width+10:"4ch"}}}),[S.inputValue]);return(0,m.jsxs)(PI.Provider,{value:S,children:[(0,m.jsx)("input",{...(0,h.v6)(P,{onKeyDown:N,onBlur:()=>{D("blur",!0)},onChange:e=>{p(e.target.value)}}),style:O,className:"f6jv6bm _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6ly _1yep5z6lt _1yep5z6lr _1yep5z6hx _1yep5z6eu",ref:UT(o,C)}),(0,m.jsx)(aR,{triggerRef:i,isNonModal:!0,ref:k,state:S,crossOffset:-2,children:(0,m.jsx)(TI,{...A,items:void 0,autoFocus:"first",ref:E,className:(0,s.xW)(xR,(0,v.UV)({width:"full"})),renderOption:wL})})]})}));JB.displayName="MentionInputContentElement";var QB=bf((({className:e,...t},n)=>{let{children:r,editor:o,element:i}=t,{items:a}=(0,l.useContext)(yL),c=(0,l.useRef)(null),[u,d]=(0,l.useState)(null);(0,l.useEffect)((()=>{let e=Tb(o,i);if(!e)return;let t=Ql(o,e);if(!t)return;let n=Bl(o,t);return d(n),()=>{n.unref()}}),[o,i]);let p=(0,l.useCallback)((()=>{let e=c.current?.getRootNode()instanceof ShadowRoot;vc(o,{unit:"offset"}),vc(o,{unit:"character",distance:1}),XT()&&e&&Ib(o)}),[o]),h=(0,l.useCallback)((e=>{if(!e)return;let t=c.current?.getRootNode()instanceof ShadowRoot,n=a.find((t=>t.id===e));(0,s.V1)(n,"User not found");let r={type:YB,value:n.id,displayName:n.displayName,children:[{text:""}]};gc(o,[r,{text:" "}]),t?setTimeout((()=>{p()}),0):p()}),[o,a,p]);return(0,m.jsxs)(US,{as:"span","data-slate-value":i.value,contentEditable:!1,className:e,ref:n,...t,children:[(0,m.jsx)(JB,{onCancel:(e,t)=>{var n,r,i;"backspace"!==e&&(n=o,r="@"+t,i={at:u?.current??void 0},Pl.gB.insertText(n,r,i)),("arrowLeft"===e||"arrowRight"===e)&&vc(o,{distance:1,reverse:"arrowLeft"===e})},onSelectionChange:h,ref:c,element:i,editor:o}),r]})}));QB.displayName="MentionInputElement";var eL=bf((({className:e,onClick:t,children:n,...r},o)=>{let i=((e="element")=>Bw(e).get.element()||(console.warn("The `useElement(pluginKey)` hook must be used inside the node component's context"),{}))();return(0,m.jsxs)(US,{as:"span",className:e,contentEditable:!1,"data-user-id":i.value,onClick:Su(t,i),ref:o,...r,children:["@",i.displayName,n]})}));eL.displayName="MentionElement";var tL=TM({mention:{defaultMessage:"Mention",id:"mention"}});function nL(e){if(!e)return"";function t(e){if(function(e){return"text"in e}(e)){let t=function(e){return e.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;")}(e.text);return e.bold&&(t=`<b>${t}</b>`),e.italic&&(t=`<i>${t}</i>`),e.underline&&(t=`<u>${t}</u>`),(e.color||e.backgroundColor)&&(t=`<span style="${function(e){return Object.entries(e).map((([e,t])=>`${(0,zl.kebabCase)(e)}:${t}`)).filter((([,e])=>!!e)).join(";")}((0,s.nP)({color:e.color||void 0,backgroundColor:e.backgroundColor||void 0}))}">${t}</span>`),t}let t=e.children?.map(nL).join("");switch(e.type){case t_:return`<p>${t}</p>`;case k_:return`<a href="${e.url}">${t}</a>`;case YB:return`<span data-user-id="${e.value}">${e.displayName}</span>`;default:return t}}return Array.isArray(e)?e.map((e=>t(e))).join(""):t(e)}function rL(e){e.startsWith("<p>")||(e=`<p>${e}</p>`);let t=(new DOMParser).parseFromString(AC.A.sanitize(e),"text/html"),n=t.querySelectorAll("[style]");for(let e of n)"underline"===e.style.textDecoration&&(e.style.textDecoration="",e.style.cssText||e.removeAttribute("style"),e.hasAttributes()?e.innerHTML=`<u>${e.innerHTML}</u>`:e.outerHTML=`<u>${e.innerHTML}</u>`);let r=t.querySelectorAll("br");for(let e of r)e.outerHTML=e.closest("p")?"\n":"<p>";return oL(t.body)}function oL(e,t){if(e.nodeType===Node.TEXT_NODE)return(0,Hp.Y)("text",t,e.textContent);if(e.nodeType!==Node.ELEMENT_NODE)return null;let n={...t};switch(e.nodeName.toUpperCase()){case"B":n.bold=!0;break;case"I":case"EM":n.italic=!0;break;case"U":n.underline=!0;break;case"SPAN":{let t=function(e){return e?((e=e.trim()).endsWith(";")&&(e=e.slice(0,-1)),Object.fromEntries(e.split(";").map((e=>e.split(":").map((e=>e.trim())))).map((([e,t])=>[(0,zl.camelCase)(e),t])))):{}}(e.getAttribute("style")||"");"underline"===t["text-decoration"]&&(n.underline=!0),t.color&&(n.color=t.color),t.backgroundColor&&(n.backgroundColor=t.backgroundColor);break}}let r=[...e.childNodes].flatMap((e=>oL(e,n)));switch(0===r.length&&r.push((0,Hp.Y)("text",n,"")),e.nodeName.toUpperCase()){case"BR":return(0,Hp.Y)("text",t,"\n");case"SPAN":{let t=e.dataset.userId;return t?(0,Hp.Y)("element",{type:YB,value:t,displayName:e.textContent},{text:""}):r}case"P":return(0,Hp.Y)("element",{type:t_},r);case"A":return(0,Hp.Y)("element",{type:k_,url:e.getAttribute("href")},r);default:return r}}function iL(e){let t={children:[{text:" "}],type:XB};e.insertNode(t)}var aL=Zw({isElement:!0,isInline:!0,isMarkableVoid:!0,isVoid:!0,key:YB,options:{trigger:"@",triggerPreviousCharPattern:/^$|^[\s"']$/},plugins:[{isElement:!0,isInline:!0,isVoid:!0,key:XB}],withOverrides:(e,{options:{trigger:t,triggerPreviousCharPattern:n,triggerQuery:r}})=>{let{insertText:o}=e;return e.insertText=i=>{if(!e.selection||!(e=>e===t)(i)||r&&!r(e))return void o(i);let a=tc(e,oc(e,e.selection,Ql(e,e.selection)));n?.test(a)?iL(e):o(i)},e}}),sL=$w([n_({component:function({className:e,children:t,...n}){return(0,m.jsx)(US,{asChild:!0,className:e,...n,children:(0,m.jsx)("p",{children:t})})}}),xm({component:PC(WS,{as:"b"})}),Cm({component:PC(WS,{as:"i"})}),Am({component:PC(WS,{as:"u"})}),YS(),GS(),z_({component:function({className:e,children:t,...n}){return(0,m.jsx)(US,{asChild:!0,className:e,...n,children:(0,m.jsx)("a",{className:CR({size:"sm"}),children:t})})}}),aL({component:eL})],{components:{[XB]:QB}}),lL="add",cL="edit",uL="show",dL=({isDisabled:e})=>{let{formatMessage:t}=DM(),n=xS();return(0,m.jsxs)(OI,{type:"dialog",children:[(0,m.jsx)(KI,{children:(0,m.jsx)(eN,{icon:k.qY,size:"sm",isDisabled:e,"aria-label":t(hL.addLink),className:jB,preventFocusOnPress:!0})}),(0,m.jsx)(sR,{className:(0,v.UV)({boxShadow:"medium"}),placement:"top end",children:({close:e})=>(0,m.jsx)(nR,{size:"content",style:{minWidth:240},children:(0,m.jsx)(pL,{close:()=>{e(),setTimeout((()=>{Ib(n,n.selection)}),0)}})})})]})},pL=({close:e})=>{let t=xS(),{formatMessage:n}=DM(),r=SS((e=>function(e){let t=wc(e,{match:{type:Gw(e,k_)}}),[n]=t||[{url:""}];return n?.url}(e)),[]),[o,i]=l.useState(r?uL:lL),[a,c]=l.useState(r||""),u=(0,m.jsx)(vI,{padding:"lg",children:(0,m.jsx)(RR,{label:n(hL.link),value:a,autoFocus:!0,onChange:c,placeholder:"https://yourdomain.com"})});return(0,m.jsxs)(m.Fragment,{children:[o===lL&&(0,m.jsxs)(m.Fragment,{children:[u,(0,m.jsx)(vI,{display:"flex",justifyContent:"flex-end",padding:"lg",className:"f6jv6bl",children:(0,m.jsx)(YI,{isDisabled:!(0,s.gU)(a,!0),label:n(hL.addLink),size:"sm",onPress:()=>{C_(t,{url:a,skipValidation:!0}),e?.()},preventFocusOnPress:!0})})]}),o===uL&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(vI,{padding:"lg",children:(0,m.jsx)(aN,{type:"subtitle",size:"sm",children:r})}),(0,m.jsxs)(vI,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[(0,m.jsx)(YI,{label:n(hL.editLink),size:"sm",variant:"secondary",onPress:()=>{i(cL)},style:{flex:1,justifyContent:"center"}}),(0,m.jsx)(YI,{label:n(hL.removeLink),size:"sm",onPress:()=>{x_(t),e?.()},preventFocusOnPress:!0,style:{flex:1,justifyContent:"center"}})]})]}),o===cL&&(0,m.jsxs)(m.Fragment,{children:[u,(0,m.jsxs)(vI,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[(0,m.jsx)(YI,{label:n(hL.cancel),size:"sm",variant:"secondary",onPress:()=>{i(uL),e?.()}}),(0,m.jsx)(YI,{label:n(hL.save),size:"sm",onPress:()=>{C_(t,{url:a,skipValidation:!0}),e?.()}})]})]})]})};var hL=TM({addLink:{id:"addLink",defaultMessage:"Add Link",description:"Add Link"},editLink:{id:"editLink",defaultMessage:"Edit Link",description:"Edit Link"},removeLink:{id:"removeLink",defaultMessage:"Remove Link",description:"Remove Link"},cancel:{id:"cancel",defaultMessage:"Cancel",description:"Cancel"},save:{id:"save",defaultMessage:"Save",description:"Save"},link:{id:"linkAnnotation",defaultMessage:"Link",description:"Link"}}),fL=(F("#ffffff00").toString("hexa"),[{label:"Red",color:"#ff0000"},{label:"Green",color:"#00ff00"},{label:"Blue",color:"#0000ff"},{label:"Yellow",color:"#ffff00"},{label:"Cyan",color:"#00ffff"},{label:"Magenta",color:"#ff00ff"},{label:"Black",color:"#000000"},{label:"White",color:"#ffffff"},{label:"Gray",color:"#808080"},{label:"Orange",color:"#ffa500"},{label:"Brown",color:"#a52a2a"},{label:"Purple",color:"#800080"}]),mL=({nodeType:e,icon:t,ariaLabel:n,isDisabled:r})=>{let o=SS((t=>Uu(t,e)),[]),i=xS();return(0,m.jsx)(OB,{variant:"tertiary",isSelected:o,size:"sm",icon:t,"aria-label":n,isDisabled:r,onPress:()=>{Yu(i,{key:e})},preventFocusOnPress:!0})},gL=({nodeType:e,"aria-label":t,isDisabled:n})=>{let{updateColor:r,clearColor:o,color:i}=e_({customColors:[],colors:[],nodeType:e}),a=(0,l.useCallback)((({ref:r,triggerProps:o})=>(0,m.jsx)(eN,{icon:"color"===e?g.N$i:g.VUW,"aria-label":t,size:"md",variant:"popover",isDisabled:n,className:jB,preventFocusOnPress:!0,...o,ref:r})),[e,t,n]),s=(0,l.useCallback)((e=>{e?r(e.toString("rgba")):o()}),[o,r]);return(0,m.jsx)(VF,{presets:fL,allowRemoval:!0,pickerMode:"lazy",placement:"top end",colorLabel:!1,renderTriggerButton:a,value:i||"#000000",onChange:s,isDisabled:n})},vL=[{type:t_,children:[{text:""}]}],yL=l.createContext({items:[],containerRef:{current:null},maxMentionableUsersSuggestions:10}),bL=l.forwardRef((({value:e,defaultValue:t,onChange:n,style:r,spellCheck:o,placeholder:i,isInline:a,isDisabled:c,editableContentAriaLabel:d,containerRef:p,onHelpDialogOpenRequest:f,mentionableUsers:y,editorHandle:b,maxMentionableUsersSuggestions:w,autoFocus:x,editorRef:S,saveOnEnter:_,onSave:C},E)=>{let z=(0,l.useRef)(null),P=(0,h.Bi)(),{formatMessage:A}=DM(),D=(0,l.useRef)(null),T=D.current,I=(0,l.useRef)(null),M=(0,l.useMemo)((()=>T?.getRootNode()instanceof ShadowRoot),[T]),[N,O]=u(e?rL(e):void 0,rL(t||"<p></p>"),(e=>{n&&n(nL(e))})),{keyboardProps:R}=(0,h.de)({onKeyDown:e=>{(_&&"Enter"===e.key&&!e.shiftKey||(e.ctrlKey||e.metaKey)&&"Enter"===e.key)&&(e.preventDefault(),C()),e.altKey&&"F10"===e.key?(e.preventDefault(),z.current&&z.current.querySelector("button")?.focus()):e.continuePropagation(),XT()&&M&&I.current&&Ib(I.current)}});(0,l.useEffect)((()=>{c&&I.current&&hc(I.current)}),[c]),(0,l.useImperativeHandle)(E,(()=>({startMention:()=>{I.current&&!D.current?.querySelector("input[role='combobox']")&&iL(I.current)}}))),(0,l.useImperativeHandle)(b,(()=>({setCaretPosition:e=>{I.current&&(Ib(I.current),vc(I.current,{distance:e,unit:"character"}))},focus:()=>{I.current&&Ib(I.current)}})));let j=(0,l.useMemo)((()=>({items:y||[],containerRef:p,maxMentionableUsersSuggestions:w})),[y,p,w]);return(0,m.jsx)(yL.Provider,{value:j,children:(0,m.jsxs)(TS,{initialValue:N||vL,plugins:sL,editorRef:UT(I,S||null),onChange:e=>{O(e)},children:[(0,m.jsxs)(PB,{className:HB,"aria-controls":P,ref:z,children:[(0,m.jsxs)(vI,{display:"flex",flexDirection:"row",role:"group",gap:"xs",paddingX:"sm",children:[(0,m.jsx)(mL,{nodeType:wm,icon:k.$o,ariaLabel:A(xL.bold),isDisabled:c}),(0,m.jsx)(mL,{nodeType:_m,icon:k.yO,ariaLabel:A(xL.italic),isDisabled:c}),(0,m.jsx)(mL,{nodeType:Pm,icon:k.qp,ariaLabel:A(xL.underline),isDisabled:c})]}),(0,m.jsx)(mI,{orientation:"vertical",className:$B}),(0,m.jsx)(gL,{nodeType:ZS,"aria-label":A(xL.fontColor),isDisabled:c}),(0,m.jsx)(mI,{orientation:"vertical",className:$B}),(0,m.jsx)(gL,{nodeType:qS,"aria-label":A(xL.backgroundColor),isDisabled:c}),(0,m.jsx)(mI,{orientation:"vertical",className:$B}),(0,m.jsx)(dL,{isDisabled:c}),(0,m.jsx)(mI,{orientation:"vertical",className:$B}),(0,m.jsx)(eN,{className:jB,icon:g.JY8,size:"sm","aria-label":A(xL.help),onPress:f})]}),(0,m.jsx)(mI,{variant:"secondary"}),(0,m.jsx)("div",{...R,ref:D,children:(0,m.jsx)(NS,{id:P,disabled:c,readOnly:c,style:r,placeholder:i,autoFocus:x,spellCheck:o,"aria-label":d,className:(0,s.xW)(BB({isDisabled:c}),KB({isInline:a})),renderPlaceholder:({attributes:e,children:t})=>(0,m.jsx)("span",{...e,className:(0,v.UV)({paddingY:"lg"}),children:t})})})]})})}));bL.displayName="RichEditor";var wL=({key:e,value:t},{isDisabled:n,optionProps:r,isFocused:o,_state:i},a)=>{let{hoverProps:s}=(0,h.Mk)({isDisabled:n}),{label:l,data:c}=t;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("li",{...(0,h.v6)(r,s),className:LB({isDisabled:n,isHovered:o}),"data-active":o,ref:a,children:[(0,m.jsx)(Tj,{name:l,...c?.avatar}),(0,m.jsxs)(vI,{display:"flex",flexDirection:"column",children:[(0,m.jsx)(aN,{type:"subtitle",size:"sm",children:l}),(0,m.jsx)(aN,{type:"helper",size:"sm",children:c?.description})]})]}),e===i.collection.getLastKey()?null:(0,m.jsx)(mI,{})]})},xL=TM({bold:{defaultMessage:"Bold",id:"bold"},italic:{defaultMessage:"Italic",id:"italic"},underline:{defaultMessage:"Underline",id:"underline"},backgroundColor:{defaultMessage:"Background color",id:"backgroundColor"},fontColor:{defaultMessage:"Font color",id:"fontColor"},help:{defaultMessage:"Help",id:"help"}}),SL=l.memo(l.forwardRef((({className:e,style:t,"data-block-id":n,"data-block-class":r,enableRichText:o=!1,onCancel:i,onSave:a,isInline:c=!0,submitButtonIcon:u=k.m$,submitButtonAriaLabel:d,cancelButtonAriaLabel:p,"aria-label":f,"aria-describedby":g,"aria-labelledby":y,"aria-details":b,editableContentAriaLabel:w="Editing Area",footerButtons:x,clearOnCancel:S,clearOnSave:_,...C},E)=>{let z=(0,l.useRef)(null),{formatMessage:P}=DM(),A=(0,l.useRef)(null),D=(0,l.useRef)(null),T=(0,l.useRef)(null),I=!o&&"minimal"===C.variant,M=(0,l.useRef)(null),[N,O]=l.useState(C.value||C.defaultValue),R=C.isDisabled||C.isSaveDisabled||!(0,s.AY)(N||""),{fieldProps:j}=(0,h.MW)({"aria-label":f,"aria-labelledby":y,"aria-describedby":g,"aria-details":b,labelElementType:"div"});I&&!C.avatarName&&console.warn("Editor: When using the minimal `variant` and `enableRichText` is `false`, you should provide an `avatarName`.");let F=(0,l.useCallback)((()=>{O(""),o?z.current?.reset():D.current?.clear()}),[o]),B=(0,l.useCallback)((()=>{R||(a?.(o?nL(z.current?.children):A.current.value),_&&F())}),[F,_,o,a,R]),L=(0,m.jsx)(eN,{variant:"ghost","aria-label":d||P(_L.save),icon:u,isDisabled:R,size:"md",excludeFromTabOrder:I,className:I?"_1yep5z6jy _1yep5z6jz _1yep5z6k0":void 0,onPress:B,preventFocusOnPress:!0}),[V,K]=l.useState(!1),{keyboardProps:H}=(0,h.de)({onKeyDown:e=>{(e.metaKey||e.ctrlKey)&&e.shiftKey&&"h"===e.key&&(e.preventDefault(),K(!0))}}),$=(0,l.useCallback)((e=>{O(e),C.onChange?.(e)}),[C]);return(0,m.jsxs)("div",{...(0,h.v6)(j,o?H:{}),role:"application",ref:UT(T,E),style:t,"data-block-id":n,"data-block-class":r,className:(0,s.xW)(FB({isInline:c,isMinimal:I}),"BaselineUI-Editor",e),"aria-disabled":C.isDisabled,children:[I?(0,m.jsxs)(m.Fragment,{children:[c?(0,m.jsx)(Tj,{className:"_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6js _1yep5z6jt _1yep5z6ju",name:C.avatarName||""}):null,(0,m.jsxs)("div",{className:VB({isInline:c}),children:[(0,m.jsx)(ZB,{isMinimal:I,textBoxRef:A,isInline:c,editableContentAriaLabel:w,...C,onChange:$,onSave:B}),L]})]}):(0,m.jsxs)(m.Fragment,{children:[o?(0,m.jsx)(bL,{containerRef:T,ref:M,editorRef:z,isInline:c,editableContentAriaLabel:w,onHelpDialogOpenRequest:()=>{K(!0)},...C,onChange:$,onSave:B}):(0,m.jsxs)(m.Fragment,{children:[!c&&(0,m.jsx)(mI,{variant:"secondary"}),(0,m.jsx)(ZB,{onCancel:i,textBoxRef:A,ref:D,isInline:c,editableContentAriaLabel:w,...C,onChange:e=>{O(e),C.onChange?.(e)},onSave:B})]}),(0,m.jsx)(mI,{variant:"secondary"}),(0,m.jsxs)("div",{className:(0,s.xW)(HB,(0,v.UV)({justifyContent:"space-between"})),children:[(0,m.jsxs)(vI,{paddingX:"sm",gap:"sm",display:"flex",children:[o&&C.mentionableUsers?(0,m.jsx)(eN,{icon:k.Xx,size:"sm","aria-label":P(_L.mention),onPress:()=>M.current?.startMention(),preventFocusOnPress:!0}):null,x?.map((({type:e,props:t},n)=>"action"===e?(0,m.jsx)(eN,{...t,size:"sm",isDisabled:C.isDisabled||t.isDisabled},n):(0,m.jsx)(OB,{...t,size:"sm",variant:"tertiary",isDisabled:C.isDisabled||t.isDisabled},n)))]}),(0,m.jsxs)(vI,{children:[!!i&&(0,m.jsx)(eN,{variant:"secondary",icon:k.Op,isDisabled:C.isDisabled,size:"md",onPress:()=>{i(),S&&F()},"aria-label":p||P(_L.cancel)}),L]})]})]}),(0,m.jsx)(qB,{isOpen:V,onClose:()=>{K(!1)}})]})})));SL.displayName="Editor";var _L=TM({cancel:{defaultMessage:"Cancel",id:"cancel"},save:{defaultMessage:"Save",id:"save"},mention:{defaultMessage:"Mention",id:"mention"}}),CL=l.forwardRef((({className:e,style:t,hideForKeyboard:n,scrollRef:r,label:o,delay:i=1500,smoothScroll:a=!0,"data-block-id":c,"data-block-class":u},d)=>{let p=l.useRef(null),f=(0,A.lb)(),[g,v]=l.useState(!1),y=(0,l.useCallback)((()=>{let e=r?.current||BT(p.current).body;return"column-reverse"===LT(e).getComputedStyle(e).flexDirection?e.scrollTop+2>=0:e.scrollTop+e.clientHeight+2>=e.scrollHeight}),[r]),[b,x]=l.useState(y),{buttonProps:_,isPressed:C}=(0,h.sL)({onPress:()=>{let e=r?.current||BT(p.current).body;e.scrollTo({top:e.scrollHeight,behavior:a?"smooth":"auto"})}},p),{focusProps:E,isFocused:k,isFocusVisible:z}=(0,h.og)(),{hoverProps:P,isHovered:D}=(0,h.Mk)({}),T=(0,s.nP)({"data-block-id":c,"data-block-class":u,"data-pressed":C,"data-focus-visible":z,"data-hovered":D,"data-focused":k});return(0,l.useEffect)((()=>{x(y())}),[y]),(0,l.useEffect)((()=>{let e=r?.current||BT(p.current).body,t="onscrollend"in LT(e),n=()=>{setTimeout((()=>{v(!1),x(y())}),i)},o=()=>{v(!0),t||n()};return e.addEventListener("scroll",o),e.addEventListener("scrollend",n),()=>{e.removeEventListener("scroll",o),e.removeEventListener("scrollend",n)}}),[r,i,y]),(0,m.jsx)(S.Ny,{initial:!1,children:n&&"keyboard"===f||g||b?null:(0,m.jsxs)(S.PY.button,{initial:{opacity:0,transform:"translateX(-50%) translateY(10px)"},animate:{opacity:1,transform:"translateX(-50%) translateY(0)"},exit:{opacity:0,transform:"translateX(-50%) translateY(10px)"},transition:{duration:.3},...(0,h.v6)(_,E,P,T),className:(0,s.xW)("_8kqf970 _1yep5z6po _1yep5z6pp _1yep5z6pq _1yep5z6m6 _1yep5z6m7 _1yep5z6m8 _1yep5z6oi _1yep5z6oj _1yep5z6ok _1yep5z614v _1yep5z614w _1yep5z614x _1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z615m _1yep5z615n _1yep5z615o _1yep5z6z9 _1yep5z6vi _1yep5z6vj _1yep5z6vk _1yep5z617s _1yep5z6101",cj({isFocusVisible:z,variant:"high-contrast",isHovered:D}),dj({variant:"high-contrast"}),"BaselineUI-ScrollControlButton",e),style:t,ref:UT(d,p),children:[(0,m.jsx)(w.F5,{size:16,className:lj({variant:"high-contrast"})}),o]})})}));CL.displayName="ScrollControlButton";var EL="_1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6kd _1yep5z6ke _1yep5z6kf",kL=uI({defaultClassName:"_1v0p2z10 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69f _1yep5z69g _1yep5z69h",variantClassNames:{hasTitleAndIcon:{true:"_1yep5z6m6 _1yep5z6m7 _1yep5z6m8 _1yep5z6oo _1yep5z6op _1yep5z6oq"},hasNoCloseBtn:{true:"_1yep5z6mc _1yep5z6md _1yep5z6me _1yep5z6oo _1yep5z6op _1yep5z6oq _1yep5z6pu _1yep5z6pv _1yep5z6pw _1yep5z6ni _1yep5z6nj _1yep5z6nk"}},defaultVariants:{},compoundVariants:[[{hasTitleAndIcon:!0,hasNoCloseBtn:!0},"_1yep5z61hr _1yep5z61hs _1yep5z61ht"]]}),zL=l.forwardRef((({className:e,style:t,"data-block-id":n,"data-block-class":r,message:o,title:i,primaryActionLabel:a,cancelLabel:s,textInputProps:l,icon:c,iconColor:u,showCloseButton:d=!0,onPrimaryAction:p,onCancel:f,autoFocusButton:g,isPrimaryActionDisabled:v},y)=>{let b=(0,h.Bi)(),{formatMessage:w}=DM(),x=i&&(0,m.jsx)(aN,{id:b,type:"title",size:"sm",elementType:"h3",children:i});return(0,m.jsxs)(nR,{className:e,style:t,"data-block-id":n,"data-block-class":r,size:"sm",variant:"primary",role:"alertdialog",ref:y,"aria-labelledby":b,children:[(0,m.jsxs)("div",{className:kL({hasTitleAndIcon:!(!c||!i),hasNoCloseBtn:!d}),children:[(0,m.jsxs)(vI,{display:"flex",justifyContent:"space-between",alignItems:"center",flexDirection:"row",children:[c?(0,m.jsx)(c,{style:{color:u},size:24}):null,!c&&x,d?(0,m.jsx)(eN,{icon:k.uv,variant:"secondary",size:"md","aria-label":w(PL.close),onPress:f}):null]}),c?x:null]}),o?(0,m.jsx)(vI,{elementType:"section",className:"_1v0p2z10",paddingX:"lg",paddingBottom:"lg",typography:"body.sm.regular",color:"text.primary",children:o}):null,l?(0,m.jsx)(vI,{paddingX:"lg",paddingBottom:"lg",children:(0,m.jsx)(RR,{...l})}):null,s||a?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(mI,{}),(0,m.jsxs)(vI,{padding:"lg",display:"flex",gap:"xl",children:[s?(0,m.jsx)(YI,{variant:"secondary",className:EL,label:s,onPress:f,autoFocus:"cancel"===g}):null,a?(0,m.jsx)(YI,{className:EL,label:a,onPress:p,autoFocus:"primary"===g,isDisabled:v}):null]})]}):null]})}));zL.displayName="AlertDialog";var PL=TM({close:{id:"close",defaultMessage:"Close",description:"Close button label"}}),AL="_1t55bp71",DL=Oz(),TL=l.forwardRef((({className:e,style:t,children:n,"data-block-id":r,"data-block-class":o,showCaret:i},a)=>{let c=(0,l.useMemo)((()=>{let e=n;return(!n||Array.isArray(n)&&0===n.length)&&(e=""),DL.render(e)}),[n]);return(0,m.jsx)("div",{className:(0,s.xW)("_1yep5z6e3 _1yep5z6eu _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z69i _1yep5z69j _1yep5z69k","_1t55bp70",{[AL]:i},"BaselineUI-Markdown",e),"data-block-id":r,"data-block-class":o,style:t,ref:a,dangerouslySetInnerHTML:{__html:c}})}));function IL(e){let{formatMessage:t,locale:n}=DM(),[r,o]=l.useState(!1),[i,a]=l.useState(0),[s,c]=l.useState(0),[u,d]=l.useState(!1);(0,l.useEffect)((()=>{if(!e.current)return;let t=e.current,n=()=>{o(!1),a(0)},r=()=>{u||a(100*t.currentTime/t.duration)},i=()=>{c(t.duration)};return t.addEventListener("ended",n),t.addEventListener("timeupdate",r),t.addEventListener("loadedmetadata",i),()=>{t.removeEventListener("ended",n),t.removeEventListener("timeupdate",r),t.removeEventListener("loadedmetadata",i)}}),[u,e]);let p=(0,l.useCallback)((()=>{(async()=>{e.current&&(e.current.paused?(await e.current.play(),o(!0),jz(t(ML.playing),"polite")):(e.current.pause(),o(!1),jz(t(ML.paused),"polite")))})()}),[t,e]),h=(0,l.useCallback)((t=>{e.current&&(e.current.currentTime=t*e.current.duration/100,jz(function(e,t){let n=Math.floor(e/3600),r=Math.floor(e%3600/60),o=e%60,i={...n&&{hours:n},...r&&{minutes:r},seconds:Math.floor(o)};return new Intl.DurationFormat(t,{style:"long"}).format(i)}(e.current.currentTime,n.locale),"assertive"))}),[n.locale,e]);return{isPlaying:r,progress:i,duration:s,togglePlay:p,seek:h,setProgress:a,formattedCurrentTime:e.current?.currentTime?NL(e.current?.currentTime):"00:00",formattedDuration:s?NL(s):"00:00",setIsSliderDragging:d}}TL.displayName="Markdown";var ML=TM({playing:{id:"playing",defaultMessage:"Playing"},paused:{id:"paused",defaultMessage:"Paused"}});function NL(e){return[Math.floor(e%3600/60),Math.floor(e%60)].map((e=>e.toString().padStart(2,"0"))).join(":")}var OL=l.forwardRef((({className:e,style:t,size:n="lg",sources:r,"data-block-id":o,"data-block-class":i,...a},c)=>{let u=l.useRef(null),{isPlaying:d,progress:p,duration:f,togglePlay:v,seek:y,formattedDuration:b,formattedCurrentTime:w,setProgress:x,setIsSliderDragging:S}=IL(u),{formatMessage:_}=DM(),C=(0,s.nP)({"data-block-id":o,"data-block-class":i,"data-state":d?"playing":"paused","data-loaded":f>0});return(0,m.jsxs)("div",{...C,...a,className:(0,s.xW)("_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69o _1yep5z69p _1yep5z69q","BaselineUI-AudioPlayer",e),role:"group",style:t,ref:c,children:[(0,m.jsx)(h.s6,{children:(0,m.jsx)("audio",{ref:u,children:r.map((({url:e,type:t})=>(0,m.jsx)("source",{src:e,type:t},e)))})}),(0,m.jsx)(OB,{icon:d?g.E$n:g.udU,variant:"toolbar",isSelected:d,size:n,"aria-label":_(d?RL.pause:RL.play),style:{borderRadius:"50%"},onPress:v}),(0,m.jsxs)("div",{className:"rta2n91 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6101 _1yep5z6vl _1yep5z6vm _1yep5z6vn _1yep5z617q _1yep5z610y",children:[(0,m.jsx)("span",{"aria-hidden":!0,children:w}),(0,m.jsx)(rN,{"aria-label":_(RL.audioTimeline),value:p,minValue:0,maxValue:100,className:"rta2n90",onChange:e=>{x(e),S(!0)},onChangeEnd:e=>{y(e),S(!1)}}),(0,m.jsx)("span",{"aria-hidden":!0,children:b})]})]})}));OL.displayName="AudioPlayer";var RL=TM({play:{id:"play",defaultMessage:"Play"},pause:{id:"pause",defaultMessage:"Pause"},audioTimeline:{id:"audioTimeline",defaultMessage:"Audio timeline"}}),jL=uI({defaultClassName:"_1w920rn2 _1yep5z6d6 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6id _1yep5z6ie _1yep5z6if",variantClassNames:{isFocusVisible:{true:"_1yep5z6lt _1yep5z6lr _1yep5z6hx"},isSelected:{true:"_1yep5z6lt _1yep5z6lr _1yep5z6hx"},isLoading:{true:"_1yep5z616g _1yep5z616h _1yep5z616i"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0,isSelected:!0},"_1w920rn6 _1yep5z6lt _1yep5z6lr _1yep5z6hx"]]}),FL=uI({defaultClassName:"_1w920rn7 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6g5 _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocusVisible:{true:"_1w920rn8 _1yep5z6lt _1yep5z6lr _1yep5z6hx"},isSelected:{true:"_1w920rn9"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0,isSelected:!0},"_1w920rna _1yep5z61ty _1yep5z61tx _1yep5z61q4"]]}),BL=({items:e,ulRef:t,containerClassName:n,previewClassName:r,itemDataAttribute:o,showCount:i=!1})=>{let{length:a}=e,c=l.useRef(null);return(0,l.useLayoutEffect)((()=>{if(!c.current)return;let t=c.current.closest(n)?.querySelector(`[${o}='${e?.at(-1)?.key}']`)?.cloneNode(!0);(0,s.V1)(t,"Node is not defined."),c.current?.prepend(t)}),[e,t,n,o]),(0,m.jsx)("div",{className:r,ref:c,children:i&&a>1?(0,m.jsx)(vI,{backgroundColor:"background.secondary.medium",borderRadius:"full",typography:"label.md.medium",color:"text.primary",position:"absolute",paddingX:"md",className:"_1w920rnc",children:a}):null})};function LL(e){return e.map((e=>({id:e.id,label:e.label,data:{src:e.src,alt:e.alt}})))}function VL(e){return e.map((e=>({id:e.id,label:e.label,src:e.data?.src,alt:e.data?.alt})))}var KL=({fit:e,item:t,deleteElement:n})=>{let{formatMessage:r}=DM(),o=(0,S.Ib)(),{imgProps:i,isLoading:a}=xM({src:t.data?.src,alt:t.data?.alt??""});return a?(0,m.jsx)(UR,{"aria-label":r(ZL.loading)}):(0,m.jsx)(S.PY.div,{role:"img",initial:{opacity:o?1:0},animate:{opacity:1},exit:{opacity:o?1:0},"aria-label":i.alt,style:{backgroundImage:`url(${i.src})`,backgroundSize:e},className:"_1w920rnb _1yep5z6lo",children:n})},HL=({item:e,options:{optionProps:t,isFocusVisible:n,isSelected:r,isFocused:o,isDisabled:i,isPressed:a},liRef:c,fit:u="contain",onDelete:d,className:p,imageClassName:f,imageLabelClassName:g,imageDimensions:v,style:y,layoutTransition:b=!0,renderImage:w=(e,{deleteElement:t})=>(0,m.jsx)(KL,{item:e,deleteElement:t,fit:u})})=>{let x=(0,h.Bi)(),{formatMessage:_}=DM(),{value:C}=e;(0,s.V1)(C&&eI(C),"Expected value to be a list option");let E=d?(0,m.jsx)("div",{className:"_1w920rnd _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g1 _1yep5z6ig _1yep5z6ih _1yep5z6ii",children:(0,m.jsx)(eN,{"aria-label":_(ZL.delete),size:"xs",icon:P.uv,onPress:()=>{d(C.id)},UNSAFE_NON_INTERACTIVE:!0})}):null,k=VL([C])[0],z=(0,l.useCallback)((e=>{let t={},n="function"==typeof e?e(k,{isSelected:r}):e;return n&&(t.width="string"==typeof n.width?qL[n.width]:n.width,t.aspectRatio="height"in n?`${t.width} / ${n.height}`:n?.aspectRatio?.toString()),t}),[k,r]),A=(0,l.useMemo)((()=>({isFocusVisible:n,isSelected:r,isFocused:o,isDisabled:i,isPressed:a})),[n,r,o,i,a]),D=(0,S.Ib)(),T="boolean"==typeof b?b:!D,I="object"==typeof b?b:void 0,M=T?S.PY.li:"li";return(0,m.jsxs)(M,{...(0,h.v6)(t,T?{layout:!0,transition:I}:void 0),ref:c,className:(0,s.xW)("_1w920rn1 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k",wI(p,k,A)),"aria-labelledby":x,style:xI(y,k,A),children:[(0,m.jsx)(vI,{display:"flex",flexDirection:"column",flex:1,justifyContent:"center",alignItems:"center",children:(0,m.jsx)("div",{className:(0,s.xW)(jL({isFocusVisible:n,isSelected:r,isLoading:!0}),wI(f,k,A)),style:z(v),"data-image-key":C.id,children:w(C,{deleteElement:E??void 0,onDelete:d})})}),(0,m.jsx)("span",{id:x,className:(0,s.xW)(FL({isFocusVisible:n,isSelected:r}),wI(g,k,A)),children:C.label})]})},$L={width:0,display:"block"},UL="src",WL="alt",qL={sm:102,md:170},GL=l.forwardRef((({className:e,style:t,fit:n="cover",onReorder:r,"data-block-id":o,"data-block-class":i,onDelete:a,imageWidth:c=qL.sm,aspectRatio:d=3/4,items:p,defaultItems:f=[],onKeyDown:g,imageContainerClassName:v,imageClassName:y,labelClassName:b,onListChange:w,renderImage:x,layoutTransition:S,imageDimensions:_={width:c,aspectRatio:d},imageContainerStyle:C,...E},k)=>{let z=l.useRef(null),[P,A]=(0,l.useState)([]),{formatMessage:D}=DM();(0,l.useEffect)((()=>{(d||c)&&console.warn("ImageGallery: aspectRatio and imageWidth are deprecated. Use imageDimensions instead.")}),[c,d]);let[T,I]=u(E.selectedKeys,E.defaultSelectedKeys??[],E.onSelectionChange),[M,N]=u(p?LL(p):void 0,LL(f),w?e=>{w?.(VL(e))}:void 0),O=(0,l.useCallback)((e=>{let t=e.target.key,n=e.keys;if("before"===e.target.dropPosition){let e=function(e,t,n){let r=[...e],o=r.filter((e=>n.has(e.id))),i=r.filter((e=>!n.has(e.id))),a=i.findIndex((e=>e.id===t));return i.flatMap(((e,t)=>t===a?[...o,e]:e))}(M,t,n);N(e)}else if("after"===e.target.dropPosition){let e=function(e,t,n){let r=[...e],o=r.filter((e=>n.has(e.id))),i=r.filter((e=>!n.has(e.id))),a=i.findIndex((e=>e.id===t));return i.flatMap(((e,t)=>t===a?[e,...o]:e))}(M,t,n);N(e)}r?.(e)}),[M,r,N]),R=(0,l.useCallback)((()=>{a&&P.length&&(N(M.filter((e=>!P.includes(e.id)))),a(new Set(P)),A([]))}),[P,M,a,N]),j=(0,l.useCallback)(((e,t,r)=>{let{value:o}=e;(0,s.V1)(eI(o));let i={id:o.id,label:o.label,src:o.data?.src,alt:o.data?.alt};return(0,m.jsx)(HL,{item:e,options:t,liRef:r,fit:n,onDelete:a?e=>{A([e])}:void 0,renderImage:x,className:wI(v,i,t),imageClassName:y,imageLabelClassName:b,imageDimensions:_,style:C,layoutTransition:S})}),[n,a,x,v,y,b,_,C,S]),{keyboardProps:F}=(0,h.de)({onKeyDown(e){if(g?.(e),"Backspace"===e.key||"Delete"===e.key){if(!a)return;if([...T].length)A([...T]);else{let t=e.target.dataset.key;A([t])}}}});return(0,m.jsxs)("div",{...F,ref:k,style:t,className:(0,s.xW)("BaselineUI-ImageGallery",e),"data-block-id":o,"data-block-class":i,children:[(0,m.jsx)(TI,{...E,selectedKeys:T,items:M,onReorder:O,layout:"grid",orientation:"vertical",className:"_1w920rn0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6le",ref:z,dropIndicatorStyle:$L,renderOption:j,renderDragPreview:e=>(0,m.jsx)(BL,{items:e,ulRef:z,containerClassName:".BaselineUI-ImageGallery",previewClassName:jL(),itemDataAttribute:"data-image-key",showCount:!0}),onSelectionChange:I,getItems:e=>[...e].map((e=>{let t=function(e,t){return e.find((e=>e.id===t))}(M,e);return{[UL]:t?.src||"",[WL]:t?.alt||"",key:e}}))}),(0,m.jsx)(hN,{isOpen:!![...P].length,onOpenChange:e=>{e||A([])},children:(0,m.jsx)(QO,{isDismissable:!0,children:(0,m.jsx)(zL,{showCloseButton:!1,title:"Are you sure you want to delete this item?",primaryActionLabel:D(ZL.delete),cancelLabel:D(ZL.cancel),onCancel:()=>{A([])},onPrimaryAction:R,autoFocusButton:"cancel"})})})]})}));GL.displayName="ImageGallery";var ZL=TM({delete:{id:"delete",defaultMessage:"Delete"},cancel:{id:"cancel",defaultMessage:"Cancel"},loading:{id:"loading",defaultMessage:"Loading"}}),YL=l.forwardRef((({className:e,style:t,items:n,"data-block-id":r,"data-block-class":o,hideLabel:i,size:a="md",isDisabled:c,showSelectedIcon:d=!0,excludeFromTabOrder:p,onPress:g,isSelected:v,defaultSelected:y,onButtonSelectionChange:w,moreAriaLabel:x,optionStyle:S,optionClassName:_,triggerClassName:C,triggerStyle:E,tooltipProps:k,...z},P)=>{let{formatMessage:D}=DM(),T=nI(),I=(0,f.nj)({items:n,...z,defaultSelectedKey:z.defaultSelectedKey||n?.[0]?.id,children:T,validationState:"error"===z.validationState?"invalid":"valid"}),[M,N]=u(v,!!y,(e=>{w?.({isSelected:e,selectedKey:I.selectedKey})})),{hoverProps:O,isHovered:R}=(0,h.Mk)({isDisabled:c}),j=(0,l.useMemo)((()=>{let e=I.collection.getItem(I.selectedKey),t=e?.textValue||e?.["aria-label"],n=e?.value,r=n?.icon,o={size:a,isSelected:M,onPress:e=>{N(!M),g?.(e)},isDisabled:c,excludeFromTabOrder:p,className:"function"==typeof _?_(n,{isButton:!0,isSelected:M}):_,style:"function"==typeof S?S(n,{isButton:!0,isSelected:M}):S};return i&&r?(0,m.jsx)(XM,{variant:"inverse",size:"sm",includeArrow:!1,text:t,placement:"bottom start",offset:4,..."function"==typeof k?k("button"):k,children:(0,m.jsx)(OB,{icon:r,"aria-label":t,variant:"toolbar",...o})}):(0,m.jsx)(ZR,{iconStart:r,label:t,variant:"toolbar",...o})}),[p,i,M,c,g,_,S,N,a,I.collection,I.selectedKey,k]),F=z["aria-label"],B=(0,l.useCallback)((({buttonProps:e,ref:t})=>{delete e["aria-labelledby"];let n=x||`${D(XL.more)} ${F}`;return(0,m.jsx)(XM,{variant:"inverse",size:"sm",includeArrow:!1,text:n,placement:"bottom start",offset:4,...k,children:(0,m.jsx)(A.YI,{...e,children:(0,m.jsx)(eN,{"aria-label":n,ref:t,icon:b.bD,variant:"toolbar",size:a,className:({isFocusVisible:e})=>(0,s.xW)(WR({isSelected:M,isFocusVisible:e}),"_1sexph01 _1yep5z6189 _1yep5z618a _1yep5z618b _1yep5z61al _1yep5z61am _1yep5z61an _1yep5z61br _1yep5z61bs _1yep5z61bt _1yep5z619f _1yep5z619g _1yep5z619h _1yep5z61sg _1yep5z61sh _1yep5z61si",C),style:E,isDisabled:c,excludeFromTabOrder:p})})})}),[F,p,D,M,c,x,a,k,C,E]),L=(0,s.nP)({"data-block-id":r,"data-block-class":o,"data-hovered":R,"data-selected":M,"data-disabled":c,"data-expanded":I.isOpen}),V=JT(P),K=(0,l.useMemo)((()=>({state:I,popoverAnchorRef:V})),[I,V]),H=(0,l.useCallback)((e=>"function"==typeof _?_(e,{isButton:!1,isSelected:I.selectionManager.isSelected(e.id)}):_),[_,I.selectionManager]),$=(0,l.useCallback)((e=>"function"==typeof S?S(e,{isButton:!1,isSelected:I.selectionManager.isSelected(e.id)}):S),[S,I.selectionManager]);return(0,m.jsx)(Cj.Provider,{value:K,children:(0,m.jsxs)(vI,{...O,role:"group",display:"inline-flex",flexDirection:"row",alignItems:"center",className:(0,s.xW)("_1sexph00","BaselineUI-ButtonSelect",e),"aria-label":z["aria-label"],"aria-labelledby":z["aria-labelledby"],"aria-describedby":z["aria-describedby"],"aria-details":z["aria-details"],style:t,ref:V,...L,children:[j,(0,m.jsx)(zj,{isDisabled:c,showSelectedIcon:d,placement:"bottom start",items:n,...z,style:{width:20},optionClassName:H,optionStyle:$,variant:"ghost",renderTrigger:B})]})})}));YL.displayName="ButtonSelect";var XL=TM({more:{id:"more",defaultMessage:"More"}}),JL=uI({defaultClassName:"_18v88n10 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6ln",variantClassNames:{labelPosition:{top:"_1yep5z6157 _1yep5z6158 _1yep5z6159",start:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z616m _1yep5z616n _1yep5z616o _1yep5z6vl _1yep5z6vm _1yep5z6vn"}},defaultVariants:{},compoundVariants:[]}),QL=uI({defaultClassName:"_18v88n1p _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6eu _1yep5z6ln _1yep5z6ly _1yep5z6lq _1yep5z6dy",variantClassNames:{isDisabled:{true:"_18v88n1q _1yep5z6111"},labelPosition:{top:"_18v88n1r",start:"_18v88n1s"}},defaultVariants:{},compoundVariants:[]}),eV=uI({defaultClassName:"_18v88n1t _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6iv _1yep5z6iw _1yep5z6ix _1yep5z6lk",variantClassNames:{validationState:{valid:"_18v88n1u",error:"_1yep5z610h",warning:"_1yep5z610p"},isReadOnly:{true:"_1yep5z6118"}},defaultVariants:{},compoundVariants:[]}),tV=uI({defaultClassName:"_18v88n1d _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6m1 _1yep5z6lz _1yep5z6h4 _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{validationState:{valid:"_18v88n1e",error:"_1yep5z612q",warning:"_18v88n1g"},isHovered:{true:"_18v88n1h"},isFocused:{true:"_1yep5z6wl _1yep5z6wm _1yep5z6wn _1yep5z6x9 _1yep5z6xa _1yep5z6xb _1yep5z6xx _1yep5z6xy _1yep5z6xz _1yep5z6yl _1yep5z6ym _1yep5z6yn _1yep5z6184 _1yep5z6182 _1yep5z6134 _1yep5z617v _1yep5z617u _1yep5z6140 _1yep5z617x"},isDisabled:{true:"_18v88n1j"},variant:{primary:"_18v88n1k",ghost:"_18v88n1l"},isReadOnly:{true:"_1yep5z6140"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:!0,isFocused:!1,validationState:"valid"},"_1yep5z61u7 _1yep5z61u5 _1yep5z61pa"],[{variant:"ghost",isFocused:!1,isHovered:!1,validationState:"valid"},"_18v88n1n"],[{isHovered:!0,validationState:"valid",isDisabled:!1,isReadOnly:!1,isFocused:!1,variant:"primary"},"_1yep5z61pb"],[{isHovered:!0,validationState:"warning",isDisabled:!1,isReadOnly:!1,isFocused:!1},"_1yep5z61pb"],[{isReadOnly:!0,variant:"primary",isFocused:!1},"_18v88n1o"]]}),nV=uI({defaultClassName:"_18v88n13 _1yep5z6dy _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),rV=uI({defaultClassName:"_18v88n19 _1yep5z6iv _1yep5z6iw _1yep5z6ix",variantClassNames:{labelPosition:{top:"_1yep5z6t9 _1yep5z6ta _1yep5z6tb",start:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8 _1yep5z6157 _1yep5z6158 _1yep5z6159"},hasMessage:{true:"_18v88n1c"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"_1yep5z61sj _1yep5z61sk _1yep5z61sl"]]}),oV=uI({defaultClassName:"_18v88n15 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z6lq",variantClassNames:{isFocusVisible:{true:"_1yep5z6127 _1yep5z614f _1yep5z617t"},isHovered:{true:"_1yep5z6127 _1yep5z614f _1yep5z617t"},isOpen:{true:"_1yep5z614f _1yep5z617t"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0},"_1yep5z61oa _1yep5z61qi _1yep5z61tw"],[{isHovered:!0},"_1yep5z61oa _1yep5z61qi _1yep5z61tw"],[{isOpen:!0},"_1yep5z61qi _1yep5z61tw"]]});var iV=l.forwardRef((({className:e,style:t,inputStyle:n,inputClassName:r,"data-block-id":o,"data-block-class":i,label:a,items:c,showSelectedIcon:u=!1,onSelectionChange:d,onInputChange:p,isInvalid:g=!1,labelPosition:v="top",validationState:b="valid",variant:w="primary",toggleLabel:x,renderOption:S,showIcon:_=!0,filter:C,minValue:E,maxValue:k,inputType:z="text",onInputSubmit:P,onValueChange:A,...D},T)=>{let I=(0,h.UH)(T),{contains:M}=(0,h.U2)({sensitivity:"base"}),N=nI(),O=(0,f.kf)({...D,defaultFilter:C||M,defaultItems:c,onSelectionChange:d,onInputChange:p,children:N,validationState:g?"invalid":"valid"}),R=l.useRef(null),j=l.useRef(null),F=l.useRef(null),B=l.useRef(null),L=l.useRef(null),{inputProps:V}=function({allowsCustomValue:e,onValueChange:t,inputValue:n},r,o,i,a){let[s,c]=(0,l.useState)(null),u=(0,l.useRef)(!1);(0,l.useEffect)((()=>{if(!t)return;let e=o.current,n=e=>{c(e.target)};return e?.addEventListener("focusin",n),()=>{e?.removeEventListener("focusin",n)}}),[t,o,r.selectedKey]),(0,y.useGranularEffect)((()=>{r.selectedKey&&(t?.({value:r.selectedItem?.textValue,key:r.selectedKey}),u.current=!1)}),[r.selectedKey],[t,r.selectedItem]),(0,h.$Z)({ref:i,isDisabled:!t,onInteractOutside:n=>{!a.current?.contains(n.target)&&s===i.current&&e&&u.current&&(t?.({value:i.current?.value,key:null}),u.current=!1)}}),(0,l.useEffect)((()=>{if(!t)return;let e=i.current,n=()=>{u.current=!0};return e?.addEventListener("input",n),()=>{e?.removeEventListener("input",n)}}),[i,t]),(0,l.useEffect)((()=>{u.current=!1}),[n]);let{keyboardProps:d}=(0,h.de)({isDisabled:!t,onKeyDown:n=>{e&&"Enter"===n.key&&u.current?(t?.({value:i.current?.value,key:null}),u.current=!1):"Escape"===n.key&&r.close(),n.continuePropagation()}});return{inputProps:d}}({onValueChange:A,allowsCustomValue:D.allowsCustomValue,inputValue:D.inputValue},O,I,j,B),{buttonProps:K,inputProps:H,listBoxProps:$,labelProps:U,errorMessageProps:W,descriptionProps:q,validationErrors:G}=(0,h.rE)({...D,inputRef:j,defaultItems:c,buttonRef:R,listBoxRef:F,popoverRef:B,validationState:"error"===b?"invalid":"valid"},O),Z=D.errorMessage||G.join(" "),Y=lM({...D,errorMessage:Z,descriptionProps:q,errorMessageProps:W,labelPosition:v});Z&&(b="error");let{hoverProps:X,isHovered:J}=(0,h.Mk)({isDisabled:D.isDisabled}),{isFocused:Q,focusProps:ee,isFocusVisible:te}=(0,h.og)(),ne=OR({isReadOnly:D.isReadOnly,validationState:b}),re=(0,s.nP)({"data-read-only":D.isReadOnly,"data-disabled":D.isDisabled,"data-validation-state":b,"data-focused":Q,"data-focus-visible":te}),{labelProps:oe,fieldProps:ie}=(0,h.MW)({label:a,"aria-label":D["aria-label"],"aria-labelledby":D["aria-labelledby"],"aria-describedby":D["aria-describedby"],"aria-details":D["aria-details"]}),{keyboardProps:ae}=(0,h.de)({onKeyDown:e=>{D.allowsCustomValue&&"Enter"===e.key&&P?.(H.value?.toString()??"")}}),{focusProps:se}=(0,h.iQ)({onBlur:()=>{D.allowsCustomValue&&H.value&&P?.(H.value?.toString()??"")}});return(0,m.jsx)(PI.Provider,{value:O,children:(0,m.jsxs)("div",{className:(0,s.xW)(JL({labelPosition:v}),e,"BaselineUI-ComboBox"),"data-block-id":o,"data-block-class":i,style:t,ref:I,children:[a||"start"===v&&Y?(0,m.jsxs)("div",{className:rV({labelPosition:v,hasMessage:!!Y}),children:[(0,m.jsx)("label",{...(0,h.v6)(U,oe),className:nV({isDisabled:D.isDisabled}),children:a}),"start"===v&&Y]}):null,(0,m.jsxs)("div",{...X,className:tV({validationState:b,isHovered:J,isFocused:Q,variant:w,isReadOnly:!!D.isReadOnly,isDisabled:!!D.isDisabled}),ref:L,children:[(0,m.jsx)("input",{...(0,h.v6)(H,V,ee,re,ie,se,ae,"number"===z?{type:"number",min:E,max:k,onKeyDown:e=>{("ArrowUp"===e.key||"ArrowDown"===e.key)&&e.preventDefault()}}:null),id:D.id,ref:j,className:(0,s.xW)(QL({isDisabled:D.isDisabled,labelPosition:v}),"BaselineUI-ComboBox-Input",r),style:n}),ne&&_?(0,m.jsx)(ne,{className:eV({validationState:b,isReadOnly:D.isReadOnly}),size:16}):null,(0,m.jsx)(YI,{...K,ref:R,variant:"popover",label:x,className:oV({isFocusVisible:!D.isDisabled&&!D.isReadOnly&&te,isHovered:!D.isDisabled&&!D.isReadOnly&&J,isOpen:O.isOpen})})]}),(0,m.jsx)(aR,{ref:B,triggerRef:L,state:O,crossOffset:-2,className:"BaselineUI-ComboBox-Popover",children:(0,m.jsx)(TI,{...$,items:c,ref:F,renderOption:S,selectionMode:"single",showSelectedIcon:u,className:(0,s.xW)(xR,"BaselineUI-ComboBox-ListBox")})}),"top"===v&&Y]})})}));iV.displayName="ComboBox";var aV=uI({defaultClassName:"byycd01 _1yep5z6d6 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6id _1yep5z6ie _1yep5z6if",variantClassNames:{},defaultVariants:{},compoundVariants:[]}),sV=l.forwardRef((({enableReorder:e,...t},n)=>e?(0,m.jsx)(cV,{ref:n,...t}):(0,m.jsx)(lV,{ref:n,...t})));sV.displayName="GridListItem";var lV=l.forwardRef((({item:e,state:t,dropState:n,renderGridItem:r,dragHandleProps:o},i)=>{let a=JT(i),s=(0,h.ns)({node:e},t,a),l="none"!==t.selectionManager.selectionMode&&"toggle"===t.selectionManager.selectionBehavior,{checkboxProps:c}=(0,h.v0)({key:e.key},t),u={...s,checkBoxProps:l?c:void 0,dragHandleProps:o};return(0,m.jsxs)("div",{"data-grid-list-item-key":e.key,children:[n?(0,m.jsx)(bI,{target:{type:"item",key:e.key,dropPosition:"before"},dropState:n}):null,r?r(e,u,a):null,n&&null==t.collection.getKeyAfter(e.key)?(0,m.jsx)(bI,{target:{type:"item",key:e.key,dropPosition:"after"},dropState:n}):null]},e.key)}));lV.displayName="BaseGridListItem";var cV=l.forwardRef((({dragState:e,item:t,...n},r)=>{let o=(0,h.OG)({key:t.key,hasDragButton:!0},e);return(0,m.jsx)(lV,{item:t,dragHandleProps:o,ref:r,...n})}));cV.displayName="DraggableGridListItem";var uV=e=>{"Enter"===e.key||"Escape"===e.key||e.stopPropagation()},dV=l.forwardRef((({className:e,style:t,isEditing:n=!1,"data-block-id":r,"data-block-class":o,gridListHandle:i,onReorder:a,enableReorder:c=!1,layout:u="stack",orientation:d="vertical",renderGridItem:p,...g},v)=>{let y=nI(),b=(0,f.pE)({...g,children:y}),w=l.useRef(null),x=JT(v),{gridProps:S}=(0,h.IZ)(g,b,x);zI({handle:i,type:"gridlist"},b,x);let{collectionProps:_,dragState:C,dropState:E}=rI({...g,onReorder:a,enableReorder:c,layout:u,orientation:d,preview:w,getItems:e=>[...e].map((e=>{let t=b.collection.getItem(e);return(0,s.V1)(t,"Expected item to be defined."),{key:t.key.toString()}}))},b,x),k=n?uV:S.onKeyDownCapture,z={state:b,dragState:C,dropState:E,enableReorder:c,renderGridItem:p};return(0,m.jsxs)("ul",{...(0,h.v6)(S,_),className:(0,s.xW)("BaselineUI-GridList",e),"data-block-id":r,"data-block-class":o,style:t,ref:x,"aria-rowcount":b.collection.size,onKeyDownCapture:k,children:[[...b.collection].map((e=>(0,m.jsx)(sV,{item:e,...z},e.key))),c?(0,m.jsx)(h.B2,{ref:w,children:e=>(0,m.jsx)(BL,{items:e,ulRef:x,containerClassName:".BaselineUI-GridList",previewClassName:aV(),itemDataAttribute:"data-grid-list-item-key"})}):null]})}));dV.displayName="GridList";var pV="_1dc3b8m0",hV=l.forwardRef((({className:e,selectionMode:t,style:n,"data-block-id":r,"data-block-class":o,tooltipProps:i,icon:a,renderActionItem:c,...u},d)=>{let p=JT(d),h=nI(),g=(0,f.pE)({...u,selectionMode:t,suppressTextValueWarning:!0,children:h}),{actionGroupProps:v}=function(e,t,n){let{isDisabled:r,orientation:o="horizontal"}=e,[i,a]=(0,l.useState)(!1);(0,Ae.Nf)((()=>{var e;a(!(!n.current||!(null===(e=n.current.parentElement)||void 0===e?void 0:e.closest('[role="toolbar"]'))))}),[n]),[...t.collection.getKeys()].some((e=>!t.disabledKeys.has(e)))||(r=!0);let{direction:s}=(0,De.Ym)(),c=(0,x.C7)(n),u="rtl"===s&&"horizontal"===o,d=Bz[t.selectionManager.selectionMode];return i&&"toolbar"===d&&(d="group"),{actionGroupProps:{...(0,Ae.$X)(e,{labelable:!0}),role:d,"aria-orientation":"toolbar"===d?o:void 0,"aria-disabled":r,onKeyDown:e=>{if(e.currentTarget.contains(e.target))switch(e.key){case"ArrowRight":case"ArrowDown":e.preventDefault(),e.stopPropagation(),"ArrowRight"===e.key&&u?c.focusPrevious({wrap:!0}):c.focusNext({wrap:!0});break;case"ArrowLeft":case"ArrowUp":e.preventDefault(),e.stopPropagation(),"ArrowLeft"===e.key&&u?c.focusNext({wrap:!0}):c.focusPrevious({wrap:!0})}}}}}({...u,selectionMode:t,children:h},g,p),y=[...g.collection].map((e=>((0,s.V1)(e.value),(0,m.jsx)(fV,{item:e,state:g,isDisabled:u.isDisabled,onAction:u.onAction,tooltipProps:i,renderActionItem:c},e.key))));return a?(0,m.jsxs)(vI,{...v,display:"flex",flexDirection:"row",gap:"md",alignItems:"center",className:(0,s.xW)("BaselineUI-ActionGroup",e),"data-block-id":r,"data-block-class":o,style:n,ref:p,children:[(0,m.jsx)(a,{size:24,className:"_1yep5z6f5"}),(0,m.jsx)(vI,{display:"flex",flexDirection:"row",gap:"xs",flex:1,children:y})]}):(0,m.jsx)(vI,{...v,display:"flex",flexDirection:"row",gap:"xs",className:(0,s.xW)("BaselineUI-ActionGroup",e),"data-block-id":r,"data-block-class":o,style:n,ref:p,children:y})}));hV.displayName="ActionGroup";var fV=({item:e,state:t,tooltipProps:n,renderActionItem:r,onAction:o,isDisabled:i})=>{let{buttonProps:a}=function(e,t){let n=t.selectionManager.selectionMode,r={role:Lz[n]};if("none"!==n){let n=t.selectionManager.isSelected(e.key);r["aria-checked"]=n}let o=e.key===t.selectionManager.focusedKey,i=(0,Ae.Jt)((()=>{o&&t.selectionManager.setFocusedKey(null)}));return(0,l.useEffect)((()=>()=>{i()}),[i]),{buttonProps:(0,Ae.v6)(r,{tabIndex:o||null==t.selectionManager.focusedKey?0:-1,onFocus(){t.selectionManager.setFocusedKey(e.key)},onPress(){t.selectionManager.select(e.key)}})}}({key:e.key},t),c=i||t.selectionManager.isDisabled(e.key),u=t.selectionManager.isSelected(e.key);(0,s.V1)(e.value);let{icon:d}=e.value;(0,s.V1)(d);let p=(0,l.useMemo)((()=>((0,s.V1)(e.value),"function"==typeof n?n(e.value):n)),[n,e.value]);return(0,m.jsx)(A.YI,{...(0,h.v6)(a,{onPress:()=>{o?.(e.key)}}),children:(0,m.jsx)(XM,{text:e.textValue,size:"sm",variant:"inverse",includeArrow:!1,offset:4,...p,children:r?.(e,{isSelected:u,isDisabled:c})||(0,m.jsx)(eN,{variant:"tertiary",icon:d,"aria-label":e.textValue,size:"sm",isDisabled:c,className:(0,s.xW)({[pV]:u},"BaselineUI-ActionGroup-Item")})})})},mV=l.forwardRef((({className:e,style:t,items:n,optionsContainerClassName:r,label:o,icon:i,value:a,defaultValue:c,onChange:u,isDisabled:d,optionClassName:p,optionStyle:f,labelPosition:g="top","data-block-id":y,"data-block-class":b,shouldFocusWrap:w,tooltip:x=!0,...S},_)=>{let C=(0,l.useMemo)((()=>n.map((e=>({id:e.color,label:e.label})))),[n]),E=(0,h.Bi)();return(0,l.useEffect)((()=>{!o&&!S["aria-label"]&&!S["aria-labelledby"]&&console.warn("ColorSwatchPicker: Please provide a label or aria-label for accessibility.")}),[o,S]),(0,m.jsxs)(vI,{...YT(S),className:(0,s.xW)("BaselineUI-ColorSwatchPicker",e),"data-block-id":y,"data-block-class":b,display:"flex",flexDirection:"top"===g?"column":"row",alignItems:"top"===g?"flex-start":"center",justifyContent:"space-between",gap:"md",style:t,ref:_,children:[i||o?(0,m.jsxs)(vI,{display:"flex",alignItems:"center",gap:"md",children:[i?(0,m.jsx)(i,{size:24,className:(0,v.UV)({color:"icon.primary"})}):null,o?(0,m.jsx)(aN,{id:E,type:"label",size:"sm",children:o}):null]}):null,(0,m.jsx)(TI,{className:(0,s.xW)("_1yep5z61r7 _1yep5z61r8 _1yep5z61r9 _1yep5z61hl _1yep5z61hm _1yep5z61hn",r),selectionMode:"single",items:C,orientation:"horizontal",defaultSelectedKeys:c?[c]:void 0,disabledKeys:d?C.map((e=>e.id)):void 0,isDisabled:d,selectedKeys:a?[a]:void 0,onSelectionChange:e=>{u?.([...e][0])},optionClassName:p,optionStyle:f,renderOption:({key:e,textValue:t},{isSelected:n,isFocusVisible:r,isDisabled:o,optionProps:i},a)=>(0,m.jsx)("li",{...i,"data-disabled":o,className:(0,s.xW)("ujkypy0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",i.className),ref:a,children:(0,m.jsx)(yF,{isFocusVisible:r,color:e,isSelected:n,"aria-label":t,isInteractive:!0,isDisabled:o,tooltip:x})}),shouldFocusWrap:w,...S,"aria-labelledby":o?E:S["aria-labelledby"]})]})}));mV.displayName="ColorSwatchPicker";var gV=uI({defaultClassName:"_10dw1p90 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69f _1yep5z69g _1yep5z69h _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lq _1yep5z6ld _1yep5z6la",variantClassNames:{isSelected:{true:"_1yep5z6126"},isHovered:{true:"_10dw1p92"},isRenaming:{true:"_10dw1p93"},isFocusVisible:{true:"_1yep5z6140 _1yep5z617w _1yep5z617u"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,isSelected:!1,isRenaming:!1},"_1yep5z61o8 _1yep5z61q9 _1yep5z61ty _1yep5z61tx"]]});function vV(e,t){if("function"==typeof e&&!e.prototype?.isReactComponent){let n=e(t);return(0,l.isValidElement)(n)?e:n}return e}var yV=({context:e,depth:t,children:n,item:r,onPrimaryAction:o,onSecondaryAction:i,actionsPosition:a,primaryActionIcon:c,secondaryActionIcon:u,primaryActionAriaLabel:d,secondaryActionAriaLabel:p,onRename:f,onAction:g,renderItemTitle:y=e=>e.data.label})=>{let{formatMessage:w}=DM(),{hoverProps:S,isHovered:_}=(0,h.Mk)({}),C=(0,l.useRef)(null),{onKeyDown:E,...k}=e.interactiveElementProps;delete k.onFocus,delete k.onClick;let z=(0,x.C7)(C),P=(0,l.useCallback)((t=>{if("ArrowRight"!==t.key||!e.isExpanded&&r.children?.length)switch(t.key){case"ArrowLeft":z.focusPrevious()?(t.preventDefault(),t.stopPropagation()):(E?.(t),e.focusItem(!0));break;case"Enter":e.toggleExpandedState();break;default:E?.(t)}else C.current?.setAttribute("tabindex","-1"),t.preventDefault(),t.stopPropagation(),z.focusNext()}),[e,z,E,r,C]),A=(0,l.useMemo)((()=>{let e=vV(c,r.index),t=vV(u,r.index),n="function"==typeof d?d(r.index):d,a="function"==typeof p?p(r.index):p;return e||t?(0,m.jsxs)(vI,{display:"flex",flexDirection:"row",children:[e?(0,m.jsx)(OB,{icon:e,"aria-label":n,size:"sm",excludeFromTabOrder:!0,variant:"secondary",onPress:()=>{o?.(r.index)},tooltip:!0}):null,t?(0,m.jsx)(OB,{icon:t,"aria-label":a,size:"sm",excludeFromTabOrder:!0,variant:"secondary",onPress:()=>{i?.(r.index)},tooltip:!0}):null]}):null}),[c,r.index,u,d,p,o,i]),D=(0,l.useCallback)((t=>{"Enter"===t.key?(f?.({key:r.index,value:t.target.value}),e.stopRenamingItem()):"Escape"===t.key?(e.stopRenamingItem(),C.current?.setAttribute("tabindex","0"),C.current?.focus()):"ArrowRight"!==t.key&&"ArrowLeft"!==t.key&&"ArrowUp"!==t.key&&"ArrowDown"!==t.key&&!t.metaKey&&t.continuePropagation()}),[r.index,e,f,C]),T=r.data.icon,I=!!f,{pressProps:M}=(0,h.dD)({onPress:()=>{g?.(r.index)}}),{isFocusVisible:N,focusProps:O}=(0,x.og)();return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{...(0,h.v6)({onKeyDown:P,onFocus:()=>{e.focusItem(!1)}},M,O,S,e.itemContainerWithoutChildrenProps,k),className:(0,s.xW)("_10dw1p95",gV({isHovered:_,isSelected:e.isSelected,isFocusVisible:N,isRenaming:e.isRenaming}),"BaselineUI-TreeView-Row"),role:"row","data-key":r.index,"data-expanded":r.isFolder?e.isExpanded:void 0,"aria-expanded":r.isFolder?e.isExpanded:void 0,"data-selected":e.isSelected,"aria-selected":e.isSelected,"data-depth":t,"aria-level":t+1,"aria-posinset":r.data.posInset,"aria-setsize":r.data.setSize,"aria-label":r.data.label,style:{justifyContent:"end"===a?"space-between":void 0},ref:C,children:(0,m.jsxs)(vI,{role:"gridcell",style:{display:"contents"},"aria-colindex":1,children:["start"===a?A:null,(0,m.jsxs)(vI,{display:"flex",flexDirection:"row",alignItems:"center",children:[(0,m.jsxs)(vI,{display:"flex",padding:"sm",flexDirection:"row",alignItems:"center",gap:"md",style:{marginInlineStart:`calc(${2*t} * ${v.G6.spacing.lg})`},children:[(0,m.jsx)(eN,{icon:b.vK,size:"xxs",variant:"secondary",onPress:()=>{e.toggleExpandedState()},"aria-label":w(e.isExpanded?bV.collapse:bV.expand),style:{visibility:r.children?.length?"visible":"hidden"},className:(0,s.xW)("_10dw1p96","BaselineUI-TreeView-ExpansionToggle"),UNSAFE_NON_INTERACTIVE:!0}),T?(0,m.jsx)(T,{size:16,style:{color:v.G6.color.icon.interactive.disabled}}):null]}),(0,m.jsxs)(vI,{paddingLeft:"sm",paddingY:e.isRenaming?"none":"md",display:"flex",flexDirection:"column",gap:"xs",onDoubleClick:t=>{I&&(t.stopPropagation(),t.preventDefault(),e.startRenamingItem())},children:[e.isRenaming?(0,m.jsx)("div",{onClick:e=>{e.stopPropagation()},children:(0,m.jsx)(RR,{defaultValue:r.data.label,autoFocus:!0,onBlur:t=>{f?.({key:r.index,value:t.target.value}),e.stopRenamingItem()},"aria-label":w(bV.rename),onKeyDown:D,className:"BaselineUI-TreeView-RenameInput"})}):(0,m.jsx)(aN,{type:"label",size:"sm",className:(0,s.xW)(v.UV.compoundVariants({color:"text.primary"}),"BaselineUI-TreeView-Title"),children:y(r)}),r.data.description?(0,m.jsx)(aN,{type:"helper",size:"sm",className:"BaselineUI-TreeView-Description",children:r.data.description}):null]})]}),"end"===a?A:null]})}),n]})},bV=TM({expand:{id:"expand",defaultMessage:"Expand"},collapse:{id:"collapse",defaultMessage:"Collapse"},rename:{id:"rename",defaultMessage:"Rename"}});function wV(e,{posInset:t,setSize:n}){return{index:e.id,children:e.children?e.children.map((e=>e.id)):[],data:{label:e.label,description:e.description,icon:e.icon,...e.data,posInset:t,setSize:n},isFolder:!!e.children?.length}}var xV=l.forwardRef((({className:e,style:t,"data-block-id":n,"data-block-class":r,items:o,rootId:i=o.id,onPrimaryAction:a,onSecondaryAction:c,primaryActionIcon:u,secondaryActionIcon:d,primaryActionAriaLabel:p,secondaryActionAriaLabel:g,actionsPosition:v="start",onRename:y,onAction:b,renderItemTitle:w,...x},S)=>{let _=nI(),C=(0,l.useRef)(null),E=(0,f.pk)({...x,selectionMode:"multiple",items:o.children,children:_}),k=(0,l.useMemo)((()=>Object.fromEntries(Object.entries(function(e,t){let n={};return function e(r,o,i){if(n[r.id]=t(r,{posInset:o,setSize:i}),r.children)for(let t=0;t<r.children.length;t++)e(r.children[t],t+1,r.children.length)}(e,0,0),n}(o,wV)).map((([e,t])=>[e,{...t,canRename:!!y}])))),[o,y]),z=(0,h.Bi)(),[P,A]=l.useState(o.children?.[0]?.id??""),D=(0,l.useRef)(P),T=(0,l.useMemo)((()=>({[`tree-${z}`]:{focusedItem:P,expandedItems:[...E.expandedKeys],selectedItems:[...E.selectionManager.selectedKeys]}})),[P,E.expandedKeys,E.selectionManager.selectedKeys,z]);return(0,l.useEffect)((()=>{if(!C.current)return;let e=C.current.getRootNode(),t=e instanceof ShadowRoot,n=C.current?.contains(e?.activeElement??null);t&&n&&e?.querySelector(`[data-rct-item-id="${P}"]`)?.focus()}),[P]),(0,m.jsx)(DP,{items:k,getItemTitle:e=>e.data?.label,viewState:T,onExpandItem:e=>{E.setExpandedKeys(new Set([...E.expandedKeys,e.index])),x.onExpand?.(e.index.toString())},onFocusItem:e=>{A(e.index),e.index&&(D.current=e.index)},onCollapseItem:e=>{E.setExpandedKeys(new Set([...E.expandedKeys].filter((t=>t!==e.index)))),x.onCollapse?.(e.index.toString())},onSelectItems:e=>{E.selectionManager.setSelectedKeys(new Set(e))},renderItem:e=>(0,m.jsx)(yV,{...e,onPrimaryAction:a,onSecondaryAction:c,actionsPosition:v,primaryActionIcon:u,secondaryActionIcon:d,primaryActionAriaLabel:p,secondaryActionAriaLabel:g,onRename:y,onAction:b,renderItemTitle:w}),renderLiveDescriptorContainer:({children:e})=>(0,m.jsx)(YM,{children:(0,m.jsx)(h.s6,{children:e})}),renderTreeContainer:({containerProps:o,children:i})=>(0,m.jsx)("div",{...$T(o,{onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||e.currentTarget.querySelector(`[data-key="${D.current}"]`)?.setAttribute("tabindex","0")}}),"data-block-id":n,"data-block-class":r,style:{...t,...o.style},className:(0,s.xW)(e,"BaselineUI-TreeView"),ref:UT(S,o.ref,C),role:"treegrid",children:i}),renderItemsContainer:({children:e})=>e,children:(0,m.jsx)(sA,{treeId:`tree-${z}`,rootItem:i,treeLabel:x["aria-label"],treeLabelledBy:x["aria-labelledby"]})})}));xV.displayName="TreeView";var SV=(0,l.forwardRef)((({className:e,isCollapsible:t=!1,...n},r)=>{let o=(0,l.useRef)(null),i=(0,h.Bi)();return(0,l.useImperativeHandle)(r,(()=>({resize:o.current?.resize}))),(0,m.jsx)(WA,{className:(0,s.xW)("BaselineUI-Panel",e),collapsible:t,ref:o,id:i,...n})}));SV.displayName="Panel";var _V=(0,l.forwardRef)((({className:e,...t},n)=>{let r=(0,l.useRef)(null);return(0,l.useImperativeHandle)(n,(()=>({setLayout:r.current?.setLayout}))),(0,m.jsx)(JD,{className:(0,s.xW)("BaselineUI-PanelGroup",e),ref:r,...t})}));_V.displayName="PanelGroup";var CV=({className:e,isDisabled:t=!1,...n})=>(0,m.jsx)(tT,{disabled:t,className:(0,s.xW)("_6abhjk0","BaselineUI-PanelResizeHandle",e),...n});CV.displayName="PanelResizeHandle";var EV=uI({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7 _1yep5z6lz _1yep5z6m1",variantClassNames:{variant:{info:"_1yep5z6131",warning:"_1yep5z612x",error:"_1yep5z612p",success:"_1yep5z612t"}},defaultVariants:{},compoundVariants:[]}),kV=()=>{};function zV({state:e,...t}){l.useRef(null);let{toastProps:n,contentProps:r,titleProps:o,descriptionProps:i,closeButtonProps:a}=function(e,t){let{key:n,timer:r,timeout:o,animation:i}=e.toast;(0,l.useEffect)((()=>{if(null!=r&&null!=o)return r.reset(o),()=>{r.pause()}}),[r,o]);let[a,s]=l.useState(!1);(0,l.useEffect)((()=>{"entering"!==i&&"queued"!==i||s(!0)}),[i]);let c=(0,Ae.Bi)(),u=(0,Ae.X1)(),d=(0,De.oe)(function(e){return e&&e.__esModule?e.default:e}(aT),"@react-aria/toast");return{toastProps:{role:"alertdialog","aria-modal":"false","aria-label":e["aria-label"],"aria-labelledby":e["aria-labelledby"]||c,"aria-describedby":e["aria-describedby"]||u,"aria-details":e["aria-details"],"aria-hidden":"exiting"===i?"true":void 0,tabIndex:0},contentProps:{role:"alert","aria-atomic":"true",style:{visibility:a||null===i?"visible":"hidden"}},titleProps:{id:c},descriptionProps:{id:u},closeButtonProps:{"aria-label":d.format("close"),onPress:()=>t.close(n)}}}(t,e),c=(0,l.useMemo)((()=>({root:n,title:o,content:r,description:i,close:a})),[n,o,r,i,a]),{canClose:u=!0,...d}=t.toast.content;return(0,m.jsx)(Xj,{elementProps:c,...d,className:(0,s.xW)(EV({variant:d.variant||"info"}),d.className),onClose:u?kV:void 0})}var PV=l.forwardRef((({state:e,style:t,className:n,...r},o)=>{let i=JT(o),{regionProps:a}=function(e,t,n){let r=(0,De.oe)(function(e){return e&&e.__esModule?e.default:e}(aT),"@react-aria/toast"),{landmarkProps:o}=pT({role:"region","aria-label":e["aria-label"]||r.format("notifications",{count:t.visibleToasts.length})},n),{hoverProps:i}=(0,A.Mk)({onHoverStart:t.pauseAll,onHoverEnd:t.resumeAll}),a=(0,l.useRef)([]),s=(0,l.useRef)(t.visibleToasts),c=(0,l.useRef)(null);(0,Ae.Nf)((()=>{if(-1===c.current||0===t.visibleToasts.length||!n.current)return a.current=[],void(s.current=t.visibleToasts);if(a.current=[...n.current.querySelectorAll('[role="alertdialog"]')],s.current.length===t.visibleToasts.length&&t.visibleToasts.every(((e,t)=>e.key===s.current[t].key)))return void(s.current=t.visibleToasts);let e=s.current.map(((e,n)=>({...e,i:n,isRemoved:!t.visibleToasts.some((t=>e.key===t.key))}))),r=e.findIndex((e=>e.i===c.current));if(r>-1){let t,n,o=0;for(;o<=r;)e[o].isRemoved||(n=Math.max(0,o-1)),o++;for(;o<e.length;){if(!e[o].isRemoved){t=o-1;break}o++}void 0===n&&void 0===t&&(n=0),n>=0&&n<a.current.length?(0,Ae.eC)(a.current[n]):t>=0&&t<a.current.length&&(0,Ae.eC)(a.current[t])}s.current=t.visibleToasts}),[t.visibleToasts,n]);let u=(0,l.useRef)(null),{focusWithinProps:d}=(0,A.Rb)({onFocusWithin:e=>{t.pauseAll(),u.current=e.relatedTarget},onBlurWithin:()=>{t.resumeAll(),u.current=null}});return(0,l.useEffect)((()=>{0===t.visibleToasts.length&&u.current&&document.body.contains(u.current)&&("pointer"===(0,A.ME)()?(0,Ae.eC)(u.current):u.current.focus(),u.current=null)}),[n,t.visibleToasts.length]),(0,l.useEffect)((()=>()=>{u.current&&document.body.contains(u.current)&&("pointer"===(0,A.ME)()?(0,Ae.eC)(u.current):u.current.focus(),u.current=null)}),[n]),{regionProps:(0,Ae.v6)(o,i,d,{tabIndex:-1,"data-react-aria-top-layer":!0,onFocus:e=>{let t=e.target.closest('[role="alertdialog"]');c.current=a.current.findIndex((e=>e===t))},onBlur:()=>{c.current=-1}})}}(r,e,i),c={zIndex:1,...t,...a.style};return(0,m.jsx)("div",{...a,ref:i,className:(0,s.xW)("_1udvgpn5 _1yep5z6ij _1yep5z6ik _1yep5z6il _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69l _1yep5z69m _1yep5z69n",n),style:c,children:e.visibleToasts.map((t=>(0,m.jsx)(zV,{toast:t,state:e},t.key)))})}));PV.displayName="ToastRegion";var AV=l.forwardRef((({toastQueue:e,portalContainer:t,...n},r)=>{let o=rT(e),i=LM(t);return o.visibleToasts.length>0?(0,m.jsx)(YM,{portalContainer:i,ref:r,children:(0,m.jsx)(PV,{state:o,...n})}):null}));AV.displayName="GlobalToastRegion";var DV={x:0,y:0},TV={node:null,setNode:()=>{},coordinates:DV,setCoordinates:()=>{},displayId:"",boundsRef:{current:null},isDisabled:!1},IV=l.createContext(TV),MV=({children:e,isDisabled:t=!1,coordinates:n,onMove:r})=>{let[o,i]=l.useState(null),a=l.useRef(null),[s,c]=u(n,DV,(e=>{r?.({coordinates:e,boundingRect:a.current})})),d=(0,h.Bi)(),p=l.useMemo((()=>({node:o,setNode:i,coordinates:s,setCoordinates:c,displayId:d,boundsRef:a,isDisabled:t})),[o,s,d,c,i,a,t]);return(0,m.jsx)(IV.Provider,{value:p,children:e})};MV.displayName="Magnifier";var NV=uI({defaultClassName:"_1aj2a4v6",variantClassNames:{isDisabled:{true:"_1aj2a4v7",false:"_1aj2a4v8"},isIndicatorVisible:{true:"_1aj2a4v9",false:"_1aj2a4va"}},defaultVariants:{},compoundVariants:[[{isDisabled:!1,isIndicatorVisible:!0},"_1aj2a4vb"],[{isDisabled:!1,isIndicatorVisible:!1},"_1aj2a4vc"]]}),OV="_1aj2a4v3 _1yep5z6hd _1yep5z6lz",RV=e=>(0,m.jsxs)("svg",{width:92,height:92,viewBox:"0 0 92 92",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,m.jsxs)("g",{filter:"url(#filter0_d_11407_457970)",children:[(0,m.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49 43V4h-6v39H4v6h39v39h6V49h39v-6H49zm38 5H48v39h-4V48H5v-4h39V5h4v39h39v4zm-5 28v6h-6v6h12V76h-6zm5 11H77v-4h6v-6h4v10zm-77-5v-6H4v12h12v-6h-6zm5 5H5V77h4v6h6v4zM76 4v6h6v6h6V4H76zm11 11h-4V9h-6V5h10v10zM4 4v12h6v-6h6V4H4zm11 5H9v6H5V5h10v4z",fill:v.G6.color.background.positive.subtle}),(0,m.jsx)("path",{d:"M48 44v4h39v-4H48zm-4 4v39h4V48h-4zM5 44v4h39v-4H5zM44 5v39h4V5h-4zm39 72v6h-6v4h10V77h-4zM9 83v-6H5v10h10v-4H9zM77 5v4h6v6h4V5H77zM5 5v10h4V9h6V5H5z",fill:v.G6.color.background.positive.interactive.enabled})]}),(0,m.jsx)("defs",{children:(0,m.jsxs)("filter",{id:"filter0_d_11407_457970",x:0,y:0,width:92,height:92,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,m.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,m.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,m.jsx)("feOffset",{}),(0,m.jsx)("feGaussianBlur",{stdDeviation:2}),(0,m.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,m.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0"}),(0,m.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_11407_457970"}),(0,m.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_11407_457970",result:"shape"})]})})]});var jV=l.forwardRef((({children:e,onPress:t,className:n,style:r,"data-block-id":o,"data-block-class":i,onFocusChange:a,onBlur:c,onFocus:u,onKeyDown:d,onKeyUp:p,...f},g)=>{let{setNode:v,setCoordinates:y,coordinates:b,displayId:w,boundsRef:x,isDisabled:S}=(0,l.useContext)(IV),_=(0,l.useRef)(null),[C,E]=(0,l.useState)(!1),k=(0,A.lb)(),z=OM();(0,l.useEffect)((()=>{let e=_.current;if(!e||S)return;let t=t=>{let n=e.getBoundingClientRect();x.current=n;let r="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY,i={x:(0,zl.clamp)(r-n.left,0,n.width),y:(0,zl.clamp)(o-n.top,0,n.height)};y(i),E(!0)},n=()=>{E(!1)};return e.addEventListener("mousemove",t),e.addEventListener("touchmove",t),e.addEventListener("mouseleave",n),()=>{e.removeEventListener("mousemove",t),e.removeEventListener("touchmove",t),e.removeEventListener("mouseleave",n)}}),[y,x,S]);let{pressProps:P}=(0,h.dD)({isDisabled:S,onPress:e=>{"keyboard"===e.pointerType?t?.({...e,x:b.x,y:b.y}):t?.(e)}}),{focusProps:D,isFocusVisible:T,isFocused:I}=(0,h.og)(),{focusProps:M}=(0,A.iQ)({isDisabled:S,onFocusChange:e=>{if("keyboard"===k)if(e){E(!0);let e=_.current?.getBoundingClientRect();if(!e)return;x.current=e,y({x:(0,zl.clamp)(e.width/2,0,e.width),y:(0,zl.clamp)(e.height/2,0,e.height)})}else E(!1);a?.(e)},onFocus:u,onBlur:c}),{keyboardProps:N}=function({coordinates:e,setCoordinates:t,boundsRef:n,onKeyDown:r,onKeyUp:o}){let{isDisabled:i}=(0,l.useContext)(IV);return(0,h.de)({isDisabled:i,onKeyDown:o=>{r?.(o);let i,a=o.shiftKey?10:1,s=n.current;if(s){switch(o.key){case"ArrowRight":o.preventDefault(),i={x:(0,zl.clamp)(e.x+a,0,s.width),y:(0,zl.clamp)(e.y,0,s.height)};break;case"ArrowLeft":o.preventDefault(),i={x:(0,zl.clamp)(e.x-a,0,s.width),y:(0,zl.clamp)(e.y,0,s.height)};break;case"ArrowDown":o.preventDefault(),i={x:(0,zl.clamp)(e.x,0,s.width),y:(0,zl.clamp)(e.y+a,0,s.height)};break;case"ArrowUp":o.preventDefault(),i={x:(0,zl.clamp)(e.x,0,s.width),y:(0,zl.clamp)(e.y-a,0,s.height)}}i&&t(i)}},onKeyUp:o})}({coordinates:b,setCoordinates:y,boundsRef:x,onKeyDown:d,onKeyUp:p}),O=(0,l.useMemo)((()=>_.current?(0,s.N0)(_.current,b):{x:0,y:0}),[b]);(0,A.$Z)({isDisabled:S,ref:_,onInteractOutside:()=>{E(!1)}});let R=(0,l.useMemo)((()=>C&&!S&&("mobile"===z||"keyboard"===k)),[C,S,z,k]);return(0,m.jsxs)("div",{ref:UT(g,_),className:(0,s.xW)("_1aj2a4vd","BaselineUI-Magnifier-Content",n),style:r,"data-block-id":o,"data-block-class":i,"aria-controls":w,role:"application",...f,children:[R?(0,m.jsx)(YM,{children:(0,m.jsx)(RV,{style:{left:O.x,top:O.y},className:(0,s.xW)("_1aj2a4v0","BaselineUI-Magnifier-Cursor")})}):null,(0,m.jsx)("div",{...$T(P,D,N,M),ref:v,className:(0,s.xW)(NV({isDisabled:S,isIndicatorVisible:R}),"BaselineUI-Magnifier-ContentInner"),"data-focus-visible":T,"data-focused":I,tabIndex:S?void 0:0,children:e})]})}));jV.displayName="MagnifierContent";var FV=l.forwardRef((({className:e,style:t,description:n,scale:r=2,"data-block-id":o,"data-block-class":i},a)=>{let{coordinates:c,node:u,boundsRef:d,displayId:p,isDisabled:h}=(0,l.useContext)(IV),f=function(e){let[t,n]=(0,l.useState)(null),{isDisabled:r}=(0,l.useContext)(IV);return(0,l.useEffect)((()=>{if(!e||r)return;let t=e,o=LT(t);function i(){let e=o.getComputedStyle(t),r=t.cloneNode(!0);r.style.cssText=function(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n],o=e.getPropertyValue(r);o&&t.push(`${r}: ${o}`)}for(let n of e)if(n.startsWith("--")){let r=e.getPropertyValue(n);r&&t.push(`${n}: ${r}`)}return t.join("; ")}(e);let i=t.getBoundingClientRect();r.style.setProperty("width",`${i.width}px`),r.style.setProperty("height",`${i.height}px`),r.style.setProperty("position","static"),r.style.setProperty("margin","0"),r.style.setProperty("left","0"),r.style.setProperty("top","0"),r.style.setProperty("transform","none"),r.style.removeProperty("-webkit-text-fill-color"),r.style.removeProperty("-webkit-text-stroke-color"),r.removeAttribute("aria-controls"),r.setAttribute("tabindex","-1"),r.setAttribute("aria-hidden","true");let a=(0,s.n_)(r);if(a)for(let e of a)e.setAttribute("tabindex","-1");"scrollTop"in t&&(r.scrollTop=t.scrollTop),"scrollLeft"in t&&(r.scrollLeft=t.scrollLeft),n(r)}i();let a=new ResizeObserver(i),l=new MutationObserver(i);return a.observe(t),l.observe(t,{attributes:!0,childList:!0,subtree:!0,characterData:!0}),()=>{a.disconnect(),l.disconnect()}}),[e,r]),t}(u),g=(0,l.useMemo)((()=>"function"==typeof n?n({coordinates:{x:c.x,y:c.y},boundingRect:d.current}):n),[n,c,d]),v=(0,l.useMemo)((()=>d.current?{x:c.x/d.current.width,y:c.y/d.current.height}:{x:0,y:0}),[d,c]);return(0,m.jsxs)(vI,{ref:a,className:(0,s.xW)("_1aj2a4v1","BaselineUI-Magnifier-Display",e),backgroundColor:"background.primary.subtle",boxShadow:"medium",borderRadius:"sm",outlineWidth:1,outlineColor:"border.medium",outlineOffset:-1,outlineStyle:"solid",paddingY:"md",paddingLeft:"md",paddingRight:g?.length?"xl":"md",display:"flex",flexDirection:"row",gap:"lg",alignItems:"center",style:t,id:p,"data-block-id":o,"data-block-class":i,role:"complementary",children:[(0,m.jsxs)("div",{className:"_1aj2a4v2 _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z6h4 _1yep5z6lz _1yep5z6id _1yep5z6ie _1yep5z6if",children:[f&&!h?(0,m.jsx)(XI,{node:f,style:{transform:`scale(${r}) translate(calc(-${100*v.x}% + ${56/(2*r)}px), calc(-${100*v.y}% + ${56/(2*r)}px))`},className:(0,s.xW)("_1aj2a4v5","BaselineUI-Magnifier-DisplayNode")}):null,Array.from({length:49}).map(((e,t)=>24===t?(0,m.jsx)("div",{className:(0,s.xW)(OV,"_1aj2a4v4")},t):(0,m.jsx)("div",{className:OV},t)))]}),g?.length?(0,m.jsx)(vI,{display:"flex",gap:"lg",flexDirection:"column",children:g?.map((({label:e,icon:t},n)=>(0,m.jsxs)(vI,{display:"flex",gap:"md",flexDirection:"row",color:"text.secondary",alignItems:"center",children:[(0,m.jsx)(t,{size:12,className:"_1yep5z6f6"}),(0,m.jsx)(aN,{type:"label",size:"sm",children:e})]},e+n)))}):null]})}));FV.displayName="MagnifierDisplay"},54910:(e,t,n)=>{"use strict";var r=n(74848),o=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8.03 9.53a.75.75 0 0 0 0-1.06L5.56 6l2.47-2.47a.75.75 0 0 0-1.06-1.06l-3 3a.75.75 0 0 0 0 1.06l3 3a.75.75 0 0 0 1.06 0",clipRule:"evenodd"})]}),i=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.97 2.47a.75.75 0 0 0 0 1.06L6.44 6 3.97 8.47a.75.75 0 0 0 1.06 1.06l3-3a.75.75 0 0 0 0-1.06l-3-3a.75.75 0 0 0-1.06 0",clipRule:"evenodd"})]}),a=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.47 8.03a.75.75 0 0 0 1.06 0L6 5.56l2.47 2.47a.75.75 0 0 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 0 0 0 1.06",clipRule:"evenodd"})]}),s=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M11.03 2.845a.75.75 0 0 1 0 1.06l-6.53 6.53-3.53-3.53a.75.75 0 1 1 1.06-1.06l2.47 2.47 5.47-5.47a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})]}),l=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M2.5 3.88a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M6 5.13a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5m0 4.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5m-4.75 0a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5M12 3.88a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0m-1.25 5.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5"})]}),c=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.88 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m1.25 6a1.25 1.25 0 1 0-2.5 0 1.25 1.25 0 0 0 2.5 0m4.25 0a1.25 1.25 0 1 0-2.5 0 1.25 1.25 0 0 0 2.5 0m-5.5 3.5a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m5.5 1.25a1.25 1.25 0 1 0-2.5 0 1.25 1.25 0 0 0 2.5 0m0-9.5a1.25 1.25 0 1 0-2.5 0 1.25 1.25 0 0 0 2.5 0"})]}),u=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6 10.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12",clipRule:"evenodd"})]}),d=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.75 3.5a1.25 1.25 0 1 1 2.5 0v.75h-2.5zm-1.5.75V3.5a2.75 2.75 0 0 1 5.5 0v.75H9c.966 0 1.75.784 1.75 1.75v3A1.75 1.75 0 0 1 9 10.75H3A1.75 1.75 0 0 1 1.25 9V6c0-.966.784-1.75 1.75-1.75z",clipRule:"evenodd"})]}),p=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.75 3.5a1.25 1.25 0 1 1 2.5 0v.75h-2.5zm-1.5.75V3.5a2.75 2.75 0 0 1 5.5 0v.75H9c.966 0 1.75.784 1.75 1.75v3A1.75 1.75 0 0 1 9 10.75H3A1.75 1.75 0 0 1 1.25 9V6c0-.966.784-1.75 1.75-1.75zM8 5.75H3a.25.25 0 0 0-.25.25v3c0 .138.112.25.25.25h6A.25.25 0 0 0 9.25 9V6A.25.25 0 0 0 9 5.75z",clipRule:"evenodd"})]}),h=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M11.75 6a.75.75 0 0 1-.75.75H1a.75.75 0 0 1 0-1.5h10a.75.75 0 0 1 .75.75",clipRule:"evenodd"})]}),f=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6 9.5A1.25 1.25 0 1 1 6 12a1.25 1.25 0 0 1 0-2.5m0-4.75a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m1.25-3.5a1.25 1.25 0 1 0-2.5 0 1.25 1.25 0 0 0 2.5 0",clipRule:"evenodd"})]}),m=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.5 6A1.25 1.25 0 1 1 0 6a1.25 1.25 0 0 1 2.5 0m4.75 0a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0m3.5 1.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5",clipRule:"evenodd"})]}),g=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M1.75 4.5a2.75 2.75 0 0 1 5.396-.75H5c-.69 0-1.25.56-1.25 1.25v2.146a2.75 2.75 0 0 1-2-2.646m2 4.184A4.251 4.251 0 1 1 8.684 3.75H10.5c.69 0 1.25.56 1.25 1.25v5.5c0 .69-.56 1.25-1.25 1.25H5c-.69 0-1.25-.56-1.25-1.25zm1.5 1.566v-5h5v5z",clipRule:"evenodd"})]}),v=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6 .25a.75.75 0 0 1 .75.75v4.25H11a.75.75 0 0 1 0 1.5H6.75V11a.75.75 0 0 1-1.5 0V6.75H1a.75.75 0 0 1 0-1.5h4.25V1A.75.75 0 0 1 6 .25",clipRule:"evenodd"})]}),y=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M7.875 5.25V9c0 .41-.34.75-.75.75s-.75-.34-.75-.75V5.25c0-.42.33-.75.75-.75s.75.33.75.75m-3-.75c-.42 0-.75.33-.75.75V9a.749.749 0 1 0 1.5 0V5.25c0-.42-.34-.75-.75-.75m0 5.25c.41 0 .75-.34.75-.75V5.25a.749.749 0 1 0-1.5 0V9c0 .41.33.75.75.75m2.25 0c.41 0 .75-.34.75-.75V5.25a.749.749 0 1 0-1.5 0V9c0 .41.33.75.75.75m4.5-6.75c0 .41-.34.75-.75.75h-.38V10a2 2 0 0 1-2 2h-5c-1.1 0-2-.9-2-2V3.75h-.37a.749.749 0 1 1 0-1.5h2.72v-.1c0-1.19.96-2.15 2.15-2.15s2.16.96 2.16 2.15v.1h2.72c.41 0 .75.33.75.75m-6.28-.75h1.31v-.1c0-.36-.3-.65-.66-.65s-.65.29-.65.65zm3.65 1.5h-6V10c0 .27.23.5.5.5h5c.28 0 .5-.23.5-.5zm-4.12.75c-.42 0-.75.33-.75.75V9a.749.749 0 1 0 1.5 0V5.25c0-.42-.34-.75-.75-.75m2.25 0c-.42 0-.75.33-.75.75V9a.749.749 0 1 0 1.5 0V5.25c0-.42-.34-.75-.75-.75"})]}),b=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 12 12","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.242 1.757a.75.75 0 0 1 0 1.061L7.061 6l3.181 3.182a.75.75 0 0 1-1.06 1.06L6 7.062l-3.182 3.182a.75.75 0 1 1-1.06-1.061L4.938 6 1.757 2.818a.75.75 0 1 1 1.06-1.06L6 4.938l3.182-3.182a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"})]});t.eC=o,t.JJ=i,t.Nr=s,t.dp=c,t.fY=d,t.QG=h,t.uv=b},55026:(e,t,n)=>{"use strict";var r=n(74848),o=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7.251 2a.75.75 0 0 1 1.5 0v6.189l1.219-1.22a.75.75 0 0 1 1.06 1.061l-3.028 3.03L4.97 8.03a.75.75 0 1 1 1.06-1.06l1.221 1.22zm6.416 11.75a.75.75 0 0 0 0-1.5H2.334a.75.75 0 0 0 0 1.5z",clipRule:"evenodd"})]}),i=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5.47 2.97a.75.75 0 0 1 1.06 0l.72.72V1a.75.75 0 0 1 1.5 0v2.69l.72-.72a.75.75 0 0 1 1.06 1.06L8 6.56 5.47 4.03a.75.75 0 0 1 0-1.06M1.583 8a.75.75 0 0 1 .75-.75h11.333a.75.75 0 1 1 0 1.5H2.333a.75.75 0 0 1-.75-.75m4.947 5.03a.75.75 0 0 1-1.06-1.06L8 9.44l2.53 2.53a.75.75 0 0 1-1.06 1.06l-.72-.72V15a.75.75 0 0 1-1.5 0v-2.69z",clipRule:"evenodd"})]}),a=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.333 2.25a.75.75 0 1 0 0 1.5h11.333a.75.75 0 1 0 0-1.5zM8.75 14a.75.75 0 0 1-1.5 0V7.81L6.03 9.03a.75.75 0 0 1-1.06-1.06L8 4.94l3.03 3.03a.75.75 0 1 1-1.06 1.06L8.75 7.81z",clipRule:"evenodd"})]}),s=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9.12.621c1.04-.78 2.51-.57 3.29.47.11.15.21.31.28.48l1.4 3.27h1.11c.41 0 .75.34.75.75s-.34.75-.75.75H.8c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h1.11l1.4-3.27a2.346 2.346 0 0 1 3.56-.95l.61.46c.3.23.72.23 1.02 0l.61-.46zm2.19 1.55 1.15 2.68H3.54l1.15-2.68a.86.86 0 0 1 1.12-.45c.06.03.12.06.17.1l.61.46c.84.63 1.98.63 2.82 0l.61-.46a.856.856 0 0 1 1.29.34zm-8.86 4.68h11.1v1.15c0 1.52-1.23 2.75-2.75 2.75-1.39 0-2.56-1.03-2.73-2.4h-.14a2.75 2.75 0 0 1-5.48-.35zM4 8.351c.19.66.89 1.04 1.55.85.41-.12.73-.44.85-.85zm5.6 0c.19.66.89 1.04 1.55.85.41-.12.73-.44.85-.85zm-8 2.9c-.41 0-.75.34-.75.75 0 .15.04.29.13.42l1.13 1.69-.84.42c-.37.19-.52.64-.34 1.01.19.37.64.52 1.01.34l1.6-.8c.37-.19.52-.64.34-1.01-.01-.03-.03-.05-.05-.08l-.82-1.23h4.25v2.45c0 .41.34.75.75.75s.75-.34.75-.75v-2.45h4.25l-.82 1.23c-.23.34-.14.81.21 1.04.03.02.05.03.08.05l1.6.8c.37.19.82.04 1.01-.34.19-.37.04-.82-.34-1.01l-.84-.42 1.13-1.69c.23-.34.14-.81-.21-1.04a.77.77 0 0 0-.42-.13z",clipRule:"evenodd"})]}),l=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M3.8 8.707a.75.75 0 1 1-1.5 0V3.05a.75.75 0 0 1 .75-.75h5.657a.75.75 0 0 1 0 1.5H4.86l7.34 7.34V7.292a.75.75 0 0 1 1.5 0v5.657a.75.75 0 0 1-.75.75H7.293a.75.75 0 0 1 0-1.5h3.846l-7.34-7.34v3.847Z"})]}),c=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m.75-11.6a.75.75 0 0 0-1.5 0v5.39L5.73 8.27a.75.75 0 1 0-1.06 1.06L8 12.66l3.33-3.33a.75.75 0 0 0-1.06-1.06L8.75 9.79z",clipRule:"evenodd"})]}),u=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M13.53 7.136a.75.75 0 0 0-1.06 0l-3.72 3.72v-8.19a.75.75 0 0 0-1.5 0v8.19l-3.72-3.72a.75.75 0 0 0-1.06 1.06L8 13.728l5.53-5.53a.75.75 0 0 0 0-1.06Z",clipRule:"evenodd"})]}),d=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8.8 1.75a.75.75 0 0 1 0-1.5H15a.75.75 0 0 1 .75.75v6.2a.75.75 0 0 1-1.5 0V2.81L1.53 15.53a.75.75 0 0 1-1.06-1.06L13.19 1.75z",clipRule:"evenodd"})]}),p=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M10.47 4.53a.75.75 0 0 1 1.06-1.06l4 4a.747.747 0 0 1 0 1.06l-4 4a.75.75 0 1 1-1.06-1.06l2.72-2.72H2.81l2.72 2.72a.75.75 0 1 1-1.06 1.06l-4-4a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 1.06L2.81 7.25h10.38z"})]}),h=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7.136 2.47a.75.75 0 0 0 0 1.06l3.72 3.72h-8.19a.75.75 0 1 0 0 1.5h8.19l-3.72 3.72a.75.75 0 1 0 1.06 1.06L13.726 8l-5.53-5.53a.75.75 0 0 0-1.06 0",clipRule:"evenodd"})]}),f=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M7.527 5.47c.29.29.29.77 0 1.06s-.77.29-1.06 0l-1.72-1.72V13c0 .41-.34.75-.75.75s-.75-.34-.75-.75V4.81l-1.72 1.72c-.29.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06l3.53-3.53zm8 4a.754.754 0 0 0-1.06 0l-1.72 1.72V3c0-.41-.34-.75-.75-.75s-.75.34-.75.75v8.19l-1.72-1.72a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06l3.53 3.53 3.53-3.53c.29-.29.29-.77 0-1.06"})]}),m=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.47 8.864a.75.75 0 0 0 1.06 0l3.72-3.72v8.19a.75.75 0 0 0 1.5 0v-8.19l3.72 3.72a.75.75 0 1 0 1.06-1.06L8 2.272l-5.53 5.53a.75.75 0 0 0 0 1.061Z",clipRule:"evenodd"})]}),g=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 .25a7.75 7.75 0 1 0 0 15.5h4a.75.75 0 0 0 0-1.5H8a6.25 6.25 0 1 1 0-12.5h1.005a5.245 5.245 0 0 1 5.245 5.245V9.6a1.25 1.25 0 1 1-2.5 0V4.5a.75.75 0 0 0-1.5 0 3.75 3.75 0 0 0-6 3v1a3.75 3.75 0 0 0 6.448 2.605A2.75 2.75 0 0 0 15.75 9.6V6.995A6.745 6.745 0 0 0 9.005.25zm2.25 8.25v-1a2.25 2.25 0 0 0-4.5 0v1a2.25 2.25 0 0 0 4.5 0",clipRule:"evenodd"})]}),v=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12.286 2.697a1.75 1.75 0 0 0-2.475 0l-5.48 5.48a3 3 0 0 0 4.242 4.242L12.993 8a.75.75 0 1 1 1.06 1.062L9.634 13.48A4.5 4.5 0 1 1 3.27 7.116l5.48-5.48a3.25 3.25 0 1 1 4.596 4.596l-5.48 5.48a2 2 0 0 1-2.828-2.828l4.42-4.42a.75.75 0 1 1 1.06 1.061l-4.42 4.42a.5.5 0 0 0 .708.707l5.48-5.48a1.75 1.75 0 0 0 0-2.475",clipRule:"evenodd"})]}),y=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 8a2 2 0 1 0 .001-3.999A2 2 0 0 0 8 8m0 1c-1.335 0-4 .67-4 2v1h8v-1c0-1.33-2.665-2-4-2",clipRule:"evenodd"})]}),b=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M3 12.992C3 13.548 3.451 14 4.008 14H8.64c2.657 0 4.286-1.269 4.286-3.377 0-1.44-.823-2.537-2.297-2.863 1.234-.463 1.834-1.354 1.834-2.657C12.463 3.234 11.074 2 8.777 2H4.008C3.451 2 3 2.451 3 3.008zM5.88 6.68V4.4h2.246c.908 0 1.405.446 1.405 1.114 0 .737-.548 1.166-1.354 1.166zm0 4.92V9.08h2.537c1.029 0 1.594.48 1.594 1.251 0 .823-.634 1.269-1.542 1.269z"})]}),w=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6 .583c-1.15 0-2.083.933-2.083 2.084v12a.75.75 0 0 0 1.296.514L8 12.226l2.788 2.955a.75.75 0 0 0 1.296-.514v-12c0-1.15-.933-2.084-2.084-2.084z",clipRule:"evenodd"})]}),x=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6 2.083a.583.583 0 0 0-.583.584v10.112l2.038-2.16a.75.75 0 0 1 1.09 0l2.039 2.16V2.667A.583.583 0 0 0 10 2.083zm-2.083.584C3.917 1.517 4.85.583 6 .583h4c1.15 0 2.084.933 2.084 2.084v12a.75.75 0 0 1-1.296.514L8 12.226l-2.787 2.955a.75.75 0 0 1-1.296-.514z",clipRule:"evenodd"})]}),S=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M3.5 3A1.25 1.25 0 1 1 1 3a1.25 1.25 0 0 1 2.5 0m2.5.75h8c.41 0 .75-.34.75-.75s-.34-.75-.75-.75H6c-.41 0-.75.34-.75.75s.34.75.75.75m8 3.5H6c-.41 0-.75.34-.75.75s.34.75.75.75h8c.41 0 .75-.34.75-.75s-.34-.75-.75-.75m0 5H6c-.41 0-.75.34-.75.75s.34.75.75.75h8c.41 0 .75-.34.75-.75s-.34-.75-.75-.75m-11.75-.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5m0-5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5"})]}),_=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14 1.75h-1.75V1c0-.41-.34-.75-.75-.75s-.75.34-.75.75v.75h-5.5V1c0-.41-.34-.75-.75-.75s-.75.34-.75.75v.75H2c-.97 0-1.75.78-1.75 1.75V14c0 .97.78 1.75 1.75 1.75h12c.97 0 1.75-.78 1.75-1.75V3.5c0-.97-.78-1.75-1.75-1.75M14.25 14c0 .14-.11.25-.25.25H2c-.14 0-.25-.11-.25-.25V7.75h12.5zm0-7.75H1.75V3.5c0-.14.11-.25.25-.25h1.75V4c0 .41.34.75.75.75s.75-.34.75-.75v-.75h5.5V4c0 .41.34.75.75.75s.75-.34.75-.75v-.75H14c.14 0 .25.11.25.25z",clipRule:"evenodd"})]}),C=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.53 12.53a.75.75 0 0 0 0-1.06L7.06 8l3.47-3.47a.75.75 0 1 0-1.06-1.06l-4 4a.75.75 0 0 0 0 1.06l4 4a.75.75 0 0 0 1.06 0",clipRule:"evenodd"})]}),E=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5.47 3.47a.75.75 0 0 0 0 1.06L8.94 8l-3.47 3.47a.75.75 0 1 0 1.06 1.06l4-4a.75.75 0 0 0 0-1.06l-4-4a.75.75 0 0 0-1.06 0",clipRule:"evenodd"})]}),k=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8 0C3.59 0 0 3.59 0 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m3.33 6.68L7.2 10.81 5.07 8.68a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0L7.2 8.69l3.07-3.07c.29-.29.77-.29 1.06 0s.29.77 0 1.06"})]}),z=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M11.36 6.8c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0L7.29 8.75 6.05 7.51a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06l2.3 2.3zM8 0C3.58 0 0 3.58 0 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8m0 14.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13"})]}),P=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14.53 3.97a.75.75 0 0 1 0 1.06L6 13.56 1.47 9.03a.75.75 0 0 1 1.06-1.06L6 11.44l7.47-7.47a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})]}),A=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("circle",{cx:8,cy:8,r:4})]}),D=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8.75 5c0-.41-.34-.75-.75-.75s-.75.34-.75.75v2.25H5.5c-.41 0-.75.34-.75.75s.34.75.75.75h3.25zM8 1C4.13 1 1 4.13 1 8s3.13 7 7 7 7-3.13 7-7-3.13-7-7-7m0 12.5c-3.04 0-5.5-2.46-5.5-5.5S4.96 2.5 8 2.5s5.5 2.46 5.5 5.5-2.46 5.5-5.5 5.5"})]}),T=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.4.291A2.11 2.11 0 0 0 .29 2.4v7.7c0 1.165.944 2.109 2.109 2.109H3.79V13.6c0 1.165.944 2.109 2.109 2.109h7.7a2.11 2.11 0 0 0 2.109-2.109V5.9A2.11 2.11 0 0 0 13.6 3.791h-1.391V2.4A2.11 2.11 0 0 0 10.1.29zm8.391 3.5V2.4a.69.69 0 0 0-.691-.691H2.4a.69.69 0 0 0-.691.69V10.1a.69.69 0 0 0 .69.691h1.392v-4.89c0-1.166.944-2.11 2.109-2.11zm-5.582 7.72V5.9a.69.69 0 0 1 .69-.691H13.6c.382 0 .691.31.691.691v7.7c0 .382-.31.691-.691.691H5.9a.69.69 0 0 1-.691-.69z",clipRule:"evenodd"})]}),I=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M15 2.25H7.27A2.54 2.54 0 0 0 4.85.5c-1.13 0-2.09.73-2.42 1.75H1c-.41 0-.75.34-.75.75s.34.75.75.75h1.4C2.7 4.82 3.68 5.6 4.85 5.6S7 4.82 7.3 3.75H15c.41 0 .75-.34.75-.75s-.34-.75-.75-.75M4.85 4.1a1.05 1.05 0 1 1 0-2.1 1.05 1.05 0 0 1 0 2.1M15 7.25h-.73a2.54 2.54 0 0 0-2.42-1.75c-1.13 0-2.09.73-2.42 1.75H1c-.41 0-.75.34-.75.75s.34.75.75.75h8.4c.3 1.07 1.28 1.85 2.45 1.85S14 9.82 14.3 8.75h.7c.41 0 .75-.34.75-.75s-.34-.75-.75-.75M11.85 9.1a1.05 1.05 0 1 1 0-2.1 1.05 1.05 0 0 1 0 2.1M15 12.25H7.97a2.54 2.54 0 0 0-2.42-1.75c-1.13 0-2.09.73-2.42 1.75H1c-.41 0-.75.34-.75.75s.34.75.75.75h2.1a2.547 2.547 0 0 0 4.9 0h7c.41 0 .75-.34.75-.75s-.34-.75-.75-.75M5.55 14.1a1.05 1.05 0 1 1 0-2.1 1.05 1.05 0 0 1 0 2.1",clipRule:"evenodd"})]}),M=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M1.75 14.25V1.75H7V4c0 .55.45 1 1 1h2.25v1.64l.69-.69c.24-.25.52-.45.81-.61V4.28c0-.38-.15-.74-.41-1L8.73.66c-.27-.27-.63-.41-1-.41H1.67C.88.25.25.88.25 1.67v12.67c0 .78.63 1.42 1.42 1.42h3.08v-1.5h-3zM15 7c-.83-.82-2.17-.82-2.99 0l-5.32 5.32c-.28.28-.44.66-.44 1.06v2.37h2.37c.4 0 .78-.16 1.06-.44L15 9.99c.82-.82.82-2.16 0-2.99m-1.06 1.93-5.32 5.32h-.87v-.87l5.32-5.32a.616.616 0 0 1 .87.87"})]}),N=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12.67 13.75H3.33c-1.15 0-2.08-.93-2.08-2.08V10c0-.41.34-.75.75-.75s.75.34.75.75v1.67c0 .32.26.58.58.58h9.34c.32 0 .58-.26.58-.58V10c0-.41.34-.75.75-.75s.75.34.75.75v1.67c0 1.15-.93 2.08-2.08 2.08m-4.66-3q.15 0 .27-.06c.09-.04.17-.09.24-.16l2.5-2.5c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0L8.74 8.19V2c0-.41-.34-.75-.75-.75s-.75.34-.75.75v6.19L6.02 6.97a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06l2.5 2.5c.07.07.15.12.23.15s.18.05.27.06h.02z"})]}),O=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.409 1.529a2.25 2.25 0 0 1 3.182 0l.879.879a2.25 2.25 0 0 1 0 3.182l-9.72 9.72a1.5 1.5 0 0 1-1.06.439H.25v-3.44c0-.397.158-.779.44-1.06zm2.121 1.06a.75.75 0 0 0-1.06 0L10.06 4 12 5.938l1.409-1.409a.75.75 0 0 0 0-1.06zM10.94 7 9 5.059l-7.25 7.25v1.94h1.94z",clipRule:"evenodd"})]}),R=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-1.5 0v.033l-9.723 5.613a6.5 6.5 0 0 1-2.1-1.915l11.217-6.476c.389.834.606 1.764.606 2.745m-8.6 6.153 8.478-4.895A6.502 6.502 0 0 1 5.9 14.153m7.502-9.769L2.167 10.871A6.5 6.5 0 0 1 1.5 7.943l9.702-5.601a6.5 6.5 0 0 1 2.2 2.042M1.627 6.715l8.448-4.877a6.502 6.502 0 0 0-8.448 4.877",clipRule:"evenodd"})]}),j=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M15.821 7c-.13-.32-.32-.6-.56-.84-.04-.05-.09-.08-.14-.12.08-.21.13-.43.15-.67.03-.489-.09-.98-.35-1.43-.36-.57-.91-.97-1.56-1.14-.04-.01-.08-.01-.12-.02a2.57 2.57 0 0 0-1.73-1.96c-.54-.18-1.12-.16-1.65.03-.14-.16-.3-.32-.48-.44-.42-.28-.94-.4-1.39-.41a2.5 2.5 0 0 0-1.83.74c-.03.04-.06.07-.09.11-.31-.1-.65-.15-.98-.12-.58.04-1.13.28-1.55.68-.39.36-.65.84-.76 1.35-.22.05-.45.13-.66.23-.44.23-.8.58-1.05 1.021-.33.58-.42 1.26-.25 1.91.01.06.04.11.06.16-.18.15-.34.32-.47.52-.28.42-.41.91-.41 1.38-.01.34.05.68.18 1s.32.6.56.84c.03.04.08.06.11.09-.1.32-.15.66-.13 1 .05.58.29 1.13.69 1.55.36.39.84.65 1.36.76a2.46 2.46 0 0 0 1.24 1.68c.39.23.83.34 1.27.34.22 0 .43-.03.65-.08.05 0 .09-.04.14-.05.16.19.35.36.57.5.42.26.91.39 1.4.39.32 0 .64-.06.94-.18.32-.13.6-.32.84-.56.03-.03.06-.07.09-.11.26.09.53.13.8.13h.2c.58-.05 1.13-.29 1.55-.68.4-.38.67-.87.77-1.41.3-.06.6-.17.86-.34.48-.32.85-.8 1.03-1.35.17-.51.16-1.08-.01-1.6a2.38 2.38 0 0 0 .89-1.91c0-.34-.05-.68-.18-.99Zm-1.48 1.551s-.07.08-.11.12c-.07-.06-.14-.12-.22-.16a.74.74 0 0 0-1.03.25c-.21.35-.1.81.25 1.03.21.12.37.32.45.54.08.23.09.48 0 .71-.07.22-.22.42-.43.56-.06.04-.13.06-.2.09-.04-.09-.07-.18-.12-.26a.74.74 0 0 0-1.02-.27.74.74 0 0 0-.28 1.02c.12.21.16.45.13.69-.04.24-.16.46-.33.63-.18.16-.41.26-.65.28-.09.01-.17 0-.25-.02.01-.11.03-.22.02-.34a.745.745 0 0 0-.75-.73h-.01c-.42.01-.74.35-.74.76 0 .14-.02.28-.07.41-.05.12-.13.24-.23.34s-.21.17-.34.22a1.07 1.07 0 0 1-.99-.09c-.04-.02-.07-.06-.11-.09.06-.08.12-.15.17-.23a.747.747 0 1 0-1.27-.79c-.15.24-.39.41-.66.48-.28.08-.57.04-.82-.1-.17-.1-.32-.25-.41-.44-.02-.03-.03-.07-.04-.11.09-.03.19-.06.28-.11a.75.75 0 1 0-.75-1.3c-.1.06-.2.09-.31.12-.03-.01-.05 0-.08 0-.1.02-.2.02-.3.01-.24-.04-.46-.15-.63-.33-.16-.18-.26-.41-.28-.65-.01-.08.01-.17.02-.25.1.01.19.02.29.02h.05c.41-.01.74-.35.73-.76a.753.753 0 0 0-.75-.74h-.01a1 1 0 0 1-.41-.07 1.08 1.08 0 0 1-.57-.57c-.05-.13-.07-.27-.07-.44-.01-.19.05-.39.16-.55.03-.04.06-.07.09-.1.07.05.14.11.21.15.13.08.26.12.4.12.25 0 .49-.13.64-.35.22-.36.11-.82-.24-1.04-.24-.15-.42-.38-.49-.66-.07-.27-.03-.56.11-.81.1-.17.25-.32.43-.41.04-.02.08-.03.12-.04.04.09.08.19.13.28.14.24.39.38.65.38.13 0 .26-.04.38-.1.36-.21.48-.67.27-1.03-.12-.21-.16-.45-.13-.69.04-.24.16-.46.33-.63.18-.16.41-.26.65-.28.08 0 .16.01.24.02-.02.11-.03.23-.03.34.01.41.34.73.75.73h.01c.42 0 .75-.35.74-.76 0-.14.02-.27.07-.41.06-.12.13-.24.23-.34s.21-.17.34-.22c.13-.06.26-.09.44-.08.19 0 .38.05.55.16.04.03.07.06.11.1-.06.07-.12.15-.16.23a.74.74 0 0 0 .28 1.02c.36.21.82.08 1.02-.28.12-.21.31-.38.54-.46.23-.09.48-.1.71-.03.23.08.43.23.57.44.05.07.08.16.11.25-.1.04-.2.07-.29.12-.36.2-.49.66-.29 1.02.2.37.66.5 1.02.29.25-.14.54-.18.81-.1.28.07.52.24.66.46.09.17.14.36.13.56-.01.06-.02.11-.04.17-.1-.01-.2-.03-.31-.03a.75.75 0 0 0 .02 1.5h.01c.13.01.28.02.41.07s.24.13.34.23a.98.98 0 0 1 .3.77c0 .2-.05.39-.16.56z"})]}),F=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M16 8c0 .61-.07 1.21-.2 1.78l-1.46-.33c.11-.46.16-.95.16-1.45s-.06-.98-.16-1.45l1.46-.33c.13.57.2 1.17.2 1.78m-2.49-3.46 1.27-.8a8 8 0 0 0-2.52-2.52l-.8 1.27c.83.52 1.53 1.22 2.05 2.05M6.22.2l.33 1.46c.46-.11.95-.16 1.45-.16s.98.06 1.45.16L9.78.2a8 8 0 0 0-3.56 0M1.23 3.74l1.27.8c.52-.83 1.22-1.53 2.05-2.05l-.8-1.27c-1.02.64-1.88 1.5-2.52 2.52M1.5 8c0-.5.06-.98.16-1.45L.2 6.22a8 8 0 0 0 0 3.56l1.46-.33C1.55 8.99 1.5 8.5 1.5 8m.99 3.46-1.27.8c.64 1.02 1.5 1.88 2.52 2.52l.8-1.27a6.5 6.5 0 0 1-2.05-2.05M8 14.5c-.5 0-.98-.06-1.45-.16l-.33 1.46a8 8 0 0 0 3.56 0l-.33-1.46c-.46.11-.95.16-1.45.16m3.46-.99.8 1.27c1.02-.64 1.88-1.5 2.52-2.52l-1.27-.8c-.52.83-1.22 1.53-2.05 2.05"})]}),B=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 14.5a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16",clipRule:"evenodd"})]}),L=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.743 3.297a.8.8 0 0 0-1.485-.594l-4 10a.8.8 0 0 0 1.485.594zM5.065 4.434a.8.8 0 0 1 0 1.132L2.631 8l2.434 2.434a.8.8 0 1 1-1.131 1.132L.368 8l3.566-3.566a.8.8 0 0 1 1.131 0m5.87 0a.8.8 0 0 0 0 1.132L13.369 8l-2.434 2.434a.8.8 0 1 0 1.131 1.132L15.632 8l-3.566-3.566a.8.8 0 0 0-1.131 0",clipRule:"evenodd"})]}),V=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8 0C3.58 0 0 3.58 0 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8m0 14.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13m3.9-4.62c-.59 1.48-2.15 2.47-3.9 2.47s-3.3-.99-3.9-2.47c-.15-.38.03-.82.42-.97.38-.15.82.03.97.42.34.85 1.3 1.53 2.5 1.53s2.16-.68 2.5-1.53a.75.75 0 0 1 .96-.45c.39.14.59.61.45 1M9.2 6c0-.66.54-1.2 1.2-1.2s1.2.54 1.2 1.2-.54 1.2-1.2 1.2S9.2 6.66 9.2 6M4.4 6c0-.66.54-1.2 1.2-1.2s1.2.54 1.2 1.2-.54 1.2-1.2 1.2S4.4 6.66 4.4 6"})]}),K=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8 0C3.59 0 0 3.59 0 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m2.93 6.13-4.8 4.8c-.15.15-.34.22-.53.22s-.38-.07-.53-.22a.754.754 0 0 1 0-1.06l4.8-4.8c.29-.29.77-.29 1.06 0s.29.77 0 1.06"})]}),H=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 0C3.58 0 0 3.58 0 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8m-.75 5c0-.41.34-.75.75-.75s.75.34.75.75v3c0 .41-.34.75-.75.75s-.75-.34-.75-.75zM8 11.5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1",clipRule:"evenodd"})]}),$=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8.75 5c0-.41-.34-.75-.75-.75s-.75.34-.75.75v3c0 .41.34.75.75.75s.75-.34.75-.75zM9 10.5c0 .55-.45 1-1 1s-1-.45-1-1 .45-1 1-1 1 .45 1 1M8 0C3.58 0 0 3.58 0 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8m0 14.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13"})]}),U=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7.47.47a.75.75 0 0 1 1.06 0l4 4a.75.75 0 0 1-1.06 1.06L8 2.06 4.53 5.53a.75.75 0 0 1-1.06-1.06zm-4 10a.75.75 0 0 1 1.06 0L8 13.94l3.47-3.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 0-1.06",clipRule:"evenodd"})]}),W=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M14.75 3c0 .41-.34.75-.75.75H2c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h12c.41 0 .75.34.75.75M12 7.25H4c-.41 0-.75.34-.75.75s.34.75.75.75h8c.41 0 .75-.34.75-.75s-.34-.75-.75-.75m-2.5 5h-3c-.41 0-.75.34-.75.75s.34.75.75.75h3c.41 0 .75-.34.75-.75s-.34-.75-.75-.75"})]}),q=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M.25 4A2.75 2.75 0 0 1 3 1.25h2.137a2.75 2.75 0 0 1 1.832.699l.961.858c.23.205.526.318.833.318H13a2.75 2.75 0 0 1 2.75 2.75V12A2.75 2.75 0 0 1 13 14.75H3A2.75 2.75 0 0 1 .25 12zm1.5 0c0-.69.56-1.25 1.25-1.25h2.137c.307 0 .604.113.833.318l.961.858a2.75 2.75 0 0 0 1.832.699H13c.69 0 1.25.56 1.25 1.25v.375H1.75zm0 3.75h12.5V12c0 .69-.56 1.25-1.25 1.25H3c-.69 0-1.25-.56-1.25-1.25z",clipRule:"evenodd"})]}),G=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M11.79 9.75H10.6L9.79 8.4l-.43.48v.87H8.35v-3.5h1.01v1.33l1.17-1.33h1.22l-1.23 1.42zM7.4 8c0 1.03-.75 1.82-1.81 1.82S3.78 9.03 3.78 8s.75-1.82 1.81-1.82S7.4 6.97 7.4 8M6.39 8c0-.45-.25-.94-.8-.94s-.79.49-.79.94.24.94.79.94.8-.49.8-.94M16 4v8c0 .55-.45 1-1 1H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h14c.55 0 1 .45 1 1m-1.5.5h-13v7h13z",clipRule:"evenodd"})]}),Z=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m11.53 6.53-3.88 3.88c-.36.36-.94.36-1.3 0L4.47 8.53a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0L7 8.94l3.47-3.47c.29-.29.77-.29 1.06 0s.29.77 0 1.06M14.75 3v10c0 .97-.79 1.75-1.75 1.75H3c-.97 0-1.75-.78-1.75-1.75V3c0-.96.78-1.75 1.75-1.75h10c.96 0 1.75.79 1.75 1.75m-1.5 0c0-.14-.11-.25-.25-.25H3c-.14 0-.25.11-.25.25v10c0 .14.11.25.25.25h10c.14 0 .25-.11.25-.25z",clipRule:"evenodd"})]}),Y=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.75 6.5v3a.749.749 0 1 1-1.5 0v-3a.749.749 0 1 1 1.5 0m7.71 0H8.53c-.21 0-.33.25-.19.41l1.97 2.36c.1.12.28.12.38 0l1.97-2.36c.13-.16.02-.41-.2-.41M16 5v6a2 2 0 0 1-2 2H2c-1.11 0-2-.89-2-2V5a2 2 0 0 1 2-2h12c1.1 0 2 .9 2 2m-1.5 0c0-.27-.23-.5-.5-.5H2c-.28 0-.5.23-.5.5v6c0 .28.22.5.5.5h12c.27 0 .5-.22.5-.5z",clipRule:"evenodd"})]}),X=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12.75 11a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0m3-7.5V14c0 .97-.78 1.75-1.75 1.75H2c-.96 0-1.75-.78-1.75-1.75V3.5c0-.96.79-1.75 1.75-1.75h1.75V1c0-.41.34-.75.75-.75s.75.34.75.75v.75h5.5V1c0-.41.34-.75.75-.75s.75.34.75.75v.75H14c.97 0 1.75.79 1.75 1.75m-1.5 4.25H1.75V14c0 .14.12.25.25.25h12c.14 0 .25-.11.25-.25zm0-4.25c0-.14-.11-.25-.25-.25h-1.75V4c0 .42-.33.75-.75.75s-.75-.33-.75-.75v-.75h-5.5V4c0 .42-.33.75-.75.75s-.75-.33-.75-.75v-.75H2c-.13 0-.25.11-.25.25v2.75h12.5z",clipRule:"evenodd"})]}),J=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5.5 4.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0m7-.75h-5a.749.749 0 1 0 0 1.5h5a.749.749 0 1 0 0-1.5m0 3.25h-5a.749.749 0 1 0 0 1.5h5a.749.749 0 1 0 0-1.5m0 3.25h-5a.749.749 0 1 0 0 1.5h5a.749.749 0 1 0 0-1.5M4.25 10a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5m0-3.25a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5M16 3v10a2 2 0 0 1-2 2H2c-1.11 0-2-.89-2-2V3a2 2 0 0 1 2-2h12c1.1 0 2 .9 2 2m-1.5 0c0-.27-.23-.5-.5-.5H2c-.28 0-.5.23-.5.5v10c0 .28.22.5.5.5h12c.27 0 .5-.22.5-.5z",clipRule:"evenodd"})]}),Q=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M11 8c0 1.66-1.34 3-3 3S5 9.66 5 8s1.34-3 3-3 3 1.35 3 3m4 0c0 3.87-3.14 7-7 7s-7-3.13-7-7 3.13-7 7-7 7 3.14 7 7m-1.5 0c0-3.04-2.46-5.5-5.5-5.5S2.5 4.96 2.5 8s2.46 5.5 5.5 5.5 5.5-2.46 5.5-5.5",clipRule:"evenodd"})]}),ee=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.255 13H1a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H9.021a8 8 0 0 1-.36.915c-.414.875-1.126 1.835-2.252 1.835-.488 0-.946-.132-1.323-.411a2.1 2.1 0 0 1-.755-1.115A3 3 0 0 1 4.255 13M1.5 11.5v-7h13v7H9.4a15 15 0 0 0 .256-2.595q.147-.078.29-.149l.005.01c.072.172.176.406.315.604.114.163.41.53.916.53.75 0 1.357-.411 1.771-.94.415-.526.683-1.219.79-1.953a.75.75 0 1 0-1.485-.214c-.076.526-.262.958-.484 1.241a1 1 0 0 1-.368.314l-.073-.164-.054-.133c-.049-.119-.106-.26-.155-.363a1.6 1.6 0 0 0-.175-.292.86.86 0 0 0-.676-.346.8.8 0 0 0-.261.047 8 8 0 0 0-.458.188c-.071-.457-.188-.905-.384-1.26-.19-.347-.562-.775-1.17-.775-.378 0-.853.147-1.28.308-.461.174-.983.411-1.5.672-1.02.515-2.107 1.165-2.705 1.673a.75.75 0 0 0 .97 1.144c.462-.392 1.422-.98 2.41-1.477.486-.246.958-.459 1.354-.608a4.4 4.4 0 0 1 .618-.193c.071.14.149.386.206.752q.039.253.06.543c-.393.253-.775.53-1.131.817-.91.731-1.739 1.594-2.164 2.391a7 7 0 0 0-.116.228zM7.425 13a5 5 0 0 1-.12.273c-.384.812-.727.977-.896.977-.216 0-.35-.056-.43-.116a.6.6 0 0 1-.207-.327c-.056-.19-.068-.464.003-.807zm.445-1.5H6.476c.343-.448.853-.958 1.465-1.45l.163-.129A14 14 0 0 1 7.87 11.5m-.054-4.814-.001-.002s0 .002.003.005zm3.696 1.846-.01-.014z",clipRule:"evenodd"})]}),te=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M15 4H8.75V3c0-.69.56-1.25 1.25-1.25a.749.749 0 1 0 0-1.5c-.79 0-1.5.33-2 .86C7.5.58 6.79.25 6 .25a.749.749 0 1 0 0 1.5c.69 0 1.25.56 1.25 1.25v1H1c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h6.25v1c0 .69-.56 1.25-1.25 1.25a.749.749 0 1 0 0 1.5c.79 0 1.5-.33 2-.86.5.53 1.21.86 2 .86a.749.749 0 1 0 0-1.5c-.69 0-1.25-.56-1.25-1.25v-1H15c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1M7.25 7.25H6.5a.749.749 0 1 0 0 1.5h.75v1.75H1.5v-5h5.75zm7.25 3.25H8.75V8.75h.75a.749.749 0 1 0 0-1.5h-.75V5.5h5.75z",clipRule:"evenodd"})]}),ne=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M.25.25V5c0 .41.34.75.75.75s.75-.34.75-.75V2.81l2.72 2.72c.29.29.77.29 1.06 0s.29-.77 0-1.06L2.81 1.75H5c.41 0 .75-.34.75-.75S5.41.25 5 .25zM15.75 5V.25H11c-.41 0-.75.34-.75.75s.34.75.75.75h2.19l-2.72 2.72c-.29.29-.29.77 0 1.06s.77.29 1.06 0l2.72-2.72V5c0 .41.34.75.75.75s.75-.34.75-.75m0 10.75H11c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h2.19l-2.72-2.72a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l2.72 2.72V11c0-.41.34-.75.75-.75s.75.34.75.75zM.25 11v4.75H5c.41 0 .75-.34.75-.75s-.34-.75-.75-.75H2.81l2.72-2.72c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-2.72 2.72V11c0-.41-.34-.75-.75-.75s-.75.34-.75.75"})]}),re=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M9 11c0 .55-.45 1-1 1s-1-.45-1-1 .45-1 1-1 1 .45 1 1M7 6.18c0-.49.42-.93 1-.93s1 .44 1 .93c0 .37-.23.7-.6.85-.48.19-1.15.69-1.15 1.53v.14c0 .41.34.75.75.75s.75-.34.75-.75v-.13s0-.01.02-.02a.7.7 0 0 1 .2-.13c.89-.36 1.53-1.22 1.53-2.24 0-1.37-1.15-2.43-2.5-2.43S5.5 4.81 5.5 6.18c0 .41.34.75.75.75S7 6.59 7 6.18M8 1C4.13 1 1 4.13 1 8s3.13 7 7 7 7-3.13 7-7-3.13-7-7-7m0 12.5c-3.04 0-5.5-2.46-5.5-5.5S4.96 2.5 8 2.5s5.5 2.46 5.5 5.5-2.46 5.5-5.5 5.5"})]}),oe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M.584 10c0 1.15.933 2.083 2.083 2.083h8a.75.75 0 0 0 .492-.184l3.833-3.333a.75.75 0 0 0 0-1.132L11.16 4.101a.75.75 0 0 0-.492-.184h-8A2.083 2.083 0 0 0 .584 6z"})]}),ie=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M15.61 8.44c.24-.33.17-.8-.16-1.05a.75.75 0 0 0-1.05.16c-.03.04-2.75 3.69-6.39 3.69s-6.38-3.65-6.4-3.68A.75.75 0 0 0 .56 7.4.75.75 0 0 0 .4 8.45c.06.09.83 1.12 2.12 2.16l-1.35 1.93a.74.74 0 0 0 .18 1.04c.13.09.28.14.43.14.24 0 .47-.11.61-.32l1.35-1.92c1 .61 2.18 1.1 3.51 1.24v2.29c0 .41.34.75.75.75s.75-.34.75-.75v-2.29c1.33-.14 2.51-.64 3.51-1.24l1.35 1.92c.15.21.38.32.62.32.15 0 .3-.04.43-.14.34-.24.42-.71.18-1.04l-1.35-1.93c1.29-1.03 2.06-2.07 2.12-2.16z"})]}),ae=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.762 2.177a1.75 1.75 0 0 1 2.475 0l1.586 1.586a1.75 1.75 0 0 1 0 2.474l-7.586 7.586a1.75 1.75 0 0 1-2.214.215l-.712.712H.189l2.773-2.773a1.75 1.75 0 0 1 .215-2.214zM5.83 12.769l-1.6-1.599a.25.25 0 0 1 .007-.347L7.5 7.561 9.44 9.5l-3.263 3.262a.25.25 0 0 1-.347.007",clipRule:"evenodd"})]}),se=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2zm2 2.75a.75.75 0 0 0 0 1.5h3.25v6.883a.75.75 0 0 0 1.5 0V5.25H12a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),le=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"m.04 7.997 2.53-2.53c.29-.29.77-.29 1.06 0s.29.77 0 1.06l-.72.72H5c.41 0 .75.34.75.75s-.34.75-.75.75H2.91l.72.72c.29.29.29.77 0 1.06s-.77.29-1.06 0L.04 7.998Zm15.92 0-2.53 2.53c-.29.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06l.72-.72H11c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h2.09l-.72-.72a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0zm-8.96 0c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1"})]}),ce=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3 5.75a1.25 1.25 0 1 1 2.5 0 1.25 1.25 0 0 1-2.5 0M16 3v10c0 .55-.45 1-1 1H1c-.55 0-1-.45-1-1V3c0-.55.45-1 1-1h14c.55 0 1 .45 1 1m-1.5 9.44-.03-.03-4.46-4.35-3.48 3.47c-.29.3-.77.3-1.06 0L4 10.06 1.56 12.5H14.5zm0-8.94h-13v6.94l1.97-1.97c.29-.29.77-.29 1.06 0L6 9.94l3.47-3.47c.29-.29.76-.29 1.05 0l3.98 3.87z",clipRule:"evenodd"})]}),ue=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8 0C3.59 0 0 3.59 0 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m0 3.5c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m1 8.75H7c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h.25v-2.5H7c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h1.75v4H9c.41 0 .75.34.75.75s-.34.75-.75.75"})]}),de=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6.05 3.5a.75.75 0 0 1 .75-.75h4a.75.75 0 0 1 0 1.5H9.398l-1.659 7.3H8.8a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1 0-1.5h1.402l1.66-7.3H6.8a.75.75 0 0 1-.75-.75",clipRule:"evenodd"})]}),pe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8 0c.41 0 .75.34.75.75v1c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-1C7.25.34 7.59 0 8 0m0 3.25c-2.61 0-4.75 2.07-4.75 4.67 0 .9.32 1.68.73 2.39.26.46.59.94.92 1.42.16.23.33.46.48.69.14.21.37.33.62.33h4c.25 0 .49-.12.63-.33.15-.23.31-.46.47-.69.33-.48.66-.96.93-1.42.4-.71.72-1.49.72-2.39 0-2.6-2.14-4.67-4.75-4.67m2.73 6.32c-.24.4-.5.79-.81 1.22-.1.15-.21.3-.32.46H6.4c-.11-.16-.22-.31-.32-.46-.3-.43-.57-.82-.8-1.22-.35-.6-.53-1.11-.53-1.65 0-1.74 1.44-3.17 3.25-3.17s3.25 1.43 3.25 3.17c0 .54-.18 1.05-.52 1.65m3.4-6.04c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-.71.71c-.29.29-.29.77 0 1.06s.77.29 1.06 0zM1.87 2.47c.29-.29.77-.29 1.06 0l.71.71c.29.29.29.77 0 1.06s-.77.29-1.06 0l-.71-.71a.754.754 0 0 1 0-1.06M.75 7.25C.34 7.25 0 7.59 0 8s.34.75.75.75h1c.41 0 .75-.34.75-.75s-.34-.75-.75-.75zM13.5 8c0-.41.34-.75.75-.75h1c.41 0 .75.34.75.75s-.34.75-.75.75h-1c-.41 0-.75-.34-.75-.75M6 14.25c-.41 0-.75.34-.75.75s.34.75.75.75h4c.41 0 .75-.34.75-.75s-.34-.75-.75-.75z"})]}),he=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M15.53.47a.75.75 0 0 1 0 1.06l-14 14a.75.75 0 0 1-1.06-1.06l14-14a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})]}),fe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12.1 3.545a1.25 1.25 0 0 0-1.767 0L7.504 6.373a1.25 1.25 0 0 0 0 1.768l.283.283a.75.75 0 0 1-1.06 1.06l-.283-.283a2.75 2.75 0 0 1 0-3.889l2.828-2.828a2.75 2.75 0 0 1 3.89 0l.565.566a2.75 2.75 0 0 1 0 3.889l-1.556 1.555a.75.75 0 0 1-1.06-1.06l1.555-1.556a1.25 1.25 0 0 0 0-1.768zM8.425 6.726a.75.75 0 0 1 1.06 0l.283.283a2.75 2.75 0 0 1 0 3.89L6.94 13.726a2.75 2.75 0 0 1-3.89 0l-.565-.566a2.75 2.75 0 0 1 0-3.889L3.947 7.81a.75.75 0 0 1 1.06 1.06l-1.461 1.462a1.25 1.25 0 0 0 0 1.768l.566.565a1.25 1.25 0 0 0 1.767 0l2.829-2.828a1.25 1.25 0 0 0 0-1.768l-.283-.283a.75.75 0 0 1 0-1.06",clipRule:"evenodd"})]}),me=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3 4.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2m3.75-1.75a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5zm0 4.667a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5zM6 12.667a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75M4 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-1 5.667a1 1 0 1 0 0-2 1 1 0 0 0 0 2",clipRule:"evenodd"})]}),ge=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8 8.75c.41 0 .75.34.75.75v2c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-2c0-.41.34-.75.75-.75m4-3h-.75V4C11.25 2.21 9.79.75 8 .75S4.75 2.21 4.75 4v1.75H4c-.97 0-1.75.78-1.75 1.75v6c0 .97.78 1.75 1.75 1.75h8c.97 0 1.75-.78 1.75-1.75v-6c0-.97-.78-1.75-1.75-1.75M6.25 4c0-.97.78-1.75 1.75-1.75S9.75 3.03 9.75 4v1.75h-3.5zm6 9.5c0 .14-.11.25-.25.25H4c-.14 0-.25-.11-.25-.25v-6c0-.14.11-.25.25-.25h8c.14 0 .25.11.25.25z"})]}),ve=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8.638.857c-.1-.73-1.15-.73-1.25 0l-.15 1.04-1.04.15c-.72.1-.72 1.15 0 1.25l1.04.15.15 1.04c.1.72 1.15.72 1.25 0l.15-1.04 1.04-.15c.73-.1.73-1.15 0-1.25l-1.04-.15zm-4.52 7.71-.15-1.04c-.1-.72-1.15-.72-1.25 0l-.15 1.04-1.04.15c-.73.1-.73 1.15 0 1.25l1.04.15.15 1.04c.1.73 1.15.73 1.25 0l.15-1.04 1.04-.15c.72-.1.72-1.15 0-1.25zm9.33 3.33-.15-1.04c-.1-.73-1.15-.73-1.25 0l-.15 1.04-1.04.15c-.73.1-.73 1.15 0 1.25l1.04.15.15 1.04c.1.73 1.15.73 1.25 0l.15-1.04 1.04-.15c.73-.1.73-1.15 0-1.25zm1.56-5.56c0 .55-.45 1-1 1s-1-.45-1-1 .45-1 1-1 1 .45 1 1m-5.67 2.67c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1m-6-5.67c0 .55-.45 1-1 1s-1-.45-1-1 .45-1 1-1 1 .45 1 1m3 11.67c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1"})]}),ye=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M1 3.75a.75.75 0 0 1 .75.75v2.69l2.22-2.22a.75.75 0 0 1 1.06 1.06L3.81 7.25h8.38l-1.22-1.22a.75.75 0 0 1 1.06-1.06l2.22 2.22V4.5a.75.75 0 0 1 1.5 0v7a.75.75 0 0 1-1.5 0V8.81l-2.22 2.22a.75.75 0 1 1-1.06-1.06l1.22-1.22H3.81l1.22 1.22a.75.75 0 1 1-1.06 1.06L1.75 8.81v2.69a.75.75 0 0 1-1.5 0v-7A.75.75 0 0 1 1 3.75"})]}),be=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14.75 8a.75.75 0 0 1-.75.75H2a.75.75 0 0 1 0-1.5h12a.75.75 0 0 1 .75.75",clipRule:"evenodd"})]}),we=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M13 8a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0M6.5 8a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0m-5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3",clipRule:"evenodd"})]}),xe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 13a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m0-6.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m1.5-5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0",clipRule:"evenodd"})]}),Se=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9.807 1.53a.667.667 0 0 0-.947 0L6.974 3.418a.67.67 0 0 0-.194.474.7.7 0 0 0 .194.473L8.507 5.89H1.334a.667.667 0 0 0-.667.666v2.667a.667.667 0 0 0 .667.667h7.173l-1.533 1.526a.667.667 0 0 0 0 .947l1.886 1.88a.666.666 0 0 0 .947 0l5.887-5.88a.7.7 0 0 0 .193-.473.67.67 0 0 0-.193-.474z",clipRule:"evenodd"})]}),_e=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12.666 2.86a.667.667 0 0 0-.94 0l-5.4 5.427-1.966-2a.667.667 0 0 0-.947 0L1.526 8.2a.667.667 0 0 0 0 .94l4.327 4.327a.67.67 0 0 0 .473.2.67.67 0 0 0 .467-.2l7.78-7.774a.666.666 0 0 0 0-.946z",clipRule:"evenodd"})]}),Ce=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 1.333a6.667 6.667 0 1 0 0 13.334A6.667 6.667 0 0 0 8 1.333m0 9.334a2.667 2.667 0 1 1 0-5.334 2.667 2.667 0 0 1 0 5.334",clipRule:"evenodd"})]}),Ee=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M11.75 5c0 .42-.34.75-.75.75H5c-.42 0-.75-.33-.75-.75s.33-.75.75-.75h6c.41 0 .75.34.75.75M11 7.25H5a.749.749 0 1 0 0 1.5h6a.749.749 0 1 0 0-1.5M15.75 2v9.2c0 .97-.79 1.75-1.75 1.75h-3.2c-.07 0-.14.04-.19.09l-2.04 2.44c-.15.18-.37.28-.6.27a.77.77 0 0 1-.59-.32l-1.64-2.37a.26.26 0 0 0-.21-.11H2c-.97 0-1.75-.78-1.75-1.75V2C.25 1.04 1.03.25 2 .25h12c.96 0 1.75.79 1.75 1.75m-1.5 0c0-.14-.11-.25-.25-.25H2c-.14 0-.25.11-.25.25v9.2c0 .14.11.25.25.25h3.53c.57 0 1.11.28 1.44.75l1.08 1.57 1.41-1.69c.33-.4.82-.63 1.34-.63H14c.14 0 .25-.11.25-.25z",clipRule:"evenodd"})]}),ke=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m14.693 4.027-3.92 3.913 3.92 3.92a.665.665 0 0 1 0 .947l-1.886 1.886a.67.67 0 0 1-.947 0l-3.92-3.92-3.913 3.92a.67.67 0 0 1-.947 0l-1.887-1.886a.666.666 0 0 1 0-.947l3.92-3.92-3.92-3.913A.67.67 0 0 1 1 3.553a.67.67 0 0 1 .193-.473L3.08 1.193A.67.67 0 0 1 3.553 1a.7.7 0 0 1 .474.193l3.913 3.92 3.92-3.92a.666.666 0 0 1 .947 0l1.886 1.887a.666.666 0 0 1 0 .947",clipRule:"evenodd"})]}),ze=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6.667 5.331a.7.7 0 0 1-.193.474.66.66 0 0 1-.474.193H3.334a.66.66 0 0 1-.667-.667c0-.966.26-1.906.76-2.74A5.32 5.32 0 0 1 8.247.005c.96.046 1.893.346 2.7.88a5.36 5.36 0 0 1 1.867 2.14 5.4 5.4 0 0 1 .5 2.793 5.25 5.25 0 0 1-1.007 2.653 5.45 5.45 0 0 1-2.227 1.767l-.08.04v.047c0 .18-.073.346-.193.473a.65.65 0 0 1-.473.193H6.667A.66.66 0 0 1 6 10.324v-.333c.04-.76.3-1.486.747-2.1a3.84 3.84 0 0 1 1.773-1.34c.22-.093.414-.246.554-.44.14-.193.226-.426.253-.666a1.34 1.34 0 0 0-.593-1.234 1.33 1.33 0 0 0-1.367-.06 1.35 1.35 0 0 0-.513.494 1.3 1.3 0 0 0-.187.686M8 15.998c.394 0 .78-.12 1.114-.34.326-.22.586-.533.733-.9.153-.367.193-.767.113-1.153a2.03 2.03 0 0 0-.546-1.027 1.96 1.96 0 0 0-1.027-.547 1.95 1.95 0 0 0-1.153.114 1.992 1.992 0 0 0-.653 3.26 2 2 0 0 0 1.413.586z",clipRule:"evenodd"})]}),Pe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7.293 1.022a1 1 0 0 1 1.414 0l4.771 4.77a1 1 0 0 1 0 1.415L12.3 8.385a1 1 0 0 1-1.414 0L9.834 7.333v1c0 .972.353 1.649 1.061 2.152.668.474 1.77.87 3.44.983.55.037.999.48.999 1.032v1.667c0 .552-.448 1.003-1 .974-2.219-.119-4.123-.645-5.562-1.667a6.5 6.5 0 0 1-.772-.64 6.5 6.5 0 0 1-.771.64c-1.44 1.022-3.344 1.548-5.562 1.667-.552.03-1-.422-1-.974V12.5c0-.552.448-.995 1-1.032 1.67-.113 2.77-.509 3.438-.983.709-.503 1.062-1.18 1.062-2.152v-1L5.115 8.385a1 1 0 0 1-1.414 0L2.522 7.207a1 1 0 0 1 0-1.414z",clipRule:"evenodd"})]}),Ae=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M13.38 2.367A4.667 4.667 0 0 0 5.786 7.5a.2.2 0 0 1 0 .08l-4.533 4.553a1.33 1.33 0 0 0-.353.62l-.194.78a1.333 1.333 0 0 0 1.44 1.647l.707-.08A1.33 1.33 0 0 0 4 14.1l.313-1.26.173-.167 1.92-.173a1.33 1.33 0 0 0 1.14-.907l.52-1.56.08-.08a.2.2 0 0 1 .08 0A4.666 4.666 0 0 0 13.36 2.36zM12 5.193a1 1 0 1 1-1.416-1.413A1 1 0 0 1 12 5.193",clipRule:"evenodd"})]}),De=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5.334 10.667H6V14c0 .368.299.667.667.667H8A.667.667 0 0 0 8.667 14V4.333C8.667 4.15 8.817 4 9 4h1.334c.184 0 .333.15.333.333V14c0 .368.299.667.667.667h1.333a.667.667 0 0 0 .667-.667V4.333c0-.184.149-.333.333-.333h1a.667.667 0 0 0 .667-.667V2a.667.667 0 0 0-.667-.667H5.334a4.667 4.667 0 0 0 0 9.334",clipRule:"evenodd"})]}),Te=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 0c.133 0 .2 0 .333.067A.52.52 0 0 1 8.6.333l5.333 9.334A.6.6 0 0 1 14 10c0 .133 0 .2-.067.333a.52.52 0 0 1-.266.267c-.134.067-.2.067-.334.067H2.667c-.134 0-.2 0-.334-.067a.52.52 0 0 1-.266-.267c0-.133-.067-.2-.067-.333s0-.2.067-.333L7.4.333a.52.52 0 0 1 .267-.266C7.8 0 7.867 0 8 0M3 11.6c-.067-.067-.133-.067-.267-.133-.066 0-.2 0-.266.066l-.2.2c-.067.067-.067.2-.067.267v3.333a.5.5 0 0 0 .133.334.5.5 0 0 0 .334.133.5.5 0 0 0 .333-.133.5.5 0 0 0 .133-.334v-2.266l3.2 2.666c.067.067.134.067.267.134.067 0 .2 0 .267-.067l.2-.2c.066-.067.066-.2.066-.267V12A.5.5 0 0 0 7 11.667a.5.5 0 0 0-.333-.134.5.5 0 0 0-.334.134A.5.5 0 0 0 6.2 12v2.267zm6.333-.133h3c.4 0 .8.133 1.067.466.267.267.467.667.467 1.067s-.134.8-.467 1.067c-.267.266-.667.466-1.067.466H9.8v.8a.5.5 0 0 1-.133.334.5.5 0 0 1-.334.133.5.5 0 0 1-.333-.133.5.5 0 0 1-.133-.334V12c0-.133.066-.267.133-.333.067-.134.2-.134.333-.2m.467 2v-1h2.533a.5.5 0 0 1 .334.133.5.5 0 0 1 .133.333c0 .134 0 .334-.133.4a.5.5 0 0 1-.334.134z",clipRule:"evenodd"})]}),Ie=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14.626 8.707 10 13.333V8.667h4.666zm.04-1.374H10a1.333 1.333 0 0 0-1.334 1.334v4.666h-6A1.333 1.333 0 0 1 1.333 12V4a1.333 1.333 0 0 1 1.333-1.333h10.667A1.333 1.333 0 0 1 14.666 4z",clipRule:"evenodd"})]}),Me=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M13.905 6.772 3.322 1.484A1.373 1.373 0 0 0 1.498 3.35L3.96 8l-2.463 4.643a1.371 1.371 0 0 0 1.825 1.873l10.582-5.288a1.372 1.372 0 0 0 0-2.456Z",clipRule:"evenodd"})]}),Ne=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14.666 3.333V10a1.333 1.333 0 0 1-1.333 1.333H5.566l-3.153 2.52a.666.666 0 0 1-1.08-.52v-10A1.333 1.333 0 0 1 2.666 2h10.667a1.333 1.333 0 0 1 1.333 1.333",clipRule:"evenodd"})]}),Oe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14.487 6.8 11.4 9.04l1.18 3.627a1 1 0 0 1-1.54 1.12L7.953 11.54 4.86 13.793a1 1 0 0 1-1.533-1.126l1.18-3.634L1.413 6.8A1 1 0 0 1 2 4.987h3.82L7 1.333a1 1 0 0 1 1.9 0l1.18 3.627h3.82a1 1 0 0 1 .587 1.84",clipRule:"evenodd"})]}),Re=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"m2.05 2.35-.76.4v-.98l.93-.52h.83v3.5h-1zm3.96 1.41h8c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-8c-.41 0-.75.34-.75.75s.34.75.75.75m8 3.5h-8c-.41 0-.75.34-.75.75s.34.75.75.75h8c.41 0 .75-.34.75-.75s-.34-.75-.75-.75m0 5h-8c-.41 0-.75.34-.75.75s.34.75.75.75h8c.41 0 .75-.34.75-.75s-.34-.75-.75-.75M2.26 7.04c.19 0 .3.12.3.29 0 .18-.11.29-.25.42L.99 8.95v.81h2.56V8.9H2.28L3 8.33c.32-.25.57-.58.57-1.03 0-.63-.46-1.11-1.27-1.11-.75 0-1.29.46-1.33 1.22h.97c0-.21.11-.36.32-.36zm.78 5.92c.32-.11.51-.38.51-.71 0-.65-.54-1.05-1.32-1.05s-1.26.46-1.29 1.14h.93c.01-.19.12-.35.35-.35.21 0 .33.14.33.3s-.14.29-.42.29h-.4v.82h.55c.23 0 .35.14.35.32s-.13.32-.37.32-.41-.16-.43-.39H.88c.04.72.57 1.18 1.39 1.18.76 0 1.35-.42 1.35-1.1 0-.36-.22-.69-.59-.77z"})]}),je=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M15.95.05V5.6c0 .41-.34.75-.75.75s-.75-.34-.75-.75V2.61L8.53 8.53c-.29.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06l5.92-5.92H10.4c-.41 0-.75-.34-.75-.75s.34-.75.75-.75zm-2.35 8.8c-.41 0-.75.34-.75.75v2.67c0 .32-.26.58-.58.58H3.73a.58.58 0 0 1-.58-.58V3.73c0-.32.26-.58.58-.58H6.4c.41 0 .75-.34.75-.75s-.34-.75-.75-.75H3.73c-1.15 0-2.08.93-2.08 2.08v8.53c0 1.15.93 2.08 2.08 2.08h8.53c1.15 0 2.08-.93 2.08-2.08V9.59c0-.41-.34-.75-.75-.75z"})]}),Fe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14.667 3C15.403 3 16 3.597 16 4.333v7.334c0 .736-.597 1.333-1.333 1.333H1.333A1.333 1.333 0 0 1 0 11.667V4.333C0 3.597.597 3 1.333 3zm-.917 1h.917c.184 0 .333.15.333.333v7.334c0 .184-.15.333-.333.333h-.917zm-10 0h8.5v8h-8.5zm-1.5 0h-.917A.333.333 0 0 0 1 4.333v7.334c0 .184.15.333.333.333h.917z",clipRule:"evenodd"})]}),Be=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14.667 3C15.403 3 16 3.597 16 4.333v7.334c0 .736-.597 1.333-1.333 1.333H1.333A1.333 1.333 0 0 1 0 11.667V4.333C0 3.597.597 3 1.333 3zM11.5 4h3.167c.184 0 .333.15.333.333v7.334c0 .184-.15.333-.333.333H11.5zm-7 8H1.333A.333.333 0 0 1 1 11.667V4.333C1 4.15 1.15 4 1.333 4H4.5zM6 4.5h4v7H6z",clipRule:"evenodd"})]}),Le=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M0 3.75h1.25v8.5H0v1.5h1.33c.78 0 1.42-.63 1.42-1.42V3.67c0-.78-.63-1.42-1.42-1.42H0zm10.33-1.5H5.67c-.79 0-1.42.63-1.42 1.42v8.66c0 .79.63 1.42 1.42 1.42h4.66c.79 0 1.42-.63 1.42-1.42V3.67c0-.79-.63-1.42-1.42-1.42m-.08 10h-4.5v-8.5h4.5zm4.5-8.5H16v-1.5h-1.33c-.78 0-1.42.63-1.42 1.42v8.67c0 .78.63 1.42 1.42 1.42H16v-1.5h-1.25z"})]}),Ve=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M1.667 13.75A1.417 1.417 0 0 1 .25 12.333V3.667c0-.783.634-1.417 1.417-1.417h12.666c.783 0 1.417.634 1.417 1.417v8.666c0 .783-.634 1.417-1.417 1.417zm.083-1.5v-8.5h5.5v8.5zm7-8.5v8.5h5.5v-8.5z",clipRule:"evenodd"})]}),Ke=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.75 1.75v12.5h8.5V1.75zm-1.5-.083C2.25.884 2.884.25 3.667.25h8.666c.783 0 1.417.634 1.417 1.417v12.666c0 .783-.634 1.417-1.417 1.417H3.667a1.417 1.417 0 0 1-1.417-1.417z",clipRule:"evenodd"})]}),He=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M3.75 0v2.25h8.5V0h1.5v2.33c0 .78-.63 1.42-1.42 1.42H3.67c-.78 0-1.42-.63-1.42-1.42V0zm0 16V6.75h8.5V16h1.5V6.67c0-.78-.63-1.42-1.42-1.42H3.67c-.78 0-1.42.63-1.42 1.42V16z"})]}),$e=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6 3.25a.75.75 0 0 1 .75.75v8a.75.75 0 0 1-1.5 0V4A.75.75 0 0 1 6 3.25m4 0a.75.75 0 0 1 .75.75v8a.75.75 0 0 1-1.5 0V4a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})]}),Ue=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M10.179 1A.75.75 0 0 0 9.078.337L6.22 1.851a.75.75 0 0 0-.399.662v1.9h-.964a.75.75 0 0 0-.75.75v2.61a3.25 3.25 0 0 1-1.228 2.544l-1.346 1.069a.75.75 0 0 0-.283.587V15a.75.75 0 0 0 1.5 0v-2.665l1.062-.844a4.75 4.75 0 0 0 1.795-3.719v-1.86h4.786v1.86a4.75 4.75 0 0 0 1.795 3.719l1.062.844V15a.75.75 0 0 0 1.5 0v-3.027a.75.75 0 0 0-.283-.587l-1.346-1.07a3.25 3.25 0 0 1-1.228-2.544v-2.61a.75.75 0 0 0-.75-.75h-.964z"})]}),We=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M9 1.5a1 1 0 0 0-2 0v1.75h-.833a.75.75 0 0 0-.75.75v2.988c0 .48-.318.989-.87 1.476-1.11.977-1.797 2.464-1.797 4.179V15a.75.75 0 0 0 1.5 0v-2.357c0-1.309.52-2.377 1.288-3.054.659-.58 1.379-1.467 1.379-2.601V4.75h2.166v2.238c0 1.134.72 2.02 1.38 2.601.767.677 1.287 1.745 1.287 3.054V15a.75.75 0 0 0 1.5 0v-2.357c0-1.715-.687-3.202-1.796-4.18-.553-.486-.87-.994-.87-1.475V4a.75.75 0 0 0-.75-.75H9z"})]}),qe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M3.261 15.305A1.5 1.5 0 0 1 2.5 14v-3.19l-.22.22a.75.75 0 1 1-1.06-1.06l2.03-2.03 2.03 2.03a.75.75 0 1 1-1.06 1.06L4 10.81V14l10-6L4 2v3.75h.75a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h.75V2A1.5 1.5 0 0 1 4.772.714l10 6a1.5 1.5 0 0 1 0 2.572l-10 6a1.5 1.5 0 0 1-1.511.02Z"})]}),Ge=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.04 6a3.96 3.96 0 0 1 7.859-.706H6.666c-.758 0-1.372.615-1.372 1.373v3.23A3.96 3.96 0 0 1 2.04 6m3.254 5.326a5.374 5.374 0 1 1 6.033-6.032H14c.758 0 1.372.615 1.372 1.373V14c0 .758-.614 1.373-1.372 1.373H6.667A1.373 1.373 0 0 1 5.293 14zm1.412 2.635V6.706h7.255v7.255z",clipRule:"evenodd"})]}),Ze=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5.833 11.698 12.062 8 5.833 4.302zm-1.5-8.86v10.324c0 .517.563.837 1.007.573l8.694-5.162a.667.667 0 0 0 0-1.146L5.34 2.265a.667.667 0 0 0-1.007.573",clipRule:"evenodd"})]}),Ye=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 .25a.75.75 0 0 1 .75.75v6.25H15a.75.75 0 0 1 0 1.5H8.75V15a.75.75 0 0 1-1.5 0V8.75H1a.75.75 0 0 1 0-1.5h6.25V1A.75.75 0 0 1 8 .25",clipRule:"evenodd"})]}),Xe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.5 14a1.5 1.5 0 0 0 2.272 1.286l10-6a1.5 1.5 0 0 0 0-2.572l-10-6A1.5 1.5 0 0 0 2.5 2zM14 8 4 14v-2.825l7.793-4.5zm-3.188-1.913L8.447 4.668 4 7.236v2.784zM4 6.081 7.467 4.08 4 2z",clipRule:"evenodd"})]}),Je=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M14.82 7.665c-.06-.57-.31-1.11-.7-1.53a2.7 2.7 0 0 0-2.29-.81c-.05-.13-.1-.26-.18-.37-.23-.37-.55-.68-.91-.88-.38-.22-.8-.35-1.23-.36-.14-.01-.27.01-.41.03-.05-.13-.1-.26-.17-.39-.23-.35-.55-.66-.93-.87-.37-.21-.79-.34-1.22-.36-.16-.01-.31.01-.47.03-.06-.13-.11-.27-.19-.39a2.76 2.76 0 0 0-1.11-.95c-.46-.2-.96-.28-1.45-.21-.49.06-.95.26-1.33.57a2.65 2.65 0 0 0-.91 2.66c.08.36.23.69.47 1.01-.07.1-.15.2-.21.31-.19.38-.3.8-.3 1.23s.11.85.31 1.26c.07.12.16.22.24.33-.09.11-.18.22-.25.35-.19.38-.3.81-.3 1.24s.11.84.31 1.25c.07.13.16.24.25.35-.11.13-.22.27-.3.42a2.7 2.7 0 0 0 .27 2.81 2.65 2.65 0 0 0 2.12 1.05c.18 0 .36-.02.53-.05.48-.1.92-.33 1.29-.66.28-.27.48-.6.63-.95.11 0 .22.03.33.03h.12c.42-.02.84-.15 1.23-.37.37-.23.69-.54.91-.9.06-.11.11-.23.16-.35.1.02.19.04.29.04h.12c.43-.01.85-.14 1.22-.36.37-.21.69-.52.92-.87.08-.13.13-.26.19-.39.1 0 .2.03.3.03.23 0 .47-.03.7-.09.61-.17 1.15-.55 1.5-1.08.36-.53.52-1.17.45-1.8zm-1.69.96c-.15.23-.39.4-.65.47-.25.06-.5.05-.73-.04a1.15 1.15 0 0 1-.57-.47.754.754 0 0 0-1.04-.22c-.35.22-.45.68-.22 1.03.15.25.35.46.57.64-.03.05-.04.1-.07.15-.11.16-.24.29-.41.39-.16.09-.35.15-.54.16a1 1 0 0 1-.41-.07c-.03-.02-.05-.04-.08-.06-.22-.12-.4-.29-.52-.5a.76.76 0 0 0-1.03-.26c-.35.21-.47.66-.27 1.02.16.28.37.53.62.73q-.045.09-.09.15c-.1.17-.24.32-.39.41-.17.1-.36.15-.55.16-.17.01-.36-.03-.53-.1-.14-.08-.27-.18-.38-.3a.746.746 0 0 0-1.06-.06c-.31.27-.33.74-.06 1.05q.135.165.3.3c-.06.16-.16.3-.28.42-.17.15-.37.26-.58.3s-.43.02-.64-.05c-.2-.08-.38-.21-.51-.39-.14-.17-.22-.39-.24-.59-.02-.22.02-.44.11-.64.1-.19.25-.35.44-.47.19-.11.4-.17.62-.18.42 0 .75-.33.75-.75v-.04c0-.42-.33-.75-.73-.76-.34.01-.66.05-.97.16a1.19 1.19 0 0 1-.08-1.18c.09-.17.22-.31.38-.42.03-.02.05-.05.08-.08.18-.09.38-.15.59-.16a.74.74 0 0 0 .73-.76c0-.41-.34-.74-.75-.74-.32 0-.64.06-.94.17-.03-.03-.05-.07-.07-.1-.09-.17-.14-.37-.14-.56s.05-.38.13-.55c.08-.15.2-.29.34-.39.14-.08.28-.14.44-.17a.75.75 0 0 0 .62-.86.745.745 0 0 0-.87-.61c-.16.02-.32.06-.47.12-.09-.13-.16-.27-.19-.42a1.16 1.16 0 0 1 .39-1.16c.17-.14.37-.23.59-.25.21-.03.43 0 .63.09.19.09.36.23.49.42.11.17.18.38.18.61 0 .09 0 .19-.03.29-.01.06-.04.12-.07.19-.01.04-.02.08-.05.12-.21.36-.09.82.27 1.03.36.2.82.08 1.03-.27 0-.01.01-.03.01-.04.01 0 .01-.01.02-.01.16-.28.27-.58.32-.9.05 0 .1-.01.15 0 .19.01.38.06.55.16.16.09.31.23.4.37.09.15.14.33.16.51 0 .25-.06.49-.18.71a.75.75 0 0 0 1.31.73c.16-.28.27-.58.33-.89.05-.01.11-.01.16-.01.19.01.37.07.54.17.17.09.31.22.41.38.09.15.15.33.18.51 0 .16-.03.33-.08.49-.12.4.1.82.49.94.08.02.15.03.23.03.32 0 .61-.2.71-.52q.06-.195.09-.39c.12-.02.25-.02.37 0 .25.05.48.17.65.35a1.18 1.18 0 0 1 .1 1.46z"})]}),Qe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"m5.5 13.106.77 1.29-1.5.9a1.5 1.5 0 0 1-2.27-1.29v-1.8H4v1.8zm2-9 3 1.8.77-1.29-3-1.8zm0 7.8.77 1.29 3-1.8-.77-1.29zm7.27-5.19-1.5-.9-.77 1.29 1.5.9-1.5.9.77 1.29 1.5-.9a1.507 1.507 0 0 0 0-2.58M3.26.696a1.5 1.5 0 0 0-.76 1.31v1.8H4v-1.8l1.5.9.77-1.29-1.5-.9c-.46-.28-1.04-.29-1.51-.02M4 6.206H2.5v3.6H4z"})]}),et=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.261 15.305A1.5 1.5 0 0 1 2.5 14V2A1.5 1.5 0 0 1 4.772.714l10 6a1.5 1.5 0 0 1 0 2.572l-10 6a1.5 1.5 0 0 1-1.511.02ZM14 8 4 2v12z",clipRule:"evenodd"})]}),tt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M15.425 1.382a.75.75 0 0 1 .193 1.043l-5.333 7.764a.75.75 0 0 1-1.164.09L6.426 7.426l-4.808 7a.75.75 0 1 1-1.236-.85l5.333-7.764a.75.75 0 0 1 1.164-.09l2.695 2.854 4.808-7a.75.75 0 0 1 1.043-.193Z",clipRule:"evenodd"})]}),nt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.262 1.677a1.75 1.75 0 0 1 2.475 0l1.586 1.585a1.75 1.75 0 0 1 0 2.475L11.53 8.53l-1.06-1.06.969-.97-1.94-1.94-.969.97-1.06-1.06zM10.56 3.5l.763-.763a.25.25 0 0 1 .354 0l1.585 1.586a.25.25 0 0 1 0 .354l-.763.762zM1.97 1.971a.75.75 0 0 1 1.06 0l11 11a.75.75 0 0 1-1.06 1.06L9.5 10.562l-4.69 4.69H.75V11.19L5.438 6.5l-3.47-3.468a.75.75 0 0 1 0-1.06Zm4.53 5.59-4.25 4.25v1.94h1.94l4.25-4.25z",clipRule:"evenodd"})]}),rt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M1 2a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1zm1.5 4.211V2.5h6.428zm0 1.155v3.313l11-6.351V2.5h-2.572zm0 4.467V13.5h2.53l8.47-4.89V5.482zm11 1.667H7.03l6.47-3.735z",clipRule:"evenodd"})]}),ot=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M15.41 9.58c0-.58-.2-1.14-.53-1.59.33-.45.53-1 .53-1.58s-.2-1.14-.53-1.59c.33-.45.54-1.01.54-1.59 0-1.49-1.17-2.65-2.66-2.65-.58 0-1.14.2-1.59.53-.45-.33-1-.53-1.58-.53S8.45.78 8 1.11A2.7 2.7 0 0 0 6.41.58c-.58 0-1.14.2-1.59.53-.45-.33-1-.53-1.58-.53C1.75.58.58 1.74.58 3.23c0 .58.21 1.14.53 1.59-.32.45-.53 1-.53 1.59s.21 1.13.53 1.58a2.8 2.8 0 0 0-.53 1.59c0 .58.21 1.14.53 1.59-.32.45-.53 1-.53 1.58 0 1.49 1.17 2.66 2.66 2.66.58 0 1.13-.21 1.58-.53.46.32 1.01.53 1.59.53s1.14-.21 1.59-.53c.45.32 1 .53 1.59.53s1.13-.21 1.58-.53c.45.32 1.01.53 1.59.53 1.49 0 2.66-1.17 2.66-2.66 0-.58-.21-1.13-.54-1.58.33-.45.53-1.01.53-1.59m-2.65-3.7c.38 0 .69-.07.95-.16.13.19.2.44.2.69 0 .38-.19.77-.46.94-.23.14-.47.21-.69.21-.41 0-.75.34-.75.75s.34.75.75.75c.36-.05.69-.07.95-.17.13.19.2.44.2.69 0 .38-.19.77-.46.95-.23.13-.47.2-.69.2-.41 0-.75.34-.75.75s.34.75.75.75c.36-.02.69-.07.95-.16.13.19.21.44.21.68 0 .67-.49 1.16-1.16 1.16-.38 0-.77-.19-.95-.47a1.4 1.4 0 0 1-.2-.69c0-.41-.34-.75-.75-.75s-.75.34-.75.75c0 .38.07.69.16.95-.49.33-1.35.19-1.63-.26-.13-.23-.21-.47-.21-.69 0-.41-.34-.75-.75-.75s-.75.34-.75.75c0 .38.07.69.17.95-.49.33-1.35.19-1.64-.26-.13-.23-.2-.47-.2-.69 0-.41-.34-.75-.75-.75s-.75.34-.75.75c0 .38.07.69.17.95-.2.13-.45.21-.69.21-.67 0-1.16-.49-1.16-1.16 0-.38.19-.77.47-.94.22-.14.47-.21.69-.21.41 0 .75-.34.75-.75s-.34-.75-.75-.75c-.38 0-.69.07-.95.17-.13-.19-.21-.44-.21-.69 0-.38.19-.77.47-.95.22-.13.47-.21.69-.21a.749.749 0 1 0 0-1.5c-.38 0-.69.08-.95.17a1.24 1.24 0 0 1-.21-.68c0-.39.19-.78.47-.95.22-.14.47-.21.69-.21.41 0 .75-.34.75-.75s-.34-.75-.75-.75c-.38 0-.69.07-.95.17-.13-.19-.21-.44-.21-.69 0-.67.49-1.15 1.16-1.15.38 0 .77.19.94.46.14.23.21.47.21.69 0 .41.34.75.75.75s.75-.34.75-.75c0-.38-.07-.69-.17-.95.5-.33 1.35-.19 1.64.27.13.22.21.46.21.68a.749.749 0 1 0 1.5 0c0-.38-.08-.69-.17-.95.49-.33 1.35-.19 1.63.27.14.22.21.46.21.68 0 .41.34.75.75.75s.75-.34.75-.75c0-.38-.07-.69-.17-.95.19-.13.44-.2.69-.2.67 0 1.16.48 1.16 1.15 0 .38-.2.77-.47.95-.23.13-.47.21-.69.21-.41 0-.75.33-.75.75s.34.74.75.74"})]}),it=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M15 2v2.5h-1.5v-2h-2V1H14c.55 0 1 .45 1 1M2.5 11.5H1V14c0 .55.45 1 1 1h2.5v-1.5h-2zM1 2v2.5h1.5v-2h2V1H2c-.55 0-1 .45-1 1m12.5 11.5h-2V15H14c.55 0 1-.45 1-1v-2.5h-1.5zm-7.25-11h3.5V1h-3.5zm0 12.5h3.5v-1.5h-3.5zM2.5 6.25H1v3.5h1.5zm11 3.5H15v-3.5h-1.5z"})]}),at=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.5 2.5v11h11v-11zM2 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1z",clipRule:"evenodd"})]}),st=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.136 2.136a.75.75 0 0 0 0 1.061l1.386 1.386H6.666a4.75 4.75 0 0 0 0 9.5H8a.75.75 0 0 0 0-1.5H6.666a3.25 3.25 0 0 1 0-6.5h4.856L10.136 7.47a.75.75 0 1 0 1.06 1.06l3.198-3.197-3.197-3.197a.75.75 0 0 0-1.061 0",clipRule:"evenodd"})]}),lt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"m9.537 3.74-1.09 3-1.14-1.25.63-1.74h-2.22l-1.36-1.5h9.65c.41 0 .75.34.75.75s-.34.75-.75.75h-4.47zm-5.23 9.99 1.27-3.49 1.14 1.25-1 2.75a.75.75 0 1 1-1.41-.51m-1.7-11.19a.746.746 0 0 0-1.06-.05c-.31.28-.33.75-.05 1.06l9.95 10.95c.28.31.75.33 1.06.05s.33-.75.05-1.06z"})]}),ct=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14.417 3a.75.75 0 0 1-.75.75H2.334a.75.75 0 0 1 0-1.5h11.333a.75.75 0 0 1 .75.75m0 10a.75.75 0 0 1-.75.75H2.334a.75.75 0 0 1 0-1.5h11.333a.75.75 0 0 1 .75.75m-.75-4.25a.75.75 0 0 0 0-1.5H2.334a.75.75 0 0 0 0 1.5z",clipRule:"evenodd"})]}),ut=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M7.172 1.898A.75.75 0 0 1 8.16.768l2.667 2.334a.75.75 0 0 1 0 1.13L8.16 6.563a.75.75 0 1 1-.988-1.128l1.32-1.155a3.917 3.917 0 1 0 3.424 3.886.75.75 0 0 1 1.5 0A5.417 5.417 0 1 1 8.15 2.752l-.977-.854Z"})]}),dt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8.828 1.898A.75.75 0 0 0 7.84.768L5.173 3.103a.75.75 0 0 0 0 1.13l2.667 2.33a.75.75 0 1 0 .988-1.128L7.508 4.28a3.917 3.917 0 1 1-3.424 3.886.75.75 0 1 0-1.5 0 5.417 5.417 0 1 0 5.268-5.415z"})]}),pt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M15 3.5H1c-.55 0-1 .45-1 1v7c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-7c0-.55-.45-1-1-1m-.5 7.5h-13V5H3v1.67c0 .28.22.5.5.5s.5-.22.5-.5V5h1.25v3c0 .28.22.5.5.5s.5-.22.5-.5V5H7.5v1.67c0 .28.22.5.5.5s.5-.22.5-.5V5h1.25v3c0 .28.22.5.5.5s.5-.22.5-.5V5H12v1.67c0 .28.22.5.5.5s.5-.22.5-.5V5h1.5z",clipRule:"evenodd"})]}),ht=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6.8.82a5.98 5.98 0 1 0 3.665 10.706l3.005 3.004a.75.75 0 0 0 1.06-1.06l-3.004-3.005A5.98 5.98 0 0 0 6.8.82M2.38 6.8a4.42 4.42 0 1 1 8.84 0 4.42 4.42 0 0 1-8.84 0",clipRule:"evenodd"})]}),ft=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5.14 7.97c0-1.6 1.31-2.9 2.9-2.9s2.9 1.31 2.9 2.9-1.31 2.9-2.9 2.9-2.9-1.31-2.9-2.9m1.45 0a1.451 1.451 0 0 0 2.9 0 1.451 1.451 0 0 0-2.9 0m6.51-2.1 1.34.27c.64.13 1.1.69 1.1 1.35v.98c0 .66-.46 1.22-1.1 1.35l-1.34.27.75 1.13c.36.54.29 1.27-.17 1.73l-.69.69c-.46.46-1.19.53-1.73.17l-1.13-.75-.27 1.34c-.13.64-.69 1.1-1.35 1.1h-.98c-.66 0-1.22-.46-1.35-1.1l-.27-1.34-1.13.75c-.54.36-1.27.29-1.73-.17l-.69-.69c-.46-.46-.53-1.19-.17-1.73l.75-1.13-1.34-.27C.96 9.69.5 9.13.5 8.47v-.98c0-.66.46-1.22 1.1-1.35l1.34-.27-.75-1.13c-.36-.54-.29-1.27.17-1.73l.69-.69c.46-.46 1.19-.53 1.73-.17l1.13.75.27-1.34c.13-.64.69-1.1 1.35-1.1h.98c.66 0 1.22.46 1.35 1.1l.27 1.34 1.13-.75c.54-.36 1.27-.29 1.73.17l.69.69c.46.46.53 1.19.17 1.73zm-3.53 5.82c.41-.17.91-.16 1.33.12l1.12.75.6-.6-.75-1.12a1.47 1.47 0 0 1-.12-1.33c.16-.4.52-.75 1.02-.85l1.32-.26v-.84l-1.32-.26c-.49-.1-.85-.45-1.02-.85-.17-.41-.16-.91.12-1.33L12.62 4l-.6-.6-1.12.75c-.42.28-.92.28-1.33.12-.4-.16-.75-.52-.85-1.02l-.26-1.32h-.84l-.26 1.32c-.1.49-.45.85-.85 1.02-.41.17-.91.16-1.33-.12L4.06 3.4l-.6.6.75 1.12c.28.42.28.92.12 1.33-.16.4-.52.75-1.02.85l-1.32.26v.84l1.32.26c.49.1.85.45 1.02.85.17.41.16.91-.12 1.33l-.75 1.12.6.6 1.12-.75c.42-.27.92-.28 1.33-.12.4.16.75.52.85 1.02l.26 1.32h.84l.26-1.32c.1-.49.45-.85.85-1.02",clipRule:"evenodd"})]}),mt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.039 8.167 2.913 8A11 11 0 0 1 4.2 6.546C5.211 5.596 6.534 4.75 8 4.75s2.788.845 3.798 1.796A11 11 0 0 1 13.087 8q-.058.078-.127.167c-.271.352-.667.82-1.162 1.287-1.01.95-2.332 1.796-3.798 1.796s-2.788-.845-3.799-1.796c-.495-.466-.89-.935-1.162-1.287M13.999 8c.637-.397.636-.398.636-.398zm.636-.398.25.398-.25.398L14 8l.635.398V8.4l-.003.004-.008.011-.026.04a11 11 0 0 1-.45.627c-.306.399-.755.93-1.322 1.464-1.114 1.05-2.792 2.204-4.826 2.204s-3.712-1.155-4.827-2.204a12.6 12.6 0 0 1-1.677-1.95l-.095-.14-.026-.04-.008-.012-.002-.004-.001-.002L1.999 8l-.635.398L1.115 8l.249-.397.635.397c-.636-.397-.635-.398-.635-.398l.001-.002.002-.004.008-.011.026-.04a11 11 0 0 1 .45-.627c.307-.399.755-.93 1.322-1.464C4.288 4.404 5.966 3.25 8 3.25s3.712 1.155 4.826 2.204a12.6 12.6 0 0 1 1.677 1.95l.095.14.026.04.008.012.002.004zM8 10a2 2 0 1 0 0-4 2 2 0 0 0 0 4",clipRule:"evenodd"})]}),gt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"m10.63 5.42-4 6c-.23.34-.7.43-1.04.2a.745.745 0 0 1-.21-1.04l4-6a.753.753 0 0 1 1.25.84m4.12-2.75v10.66c0 .79-.63 1.42-1.41 1.42H2.67c-.78 0-1.42-.63-1.42-1.42V2.67c0-.79.64-1.42 1.42-1.42h10.67c.78 0 1.41.63 1.41 1.42m-1.5.08H2.75v10.5h10.5z"})]}),vt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12.83 9.25H9.91V6.54c.82-.62 1.34-1.6 1.34-2.7 0-1.89-1.53-3.42-3.42-3.42S4.41 1.95 4.41 3.84c0 1.1.53 2.08 1.34 2.7v2.71h-2.9c-.96 0-1.74.77-1.75 1.73l-.02 1.51a.75.75 0 0 0 .75.76h12c.42 0 .75-.33.75-.75V11c0-.96-.78-1.75-1.75-1.75m.25 2.5H2.59V11c.01-.14.12-.25.26-.25H6.5c.41 0 .75-.33.75-.75V6.14c0-.27-.15-.51-.38-.65-.57-.33-.96-.95-.96-1.65a1.92 1.92 0 0 1 3.84 0c0 .7-.38 1.32-.96 1.65-.23.14-.38.38-.38.65V10c0 .42.34.75.75.75h3.67c.14 0 .25.11.25.25zm1.5 3.25c0 .41-.34.75-.75.75h-12a.749.749 0 1 1 0-1.5h12c.41 0 .75.34.75.75"})]}),yt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8.685.71a.75.75 0 0 0-.69-.46c-.3 0-.58.18-.69.46l-1.76 4.24-4.58.37a.74.74 0 0 0-.65.52c-.09.29 0 .6.23.8l3.49 2.99-1.07 4.47c-.07.29.04.6.29.78s.57.19.83.03l3.92-2.39 3.92 2.39c.26.16.59.14.83-.03s.36-.49.29-.78l-1.07-4.47 3.49-2.99c.23-.2.32-.51.23-.8a.75.75 0 0 0-.65-.52l-4.58-.37z"})]}),bt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M15.69 5.84a.75.75 0 0 0-.65-.52l-4.58-.36L8.7.71A.77.77 0 0 0 8 .25c-.31 0-.57.19-.69.46L5.55 4.96l-4.58.36c-.3.03-.56.23-.65.52-.1.29-.01.6.22.8l3.49 2.99-1.06 4.47c-.08.29.04.6.28.78.25.17.58.19.84.03L8 12.52l3.92 2.39c.26.16.59.14.84-.03a.74.74 0 0 0 .28-.78l-1.06-4.47 3.49-2.99c.23-.2.32-.51.22-.8m-5.03 2.95c-.22.18-.31.47-.25.74l.76 3.16L8.4 11a.75.75 0 0 0-.79 0l-2.77 1.69.76-3.16a.75.75 0 0 0-.25-.74L2.89 6.67l3.24-.26c.28-.02.52-.2.63-.46L8 2.96l1.25 2.99c.11.26.35.44.63.46l3.24.26z"})]}),wt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M2.25 3c0-.41.34-.75.75-.75h10c.41 0 .75.34.75.75s-.34.75-.75.75H8.75v2h-1.5v-2H3c-.41 0-.75-.34-.75-.75m5 11v-3.75h1.5V14c0 .41-.34.75-.75.75s-.75-.34-.75-.75M1 7.25c-.41 0-.75.34-.75.75s.34.75.75.75h14c.41 0 .75-.34.75-.75s-.34-.75-.75-.75z"})]}),xt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M0 1.333C0 .597.597 0 1.333 0h13.334C15.403 0 16 .597 16 1.333v13.334c0 .736-.597 1.333-1.333 1.333H1.333A1.333 1.333 0 0 1 0 14.667zM1.5 14.5v-3.75h3.75v3.75zm3.75-4.75H1.5v-3.5h3.75zm0-4.5H1.5V1.5h3.75zm1 1v3.5h3.5v-3.5zm3.5-1h-3.5V1.5h3.5zm4.75 0h-3.75V1.5h3.75zM6.25 14.5v-3.75h3.5v3.75zm8.25-3.75h-3.75v3.75h3.75z",clipRule:"evenodd"})]}),St=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14.667 0C15.403 0 16 .597 16 1.333v13.334c0 .736-.597 1.333-1.333 1.333H1.333A1.333 1.333 0 0 1 0 14.667V1.333C0 .597.597 0 1.333 0zM10.25 1.5h4.25v3.75h-4.25zm-4.5 0H1.5v3.75h4.25zm0 4.75H1.5v3.5h4.25zm0 4.5H1.5v3.75h4.25zm4.5 3.75v-3.75h4.25v3.75zm0-4.75v-3.5h4.25v3.5z",clipRule:"evenodd"})]}),_t=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M1.333 0C.597 0 0 .597 0 1.333v13.334C0 15.403.597 16 1.333 16h13.334c.736 0 1.333-.597 1.333-1.333V1.333C16 .597 15.403 0 14.667 0zM1.5 9.75v-4h3.75v4zm0 1v3.75h3.75v-3.75zm4.75 0v3.75h3.5v-3.75zm4.5 0v3.75h3.75v-3.75zm3.75-1h-3.75v-4h3.75zm-4.75 0h-3.5v-4h3.5z",clipRule:"evenodd"})]}),Ct=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M14.66 0H1.33C.59 0 0 .6 0 1.33v13.34C0 15.4.59 16 1.33 16h13.33c.74 0 1.34-.6 1.34-1.33V1.33C16 .6 15.4 0 14.66 0M5.25 14.5H1.5v-3.75h3.75zm0-4.75H1.5v-3.5h3.75zm0-4.5H1.5V1.5h3.75zm4.5 9.25h-3.5v-3.75h3.5zm0-4.75h-3.5v-3.5h3.5zm0-4.5h-3.5V1.5h3.5zm4.75 9.25h-3.75v-3.75h3.75zm0-4.75h-3.75v-3.5h3.75zm0-4.5h-3.75V1.5h3.75z"})]}),Et=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M0 1.333C0 .597.597 0 1.333 0h13.334C15.403 0 16 .597 16 1.333v13.334c0 .736-.597 1.333-1.333 1.333H1.333A1.333 1.333 0 0 1 0 14.667zM1.5 5.75V1.5h3.75v4.25zm0 4.5v4.25h3.75v-4.25zm4.75 0v4.25h3.5v-4.25zm4.5 0v4.25h3.75v-4.25zm3.75-4.5h-3.75V1.5h3.75zm-4.75 0h-3.5V1.5h3.5z",clipRule:"evenodd"})]}),kt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 2.25a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5zm2 3.333a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5zM1.25 9.667a.75.75 0 0 1 .75-.75h12a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1-.75-.75M4 12.25a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),zt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 2.25a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5zm0 3.333a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5zm-.75 4.084a.75.75 0 0 1 .75-.75h12a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1-.75-.75M2 12.25a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),Pt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 2.25a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5zm0 3.333a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5zm-.75 4.084a.75.75 0 0 1 .75-.75h12a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1-.75-.75M2 12.25a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),At=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 2.25a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5zm4 3.333a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5zM1.25 9.667a.75.75 0 0 1 .75-.75h12a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1-.75-.75M6 12.25a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),Dt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M11.25 4c0 .42-.34.75-.75.75h-.75V7a.749.749 0 1 1-1.5 0V4.75H7.5c-.42 0-.75-.33-.75-.75s.33-.75.75-.75h3c.41 0 .75.34.75.75m4.5-1v4.5c0 1.52-1.23 2.75-2.75 2.75H9.75V13c0 .38-.28.69-.65.74l-5.16.74C3.73 15.36 2.94 16 2 16c-1.11 0-2-.89-2-2s.89-2 2-2c.74 0 1.38.4 1.73 1l4.52-.65v-2.1H5c-1.52 0-2.75-1.23-2.75-2.75V3C2.25 1.48 3.48.25 5 .25h8c1.52 0 2.75 1.23 2.75 2.75m-1.5 0c0-.69-.56-1.25-1.25-1.25H5c-.69 0-1.25.56-1.25 1.25v4.5c0 .69.56 1.25 1.25 1.25h8c.69 0 1.25-.56 1.25-1.25z",clipRule:"evenodd"})]}),Tt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M1.252 3c0-.41.33-.75.75-.75h12c.41 0 .75.34.75.75s-.34.75-.75.75h-12c-.42 0-.75-.34-.75-.75m12.75 2.58h-6c-.41 0-.75.34-.75.75s.34.75.75.75h6c.41 0 .75-.34.75-.75s-.34-.75-.75-.75m0 3.34h-6c-.41 0-.75.34-.75.75s.34.75.75.75h6c.41 0 .75-.34.75-.75s-.34-.75-.75-.75m0 3.33h-12c-.41 0-.75.34-.75.75s.34.75.75.75h12c.41 0 .75-.34.75-.75s-.34-.75-.75-.75m-9.67-2.15V5.9c0-.16-.19-.26-.32-.16l-2.8 2.1c-.11.08-.11.24 0 .32l2.8 2.1c.13.1.32 0 .32-.16"})]}),It=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.25 3A.75.75 0 0 1 3 2.25h10a.75.75 0 0 1 0 1.5H8.75V14a.75.75 0 0 1-1.5 0V3.75H3A.75.75 0 0 1 2.25 3",clipRule:"evenodd"})]}),Mt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M1.25 3c0-.41.34-.75.75-.75h12c.41 0 .75.34.75.75s-.34.75-.75.75H2c-.41 0-.75-.34-.75-.75M2 7.08h6c.41 0 .75-.34.75-.75s-.34-.75-.75-.75H2c-.41 0-.75.34-.75.75s.34.75.75.75m0 3.34h6c.41 0 .75-.34.75-.75s-.34-.75-.75-.75H2c-.41 0-.75.34-.75.75s.34.75.75.75m12 1.83H2c-.41 0-.75.34-.75.75s.34.75.75.75h12c.41 0 .75-.34.75-.75s-.34-.75-.75-.75m.79-4.41-2.8-2.1c-.13-.1-.32 0-.32.16v4.2c0 .16.19.26.32.16l2.8-2.1c.11-.08.11-.24 0-.32"})]}),Nt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6.179 10.036h-.036a3.893 3.893 0 1 1 0-7.786h6.286a.75.75 0 0 1 0 1.5h-1.792V14a.75.75 0 0 1-1.5 0V3.75H7.679V14a.75.75 0 0 1-1.5 0zM3.75 6.143A2.393 2.393 0 0 1 6.143 3.75h.036v4.786h-.036A2.393 2.393 0 0 1 3.75 6.143",clipRule:"evenodd"})]}),Ot=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6.5 1.75h-4c-.41 0-.75.33-.75.75v4c0 .41.34.75.75.75h4c.42 0 .75-.34.75-.75v-4c0-.42-.33-.75-.75-.75m-.75 4h-2.5v-2.5h2.5zm.75 3h-4c-.41 0-.75.33-.75.75v4c0 .41.34.75.75.75h4c.42 0 .75-.34.75-.75v-4c0-.42-.33-.75-.75-.75m-.75 4h-2.5v-2.5h2.5zm7.75-4h-4c-.41 0-.75.33-.75.75v4c0 .41.34.75.75.75h4c.42 0 .75-.34.75-.75v-4c0-.42-.33-.75-.75-.75m-.75 4h-2.5v-2.5h2.5zm.75-11h-4c-.41 0-.75.33-.75.75v4c0 .41.34.75.75.75h4c.42 0 .75-.34.75-.75v-4c0-.42-.33-.75-.75-.75m-.75 4h-2.5v-2.5h2.5z",clipRule:"evenodd"})]}),Rt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6.95 9.388c.848 1.035 1.964 2.398 3.13 4.723a.285.285 0 0 0 .344.136l.004-.001a.29.29 0 0 0 .186-.341l-1.113-2.697a1.56 1.56 0 0 1 1.442-2.158h2.39q.032 0 .063.003a.33.33 0 0 0 .185-.084.4.4 0 0 0 .12-.231.35.35 0 0 0-.036-.234c-.028-.049-.089-.118-.24-.164a.75.75 0 0 1 .123-1.462c.163-.02.223-.083.252-.125a.4.4 0 0 0 .053-.268.4.4 0 0 0-.117-.246c-.04-.034-.112-.078-.272-.058a.75.75 0 0 1-.188-1.488c.158-.02.218-.081.248-.126a.4.4 0 0 0 .055-.277.4.4 0 0 0-.115-.245c-.034-.03-.102-.073-.26-.051a.75.75 0 0 1-.268-1.475.4.4 0 0 0-.033-.165c-.084-.205-.409-.604-1.337-.604H9.373c-2.468 0-4.046 1.928-4.046 4.096 0 .719.123 1.236.328 1.688.21.467.523.898.96 1.442zm6.376 1.17a1 1 0 0 1-.105-.008h-2.278c-.04 0-.074.04-.055.087l1.129 2.734a1.79 1.79 0 0 1-1.101 2.293 1.785 1.785 0 0 1-2.175-.875l-.002-.004c-1.087-2.172-2.108-3.419-2.948-4.445l-.253-.31H3.35c-.464 0-.85-.214-1.14-.488-.285-.27-.507-.627-.677-1.01C1.19 7.764 1 6.756 1 5.68s.191-2.085.533-2.852c.17-.383.392-.74.677-1.01.29-.274.676-.488 1.14-.488h2.678C6.918.66 8.051.25 9.373.25h2.193c1.403 0 2.365.653 2.726 1.538.139.342.185.723.106 1.083l.053.045c.365.318.563.759.617 1.19a1.93 1.93 0 0 1-.205 1.141c.276.3.431.678.478 1.051a1.9 1.9 0 0 1-.395 1.425c.23.383.305.836.234 1.26-.133.806-.804 1.574-1.854 1.574ZM4.67 2.828H3.352a.3.3 0 0 0-.11.077c-.097.093-.22.262-.339.53C2.666 3.97 2.5 4.762 2.5 5.68s.166 1.71.403 2.244c.12.267.242.437.34.53a.3.3 0 0 0 .11.076h1.124a5 5 0 0 1-.19-.377c-.3-.665-.46-1.396-.46-2.306a5.8 5.8 0 0 1 .844-3.017Z",clipRule:"evenodd"})]}),jt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6.95 6.625c.848-1.035 1.964-2.398 3.13-4.723a.285.285 0 0 1 .344-.136l.004.001a.29.29 0 0 1 .186.341L9.501 4.806a1.56 1.56 0 0 0 1.442 2.157h2.39l.063-.003a.33.33 0 0 1 .185.084.4.4 0 0 1 .12.231.35.35 0 0 1-.036.234c-.028.049-.089.118-.24.164a.75.75 0 0 0 .123 1.462c.163.02.223.083.252.125.04.057.067.153.053.267a.4.4 0 0 1-.117.247c-.04.034-.112.078-.272.058a.75.75 0 0 0-.188 1.488c.158.02.218.08.248.125.041.061.07.16.055.278a.4.4 0 0 1-.115.245c-.034.03-.103.073-.26.05a.75.75 0 0 0-.268 1.476.4.4 0 0 1-.033.165c-.084.205-.409.604-1.337.604H9.373c-2.468 0-4.046-1.928-4.046-4.096 0-.719.123-1.236.328-1.688.21-.467.523-.898.96-1.443zm6.376-1.17a1 1 0 0 0-.105.008h-2.278a.06.06 0 0 1-.055-.087l1.129-2.734A1.79 1.79 0 0 0 10.916.349a1.785 1.785 0 0 0-2.175.875l-.002.004C7.652 3.4 6.631 4.647 5.791 5.673l-.253.31H3.35c-.464 0-.85.214-1.14.488-.285.27-.507.627-.677 1.01C1.19 8.248 1 9.257 1 10.333c0 1.077.191 2.085.533 2.853.17.383.392.739.677 1.01.29.274.676.487 1.14.487h2.678c.89.67 2.023 1.08 3.345 1.08h2.193c1.403 0 2.365-.653 2.726-1.538.139-.342.185-.723.106-1.083l.053-.045a1.9 1.9 0 0 0 .617-1.19 1.93 1.93 0 0 0-.205-1.141c.276-.301.431-.678.478-1.051a1.9 1.9 0 0 0-.395-1.425c.23-.383.305-.836.234-1.26-.133-.806-.804-1.575-1.854-1.575M4.67 13.183a5.8 5.8 0 0 1-.844-3.016c0-.91.16-1.64.46-2.306q.09-.194.19-.378H3.352a.3.3 0 0 0-.11.076c-.097.093-.22.263-.339.531-.237.534-.403 1.325-.403 2.243s.166 1.71.403 2.243c.12.268.242.438.34.531a.3.3 0 0 0 .11.076z",clipRule:"evenodd"})]}),Ft=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 1.75c-.621 0-1.125.504-1.125 1.125v.375h2.25v-.375c0-.621-.504-1.125-1.125-1.125m0-1.5a2.625 2.625 0 0 1 2.625 2.625v.375H14.5a.75.75 0 0 1 0 1.5h-.75v8.583a2.417 2.417 0 0 1-2.417 2.417H4.667a2.417 2.417 0 0 1-2.417-2.417V4.75H1.5a.75.75 0 0 1 0-1.5h3.875v-.375A2.625 2.625 0 0 1 8 .25m-4.25 4.5v8.583c0 .507.41.917.917.917h6.666c.507 0 .917-.41.917-.917V4.75zm5.75 1.5a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0V7a.75.75 0 0 1 .75-.75M7.25 7a.75.75 0 0 0-1.5 0v5a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"})]}),Bt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M14.75 1v14c0 .41-.34.75-.75.75s-.75-.34-.75-.75V1c0-.41.34-.75.75-.75s.75.34.75.75M10 3.25H2c-.41 0-.75.34-.75.75s.34.75.75.75h3.25V13c0 .41.34.75.75.75s.75-.34.75-.75V4.75H10c.41 0 .75-.34.75-.75s-.34-.75-.75-.75"})]}),Lt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5.55 3.2a.75.75 0 1 0-1.5 0v5.6a3.95 3.95 0 1 0 7.9 0V3.2a.75.75 0 0 0-1.5 0v5.6a2.45 2.45 0 0 1-4.9 0zM2.4 13.65a.75.75 0 0 0 0 1.5h11.2a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),Vt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5.864 2.136a.75.75 0 0 1 0 1.061L4.478 4.583h4.856a4.75 4.75 0 0 1 0 9.5H8a.75.75 0 0 1 0-1.5h1.334a3.25 3.25 0 0 0 0-6.5H4.478L5.864 7.47a.75.75 0 1 1-1.06 1.06L1.605 5.333l3.197-3.197a.75.75 0 0 1 1.061 0Z",clipRule:"evenodd"})]}),Kt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M7.5 8.75c.41 0 .75.34.75.75v2c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-2c0-.41.34-.75.75-.75m5-8C10.71.75 9.25 2.21 9.25 4v1.75H3.5c-.97 0-1.75.78-1.75 1.75v6c0 .97.78 1.75 1.75 1.75h8c.97 0 1.75-.78 1.75-1.75v-6c0-.97-.78-1.75-1.75-1.75h-.75V4c0-.97.78-1.75 1.75-1.75s1.75.78 1.75 1.75v1c0 .41.34.75.75.75s.75-.34.75-.75V4c0-1.79-1.46-3.25-3.25-3.25m-1 6.5c.14 0 .25.11.25.25v6c0 .14-.11.25-.25.25h-8c-.14 0-.25-.11-.25-.25v-6c0-.14.11-.25.25-.25z"})]}),Ht=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"m7.997.04 2.53 2.53c.29.29.29.77 0 1.06s-.77.29-1.06 0l-.72-.72V5c0 .41-.34.75-.75.75s-.75-.34-.75-.75V2.91l-.72.72c-.29.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06L7.998.04Zm0 15.92-2.53-2.53a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l.72.72V11c0-.41.34-.75.75-.75s.75.34.75.75v2.09l.72-.72c.29-.29.77-.29 1.06 0s.29.77 0 1.06zm0-8.96c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1"})]}),$t=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M15 2H1c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h14c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1m-.5 10.5h-13v-9h13zm-4.25-4.06-3 1.73a.503.503 0 0 1-.75-.44V6.27c0-.38.42-.63.75-.43l3 1.73c.33.19.33.67 0 .87"})]}),Ut=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m6.548 1.855-6.15 10.92c-.63 1.11.18 2.49 1.46 2.49h12.29c1.28 0 2.08-1.38 1.46-2.49l-6.15-10.92a1.666 1.666 0 0 0-2.91 0m1.45 3.66c.41 0 .75.34.75.75v3c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-3c0-.41.34-.75.75-.75m0 7.25c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1",clipRule:"evenodd"})]}),Wt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8.75 5.843c0-.41-.34-.75-.75-.75s-.75.34-.75.75v3c0 .41.34.75.75.75s.75-.34.75-.75zm-.75 6.5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1M6.132 2.072.297 12.082c-.84 1.44.2 3.26 1.868 3.26h11.67c1.668 0 2.707-1.81 1.868-3.26L9.868 2.072c-.839-1.43-2.907-1.43-3.736 0m2.447.76 5.835 10.01c.26.44-.06 1-.58 1H2.166c-.51 0-.839-.56-.58-1l5.836-10.01a.664.664 0 0 1 1.148 0z"})]}),qt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.25 1v2.19L1.53.47A.75.75 0 0 0 .47 1.53l2.72 2.72H1a.75.75 0 0 0 0 1.5h4.75V1a.75.75 0 0 0-1.5 0m1.5 14v-4.75H1a.75.75 0 0 0 0 1.5h2.19L.47 14.47a.75.75 0 1 0 1.06 1.06l2.72-2.72V15a.75.75 0 0 0 1.5 0m6-11.81V1a.75.75 0 0 0-1.5 0v4.75H15a.75.75 0 0 0 0-1.5h-2.19l2.72-2.72A.75.75 0 0 0 14.47.47zM15 11.75h-2.19l2.72 2.72a.75.75 0 0 1-1.06 1.06l-2.72-2.72V15a.75.75 0 0 1-1.5 0v-4.75H15a.75.75 0 0 1 0 1.5",clipRule:"evenodd"})]}),Gt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8 0C3.59 0 0 3.59 0 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m2.93 9.87c.29.29.29.77 0 1.06-.15.15-.34.22-.53.22s-.38-.07-.53-.22L8 9.06l-1.87 1.87c-.15.15-.34.22-.53.22s-.38-.07-.53-.22a.754.754 0 0 1 0-1.06L6.94 8 5.07 6.13a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0L8 6.94l1.87-1.87c.29-.29.77-.29 1.06 0s.29.77 0 1.06L9.06 8z"})]}),Zt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 16 16","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M13.48 2.52a.75.75 0 0 1 0 1.06L9.06 8l4.42 4.42a.75.75 0 1 1-1.061 1.06l-4.42-4.42-4.419 4.42a.75.75 0 0 1-1.06-1.06L6.938 8l-4.42-4.42A.75.75 0 0 1 3.58 2.52L8 6.94l4.419-4.42a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"})]});t.uY=o,t.oq=i,t.mi=a,t.hx=s,t.F5=c,t.fl=h,t.hS=y,t.$o=b,t.cF=x,t.eC=C,t.JJ=E,t.x7=k,t.Nr=P,t.Td=T,t.Yl=B,t.bL=K,t.U9=H,t.VU=se,t.S_=ue,t.yO=de,t.qY=fe,t.Z4=we,t.Eo=nt,t.Uf=st,t.L0=kt,t.VN=Pt,t.Ui=At,t.uc=Ft,t.qp=Lt,t.ej=Vt,t.AK=Ut,t.uv=Zt},52971:(e,t,n)=>{"use strict";var r=n(74848),o=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.114 16.78a.75.75 0 0 0 0-1.06l-4.97-4.97h10.69a.75.75 0 0 0 0-1.5H5.143l4.97-4.97a.75.75 0 0 0-1.061-1.06L2.273 10l6.78 6.78a.75.75 0 0 0 1.06 0Z",clipRule:"evenodd"})]}),i=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9.053 3.22a.75.75 0 0 0 0 1.06l4.97 4.97H3.332a.75.75 0 0 0 0 1.5h10.69l-4.97 4.97a.75.75 0 1 0 1.06 1.06l6.78-6.78-6.78-6.78a.75.75 0 0 0-1.06 0Z",clipRule:"evenodd"})]}),a=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10 20c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10m0-15.56L5.97 8.47a.75.75 0 1 0 1.06 1.06l2.22-2.22v7.19a.75.75 0 0 0 1.5 0V7.31l2.22 2.22a.75.75 0 0 0 1.06-1.06z",clipRule:"evenodd"})]}),s=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10 .25C4.615.25.25 4.615.25 10s4.365 9.75 9.75 9.75h5a.75.75 0 0 0 0-1.5h-5a8.25 8.25 0 0 1 0-16.5h1.365a6.885 6.885 0 0 1 6.885 6.885v3.115a2 2 0 1 1-4 0V5a.75.75 0 0 0-1.5 0v.896a4.5 4.5 0 0 0-7.5 3.354v1.5a4.5 4.5 0 0 0 8.009 2.818 3.5 3.5 0 0 0 6.491-1.818V8.635A8.385 8.385 0 0 0 11.365.25zm2.75 10.5v-1.5a3 3 0 1 0-6 0v1.5a3 3 0 1 0 6 0",clipRule:"evenodd"})]}),l=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10 20c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10m2.5-12.5a2.5 2.5 0 1 1-4.999.001A2.5 2.5 0 0 1 12.5 7.5M5 13.75c0-1.662 3.331-2.5 5-2.5s5 .838 5 2.5V15H5z",clipRule:"evenodd"})]}),c=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M4 15.74c0 .696.564 1.26 1.26 1.26h5.79c3.321 0 5.357-1.586 5.357-4.221 0-1.8-1.028-3.172-2.871-3.579 1.543-.579 2.293-1.693 2.293-3.321C15.829 3.543 14.093 2 11.22 2H5.26A1.26 1.26 0 0 0 4 3.26zm3.6-7.89V5h2.807c1.136 0 1.757.557 1.757 1.393 0 .921-.685 1.457-1.693 1.457zm0 6.15v-3.15h3.171c1.286 0 1.993.6 1.993 1.564 0 1.029-.793 1.586-1.928 1.586z"})]}),u=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.75 5A3.25 3.25 0 0 1 8 1.75h7A3.25 3.25 0 0 1 18.25 5v3A3.25 3.25 0 0 1 15 11.25H8A3.25 3.25 0 0 1 4.75 8zM8 .25A4.75 4.75 0 0 0 3.25 5v3A4.75 4.75 0 0 0 8 12.75h7A4.75 4.75 0 0 0 19.75 8V5A4.75 4.75 0 0 0 15 .25zm1 3a.75.75 0 0 0 0 1.5h1.75V9a.75.75 0 0 0 1.5 0V4.75H14a.75.75 0 0 0 0-1.5zm1.75 12.635V14.25h1.5v2.25a.75.75 0 0 1-.603.735L2.92 18.98a1.5 1.5 0 1 1-.294-1.47l8.123-1.625Z",clipRule:"evenodd"})]}),d=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M15.53 6.97a.75.75 0 0 0-1.06 0L10 11.44 5.53 6.97a.75.75 0 0 0-1.06 1.06l5 5a.75.75 0 0 0 1.06 0l5-5a.75.75 0 0 0 0-1.06",clipRule:"evenodd"})]}),p=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M13.03 15.53a.75.75 0 0 0 0-1.06L8.56 10l4.47-4.47a.75.75 0 0 0-1.06-1.06l-5 5a.75.75 0 0 0 0 1.06l5 5a.75.75 0 0 0 1.06 0",clipRule:"evenodd"})]}),h=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6.97 4.47a.75.75 0 0 0 0 1.06L11.44 10l-4.47 4.47a.75.75 0 1 0 1.06 1.06l5-5a.75.75 0 0 0 0-1.06l-5-5a.75.75 0 0 0-1.06 0",clipRule:"evenodd"})]}),f=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.47 13.03a.75.75 0 0 0 1.06 0L10 8.56l4.47 4.47a.75.75 0 1 0 1.06-1.06l-5-5a.75.75 0 0 0-1.06 0l-5 5a.75.75 0 0 0 0 1.06",clipRule:"evenodd"})]}),m=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10 20c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10m4.53-11.97a.75.75 0 1 0-1.06-1.06L9 11.44 7.03 9.47a.75.75 0 1 0-1.06 1.06L9 13.56z",clipRule:"evenodd"})]}),g=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M18.5 10a8.5 8.5 0 1 1-17 0 8.5 8.5 0 0 1 17 0m1.5 0c0 5.523-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0s10 4.477 10 10m-5.47-1.97a.75.75 0 1 0-1.06-1.06L9 11.44 7.03 9.47a.75.75 0 1 0-1.06 1.06L9 13.56z",clipRule:"evenodd"})]}),v=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M16.53 5.47a.75.75 0 0 1 0 1.06L8 15.06l-4.53-4.53a.75.75 0 1 1 1.06-1.06L8 12.94l7.47-7.47a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})]}),y=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M18.5 10a8.5 8.5 0 1 1-17 0 8.5 8.5 0 0 1 17 0m1.5 0c0 5.523-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0s10 4.477 10 10M9.25 5a.75.75 0 0 1 1.5 0v5.75H6a.75.75 0 0 1 0-1.5h3.25z",clipRule:"evenodd"})]}),b=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M17.527 13.467c.29.29.29.77 0 1.06s-.77.29-1.06 0l-4-4a.754.754 0 0 1 0-1.06l4-4c.29-.29.77-.29 1.06 0s.29.77 0 1.06l-3.47 3.47zm-15.06-6.94a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l4 4c.29.29.29.77 0 1.06l-4 4c-.29.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06l3.47-3.47z"})]}),w=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.667 2.25A2.417 2.417 0 0 0 1.25 4.667v8.666a2.417 2.417 0 0 0 2.417 2.417H5.25v2.75a.75.75 0 0 0 1.244.564l3.788-3.314h6.051a2.417 2.417 0 0 0 2.417-2.417V4.667a2.417 2.417 0 0 0-2.417-2.417zM2.75 4.667c0-.507.41-.917.917-.917h12.666c.507 0 .917.41.917.917v8.666c0 .507-.41.917-.917.917H10a.75.75 0 0 0-.494.186L6.75 16.847V15a.75.75 0 0 0-.75-.75H3.667a.917.917 0 0 1-.917-.917zM7 10a1 1 0 1 0 0-2 1 1 0 0 0 0 2m7.667-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-4.333 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2",clipRule:"evenodd"})]}),x=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M18.5 14.5h-4V16H19c.55 0 1-.45 1-1V4.41c0-.27-.11-.52-.29-.71L16.3.29a1 1 0 0 0-.71-.29H8c-.55 0-1 .45-1 1v1.5h1.5v-1H15V4c0 .55.45 1 1 1h2.5zm-7 4h-10v-13H8V8c0 .55.45 1 1 1h2.5zM0 19V5c0-.55.45-1 1-1h7.59c.27 0 .52.11.71.29l3.41 3.41c.19.19.29.44.29.71V19c0 .55-.45 1-1 1H1c-.55 0-1-.45-1-1",clipRule:"evenodd"})]}),S=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5.233 13.063a2 2 0 1 1-3.464 2 2 2 0 0 1 3.464-2m1.6-.072A3.501 3.501 0 0 1 .47 15.813a3.5 3.5 0 0 1 5.61-4.119l2.364-1.352.13-.85a4.85 4.85 0 0 1 2.385-3.48l3.557-2.036a2.39 2.39 0 0 1 2.34-.02l2.896 1.59-10.249 5.918-2.669 1.527Zm9.862-7.412-6.568 3.792a3.35 3.35 0 0 1 1.576-2.057l3.558-2.036a.89.89 0 0 1 .871-.008zm-9.862.993A3.501 3.501 0 0 0 .47 3.751a3.5 3.5 0 0 0 5.61 4.118l1.165.667c.136-.491.329-.961.573-1.4zm7.082 4.075 5.836 3.37-2.897 1.591a2.39 2.39 0 0 1-2.339-.02l-3.557-2.037a5 5 0 0 1-.909-.672l.197-.113.008-.005 1.182-.682q.129.09.267.17l3.558 2.037c.27.154.6.157.871.008l.563-.31-4.28-2.47zM5.233 6.501a2 2 0 1 0-3.464-2 2 2 0 0 0 3.464 2",clipRule:"evenodd"})]}),_=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3 6.25a.75.75 0 0 1 .75.75v2.25h12.5V7a.75.75 0 0 1 1.5 0v6a.75.75 0 0 1-1.5 0v-2.25H3.75V13a.75.75 0 0 1-1.5 0V7A.75.75 0 0 1 3 6.25",clipRule:"evenodd"})]}),C=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10 1.75a.75.75 0 0 1 .75.75v10.69l2.053-2.054a.75.75 0 0 1 1.06 1.061L10 16.061l-3.864-3.864a.75.75 0 0 1 1.061-1.06l2.053 2.052V2.5a.75.75 0 0 1 .75-.75M2.5 13.417a.75.75 0 0 1 .75.75v2.5c0 .506.41.916.917.916h11.666c.507 0 .917-.41.917-.916v-2.5a.75.75 0 0 1 1.5 0v2.5a2.417 2.417 0 0 1-2.417 2.416H4.167a2.417 2.417 0 0 1-2.417-2.416v-2.5a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})]}),E=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12.83 9.58c0-.41-.34-.75-.75-.75s-.75.34-.75.75v1.75H9.58c-.41 0-.75.34-.75.75s.34.75.75.75h1.75v1.75c0 .41.34.75.75.75s.75-.34.75-.75v-1.75h1.75c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-1.75zm3.84-4.5h-1.75V3.33C14.92 2 13.84.92 12.5.92H3.33C2 .92.92 2 .92 3.33v9.17a2.42 2.42 0 0 0 2.41 2.42h1.75v1.75c0 1.33 1.08 2.41 2.42 2.41h9.17c1.33 0 2.41-1.08 2.41-2.41V7.5a2.42 2.42 0 0 0-2.41-2.42M5.08 7.5v5.92H3.33c-.5 0-.91-.41-.91-.92V3.33c0-.5.41-.91.91-.91h9.17c.51 0 .92.41.92.91v1.75H7.5c-1.34 0-2.42 1.09-2.42 2.42m12.5 9.17c0 .5-.41.91-.91.91H7.5c-.51 0-.92-.41-.92-.91V7.5c0-.51.41-.92.92-.92h9.17c.5 0 .91.41.91.92z"})]}),k=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12.874 2.732a2.417 2.417 0 0 1 3.418 0l.976.976a2.417 2.417 0 0 1 0 3.417L6.608 17.787c-.297.297-.7.464-1.12.464H1.75v-3.738c0-.42.167-.823.464-1.12zm2.357 1.06a.917.917 0 0 0-1.296 0L12.727 5 15 7.273l1.208-1.208a.917.917 0 0 0 0-1.297zM13.94 8.333l-2.272-2.272-8.393 8.392a.08.08 0 0 0-.024.059v2.238h2.238a.08.08 0 0 0 .06-.024z",clipRule:"evenodd"})]}),z=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10 16.833a6.833 6.833 0 1 0 0-13.666 6.833 6.833 0 0 0 0 13.666m0 1.5a8.333 8.333 0 1 0 0-16.666 8.333 8.333 0 0 0 0 16.666",clipRule:"evenodd"})]}),P=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M18.5 10a8.5 8.5 0 1 1-17 0 8.5 8.5 0 0 1 17 0m1.5 0c0 5.523-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0s10 4.477 10 10M6.697 11.722a.75.75 0 1 0-1.393.556C6.012 14.051 7.882 15.25 10 15.25s3.988-1.199 4.697-2.972a.75.75 0 1 0-1.393-.556c-.456 1.14-1.728 2.028-3.304 2.028s-2.848-.888-3.303-2.028M8.5 7.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M13 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3",clipRule:"evenodd"})]}),A=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10 20c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10m3.53-12.47a.75.75 0 0 0-1.06-1.06l-6 6a.75.75 0 1 0 1.06 1.06z",clipRule:"evenodd"})]}),D=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M20 10c0 5.523-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0s10 4.477 10 10m-1.5 0a8.5 8.5 0 0 1-13.957 6.517L16.517 4.543A8.47 8.47 0 0 1 18.5 10M3.483 15.457 15.457 3.483A8.5 8.5 0 0 0 3.483 15.457",clipRule:"evenodd"})]}),T=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M20 10c0 5.523-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0s10 4.477 10 10m-8.75 4.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M10.75 5a.75.75 0 0 0-1.5 0v6a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"})]}),I=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M11.25 14.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M10.75 5c0-.41-.34-.75-.75-.75s-.75.34-.75.75v6c0 .41.34.75.75.75s.75-.34.75-.75zM10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0m0 18.5c-4.69 0-8.5-3.81-8.5-8.5S5.31 1.5 10 1.5s8.5 3.81 8.5 8.5-3.81 8.5-8.5 8.5"})]}),M=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M6.527 13.467c.29.29.29.77 0 1.06s-.77.29-1.06 0l-4-4a.754.754 0 0 1 0-1.06l4-4c.29-.29.77-.29 1.06 0s.29.77 0 1.06l-3.47 3.47zm6.94-6.94a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l4 4c.29.29.29.77 0 1.06l-4 4c-.29.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06l3.47-3.47z"})]}),N=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M15.83 14.58a1.25 1.25 0 1 1-2.501 0 1.25 1.25 0 0 1 2.5 0Zm0-4.16a1.25 1.25 0 1 1-2.501 0 1.25 1.25 0 0 1 2.5 0Zm-4.58 4.16a1.25 1.25 0 1 1-2.501 0 1.25 1.25 0 0 1 2.5 0Zm0-4.16a1.25 1.25 0 1 1-2.501 0 1.25 1.25 0 0 1 2.5 0Zm-4.58 4.16a1.25 1.25 0 1 1-2.501 0 1.25 1.25 0 0 1 2.5 0Zm10-12.75h-1.34v-1a.749.749 0 1 0-1.5 0v1H6.17v-1c0-.41-.34-.75-.75-.75s-.75.34-.75.75v1H3.33C1.58 1.83.17 3.25.17 5v10.83C.17 17.58 1.58 19 3.33 19h13.34c1.74 0 3.16-1.42 3.16-3.17V5c0-1.75-1.42-3.17-3.16-3.17m1.66 14c0 .92-.74 1.67-1.66 1.67H3.33c-.92 0-1.66-.75-1.66-1.67v-8h16.66zm0-9.5H1.67V5c0-.92.74-1.67 1.66-1.67h1.34V5a.749.749 0 1 0 1.5 0V3.33h7.66V5c0 .41.34.75.75.75s.75-.34.75-.75V3.33h1.34c.92 0 1.66.75 1.66 1.67z"})]}),O=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5.989 15.833H1.667c-.92 0-1.667-.746-1.667-1.666V5.833c0-.92.746-1.666 1.667-1.666h16.666c.92 0 1.667.746 1.667 1.666v8.334c0 .92-.746 1.666-1.667 1.666H10.67c-.17.598-.358 1.16-.559 1.66-.246.614-.527 1.171-.844 1.59-.29.381-.751.834-1.389.834-.754 0-1.181-.59-1.392-1.025-.228-.472-.36-1.062-.43-1.627a9.5 9.5 0 0 1-.067-1.432M1.667 5.667h16.666c.092 0 .167.074.167.166v8.334a.167.167 0 0 1-.167.166h-7.285c.094-.426.178-.858.253-1.288.133-.77.236-1.55.298-2.289.374-.242.752-.458 1.123-.637q.045.117.105.266c.096.237.224.536.39.783.138.204.467.624 1.025.624.914 0 1.66-.522 2.175-1.205.516-.684.857-1.593.992-2.567a.75.75 0 0 0-1.486-.206c-.107.775-.372 1.43-.704 1.87-.267.354-.542.53-.794.587a4 4 0 0 1-.207-.448l-.08-.2a10 10 0 0 0-.194-.476 2 2 0 0 0-.2-.35c-.054-.072-.289-.38-.714-.38a.8.8 0 0 0-.27.05 10 10 0 0 0-1.098.51 11 11 0 0 0-.016-.402c-.037-.617-.13-1.207-.328-1.667-.194-.452-.596-.991-1.318-.991-.46 0-1.059.189-1.629.413a21 21 0 0 0-1.978.923c-1.355.712-2.782 1.604-3.557 2.29a.75.75 0 1 0 .994 1.123c.639-.565 1.94-1.391 3.26-2.085a19 19 0 0 1 1.83-.855c.473-.186.802-.276.984-.301l.036.075c.096.223.175.61.209 1.165.022.378.022.806 0 1.267-.423.307-.832.637-1.216.979-1.138 1.012-2.125 2.182-2.638 3.24a2 2 0 0 0-.076.182H1.667a.167.167 0 0 1-.167-.166V5.833c0-.092.075-.166.167-.166m7.438 10.166c-.122.397-.252.767-.386 1.101-.224.558-.446.977-.648 1.242a1.3 1.3 0 0 1-.165.188q-.03-.044-.07-.125c-.126-.262-.23-.67-.292-1.16a8 8 0 0 1-.054-1.246zm.404-1.5H7.908c.448-.717 1.16-1.535 2.022-2.301l.015-.014a27 27 0 0 1-.436 2.315m.359-6.963q0-.002.008.01zM7.97 18.44q0 .003-.01-.007.01.006.01.008Zm6.536-8.054-.013-.013z",clipRule:"evenodd"})]}),R=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7.5 1a.75.75 0 0 0 0 1.5c.966 0 1.75.784 1.75 1.75H1.667C.747 4.25 0 4.996 0 5.917v8.333c0 .92.746 1.667 1.667 1.667H9.25a1.75 1.75 0 0 1-1.75 1.75.75.75 0 0 0 0 1.5 3.24 3.24 0 0 0 2.5-1.174 3.24 3.24 0 0 0 2.5 1.174.75.75 0 0 0 0-1.5 1.75 1.75 0 0 1-1.75-1.749v-.001h7.583c.92 0 1.667-.746 1.667-1.667V5.917c0-.92-.746-1.667-1.667-1.667H10.75c0-.966.784-1.75 1.75-1.75a.75.75 0 0 0 0-1.5A3.24 3.24 0 0 0 10 2.173 3.24 3.24 0 0 0 7.5 1m1.75 4.75H1.667a.167.167 0 0 0-.167.167v8.333c0 .092.075.167.167.167H9.25v-3.709h-1a.75.75 0 0 1 0-1.5h1zm1.5 8.667v-3.709h1a.75.75 0 0 0 0-1.5h-1V5.75h7.583c.092 0 .167.075.167.167v8.333a.167.167 0 0 1-.167.167z",clipRule:"evenodd"})]}),j=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M11 14.5c0 .55-.45 1-1 1s-1-.45-1-1 .45-1 1-1 1 .45 1 1M8.25 7.4c0-.88.75-1.65 1.75-1.65s1.75.77 1.75 1.65c0 .66-.42 1.26-1.06 1.52-.63.26-1.44.88-1.44 1.88v.2c0 .41.34.75.75.75s.75-.34.75-.75v-.2c0-.05.02-.13.11-.23s.23-.2.4-.27c1.15-.47 1.99-1.58 1.99-2.91 0-1.77-1.48-3.15-3.25-3.15S6.75 5.62 6.75 7.39c0 .41.34.75.75.75s.75-.34.75-.75zM10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0m0 18.5c-4.69 0-8.5-3.81-8.5-8.5S5.31 1.5 10 1.5s8.5 3.81 8.5 8.5-3.81 8.5-8.5 8.5"})]}),F=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3 0a3 3 0 0 0-3 3v13a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V3a3 3 0 0 0-3-3zm2 3.25a.75.75 0 0 0 0 1.5h4.25V15a.75.75 0 0 0 1.5 0V4.75H15a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),B=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9.545 1.403a.75.75 0 0 1 .91 0l7 5.334a.75.75 0 0 1 .295.596V18a.75.75 0 0 1-.75.75H3a.75.75 0 0 1-.75-.75V7.333a.75.75 0 0 1 .295-.596zm6.705 6.302L10 2.943 3.75 7.705v9.545h3.5V14a2.75 2.75 0 1 1 5.5 0v3.25h3.5zm-5 9.545V14a1.25 1.25 0 1 0-2.5 0v3.25z",clipRule:"evenodd"})]}),L=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M18.333 3.5H1.667a.167.167 0 0 0-.167.167v9.776l2.922-2.912a.75.75 0 0 1 1.059 0l2.104 2.098 5.178-5.16a.75.75 0 0 1 1.06 0L18.5 12.13V3.667a.167.167 0 0 0-.167-.167M0 16.333V3.667C0 2.747.746 2 1.667 2h16.666C19.253 2 20 2.746 20 3.667v12.666c0 .92-.746 1.667-1.667 1.667H1.667C.747 18 0 17.254 0 16.333m18.5 0v-2.085l-5.207-5.19-5.178 5.16a.75.75 0 0 1-1.059 0l-2.105-2.097-3.451 3.44v.772c0 .092.075.167.167.167h16.666a.167.167 0 0 0 .167-.167M5.5 8a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3",clipRule:"evenodd"})]}),V=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M20 10c0 5.523-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0s10 4.477 10 10m-8.75-4.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M8.5 8.25a.75.75 0 0 0 0 1.5h.75v4.5H8.5a.75.75 0 0 0 0 1.5h3a.75.75 0 0 0 0-1.5h-.75v-6z",clipRule:"evenodd"})]}),K=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M11.25 5.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M8.5 8.25c-.41 0-.75.34-.75.75s.34.75.75.75h.75v4.5H8.5c-.41 0-.75.34-.75.75s.34.75.75.75h3c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-.75v-6zM10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0m0 18.5c-4.69 0-8.5-3.81-8.5-8.5S5.31 1.5 10 1.5s8.5 3.81 8.5 8.5-3.81 8.5-8.5 8.5"})]}),H=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7.75 4a.75.75 0 0 1 .75-.75h5a.75.75 0 0 1 0 1.5h-1.901l-2.16 9.5H11a.75.75 0 0 1 0 1.5H6a.75.75 0 0 1 0-1.5h1.901l2.16-9.5H8.5A.75.75 0 0 1 7.75 4",clipRule:"evenodd"})]}),$=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m17.026 8.54-1.944 1.945a.75.75 0 0 1-1.06-1.06l1.944-1.945a1.75 1.75 0 0 0 0-2.475l-.707-.707a1.75 1.75 0 0 0-2.475 0L9.248 7.834a1.75 1.75 0 0 0 0 2.475l.354.353a.75.75 0 1 1-1.06 1.06l-.354-.353a3.25 3.25 0 0 1 0-4.596l3.535-3.536a3.25 3.25 0 0 1 4.596 0l.707.708a3.25 3.25 0 0 1 0 4.596ZM5.065 9.897a.75.75 0 1 1 1.06 1.06L4.3 12.784a1.75 1.75 0 0 0 0 2.475l.707.707a1.75 1.75 0 0 0 2.475 0l3.535-3.535a1.75 1.75 0 0 0 0-2.475l-.354-.354a.75.75 0 1 1 1.061-1.06l.354.353a3.25 3.25 0 0 1 0 4.596L8.54 17.026a3.25 3.25 0 0 1-4.596 0l-.707-.707a3.25 3.25 0 0 1 0-4.596l1.827-1.827Z",clipRule:"evenodd"})]}),U=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.75 5.417a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5m4.167-2a.75.75 0 1 0 0 1.5h9.167a.75.75 0 0 0 0-1.5zm0 5.833a.75.75 0 0 0 0 1.5h9.167a.75.75 0 0 0 0-1.5zm-.75 6.583a.75.75 0 0 1 .75-.75h9.167a.75.75 0 0 1 0 1.5H7.917a.75.75 0 0 1-.75-.75M5 10a1.25 1.25 0 1 1-2.5 0A1.25 1.25 0 0 1 5 10m-1.25 7.083a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5",clipRule:"evenodd"})]}),W=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6.75 5a3.25 3.25 0 1 1 6.5 0v2.5h-6.5zm-1.5 2.5V5a4.75 4.75 0 0 1 9.5 0v2.5H15a3.5 3.5 0 0 1 3.5 3.5v5a3.5 3.5 0 0 1-3.5 3.5H5A3.5 3.5 0 0 1 1.5 16v-5A3.5 3.5 0 0 1 5 7.5zM5 9a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-5a2 2 0 0 0-2-2zm6.5 3.5a1.5 1.5 0 0 1-.75 1.3V15a.75.75 0 0 1-1.5 0v-1.2a1.5 1.5 0 1 1 2.25-1.3",clipRule:"evenodd"})]}),q=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M7.667 1.83c0 .46-.37.83-.83.83s-.83-.37-.83-.83.37-.83.83-.83.83.37.83.83m3.67.25c.11-.76 1.21-.76 1.32 0l.66 4.6 4.6.66c.76.11.76 1.21 0 1.32l-4.6.66-.66 4.6c-.11.76-1.21.76-1.32 0l-.66-4.6-4.6-.66c-.76-.11-.76-1.21 0-1.32l4.6-.66zm-8.51 12.06c.11-.77 1.23-.77 1.34 0l.21 1.48 1.48.21c.77.11.77 1.23 0 1.34l-1.48.21-.21 1.48c-.11.77-1.23.77-1.34 0l-.21-1.48-1.48-.21c-.77-.11-.77-1.23 0-1.34l1.48-.21zm-1-3.47c.46 0 .83-.37.83-.83s-.37-.83-.83-.83-.83.37-.83.83.37.83.83.83m12.67 8.5c.46 0 .83-.37.83-.83s-.37-.83-.83-.83-.83.37-.83.83.37.83.83.83"})]}),G=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.25 10A.75.75 0 0 1 4 9.25h12a.75.75 0 0 1 0 1.5H4a.75.75 0 0 1-.75-.75",clipRule:"evenodd"})]}),Z=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.5 8.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m5 1.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0m6.5 0a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0",clipRule:"evenodd"})]}),Y=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M10 8.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5m0 6.5c.83 0 1.5.67 1.5 1.5S10.83 18 10 18s-1.5-.67-1.5-1.5S9.17 15 10 15m0-13c.83 0 1.5.67 1.5 1.5S10.83 5 10 5s-1.5-.67-1.5-1.5S9.17 2 10 2"})]}),X=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.637 2.803a.75.75 0 1 1 1.06 1.061l-1.22 1.22H5a5.75 5.75 0 0 1 5 2.908 5.75 5.75 0 0 1 5-2.908h1.523l-1.22-1.22a.75.75 0 1 1 1.061-1.06l3.03 3.03-3.03 3.03a.75.75 0 0 1-1.06-1.06l1.22-1.22H15a4.25 4.25 0 0 0-4.25 4.25V17.5a.75.75 0 0 1-1.5 0v-6.666A4.25 4.25 0 0 0 5 6.584H3.478l1.22 1.22a.75.75 0 1 1-1.061 1.06l-3.03-3.03z",clipRule:"evenodd"})]}),J=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12.258 1.913a.833.833 0 0 0-1.183 0L8.716 4.272a.83.83 0 0 0-.241.591c.003.22.09.432.241.592l1.917 1.908H1.666a.833.833 0 0 0-.833.834v3.333a.833.833 0 0 0 .833.833h8.967l-1.917 1.909a.83.83 0 0 0 0 1.183l2.359 2.35a.83.83 0 0 0 1.183 0l7.358-7.35a.88.88 0 0 0 .242-.592.84.84 0 0 0-.242-.591z",clipRule:"evenodd"})]}),Q=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M15.834 3.575a.834.834 0 0 0-1.175 0l-6.75 6.783-2.459-2.5a.834.834 0 0 0-1.183 0L1.909 10.25a.88.88 0 0 0-.242.583.83.83 0 0 0 .242.592l5.408 5.408a.84.84 0 0 0 .592.25.83.83 0 0 0 .583-.25l9.725-9.716a.833.833 0 0 0 0-1.184z",clipRule:"evenodd"})]}),ee=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10 1.667a8.333 8.333 0 1 0 0 16.666 8.333 8.333 0 0 0 0-16.666m0 11.666a3.333 3.333 0 1 1 0-6.666 3.333 3.333 0 0 1 0 6.666",clipRule:"evenodd"})]}),te=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m18.367 5.033-4.9 4.892 4.9 4.9a.833.833 0 0 1 0 1.183l-2.359 2.359a.834.834 0 0 1-1.183 0l-4.9-4.9-4.892 4.9a.833.833 0 0 1-1.183 0l-2.358-2.359a.833.833 0 0 1 0-1.183l4.9-4.9-4.9-4.892a.83.83 0 0 1-.242-.591.83.83 0 0 1 .242-.592L3.85 1.492a.83.83 0 0 1 .592-.242c.22.003.432.09.591.242l4.892 4.9 4.9-4.9a.834.834 0 0 1 1.183 0l2.359 2.358a.833.833 0 0 1 0 1.183",clipRule:"evenodd"})]}),ne=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8.32 6.668c0 .22-.09.43-.24.59-.16.16-.37.24-.59.24H4.16c-.22 0-.43-.09-.59-.24a.8.8 0 0 1-.24-.59c0-1.2.33-2.39.95-3.42A6.7 6.7 0 0 1 6.85.798a6.57 6.57 0 0 1 3.45-.79c1.2.06 2.37.44 3.37 1.1 1 .67 1.81 1.59 2.33 2.68s.74 2.29.63 3.49a6.66 6.66 0 0 1-4.04 5.52l-.1.05v.06c0 .22-.09.43-.24.59-.16.16-.37.24-.59.24H8.33c-.22 0-.43-.09-.59-.24a.82.82 0 0 1-.24-.59v-.42c.05-.95.37-1.86.93-2.62s1.33-1.35 2.22-1.68c.28-.12.52-.31.7-.55s.29-.53.31-.83c.03-.3-.03-.6-.16-.87s-.33-.5-.58-.67-.54-.26-.84-.28c-.3-.01-.6.05-.87.2-.27.14-.49.35-.64.61s-.24.55-.24.86zm1.67 13.33c.49 0 .98-.15 1.39-.42s.73-.67.92-1.12c.19-.46.24-.96.14-1.44s-.33-.93-.68-1.28-.8-.59-1.28-.68c-.48-.1-.99-.05-1.44.14-.46.19-.85.51-1.12.92a2.505 2.505 0 0 0 .31 3.16c.47.47 1.1.73 1.77.73z",clipRule:"evenodd"})]}),re=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9.293 1.1a1 1 0 0 1 1.414 0l6.317 6.318a1 1 0 0 1 0 1.414l-1.827 1.827a1 1 0 0 1-1.414 0l-1.492-1.492v1.25c0 1.214.442 2.06 1.327 2.689.869.616 2.321 1.126 4.549 1.244.551.029 1 .473 1 1.025v2.583a.97.97 0 0 1-1 .98c-2.88-.121-5.35-.78-7.203-2.096a8 8 0 0 1-.964-.8 8 8 0 0 1-.965.8c-1.853 1.316-4.322 1.975-7.202 2.096a.97.97 0 0 1-1-.98v-2.583c0-.552.448-.996 1-1.025 2.227-.118 3.68-.628 4.548-1.244.885-.63 1.327-1.475 1.327-2.69v-1.25L6.216 10.66a1 1 0 0 1-1.414 0L2.975 8.832a1 1 0 0 1 0-1.414z",clipRule:"evenodd"})]}),oe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M16.725 2.958a5.833 5.833 0 0 0-9.492 6.417.3.3 0 0 1 0 .1l-5.667 5.692a1.67 1.67 0 0 0-.441.775l-.242.975a1.667 1.667 0 0 0 1.8 2.058l.883-.1A1.67 1.67 0 0 0 5 17.625l.391-1.575.217-.208 2.4-.217a1.67 1.67 0 0 0 1.425-1.133l.65-1.95.1-.1a.3.3 0 0 1 .1 0A5.833 5.833 0 0 0 16.7 2.95zM15 6.492a1.25 1.25 0 1 1-1.77-1.768A1.25 1.25 0 0 1 15 6.492",clipRule:"evenodd"})]}),ie=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6.666 13.333H7.5V17.5c0 .46.373.833.833.833H10c.46 0 .833-.373.833-.833V5.417c0-.23.187-.417.417-.417h1.666c.23 0 .417.187.417.417V17.5c0 .46.373.833.833.833h1.667c.46 0 .833-.373.833-.833V5.417c0-.23.187-.417.417-.417h1.25c.46 0 .833-.373.833-.833V2.5a.833.833 0 0 0-.833-.833H6.666a5.833 5.833 0 1 0 0 11.666",clipRule:"evenodd"})]}),ae=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9.99 0a.84.84 0 0 1 .73.42l6.67 11.67c.07.13.11.27.11.42a.84.84 0 0 1-.84.84H3.32a.8.8 0 0 1-.41-.11.8.8 0 0 1-.3-.3.9.9 0 0 1-.11-.42c0-.15.04-.29.11-.42L9.27.42c.07-.13.18-.23.3-.3Q9.765 0 9.99 0M3.72 14.52a.7.7 0 0 0-.32-.14c-.12-.01-.24 0-.35.05s-.2.13-.26.23-.1.22-.1.34v4.17c0 .17.07.32.19.44s.27.18.44.19c.17 0 .32-.07.44-.19s.18-.27.19-.44v-2.83l3.97 3.33c.09.07.2.12.32.14.12.01.24 0 .35-.05a.62.62 0 0 0 .36-.59V15c0-.17-.07-.32-.18-.44a.62.62 0 0 0-.44-.18c-.16 0-.32.07-.44.18s-.18.28-.18.44v2.83l-3.97-3.32zm13.01.4a1.87 1.87 0 0 0-1.32-.54h-3.75c-.17 0-.33.06-.44.18-.12.12-.19.27-.19.44v4.17c0 .16.07.32.18.44.12.12.28.18.45.18.16 0 .32-.06.44-.18a.62.62 0 0 0 .18-.44v-1.05h3.13c.49 0 .97-.19 1.32-.54.35-.36.55-.83.55-1.33s-.2-.97-.55-1.33m-.88 1.77c-.12.12-.28.19-.44.19h-3.13v-1.26h3.13a.631.631 0 0 1 .44 1.07",clipRule:"evenodd"})]}),se=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M18.284 10.883 12.5 16.667v-5.834h5.834zm.05-1.716H12.5a1.667 1.667 0 0 0-1.666 1.666v5.834h-7.5A1.666 1.666 0 0 1 1.667 15V5a1.667 1.667 0 0 1 1.667-1.667h13.333A1.667 1.667 0 0 1 18.334 5z",clipRule:"evenodd"})]}),le=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M17.382 8.465 4.155 1.855a1.716 1.716 0 0 0-2.282 2.332L4.953 10l-3.08 5.804a1.714 1.714 0 0 0 2.282 2.34l13.227-6.61a1.715 1.715 0 0 0 0-3.069",clipRule:"evenodd"})]}),ce=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M18.334 4.167V12.5a1.666 1.666 0 0 1-1.667 1.667H6.959l-3.942 3.15a.833.833 0 0 1-1.35-.65v-12.5A1.667 1.667 0 0 1 3.334 2.5h13.333a1.667 1.667 0 0 1 1.667 1.667",clipRule:"evenodd"})]}),ue=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m18.109 8.5-3.859 2.8 1.475 4.533a1.25 1.25 0 0 1-1.925 1.4l-3.858-2.808-3.867 2.817a1.25 1.25 0 0 1-1.916-1.409l1.475-4.541L1.767 8.5A1.25 1.25 0 0 1 2.5 6.233h4.775L8.75 1.667a1.25 1.25 0 0 1 2.375 0L12.6 6.2h4.775a1.25 1.25 0 0 1 .734 2.3",clipRule:"evenodd"})]}),de=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M10.53 10.53c-.29.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06l7.72-7.72H13c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h6.75V7c0 .41-.34.75-.75.75s-.75-.34-.75-.75V2.81zM3.75 4.67c0-.51.41-.92.92-.92H8c.41 0 .75-.34.75-.75s-.34-.75-.75-.75H4.67c-1.33 0-2.42 1.08-2.42 2.42v10.67c0 1.33 1.08 2.42 2.42 2.42h10.67c1.33 0 2.42-1.08 2.42-2.42v-3.33c0-.41-.34-.75-.75-.75s-.75.34-.75.75v3.33c0 .51-.41.92-.92.92H4.67c-.51 0-.92-.41-.92-.92z"})]}),pe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M5.03 14.47c.29.29.29.77 0 1.06s-.77.29-1.06 0L.44 12l3.53-3.53c.29-.29.77-.29 1.06 0s.29.77 0 1.06l-1.72 1.72H13.5c.41 0 .75.34.75.75s-.34.75-.75.75H3.31zM19.71 5.7l-3.42-3.41a1 1 0 0 0-.71-.29H7.99c-.55 0-1 .45-1 1v6h1.5V3.5h6.5V6c0 .55.45 1 1 1h2.51v9.5h-10V15H7v2c0 .55.45 1 1 1h11c.55 0 1-.45 1-1V6.41c0-.27-.11-.52-.29-.71"})]}),he=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M11.5 15v1.5h-10v-13H8V6c0 .55.45 1 1 1h2.5v2H13V6.41c0-.27-.11-.52-.29-.71L9.29 2.29A1 1 0 0 0 8.58 2H1c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1h11c.55 0 1-.45 1-1v-2zm4.53-6.53a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06l1.72 1.72H6.5c-.41 0-.75.34-.75.75s.34.75.75.75h10.19l-1.72 1.72c-.29.29-.29.77 0 1.06s.77.29 1.06 0L19.56 12z"})]}),fe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14.5 14.5h4v-13h-10v1H7V1a1 1 0 0 1 1-1h11a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4.5zm-3 4h-10v-13H8V8a1 1 0 0 0 1 1h2.5zM0 19V5a1 1 0 0 1 1-1h7.586a1 1 0 0 1 .707.293l3.414 3.414a1 1 0 0 1 .293.707V19a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1M11.5 2.75a.75.75 0 0 0 0 1.5h4a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),me=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m16.256 9.773-1.179 1.179a.833.833 0 0 1-1.178 0l-.59-.59L6.42 17.25a3.2 3.2 0 0 1-1.785.9l-.203.032a2.58 2.58 0 0 0-1.437.725L1.23 17.139c.389-.389.643-.892.725-1.436l.03-.204a3.2 3.2 0 0 1 .902-1.785l6.887-6.887-.589-.59a.833.833 0 0 1 0-1.178l1.179-1.178a.833.833 0 0 1 1.178 0 .833.833 0 0 0 1.179 0l1.768-1.768a2.5 2.5 0 1 1 3.535 3.536l-1.767 1.767a.833.833 0 0 0 0 1.179.833.833 0 0 1 0 1.178Zm-1.061-3.417a2.33 2.33 0 0 0-.403 2.76l-.304.304-3.771-3.771.304-.305a2.33 2.33 0 0 0 2.76-.403l1.767-1.767a1 1 0 0 1 1.415 1.414zM4.209 16.698c-.35.053-.69.15-1.01.29l-.052-.051q.21-.483.29-1.01l.03-.204a1.7 1.7 0 0 1 .48-.948l6.879-6.88L12.24 9.31l-6.88 6.88a1.7 1.7 0 0 1-.948.479l-.203.03Z",clipRule:"evenodd"})]}),ge=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9.25 16a.75.75 0 0 0 1.5 0v-5.25H16a.75.75 0 0 0 0-1.5h-5.25V4a.75.75 0 0 0-1.5 0v5.25H4a.75.75 0 0 0 0 1.5h5.25z",clipRule:"evenodd"})]}),ve=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.25 2.917c0-.875.709-1.584 1.583-1.584h8.334c.874 0 1.583.71 1.583 1.584V4.25h1.75a2.417 2.417 0 0 1 2.416 2.417v6.666A2.417 2.417 0 0 1 17.5 15.75h-1.75v2.583c0 .875-.709 1.584-1.583 1.584H5.833a1.583 1.583 0 0 1-1.583-1.584V15.75H2.5a2.417 2.417 0 0 1-2.417-2.417V6.667A2.417 2.417 0 0 1 2.5 4.25h1.75zM15 5.75H2.5a.917.917 0 0 0-.917.917v6.666c0 .507.41.917.917.917h1.75v-3.417c0-.874.709-1.583 1.583-1.583h8.334c.874 0 1.583.709 1.583 1.583v3.417h1.75c.506 0 .916-.41.916-.917V6.667a.917.917 0 0 0-.916-.917zm-.75-2.833V4.25h-8.5V2.917c0-.046.037-.084.083-.084h8.334c.046 0 .083.038.083.084m0 7.916v7.5a.083.083 0 0 1-.083.084H5.833a.083.083 0 0 1-.083-.084v-7.5c0-.046.037-.083.083-.083h8.334c.046 0 .083.037.083.083m-.5-2.5a.833.833 0 1 0 0-1.666.833.833 0 0 0 0 1.666m-5.417 4.25a.75.75 0 0 0 0 1.5h3.333a.75.75 0 1 0 0-1.5zm0 2.5a.75.75 0 0 0 0 1.5h3.333a.75.75 0 1 0 0-1.5z",clipRule:"evenodd"})]}),ye=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9.09 2.231a.75.75 0 1 1 .987-1.129l3.979 3.481-3.979 3.481a.75.75 0 0 1-.987-1.128l1.948-1.705a5.083 5.083 0 1 0 4.046 4.978.75.75 0 1 1 1.5 0 6.583 6.583 0 1 1-5.856-6.544z",clipRule:"evenodd"})]}),be=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.78 8.5a5.72 5.72 0 1 1 11.44 0 5.72 5.72 0 0 1-11.44 0M8.5 1.22a7.28 7.28 0 1 0 4.59 12.93l3.88 3.88a.75.75 0 0 0 1.06-1.06l-3.88-3.88A7.28 7.28 0 0 0 8.5 1.22",clipRule:"evenodd"})]}),we=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M13.41 10.08c0 1.84-1.49 3.33-3.33 3.33s-3.33-1.49-3.33-3.33 1.49-3.33 3.33-3.33 3.33 1.49 3.33 3.33m-1.5 0a1.83 1.83 0 1 1-3.662-.002 1.83 1.83 0 0 1 3.662.002m5.97-2.12-1.67-.33s-.03-.04-.04-.07a.2.2 0 0 1-.02-.06v-.02l.96-1.42c.41-.63.33-1.47-.2-2l-.8-.8a1.59 1.59 0 0 0-2-.2l-1.42.95h-.02s-.04 0-.07-.01a.2.2 0 0 1-.05-.04c-.01-.01-.01-.02-.01-.02l-.34-1.67C12.05 1.53 11.4 1 10.65 1H9.52c-.76 0-1.41.53-1.56 1.27l-.33 1.67s0 .01-.01.02c-.01 0-.03.03-.06.04-.02.01-.05.01-.06.01h-.02l-1.42-.95c-.63-.42-1.47-.33-2 .2l-.8.8c-.53.53-.62 1.37-.2 2l.95 1.42v.02s0 .04-.01.06c-.01.03-.03.05-.04.06s-.02.01-.02.01l-1.67.33C1.53 8.11 1 8.76 1 9.52v1.13c0 .75.53 1.4 1.27 1.55l1.67.34s.01 0 .02.01c0 .01.03.03.04.05.01.03.01.05.01.07v.02l-.95 1.42c-.42.63-.33 1.46.2 2l.8.8c.54.53 1.37.61 2 .19l1.42-.94h.02s.04 0 .06.01c.03.01.05.02.06.04h.01l.33 1.68c.15.74.8 1.28 1.56 1.28h1.13c.75 0 1.4-.54 1.55-1.28l.34-1.67h.01s.03-.04.05-.05c.03-.01.05-.02.07-.02h.02l1.42.94c.63.42 1.46.34 2-.19l.8-.8c.53-.54.61-1.37.19-2l-.94-1.42v-.02c0-.02 0-.04.02-.07.01-.02.02-.04.04-.05l1.67-.35c.74-.15 1.28-.8 1.28-1.55V9.51c0-.76-.54-1.41-1.28-1.56zm-.22 2.69s-.03.07-.07.08l-1.67.34c-.55.11-.96.5-1.15.96s-.18 1.03.13 1.49l.95 1.42s.01.08-.01.1l-.81.81s-.07.03-.1.01l-1.42-.95c-.46-.31-1.03-.32-1.49-.13s-.85.6-.96 1.15l-.34 1.67s-.04.07-.08.07H9.51s-.08-.03-.09-.07l-.33-1.67c-.11-.55-.51-.96-.96-1.15-.46-.19-1.03-.18-1.5.13l-1.41.95s-.08.01-.11-.01l-.8-.81s-.03-.07-.01-.1l.94-1.42c.32-.46.33-1.03.14-1.49s-.6-.85-1.15-.96l-1.67-.34s-.07-.04-.07-.08V9.52s.03-.08.07-.09l1.67-.33c.55-.11.96-.51 1.15-.96.19-.46.18-1.03-.14-1.5L4.3 5.23s-.02-.08.01-.11l.8-.8s.07-.03.11-.01l1.41.94c.47.32 1.04.33 1.5.14.45-.19.85-.6.96-1.15l.33-1.67s.05-.07.09-.07h1.13s.07.03.08.07l.34 1.67c.11.55.5.96.96 1.15s1.03.18 1.49-.14l1.42-.94s.08-.02.11.01l.8.8s.03.07.01.11l-.95 1.41c-.31.47-.32 1.04-.13 1.5.19.45.6.85 1.15.96l1.67.33s.07.05.07.09z",clipRule:"evenodd"})]}),xe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.417 7.5a5.083 5.083 0 0 1 10.112-.75H8.333c-.874 0-1.583.709-1.583 1.583v4.195A5.084 5.084 0 0 1 2.417 7.5m4.333 6.541a6.584 6.584 0 1 1 7.291-7.29H17.5c.875 0 1.583.708 1.583 1.582V17.5c0 .875-.709 1.583-1.583 1.583H8.333A1.583 1.583 0 0 1 6.75 17.5zm1.5-5.708c0-.046.037-.083.083-.083H17.5c.046 0 .083.037.083.083V17.5a.083.083 0 0 1-.083.083H8.333a.083.083 0 0 1-.083-.083z",clipRule:"evenodd"})]}),Se=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M15.417 6.5a2.75 2.75 0 1 0-2.667-2.077L6.5 8.028a2.75 2.75 0 1 0 0 3.943l6.25 3.606A2.752 2.752 0 0 0 15.417 19a2.75 2.75 0 1 0-1.917-4.722l-6.25-3.605a2.76 2.76 0 0 0 0-1.346l6.25-3.605a2.74 2.74 0 0 0 1.917.778M4.583 8.75c.306 0 .586.11.803.292l.428.742a1.3 1.3 0 0 1 0 .432l-.428.742a1.25 1.25 0 1 1-.803-2.208m12.084-5a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0m0 12.5a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0",clipRule:"evenodd"})]}),_e=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9.07 2.81 4.89 6.83s-.04.02-.06.02h-3c-.87 0-1.58.71-1.58 1.58v2.74c0 .87.71 1.58 1.58 1.58h2.58s.05.01.06.02l4.6 4.42c1.01.96 2.68.25 2.68-1.15V3.96c0-1.4-1.67-2.11-2.68-1.15m1.18 13.23-.01.05c-.01 0-.02.02-.04.03s-.04.01-.05.01-.02-.01-.04-.03l-4.6-4.41c-.29-.28-.69-.44-1.1-.44H1.83s-.08-.04-.08-.08V8.43s.04-.08.08-.08h3c.41 0 .8-.16 1.1-.44l4.18-4.01s.03-.03.04-.03.03 0 .05.01.03.02.04.03c0 0 .01.02.01.05zM13 6c.29-.29.77-.29 1.06 0a6 6 0 0 1 0 8.48c-.29.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06 4.49 4.49 0 0 0 0-6.36A.754.754 0 0 1 13 6m3.83-1.53a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06a6.75 6.75 0 0 1 0 9.55c-.29.29-.29.77 0 1.06s.77.29 1.06 0c3.22-3.22 3.22-8.45 0-11.67",clipRule:"evenodd"})]}),Ce=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10 .25A3.75 3.75 0 0 0 6.25 4v6a3.75 3.75 0 1 0 7.5 0V4A3.75 3.75 0 0 0 10 .25M7.75 4a2.25 2.25 0 0 1 4.5 0v6a2.25 2.25 0 0 1-4.5 0zm-3 3a.75.75 0 0 0-1.5 0v3a6.75 6.75 0 0 0 6 6.709v1.541H7a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5h-2.25v-1.541a6.75 6.75 0 0 0 6-6.709V7a.75.75 0 0 0-1.5 0v3a5.25 5.25 0 1 1-10.5 0z",clipRule:"evenodd"})]}),Ee=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M10.693.962a.75.75 0 0 0-1.385 0L7.059 6.368l-5.837.468a.75.75 0 0 0-.428 1.318l4.447 3.809-1.358 5.696a.75.75 0 0 0 1.12.814L10 15.42l4.997 3.052a.75.75 0 0 0 1.12-.814l-1.358-5.696 4.447-3.81a.75.75 0 0 0-.428-1.317l-5.836-.468-2.25-5.406Z"})]}),ke=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10 .5a.75.75 0 0 1 .693.462l2.248 5.406 5.837.468a.75.75 0 0 1 .428 1.318l-4.447 3.809 1.359 5.696a.75.75 0 0 1-1.12.814L10 15.42l-4.997 3.052a.75.75 0 0 1-1.12-.814l1.358-5.696-4.447-3.81a.75.75 0 0 1 .428-1.317l5.837-.468L9.308.962A.75.75 0 0 1 10 .5m0 2.703L8.268 7.367a.75.75 0 0 1-.632.46l-4.496.36 3.425 2.935a.75.75 0 0 1 .242.743L5.76 16.253l3.85-2.351a.75.75 0 0 1 .781 0l3.85 2.35-1.047-4.387a.75.75 0 0 1 .241-.743l3.426-2.934-4.496-.36a.75.75 0 0 1-.633-.46z",clipRule:"evenodd"})]}),ze=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14.842 15.206c.6-.6.621-1.559.063-2.183l3.232-3.232c.95-.95.95-2.49 0-3.44L12.255.47a.75.75 0 0 0-1.25.32v.002l-.003.006-.008.03a15 15 0 0 1-.194.582c-.14.394-.351.947-.634 1.57-.48 1.06-1.15 2.287-2.004 3.303a1.59 1.59 0 0 0-2.158.084l-.932.932a1.59 1.59 0 0 0 0 2.25l1.767 1.768a.09.09 0 0 1-.015.14L2.893 13.96a3.156 3.156 0 1 0 4.357 4.358l2.502-3.93a.09.09 0 0 1 .14-.016l1.769 1.767a1.59 1.59 0 0 0 2.25 0l.931-.932ZM7.66 7.894l-.01-.01-.456-.456a.09.09 0 0 0-.129 0l-.932.932a.09.09 0 0 0 0 .129L7.9 10.256a1.59 1.59 0 0 1-.271 2.467l-3.931 2.502a1.656 1.656 0 1 0 2.287 2.287l2.501-3.931a1.59 1.59 0 0 1 2.468-.27l1.767 1.767a.09.09 0 0 0 .129 0l.932-.932a.09.09 0 0 0 0-.129l-.456-.455-.01-.01zM11.532 3.6c-.519 1.144-1.28 2.555-2.303 3.743l4.617 4.617 3.23-3.23a.93.93 0 0 0 0-1.318l-.402-.402-1.945 1.945a.75.75 0 1 1-1.06-1.06c.732-.733 1.025-1.48 1.14-2.03a3 3 0 0 0 .072-.648l-2.84-2.84c-.135.355-.304.771-.51 1.223ZM5.183 16.026a.75.75 0 1 0-1.06 1.06.75.75 0 0 0 1.06-1.06",clipRule:"evenodd"})]}),Pe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M1.75 3.75A.75.75 0 0 1 2.5 3h15a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1-.75-.75m2.5 4.167a.75.75 0 0 1 .75-.75h10a.75.75 0 0 1 0 1.5H5a.75.75 0 0 1-.75-.75m-2.5 4.166a.75.75 0 0 1 .75-.75h15a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1-.75-.75m2.5 4.167A.75.75 0 0 1 5 15.5h10a.75.75 0 0 1 0 1.5H5a.75.75 0 0 1-.75-.75",clipRule:"evenodd"})]}),Ae=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M1.75 3.75A.75.75 0 0 1 2.5 3h15a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1-.75-.75m0 4.167a.75.75 0 0 1 .75-.75h15a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1-.75-.75m0 4.166a.75.75 0 0 1 .75-.75h15a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1-.75-.75m0 4.167a.75.75 0 0 1 .75-.75h15a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1-.75-.75",clipRule:"evenodd"})]}),De=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M2.5 3c-.41 0-.75.34-.75.75s.34.75.75.75h15c.41 0 .75-.34.75-.75S17.91 3 17.5 3zm0 4.17c-.41 0-.75.34-.75.75s.34.75.75.75h10c.41 0 .75-.34.75-.75s-.34-.75-.75-.75zm-.75 4.91c0-.41.34-.75.75-.75h15c.41 0 .75.34.75.75s-.34.75-.75.75h-15c-.41 0-.75-.34-.75-.75m.75 3.42c-.41 0-.75.34-.75.75s.34.75.75.75h10c.41 0 .75-.34.75-.75s-.34-.75-.75-.75z"})]}),Te=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M1.75 3.75A.75.75 0 0 1 2.5 3h15a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1-.75-.75m5 4.167a.75.75 0 0 1 .75-.75h10a.75.75 0 0 1 0 1.5h-10a.75.75 0 0 1-.75-.75m-5 4.166a.75.75 0 0 1 .75-.75h15a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1-.75-.75m5 4.167a.75.75 0 0 1 .75-.75h10a.75.75 0 0 1 0 1.5h-10a.75.75 0 0 1-.75-.75",clipRule:"evenodd"})]}),Ie=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.25 4A.75.75 0 0 1 5 3.25h10a.75.75 0 0 1 0 1.5h-4.25V15a.75.75 0 0 1-1.5 0V4.75H5A.75.75 0 0 1 4.25 4",clipRule:"evenodd"})]}),Me=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.167 3.417a.75.75 0 0 0-.75.75v4.166c0 .415.336.75.75.75h4.167a.75.75 0 0 0 .75-.75V4.167a.75.75 0 0 0-.75-.75zm.75 4.166V4.917h2.667v2.666zm-.75 3.334a.75.75 0 0 0-.75.75v4.166c0 .414.336.75.75.75h4.167a.75.75 0 0 0 .75-.75v-4.166a.75.75 0 0 0-.75-.75zm.75 4.166v-2.666h2.667v2.666zm6-3.416a.75.75 0 0 1 .75-.75h4.167a.75.75 0 0 1 .75.75v4.166a.75.75 0 0 1-.75.75h-4.167a.75.75 0 0 1-.75-.75zm1.5.75v2.666h2.667v-2.666zm-.75-9a.75.75 0 0 0-.75.75v4.166c0 .415.336.75.75.75h4.167a.75.75 0 0 0 .75-.75V4.167a.75.75 0 0 0-.75-.75zm.75 4.166V4.917h2.667v2.666z",clipRule:"evenodd"})]}),Ne=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M11.75.98h2.74l-.02.01c2.22 0 3.32 1.29 3.4 2.49.02.24-.01.46-.07.67.15.11.3.25.42.41.48.62.59 1.49.29 2.22q-.06.165-.15.3c.08.07.15.15.22.24.47.62.58 1.48.28 2.2q-.15.345-.39.6c.3.42.43.95.35 1.52a2.123 2.123 0 0 1-2.14 1.85H13.7c-.13 0-.19.07-.22.11l-.003.005a.28.28 0 0 0-.017.245l1.43 3.48c.34 1.06-.24 2.21-1.28 2.56-.96.33-2.03-.1-2.48-1.01-1.37-2.73-2.67-4.32-3.71-5.59q-.227-.277-.44-.54H4c-.52 0-.959-.24-1.296-.559-.333-.316-.598-.738-.804-1.202-.414-.93-.65-2.164-.65-3.49 0-1.325.236-2.559.65-3.49.206-.463.472-.885.804-1.201.337-.32.777-.559 1.296-.559h3.5q.1.001.193.026C8.806 1.455 10.2.979 11.75.979Zm-5.5 2.77c-.787 1.115-1.24 2.503-1.24 4.04 0 1.477.339 2.515.897 3.46H4c-.034 0-.121-.013-.263-.147-.146-.139-.311-.374-.467-.723-.31-.697-.52-1.713-.52-2.88 0-1.168.21-2.184.52-2.88.156-.35.321-.586.467-.724.142-.134.23-.147.263-.147h2.25Zm6.68 14.75a.54.54 0 0 1-.47-.29c-1.44-2.88-2.8-4.54-3.89-5.87C7.23 10.71 6.5 9.81 6.5 7.79c0-2.57 1.84-5.31 5.24-5.31h2.74c1.34 0 1.87.66 1.9 1.1 0 .08 0 .21-.09.22-.41.06-.7.44-.64.85s.44.7.85.64q.36-.045.54.18c.15.19.19.5.09.73-.08.2-.24.3-.5.34-.38.05-.66.37-.66.74v.1c.05.41.42.71.84.65.25-.03.44.03.56.2.15.19.18.49.09.71-.08.19-.24.3-.5.33-.35.04-.62.33-.65.68s.19.68.53.78c.5.15.5.54.48.69-.04.26-.23.57-.65.57h-2.98c-.59 0-1.14.28-1.47.77s-.39 1.11-.16 1.66l1.41 3.42c.07.22-.09.53-.37.63a.6.6 0 0 1-.17.03",clipRule:"evenodd"})]}),Oe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"#000",fillRule:"evenodd",d:"M11.75 19.02h2.74l-.02-.01c2.22 0 3.32-1.29 3.4-2.49.02-.24-.01-.46-.07-.67.15-.11.3-.25.42-.41.48-.62.59-1.49.29-2.22q-.06-.165-.15-.3c.08-.07.15-.15.22-.24.47-.62.58-1.48.28-2.2q-.15-.345-.39-.6c.3-.42.43-.95.35-1.52a2.123 2.123 0 0 0-2.14-1.85H13.7c-.13 0-.19-.07-.22-.11l-.003-.004c-.021-.043-.065-.13-.017-.245l1.43-3.48c.34-1.06-.24-2.21-1.28-2.56-.96-.33-2.03.1-2.48 1.01-1.37 2.73-2.67 4.32-3.71 5.59l-.44.54H4c-.52 0-.959.238-1.296.558-.333.316-.598.738-.804 1.202-.414.93-.65 2.164-.65 3.49 0 1.325.236 2.559.65 3.49.206.463.472.885.804 1.201.337.32.777.558 1.296.558h3.5a.8.8 0 0 0 .193-.025c1.113.82 2.507 1.295 4.057 1.295m-5.5-2.77c-.787-1.115-1.24-2.503-1.24-4.04 0-1.477.339-2.515.897-3.46H4c-.034 0-.121.013-.263.147-.146.139-.311.374-.467.723-.31.697-.52 1.713-.52 2.88 0 1.168.21 2.184.52 2.88.156.35.321.586.467.724.142.134.23.146.263.146zM12.93 1.5a.54.54 0 0 0-.47.29c-1.44 2.88-2.8 4.54-3.89 5.87-1.34 1.63-2.07 2.53-2.07 4.55 0 2.57 1.84 5.31 5.24 5.31h2.74c1.34 0 1.87-.66 1.9-1.1 0-.08 0-.21-.09-.22a.754.754 0 0 1-.64-.85c.06-.41.44-.7.85-.64q.36.045.54-.18c.15-.19.19-.5.09-.73-.08-.2-.24-.3-.5-.34a.75.75 0 0 1-.66-.74v-.1a.74.74 0 0 1 .84-.65c.25.03.44-.03.56-.2.15-.19.18-.49.09-.71-.08-.19-.24-.3-.5-.33a.746.746 0 0 1-.65-.68c-.03-.35.19-.68.53-.78.5-.15.5-.54.48-.69-.04-.26-.23-.57-.65-.57h-2.98c-.59 0-1.14-.28-1.47-.77s-.39-1.11-.16-1.66l1.41-3.42c.07-.22-.09-.53-.37-.63a.6.6 0 0 0-.17-.03",clipRule:"evenodd"})]}),Re=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8.25 3.5a1.75 1.75 0 1 1 3.5 0v.25h-3.5zm5 0a3.25 3.25 0 0 0-6.5 0v.25H2a.75.75 0 0 0 0 1.5h1.25v12.083a2.417 2.417 0 0 0 2.417 2.417h8.666a2.417 2.417 0 0 0 2.417-2.417V5.25H18a.75.75 0 0 0 0-1.5h-4.75zm-8.5 13.833V5.25h10.5v12.083c0 .507-.41.917-.917.917H5.667a.917.917 0 0 1-.917-.917m6-9.333a.75.75 0 0 0-1.5 0v7a.75.75 0 0 0 1.5 0zM7 7.25a.75.75 0 0 1 .75.75v7a.75.75 0 0 1-1.5 0V8A.75.75 0 0 1 7 7.25m6.75.75a.75.75 0 0 0-1.5 0v7a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"})]}),je=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M17.75 1c0-.41-.34-.75-.75-.75s-.75.34-.75.75v18c0 .41.34.75.75.75s.75-.34.75-.75zM3 3.25c-.41 0-.75.34-.75.75s.34.75.75.75h4.25V15c0 .41.34.75.75.75s.75-.34.75-.75V4.75H13c.41 0 .75-.34.75-.75s-.34-.75-.75-.75z"})]}),Fe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6.75 4a.75.75 0 0 0-1.5 0v7a4.75 4.75 0 1 0 9.5 0V4a.75.75 0 0 0-1.5 0v7a3.25 3.25 0 0 1-6.5 0zM3 17.25a.75.75 0 0 0 0 1.5h14a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),Be=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.75 13a.75.75 0 0 1-1.5 0V4.844L7.537 6.6a.75.75 0 1 1-1.074-1.047L10 1.926l3.537 3.627a.75.75 0 1 1-1.074 1.048L10.75 4.844zm-8 0a.75.75 0 0 0-1.5 0v3c0 .966.784 1.75 1.75 1.75h14A1.75 1.75 0 0 0 18.75 16v-3a.75.75 0 0 0-1.5 0v3a.25.25 0 0 1-.25.25H3a.25.25 0 0 1-.25-.25z",clipRule:"evenodd"})]}),Le=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M19.529 14.966 12 2.42l-.932.56.932-.56c-.905-1.51-3.094-1.51-4 0L.471 14.966c-.933 1.555.187 3.534 2 3.534h15.057c1.814 0 2.934-1.979 2-3.534ZM10 6.25a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-1.5 0V7a.75.75 0 0 1 .75-.75m0 9.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5",clipRule:"evenodd"})]}),Ve=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m12.001 2.42 7.528 12.546c.933 1.555-.187 3.534-2.001 3.534H2.472C.658 18.5-.462 16.521.47 14.966L7.999 2.42c.907-1.51 3.096-1.51 4.002 0l-1.276.766zM1.757 15.737 9.286 3.19a.833.833 0 0 1 1.429 0l7.528 12.547A.833.833 0 0 1 17.528 17H2.472a.833.833 0 0 1-.715-1.262ZM10 6.25a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-1.5 0V7a.75.75 0 0 1 .75-.75m-1.25 8a1.25 1.25 0 1 0 2.5 0 1.25 1.25 0 0 0-2.5 0",clipRule:"evenodd"})]}),Ke=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10 20c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10M7.53 6.47a.75.75 0 0 0-1.06 1.06L8.94 10l-2.47 2.47a.75.75 0 1 0 1.06 1.06L10 11.06l2.47 2.47a.75.75 0 0 0 1.06-1.06L11.06 10l2.47-2.47a.75.75 0 0 0-1.06-1.06L10 8.94z",clipRule:"evenodd"})]}),He=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M18.5 10a8.5 8.5 0 1 1-17 0 8.5 8.5 0 0 1 17 0m1.5 0c0 5.523-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0s10 4.477 10 10M7.53 6.47a.75.75 0 1 0-1.06 1.06L8.94 10l-2.47 2.47a.75.75 0 0 0 1.06 1.06L10 11.06l2.47 2.47a.75.75 0 0 0 1.06-1.06L11.06 10l2.47-2.47a.75.75 0 1 0-1.06-1.06L10 8.94z",clipRule:"evenodd"})]}),$e=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 20 20","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M17.008 3.22a.75.75 0 0 1 0 1.06l-5.833 5.834 5.833 5.834a.75.75 0 0 1-1.06 1.06l-5.834-5.833-5.834 5.833a.75.75 0 0 1-1.06-1.06l5.833-5.834L3.22 4.28a.75.75 0 0 1 1.06-1.06l5.834 5.833 5.834-5.833a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})]});t.A6=o,t.m$=a,t.Xx=s,t.$o=c,t.S$=u,t.eC=p,t.JJ=h,t._9=m,t.Nr=v,t.Tw=w,t.h5=_,t.s3=C,t.qU=k,t.bL=A,t._x=O,t.fR=R,t.xf=L,t.S_=V,t.yO=H,t.qY=$,t.QG=G,t.gb=de,t.c1=ge,t.WI=be,t.N$=Ie,t.uc=Re,t.qp=Fe,t.AK=Le,t.Op=Ke,t.uv=$e},35295:(e,t,n)=>{"use strict";var r=n(74848),o=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12.75 8c0-.41-.34-.75-.75-.75s-.75.34-.75.75v2.25H9c-.41 0-.75.34-.75.75s.34.75.75.75h2.25V14c0 .41.34.75.75.75s.75-.34.75-.75v-2.25H15c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-2.25zM19 3.25H5C3.48 3.25 2.25 4.48 2.25 6v10c0 1.52 1.23 2.75 2.75 2.75h3.47c.4 0 .78.19 1.02.52l1.16 1.63c.66.92 2.01.98 2.75.12l1.57-1.83c.24-.28.59-.44.95-.44H19c1.52 0 2.75-1.23 2.75-2.75V6c0-1.52-1.23-2.75-2.75-2.75M20.25 16c0 .69-.56 1.25-1.25 1.25h-3.08c-.8 0-1.57.35-2.09.96l-1.57 1.83c-.1.13-.3.12-.39 0l-1.16-1.63a2.76 2.76 0 0 0-2.24-1.15H5c-.69 0-1.25-.56-1.25-1.25V6c0-.69.56-1.25 1.25-1.25h14c.69 0 1.25.56 1.25 1.25z"})]}),i=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M9.75 7c0-.41-.34-.75-.75-.75s-.75.34-.75.75v2.25H6c-.41 0-.75.34-.75.75s.34.75.75.75h2.25V13c0 .41.34.75.75.75s.75-.34.75-.75v-2.25H12c.41 0 .75-.34.75-.75s-.34-.75-.75-.75H9.75zM19 3.25H5C3.48 3.25 2.25 4.48 2.25 6v12c0 1.52 1.23 2.75 2.75 2.75h9.17a2.79 2.79 0 0 0 1.87-.73l4.98-4.98s.08-.09.12-.14c.39-.49.61-1.1.61-1.73V6c0-1.52-1.23-2.75-2.75-2.75m1.25 10H16c-.97 0-1.75.78-1.75 1.75v4.25H5c-.69 0-1.25-.56-1.25-1.25V6c0-.69.56-1.25 1.25-1.25h14c.69 0 1.25.56 1.25 1.25z"})]}),a=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M4 4.25c-.41 0-.75.34-.75.75v2.73c0 .41.34.75.75.75s.75-.34.75-.75V5.75h5.5v13.5H8.2c-.41 0-.75.34-.75.75s.34.75.75.75h5.6c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-2.05V5.75h5.5v1.98c0 .41.34.75.75.75s.75-.34.75-.75V5c0-.41-.34-.75-.75-.75zM20.75 17c0-.41-.34-.75-.75-.75s-.75.34-.75.75v2.25H17c-.41 0-.75.34-.75.75s.34.75.75.75h2.25V23c0 .41.34.75.75.75s.75-.34.75-.75v-2.25H23c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-2.25z"})]}),s=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M23 11.25c-5.66 0-10.25-4.59-10.25-10.25 0-.41-.34-.75-.75-.75s-.75.34-.75.75c0 5.66-4.59 10.25-10.25 10.25-.41 0-.75.34-.75.75s.34.75.75.75c5.66 0 10.25 4.59 10.25 10.25 0 .41.34.75.75.75s.75-.34.75-.75c0-5.66 4.59-10.25 10.25-10.25.41 0 .75-.34.75-.75s-.34-.75-.75-.75m-11 7.61C10.81 15.7 8.3 13.19 5.14 12 8.3 10.81 10.81 8.3 12 5.14c1.19 3.16 3.7 5.67 6.86 6.86-3.16 1.19-5.67 3.7-6.86 6.86",clipRule:"evenodd"})]}),l=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8.61 3.95a1.75 1.75 0 0 1 1.692-2.2H11.4c.646 0 1.24.356 1.544.926l3.435 6.442a.25.25 0 0 0 .221.132H21a2.75 2.75 0 1 1 0 5.5h-4.4a.25.25 0 0 0-.22.132l-3.436 6.441a1.75 1.75 0 0 1-1.544.927h-1.098a1.75 1.75 0 0 1-1.691-2.2l1.353-5.074a.25.25 0 0 0-.224-.314L4.675 14.3a.25.25 0 0 0-.25.157l-.477 1.193a1.75 1.75 0 0 1-1.625 1.1H2A1.75 1.75 0 0 1 .25 15V9c0-.966.784-1.75 1.75-1.75h.323a1.75 1.75 0 0 1 1.625 1.1l.477 1.193a.25.25 0 0 0 .25.157l5.065-.362a.25.25 0 0 0 .224-.314L8.61 3.951Zm1.692-.7a.25.25 0 0 0-.242.314l1.353 5.074a1.75 1.75 0 0 1-1.566 2.196l-5.065.362a1.75 1.75 0 0 1-1.75-1.096l-.477-1.193a.25.25 0 0 0-.232-.157H2a.25.25 0 0 0-.25.25v6c0 .138.112.25.25.25h.323a.25.25 0 0 0 .232-.157l.477-1.193a1.75 1.75 0 0 1 1.75-1.096l5.065.362a1.75 1.75 0 0 1 1.566 2.196l-1.353 5.074a.25.25 0 0 0 .242.314H11.4a.25.25 0 0 0 .22-.132l3.436-6.441a1.75 1.75 0 0 1 1.544-.927H21a1.25 1.25 0 1 0 0-2.5h-4.4a1.75 1.75 0 0 1-1.544-.926L11.62 3.382a.25.25 0 0 0-.221-.132h-1.098Z",clipRule:"evenodd"})]}),c=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M11.25 4a.75.75 0 0 1 1.5 0v10.156l1.713-1.757a.75.75 0 1 1 1.074 1.048L12 17.074l-3.537-3.627A.75.75 0 0 1 9.537 12.4l1.713 1.756zm9.25 16.25a.75.75 0 0 0 0-1.5h-17a.75.75 0 0 0 0 1.5z",clipRule:"evenodd"})]}),u=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12 2.25c.41 0 .75.34.75.75v17c0 .41-.34.75-.75.75s-.75-.34-.75-.75V3c0-.41.34-.75.75-.75m7.53 6.22c.29.29.29.77 0 1.06l-1.22 1.22H23c.41 0 .75.34.75.75s-.34.75-.75.75h-4.69l1.22 1.22c.29.29.29.77 0 1.06s-.77.29-1.06 0l-3.03-3.03 3.03-3.03c.29-.29.77-.29 1.06 0M4.47 9.53a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l3.03 3.03-3.03 3.03c-.29.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06l1.22-1.22H1c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h4.69z"})]}),d=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8.97 5.47a.75.75 0 0 1 1.06 0l1.22 1.22V2a.75.75 0 0 1 1.5 0v4.69l1.22-1.22a.75.75 0 1 1 1.06 1.06L12 9.56 8.97 6.53a.75.75 0 0 1 0-1.06M2.75 12a.75.75 0 0 1 .75-.75h17a.75.75 0 0 1 0 1.5h-17a.75.75 0 0 1-.75-.75m7.28 6.53a.75.75 0 1 1-1.06-1.06L12 14.44l3.03 3.03a.75.75 0 1 1-1.06 1.06l-1.22-1.22V22a.75.75 0 0 1-1.5 0v-4.69z",clipRule:"evenodd"})]}),p=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.5 3.75a.75.75 0 0 0 0 1.5h17a.75.75 0 0 0 0-1.5zM12.75 20a.75.75 0 0 1-1.5 0V9.844L9.537 11.6a.75.75 0 1 1-1.074-1.048L12 6.926l3.537 3.627a.75.75 0 1 1-1.074 1.047L12.75 9.845z",clipRule:"evenodd"})]}),h=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14.12 1.101c1.65-1.16 3.95-.48 4.72 1.38l2.11 5.11h1.56c.5 0 .9.4.9.9s-.4.9-.9.9H1.5c-.5 0-.9-.4-.9-.9s.4-.9.9-.9h1.56l2.11-5.11c.76-1.86 3.06-2.53 4.71-1.38l1.17.82c.57.4 1.32.4 1.89 0l1.17-.82zm3.33 1.96 1.87 4.54H4.68l1.87-4.54c.4-.98 1.61-1.33 2.47-.72l1.17.82c1.08.76 2.53.76 3.61 0l1.17-.82c.87-.61 2.07-.25 2.47.72zm-13.7 7.69h16.5v1c0 2.21-1.79 4-4 4-2.04 0-3.72-1.53-3.97-3.5h-.56a4.01 4.01 0 0 1-3.97 3.5c-2.21 0-4-1.79-4-4zm1.55 1.5a2.5 2.5 0 0 0 4.9 0zm8.5 0a2.5 2.5 0 0 0 4.9 0zm-11.8 5a.76.76 0 0 0-.67.41c-.13.25-.11.55.06.78l2.03 2.84-1.8 1.08c-.36.21-.47.67-.26 1.03s.67.47 1.03.26l2.5-1.5c.18-.11.31-.29.35-.49s0-.42-.12-.59l-1.65-2.31h7.79v4.25c0 .41.34.75.75.75s.75-.34.75-.75v-4.25h7.79l-1.65 2.31c-.12.17-.17.38-.12.59.04.2.17.38.35.49l2.5 1.5c.36.21.82.1 1.03-.26s.1-.82-.26-1.03l-1.8-1.08 2.03-2.84c.16-.23.19-.53.06-.78a.76.76 0 0 0-.67-.41z",clipRule:"evenodd"})]}),f=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M19.53 11.47a.75.75 0 0 0-1.06 0l-6.22 6.22V4.5a.75.75 0 0 0-1.5 0v13.19l-6.22-6.22a.75.75 0 0 0-1.06 1.06l8.03 8.03 8.03-8.03a.75.75 0 0 0 0-1.06",clipRule:"evenodd"})]}),m=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M15.25 2a.75.75 0 0 1 .75-.75h6a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0V3.81L2.53 22.53a.75.75 0 0 1-1.06-1.06L20.19 2.75H16a.75.75 0 0 1-.75-.75",clipRule:"evenodd"})]}),g=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12.03 3.97a.75.75 0 0 1 0 1.06l-6.22 6.22H19a.75.75 0 0 1 0 1.5H5.81l6.22 6.22a.75.75 0 1 1-1.06 1.06L2.94 12l8.03-8.03a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})]}),v=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.97 3.97a.75.75 0 0 1 1.06 0L20.06 12l-8.03 8.03a.75.75 0 1 1-1.06-1.06l6.22-6.22H4a.75.75 0 0 1 0-1.5h13.19l-6.22-6.22a.75.75 0 0 1 0-1.06",clipRule:"evenodd"})]}),y=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.47 12.53a.75.75 0 0 0 1.06 0l6.22-6.22V19.5a.75.75 0 0 0 1.5 0V6.31l6.22 6.22a.75.75 0 1 0 1.06-1.06L11.5 3.44l-8.03 8.03a.75.75 0 0 0 0 1.06",clipRule:"evenodd"})]}),b=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 .45C5.62.45.45 5.62.45 12S5.62 23.55 12 23.55h6c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-6c-5.55 0-10.05-4.5-10.05-10.05S6.45 1.95 12 1.95h1.64a8.41 8.41 0 0 1 8.41 8.41v3.74c0 1.41-1.14 2.55-2.55 2.55s-2.55-1.14-2.55-2.55V6c0-.41-.34-.75-.75-.75s-.75.34-.75.75v1.43a5.25 5.25 0 0 0-9 3.67v1.8a5.25 5.25 0 0 0 9.48 3.11 4.06 4.06 0 0 0 3.57 2.14c2.24 0 4.05-1.81 4.05-4.05v-3.74c0-5.47-4.44-9.91-9.91-9.91zm3.45 12.45v-1.8c0-2.07-1.68-3.75-3.75-3.75S7.95 9.03 7.95 11.1v1.8c0 2.07 1.68 3.75 3.75 3.75s3.75-1.68 3.75-3.75",clipRule:"evenodd"})]}),w=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M17.98 4.399a2.25 2.25 0 0 0-3.181 0l-8.84 8.838a3.75 3.75 0 1 0 5.304 5.304l6.717-6.718a.75.75 0 0 1 1.061 1.06l-6.717 6.718a5.25 5.25 0 1 1-7.425-7.424l8.839-8.84a3.75 3.75 0 0 1 5.303 5.304l-8.839 8.84a2.25 2.25 0 1 1-3.182-3.183l6.718-6.717a.75.75 0 1 1 1.06 1.06L8.082 15.36a.75.75 0 1 0 1.06 1.06l8.84-8.838a2.25 2.25 0 0 0 0-3.182Z",clipRule:"evenodd"})]}),x=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12m3-15a3 3 0 1 1-6 0 3 3 0 1 1 6 0m-9 7.5c0-1.995 3.998-3 6-3s6 1.005 6 3V18H6z",clipRule:"evenodd"})]}),S=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 12a3 3 0 1 0 0-6 3 3 0 1 0 0 6m0 1.5c-2.002 0-6 1.005-6 3V18h12v-1.5c0-1.995-3.998-3-6-3",clipRule:"evenodd"})]}),_=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.5 3.5v12H7V8a1 1 0 0 1 1-1h7.5V3.5zM3 17h4v4a1 1 0 0 0 1 1h13a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1h-4V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1m17.5-8.5H17V16a1 1 0 0 1-1 1H8.5v3.5h12zm-5 1.94V8.5h-1.94zm0 2.06-.03.03-4-4 .03-.03H9.56l5.94 5.94zm-1.06 3L8.5 9.56v1.94l.03-.03 4 4-.03.03zm-4 0L8.5 13.56v1.94z",clipRule:"evenodd"})]}),C=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M6 18.74c0 .696.564 1.26 1.26 1.26h5.79c3.321 0 5.357-1.586 5.357-4.221 0-1.8-1.028-3.172-2.871-3.579 1.543-.579 2.293-1.693 2.293-3.321C17.829 6.543 16.093 5 13.22 5H7.26A1.26 1.26 0 0 0 6 6.26zm3.6-7.89V8h2.807c1.136 0 1.757.557 1.757 1.393 0 .921-.685 1.457-1.693 1.457zm0 6.15v-3.15h3.171c1.286 0 1.993.6 1.993 1.564 0 1.029-.793 1.586-1.928 1.586z"})]}),E=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M9 1.25A2.75 2.75 0 0 0 6.25 4v18a.75.75 0 0 0 1.296.515L12 17.793l4.454 4.722A.75.75 0 0 0 17.75 22V4A2.75 2.75 0 0 0 15 1.25z"})]}),k=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9 2.75c-.69 0-1.25.56-1.25 1.25v16.112l3.704-3.927a.75.75 0 0 1 1.091 0l3.705 3.927V4c0-.69-.56-1.25-1.25-1.25zM6.25 4A2.75 2.75 0 0 1 9 1.25h6A2.75 2.75 0 0 1 17.75 4v18a.75.75 0 0 1-1.296.515L12 17.793l-4.454 4.722A.75.75 0 0 1 6.25 22z",clipRule:"evenodd"})]}),z=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.5 14.5v-11h11v11zM2 3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1zm13 14.5a2.5 2.5 0 0 0 2.5-2.5V8H21a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-3.5z",clipRule:"evenodd"})]}),P=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M1 3a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2zm8-1h6v6H9zM8 8V2H3a1 1 0 0 0-1 1v5zM2 9v6h6V9zm7 0h6v6H9zm7 0v6h6V9zm6-1V3a1 1 0 0 0-1-1h-5v6zM9 16h6v5H9zm-7 5v-5h6v5zm20-5h-6v5h6z",clipRule:"evenodd"})]}),A=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M4.5 6.5C5.33 6.5 6 5.83 6 5s-.67-1.5-1.5-1.5S3 4.17 3 5s.67 1.5 1.5 1.5m5-2.25c-.41 0-.75.34-.75.75s.34.75.75.75h11c.41 0 .75-.34.75-.75s-.34-.75-.75-.75zm0 7c-.41 0-.75.34-.75.75s.34.75.75.75h11c.41 0 .75-.34.75-.75s-.34-.75-.75-.75zM8.75 19c0-.41.34-.75.75-.75h11c.41 0 .75.34.75.75s-.34.75-.75.75h-11c-.41 0-.75-.34-.75-.75M6 12c0 .83-.67 1.5-1.5 1.5S3 12.83 3 12s.67-1.5 1.5-1.5S6 11.17 6 12m-1.5 8.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5S3 18.17 3 19s.67 1.5 1.5 1.5"})]}),D=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 5.25a.75.75 0 0 1 .75.75v8a.75.75 0 0 1-1.5 0V6A.75.75 0 0 1 2 5.25m8 0a.75.75 0 0 1 .75.75v8a.75.75 0 0 1-1.5 0V6a.75.75 0 0 1 .75-.75m8.75.75a.75.75 0 0 0-1.5 0v8a.75.75 0 0 0 1.5 0zM6 9.25a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-1.5 0v-4A.75.75 0 0 1 6 9.25m8.75.75a.75.75 0 0 0-1.5 0v4a.75.75 0 0 0 1.5 0zM22 9.25a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-1.5 0v-4a.75.75 0 0 1 .75-.75M15.584 21H8.416a.2.2 0 0 1-.156-.325l3.584-4.48a.2.2 0 0 1 .312 0l3.584 4.48a.2.2 0 0 1-.156.325",clipRule:"evenodd"})]}),T=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M5.5 8H4V4h4v1.5H5.5zM16 5.5V4h4v4h-1.5V5.5zM4 16h1.5v2.5H8V20H4zm13.5-1.75c.41 0 .75.34.75.75v1.75H20c.41 0 .75.34.75.75s-.34.75-.75.75h-1.75V20c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-1.75H15c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h1.75V15c0-.41.34-.75.75-.75m0-2.75c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.68 6-6-2.69-6-6-6m0 10.5c-2.49 0-4.5-2.01-4.5-4.5s2.01-4.5 4.5-4.5a4.5 4.5 0 0 1 0 9"})]}),I=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M18.53 8.22a.75.75 0 0 0-1.06 0L12 13.69 6.53 8.22a.75.75 0 0 0-1.06 1.06l6 6a.75.75 0 0 0 1.06 0l6-6a.75.75 0 0 0 0-1.06",clipRule:"evenodd"})]}),M=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M11.5 4.75a.25.25 0 0 0-.25.25v5a6.75 6.75 0 0 1-6.75 6.75H2a.25.25 0 0 0-.25.25v1c0 .138.112.25.25.25h20a.25.25 0 0 0 .25-.25v-1a.25.25 0 0 0-.25-.25h-2.5A6.75 6.75 0 0 1 12.75 10V5a.25.25 0 0 0-.25-.25zM9.75 5c0-.966.784-1.75 1.75-1.75h1c.966 0 1.75.784 1.75 1.75v5c0 2.9 2.35 5.25 5.25 5.25H22c.966 0 1.75.784 1.75 1.75v1A1.75 1.75 0 0 1 22 19.75H2A1.75 1.75 0 0 1 .25 18v-1c0-.966.784-1.75 1.75-1.75h2.5c2.9 0 5.25-2.35 5.25-5.25z",clipRule:"evenodd"})]}),N=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M15.53 18.53a.75.75 0 0 0 0-1.06L10.06 12l5.47-5.47a.75.75 0 0 0-1.06-1.06l-6 6a.75.75 0 0 0 0 1.06l6 6a.75.75 0 0 0 1.06 0",clipRule:"evenodd"})]}),O=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8.47 5.47a.75.75 0 0 0 0 1.06L13.94 12l-5.47 5.47a.75.75 0 1 0 1.06 1.06l6-6a.75.75 0 0 0 0-1.06l-6-6a.75.75 0 0 0-1.06 0",clipRule:"evenodd"})]}),R=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5.47 15.28a.75.75 0 0 0 1.06 0L12 9.81l5.47 5.47a.75.75 0 1 0 1.06-1.06l-6-6a.75.75 0 0 0-1.06 0l-6 6a.75.75 0 0 0 0 1.06",clipRule:"evenodd"})]}),j=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11m5.07-13.512a.75.75 0 0 0-1.14-.976l-5.422 6.326-1.932-2.318a.75.75 0 0 0-1.152.96l2.374 2.849a.917.917 0 0 0 1.4.01l5.872-6.85Z",clipRule:"evenodd"})]}),F=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M17.07 9.49c.27-.31.23-.79-.08-1.06a.757.757 0 0 0-1.06.08l-5.42 6.33-1.93-2.32a.76.76 0 0 0-1.06-.1c-.32.27-.36.74-.1 1.06l2.37 2.85c.36.44 1.03.44 1.4 0l5.87-6.85zM12 1C5.92 1 1 5.92 1 12s4.92 11 11 11 11-4.92 11-11S18.08 1 12 1m0 20.5c-5.25 0-9.5-4.25-9.5-9.5S6.75 2.5 12 2.5s9.5 4.25 9.5 9.5-4.25 9.5-9.5 9.5"})]}),B=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M19.688 6.802a.75.75 0 0 1 0 1.06L9.332 18.219 4.47 13.355a.75.75 0 0 1 1.06-1.06l3.802 3.802 9.295-9.295a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"})]}),L=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M3 6.57V3.43c0-.19.21-.31.37-.22l2.75 1.57c.17.1.17.34 0 .43L3.37 6.78c-.17.1-.37-.03-.37-.22zm6.5-2.32c-.41 0-.75.34-.75.75s.34.75.75.75h11c.41 0 .75-.34.75-.75s-.34-.75-.75-.75zm0 7c-.41 0-.75.34-.75.75s.34.75.75.75h11c.41 0 .75-.34.75-.75s-.34-.75-.75-.75zM8.75 19c0-.41.34-.75.75-.75h11c.41 0 .75.34.75.75s-.34.75-.75.75h-11c-.41 0-.75-.34-.75-.75M3 20.57v-3.14c0-.19.21-.31.37-.22l2.75 1.57c.17.1.17.34 0 .43l-2.75 1.57c-.17.1-.37-.03-.37-.22zm0-10.14v3.14c0 .19.21.31.37.22l2.75-1.57c.17-.1.17-.34 0-.43l-2.75-1.57c-.17-.1-.37.03-.37.22z"})]}),V=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M20.5 12a8.5 8.5 0 1 1-17 0 8.5 8.5 0 0 1 17 0m1.5 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10M11.25 7a.75.75 0 0 1 1.5 0v5.75H8a.75.75 0 0 1 0-1.5h3.25z",clipRule:"evenodd"})]}),K=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M6.5 9.75a2.75 2.75 0 0 0-2.75 2.75.75.75 0 0 1-1.5 0 4.25 4.25 0 0 1 7-3.24A4.24 4.24 0 0 1 12 8.25a4.23 4.23 0 0 1 2.75 1.01 4.25 4.25 0 0 1 5.724 6.276.75.75 0 1 1-1.05-1.072 2.75 2.75 0 0 0-3.72-4.048 4.23 4.23 0 0 1 .546 2.084 4.24 4.24 0 0 1-1.275 3.036.75.75 0 1 1-1.05-1.072c.51-.5.825-1.194.825-1.964 0-.612-.2-1.177-.538-1.634a.8.8 0 0 1-.104-.132A2.74 2.74 0 0 0 12 9.75c-.686 0-1.313.25-1.795.666a4.23 4.23 0 0 1 .545 2.084 4.24 4.24 0 0 1-1.276 3.036.75.75 0 1 1-1.05-1.072c.51-.5.826-1.194.826-1.964 0-.572-.175-1.103-.474-1.543l-.005-.004a.75.75 0 0 1-.229-.294A2.74 2.74 0 0 0 6.5 9.75"})]}),H=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M19.527 15.467c.29.29.29.77 0 1.06s-.77.29-1.06 0l-4-4a.754.754 0 0 1 0-1.06l4-4c.29-.29.77-.29 1.06 0s.29.77 0 1.06l-3.47 3.47zm-15.06-6.94a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l4 4c.29.29.29.77 0 1.06l-4 4c-.29.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06l3.47-3.47z"})]}),$=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M21.15 5.85c-2.02-2.88-5.46-4.6-9.2-4.6-5.9 0-10.7 4.81-10.7 10.73s4.8 10.72 10.7 10.72c.97 0 1.8-.45 2.22-1.2.39-.71.34-1.56-.14-2.34-.53-.86-.62-1.24-.37-1.59.37-.5 1.03-.52 2.18-.52h.01c2.06 0 4.87 0 6.49-4.49.76-2.1.33-4.55-1.19-6.71m-.22 6.2c-1.25 3.46-3.08 3.5-5.02 3.5a.17.17 0 0 0-.1 0c-1.25 0-2.54.01-3.36 1.13-.93 1.28-.1 2.62.3 3.27.14.22.26.54.11.82-.15.27-.5.43-.91.43-5.07 0-9.2-4.14-9.2-9.22s4.13-9.23 9.2-9.23c3.25 0 6.24 1.48 7.98 3.96.84 1.21 1.28 2.5 1.28 3.72 0 .56-.09 1.1-.28 1.62m-6.08-4.27c.92 0 1.66-.74 1.66-1.66s-.74-1.66-1.66-1.66-1.66.74-1.66 1.66.74 1.66 1.66 1.66m-5.52 0c.92 0 1.66-.74 1.66-1.66s-.74-1.66-1.66-1.66-1.66.74-1.66 1.66.74 1.66 1.66 1.66m-3.37 4.4c.92 0 1.66-.74 1.66-1.66s-.74-1.66-1.66-1.66-1.66.74-1.66 1.66.74 1.66 1.66 1.66m12.26 0c.92 0 1.66-.74 1.66-1.66s-.74-1.66-1.66-1.66-1.66.74-1.66 1.66.74 1.66 1.66 1.66"})]}),U=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M7 18.5c0 .83-.67 1.5-1.5 1.5S4 19.33 4 18.5 4.67 17 5.5 17s1.5.67 1.5 1.5M21 14h-4.61l3.26-3.27c.79-.78.79-2.04 0-2.83l-3.54-3.54c-.78-.78-2.04-.78-2.83 0L10 7.65V3a2 2 0 0 0-2-2H3c-1.1 0-2 .9-2 2v15.5c0 1.42.66 2.68 1.68 3.51.88.71 1.97 1.04 3.05.99H21c1.11 0 2-.89 2-2v-5a2 2 0 0 0-2-2M10 9.77l4.34-4.35c.2-.19.52-.19.71 0l3.54 3.54c.2.2.2.52 0 .71L10 18.26zM8.5 18.5c0 1.66-1.34 3-3 3s-3-1.34-3-3V3c0-.27.23-.5.5-.5h5c.28 0 .5.23.5.5zm13 2.5c0 .28-.22.5-.5.5H8.89l6-6H21c.28 0 .5.23.5.5z"})]}),W=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5 3.25A2.75 2.75 0 0 0 2.25 6v10A2.75 2.75 0 0 0 5 18.75h1.25V22a.75.75 0 0 0 1.248.56l4.287-3.81H19A2.75 2.75 0 0 0 21.75 16V6A2.75 2.75 0 0 0 19 3.25zM3.75 6c0-.69.56-1.25 1.25-1.25h14c.69 0 1.25.56 1.25 1.25v10c0 .69-.56 1.25-1.25 1.25h-7.5a.75.75 0 0 0-.498.19L7.75 20.33V18a.75.75 0 0 0-.75-.75H5c-.69 0-1.25-.56-1.25-1.25zM8 12a1 1 0 1 0 0-2 1 1 0 0 0 0 2m9-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2",clipRule:"evenodd"})]}),q=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.75 1A.75.75 0 0 0 3 .25H0v1.5h2.25v20.5H0v1.5h3a.75.75 0 0 0 .75-.75zm19.5 4a2.75 2.75 0 0 0-2.75-2.75h-9A2.75 2.75 0 0 0 8.75 5v3.08c0 .365-.16.712-.437.95l-1.915 1.64a1.75 1.75 0 0 0 0 2.658l1.915 1.642c.278.237.437.584.437.949V19a2.75 2.75 0 0 0 2.75 2.75h9A2.75 2.75 0 0 0 23.25 19zM20.5 3.75c.69 0 1.25.56 1.25 1.25v14c0 .69-.56 1.25-1.25 1.25h-9c-.69 0-1.25-.56-1.25-1.25v-3.08a2.75 2.75 0 0 0-.96-2.088L7.374 12.19a.25.25 0 0 1 0-.38l1.916-1.642a2.75 2.75 0 0 0 .96-2.088V5c0-.69.56-1.25 1.25-1.25z",clipRule:"evenodd"})]}),G=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5 .25A2.75 2.75 0 0 0 2.25 3v9A2.75 2.75 0 0 0 5 14.75h3.08c.365 0 .712.16.95.437l1.641 1.915a1.75 1.75 0 0 0 2.658 0l1.642-1.915a1.25 1.25 0 0 1 .949-.437H19A2.75 2.75 0 0 0 21.75 12V3A2.75 2.75 0 0 0 19 .25zM3.75 3c0-.69.56-1.25 1.25-1.25h14c.69 0 1.25.56 1.25 1.25v9c0 .69-.56 1.25-1.25 1.25h-3.08a2.75 2.75 0 0 0-2.088.96l-1.642 1.916a.25.25 0 0 1-.38 0l-1.642-1.916a2.75 2.75 0 0 0-2.088-.96H5c-.69 0-1.25-.56-1.25-1.25zM12 24a2 2 0 1 0 0-4 2 2 0 0 0 0 4",clipRule:"evenodd"})]}),Z=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9.5 19.75A1.75 1.75 0 0 0 11.25 18v-3h-1.5v3a.25.25 0 0 1-.25.25H2a.25.25 0 0 1-.25-.25V6A.25.25 0 0 1 2 5.75h7.5a.25.25 0 0 1 .25.25v3h1.5V6A1.75 1.75 0 0 0 9.5 4.25H2A1.75 1.75 0 0 0 .25 6v12c0 .966.784 1.75 1.75 1.75zM12.75 6c0-.966.784-1.75 1.75-1.75H22c.966 0 1.75.784 1.75 1.75v12A1.75 1.75 0 0 1 22 19.75h-7.5A1.75 1.75 0 0 1 12.75 18v-3h1.5v3c0 .138.112.25.25.25H22a.25.25 0 0 0 .25-.25V6a.25.25 0 0 0-.25-.25h-7.5a.25.25 0 0 0-.25.25v3h-1.5zM7.53 8.47a.75.75 0 0 1 0 1.06l-1.72 1.72h12.38l-1.72-1.72a.75.75 0 0 1 1.06-1.06l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06l1.72-1.72H5.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})]}),Y=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4 1.25A2.75 2.75 0 0 0 1.25 4v11A2.75 2.75 0 0 0 4 17.75h2.25V20A2.75 2.75 0 0 0 9 22.75h11A2.75 2.75 0 0 0 22.75 20V9A2.75 2.75 0 0 0 20 6.25h-2.25V4A2.75 2.75 0 0 0 15 1.25zm12.25 5V4c0-.69-.56-1.25-1.25-1.25H4c-.69 0-1.25.56-1.25 1.25v11c0 .69.56 1.25 1.25 1.25h2.25V9A2.75 2.75 0 0 1 9 6.25zM7.75 20c0 .69.56 1.25 1.25 1.25h11c.69 0 1.25-.56 1.25-1.25V9c0-.69-.56-1.25-1.25-1.25H9c-.69 0-1.25.56-1.25 1.25z",clipRule:"evenodd"})]}),X=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M7.5 2c0-.83.67-1.5 1.5-1.5h8c.4 0 .78.16 1.06.44l4 4c.28.28.44.66.44 1.06v12c0 .83-.67 1.5-1.5 1.5h-3V18h3V6h-3c-.55 0-1-.45-1-1V2H9v1H7.5zm8.56 6.94-4-4c-.28-.28-.66-.44-1.06-.44H3c-.83 0-1.5.67-1.5 1.5v16c0 .83.67 1.5 1.5 1.5h12c.83 0 1.5-.67 1.5-1.5V10c0-.4-.16-.78-.44-1.06M15 22H3V6h8v3c0 .55.45 1 1 1h3z"})]}),J=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7 3a.75.75 0 0 0-1.5 0v13.5c0 .966.784 1.75 1.75 1.75H16v-1.5H7.25A.25.25 0 0 1 7 16.5zm10.5 17.5a.75.75 0 0 0 1.5 0V7a1.75 1.75 0 0 0-1.75-1.75H8.5v1.5h8.75a.25.25 0 0 1 .25.25zm5.5-2.25h-2.5v-1.5H23a.75.75 0 0 1 0 1.5m-19-13H1a.75.75 0 0 0 0 1.5h3z",clipRule:"evenodd"})]}),Q=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M22 4.25H10.41A3.015 3.015 0 0 0 7.5 2c-1.4 0-2.57.96-2.91 2.25H2c-.41 0-.75.34-.75.75s.34.75.75.75h2.59A3.015 3.015 0 0 0 7.5 8c1.4 0 2.57-.96 2.91-2.25H22c.41 0 .75-.34.75-.75s-.34-.75-.75-.75M7.5 6.5C6.67 6.5 6 5.83 6 5s.67-1.5 1.5-1.5S9 4.17 9 5s-.67 1.5-1.5 1.5M22 11.25h-1.59A3.015 3.015 0 0 0 17.5 9c-1.4 0-2.57.96-2.91 2.25H2c-.41 0-.75.34-.75.75s.34.75.75.75h12.59A3.015 3.015 0 0 0 17.5 15c1.4 0 2.57-.96 2.91-2.25H22c.41 0 .75-.34.75-.75s-.34-.75-.75-.75m-4.5 2.25c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m4.5 4.75H11.41A3.015 3.015 0 0 0 8.5 16c-1.4 0-2.57.96-2.91 2.25H2c-.41 0-.75.34-.75.75s.34.75.75.75h3.59A3.015 3.015 0 0 0 8.5 22c1.4 0 2.57-.96 2.91-2.25H22c.41 0 .75-.34.75-.75s-.34-.75-.75-.75M8.5 20.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5",clipRule:"evenodd"})]}),ee=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7.924 8.745c.6-1.77-.11-3.78-1.79-4.75a4.01 4.01 0 0 0-5.47 1.46 4.003 4.003 0 0 0 6.52 4.59l1.76 1.02c.1-.51.24-1 .44-1.48zm-1.63-.04a2.493 2.493 0 0 1-3.41.92 2.503 2.503 0 0 1-.92-3.42c.69-1.19 2.22-1.6 3.42-.91a2.5 2.5 0 0 1 .91 3.41m6.15 7.84c-.48-.28-.89-.65-1.22-1.08l1.32-.76q.285.315.66.54l5.31 3.06c.36.21.8.22 1.18.04l1.02-.5-6.79-3.92 1.5-.87 8.47 4.89-3.53 1.74c-.82.41-1.8.38-2.59-.08l-5.31-3.06zm11.43-10.11-3.53-1.74c-.82-.41-1.8-.38-2.59.08l-4.55 2.63a5.76 5.76 0 0 0-2.87 4.61l-.03.53-3.12 1.8a4.003 4.003 0 0 0-6.52 4.59 4.01 4.01 0 0 0 5.47 1.46 4.01 4.01 0 0 0 1.79-4.75zm-9.92 2.27 4.55-2.63c.36-.21.8-.22 1.18-.04l1.01.51-8.8 5.08c.22-1.22.97-2.29 2.06-2.92m-8.57 10.39c-1.2.69-2.73.28-3.42-.91-.69-1.2-.28-2.73.92-3.42 1.19-.69 2.72-.28 3.41.92a2.5 2.5 0 0 1-.91 3.41",clipRule:"evenodd"})]}),te=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M17.25 15a1.25 1.25 0 0 1-2.5 0c0-.35.14-.67.38-.89A3.26 3.26 0 0 0 12 11.75c-.96 0-1.83.42-2.42 1.08-.28.31-.75.33-1.06.06a.756.756 0 0 1-.06-1.06c.87-.97 2.13-1.58 3.54-1.58 2.25 0 4.14 1.57 4.63 3.67.37.22.62.62.62 1.08m-10.5 0a1.25 1.25 0 0 1 2.5 0c0 .35-.14.67-.38.89A3.26 3.26 0 0 0 12 18.25c.96 0 1.83-.42 2.42-1.08.28-.31.75-.33 1.06-.06.31.28.33.75.06 1.06-.87.97-2.13 1.58-3.54 1.58-2.25 0-4.14-1.57-4.63-3.67-.37-.22-.62-.62-.62-1.08M22 4.5h-2.25V2c0-.41-.34-.75-.75-.75s-.75.34-.75.75v2.5H5.75V2c0-.41-.34-.75-.75-.75s-.75.34-.75.75v2.5H2C1.17 4.5.5 5.17.5 6v15c0 .83.67 1.5 1.5 1.5h20c.83 0 1.5-.67 1.5-1.5V6c0-.83-.67-1.5-1.5-1.5M22 21H2V9h20z"})]}),ne=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12.75 12c0-.41-.34-.75-.75-.75s-.75.34-.75.75v2.25H9c-.41 0-.75.34-.75.75s.34.75.75.75h2.25V18c0 .41.34.75.75.75s.75-.34.75-.75v-2.25H15c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-2.25zM22 4.5h-2.25V2c0-.41-.34-.75-.75-.75s-.75.34-.75.75v2.5H5.75V2c0-.41-.34-.75-.75-.75s-.75.34-.75.75v2.5H2C1.17 4.5.5 5.17.5 6v15c0 .83.67 1.5 1.5 1.5h20c.83 0 1.5-.67 1.5-1.5V6c0-.83-.67-1.5-1.5-1.5M22 21H2V9h20z"})]}),re=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M15.03 11.8c-.47-.18-.78-.64-.78-1.15V6.41c0-.64-.52-1.16-1.16-1.16h-.34v-1h.75a1.25 1.25 0 0 0 0-2.5h-.75V1.5c0-.69-.56-1.25-1.25-1.25h-3c-.69 0-1.25.56-1.25 1.25v3.75h-.34c-.64 0-1.16.52-1.16 1.16v4.24c0 .51-.31.97-.78 1.15a2.75 2.75 0 0 0-1.72 2.55v5.24c0 2.3 1.86 4.16 4.16 4.16h5.18c2.3 0 4.16-1.86 4.16-4.16v-5.24c0-1.12-.68-2.13-1.72-2.55M8.75 1.75h2.5v3.5h-2.5zm6.5 17.84c0 1.47-1.19 2.66-2.66 2.66H7.41c-1.47 0-2.66-1.19-2.66-2.66v-5.24c0-.51.31-.97.78-1.15a2.75 2.75 0 0 0 1.72-2.55v-3.9h5.5v3.9c0 1.12.68 2.13 1.72 2.55.47.18.78.64.78 1.15zm1.72-15.62c.29-.29.77-.29 1.06 0l.5.5c.26.26.68.26.94 0 .85-.85 2.22-.85 3.06 0l.5.5c.29.29.29.77 0 1.06s-.77.29-1.06 0l-.5-.5a.664.664 0 0 0-.94 0c-.85.85-2.22.85-3.06 0l-.5-.5a.754.754 0 0 1 0-1.06m1.06-3a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06l.5.5c.85.85 2.22.85 3.06 0 .26-.26.68-.26.94 0l.5.5c.29.29.77.29 1.06 0s.29-.77 0-1.06l-.5-.5c-.85-.85-2.22-.85-3.06 0-.26.26-.68.26-.94 0z",clipRule:"evenodd"})]}),oe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M4 1.5c-.83 0-1.5.67-1.5 1.5v16c0 .83.67 1.5 1.5 1.5h7.15c-.3-.47-.54-.97-.73-1.5H4V3h8v3c0 .55.45 1 1 1h3v2.15c.48-.1.99-.15 1.5-.15V7c0-.4-.16-.78-.44-1.06l-4-4c-.28-.28-.66-.44-1.06-.44zm16.03 15.53-2.53 2.53-2.53-2.53c-.3-.3-.3-.77 0-1.06.29-.3.77-.3 1.06 0l.72.72V14.5c0-.42.33-.75.75-.75s.75.33.75.75v2.19l.72-.72c.29-.3.77-.3 1.06 0 .29.29.29.76 0 1.06m0-1.06c.29.29.29.76 0 1.06l-2.53 2.53-2.53-2.53c-.3-.3-.3-.77 0-1.06.29-.3.77-.3 1.06 0l.72.72V14.5c0-.42.33-.75.75-.75s.75.33.75.75v2.19l.72-.72c.29-.3.77-.3 1.06 0M17.5 10.5c-3.32 0-6 2.68-6 6s2.68 6 6 6 6-2.69 6-6-2.69-6-6-6m0 10.5a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9m2.53-3.97-2.53 2.53-2.53-2.53c-.3-.3-.3-.77 0-1.06.29-.3.77-.3 1.06 0l.72.72V14.5c0-.42.33-.75.75-.75s.75.33.75.75v2.19l.72-.72c.29-.3.77-.3 1.06 0 .29.29.29.76 0 1.06"})]}),ie=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M15.54 15.44 12 19.07l-3.53-3.63a.746.746 0 1 1 1.07-1.04l1.71 1.75V10.5a.749.749 0 1 1 1.5 0v5.65l1.72-1.75c.29-.3.76-.31 1.06-.02.29.29.3.77.01 1.06m5.21-8.94V22c0 .96-.78 1.75-1.75 1.75H5c-.96 0-1.75-.79-1.75-1.75V2c0-.97.79-1.75 1.75-1.75h9.5c.2 0 .39.08.53.22l5.5 5.5c.15.14.22.33.22.53m-1.5.75H14.5c-.41 0-.75-.34-.75-.75V1.75H5c-.13 0-.25.11-.25.25v20c0 .14.12.25.25.25h14c.14 0 .25-.11.25-.25z"})]}),ae=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8.25 15c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h5.66l-1.76-1.71c-.3-.29-.3-.76-.01-1.06s.76-.3 1.06-.01l3.63 3.54-3.63 3.54c-.3.29-.77.28-1.06-.01a.755.755 0 0 1 .01-1.06l1.76-1.71H8.25zm12.28-9.03-5.5-5.5a.75.75 0 0 0-.53-.22H5c-.97 0-1.75.79-1.75 1.75v20c0 .97.78 1.75 1.75 1.75h14c.97 0 1.75-.78 1.75-1.75V6.5c0-.19-.08-.38-.22-.53M19.25 22c0 .14-.11.25-.25.25H5c-.14 0-.25-.11-.25-.25V2c0-.13.11-.25.25-.25h8.75V6.5c0 .42.34.75.75.75h4.75z"})]}),se=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M23 22a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1zM18 5.25a.75.75 0 0 1 0 1.5H6a.75.75 0 0 1 0-1.5zm0 4a.75.75 0 0 1 0 1.5H6a.75.75 0 0 1 0-1.5zm0 4a.75.75 0 0 1 0 1.5H6a.75.75 0 0 1 0-1.5zm-6 4a.75.75 0 0 1 0 1.5H6a.75.75 0 0 1 0-1.5z",clipRule:"evenodd"})]}),le=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M2.5 3c0-.83.67-1.5 1.5-1.5h8c.4 0 .78.16 1.06.44l4 4c.28.28.44.66.44 1.06v1.78c-.53.06-1.04.2-1.5.41V7h-3c-.55 0-1-.45-1-1V3H4v16h7.5v1.5H4c-.83 0-1.5-.67-1.5-1.5zM22 15h-.75v-1.5c0-1.79-1.46-3.25-3.25-3.25s-3.25 1.46-3.25 3.25V15H14c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h8c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1m-5.75-1.5c0-.97.78-1.75 1.75-1.75s1.75.78 1.75 1.75V15h-3.5zm5.25 8h-7v-5h7z"})]}),ce=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M9.83 12.91v1.44h1.13c.59 0 .92-.3.92-.73s-.32-.71-.92-.71zm4.75.03v3.22h.79c1.01 0 1.67-.69 1.67-1.61s-.66-1.61-1.67-1.61zM23 10h-2.25V6.5c0-.2-.08-.39-.22-.53l-5.5-5.5a.75.75 0 0 0-.53-.22H5c-.97 0-1.75.78-1.75 1.75v20c0 .97.78 1.75 1.75 1.75h14c.97 0 1.75-.78 1.75-1.75v-3H23c.55 0 1-.45 1-1v-7c0-.55-.45-1-1-1m-3.75 12c0 .14-.11.25-.25.25H5c-.14 0-.25-.11-.25-.25V2c0-.14.11-.25.25-.25h8.75V6.5c0 .41.34.75.75.75h4.75V10H8c-.55 0-1 .45-1 1v7c0 .55.45 1 1 1h11.25zm-1.23-7.45c0 1.37-1.03 2.45-2.52 2.45h-1.9v-4.9h1.9c1.49 0 2.52 1.08 2.52 2.45m-5.16-.92c0 .89-.7 1.54-1.79 1.54H9.83V17h-.98v-4.9h2.22c1.12 0 1.79.65 1.79 1.53m9.47-.68h-2.52v1.2h2.43v.86h-2.43V17h-.98v-4.9h3.5z"})]}),ue=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 2.25a.75.75 0 0 1 .75.75v13.19l2.72-2.72a.75.75 0 1 1 1.06 1.06L12 19.06l-4.53-4.53a.75.75 0 1 1 1.06-1.06l2.72 2.72V3a.75.75 0 0 1 .75-.75m-9 14a.75.75 0 0 1 .75.75v3c0 .69.56 1.25 1.25 1.25h14c.69 0 1.25-.56 1.25-1.25v-3a.75.75 0 0 1 1.5 0v3A2.75 2.75 0 0 1 19 22.75H5A2.75 2.75 0 0 1 2.25 20v-3a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})]}),de=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7 9a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m0 6a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m6.5 0a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m5-1.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m-6.5-6a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3M20 9a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0",clipRule:"evenodd"})]}),pe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9 17a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m6 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m0-6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m-1.5-5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0m-6 6.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0M9 4a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3",clipRule:"evenodd"})]}),he=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M15.25 11.5c0-.41-.34-.75-.75-.75s-.75.34-.75.75v2.25H11.5c-.41 0-.75.34-.75.75s.34.75.75.75h2.25v2.25c0 .41.34.75.75.75s.75-.34.75-.75v-2.25h2.25c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-2.25zM20 6.25h-2.25V4c0-1.52-1.23-2.75-2.75-2.75H4C2.48 1.25 1.25 2.48 1.25 4v11c0 1.52 1.23 2.75 2.75 2.75h2.25V20c0 1.52 1.23 2.75 2.75 2.75h11c1.52 0 2.75-1.23 2.75-2.75V9c0-1.52-1.23-2.75-2.75-2.75M6.25 9v7.25H4c-.69 0-1.25-.56-1.25-1.25V4c0-.69.56-1.25 1.25-1.25h11c.69 0 1.25.56 1.25 1.25v2.25H9C7.48 6.25 6.25 7.48 6.25 9m15 11c0 .69-.56 1.25-1.25 1.25H9c-.69 0-1.25-.56-1.25-1.25V9c0-.69.56-1.25 1.25-1.25h11c.69 0 1.25.56 1.25 1.25z"})]}),fe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m20.12 5.063-.68-.68a2.746 2.746 0 0 0-3.88 0l-12.8 12.8c-.33.32-.51.77-.51 1.23v3.34h4.34c.46 0 .91-.18 1.23-.51l12.3-12.3a2.746 2.746 0 0 0 0-3.88M6.76 20.183s-.11.07-.17.07H3.75v-1.84c0-.06.03-.13.07-.17L14 8.063l2.44 2.44zm12.3-12.3-1.56 1.56-2.44-2.44 1.56-1.56c.48-.48 1.28-.48 1.76 0l.68.68c.48.48.48 1.28 0 1.76M23 21.753H9.43l1.5-1.5H23c.41 0 .75.34.75.75s-.34.75-.75.75",clipRule:"evenodd"})]}),me=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M3.5 6H2V2h4v1.5H3.5zm2.75 2c0-.41.34-.75.75-.75h10c.41 0 .75.34.75.75s-.34.75-.75.75H7c-.41 0-.75-.34-.75-.75m0 4c0-.41.34-.75.75-.75h10c.41 0 .75.34.75.75s-.34.75-.75.75H7c-.41 0-.75-.34-.75-.75M7 15.25c-.41 0-.75.34-.75.75s.34.75.75.75h6c.41 0 .75-.34.75-.75s-.34-.75-.75-.75zM18 2v1.5h2.5V6H22V2zM3.5 18H2v4h4v-1.5H3.5zM18 22v-1.5h2.5V18H22v4zm-9 0v-1.5h6V22zM9 2v1.5h6V2zM2 9h1.5v6H2zm20 0h-1.5v6H22z"})]}),ge=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.5 2A1.5 1.5 0 0 1 4 .5h8a1.5 1.5 0 0 1 1.06.44l4 4A1.5 1.5 0 0 1 17.5 6v.366a4 4 0 0 0-.293.266L16 7.84V6h-3a1 1 0 0 1-1-1V2H4v16h2.093c-.22.463-.325.979-.298 1.5H4A1.5 1.5 0 0 1 2.5 18zm20.363 6.782a2.48 2.48 0 0 1 0 3.507L12.32 22.833a1.62 1.62 0 0 1-1.142.473H7.25V19.38c0-.428.17-.839.473-1.142L18.267 7.693a2.48 2.48 0 0 1 3.507 0l1.09 1.09Zm-1.06 2.446a.98.98 0 0 0 0-1.385l-1.09-1.09a.98.98 0 0 0-1.385 0l-1.075 1.075 2.475 2.475zm-2.136 2.136-2.475-2.475-8.408 8.409a.12.12 0 0 0-.034.081v2.427h2.427a.12.12 0 0 0 .082-.033z",clipRule:"evenodd"})]}),ve=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M15.556 3.384a2.75 2.75 0 0 1 3.889 0l1.171 1.171a2.75 2.75 0 0 1 0 3.89L7.823 21.237a1.75 1.75 0 0 1-1.237.513H2.25v-4.336c0-.464.184-.909.513-1.237zm2.828 1.06a1.25 1.25 0 0 0-1.768 0L15.061 6 18 8.94l1.555-1.556a1.25 1.25 0 0 0 0-1.768zM16.939 10 14 7.06 3.823 17.238a.25.25 0 0 0-.073.177v2.836h2.836a.25.25 0 0 0 .177-.073z",clipRule:"evenodd"})]}),ye=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12.02 5.97a.75.75 0 0 0 0 1.06l4.95 4.95a.75.75 0 0 0 1.06 0l4.95-4.95a.75.75 0 0 0 0-1.06l-4.95-4.95a.75.75 0 0 0-1.06 0zm5.48 4.42L13.61 6.5l3.89-3.89 3.889 3.89-3.89 3.89ZM3 2.25a.75.75 0 0 0-.75.75v7c0 .414.336.75.75.75h7a.75.75 0 0 0 .75-.75V3a.75.75 0 0 0-.75-.75zm.75 7v-5.5h5.5v5.5zM2.25 14a.75.75 0 0 1 .75-.75h7a.75.75 0 0 1 .75.75v7a.75.75 0 0 1-.75.75H3a.75.75 0 0 1-.75-.75zm1.5.75v5.5h5.5v-5.5zM14 13.25a.75.75 0 0 0-.75.75v7c0 .414.336.75.75.75h7a.75.75 0 0 0 .75-.75v-7a.75.75 0 0 0-.75-.75zm.75 7v-5.5h5.5v5.5z",clipRule:"evenodd"})]}),be=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10m-2.003 2.889a8.5 8.5 0 0 1-9.492 5.48zm.367-1.367-11.23 6.483a8.5 8.5 0 0 1-2.92-1.778l14.073-8.125a8.5 8.5 0 0 1 .077 3.42m-.366-4.408L5.504 17.482a8.5 8.5 0 0 1-1.502-2.597l14.494-8.368a8.5 8.5 0 0 1 1.502 2.597m-2.212-3.341L3.713 13.898a8.5 8.5 0 0 1-.077-3.42l11.229-6.483a8.5 8.5 0 0 1 2.92 1.778ZM13.495 3.63a8.5 8.5 0 0 0-9.491 5.48z",clipRule:"evenodd"})]}),we=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 26 26","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.021 2.148a3.6 3.6 0 0 1 1.487-1.136 3.6 3.6 0 0 1 1.38-.262 3.45 3.45 0 0 1 2.846 1.414 3.6 3.6 0 0 1 2.585-.146 3.61 3.61 0 0 1 2.486 3.05 3.67 3.67 0 0 1 2.663 1.713 3.49 3.49 0 0 1 .173 3.189 3.56 3.56 0 0 1 1.2 1.538c.178.438.266.908.26 1.381a3.45 3.45 0 0 1-1.479 2.886 3.62 3.62 0 0 1-2.835 4.99 3.62 3.62 0 0 1-4.982 2.926 3.56 3.56 0 0 1-1.504 1.145 3.55 3.55 0 0 1-1.39.254 3.62 3.62 0 0 1-2.89-1.464 3.67 3.67 0 0 1-3.179-.203l-.003-.001a3.61 3.61 0 0 1-1.787-2.64 3.62 3.62 0 0 1-2.894-4.976A3.57 3.57 0 0 1 .75 12.92a3.46 3.46 0 0 1 1.453-2.87 3.67 3.67 0 0 1 .182-3.206l.004-.006a3.61 3.61 0 0 1 2.68-1.792l.012-.085a3.62 3.62 0 0 1 4.94-2.813m2.885.102a1.95 1.95 0 0 1 1.618.8 3.6 3.6 0 0 0-.445.619.75.75 0 1 0 1.303.742q.181-.316.453-.551a.8.8 0 0 0 .166-.13 2.11 2.11 0 0 1 3.308 1.458 3.7 3.7 0 0 0-.754.317.75.75 0 1 0 .732 1.31 2.17 2.17 0 0 1 2.892.733 1.99 1.99 0 0 1 .09 1.815 3.6 3.6 0 0 0-.795-.073.75.75 0 0 0 .032 1.5 2.05 2.05 0 0 1 2.095 2.115 1.95 1.95 0 0 1-.835 1.638 3.6 3.6 0 0 0-.595-.453.75.75 0 0 0-.781 1.28 2.12 2.12 0 0 1-.743 3.9 3.6 3.6 0 0 0-.316-.723.75.75 0 1 0-1.3.746c.134.235.222.492.26.757q0 .072.014.141a2.123 2.123 0 0 1-1.946 2.27 2.1 2.1 0 0 1-.917-.13 3.6 3.6 0 0 0 .089-.854.75.75 0 0 0-1.5.027 2.05 2.05 0 0 1-2.094 2.086h-.014a2.12 2.12 0 0 1-1.654-.801 3.7 3.7 0 0 0 .488-.622.75.75 0 0 0-1.273-.794 2.17 2.17 0 0 1-2.903.744 2.11 2.11 0 0 1-1.03-1.462 3.6 3.6 0 0 0 .752-.324.75.75 0 0 0-.746-1.302 2.1 2.1 0 0 1-.648.242.75.75 0 0 0-.398.04 2.13 2.13 0 0 1-1.56-.676 2.12 2.12 0 0 1-.432-2.193q.422.095.855.088a.75.75 0 0 0-.027-1.5 2.06 2.06 0 0 1-2.097-2.124 1.96 1.96 0 0 1 .803-1.619q.269.257.59.459a.75.75 0 1 0 .795-1.272 2.17 2.17 0 0 1-.745-2.895 2.11 2.11 0 0 1 1.5-1.036q.119.396.327.76a.75.75 0 0 0 1.3-.746 2.12 2.12 0 0 1 2.561-3.048 3.6 3.6 0 0 0-.09.864.75.75 0 1 0 1.5-.026 2.06 2.06 0 0 1 2.115-2.097",clipRule:"evenodd"})]}),xe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m21.878 13.565-1.482-.233a8.6 8.6 0 0 0 0-2.664l1.482-.233a10 10 0 0 1 0 3.13m-.54-5.15-1.4.538a8.5 8.5 0 0 0-1.331-2.302l1.165-.944a10 10 0 0 1 1.566 2.708m-3.045-4.187-.944 1.165a8.5 8.5 0 0 0-2.302-1.331l.538-1.4a10 10 0 0 1 2.708 1.566m-4.728-2.106-.233 1.482a8.6 8.6 0 0 0-2.664 0l-.233-1.482a10 10 0 0 1 3.13 0m-5.15.54.538 1.4a8.5 8.5 0 0 0-2.302 1.331l-.944-1.165a10 10 0 0 1 2.708-1.566M4.228 5.707l1.165.944a8.5 8.5 0 0 0-1.331 2.302l-1.4-.538a10 10 0 0 1 1.566-2.708m-2.106 4.728a10 10 0 0 0 0 3.13l1.482-.233a8.6 8.6 0 0 1 0-2.664zm.54 5.15 1.4-.538a8.5 8.5 0 0 0 1.331 2.302l-1.165.944a10 10 0 0 1-1.566-2.708m3.045 4.187.944-1.165a8.5 8.5 0 0 0 2.302 1.331l-.538 1.4a10 10 0 0 1-2.708-1.566m4.728 2.106.233-1.482a8.6 8.6 0 0 0 2.664 0l.233 1.482a10 10 0 0 1-3.13 0m5.15-.54-.538-1.4a8.5 8.5 0 0 0 2.302-1.331l.944 1.165a10 10 0 0 1-2.708 1.566m4.187-3.045-1.165-.944a8.5 8.5 0 0 0 1.331-2.302l1.4.538a10 10 0 0 1-1.566 2.708",clipRule:"evenodd"})]}),Se=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 20.5a8.5 8.5 0 1 0 0-17 8.5 8.5 0 0 0 0 17m0 1.5c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10",clipRule:"evenodd"})]}),_e=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M15.7 4.26a.75.75 0 0 0-.44-.97.75.75 0 0 0-.97.44l-6 16c-.15.39.05.82.44.97s.82-.05.97-.44zM6.53 7.47c.29.29.29.77 0 1.06L3.06 12l3.47 3.47c.29.29.29.77 0 1.06s-.77.29-1.06 0L.94 12l4.53-4.53c.29-.29.77-.29 1.06 0m10.94 0c-.29.29-.29.77 0 1.06L20.94 12l-3.47 3.47c-.29.29-.29.77 0 1.06s.77.29 1.06 0L23.06 12l-4.53-4.53a.754.754 0 0 0-1.06 0"})]}),Ce=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M7.71 13.75a.75.75 0 1 0-1.41.51c.83 2.33 3.07 4 5.71 4a6.06 6.06 0 0 0 5.71-4 .75.75 0 1 0-1.41-.51c-.62 1.75-2.31 3-4.29 3s-3.67-1.26-4.29-3zM10 9.5c0 .83-.67 1.5-1.5 1.5S7 10.33 7 9.5 7.67 8 8.5 8s1.5.67 1.5 1.5m5.5 1.5c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5M12 1C5.92 1 1 5.92 1 12s4.92 11 11 11 11-4.92 11-11S18.08 1 12 1m0 20.5c-5.25 0-9.5-4.25-9.5-9.5S6.75 2.5 12 2.5s9.5 4.25 9.5 9.5-4.25 9.5-9.5 9.5"})]}),Ee=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14 17.869V13H0v-2h14V6.131L22.803 12zM19.197 12 16 9.869v4.263z",clipRule:"evenodd"})]}),ke=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m15.555 16.832-1.11-1.664L17.697 13H0v-2h17.697l-3.252-2.168 1.11-1.664L22.803 12z",clipRule:"evenodd"})]}),ze=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M22 18.369 14.697 13.5H0v-2h14.667L22 6zm-5.27-5.917 3.27 2.18V10z",clipRule:"evenodd"})]}),Pe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M16.65 13H0v-2h16.65l4.726-3.78 1.249 1.56L18.601 12l4.024 3.22-1.25 1.56z",clipRule:"evenodd"})]}),Ae=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M17 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6m5-3a5 5 0 0 1-9.9 1H0v-2h12.1a5.002 5.002 0 0 1 9.9 1",clipRule:"evenodd"})]}),De=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M17 17.414 12.586 13H0v-2h12.586L17 6.586 22.414 12zM14.414 12 17 14.586 19.586 12 17 9.414z",clipRule:"evenodd"})]}),Te=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M0 13h24v-2H0z",clipRule:"evenodd"})]}),Ie=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m18.382 13-1.276 2.553 1.788.894 4-8-1.788-.894L19.382 11H0v2z",clipRule:"evenodd"})]}),Me=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M21.5 7.5h-9V11H0v2h12.5v3.5h9zm-2 2v5h-5v-5z",clipRule:"evenodd"})]}),Ne=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M22 8v8h-2v-3H0v-2h20V8z",clipRule:"evenodd"})]}),Oe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m21.758 8.563-6.36-6.36c-.39-.39-1.02-.39-1.42 0l-12.02 12.02a3 3 0 0 0 0 4.24l3.54 3.54h4.24l12.02-12.02c.39-.39.39-1.02 0-1.42m-12.64 11.94h-3l-3.1-3.1c-.58-.58-.58-1.53 0-2.12l2.3-2.3 5.66 5.66zm2.92-2.92-5.66-5.66 8.31-8.3 5.66 5.65zm-.18 4.42 1.5-1.5h4.64c.41 0 .75.34.75.75s-.34.75-.75.75zm8.39-.75c0-.41.34-.75.75-.75h2c.41 0 .75.34.75.75s-.34.75-.75.75h-2c-.41 0-.75-.34-.75-.75",clipRule:"evenodd"})]}),Re=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11m4.03-13.97a.75.75 0 0 0-1.06-1.06l-7 7a.75.75 0 1 0 1.06 1.06z",clipRule:"evenodd"})]}),je=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M21.5 12a9.5 9.5 0 0 1-9.5 9.5 9.46 9.46 0 0 1-6.166-2.273L19.227 5.834A9.46 9.46 0 0 1 21.5 12M4.773 18.166 18.166 4.773A9.46 9.46 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12c0 2.353.856 4.507 2.273 6.166M23 12c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11",clipRule:"evenodd"})]}),Fe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M23 12c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11M12 6.25a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0V7a.75.75 0 0 1 .75-.75m0 11.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5",clipRule:"evenodd"})]}),Be=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12 6.25c.41 0 .75.34.75.75v6c0 .41-.34.75-.75.75s-.75-.34-.75-.75V7c0-.41.34-.75.75-.75m0 11.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5M12 1C5.92 1 1 5.92 1 12s4.92 11 11 11 11-4.92 11-11S18.08 1 12 1m0 20.5c-5.25 0-9.5-4.25-9.5-9.5S6.75 2.5 12 2.5s9.5 4.25 9.5 9.5-4.25 9.5-9.5 9.5"})]}),Le=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8.527 15.467c.29.29.29.77 0 1.06s-.77.29-1.06 0l-4-4a.754.754 0 0 1 0-1.06l4-4c.29-.29.77-.29 1.06 0s.29.77 0 1.06l-3.47 3.47zm6.94-6.94a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l4 4c.29.29.29.77 0 1.06l-4 4c-.29.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06l3.47-3.47z"})]}),Ve=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8.527 8.527c-.29.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06l4-4c.29-.29.77-.29 1.06 0l4 4c.29.29.29.77 0 1.06s-.77.29-1.06 0l-3.47-3.47zm6.94 6.94c.29-.29.77-.29 1.06 0s.29.77 0 1.06l-4 4c-.29.29-.77.29-1.06 0l-4-4a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l3.47 3.47z"})]}),Ke=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3 2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1zm5 19v-3.5h1.5v3h11v-11h-3V8H21a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1",clipRule:"evenodd"})]}),He=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.25 3A.75.75 0 0 1 3 2.25h18a.75.75 0 0 1 .75.75v3a.75.75 0 0 1-.22.53l-6.78 6.78V22a.75.75 0 0 1-1.2.6l-4-3a.75.75 0 0 1-.3-.6v-5.69L2.47 6.53A.75.75 0 0 1 2.25 6zm1.5.75v1.94l6.78 6.78c.141.14.22.331.22.53v5.625l2.5 1.875V13a.75.75 0 0 1 .22-.53l6.78-6.78V3.75z",clipRule:"evenodd"})]}),$e=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12 .25c.41 0 .75.34.75.75v4.19l1.72-1.72c.29-.29.77-.29 1.06 0s.29.77 0 1.06L12 8.06 8.47 4.53a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l1.72 1.72V1c0-.41.34-.75.75-.75m9 8.25a2.5 2.5 0 0 1 2.5 2.5v2a2.5 2.5 0 0 1-2.5 2.5H3A2.5 2.5 0 0 1 .5 13v-2A2.5 2.5 0 0 1 3 8.5zM3 10c-.55 0-1 .45-1 1v2c0 .55.45 1 1 1h18c.55 0 1-.45 1-1v-2c0-.55-.45-1-1-1zm8.25 13c0 .41.34.75.75.75s.75-.34.75-.75v-4.19l1.72 1.72c.29.29.77.29 1.06 0s.29-.77 0-1.06L12 15.94l-3.53 3.53c-.29.29-.29.77 0 1.06s.77.29 1.06 0l1.72-1.72z"})]}),Ue=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M23 4H1c-.55 0-1 .45-1 1s.45 1 1 1h22c.55 0 1-.45 1-1s-.45-1-1-1m0 7H1c-.55 0-1 .45-1 1s.45 1 1 1h22c.55 0 1-.45 1-1s-.45-1-1-1m0 3.5H1c-.55 0-1 .45-1 1s.45 1 1 1h22c.55 0 1-.45 1-1s-.45-1-1-1m0 3.5H1c-.55 0-1 .45-1 1s.45 1 1 1h22c.55 0 1-.45 1-1s-.45-1-1-1m0-10.5H1c-.55 0-1 .45-1 1s.45 1 1 1h22c.55 0 1-.45 1-1s-.45-1-1-1"})]}),We=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M1 20h1.6c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1H1c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1m10.2 0h1.6c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1h-1.6c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1m5.1 0h1.6c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1h-1.6c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1M6.1 20h1.6c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1H6.1c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1m15.3 0H23c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1h-1.6c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1"})]}),qe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M15.75 13.25c0 .42-.34.75-.75.75h-2.25v2.25a.749.749 0 1 1-1.5 0V14H9a.749.749 0 1 1 0-1.5h2.25v-2.25c0-.41.34-.75.75-.75s.75.34.75.75v2.25H15c.41 0 .75.34.75.75m7-4.75V18c0 1.52-1.23 2.75-2.75 2.75H4c-1.52 0-2.75-1.23-2.75-2.75V6c0-1.51 1.23-2.75 2.75-2.75h4.28c.64 0 1.26.23 1.76.64l1.88 1.58c.23.18.51.28.8.28H20c1.52 0 2.75 1.24 2.75 2.75m-1.5 0c0-.69-.56-1.25-1.25-1.25h-7.28c-.64 0-1.26-.22-1.76-.63L9.08 5.04c-.23-.18-.51-.29-.8-.29H4c-.69 0-1.25.56-1.25 1.25v12c0 .7.56 1.25 1.25 1.25h16c.69 0 1.25-.55 1.25-1.25z"})]}),Ge=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M1.25 6A2.75 2.75 0 0 1 4 3.25h4.276a2.75 2.75 0 0 1 1.76.637l1.888 1.573c.225.187.508.29.8.29H20a2.75 2.75 0 0 1 2.75 2.75V18A2.75 2.75 0 0 1 20 20.75H4A2.75 2.75 0 0 1 1.25 18zm1.5 0c0-.69.56-1.25 1.25-1.25h4.276c.292 0 .575.103.8.29l1.888 1.573a2.75 2.75 0 0 0 1.76.637H20c.69 0 1.25.56 1.25 1.25v.75H2.75zm18.5 4.75V18c0 .69-.56 1.25-1.25 1.25H4c-.69 0-1.25-.56-1.25-1.25v-7.25z",clipRule:"evenodd"})]}),Ze=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M1 3.25c-.41 0-.75.34-.75.75s.34.75.75.75h5.25V15c0 .41.34.75.75.75s.75-.34.75-.75V4.75H13c.41 0 .75-.34.75-.75s-.34-.75-.75-.75zm21.75 7h-11.5V14c0 .41.34.75.75.75s.75-.34.75-.75v-2.25h3.5v8.5H14.5c-.41 0-.75.34-.75.75s.34.75.75.75h5c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-1.75v-8.5h3.5V14c0 .41.34.75.75.75s.75-.34.75-.75z"})]}),Ye=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m23.691 19.7-6-14a.76.76 0 0 0-.69-.45c-.3 0-.57.18-.69.45l-6 14c-.16.39.01.83.39.99.39.16.83-.01.99-.39l2.38-5.55h5.86l2.38 5.55c.16.38.6.55.99.39.38-.16.55-.6.39-.99m-8.98-6.45 2.29-5.35 2.29 5.35zm-6.01 6.48-3.5-9a.75.75 0 0 0-.7-.48c-.31 0-.59.19-.7.48l-3.5 9a.75.75 0 1 0 1.4.54l.79-2.02h4.02l.79 2.02a.75.75 0 1 0 1.4-.54m-5.63-2.98 1.43-3.68 1.43 3.68z",clipRule:"evenodd"})]}),Xe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M22 5H2C.9 5 0 5.9 0 7v10c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m.5 12c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V7c0-.28.22-.5.5-.5h20c.28 0 .5.22.5.5zM8.27 9.29c-1.68 0-2.84 1.3-2.84 2.91s1.16 2.91 2.84 2.91 2.84-1.3 2.84-2.91-1.16-2.91-2.84-2.91m0 4.62c-.97 0-1.46-.89-1.46-1.71s.49-1.71 1.46-1.71 1.47.89 1.47 1.71-.49 1.71-1.47 1.71M12.75 15V9.4h1.38v2.14l2.05-2.14h1.66l-2.06 2.18L17.92 15h-1.59l-1.53-2.48-.67.72V15z",clipRule:"evenodd"})]}),Je=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M16.53 10.03c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0L11 13.44l-1.97-1.97a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06l2.38 2.38c.36.36.94.36 1.3 0zM18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m.5 14c0 .28-.22.5-.5.5H6c-.28 0-.5-.22-.5-.5V6c0-.28.22-.5.5-.5h12c.28 0 .5.22.5.5z"})]}),Qe=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M5 8.25c.41 0 .75.34.75.75v6c0 .41-.34.75-.75.75s-.75-.34-.75-.75V9c0-.41.34-.75.75-.75m9.21 2.25h5.59c.45 0 .67.54.35.85l-2.79 2.79c-.2.2-.51.2-.71 0l-2.79-2.79c-.32-.31-.09-.85.35-.85M22 5H2C.9 5 0 5.9 0 7v10c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m.5 12c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V7c0-.28.22-.5.5-.5h20c.28 0 .5.22.5.5z"})]}),et=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M19 17.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5m0-5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5m-5.5 5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5m0-5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5m-5.5 5c0 .83-.67 1.5-1.5 1.5S5 18.33 5 17.5 5.67 16 6.5 16s1.5.67 1.5 1.5m12-15h-1.75V1c0-.41-.34-.75-.75-.75s-.75.34-.75.75v1.5h-9.5V1c0-.41-.34-.75-.75-.75s-.75.34-.75.75v1.5H4C2.07 2.5.5 4.07.5 6v13c0 1.93 1.57 3.5 3.5 3.5h16c1.93 0 3.5-1.57 3.5-3.5V6c0-1.93-1.57-3.5-3.5-3.5M22 19c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V9.25h20zm0-11.25H2V6c0-1.1.9-2 2-2h1.75v2c0 .41.34.75.75.75s.75-.34.75-.75V4h9.5v2c0 .41.34.75.75.75s.75-.34.75-.75V4H20c1.1 0 2 .9 2 2z"})]}),tt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M19.75 7c0 .41-.34.75-.75.75h-9c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h9c.41 0 .75.34.75.75M19 17.75c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-9c-.41 0-.75.34-.75.75s.34.75.75.75zm.75-5.75c0 .41-.34.75-.75.75h-9c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h9c.41 0 .75.34.75.75M5.5 8.5C6.33 8.5 7 7.83 7 7s-.67-1.5-1.5-1.5S4 6.17 4 7s.67 1.5 1.5 1.5M7 17c0 .83-.67 1.5-1.5 1.5S4 17.83 4 17s.67-1.5 1.5-1.5S7 16.17 7 17m-1.5-3.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5S4 11.17 4 12s.67 1.5 1.5 1.5M22 2H2C.9 2 0 2.9 0 4v16c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m.5 18c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V4c0-.28.22-.5.5-.5h20c.28 0 .5.22.5.5z"})]}),nt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9 6C7.34 6 6 7.34 6 9s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3m0 4.5c-.83 0-1.5-.67-1.5-1.5S8.17 7.5 9 7.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5m7 3.5H8c-1.1 0-2 .9-2 2v2c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2v-2c0-1.1-.9-2-2-2m.5 4c0 .28-.22.5-.5.5H8c-.28 0-.5-.22-.5-.5v-2c0-.28.22-.5.5-.5h8c.28 0 .5.22.5.5zm4.03-12.03-5.5-5.5a.75.75 0 0 0-.53-.22H5c-.97 0-1.75.78-1.75 1.75v20c0 .97.78 1.75 1.75 1.75h14c.97 0 1.75-.78 1.75-1.75V6.5c0-.2-.08-.39-.22-.53M19.25 22c0 .14-.11.25-.25.25H5c-.14 0-.25-.11-.25-.25V2c0-.14.11-.25.25-.25h8.75V6.5c0 .41.34.75.75.75h4.75z",clipRule:"evenodd"})]}),rt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12 15c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3m0-11c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8m0 14.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13"})]}),ot=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7.337 19H2a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-9.351c-.2.698-.42 1.353-.655 1.936-.293.73-.624 1.386-.993 1.872-.341.45-.856.942-1.546.942-.816 0-1.29-.637-1.536-1.145-.264-.545-.419-1.235-.503-1.905a11 11 0 0 1-.079-1.7M2 6.5h20a.5.5 0 0 1 .5.5v10a.5.5 0 0 1-.5.5h-8.964a35 35 0 0 0 .378-1.872c.164-.947.288-1.902.361-2.806a13 13 0 0 1 1.573-.884l.056.143.128.325c.114.284.264.63.454.911.161.24.517.683 1.105.683 1.035 0 1.89-.59 2.49-1.386.6-.797 1.003-1.862 1.162-3.011a.75.75 0 1 0-1.486-.206c-.132.95-.457 1.76-.874 2.314-.37.49-.768.73-1.145.78l-.008-.011a3.7 3.7 0 0 1-.307-.636l-.098-.248a12 12 0 0 0-.228-.557 2 2 0 0 0-.224-.392c-.062-.083-.304-.397-.737-.397a.8.8 0 0 0-.27.05 12 12 0 0 0-1.517.723q-.003-.377-.023-.724c-.044-.734-.155-1.422-.382-1.95-.223-.52-.667-1.099-1.444-1.099-.52 0-1.215.217-1.9.486-.718.282-1.539.67-2.358 1.1-1.623.853-3.322 1.917-4.239 2.727a.75.75 0 1 0 .994 1.124c.78-.69 2.353-1.688 3.943-2.523a23 23 0 0 1 2.21-1.032c.646-.255 1.088-.368 1.31-.38a.7.7 0 0 1 .106.188c.125.292.222.776.262 1.449.03.48.027 1.023-.002 1.609-.524.377-1.03.785-1.506 1.207-1.358 1.207-2.527 2.596-3.131 3.843a2.6 2.6 0 0 0-.163.452H2a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5M11.084 19c-.152.496-.314.96-.482 1.377-.27.675-.543 1.192-.796 1.526-.183.24-.299.315-.343.337-.035-.027-.104-.102-.194-.288-.162-.335-.29-.842-.364-1.439A10 10 0 0 1 8.838 19zm.41-1.5H9.142c.518-.964 1.48-2.113 2.675-3.174q.158-.14.32-.278a32 32 0 0 1-.643 3.452m.442-8.77s.006.002.016.012q-.016-.009-.016-.011ZM9.488 22.257s-.003 0-.008-.003q.008.002.008.003m7.811-9.69-.01-.01z",clipRule:"evenodd"})]}),it=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8.25 2A.75.75 0 0 1 9 1.25c1.227 0 2.316.589 3 1.5a3.74 3.74 0 0 1 3-1.5.75.75 0 0 1 0 1.5A2.25 2.25 0 0 0 12.75 5H22a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-9.25v.002A2.25 2.25 0 0 0 15 21.25a.75.75 0 0 1 0 1.5 3.74 3.74 0 0 1-3-1.5 3.74 3.74 0 0 1-3 1.5.75.75 0 0 1 0-1.5A2.25 2.25 0 0 0 11.25 19H2a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h9.25A2.25 2.25 0 0 0 9 2.75.75.75 0 0 1 8.25 2M2 6.5h9.25v4.75h-1.5a.75.75 0 0 0 0 1.5h1.5v4.75H2a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5m10.75 6.25v4.75H22a.5.5 0 0 0 .5-.5V7a.5.5 0 0 0-.5-.5h-9.25v4.75h1.5a.75.75 0 0 1 0 1.5z",clipRule:"evenodd"})]}),at=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12 8a2.5 2.5 0 0 0 0-5 2.5 2.5 0 0 0 0 5m0-8C8.96 0 6.5 2.46 6.5 5.5S8.96 11 12 11s5.5-2.46 5.5-5.5S15.04 0 12 0m0 9.5c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4m0 3.5c-3.04 0-5.5 2.46-5.5 5.5S8.96 24 12 24s5.5-2.46 5.5-5.5S15.04 13 12 13m0 9.5c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4"})]}),st=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12.75 5v5.25c0 .55.45 1 1 1H23c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1h-9.25c-.55 0-1 .45-1 1m0 8.75V19c0 .55.45 1 1 1H23c.55 0 1-.45 1-1v-5.25c0-.55-.45-1-1-1h-9.25c-.55 0-1 .45-1 1M0 5v5.25c0 .55.45 1 1 1h9.25c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1H1c-.55 0-1 .45-1 1m0 8.75V19c0 .55.45 1 1 1h9.25c.55 0 1-.45 1-1v-5.25c0-.55-.45-1-1-1H1c-.55 0-1 .45-1 1"})]}),lt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M0 5v.88c0 .55.45 1 1 1h22c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1H1c-.55 0-1 .45-1 1m0 4.38v.88c0 .55.45 1 1 1h22c.55 0 1-.45 1-1v-.88c0-.55-.45-1-1-1H1c-.55 0-1 .45-1 1m0 4.37v.88c0 .55.45 1 1 1h22c.55 0 1-.45 1-1v-.88c0-.55-.45-1-1-1H1c-.55 0-1 .45-1 1m0 4.37V19c0 .55.45 1 1 1h22c.55 0 1-.45 1-1v-.88c0-.55-.45-1-1-1H1c-.55 0-1 .45-1 1"})]}),ct=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12.75 5v2.33c0 .55.45 1 1 1H23c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1h-9.25c-.55 0-1 .45-1 1m0 5.84v2.33c0 .55.45 1 1 1H23c.55 0 1-.45 1-1v-2.33c0-.55-.45-1-1-1h-9.25c-.55 0-1 .45-1 1m0 5.83V19c0 .55.45 1 1 1H23c.55 0 1-.45 1-1v-2.33c0-.55-.45-1-1-1h-9.25c-.55 0-1 .45-1 1M1 20h9.25c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1H1c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1"})]}),ut=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M1 20h2.88c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1H1c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1m6.38 0h2.88c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1H7.38c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1m6.37 0h2.88c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1h-2.88c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1m6.37 0H23c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1h-2.88c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1"})]}),dt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M11.255 5.002c0-.41.34-.75.75-.75h7.003c.41 0 .75.34.75.75v7.003c0 .41-.34.75-.75.75h-6.253v6.253c0 .41-.34.75-.75.75H5.002c-.41 0-.75-.34-.75-.75v-7.003c0-.41.34-.75.75-.75h6.253zm1.5.75v5.503h5.503V5.752zm-7.003 7.003v5.503h5.503v-5.503zM1.251 3.852A2.01 2.01 0 0 1 0 2C0 .9.9 0 2 0c.841 0 1.561.52 1.852 1.25h16.296C20.448.52 21.168 0 22 0c1.1 0 2 .9 2 2 0 .841-.52 1.561-1.25 1.852v16.296c.73.3 1.25 1.02 1.25 1.851C24 23.1 23.1 24 22 24c-.841 0-1.561-.52-1.852-1.25H3.852C3.552 23.48 2.832 24 2 24c-1.1 0-2-.9-2-2 0-.841.52-1.561 1.25-1.852zm20.008 16.306c-.5.2-.9.6-1.1 1.1H3.851c-.2-.5-.6-.9-1.1-1.1V3.852c.5-.2.9-.6 1.1-1.1h16.296c.2.5.6.9 1.1 1.1v16.296l.01.01Z",clipRule:"evenodd"})]}),pt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.25 6A.75.75 0 0 1 5 5.25h14a.75.75 0 0 1 0 1.5H5A.75.75 0 0 1 4.25 6m0 6a.75.75 0 0 1 .75-.75h14a.75.75 0 0 1 0 1.5H5a.75.75 0 0 1-.75-.75M5 17.25a.75.75 0 0 0 0 1.5h14a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),ht=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9.75 3.5a2.25 2.25 0 0 1 4.256-1.02A2.25 2.25 0 0 1 17.25 4.5v.878a2.25 2.25 0 0 1 3 2.122V16a6.75 6.75 0 0 1-6.75 6.75h-1.115a6.75 6.75 0 0 1-4.634-1.843l-5.92-5.59a2.55 2.55 0 0 1 3.43-3.773l1.489 1.303V6a2.25 2.25 0 0 1 3-2.122zm1.5 7.5a.75.75 0 0 1-1.5 0V6a.75.75 0 0 0-1.5 0v7.735c0 .942-1.11 1.446-1.82.825l-2.157-1.887a1.05 1.05 0 0 0-1.412 1.553l5.92 5.59a5.25 5.25 0 0 0 3.604 1.434H13.5c2.9 0 5.25-2.35 5.25-5.25V7.5a.75.75 0 0 0-1.5 0V11a.75.75 0 0 1-1.5 0V4.5a.75.75 0 0 0-1.5 0V11a.75.75 0 0 1-1.5 0V3.5a.75.75 0 0 0-1.5 0z",clipRule:"evenodd"})]}),ft=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M17.807 2.302c2.647.375 4.943 2.717 4.943 6.146 0 1.554-.718 3.156-1.686 4.63-.977 1.488-2.267 2.931-3.537 4.185a48 48 0 0 1-5.057 4.322l-.023.017-.008.006L12 21c-.438.609-.439.608-.439.608l-.002-.001-.006-.005-.023-.017-.088-.064a48 48 0 0 1-1.476-1.146 49 49 0 0 1-3.492-3.102c-1.27-1.25-2.56-2.686-3.537-4.164-.967-1.462-1.687-3.052-1.687-4.59 0-3.46 2.29-5.821 4.94-6.207a5.22 5.22 0 0 1 3.907 1.002c.749.56 1.4 1.335 1.903 2.329.504-.994 1.154-1.77 1.902-2.33a5.24 5.24 0 0 1 3.905-1.01ZM12 21l-.439.608a.75.75 0 0 0 .877 0zm0-.935a47 47 0 0 1-4.474-3.86c-1.23-1.212-2.44-2.566-3.338-3.923C3.28 10.909 2.75 9.619 2.75 8.519c0-2.746 1.774-4.449 3.657-4.723a3.72 3.72 0 0 1 2.793.72c.861.644 1.639 1.752 2.073 3.473a.75.75 0 0 0 1.454 0c.434-1.721 1.212-2.83 2.074-3.474a3.74 3.74 0 0 1 2.795-.727c1.886.267 3.654 1.955 3.654 4.66 0 1.12-.532 2.424-1.44 3.806-.897 1.366-2.107 2.727-3.337 3.942A47 47 0 0 1 12 20.065",clipRule:"evenodd"})]}),mt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M21.53 3.527c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-18 18c-.29.29-.29.77 0 1.06s.77.29 1.06 0zM12 6.998c.55 0 1.07.09 1.57.25l-1.26 1.26c-.1 0-.2-.01-.3-.01-1.93 0-3.5 1.57-3.5 3.5 0 .1 0 .2.01.3l-1.26 1.26a5.002 5.002 0 0 1 4.75-6.57zm3.49 4.69c0 .1.01.2.01.3 0 1.93-1.57 3.5-3.5 3.5-.1 0-.2 0-.3-.01l-1.26 1.26a5.002 5.002 0 0 0 6.32-6.32zm8.14-.1c-.11-.16-1.51-2.27-3.84-4.2l-1.08 1.08c1.66 1.35 2.85 2.83 3.37 3.53-1.08 1.45-5.01 6.25-10.08 6.25-.92 0-1.8-.16-2.64-.43l-1.18 1.18c1.17.46 2.45.75 3.82.75 6.75 0 11.43-7.04 11.63-7.34l.27-.41zm-21.71.41C3 10.548 6.94 5.748 12 5.748c.92 0 1.8.16 2.64.43l1.18-1.18c-1.17-.46-2.45-.75-3.82-.75-6.74 0-11.43 7.04-11.63 7.34l-.27.41.27.41c.11.16 1.52 2.27 3.84 4.2l1.08-1.08a20.4 20.4 0 0 1-3.37-3.53"})]}),gt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12m10-8.5v17a8.5 8.5 0 0 0 0-17",clipRule:"evenodd"})]}),vt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4 2.5a3 3 0 0 0-3 3v13a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3v-13a3 3 0 0 0-3-3zm3 3.75a.75.75 0 0 0 0 1.5h4.25V18a.75.75 0 0 0 1.5 0V7.75H17a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),yt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M11.55 2.4a.75.75 0 0 1 .9 0l8 6a.75.75 0 0 1 .3.6v12a.75.75 0 0 1-.75.75H4a.75.75 0 0 1-.75-.75V9a.75.75 0 0 1 .3-.6zm7.7 6.975L12 3.938 4.75 9.375V20.25h4.5V16a2.75 2.75 0 1 1 5.5 0v4.25h4.5zm-6 10.875V16a1.25 1.25 0 1 0-2.5 0v4.25z",clipRule:"evenodd"})]}),bt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m24 12-3.47 3.53c-.29.3-.77.3-1.06 0-.3-.29-.3-.77 0-1.06l1.7-1.72h-4.16c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h4.15l-1.7-1.72a.754.754 0 0 1 0-1.06c.3-.29.77-.29 1.06 0zM0 12l3.47-3.53c.29-.3.77-.3 1.06 0 .3.29.3.77 0 1.06l-1.7 1.72h4.16c.41 0 .75.34.75.75s-.34.75-.75.75H2.83l1.7 1.72c.29.3.29.77 0 1.06-.3.29-.77.29-1.06 0zm10.5 0c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5-.67-1.5-1.5-1.5-1.5.67-1.5 1.5",clipRule:"evenodd"})]}),wt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M6.5 10C7.33 10 8 9.33 8 8.5S7.33 7 6.5 7 5 7.67 5 8.5 5.67 10 6.5 10M23 15.94V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-2l.03-.03zM21.5 18c0 .28-.22.5-.5.5H3c-.12 0-.23-.04-.32-.12l3.82-3.82 2.47 2.47a.75.75 0 0 0 1.06 0L16 11.06l5.5 5.5zm0-3.56-4.97-4.97a.75.75 0 0 0-1.06 0L9.5 15.44l-2.47-2.47a.754.754 0 0 0-1.06 0L2.5 16.44V6c0-.28.22-.5.5-.5h18c.28 0 .5.22.5.5z"})]}),xt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M23 12c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11M13 7.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0m-3.5 3.5a.75.75 0 0 0 0 1.5h1.75v4H9.5a.75.75 0 0 0 0 1.5h5a.75.75 0 0 0 0-1.5h-1.75v-5.5z",clipRule:"evenodd"})]}),St=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 21.5a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19m0 1.5c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11m1-15.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0m-3.5 3.5a.75.75 0 0 0 0 1.5h1.75v4H9.5a.75.75 0 0 0 0 1.5h5a.75.75 0 0 0 0-1.5h-1.75v-5.5z",clipRule:"evenodd"})]}),_t=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7 2.75a.75.75 0 0 1 .715.524l2.999 9.494.992 2.976.178.454c1.811 4.612 8.23 4.898 10.445.467a.75.75 0 1 1 1.342.67c-2.797 5.594-10.897 5.232-13.183-.589l-.186-.472-.013-.037-.83-2.487H4.542l-1.83 5.487a.75.75 0 0 1-1.422-.474l1.998-5.995 2.998-9.494A.75.75 0 0 1 7 2.75m-1.976 9.5h3.953L7 5.99zM13.25 4a.75.75 0 0 1 .75-.75h2.75a3 3 0 0 1 2.508 4.647 3.502 3.502 0 0 1-1.008 6.853H14a.75.75 0 0 1-.75-.75zm1.5 5.25v4h3.5a2 2 0 0 0 0-4zm0-1.5h2a1.5 1.5 0 0 0 0-3h-2z",clipRule:"evenodd"})]}),Ct=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M1 3a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v18a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2zm14-1H9v5h6zM8 2v5H2V3a1 1 0 0 1 1-1zm0 8H2v4h6zm0 7H2v4a1 1 0 0 0 1 1h5zm14-3v-4h-6v4zm-6 3h6v4a1 1 0 0 1-1 1h-5zm-1 0v5H9v-5zm0-3H9v-4h6zm7-11v4h-6V2h5a1 1 0 0 1 1 1",clipRule:"evenodd"})]}),Et=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M21 1a2 2 0 0 1 2 2v18a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2zm-7 8v6h-4V9zm3 0v6h5V9zm5-1V3a1 1 0 0 0-1-1h-4v6zm-8 0h-4V2h4zM7 8V2H3a1 1 0 0 0-1 1v5zM2 9v6h5V9zm8 7h4v6h-4zm-8 5v-5h5v6H3a1 1 0 0 1-1-1m20-5h-5v6h4a1 1 0 0 0 1-1z",clipRule:"evenodd"})]}),kt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6.25 2c0-.41.34-.75.75-.75h15c.41 0 .75.34.75.75v20c0 .41-.34.75-.75.75H7c-.41 0-.75-.34-.75-.75v-6c0-.41.34-.75.75-.75s.75.34.75.75v5.25h13.5V2.75H7.75V8c0 .41-.34.75-.75.75s-.75-.34-.75-.75zm5.22 5.47c.29-.29.77-.29 1.06 0L17.06 12l-4.53 4.53c-.29.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06l2.72-2.72H1c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h13.19l-2.72-2.72a.754.754 0 0 1 0-1.06",clipRule:"evenodd"})]}),zt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M9.75 7a.75.75 0 0 1 .75-.75h5a.75.75 0 0 1 0 1.5h-1.901l-2.16 9.5H13a.75.75 0 0 1 0 1.5H8a.75.75 0 0 1 0-1.5h1.901l2.16-9.5H10.5A.75.75 0 0 1 9.75 7"})]}),Pt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M22.75 9.498c0-.32-.2-.6-.5-.71l-5.12-1.79 5.12-1.79a.755.755 0 0 0 0-1.42l-10-3.5a.85.85 0 0 0-.5 0l-10 3.5a.755.755 0 0 0 0 1.42l5.12 1.79-5.12 1.79a.755.755 0 0 0 0 1.42l5.12 1.79-5.12 1.79a.755.755 0 0 0 0 1.42l10 3.5c.16.05.34.05.5 0l10-3.5a.755.755 0 0 0 0-1.42l-5.12-1.79 5.12-1.79c.3-.11.5-.39.5-.71m-18.48-5L12 1.787l7.73 2.71L12 7.207l-7.73-2.71Zm7.73 7.71-7.73-2.71 4.87-1.71 2.61.92c.16.05.34.05.5 0l2.61-.92 4.87 1.71zm-9 11.79-3-5h6z",clipRule:"evenodd"})]}),At=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M22.75 9.498c0-.32-.2-.6-.5-.71l-5.12-1.79 5.12-1.79a.755.755 0 0 0 0-1.42l-10-3.5a.85.85 0 0 0-.5 0l-10 3.5a.755.755 0 0 0 0 1.42l5.12 1.79-5.12 1.79a.755.755 0 0 0 0 1.42l5.12 1.79-5.12 1.79a.755.755 0 0 0 0 1.42l10 3.5c.16.05.34.05.5 0l10-3.5a.755.755 0 0 0 0-1.42l-5.12-1.79 5.12-1.79c.3-.11.5-.39.5-.71m-3.02 5L12 17.207l-7.73-2.71 4.87-1.7 2.61.91c.16.05.34.05.5 0l2.61-.92zM12 7.208l-7.73-2.71L12 1.787l7.73 2.71L12 7.207ZM0 18.997l3 5 3-5z",clipRule:"evenodd"})]}),Dt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M3 0 0 5h6zm19.75 14.5c0-.32-.2-.6-.5-.71L17.13 12l5.12-1.79a.755.755 0 0 0 0-1.42l-10-3.5a.85.85 0 0 0-.5 0l-10 3.5a.755.755 0 0 0 0 1.42L6.87 12l-5.12 1.79a.755.755 0 0 0 0 1.42L6.87 17l-5.12 1.79a.755.755 0 0 0 0 1.42l10 3.5c.16.05.34.05.5 0l10-3.5a.755.755 0 0 0 0-1.42L17.13 17l5.12-1.79c.3-.11.5-.39.5-.71m-3.02 5L12 22.21 4.27 19.5l4.87-1.71 2.61.92c.16.05.34.05.5 0l2.61-.92zM12 17.21 4.27 14.5l4.87-1.71 2.61.92c.16.05.34.05.5 0l2.61-.92 4.87 1.71z"})]}),Tt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M3 0 0 5h6zm19.75 14.5c0-.32-.2-.6-.5-.71L17.13 12l5.12-1.79a.755.755 0 0 0 0-1.42l-10-3.5a.85.85 0 0 0-.5 0l-10 3.5a.755.755 0 0 0 0 1.42L6.87 12l-5.12 1.79a.755.755 0 0 0 0 1.42L6.87 17l-5.12 1.79a.755.755 0 0 0 0 1.42l10 3.5c.16.05.34.05.5 0l10-3.5a.755.755 0 0 0 0-1.42L17.13 17l5.12-1.79c.3-.11.5-.39.5-.71m-3.02 5L12 22.21 4.27 19.5l4.87-1.71 2.61.92c.16.05.34.05.5 0l2.61-.92zM12 12.21 4.27 9.5 12 6.79l7.73 2.71z"})]}),It=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12.248 3.292a.75.75 0 0 0-.496 0l-10 3.5a.75.75 0 0 0 0 1.416L6.874 10l-5.122 1.793a.75.75 0 0 0 0 1.416L6.87 15l-5.117 1.792a.75.75 0 0 0 0 1.416l10 3.5a.75.75 0 0 0 .496 0l10-3.5a.75.75 0 0 0 0-1.416L17.13 15l5.118-1.791a.75.75 0 0 0 0-1.416L17.126 10l5.122-1.792a.75.75 0 0 0 0-1.416zm2.608 7.503-2.608.913a.75.75 0 0 1-.496 0l-2.608-.913-4.874 1.706 5.086 1.78.032.011 2.612.914 7.73-2.705zM12 10.205 4.27 7.5 12 4.795 19.73 7.5zm-.248 6.504-2.613-.914L4.27 17.5 12 20.205l7.73-2.705-4.87-1.705-2.612.914a.75.75 0 0 1-.495 0Z",clipRule:"evenodd"})]}),Mt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.25 20.25V22c0 .966.784 1.75 1.75 1.75h14A1.75 1.75 0 0 0 20.75 22V6.5a.75.75 0 0 0-.22-.53l-5.5-5.5a.75.75 0 0 0-.53-.22H5A1.75 1.75 0 0 0 3.25 2v1.75H1.5a.75.75 0 0 0 0 1.5h1.75v3.5H1.5a.75.75 0 0 0 0 1.5h1.75v3.5H1.5a.75.75 0 0 0 0 1.5h1.75v3.5H1.5a.75.75 0 0 0 0 1.5zM5 1.75a.25.25 0 0 0-.25.25v1.75H6.5a.75.75 0 0 1 0 1.5H4.75v3.5H6.5a.75.75 0 0 1 0 1.5H4.75v3.5H6.5a.75.75 0 0 1 0 1.5H4.75v3.5H6.5a.75.75 0 0 1 0 1.5H4.75V22c0 .138.112.25.25.25h14a.25.25 0 0 0 .25-.25V7.25H14.5a.75.75 0 0 1-.75-.75V1.75z",clipRule:"evenodd"})]}),Nt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 1a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h19a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2zm1 21h5v-6H3zm0-7h5V9H3zm0-7V2h5v6zm6 1v6h6V9zm6-1H9V2h6zm1 1v6h6V9zm6-1V3a1 1 0 0 0-1-1h-5v6zM9 22v-6h6v6zm7 0v-6h6v5a1 1 0 0 1-1 1z",clipRule:"evenodd"})]}),Ot=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.25 2a.75.75 0 0 1 1.5 0v4.25H21a.75.75 0 0 1 0 1.5H3.75V12a.75.75 0 0 1-1.5 0zm14.28 9.47a.75.75 0 1 0-1.06 1.06l3.72 3.72H3a.75.75 0 0 0 0 1.5h16.19l-3.72 3.72a.75.75 0 1 0 1.06 1.06L22.06 17z",clipRule:"evenodd"})]}),Rt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M22.53 1.47a.75.75 0 0 1 0 1.06l-20 20a.75.75 0 0 1-1.06-1.06l20-20a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})]}),jt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8.527 9.03c-.29.29-.77.29-1.06 0l-1.22-1.22v8.88l1.22-1.22c.29-.29.77-.29 1.06 0s.29.77 0 1.06l-3.03 3.03-3.03-3.03a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l1.22 1.22V7.81l-1.22 1.22c-.29.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06l3.03-3.03 3.03 3.03c.29.29.29.77 0 1.06m12.47-1.28c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-9c-.41 0-.75.34-.75.75s.34.75.75.75zm.75 4.25c0 .41-.34.75-.75.75h-9c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h9c.41 0 .75.34.75.75m0 5c0 .41-.34.75-.75.75h-9c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h9c.41 0 .75.34.75.75"})]}),Ft=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5 11c-1.66 0-3 1.34-3 3H0c0-2.76 2.24-5 5-5 1.36 0 2.6.55 3.5 1.43C9.4 9.55 10.64 9 12 9s2.6.55 3.5 1.43C16.4 9.55 17.64 9 19 9c2.76 0 5 2.24 5 5h-2c0-1.66-1.34-3-3-3-.95 0-1.81.45-2.36 1.14.23.57.36 1.2.36 1.86h-2c0-1.66-1.34-3-3-3-.95 0-1.81.45-2.36 1.14.23.57.36 1.2.36 1.86H8c0-1.66-1.34-3-3-3",clipRule:"evenodd"})]}),Bt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M19 11h4v2h-4zM1 11h4v2H1zm9 0h4v2h-4z",clipRule:"evenodd"})]}),Lt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 11h2v2H2zm12 0h2v2h-2zm6 0h2v2h-2zM8 11h2v2H8z",clipRule:"evenodd"})]}),Vt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M16 11h8v2h-8zM0 11h8v2H0z",clipRule:"evenodd"})]}),Kt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M21 11h2v2h-2zM1 11h2v2H1zm4 0h2v2H5zm4 0h2v2H9zm4 0h2v2h-2zm4 0h2v2h-2z",clipRule:"evenodd"})]}),Ht=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 5.75h1.579v-1.5H2zm3.684 0h1.58v-1.5h-1.58zm3.684 0h1.58v-1.5h-1.58zm3.685 0h1.579v-1.5h-1.58zm3.684 0h1.579v-1.5h-1.58zm3.684 0H22v-1.5h-1.579zm-1.421 7h3v-1.5h-3zm-17 7h20v-1.5H2zm15-7h-4v-1.5h4zm-10 0h4v-1.5H7zm-2 0H2v-1.5h3z",clipRule:"evenodd"})]}),$t=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M0 11h24v2H0z",clipRule:"evenodd"})]}),Ut=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M22 5.5H2v-1h20zm0 6.5H2v-2h20zM2 19.5h20v-3H2z",clipRule:"evenodd"})]}),Wt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M17.834 11.677a.75.75 0 0 1-1.06-1.06l2.12-2.122a2.25 2.25 0 0 0 0-3.182l-.706-.707a2.25 2.25 0 0 0-3.182 0l-4.243 4.242a2.25 2.25 0 0 0 0 3.182l.354.354a.75.75 0 0 1-1.061 1.06l-.354-.353a3.75 3.75 0 0 1 0-5.303l4.243-4.243a3.75 3.75 0 0 1 5.303 0l.707.707a3.75 3.75 0 0 1 0 5.303zm-11.667-.354a.75.75 0 0 1 1.06 1.06l-2.12 2.122a2.25 2.25 0 0 0 0 3.182l.706.707a2.25 2.25 0 0 0 3.182 0l4.243-4.242a2.25 2.25 0 0 0 0-3.182l-.354-.354a.75.75 0 0 1 1.061-1.06l.354.353a3.75 3.75 0 0 1 0 5.303l-4.243 4.243a3.75 3.75 0 0 1-5.303 0l-.707-.707a3.75 3.75 0 0 1 0-5.303z",clipRule:"evenodd"})]}),qt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7.25 6a4.75 4.75 0 0 1 9.5 0v3H18a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3v-8a3 3 0 0 1 3-3h1.25zm8 0v3h-6.5V6a3.25 3.25 0 0 1 6.5 0m-1.75 8.5a1.5 1.5 0 0 1-.75 1.3V18a.75.75 0 0 1-1.5 0v-2.2a1.5 1.5 0 1 1 2.25-1.3",clipRule:"evenodd"})]}),Gt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12.75 15.8c.45-.26.75-.74.75-1.3 0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5c0 .56.3 1.04.75 1.3V18c0 .41.34.75.75.75s.75-.34.75-.75zM18 9h-1.25V6c0-2.62-2.13-4.75-4.75-4.75S7.25 3.38 7.25 6v3H6c-1.66 0-3 1.34-3 3v8c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3v-8c0-1.66-1.34-3-3-3M8.75 6c0-1.79 1.46-3.25 3.25-3.25S15.25 4.21 15.25 6v3h-6.5zM19.5 20c0 .83-.67 1.5-1.5 1.5H6c-.83 0-1.5-.67-1.5-1.5v-8c0-.83.67-1.5 1.5-1.5h12c.83 0 1.5.67 1.5 1.5z"})]}),Zt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12.69 1.31c-.11-.8-1.27-.8-1.39 0l-.25 1.74-1.74.25c-.8.11-.8 1.27 0 1.39l1.74.25.25 1.74c.11.8 1.27.8 1.39 0l.25-1.74 1.74-.25c.8-.11.8-1.27 0-1.39l-1.74-.25zm-7 10c-.11-.8-1.27-.8-1.39 0l-.25 1.74-1.74.25c-.8.11-.8 1.27 0 1.39l1.74.25.25 1.74c.11.8 1.27.8 1.39 0l.25-1.74 1.74-.25c.8-.11.8-1.27 0-1.39l-1.74-.25zm14 5c-.11-.8-1.27-.8-1.39 0l-.25 1.74-1.74.25c-.8.11-.8 1.27 0 1.39l1.74.25.25 1.74c.11.8 1.27.8 1.39 0l.25-1.74 1.74-.25c.8-.11.8-1.27 0-1.39l-1.74-.25zM20 8.99c0 .55-.45 1-1 1s-1-.45-1-1 .45-1 1-1 1 .45 1 1m-8 5c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1m-8-8c0 .55-.45 1-1 1s-1-.45-1-1 .45-1 1-1 1 .45 1 1m5 17c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1"})]}),Yt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12.96 1a.96.96 0 0 0-1.92 0v4a.96.96 0 0 0 1.92 0zm9.89 18.23-9.59-9.59c-.98-.98-2.56-.98-3.54 0l-.09.09c-.98.98-.98 2.56 0 3.54l9.59 9.59c.98.98 2.56.98 3.54 0l.09-.09c.98-.98.98-2.56 0-3.54m-1.06 2.48-.09.09a.996.996 0 0 1-1.41 0l-9.59-9.59a.996.996 0 0 1 0-1.41l.09-.09a.996.996 0 0 1 1.41 0l9.59 9.59c.39.39.39 1.02 0 1.41M12 18.04c.53 0 .96.43.96.96v4a.96.96 0 0 1-1.92 0v-4c0-.53.43-.96.96-.96m11-5.08a.96.96 0 0 0 0-1.92h-4a.96.96 0 0 0 0 1.92zM5.96 12c0 .53-.43.96-.96.96H1a.96.96 0 0 1 0-1.92h4c.53 0 .96.43.96.96m14.5-7.1c.38-.38.38-.99 0-1.36a.954.954 0 0 0-1.36 0l-2.59 2.59c-.38.38-.38.99 0 1.36.38.38.99.38 1.36 0zM7.5 16.5c.38.38.38.99 0 1.36l-2.59 2.59c-.38.38-.99.38-1.36 0s-.38-.99 0-1.36l2.59-2.59c.38-.38.99-.38 1.36 0m-1.37-9c.38.38.99.38 1.36 0s.38-.99 0-1.36L4.9 3.55a.954.954 0 0 0-1.36 0c-.38.38-.38.99 0 1.36z"})]}),Xt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3 3.5h18A2.5 2.5 0 0 1 23.5 6v11a2.5 2.5 0 0 1-2.5 2.5H3A2.5 2.5 0 0 1 .5 17V6A2.5 2.5 0 0 1 3 3.5M2 16.94V6.06l5.44 5.44zM3.06 18h17.88l-5.44-5.44-.848.849a3.75 3.75 0 0 1-5.304 0l-.848-.848zm13.5-6.5L22 16.94V6.06zM3.06 5h17.88l-7.349 7.348a2.25 2.25 0 0 1-3.182 0z",clipRule:"evenodd"})]}),Jt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.358 12.58c-.456.464-.9.916-1.328 1.343a.75.75 0 1 1-1.06-1.06c.405-.406.833-.842 1.28-1.296 1.72-1.75 3.694-3.761 5.556-5.24 1.17-.928 2.36-1.704 3.474-2.061 1.139-.366 2.329-.325 3.25.596.537.537.746 1.184.651 1.867-.087.63-.422 1.226-.823 1.761-.732.98-1.893 2.019-2.999 3.008l-.296.265c-1.237 1.111-2.357 2.152-2.972 3.106-.303.47-.435.849-.444 1.148-.008.265.077.539.383.845.165.165.314.21.484.203.207-.009.494-.1.875-.32.77-.449 1.64-1.255 2.6-2.15l.044-.043c.904-.843 1.891-1.765 2.824-2.308.48-.278 1.013-.5 1.567-.523a2.1 2.1 0 0 1 1.606.641c.365.365.573.797.603 1.276.03.457-.108.882-.29 1.246-.343.686-.963 1.374-1.492 1.962l-.043.048c-.587.651-1.067 1.195-1.31 1.678-.114.23-.14.382-.134.48.005.076.031.175.166.31.172.172.526.298 1.3-.034.751-.322 1.673-.999 2.64-1.966a.75.75 0 1 1 1.06 1.06c-1.033 1.034-2.111 1.857-3.11 2.285-.976.419-2.122.544-2.95-.284-.365-.365-.573-.797-.603-1.276-.03-.457.108-.882.29-1.246.343-.686.963-1.374 1.492-1.962l.043-.048c.587-.651 1.067-1.194 1.309-1.678.115-.229.141-.382.135-.48-.005-.076-.031-.175-.166-.31-.165-.165-.314-.21-.484-.203-.207.009-.494.1-.875.32-.77.449-1.64 1.255-2.6 2.15l-.044.043c-.904.843-1.891 1.765-2.824 2.308-.48.278-1.013.5-1.567.523a2.1 2.1 0 0 1-1.606-.641c-.569-.569-.844-1.232-.822-1.95.02-.683.306-1.332.682-1.917.745-1.155 2.032-2.333 3.232-3.41l.262-.235c1.147-1.027 2.195-1.967 2.833-2.82.342-.456.503-.809.538-1.068.029-.205-.012-.387-.225-.6-.383-.383-.907-.494-1.731-.229-.85.273-1.87.91-3 1.808-1.781 1.414-3.666 3.332-5.381 5.077Z",clipRule:"evenodd"})]}),Qt=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M.5 4H2V2h2V.5H2C1.17.5.5 1.17.5 2zm23 0H22V2h-2V.5h2c.83 0 1.5.67 1.5 1.5zm0 3H22v3.5h1.5zm0 6.5H22V17h1.5zM.5 7H2v3.5H.5zm0 6.5H2V17H.5zm0 6.5H2v2h2v1.5H2c-.83 0-1.5-.67-1.5-1.5zM7 23.5V22h3.5v1.5zm6.5 0V22H17v1.5zM17 .5V2h-3.5V.5zm-6.5 0V2H7V.5zM12 8.75c.41 0 .75.34.75.75v1.75h1.75c.41 0 .75.34.75.75s-.34.75-.75.75h-1.75v1.75c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-1.75H9.5c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h1.75V9.5c0-.41.34-.75.75-.75m10.53 12.72-4.72-4.72A7.48 7.48 0 0 0 19.5 12c0-4.14-3.36-7.5-7.5-7.5S4.5 7.86 4.5 12s3.36 7.5 7.5 7.5c1.8 0 3.45-.63 4.75-1.69l4.72 4.72c.29.29.77.29 1.06 0s.29-.77 0-1.06M12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6"})]}),en=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M.75 5.25A.75.75 0 0 1 1.5 6v5.996l4.466-4.523a.75.75 0 1 1 1.068 1.054l-2.69 2.723h15.311l-2.689-2.723a.75.75 0 1 1 1.068-1.054l4.466 4.523V6A.75.75 0 0 1 24 6v12a.75.75 0 0 1-1.5 0v-5.996l-4.466 4.523a.75.75 0 0 1-1.067-1.054l2.689-2.723H4.345l2.689 2.723a.75.75 0 0 1-1.068 1.054L1.5 12.004V18A.75.75 0 0 1 0 18V6a.75.75 0 0 1 .75-.75"})]}),tn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M11.25 12A8.25 8.25 0 0 0 3 3.75H2a.75.75 0 0 1 0-1.5h1a9.75 9.75 0 0 1 9 5.993 9.75 9.75 0 0 1 9-5.993h1a.75.75 0 0 1 0 1.5h-1A8.25 8.25 0 0 0 12.75 12v7.19l2.72-2.72a.75.75 0 1 1 1.06 1.06L12 22.06l-4.53-4.53a.75.75 0 1 1 1.06-1.06l2.72 2.72z"})]}),nn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M1.25 4A2.75 2.75 0 0 1 4 1.25h16A2.75 2.75 0 0 1 22.75 4v12A2.75 2.75 0 0 1 20 18.75h-7.21l-5.285 4.805A.75.75 0 0 1 6.25 23v-4.25H4A2.75 2.75 0 0 1 1.25 16zM4 2.75c-.69 0-1.25.56-1.25 1.25v12c0 .69.56 1.25 1.25 1.25h3a.75.75 0 0 1 .75.75v3.305l4.245-3.86a.75.75 0 0 1 .505-.195H20c.69 0 1.25-.56 1.25-1.25V4c0-.69-.56-1.25-1.25-1.25z",clipRule:"evenodd"})]}),rn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.25 12a.75.75 0 0 1 .75-.75h14a.75.75 0 0 1 0 1.5H5a.75.75 0 0 1-.75-.75",clipRule:"evenodd"})]}),on=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.667 3.092a.75.75 0 0 1 .09.838A8.6 8.6 0 0 0 9.75 8c0 4.597 3.51 8.25 7.75 8.25 1.137 0 2.216-.26 3.19-.729a.75.75 0 0 1 .992 1.018A9.75 9.75 0 0 1 13 21.85c-5.385 0-9.75-4.366-9.75-9.75 0-4.286 2.764-7.923 6.604-9.232a.75.75 0 0 1 .813.225Zm-1.992 1.98a8.25 8.25 0 1 0 10.478 12.523 9 9 0 0 1-1.653.155c-5.148 0-9.25-4.406-9.25-9.75 0-1.02.149-2.003.425-2.929Z",clipRule:"evenodd"})]}),an=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12 13.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5.67 1.5 1.5 1.5M8 12c0 .83-.67 1.5-1.5 1.5S5 12.83 5 12s.67-1.5 1.5-1.5S8 11.17 8 12m9.5 1.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5.67 1.5 1.5 1.5M12 1C5.92 1 1 5.92 1 12s4.92 11 11 11 11-4.92 11-11S18.08 1 12 1m0 20.5c-5.25 0-9.5-4.25-9.5-9.5S6.75 2.5 12 2.5s9.5 4.25 9.5 9.5-4.25 9.5-9.5 9.5"})]}),sn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M17 12a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0m-6.5 0a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0m-5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3",clipRule:"evenodd"})]}),ln=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12 7c-.83 0-1.5-.67-1.5-1.5S11.17 4 12 4s1.5.67 1.5 1.5S12.83 7 12 7m0 6.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m-1.5 5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5S12.83 17 12 17s-1.5.67-1.5 1.5"})]}),cn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m12 .94 3.531 3.53a.75.75 0 1 1-1.06 1.061l-1.72-1.72v7.44h7.44l-1.72-1.72a.75.75 0 1 1 1.06-1.06l3.53 3.53-3.53 3.53a.75.75 0 0 1-1.06-1.06l1.72-1.72h-7.44v7.439l1.72-1.72a.75.75 0 0 1 1.06 1.061l-3.53 3.53-3.53-3.53a.75.75 0 0 1 1.06-1.06l1.72 1.719v-7.44H3.81l1.72 1.72a.75.75 0 0 1-1.06 1.061l-3.53-3.53 3.53-3.53a.75.75 0 0 1 1.06 1.06l-1.72 1.72h7.44V3.81L9.53 5.53a.75.75 0 1 1-1.06-1.06z",clipRule:"evenodd"})]}),un=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M18 7.25a.75.75 0 0 0-.75.75v3.25H7.81l2.72-2.72a.75.75 0 0 0-1.06-1.06L4.94 12l4.53 4.53a.75.75 0 1 0 1.06-1.06l-2.72-2.72h9.44V16a.75.75 0 0 0 1.5 0V8a.75.75 0 0 0-.75-.75",clipRule:"evenodd"})]}),dn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M18.53 7.47a.75.75 0 1 0-1.06 1.06l2.72 2.72H3.81l2.72-2.72a.75.75 0 1 0-1.06-1.06L.94 12l4.53 4.53a.75.75 0 0 0 1.06-1.06l-2.72-2.72h16.38l-2.72 2.72a.75.75 0 1 0 1.06 1.06L23.06 12z"})]}),pn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6 7.25a.75.75 0 0 1 .75.75v3.25h9.44l-2.72-2.72a.75.75 0 0 1 1.06-1.06L19.06 12l-4.53 4.53a.75.75 0 1 1-1.06-1.06l2.72-2.72H6.75V16a.75.75 0 0 1-1.5 0V8A.75.75 0 0 1 6 7.25",clipRule:"evenodd"})]}),hn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.5 2c0-.83.67-1.5 1.5-1.5h6c.4 0 .78.16 1.06.44l4 4c.28.28.44.66.44 1.06v10c0 .83-.67 1.5-1.5 1.5H12c-.83 0-1.5-.67-1.5-1.5zM12 16V2h6v3c0 .55.45 1 1 1h3v10zM7 3.5h2V5H7v14h11.5c0 .83-.67 1.5-1.5 1.5H7c-.83 0-1.5-.67-1.5-1.5V5c0-.83.67-1.5 1.5-1.5m-5 3h2V8H2v14h11.5c0 .83-.67 1.5-1.5 1.5H2c-.83 0-1.5-.67-1.5-1.5V8c0-.83.67-1.5 1.5-1.5",clipRule:"evenodd"})]}),fn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m21.28 20.218-18-18a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06l6.47 6.47-6.18 6.18c-.33.32-.51.77-.51 1.23v4.34h4.34c.46 0 .91-.18 1.23-.51l6.18-6.18 6.47 6.47c.29.29.77.29 1.06 0s.29-.77 0-1.06m-14.77-.29s-.11.07-.17.07H3.5v-2.84c0-.06.03-.13.07-.17l6.18-6.18 2.94 2.94zm13.86-15.62-1.18-1.18a2.746 2.746 0 0 0-3.88 0l-4.59 4.59 1.06 1.06 1.97-1.97 2.94 2.94-1.97 1.97 1.06 1.06 4.59-4.59a2.746 2.746 0 0 0 0-3.88m-1.06 2.82-1.56 1.56-2.94-2.94 1.56-1.56c.48-.48 1.28-.48 1.76 0l1.18 1.18c.48.48.48 1.28 0 1.76",clipRule:"evenodd"})]}),mn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14.71 2.296a1 1 0 0 0-1.42 0l-2.83 2.83a1 1 0 0 0-.29.71c.004.265.107.518.29.71l2.3 2.29H2a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h10.76l-2.3 2.29a1 1 0 0 0 0 1.42l2.83 2.82a1 1 0 0 0 1.42 0l8.83-8.82a1.05 1.05 0 0 0 .29-.71 1 1 0 0 0-.29-.71z",clipRule:"evenodd"})]}),gn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M19 4.29a1 1 0 0 0-1.41 0l-8.1 8.14-2.95-3a1 1 0 0 0-1.42 0L2.29 12.3A1.05 1.05 0 0 0 2 13a1 1 0 0 0 .29.71l6.49 6.49a1 1 0 0 0 .71.3 1 1 0 0 0 .7-.3L21.86 8.54a1 1 0 0 0 0-1.42z",clipRule:"evenodd"})]}),vn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20m0 14a4 4 0 1 1 0-8 4 4 0 0 1 0 8",clipRule:"evenodd"})]}),yn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M7.25 9c0-.41.34-.75.75-.75h8c.41 0 .75.34.75.75s-.34.75-.75.75H8c-.41 0-.75-.34-.75-.75M8 12.25c-.41 0-.75.34-.75.75s.34.75.75.75h8c.41 0 .75-.34.75-.75s-.34-.75-.75-.75zm11-9H5C3.48 3.25 2.25 4.48 2.25 6v10c0 1.52 1.23 2.75 2.75 2.75h3.47c.4 0 .78.19 1.02.52l1.16 1.63c.66.92 2.01.98 2.75.12l1.57-1.83c.24-.28.59-.44.95-.44H19c1.52 0 2.75-1.23 2.75-2.75V6c0-1.52-1.23-2.75-2.75-2.75M20.25 16c0 .69-.56 1.25-1.25 1.25h-3.08c-.8 0-1.57.35-2.09.96l-1.57 1.83c-.1.13-.3.12-.39 0l-1.16-1.63a2.76 2.76 0 0 0-2.24-1.15H5c-.69 0-1.25-.56-1.25-1.25V6c0-.69.56-1.25 1.25-1.25h14c.69 0 1.25.56 1.25 1.25z"})]}),bn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m22.04 6.04-5.88 5.87 5.88 5.88a1 1 0 0 1 0 1.42l-2.83 2.83a1 1 0 0 1-1.42 0l-5.88-5.88-5.87 5.88a1 1 0 0 1-1.42 0l-2.83-2.83a1 1 0 0 1 0-1.42l5.88-5.88-5.88-5.87a1 1 0 0 1-.29-.71 1 1 0 0 1 .29-.71l2.83-2.83a1 1 0 0 1 .71-.29c.265.004.518.107.71.29l5.87 5.88 5.88-5.88a1 1 0 0 1 1.42 0l2.83 2.83a1 1 0 0 1 0 1.42",clipRule:"evenodd"})]}),wn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10 7.997c0 .27-.11.52-.29.71a1 1 0 0 1-.71.29H5c-.27 0-.52-.11-.71-.29a1 1 0 0 1-.29-.71c0-1.45.39-2.86 1.14-4.11A8 8 0 0 1 8.22.947c1.27-.68 2.71-1 4.15-.94 1.44.07 2.84.52 4.05 1.32s2.17 1.91 2.8 3.21c.62 1.3.88 2.75.75 4.19a7.87 7.87 0 0 1-1.51 3.98 8.2 8.2 0 0 1-3.34 2.65l-.12.06v.07c0 .27-.11.52-.29.71s-.44.29-.71.29h-4c-.27 0-.52-.11-.71-.29a1 1 0 0 1-.29-.71v-.5c.06-1.14.45-2.23 1.12-3.15s1.6-1.62 2.66-2.01c.33-.14.62-.37.83-.66s.34-.64.38-1c.03-.36-.03-.72-.19-1.05a2.01 2.01 0 0 0-1.71-1.13c-.36-.02-.72.07-1.04.24s-.58.43-.77.74-.28.67-.28 1.03m2 16c.59 0 1.17-.18 1.67-.51.49-.33.88-.8 1.1-1.35.23-.55.29-1.15.17-1.73s-.4-1.12-.82-1.54-.95-.71-1.54-.82c-.58-.12-1.19-.06-1.73.17-.55.23-1.02.61-1.35 1.1a2.99 2.99 0 0 0 .37 3.79c.56.56 1.33.88 2.12.88z",clipRule:"evenodd"})]}),xn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M6.25 9c0-.41.34-.75.75-.75h10c.41 0 .75.34.75.75s-.34.75-.75.75H7c-.41 0-.75-.34-.75-.75M7 12.25c-.41 0-.75.34-.75.75s.34.75.75.75h5c.41 0 .75-.34.75-.75s-.34-.75-.75-.75zm12-9H5C3.48 3.25 2.25 4.48 2.25 6v12c0 1.52 1.23 2.75 2.75 2.75h9.17a2.79 2.79 0 0 0 1.87-.73l4.98-4.98s.08-.09.12-.14c.39-.49.61-1.1.61-1.73V6c0-1.52-1.23-2.75-2.75-2.75m1.25 10H16c-.97 0-1.75.78-1.75 1.75v4.25H5c-.69 0-1.25-.56-1.25-1.25V6c0-.69.56-1.25 1.25-1.25h14c.69 0 1.25.56 1.25 1.25z"})]}),Sn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M11.293 1.179a1 1 0 0 1 1.414 0l7.864 7.864a1 1 0 0 1 0 1.414l-2.475 2.475a1 1 0 0 1-1.414 0L14.75 11v1.5c0 1.457.53 2.472 1.592 3.227 1.068.758 2.872 1.381 5.658 1.502.551.024 1 .469 1 1.021v3.5a.974.974 0 0 1-1 .983c-3.542-.123-6.576-.913-8.842-2.522A10 10 0 0 1 12 19.25a10 10 0 0 1-1.158.96c-2.265 1.61-5.3 2.4-8.842 2.523-.552.02-1-.43-1-.983v-3.5c0-.552.449-.997 1-1.021 2.786-.12 4.59-.744 5.658-1.502 1.062-.755 1.592-1.77 1.592-3.227V11l-1.932 1.932a1 1 0 0 1-1.414 0L3.43 10.457a1 1 0 0 1 0-1.414l7.864-7.864Z",clipRule:"evenodd"})]}),_n=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M20.07 3.55a7 7 0 0 0-11.39 7.7.3.3 0 0 1 0 .12l-6.8 6.83a2 2 0 0 0-.53.93l-.29 1.17a2 2 0 0 0 2.16 2.47l1.06-.12A2 2 0 0 0 6 21.15l.47-1.89.26-.25 2.88-.26a2 2 0 0 0 1.71-1.36l.78-2.34.12-.12a.3.3 0 0 1 .12 0 7 7 0 0 0 7.7-11.39zM18 7.79a1.5 1.5 0 1 1-2.122-2.12A1.5 1.5 0 0 1 18 7.79",clipRule:"evenodd"})]}),Cn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 16h1v5a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V6.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 .5.5V21a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V6.5a.5.5 0 0 1 .5-.5H22a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1H8a7 7 0 0 0 0 14",clipRule:"evenodd"})]}),En=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 0c.2 0 .3 0 .5.1s.3.2.4.4l8 14c.1.2.1.3.1.5s0 .3-.1.5-.2.3-.4.4-.3.1-.5.1H4c-.2 0-.3 0-.5-.1s-.3-.2-.4-.4c0-.2-.1-.3-.1-.5s0-.3.1-.5l8-14c.1-.2.2-.3.4-.4s.3-.1.5-.1M4.5 17.4c-.1-.1-.2-.1-.4-.2-.1 0-.3 0-.4.1l-.3.3c-.1.1-.1.3-.1.4v5c0 .2.1.4.2.5s.3.2.5.2.4-.1.5-.2.2-.3.2-.5v-3.4l4.8 4c.1.1.2.1.4.2.1 0 .3 0 .4-.1l.3-.3c.1-.1.1-.3.1-.4v-5c0-.2-.1-.4-.2-.5s-.3-.2-.5-.2-.4.1-.5.2-.2.3-.2.5v3.4zm9.5-.2h4.5c.6 0 1.2.2 1.6.7.4.4.7 1 .7 1.6s-.2 1.2-.7 1.6c-.4.4-1 .7-1.6.7h-3.8V23c0 .2-.1.4-.2.5s-.3.2-.5.2-.4-.1-.5-.2-.2-.3-.2-.5v-5c0-.2.1-.4.2-.5.1-.2.3-.2.5-.3m.7 3v-1.5h3.8c.2 0 .4.1.5.2s.2.3.2.5 0 .5-.2.6c-.1.1-.3.2-.5.2z",clipRule:"evenodd"})]}),kn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M21.94 13.06 15 20v-7h7zM22 11h-7a2 2 0 0 0-2 2v7H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",clipRule:"evenodd"})]}),zn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M20.858 10.158 4.985 2.226a2.06 2.06 0 0 0-2.738 2.799L5.943 12l-3.696 6.965a2.057 2.057 0 0 0 2.738 2.809l15.873-7.932a2.059 2.059 0 0 0 0-3.684",clipRule:"evenodd"})]}),Pn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M22 5v10a2 2 0 0 1-2 2H8.35l-4.73 3.78A1 1 0 0 1 2 20V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2",clipRule:"evenodd"})]}),An=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m21.73 10.2-4.63 3.36L18.87 19a1.5 1.5 0 0 1-2.31 1.68l-4.63-3.37-4.64 3.38A1.5 1.5 0 0 1 4.99 19l1.77-5.45-4.64-3.35A1.5 1.5 0 0 1 3 7.48h5.73L10.5 2a1.5 1.5 0 0 1 2.85 0l1.77 5.44h5.73a1.5 1.5 0 0 1 .88 2.76",clipRule:"evenodd"})]}),Dn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M3.5 6H2V2h4v1.5H3.5zM7 7.25c-.41 0-.75.34-.75.75s.34.75.75.75h4.25V17c0 .41.34.75.75.75s.75-.34.75-.75V8.75H17c.41 0 .75-.34.75-.75s-.34-.75-.75-.75zM18 2v1.5h2.5V6H22V2zM3.5 18H2v4h4v-1.5H3.5zM18 22v-1.5h2.5V18H22v4z"})]}),Tn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M1.5 12c0 5.799 4.701 10.5 10.5 10.5S22.5 17.799 22.5 12 17.799 1.5 12 1.5 1.5 6.201 1.5 12M3 12a9 9 0 0 1 9-9h.005v18h.019H12a9 9 0 0 1-9-9m10.505 8.875a9 9 0 0 0 1.49-.385V3.51a9 9 0 0 0-1.49-.385zM16.495 4.2v15.598a9 9 0 0 0 1.5-1.086V5.287a9 9 0 0 0-1.5-1.086Zm3 2.814v9.97A8.96 8.96 0 0 0 21 12a8.96 8.96 0 0 0-1.505-4.985Z",clipRule:"evenodd"})]}),In=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12.75 12c0-.41-.34-.75-.75-.75s-.75.34-.75.75v2.25H9c-.41 0-.75.34-.75.75s.34.75.75.75h2.25V18c0 .41.34.75.75.75s.75-.34.75-.75v-2.25H15c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-2.25zm7.78-6.03-5.5-5.5a.75.75 0 0 0-.53-.22H5c-.97 0-1.75.78-1.75 1.75v20c0 .97.78 1.75 1.75 1.75h14c.97 0 1.75-.78 1.75-1.75V6.5c0-.2-.08-.39-.22-.53M19.25 22c0 .14-.11.25-.25.25H5c-.14 0-.25-.11-.25-.25V2c0-.14.11-.25.25-.25h8.75V6.5c0 .41.34.75.75.75h4.75z"})]}),Mn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.25 4c0-.968.784-1.747 1.747-1.751 3.193-.014 6.301-.164 9.677-1.673 1.14-.51 2.576.259 2.576 1.62v.054H19c.966 0 1.75.784 1.75 1.75v18A1.75 1.75 0 0 1 19 23.75H5A1.75 1.75 0 0 1 3.25 22zm12.036-2.054a.35.35 0 0 1 .327.022.26.26 0 0 1 .137.229v16.685c0 .072-.03.124-.07.157-3.026 2.412-7.087 3.1-10.701 3.198a.22.22 0 0 1-.172-.078A.25.25 0 0 1 4.75 22V4c0-.137.111-.25.253-.251 3.234-.014 6.607-.16 10.283-1.803M13.075 22.25H19a.25.25 0 0 0 .25-.25V4a.25.25 0 0 0-.25-.25h-1.75v15.132c0 .509-.222 1-.635 1.33a14.1 14.1 0 0 1-3.54 2.038",clipRule:"evenodd"})]}),Nn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M10 .5c-.83 0-1.5.67-1.5 1.5v1H10V2h8v3c0 .55.45 1 1 1h3v12h-3v1.5h3c.83 0 1.5-.67 1.5-1.5V6c0-.4-.16-.78-.44-1.06l-4-4C18.78.66 18.4.5 18 .5zm.75 12.5c0-.41-.34-.75-.75-.75s-.75.34-.75.75v2.25H7c-.41 0-.75.34-.75.75s.34.75.75.75h2.25V19c0 .41.34.75.75.75s.75-.34.75-.75v-2.25H13c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-2.25zm6.31-4.06-4-4c-.28-.28-.66-.44-1.06-.44H4c-.83 0-1.5.67-1.5 1.5v16c0 .83.67 1.5 1.5 1.5h12c.83 0 1.5-.67 1.5-1.5V10c0-.4-.16-.78-.44-1.06M16 22H4V6h8v3c0 .55.45 1 1 1h3z"})]}),On=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M0 6a2 2 0 0 1 2-2h20a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm20.75-1H22a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-1.25zm-1.5 0H4.75v14h14.5zm-16 14V5H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1z",clipRule:"evenodd"})]}),Rn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M21 5a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2zm-4 1h4a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-4zM7 18H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h4zM8.5 6.5h7v11h-7z",clipRule:"evenodd"})]}),jn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M0 3.75h1c.14 0 .25.11.25.25v16c0 .14-.11.25-.25.25H0v1.5h1c.97 0 1.75-.78 1.75-1.75V4c0-.97-.78-1.75-1.75-1.75H0zm18-1.5H6c-.97 0-1.75.78-1.75 1.75v16c0 .97.78 1.75 1.75 1.75h12c.97 0 1.75-.78 1.75-1.75V4c0-.97-.78-1.75-1.75-1.75M18.25 20c0 .14-.11.25-.25.25H6c-.14 0-.25-.11-.25-.25V4c0-.14.11-.25.25-.25h12c.14 0 .25.11.25.25zM23 3.75c-.14 0-.25.11-.25.25v16c0 .14.11.25.25.25h1v1.5h-1c-.97 0-1.75-.78-1.75-1.75V4c0-.97.78-1.75 1.75-1.75h1v1.5z"})]}),Fn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M23.75 19A1.75 1.75 0 0 1 22 20.75H2A1.75 1.75 0 0 1 .25 19V5c0-.966.784-1.75 1.75-1.75h15.5a.75.75 0 0 1 .53.22l5.5 5.5c.141.14.22.331.22.53zm-1.75.25a.25.25 0 0 0 .25-.25v-8.75H17.5a.75.75 0 0 1-.75-.75V4.75H2a.25.25 0 0 0-.25.25v14c0 .138.112.25.25.25z",clipRule:"evenodd"})]}),Bn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 20.75A1.75 1.75 0 0 1 .25 19V5c0-.966.784-1.75 1.75-1.75h20c.966 0 1.75.784 1.75 1.75v14A1.75 1.75 0 0 1 22 20.75zM1.75 5A.25.25 0 0 1 2 4.75h9.25v14.5H2a.25.25 0 0 1-.25-.25zm11-.25v14.5H22a.25.25 0 0 0 .25-.25V5a.25.25 0 0 0-.25-.25z",clipRule:"evenodd"})]}),Ln=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5 1.75a.25.25 0 0 0-.25.25v20c0 .138.112.25.25.25h14a.25.25 0 0 0 .25-.25V2a.25.25 0 0 0-.25-.25zM3.25 2c0-.966.784-1.75 1.75-1.75h14c.966 0 1.75.784 1.75 1.75v20A1.75 1.75 0 0 1 19 23.75H5A1.75 1.75 0 0 1 3.25 22z",clipRule:"evenodd"})]}),Vn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9.5 4A1.5 1.5 0 0 1 11 2.5h7a1.5 1.5 0 0 1 1.06.44l4 4A1.5 1.5 0 0 1 23.5 8v12a1.5 1.5 0 0 1-1.5 1.5H11A1.5 1.5 0 0 1 9.5 20v-2H11v2h11V8h-4V4h-7v6H9.5zM5.591 9.47a.75.75 0 0 0-1.06 0L0 14l4.53 4.53a.75.75 0 0 0 1.061-1.06l-2.72-2.72H16a.75.75 0 0 0 0-1.5H2.871l2.72-2.72a.75.75 0 0 0 0-1.06",clipRule:"evenodd"})]}),Kn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M.5 4c0-.83.67-1.5 1.5-1.5h7c.4 0 .78.16 1.06.44l4 4c.28.28.44.66.44 1.06v2H13V8H9V4H2v16h11v-2h1.5v2c0 .83-.67 1.5-1.5 1.5H2c-.83 0-1.5-.67-1.5-1.5zm17.91 5.47c.29-.29.77-.29 1.06 0L24 14l-4.53 4.53c-.29.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06l2.72-2.72H8c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h13.13l-2.72-2.72a.754.754 0 0 1 0-1.06"})]}),Hn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M11.66 8.18c.1-.4-.14-.81-.55-.91-.4-.1-.81.14-.91.55l-.36 1.43H8.5c-.41 0-.75.34-.75.75s.34.75.75.75h.97l-.62 2.5H7.44c-.41 0-.75.34-.75.75s.34.75.75.75h1.04l-.27 1.07c-.1.4.14.81.55.91.4.1.81-.14.91-.55l.36-1.43h2.45l-.27 1.07c-.1.4.14.81.55.91.4.1.81-.14.91-.55l.36-1.43h1.41c.41 0 .75-.34.75-.75s-.34-.75-.75-.75H14.4l.62-2.5h1.41c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-1.04l.27-1.07c.1-.4-.14-.81-.55-.91-.4-.1-.81.14-.91.55l-.36 1.43h-2.45zm1.18 5.07h-2.45l.62-2.5h2.45zM12 1C5.92 1 1 5.92 1 12s4.92 11 11 11 11-4.92 11-11S18.08 1 12 1m0 20.5c-5.25 0-9.5-4.25-9.5-9.5S6.75 2.5 12 2.5s9.5 4.25 9.5 9.5-4.25 9.5-9.5 9.5",clipRule:"evenodd"})]}),$n=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M11.63 11.28c.4.11.63.53.52.93l-.3 1.04h1.44l.42-1.46c.11-.4.53-.63.93-.52s.63.53.52.93l-.3 1.04h1.01c.41 0 .75.34.75.75s-.34.75-.75.75h-1.43l-.43 1.5h1.01c.41 0 .75.34.75.75s-.34.75-.75.75h-1.43l-.42 1.46c-.11.4-.53.63-.93.52a.755.755 0 0 1-.52-.93l.3-1.04h-1.44l-.42 1.46c-.11.4-.53.63-.93.52a.755.755 0 0 1-.52-.93l.3-1.04H8c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h1.43l.43-1.5H8.85c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h1.43l.42-1.46c.11-.4.53-.63.93-.52m-.21 3.47-.43 1.5h1.44l.43-1.5zm9.11-8.78-5.5-5.5a.75.75 0 0 0-.53-.22H5c-.97 0-1.75.78-1.75 1.75v20c0 .97.78 1.75 1.75 1.75h14c.97 0 1.75-.78 1.75-1.75V6.5c0-.2-.08-.39-.22-.53M19.25 22c0 .14-.11.25-.25.25H5c-.14 0-.25-.11-.25-.25V2c0-.14.11-.25.25-.25h8.75V6.5c0 .41.34.75.75.75h4.75z",clipRule:"evenodd"})]}),Un=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5 .25A1.75 1.75 0 0 0 3.25 2v20c0 .966.784 1.75 1.75 1.75h14A1.75 1.75 0 0 0 20.75 22V6.5a.75.75 0 0 0-.22-.53l-5.5-5.5a.75.75 0 0 0-.53-.22zM4.75 2A.25.25 0 0 1 5 1.75h8.75V6.5c0 .414.336.75.75.75h4.75V22a.25.25 0 0 1-.25.25H5a.25.25 0 0 1-.25-.25z",clipRule:"evenodd"})]}),Wn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8.25 15c0-.41.34-.75.75-.75h6c.41 0 .75.34.75.75s-.34.75-.75.75H9c-.41 0-.75-.34-.75-.75m12.28-9.03-5.5-5.5a.75.75 0 0 0-.53-.22H5c-.97 0-1.75.78-1.75 1.75v20c0 .97.78 1.75 1.75 1.75h14c.97 0 1.75-.78 1.75-1.75V6.5c0-.2-.08-.39-.22-.53M19.25 22c0 .14-.11.25-.25.25H5c-.14 0-.25-.11-.25-.25V2c0-.14.11-.25.25-.25h8.75V6.5c0 .41.34.75.75.75h4.75z"})]}),qn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M5.75 4V0h-1.5v4c0 .97.78 1.75 1.75 1.75h12c.97 0 1.75-.78 1.75-1.75V0h-1.5v4c0 .14-.11.25-.25.25H6c-.14 0-.25-.11-.25-.25m0 5c0-.14.11-.25.25-.25h12c.14 0 .25.11.25.25v15h1.5V9c0-.97-.78-1.75-1.75-1.75H6c-.97 0-1.75.78-1.75 1.75v15h1.5z"})]}),Gn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M3.75 0h-1c-.83 0-1.5.67-1.5 1.5v12c0 .83.67 1.5 1.5 1.5h1v-1.5h-1v-12h1zm3.5 0h1.5v1.5h-1.5v12h1.5V15h-1.5c-.83 0-1.5-.67-1.5-1.5v-12c0-.83.67-1.5 1.5-1.5m15.06 4.44-4-4C18.03.16 17.65 0 17.25 0h-5c-.83 0-1.5.67-1.5 1.5v12c0 .83.67 1.5 1.5 1.5h9c.83 0 1.5-.67 1.5-1.5v-8c0-.4-.16-.78-.44-1.06m-1.06 9.06h-9v-12h5v3c0 .55.45 1 1 1h3zM8.22 20.47a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0L11 21.13v-4.19c0-.41.34-.75.75-.75s.75.34.75.75v4.19l1.72-1.72c.29-.29.77-.29 1.06 0s.29.77 0 1.06L11.75 24z"})]}),Zn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M.25 10.94c0-.41.34-.75.75-.75s.75.34.75.75v2c0 .69.56 1.25 1.25 1.25h18c.69 0 1.25-.56 1.25-1.25v-2c0-.41.34-.75.75-.75s.75.34.75.75v2c0 1.52-1.23 2.75-2.75 2.75h-8.25v5.44l1.72-1.72c.29-.29.77-.29 1.06 0s.29.77 0 1.06L12 24l-3.53-3.53a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l1.72 1.72v-5.44H3c-1.52 0-2.75-1.23-2.75-2.75zM2 .19C1.03.19.25.97.25 1.94v5c0 .97.78 1.75 1.75 1.75h3c.97 0 1.75-.78 1.75-1.75v-5C6.75.97 5.97.19 5 .19zm-.25 1.75c0-.14.11-.25.25-.25h3c.14 0 .25.11.25.25v5c0 .14-.11.25-.25.25H2c-.14 0-.25-.11-.25-.25zm7 0c0-.97.78-1.75 1.75-1.75h3c.97 0 1.75.78 1.75 1.75v5c0 .97-.78 1.75-1.75 1.75h-3c-.97 0-1.75-.78-1.75-1.75zm1.75-.25c-.14 0-.25.11-.25.25v5c0 .14.11.25.25.25h3c.14 0 .25-.11.25-.25v-5c0-.14-.11-.25-.25-.25zM19 .19c-.97 0-1.75.78-1.75 1.75v5c0 .97.78 1.75 1.75 1.75h3c.97 0 1.75-.78 1.75-1.75v-5c0-.97-.78-1.75-1.75-1.75zm-.25 1.75c0-.14.11-.25.25-.25h3c.14 0 .25.11.25.25v5c0 .14-.11.25-.25.25h-3c-.14 0-.25-.11-.25-.25z"})]}),Yn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M15.28 4.59c.29-.29.29-.77 0-1.06L11.75 0 8.22 3.53c-.29.29-.29.77 0 1.06s.77.29 1.06 0L11 2.87V7c0 .41.34.75.75.75s.75-.34.75-.75V2.87l1.72 1.72c.29.29.77.29 1.06 0m7.03 8.85-4-4c-.28-.28-.66-.44-1.06-.44h-5c-.83 0-1.5.67-1.5 1.5v12c0 .83.67 1.5 1.5 1.5h9c.83 0 1.5-.67 1.5-1.5v-8c0-.4-.16-.78-.44-1.06m-1.06 9.06h-9v-12h5v3c0 .55.45 1 1 1h3zM8.75 9h-1.5c-.83 0-1.5.67-1.5 1.5v12c0 .83.67 1.5 1.5 1.5h1.5v-1.5h-1.5v-12h1.5zm-6 0h1v1.5h-1v12h1V24h-1c-.83 0-1.5-.67-1.5-1.5v-12c0-.83.67-1.5 1.5-1.5"})]}),Xn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M.25 13.06c0 .41.34.75.75.75s.75-.34.75-.75v-2c0-.69.56-1.25 1.25-1.25h18c.69 0 1.25.56 1.25 1.25v2c0 .41.34.75.75.75s.75-.34.75-.75v-2c0-1.52-1.23-2.75-2.75-2.75h-8.25V2.87l1.72 1.72c.29.29.77.29 1.06 0s.29-.77 0-1.06L12 0 8.47 3.53c-.29.29-.29.77 0 1.06s.77.29 1.06 0l1.72-1.72v5.44H3C1.48 8.31.25 9.54.25 11.06zM2 23.81c-.97 0-1.75-.78-1.75-1.75v-5c0-.97.78-1.75 1.75-1.75h3c.97 0 1.75.78 1.75 1.75v5c0 .97-.78 1.75-1.75 1.75zm-.25-1.75c0 .14.11.25.25.25h3c.14 0 .25-.11.25-.25v-5c0-.14-.11-.25-.25-.25H2c-.14 0-.25.11-.25.25zm7 0c0 .97.78 1.75 1.75 1.75h3c.97 0 1.75-.78 1.75-1.75v-5c0-.97-.78-1.75-1.75-1.75h-3c-.97 0-1.75.78-1.75 1.75zm1.75.25c-.14 0-.25-.11-.25-.25v-5c0-.14.11-.25.25-.25h3c.14 0 .25.11.25.25v5c0 .14-.11.25-.25.25zm8.5 1.5c-.97 0-1.75-.78-1.75-1.75v-5c0-.97.78-1.75 1.75-1.75h3c.97 0 1.75.78 1.75 1.75v5c0 .97-.78 1.75-1.75 1.75zm-.25-1.75c0 .14.11.25.25.25h3c.14 0 .25-.11.25-.25v-5c0-.14-.11-.25-.25-.25h-3c-.14 0-.25.11-.25.25z"})]}),Jn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M.5 4H2V2h2V.5H2C1.17.5.5 1.17.5 2zm23 0H22V2h-2V.5h2c.83 0 1.5.67 1.5 1.5zm0 3H22v3.5h1.5zm0 6.5H22V17h1.5zm0 6.5H22v2h-2v1.5h2c.83 0 1.5-.67 1.5-1.5zM.5 7H2v3.5H.5zm0 6.5H2V17H.5zm0 6.5H2v2h2v1.5H2c-.83 0-1.5-.67-1.5-1.5zM7 23.5V22h3.5v1.5zm6.5 0V22H17v1.5zM17 .5V2h-3.5V.5zm-6.5 0V2H7V.5zM4 5.5C4 4.67 4.67 4 5.5 4h4c.83 0 1.5.67 1.5 1.5v4c0 .83-.67 1.5-1.5 1.5h-4C4.67 11 4 10.33 4 9.5zm1.5 0v4h4v-4zm-1.5 9c0-.83.67-1.5 1.5-1.5h4c.83 0 1.5.67 1.5 1.5v4c0 .83-.67 1.5-1.5 1.5h-4c-.83 0-1.5-.67-1.5-1.5zm1.5 0v4h4v-4zm9-10.5c-.83 0-1.5.67-1.5 1.5v4c0 .83.67 1.5 1.5 1.5h4c.83 0 1.5-.67 1.5-1.5v-4c0-.83-.67-1.5-1.5-1.5zm0 5.5v-4h4v4zm-1.5 5c0-.83.67-1.5 1.5-1.5h4c.83 0 1.5.67 1.5 1.5v4c0 .83-.67 1.5-1.5 1.5h-4c-.83 0-1.5-.67-1.5-1.5zm1.5 0v4h4v-4z"})]}),Qn=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M.5 4H2V2h2V.5H2C1.17.5.5 1.17.5 2zm23 0H22V2h-2V.5h2c.83 0 1.5.67 1.5 1.5zm0 3H22v3.5h1.5zm0 6.5H22V17h1.5zm0 6.5H22v2h-2v1.5h2c.83 0 1.5-.67 1.5-1.5zM.5 7H2v3.5H.5zm0 6.5H2V17H.5zm0 6.5H2v2h2v1.5H2c-.83 0-1.5-.67-1.5-1.5zM7 23.5V22h3.5v1.5zm6.5 0V22H17v1.5zM17 .5V2h-3.5V.5zm-6.5 0V2H7V.5zm6.03 8.03c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-8 8c-.29.29-.29.77 0 1.06s.77.29 1.06 0z"})]}),er=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M14.5 4.25h-5c-.41 0-.75.34-.75.75s.34.75.75.75h5c.41 0 .75-.34.75-.75s-.34-.75-.75-.75m4.5-3H5c-.97 0-1.75.78-1.75 1.75v18c0 .97.78 1.75 1.75 1.75h14c.97 0 1.75-.78 1.75-1.75V3c0-.97-.78-1.75-1.75-1.75M19.25 21c0 .14-.11.25-.25.25H5c-.14 0-.25-.11-.25-.25V3c0-.14.11-.25.25-.25h14c.14 0 .25.11.25.25z"})]}),tr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M10 1.75h12c.14 0 .25.11.25.25v16c0 .14-.11.25-.25.25h-4v1.5h4c.97 0 1.75-.78 1.75-1.75V2c0-.97-.78-1.75-1.75-1.75H10c-.97 0-1.75.78-1.75 1.75v1h1.5V2c0-.14.11-.25.25-.25m4 1.5c-.41 0-.75.34-.75.75s.34.75.75.75h4c.41 0 .75-.34.75-.75s-.34-.75-.75-.75zm2.06 5.69-4-4c-.28-.28-.66-.44-1.06-.44H3c-.83 0-1.5.67-1.5 1.5v16c0 .83.67 1.5 1.5 1.5h12c.83 0 1.5-.67 1.5-1.5V10c0-.4-.16-.78-.44-1.06M15 22H3V6h8v3c0 .55.45 1 1 1h3z"})]}),nr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9 5.25a.75.75 0 0 1 .75.75v12a.75.75 0 0 1-1.5 0V6A.75.75 0 0 1 9 5.25m6 0a.75.75 0 0 1 .75.75v12a.75.75 0 0 1-1.5 0V6a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})]}),rr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M14.75 3.5a.75.75 0 0 0-1.085-.67l-4 2a.75.75 0 0 0-.415.67v2.75H9a.75.75 0 0 0-.75.75v2a7.25 7.25 0 0 1-2.9 5.8l-.8.6a.75.75 0 0 0-.3.6v4a.75.75 0 0 0 1.5 0v-3.625l.5-.375a8.75 8.75 0 0 0 3.5-7V9.75h4.5V11a8.75 8.75 0 0 0 3.5 7l.5.375V22a.75.75 0 0 0 1.5 0v-4a.75.75 0 0 0-.3-.6l-.8-.6a7.25 7.25 0 0 1-2.9-5.8V9a.75.75 0 0 0-.75-.75h-.25z"})]}),or=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M13 4a1 1 0 1 0-2 0v2.25h-1a.75.75 0 0 0-.75.75v2.671c0 1.357-.957 2.577-2.157 3.8A6.4 6.4 0 0 0 5.25 18v3a.75.75 0 0 0 1.5 0v-3c0-1.386.536-2.586 1.413-3.479 1.175-1.196 2.587-2.816 2.587-4.85V7.75h2.5v1.921c0 2.035 1.412 3.654 2.587 4.85A4.9 4.9 0 0 1 17.25 18v3a.75.75 0 0 0 1.5 0v-3a6.4 6.4 0 0 0-1.843-4.53c-1.2-1.222-2.157-2.442-2.157-3.799V7a.75.75 0 0 0-.75-.75h-1z"})]}),ir=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M4.735 1.693A1.5 1.5 0 0 0 2.5 3v5.5H.75a.75.75 0 0 0 0 1.5h5a.75.75 0 0 0 0-1.5H4V3l16 9-16 9v-6.33l1.002.89a.75.75 0 0 0 .996-1.12L3.25 11.995.502 14.44a.75.75 0 0 0 .996 1.122l1.002-.89V21a1.5 1.5 0 0 0 2.235 1.307l16-9a1.5 1.5 0 0 0 0-2.614z"})]}),ar=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5.25 6.5a6.25 6.25 0 1 1 7 6.206V22l-.75 1.75-.75-1.75v-9.294A6.25 6.25 0 0 1 5.25 6.5m6.25-3.25a.75.75 0 0 0 0 1.5c.966 0 1.75.784 1.75 1.75a.75.75 0 0 0 1.5 0 3.25 3.25 0 0 0-3.25-3.25",clipRule:"evenodd"})]}),sr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M10.75 4c0-.41.34-.75.75-.75 1.79 0 3.25 1.46 3.25 3.25 0 .41-.34.75-.75.75s-.75-.34-.75-.75c0-.97-.78-1.75-1.75-1.75-.41 0-.75-.34-.75-.75M11.5.25a6.252 6.252 0 0 0-.75 12.46V22l.75 1.75.75-1.75v-9.29A6.252 6.252 0 0 0 11.5.25m0 11c-2.62 0-4.75-2.13-4.75-4.75s2.13-4.75 4.75-4.75 4.75 2.13 4.75 4.75-2.13 4.75-4.75 4.75"})]}),lr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m19.506 11.728-1.414 1.414a1 1 0 0 1-1.414 0l-.708-.707-8.308 8.309a3.75 3.75 0 0 1-2.122 1.06l-.247.036a3 3 0 0 0-1.697.848l-2.121-2.121a3 3 0 0 0 .848-1.697l.035-.248a3.75 3.75 0 0 1 1.061-2.121l8.309-8.309-.707-.707a1 1 0 0 1 0-1.414l1.414-1.414a1 1 0 0 1 1.414 0 1 1 0 0 0 1.415 0l2.12-2.122a3 3 0 0 1 4.244 4.243L19.506 8.9a1 1 0 0 0 0 1.415 1 1 0 0 1 0 1.414Zm-1.06-3.89a2.5 2.5 0 0 0-.319 3.147l-.742.743-4.95-4.95.743-.742a2.5 2.5 0 0 0 3.146-.319l2.122-2.12a1.5 1.5 0 1 1 2.12 2.12zM3.414 20.386l.364.364c.41-.196.848-.33 1.303-.394l.247-.036a2.25 2.25 0 0 0 1.273-.636l8.309-8.309-2.122-2.121-8.308 8.308a2.25 2.25 0 0 0-.637 1.273l-.035.248a4.5 4.5 0 0 1-.394 1.303",clipRule:"evenodd"})]}),cr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 18.865 19.562 12 8 5.135zM6.5 4.257v15.486a1 1 0 0 0 1.51.86l13.042-7.743a1 1 0 0 0 0-1.72L8.01 3.397a1 1 0 0 0-1.511.86Z",clipRule:"evenodd"})]}),ur=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11m.75-16a.75.75 0 0 0-1.5 0v4.25H7a.75.75 0 0 0 0 1.5h4.25V17a.75.75 0 0 0 1.5 0v-4.25H17a.75.75 0 0 0 0-1.5h-4.25z",clipRule:"evenodd"})]}),dr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12.75 7c0-.41-.34-.75-.75-.75s-.75.34-.75.75v4.25H7c-.41 0-.75.34-.75.75s.34.75.75.75h4.25V17c0 .41.34.75.75.75s.75-.34.75-.75v-4.25H17c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-4.25zM12 1C5.92 1 1 5.92 1 12s4.92 11 11 11 11-4.92 11-11S18.08 1 12 1m0 20.5c-5.25 0-9.5-4.25-9.5-9.5S6.75 2.5 12 2.5s9.5 4.25 9.5 9.5-4.25 9.5-9.5 9.5"})]}),pr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 4.25a.75.75 0 0 1 .75.75v6.25H19a.75.75 0 0 1 0 1.5h-6.25V19a.75.75 0 0 1-1.5 0v-6.25H5a.75.75 0 0 1 0-1.5h6.25V5a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})]}),hr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.168 3.91v.002l5.686 17.046.001.002a.586.586 0 0 0 1.111-.01v-.003l2.582-8.397 8.4-2.576a.583.583 0 0 0 .305-.898.6.6 0 0 0-.292-.217L3.907 3.171a.585.585 0 0 0-.739.74Zm8.23 17.484a2.083 2.083 0 0 1-3.965.043L1.746 4.387a2.085 2.085 0 0 1 2.638-2.638l17.05 5.687a2.087 2.087 0 0 1 1.01 3.23 2.1 2.1 0 0 1-1.06.743l-7.636 2.342z",clipRule:"evenodd"})]}),fr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.735 1.693A1.5 1.5 0 0 0 2.5 3v18a1.5 1.5 0 0 0 2.235 1.307l16-9a1.5 1.5 0 0 0 0-2.614zM20 12 4 21v-3.34l12.861-7.426zm-4.152-2.335L4 16.505v-3.464l8.81-5.086zm-4.052-2.28L4 11.887V8.423l4.757-2.747 3.04 1.71ZM4 7.268l3.744-2.162L4 3z",clipRule:"evenodd"})]}),mr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M21.79 11.552c-.08-.77-.42-1.51-.95-2.08-.53-.56-1.24-.95-2-1.08-.45-.08-.92-.06-1.36.03-.09-.27-.22-.54-.38-.78-.32-.5-.75-.91-1.25-1.19-.51-.3-1.08-.47-1.67-.49-.28-.01-.55.01-.82.06-.09-.26-.2-.52-.34-.76-.32-.48-.75-.9-1.26-1.19s-1.08-.46-1.67-.49c-.3-.02-.6.01-.9.07a3.54 3.54 0 0 0-1.9-2.06c-.62-.3-1.3-.4-1.97-.31-.66.09-1.29.36-1.81.78-.53.43-.92.99-1.14 1.63-.21.64-.25 1.33-.1 1.98.13.57.4 1.09.81 1.57-.17.2-.32.43-.45.66-.26.52-.4 1.1-.4 1.68s.14 1.16.42 1.71c.14.24.3.47.49.67-.19.21-.36.44-.5.7-.26.52-.4 1.1-.4 1.68s.14 1.16.41 1.7c.14.25.3.48.5.69-.22.24-.41.51-.56.81-.3.61-.43 1.29-.36 1.98.07.67.32 1.3.73 1.84s.97.96 1.6 1.2c.41.16.84.23 1.28.23.24 0 .48-.02.72-.07.65-.14 1.26-.45 1.75-.9.45-.42.78-.95.98-1.55.23.05.47.08.71.08h.17c.58-.03 1.15-.2 1.67-.5.51-.31.94-.74 1.24-1.24.14-.22.25-.46.34-.71.22.04.44.07.66.07h.16c.59-.03 1.16-.2 1.67-.49a3.7 3.7 0 0 0 1.62-1.96c.23.04.45.07.68.07.31 0 .63-.04.94-.12.84-.23 1.56-.75 2.05-1.47s.7-1.59.61-2.44zm-1.85 1.6c-.29.42-.72.73-1.2.86-.44.12-.9.09-1.33-.08s-.78-.46-1.03-.84a.747.747 0 0 0-1.04-.22c-.35.22-.45.69-.22 1.04.26.41.6.75 1 1.02-.06.2-.13.39-.25.56-.19.29-.44.53-.74.71-.3.17-.64.27-.98.29-.27.01-.54-.04-.8-.13-.03-.03-.06-.06-.1-.08 0 0-.02-.01-.03-.02-.38-.21-.71-.51-.93-.88a.748.748 0 0 0-1.29.76c.26.46.62.86 1.04 1.16-.06.19-.14.37-.25.55-.19.3-.45.56-.73.74-.3.17-.64.27-.98.29-.34.01-.68-.05-.99-.2-.25-.14-.48-.32-.67-.53a.746.746 0 0 0-1.06-.06c-.31.27-.34.75-.06 1.06.18.21.39.39.61.56v.04c-.11.39-.32.73-.61 1s-.66.46-1.04.54c-.39.08-.79.04-1.17-.1-.37-.14-.7-.38-.94-.7s-.39-.7-.43-1.09c-.04-.4.04-.8.21-1.15.18-.36.46-.65.8-.86s.73-.32 1.13-.32c.41 0 .75-.34.75-.75 0-.02-.01-.04-.01-.06v-.02c0-.41-.33-.74-.74-.75-.53 0-1.06.1-1.54.32-.13-.13-.24-.28-.33-.44-.16-.31-.24-.66-.24-1 0-.35.08-.69.22-.97.17-.3.4-.56.68-.75.05-.04.08-.08.12-.13.34-.18.7-.29 1.09-.3.41 0 .74-.35.73-.76 0-.41-.34-.74-.75-.74-.53 0-1.05.11-1.53.33-.13-.14-.25-.28-.33-.44a2.2 2.2 0 0 1-.24-1.01c0-.35.08-.69.24-.99.15-.29.37-.54.63-.74.25-.14.52-.25.8-.29a.76.76 0 0 0 .62-.86.76.76 0 0 0-.86-.62c-.31.05-.61.14-.89.26-.26-.28-.45-.62-.53-1-.09-.39-.07-.79.06-1.16s.36-.7.66-.95a2.14 2.14 0 0 1 2.22-.29c.36.16.66.42.89.76.22.32.34.7.35 1.11 0 .19-.01.37-.06.55-.02.09-.06.17-.09.25-.04.1-.07.21-.13.31a.752.752 0 1 0 1.3.76l.03-.06s.01 0 .01-.02c.02-.04.04-.09.06-.13.06-.12.11-.23.16-.35.13-.32.23-.65.26-1 .19-.04.38-.06.57-.05.35.02.69.12.99.29.3.18.56.42.73.69.17.29.27.62.29.95 0 .44-.1.87-.31 1.25-.2.36-.07.81.29 1.01s.81.08 1.02-.28c.26-.46.43-.96.48-1.48.19-.05.4-.07.6-.06.34.01.68.11.98.29.3.17.55.41.74.7.18.29.29.61.33.95 0 .3-.05.59-.13.87a.75.75 0 0 0 .72.97c.32 0 .62-.21.72-.53.08-.25.12-.5.16-.76.31-.09.63-.14.95-.08.45.08.86.31 1.17.63.31.33.5.76.55 1.21a2.1 2.1 0 0 1-.36 1.44z"})]}),gr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"m6.72 4.594.73-1.3-2.71-1.53c-1-.56-2.24.16-2.24 1.31v2.99H4v-3zm4.35 2.45-2.61-1.47.74-1.31 2.61 1.47zm9.68 3.72c1.02.57 1.02 2.04 0 2.61l-2.84 1.6-.73-1.31 2.84-1.59-2.84-1.6.73-1.31 2.84 1.59zm-4.58 5.2-2.61 1.47-.74-1.31 2.61-1.47zm-6.97 3.92 2.61-1.47-.74-1.31-2.61 1.47zm-1.75.98-2.71 1.53c-1 .56-2.24-.16-2.24-1.31v-3.02H4v3.02l2.72-1.53zm5.37-12.83 2.61 1.47.74-1.31-2.61-1.47zM4 16.064v-3H2.5v3zm0-8v3H2.5v-3z"})]}),vr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.243 1.705a1.5 1.5 0 0 1 1.492-.012l16 9a1.5 1.5 0 0 1 0 2.614l-16 9A1.5 1.5 0 0 1 2.5 21V3a1.5 1.5 0 0 1 .743-1.295M4 21l16-9L4 3z",clipRule:"evenodd"})]}),yr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M22.427 3.383a.75.75 0 0 1 .19 1.044l-7.62 11a.75.75 0 0 1-1.16.09l-4.126-4.333-7.094 10.243a.75.75 0 0 1-1.233-.854l7.619-11a.75.75 0 0 1 1.16-.09l4.126 4.333 7.095-10.243a.75.75 0 0 1 1.043-.19",clipRule:"evenodd"})]}),br=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12.75 1a.75.75 0 0 0-1.5 0v.777a10.25 10.25 0 0 0-9.473 9.473H1a.75.75 0 0 0 0 1.5h.777a10.25 10.25 0 0 0 9.473 9.473V23a.75.75 0 0 0 1.5 0v-.777a10.25 10.25 0 0 0 9.473-9.473H23a.75.75 0 0 0 0-1.5h-.777a10.25 10.25 0 0 0-9.473-9.473zm-1.5 2.282V4a.75.75 0 0 0 1.5 0v-.718a8.75 8.75 0 0 1 7.968 7.968H20a.75.75 0 0 0 0 1.5h.718a8.75 8.75 0 0 1-7.968 7.968V20a.75.75 0 0 0-1.5 0v.718a8.75 8.75 0 0 1-7.968-7.968H4a.75.75 0 0 0 0-1.5h-.718a8.75 8.75 0 0 1 7.968-7.968M12 8.25a.75.75 0 0 1 .75.75v2.25H15a.75.75 0 0 1 0 1.5h-2.25V15a.75.75 0 0 1-1.5 0v-2.25H9a.75.75 0 0 1 0-1.5h2.25V9a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})]}),wr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M17.5 9c0 .55-.45 1-1 1s-1-.45-1-1 .45-1 1-1 1 .45 1 1M10 15.25c-.41 0-.75.34-.75.75s.34.75.75.75h4c.41 0 .75-.34.75-.75s-.34-.75-.75-.75zm0 3c-.41 0-.75.34-.75.75s.34.75.75.75h4c.41 0 .75-.34.75-.75s-.34-.75-.75-.75zm11-13h-2.25V3.5c0-.97-.78-1.75-1.75-1.75H7c-.97 0-1.75.78-1.75 1.75v1.75H3C1.48 5.25.25 6.48.25 8v8c0 1.52 1.23 2.75 2.75 2.75h2.25V22c0 .97.78 1.75 1.75 1.75h10c.97 0 1.75-.78 1.75-1.75v-3.25H21c1.52 0 2.75-1.23 2.75-2.75V8c0-1.52-1.23-2.75-2.75-2.75M6.75 3.5c0-.14.11-.25.25-.25h10c.14 0 .25.11.25.25v1.75H6.75zM17.25 22c0 .14-.11.25-.25.25H7c-.14 0-.25-.11-.25-.25v-9c0-.14.11-.25.25-.25h10c.14 0 .25.11.25.25zm5-6c0 .69-.56 1.25-1.25 1.25h-2.25V13c0-.97-.78-1.75-1.75-1.75H7c-.97 0-1.75.78-1.75 1.75v4.25H3c-.69 0-1.25-.56-1.25-1.25V8c0-.69.56-1.25 1.25-1.25h18c.69 0 1.25.56 1.25 1.25z"})]}),xr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M23.41 9.63a.754.754 0 0 1-1.04-.22h-.01l-.02-.04v-.02s-.09-.12-.16-.21c-.13-.18-.32-.45-.58-.76-.51-.64-1.26-1.48-2.19-2.32-1.9-1.7-4.47-3.31-7.41-3.31S6.49 4.36 4.59 6.06c-.93.84-1.68 1.68-2.19 2.32-.2.24-.36.45-.48.62.12.17.28.38.48.62.51.64 1.26 1.48 2.19 2.32 1.9 1.7 4.47 3.31 7.41 3.31.41 0 .75.34.75.75s-.34.75-.75.75c-3.48 0-6.4-1.89-8.41-3.69-1.01-.91-1.81-1.82-2.36-2.5-.27-.34-.48-.62-.63-.82-.07-.1-.13-.18-.17-.24a.15.15 0 0 0-.04-.06v-.02l-.02-.01L.1 9l.27-.41h.01l.01-.03c.01-.01.03-.03.04-.06.04-.06.1-.14.17-.24.15-.2.36-.48.63-.82.55-.68 1.35-1.59 2.36-2.5C5.6 3.14 8.52 1.25 12 1.25s6.4 1.89 8.41 3.69c1.01.91 1.81 1.82 2.36 2.5.27.34.48.62.63.82.07.1.13.18.17.24.01.03.03.05.04.06v.02l.02.01c.22.35.13.81-.22 1.04M12 7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m5 2c0 2.76-2.24 5-5 5s-5-2.24-5-5 2.24-5 5-5 5 2.24 5 5m-1.5 0c0-1.93-1.57-3.5-3.5-3.5S8.5 7.07 8.5 9s1.57 3.5 3.5 3.5 3.5-1.57 3.5-3.5m8.5 9.5V22c0 1.1-.9 2-2 2h-5c-1.1 0-2-.9-2-2v-3.5c0-1.02.76-1.86 1.75-1.98V15c0-1.52 1.23-2.75 2.75-2.75s2.75 1.23 2.75 2.75v1.52c.99.12 1.75.96 1.75 1.98m-5.75-2h2.5V15a1.25 1.25 0 0 0-2.5 0zm4.25 2c0-.28-.22-.5-.5-.5h-5c-.28 0-.5.22-.5.5V22c0 .28.22.5.5.5h5c.28 0 .5-.22.5-.5z",clipRule:"evenodd"})]}),Sr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7 2.25a.75.75 0 0 0-.75.75v.558a2.75 2.75 0 0 0 1.88 2.61l.789.262a.25.25 0 0 1 .165.288l-.752 3.615A6.75 6.75 0 0 0 5.25 16c0 .414.336.75.75.75h5.25V22l.75 1.75.75-1.75v-5.25H18a.75.75 0 0 0 .75-.75 6.75 6.75 0 0 0-3.082-5.667l-.752-3.615a.25.25 0 0 1 .165-.288l.789-.263a2.75 2.75 0 0 0 1.88-2.609V3a.75.75 0 0 0-.75-.75zm10.197 13a5.253 5.253 0 0 0-7.821-3.798 5.25 5.25 0 0 0-2.573 3.798zM12 9.25a6.8 6.8 0 0 0-1.972.293l.525-2.519a1.75 1.75 0 0 0-1.16-2.017l-.788-.263a1.25 1.25 0 0 1-.84-.994h8.47a1.25 1.25 0 0 1-.84.994l-.788.263a1.75 1.75 0 0 0-1.16 2.017l.525 2.519A6.8 6.8 0 0 0 12 9.25",clipRule:"evenodd"})]}),_r=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 21.5a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19m0 1.5c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11m1.25-5.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M9.75 9a2.25 2.25 0 1 1 2.986 2.127c-.678.235-1.486.87-1.486 1.873v.5a.75.75 0 0 0 1.5 0V13c0-.056.02-.13.102-.219a.9.9 0 0 1 .375-.237A3.751 3.751 0 0 0 12 5.25 3.75 3.75 0 0 0 8.25 9a.75.75 0 0 0 1.5 0",clipRule:"evenodd"})]}),Cr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M14.002 3.25c-.41 0-.75.34-.75.75s.34.75.75.75h7c.41 0 .75-.34.75-.75s-.34-.75-.75-.75zM13.252 8c0-.41.34-.75.75-.75h7c.41 0 .75.34.75.75s-.34.75-.75.75h-7c-.41 0-.75-.34-.75-.75m-1.58 3.66-4-8a.76.76 0 0 0-.67-.41.76.76 0 0 0-.67.41l-4 8c-.19.38-.04.83.33 1.01.38.19.83.04 1.01-.33l1.29-2.59h4.08l1.29 2.59c.18.37.64.52 1.01.33.37-.18.52-.63.33-1.01m-5.96-3.41 1.29-2.57 1.29 2.57zm7.54 3.75c0-.41.34-.75.75-.75h7c.41 0 .75.34.75.75s-.34.75-.75.75h-7c-.41 0-.75-.34-.75-.75m-10.25 3.25c-.41 0-.75.34-.75.75s.34.75.75.75h18c.41 0 .75-.34.75-.75s-.34-.75-.75-.75zM2.252 20c0-.41.34-.75.75-.75h18c.41 0 .75.34.75.75s-.34.75-.75.75h-18c-.41 0-.75-.34-.75-.75"})]}),Er=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3 4a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm1.5 3.554V4.5h5.553zm0 1.141v2.86L17.326 4.5h-5.198zM19.4 4.5 4.5 12.695v2.86l15-8.25V4.5zm.1 3.945-15 8.25V19.5h.099L19.5 11.304zm0 4L6.674 19.5h5.197l7.629-4.196zm0 4L13.946 19.5H19.5z",clipRule:"evenodd"})]}),kr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M19.143 1.25a3.74 3.74 0 0 0-2.381.86 3.74 3.74 0 0 0-2.38-.86c-.854 0-1.726.306-2.382.86a3.74 3.74 0 0 0-2.38-.86c-.854 0-1.726.306-2.382.86a3.74 3.74 0 0 0-2.38-.86c-2.034 0-3.608 1.574-3.608 3.607 0 .853.306 1.726.86 2.381a3.74 3.74 0 0 0-.86 2.381c0 .853.306 1.725.86 2.381a3.74 3.74 0 0 0-.86 2.38c0 .854.306 1.726.86 2.382a3.74 3.74 0 0 0-.86 2.38c0 2.034 1.574 3.608 3.607 3.608.853 0 1.726-.306 2.381-.86.656.554 1.528.86 2.381.86s1.726-.306 2.381-.86c.656.554 1.528.86 2.381.86s1.725-.306 2.38-.86c.657.554 1.529.86 2.382.86 2.033 0 3.607-1.574 3.607-3.607a3.74 3.74 0 0 0-.861-2.381c.555-.656.86-1.528.86-2.381s-.305-1.725-.86-2.381c.555-.656.86-1.528.86-2.38 0-.854-.305-1.726-.86-2.382.555-.655.86-1.528.86-2.38 0-2.034-1.573-3.608-3.606-3.608m-3.024 2.375c-.323-.508-1.013-.875-1.738-.875-.572 0-1.121.228-1.486.573.2.436.331.924.331 1.534a.75.75 0 0 1-1.5 0c0-.41-.139-.85-.368-1.232-.324-.508-1.013-.875-1.739-.875a2.2 2.2 0 0 0-1.486.573c.2.436.332.924.332 1.534a.75.75 0 1 1-1.5 0c0-.405-.136-.839-.36-1.218l-.003-.003c-.32-.514-1.015-.886-1.745-.886-1.205 0-2.107.902-2.107 2.107 0 .572.228 1.121.573 1.487.436-.2.924-.332 1.534-.332a.75.75 0 1 1 0 1.5c-.408 0-.845.138-1.227.366-.51.322-.88 1.013-.88 1.741 0 .572.228 1.121.573 1.487.436-.2.924-.332 1.534-.332a.75.75 0 0 1 0 1.5c-.408 0-.845.138-1.227.366-.51.322-.88 1.013-.88 1.74 0 .573.228 1.122.573 1.487.436-.2.924-.331 1.534-.331a.75.75 0 0 1 0 1.5c-.408 0-.845.138-1.227.365-.51.323-.88 1.014-.88 1.742 0 1.205.902 2.107 2.107 2.107a2.2 2.2 0 0 0 1.487-.573 3.56 3.56 0 0 1-.332-1.534.75.75 0 0 1 1.5 0c0 .405.136.839.36 1.219l.002.002c.321.514 1.015.886 1.745.886a2.2 2.2 0 0 0 1.487-.573 3.56 3.56 0 0 1-.332-1.534.75.75 0 1 1 1.5 0c0 .41.14.85.369 1.232.323.508 1.013.875 1.738.875a2.2 2.2 0 0 0 1.487-.573 3.56 3.56 0 0 1-.332-1.534.75.75 0 1 1 1.5 0c0 .41.14.85.369 1.232.323.508 1.012.875 1.738.875 1.205 0 2.107-.902 2.107-2.107 0-.572-.228-1.121-.574-1.487-.435.2-.923.332-1.533.332a.75.75 0 0 1 0-1.5c.407 0 .842-.137 1.223-.363.512-.322.884-1.015.884-1.744 0-.572-.228-1.121-.574-1.487-.435.2-.923.332-1.533.332a.75.75 0 0 1 0-1.5c.408 0 .845-.138 1.227-.366.51-.322.88-1.013.88-1.74 0-.573-.228-1.122-.574-1.488-.435.2-.923.332-1.533.332a.75.75 0 0 1 0-1.5c.41 0 .848-.138 1.23-.367.509-.324.877-1.014.877-1.74 0-1.205-.902-2.107-2.107-2.107a2.2 2.2 0 0 0-1.487.573c.2.436.332.924.332 1.534a.75.75 0 0 1-1.5 0c0-.41-.14-.85-.369-1.232",clipRule:"evenodd"})]}),zr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M21 6h-1.5V4.5H18V3h2c.55 0 1 .45 1 1zM3 18h1.5v1.5H6V21H4c-.55 0-1-.45-1-1zM4.5 6H3V4c0-.55.45-1 1-1h2v1.5H4.5zM21 18h-1.5v1.5H18V21h2c.55 0 1-.45 1-1zM8 4.5V3h3v1.5zm0 15V21h3v-1.5zM3 8h1.5v3H3zm18 0h-1.5v3H21zm-8-3.5V3h3v1.5zm0 15V21h3v-1.5zM3 13h1.5v3H3zm18 0h-1.5v3H21z"})]}),Pr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.5 4.5v15h15v-15zM4 3a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1z",clipRule:"evenodd"})]}),Ar=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M3.528 1.468a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06l1.97 1.97-1.97 1.97c-.29.29-.29.77 0 1.06s.77.29 1.06 0l1.97-1.97 1.97 1.97c.29.29.77.29 1.06 0s.29-.77 0-1.06l-1.97-1.97 1.97-1.97c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-1.97 1.97zm16.51 9.07-4.96 4.96c-.68.67-1.78.67-2.46-.01-.69-.68-.69-1.79 0-2.47l8.48-8.49c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-17.68 17.68a.74.74 0 0 0-.11.91c.17.29.52.43.85.34l9.9-2.83c.12-.03.23-.1.32-.19l7.78-7.78c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0m-7.64 7.64-6.93 1.98 5.21-5.21c.13.59.42 1.15.88 1.6.45.46 1.01.75 1.59.88z"})]}),Dr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.75 1.25h-9.5v9.5h9.5zm-8 8v-6.5h6.5v6.5zm18.352-5.78a.75.75 0 0 1 0 1.06l-8.486 8.486a1.75 1.75 0 0 0 2.468 2.482l4.957-4.957a.75.75 0 0 1 1.06 1.06l-7.778 7.779a.75.75 0 0 1-.324.19L3.1 22.4a.75.75 0 0 1-.736-1.252L20.041 3.47a.75.75 0 0 1 1.06 0ZM5.47 20.16l5.209-5.209c.128.586.42 1.144.876 1.6a3.24 3.24 0 0 0 1.598.875l-.754.755-6.93 1.98Z",clipRule:"evenodd"})]}),Tr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10.75 1.25h-9.5V4a.75.75 0 0 0 1.5 0V2.75h2.5v6.5H4.5a.75.75 0 0 0 0 1.5h3a.75.75 0 0 0 0-1.5h-.75v-6.5h2.5V4a.75.75 0 0 0 1.5 0zm10.352 2.22a.75.75 0 0 1 0 1.06l-8.486 8.486a1.75 1.75 0 0 0 2.468 2.482l4.957-4.957a.75.75 0 0 1 1.06 1.06l-4.95 4.95-.01.01-2.818 2.819a.75.75 0 0 1-.324.19L3.1 22.4a.75.75 0 0 1-.736-1.252L20.041 3.47a.75.75 0 0 1 1.06 0ZM5.47 20.16l5.209-5.209c.128.586.42 1.144.876 1.6a3.24 3.24 0 0 0 1.598.875l-.754.755-6.93 1.98Z",clipRule:"evenodd"})]}),Ir=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7 4a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1zM1 14a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1zm11.496-9.74h-1.222L9.01 10h1.205l.46-1.263h2.418L13.545 10h1.206zm-.615 1.132.852 2.337h-1.697zm6.845-1.132h-1.222L15.241 10h1.205l.46-1.263h2.418L19.775 10h1.206zm-.615 1.132.853 2.337h-1.698zm-.492 8.868h1.222L21.096 20H19.89l-.45-1.263h-2.42L16.561 20h-1.205zm1.46 3.469-.853-2.337-.845 2.337h1.697ZM12.61 14.26h-1.222L9.126 20h1.205l.46-1.263h2.418L13.66 20h1.206l-2.255-5.74Zm-.615 1.132.852 2.337H11.15zM5.159 14.26H6.38L8.636 20H7.43l-.45-1.263H4.56L4.1 20H2.897l2.263-5.74Zm1.46 3.469-.853-2.337-.845 2.337z",clipRule:"evenodd"})]}),Mr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8 3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zm10.726 1.26h-1.222L15.241 10h1.205l.46-1.263h2.418L19.775 10h1.206zm-.615 1.132.853 2.337h-1.698zM11.274 4.26h1.222L14.75 10h-1.206l-.45-1.263h-2.42L10.216 10H9.011zm1.46 3.469-.853-2.337-.845 2.337h1.697ZM2 13a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1z",clipRule:"evenodd"})]}),Nr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M17.47 3.47a.75.75 0 0 0 0 1.06l2.72 2.72H17a.75.75 0 0 0 0 1.5h3.19l-2.72 2.72a.75.75 0 1 0 1.06 1.06L23.06 8l-4.53-4.53a.75.75 0 0 0-1.06 0m-8 0a.75.75 0 0 0 0 1.06l2.72 2.72H10a6.75 6.75 0 0 0 0 13.5h2a.75.75 0 0 0 0-1.5h-2a5.25 5.25 0 1 1 0-10.5h2.19l-2.72 2.72a.75.75 0 1 0 1.06 1.06L15.06 8l-4.53-4.53a.75.75 0 0 0-1.06 0",clipRule:"evenodd"})]}),Or=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M15.47 3.47a.75.75 0 0 0 0 1.06l2.72 2.72H10a6.75 6.75 0 0 0 0 13.5h2a.75.75 0 0 0 0-1.5h-2a5.25 5.25 0 1 1 0-10.5h8.19l-2.72 2.72a.75.75 0 1 0 1.06 1.06L21.06 8l-4.53-4.53a.75.75 0 0 0-1.06 0",clipRule:"evenodd"})]}),Rr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M15 1.25a.75.75 0 0 1 .75.75v5.19l3.67-3.67a.75.75 0 0 1 1.06 1.06l-3.67 3.67H22a.75.75 0 0 1 0 1.5h-5.19l3.67 3.67a.75.75 0 0 1-1.06 1.06l-3.67-3.67V16a.75.75 0 0 1-1.5 0v-5.19l-3.67 3.67a.75.75 0 1 1-1.06-1.06l3.67-3.67H8a.75.75 0 0 1 0-1.5h5.19L9.52 4.58a.75.75 0 0 1 1.06-1.06l3.67 3.67V2a.75.75 0 0 1 .75-.75M5 21a2 2 0 1 1-4 0 2 2 0 0 1 4 0",clipRule:"evenodd"})]}),jr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"m18.216 12.55-.02.19-1.56-1.86a.75.75 0 0 0-1.06-.09c-.32.27-.36.74-.09 1.06l2.72 3.25c.27.32.74.36 1.06.09l3.25-2.72c.32-.27.36-.74.09-1.06a.75.75 0 0 0-1.06-.09l-1.86 1.56.02-.19c.39-4.27-2.77-8.03-7.03-8.41a7.72 7.72 0 0 0-5.72 1.83c-.31.27-.35.74-.08 1.06.27.31.74.35 1.06.08a6.26 6.26 0 0 1 4.61-1.48c3.44.3 5.98 3.34 5.68 6.78zm-2.16 4.2c.31-.27.79-.23 1.06.08s.23.79-.08 1.06a7.72 7.72 0 0 1-5.72 1.83 7.76 7.76 0 0 1-7.04-8.4l.02-.19-1.86 1.56c-.32.27-.79.22-1.06-.09a.757.757 0 0 1 .09-1.06l3.25-2.72c.32-.27.79-.22 1.06.09l2.72 3.25c.27.32.22.79-.09 1.06s-.79.22-1.06-.09l-1.56-1.86-.02.19a6.26 6.26 0 0 0 5.68 6.78c1.74.15 3.38-.42 4.61-1.48z"})]}),Fr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M20.75 20.25V22A1.75 1.75 0 0 1 19 23.75H5A1.75 1.75 0 0 1 3.25 22V6.5a.75.75 0 0 1 .22-.53l5.5-5.5A.75.75 0 0 1 9.5.25H19c.966 0 1.75.784 1.75 1.75v1.75h1.75a.75.75 0 0 1 0 1.5h-1.75v3.5h1.75a.75.75 0 0 1 0 1.5h-1.75v3.5h1.75a.75.75 0 0 1 0 1.5h-1.75v3.5h1.75a.75.75 0 0 1 0 1.5zM19 1.75a.25.25 0 0 1 .25.25v1.75H17.5a.75.75 0 0 0 0 1.5h1.75v3.5H17.5a.75.75 0 0 0 0 1.5h1.75v3.5H17.5a.75.75 0 0 0 0 1.5h1.75v3.5H17.5a.75.75 0 0 0 0 1.5h1.75V22a.25.25 0 0 1-.25.25H5a.25.25 0 0 1-.25-.25V7.25H9.5a.75.75 0 0 0 .75-.75V1.75z",clipRule:"evenodd"})]}),Br=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3 23a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v18a2 2 0 0 1-2 2zM9 2h6v6H9zM8 8V2H3a1 1 0 0 0-1 1v5zM2 9v6h6V9zm7 0h6v6H9zm7 0v6h5V9zm5-1V2h-5v6zM9 16h6v6H9zm-7 5v-5h6v6H3a1 1 0 0 1-1-1m19-5h-5v6h5z",clipRule:"evenodd"})]}),Lr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M11.006 2.564a.75.75 0 0 1 .988-1.128l4 3.5a.75.75 0 0 1 0 1.128l-4 3.5a.75.75 0 0 1-.988-1.128l2.558-2.239a6.25 6.25 0 1 0 4.686 6.053.75.75 0 0 1 1.5 0 7.75 7.75 0 1 1-6.397-7.632z"})]}),Vr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12.994 2.564a.75.75 0 0 0-.988-1.128l-4 3.5a.75.75 0 0 0 0 1.128l4 3.5a.75.75 0 0 0 .988-1.128l-2.558-2.239A6.25 6.25 0 1 1 5.75 12.25a.75.75 0 0 0-1.5 0 7.75 7.75 0 1 0 6.397-7.632z"})]}),Kr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M19.25 9c0-2.35-1.9-4.25-4.25-4.25h-4c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h4c3.18 0 5.75 2.57 5.75 5.75v3.19l1.72-1.72c.29-.29.77-.29 1.06 0s.29.77 0 1.06L20 15.06l-3.53-3.53a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l1.72 1.72zM4 9.25h9c.97 0 1.75.78 1.75 1.75v9c0 .97-.78 1.75-1.75 1.75H4c-.97 0-1.75-.78-1.75-1.75v-9c0-.97.78-1.75 1.75-1.75m9 1.5H4c-.14 0-.25.11-.25.25v9c0 .14.11.25.25.25h9c.14 0 .25-.11.25-.25v-9c0-.14-.11-.25-.25-.25"})]}),Hr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M4.747 9c0-2.35 1.9-4.25 4.25-4.25h4c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-4c-3.18 0-5.75 2.57-5.75 5.75v3.19l-1.72-1.72a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06l3.53 3.53 3.53-3.53c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-1.72 1.72zm15.25.25h-9c-.97 0-1.75.78-1.75 1.75v9c0 .97.78 1.75 1.75 1.75h9c.97 0 1.75-.78 1.75-1.75v-9c0-.97-.78-1.75-1.75-1.75m-9 1.5h9c.14 0 .25.11.25.25v9c0 .14-.11.25-.25.25h-9c-.14 0-.25-.11-.25-.25v-9c0-.14.11-.25.25-.25"})]}),$r=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M23 6H1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h22a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1M1.5 16.5v-9h3.75V11a.75.75 0 0 0 1.5 0V7.5h1.5V13a.75.75 0 0 0 1.5 0V7.5h1.5V11a.75.75 0 0 0 1.5 0V7.5h1.5V13a.75.75 0 0 0 1.5 0V7.5h1.5V11a.75.75 0 0 0 1.5 0V7.5h3.75v9z",clipRule:"evenodd"})]}),Ur=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7.25 1c0-.41.34-.75.75-.75h15c.41 0 .75.34.75.75v15c0 .41-.34.75-.75.75h-7.5c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h6.75V1.75H8.75V9c0 .41-.34.75-.75.75s-.75-.34-.75-.75zm-7 12c0-.41.34-.75.75-.75h5c.41 0 .75.34.75.75s-.34.75-.75.75H1.75v8.5h8.5V18c0-.41.34-.75.75-.75s.75.34.75.75v5c0 .41-.34.75-.75.75H1c-.41 0-.75-.34-.75-.75zM12.5 4.75c-.41 0-.75.34-.75.75s.34.75.75.75h4.19L4.47 18.47c-.29.29-.29.77 0 1.06s.77.29 1.06 0L17.75 7.31v4.19c0 .41.34.75.75.75s.75-.34.75-.75V4.75z",clipRule:"evenodd"})]}),Wr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m16.53 15.47-2.22-2.22c.43-.64.69-1.42.69-2.25 0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4c.83 0 1.61-.26 2.25-.69l2.22 2.22c.29.29.77.29 1.06 0s.29-.77 0-1.06M11 13.5a2.5 2.5 0 0 1 0-5 2.5 2.5 0 0 1 0 5M12 1C5.92 1 1 5.92 1 12s4.92 11 11 11 11-4.92 11-11S18.08 1 12 1m0 20.5c-5.25 0-9.5-4.25-9.5-9.5S6.75 2.5 12 2.5s9.5 4.25 9.5 9.5-4.25 9.5-9.5 9.5",clipRule:"evenodd"})]}),qr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3.75 10.5a6.75 6.75 0 1 1 13.5 0 6.75 6.75 0 0 1-13.5 0m6.75-8.25a8.25 8.25 0 1 0 5.28 14.59l4.69 4.69a.75.75 0 0 0 1.06-1.06l-4.69-4.69A8.25 8.25 0 0 0 10.5 2.25",clipRule:"evenodd"})]}),Gr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M5.75 8.5c0-.41.34-.75.75-.75H14c.41 0 .75.34.75.75s-.34.75-.75.75H6.5c-.41 0-.75-.34-.75-.75m.75 2.25c-.41 0-.75.34-.75.75s.34.75.75.75H11c.41 0 .75-.34.75-.75s-.34-.75-.75-.75zm15.03 10.72-5.84-5.84A8 8 0 0 0 18 10c0-4.42-3.58-8-8-8s-8 3.58-8 8a7.998 7.998 0 0 0 12.53 6.59l5.94 5.94c.29.29.77.29 1.06 0s.29-.77 0-1.06M10 16.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13"})]}),Zr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M3.25 5c0-1.52 1.23-2.75 2.75-2.75h9c1.52 0 2.75 1.23 2.75 2.75h-1.5c0-.69-.56-1.25-1.25-1.25H6c-.69 0-1.25.56-1.25 1.25v9c0 .69.56 1.25 1.25 1.25v1.5c-1.52 0-2.75-1.23-2.75-2.75zm14.86 6.44a.753.753 0 0 0-1.22-.88l-3.42 4.7-1.39-1.73a.748.748 0 0 0-1.17.93l2 2.5a.748.748 0 0 0 1.19-.03l4-5.5zM19 6.25h-9C8.48 6.25 7.25 7.48 7.25 9v9c0 1.52 1.23 2.75 2.75 2.75h9c1.52 0 2.75-1.23 2.75-2.75V9c0-1.52-1.23-2.75-2.75-2.75M20.25 18c0 .69-.56 1.25-1.25 1.25h-9c-.69 0-1.25-.56-1.25-1.25V9c0-.69.56-1.25 1.25-1.25h9c.69 0 1.25.56 1.25 1.25z"})]}),Yr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 4H.5V2A1.5 1.5 0 0 1 2 .5h2V2H2zm20 0h1.5V2A1.5 1.5 0 0 0 22 .5h-2V2h2zm0 3h1.5v3.5H22zm0 6.5h1.5V17H22zm0 6.5h1.5v2a1.5 1.5 0 0 1-1.5 1.5h-2V22h2zM2 7H.5v3.5H2zm0 6.5H.5V17H2zM2 20H.5v2A1.5 1.5 0 0 0 2 23.5h2V22H2zm5 2v1.5h3.5V22zm6.5 0v1.5H17V22zM17 2V.5h-3.5V2zm-6.5 0V.5H7V2z",clipRule:"evenodd"})]}),Xr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M16.01 12c0 2.21-1.79 4-4 4s-4-1.79-4-4 1.79-4 4-4 4 1.79 4 4m-1.5 0a2.5 2.5 0 0 1-5 0 2.5 2.5 0 0 1 5 0M11.33 1.25c-.83 0-1.55.59-1.72 1.41l-.4 2c-.01.05-.06.13-.17.18s-.2.03-.24 0L7.1 3.71c-.69-.46-1.62-.37-2.21.22l-.96.96c-.59.59-.68 1.51-.22 2.21l1.13 1.7s.05.13 0 .24-.13.16-.18.17l-2 .4c-.82.16-1.41.88-1.41 1.72v1.36c0 .83.59 1.55 1.41 1.72l2 .4c.05.01.13.06.18.17s.03.2 0 .24l-1.13 1.7c-.46.69-.37 1.62.22 2.21l.96.96c.59.59 1.51.68 2.21.22l1.7-1.13s.13-.05.24 0 .16.13.17.18l.4 2c.16.82.88 1.41 1.72 1.41h1.36c.83 0 1.55-.59 1.72-1.41l.4-2c.01-.05.06-.13.17-.18s.2-.03.24 0l1.7 1.13c.69.46 1.62.37 2.21-.22l.96-.96c.59-.59.68-1.51.22-2.21l-1.13-1.7s-.05-.13 0-.24.13-.16.18-.17l2-.4c.82-.16 1.41-.88 1.41-1.72v-1.36c0-.83-.59-1.55-1.41-1.72l-2-.4c-.05-.01-.13-.06-.18-.17s-.03-.2 0-.24l1.13-1.7c.46-.69.37-1.62-.22-2.21l-.96-.96c-.59-.59-1.51-.68-2.21-.22l-1.7 1.13s-.13.05-.24 0-.16-.13-.17-.18l-.4-2c-.16-.82-.88-1.41-1.72-1.41zm-.25 1.7c.02-.12.13-.2.25-.2h1.36c.12 0 .22.08.25.2l.4 2c.12.61.56 1.06 1.07 1.27s1.14.2 1.65-.14l1.7-1.13c.1-.07.23-.05.32.03l.96.96c.08.08.1.22.03.32l-1.13 1.7c-.34.51-.36 1.14-.14 1.65.21.51.66.95 1.27 1.07l2 .4c.12.02.2.13.2.25v1.36c0 .12-.08.22-.2.25l-2 .4c-.61.12-1.06.56-1.27 1.07s-.2 1.14.14 1.65l1.13 1.7c.07.1.05.23-.03.32l-.96.96c-.08.08-.22.1-.32.03l-1.7-1.13c-.51-.34-1.14-.36-1.65-.14-.51.21-.95.66-1.07 1.27l-.4 2c-.02.12-.13.2-.25.2h-1.36c-.12 0-.22-.08-.25-.2l-.4-2c-.12-.61-.56-1.06-1.07-1.27s-1.14-.2-1.65.14l-1.7 1.13c-.1.07-.23.05-.32-.03l-.96-.96a.256.256 0 0 1-.03-.32l1.13-1.7c.34-.51.36-1.14.14-1.65-.21-.51-.66-.95-1.27-1.07l-2-.4a.25.25 0 0 1-.2-.25v-1.36c0-.12.08-.22.2-.25l2-.4c.61-.12 1.06-.56 1.27-1.07s.2-1.14-.14-1.65l-1.13-1.7c-.07-.1-.05-.23.03-.32l.96-.96c.08-.08.22-.1.32-.03l1.7 1.13c.51.34 1.14.36 1.65.14.51-.21.95-.66 1.07-1.27z",clipRule:"evenodd"})]}),Jr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.75 9a6.25 6.25 0 0 1 12.456-.75H10A1.75 1.75 0 0 0 8.25 10v5.206A6.25 6.25 0 0 1 2.75 9m5.5 7.714a7.751 7.751 0 1 1 8.464-8.464H21c.966 0 1.75.784 1.75 1.75v11A1.75 1.75 0 0 1 21 22.75H10A1.75 1.75 0 0 1 8.25 21zM9.75 10a.25.25 0 0 1 .25-.25h11a.25.25 0 0 1 .25.25v11a.25.25 0 0 1-.25.25H10a.25.25 0 0 1-.25-.25z",clipRule:"evenodd"})]}),Qr=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m12 .94 3.53 3.53a.75.75 0 0 1-1.06 1.06l-1.72-1.72V14a.75.75 0 0 1-1.5 0V3.81L9.53 5.53a.75.75 0 0 1-1.06-1.06zM6 8.75c-.69 0-1.25.56-1.25 1.25v10c0 .69.56 1.25 1.25 1.25h12c.69 0 1.25-.56 1.25-1.25V10c0-.69-.56-1.25-1.25-1.25h-3v-1.5h3A2.75 2.75 0 0 1 20.75 10v10A2.75 2.75 0 0 1 18 22.75H6A2.75 2.75 0 0 1 3.25 20V10A2.75 2.75 0 0 1 6 7.25h3v1.5z",clipRule:"evenodd"})]}),eo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M18.5 7.5a3 3 0 1 0-2.892-2.198L7.641 9.9a3 3 0 1 0 0 4.202l7.967 4.597A3.004 3.004 0 0 0 18.5 22.5a3 3 0 1 0-2.141-5.101l-7.967-4.597a3 3 0 0 0 0-1.604L16.359 6.6a3 3 0 0 0 2.141.9m1.5-3a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M7 12a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m13 7.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0",clipRule:"evenodd"})]}),to=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12.75 8c0-.41-.34-.75-.75-.75s-.75.34-.75.75v3.25H8c-.41 0-.75.34-.75.75s.34.75.75.75h3.25V16c0 .41.34.75.75.75s.75-.34.75-.75v-3.25H16c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-3.25zM21 4.25c-2.36 0-4.49-.71-6.06-1.43-.78-.36-1.41-.72-1.84-.99-.22-.13-.38-.24-.49-.32-.06-.04-.1-.07-.13-.08l-.02-.03h-.01a.75.75 0 0 0-.9 0h-.01l-.02.03s-.07.04-.13.08c-.11.08-.27.19-.49.32-.43.27-1.06.63-1.84.99-1.57.72-3.7 1.43-6.06 1.43-.41 0-.75.34-.75.75v5.2c0 5.04 2.97 9.61 7.57 11.65l1.88.84c.19.08.41.08.6 0l1.88-.84c4.6-2.04 7.57-6.61 7.57-11.65V5c0-.41-.34-.75-.75-.75m-.75 5.95c0 4.45-2.62 8.48-6.68 10.28l-1.57.7-1.57-.7c-4.06-1.8-6.68-5.83-6.68-10.28V5.73c2.34-.13 4.42-.85 5.94-1.55.84-.39 1.53-.78 2-1.07.12-.08.22-.14.31-.2.09.06.19.12.31.2.47.29 1.16.68 2 1.07 1.52.7 3.6 1.42 5.94 1.55z"})]}),no=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M16.53 10.53c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0L11 13.94l-1.97-1.97a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06l2.38 2.38c.36.36.94.36 1.3 0zM21 4.25c-2.36 0-4.49-.71-6.06-1.43-.78-.36-1.41-.72-1.84-.99-.22-.13-.38-.24-.49-.32-.06-.04-.1-.07-.13-.08l-.02-.03h-.01a.75.75 0 0 0-.9 0h-.01l-.02.03s-.07.04-.13.08c-.11.08-.27.19-.49.32-.43.27-1.06.63-1.84.99-1.57.72-3.7 1.43-6.06 1.43-.41 0-.75.34-.75.75v5.2c0 5.04 2.97 9.61 7.57 11.65l1.88.84c.19.08.41.08.6 0l1.88-.84c4.6-2.04 7.57-6.61 7.57-11.65V5c0-.41-.34-.75-.75-.75m-.75 5.95c0 4.45-2.62 8.48-6.68 10.28l-1.57.7-1.57-.7c-4.06-1.8-6.68-5.83-6.68-10.28V5.73c2.34-.13 4.42-.85 5.94-1.55.84-.39 1.53-.78 2-1.07.12-.08.22-.14.31-.2.09.06.19.12.31.2.47.29 1.16.68 2 1.07 1.52.7 3.6 1.42 5.94 1.55z"})]}),ro=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M13.25 15.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M12.75 7c0-.41-.34-.75-.75-.75s-.75.34-.75.75v5c0 .41.34.75.75.75s.75-.34.75-.75zM21 4.25c-2.36 0-4.49-.71-6.06-1.43-.78-.36-1.41-.72-1.84-.99-.22-.13-.38-.24-.49-.32-.06-.04-.1-.07-.13-.08l-.02-.03h-.01a.75.75 0 0 0-.9 0h-.01l-.02.03s-.07.04-.13.08c-.11.08-.27.19-.49.32-.43.27-1.06.63-1.84.99-1.57.72-3.7 1.43-6.06 1.43-.41 0-.75.34-.75.75v5.2c0 5.04 2.97 9.61 7.57 11.65l1.88.84c.19.08.41.08.6 0l1.88-.84c4.6-2.04 7.57-6.61 7.57-11.65V5c0-.41-.34-.75-.75-.75m-.75 5.95c0 4.45-2.62 8.48-6.68 10.28l-1.57.7-1.57-.7c-4.06-1.8-6.68-5.83-6.68-10.28V5.73c2.34-.13 4.42-.85 5.94-1.55.84-.39 1.53-.78 2-1.07.12-.08.22-.14.31-.2.09.06.19.12.31.2.47.29 1.16.68 2 1.07 1.52.7 3.6 1.42 5.94 1.55z"})]}),oo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M15.36 9.7c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-2.3 2.3-2.3-2.3a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06l2.3 2.3-2.3 2.3c-.29.29-.29.77 0 1.06s.77.29 1.06 0l2.3-2.3 2.3 2.3c.29.29.77.29 1.06 0s.29-.77 0-1.06l-2.3-2.3zM21 4.25c-2.36 0-4.49-.71-6.06-1.43-.78-.36-1.41-.72-1.84-.99-.22-.13-.38-.24-.49-.32-.06-.04-.1-.07-.13-.08l-.02-.03h-.01a.75.75 0 0 0-.9 0h-.01l-.02.03s-.07.04-.13.08c-.11.08-.27.19-.49.32-.43.27-1.06.63-1.84.99-1.57.72-3.7 1.43-6.06 1.43-.41 0-.75.34-.75.75v5.2c0 5.04 2.97 9.61 7.57 11.65l1.88.84c.19.08.41.08.6 0l1.88-.84c4.6-2.04 7.57-6.61 7.57-11.65V5c0-.41-.34-.75-.75-.75m-.75 5.95c0 4.45-2.62 8.48-6.68 10.28l-1.57.7-1.57-.7c-4.06-1.8-6.68-5.83-6.68-10.28V5.73c2.34-.13 4.42-.85 5.94-1.55.84-.39 1.53-.78 2-1.07.12-.08.22-.14.31-.2.09.06.19.12.31.2.47.29 1.16.68 2 1.07 1.52.7 3.6 1.42 5.94 1.55z"})]}),io=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M14 12c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-5c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0 8.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5m0 4.25C5.26 19.75.57 12.71.37 12.41L.1 12l.27-.41c.2-.3 4.88-7.34 11.63-7.34s11.43 7.04 11.63 7.34l.27.41-.27.41c-.2.3-4.88 7.34-11.63 7.34M1.92 12C3 13.45 6.94 18.25 12 18.25s9-4.8 10.08-6.25C21 10.55 17.06 5.75 12 5.75S3 10.55 1.92 12"})]}),ao=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M17.03 10.03c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0L12.94 12l3.03 3.03c.29.29.77.29 1.06 0s.29-.77 0-1.06L15.06 12zM19 1H5C2.79 1 1 2.79 1 5v14c0 2.21 1.79 4 4 4h14c2.21 0 4-1.79 4-4V5c0-2.21-1.79-4-4-4M7.75 21.5H5A2.5 2.5 0 0 1 2.5 19V5A2.5 2.5 0 0 1 5 2.5h2.75zM21.5 19a2.5 2.5 0 0 1-2.5 2.5H9.25v-19H19A2.5 2.5 0 0 1 21.5 5z",clipRule:"evenodd"})]}),so=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M6.34 11.59c-.41 0-.75.34-.75.75s.34.75.75.75h13.19l-2.72 2.72c-.29.29-.29.77 0 1.06s.77.29 1.06 0l4.53-4.53-4.53-4.53a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06l2.72 2.72zm1-7.5c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-3c-1.52 0-2.75 1.23-2.75 2.75v14c0 1.52 1.23 2.75 2.75 2.75h3c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-3c-.69 0-1.25-.56-1.25-1.25v-14c0-.69.56-1.25 1.25-1.25z"})]}),lo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M16.32 10.318c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-4.72 4.72-2.26-2.26a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06l3.32 3.32zm5.37 1.79a.22.22 0 0 1 0-.22l1.02-2.09c.42-.85.08-1.87-.75-2.32l-2.06-1.09c-.07-.03-.11-.1-.13-.17l-.4-2.3a1.75 1.75 0 0 0-1.97-1.43l-2.3.33c-.08.01-.16-.01-.21-.07l-1.67-1.62a1.77 1.77 0 0 0-2.44 0l-1.67 1.62c-.05.06-.13.08-.21.07l-2.3-.33c-.94-.13-1.81.5-1.97 1.43l-.4 2.3c-.02.07-.06.14-.13.17l-2.06 1.09c-.83.45-1.17 1.47-.75 2.32l1.02 2.09c.04.07.04.15 0 .22l-1.02 2.09c-.42.85-.08 1.87.75 2.32l2.06 1.09c.07.03.11.1.13.17l.4 2.3c.16.93 1.03 1.56 1.97 1.43l2.3-.33c.08-.01.16.01.21.07l1.67 1.62c.68.65 1.76.65 2.44 0l1.67-1.62c.05-.06.13-.08.21-.07l2.3.33c.94.13 1.81-.5 1.97-1.43l.4-2.3c.02-.07.06-.14.13-.17l2.06-1.09c.83-.45 1.17-1.47.75-2.32zm-1.35.66 1.02 2.09c.06.12.01.27-.1.33l-2.06 1.09c-.48.25-.81.71-.9 1.24l-.41 2.3c-.02.13-.14.22-.28.2l-2.3-.32c-.54-.08-1.08.09-1.46.47l-1.68 1.62c-.09.09-.25.09-.34 0l-1.68-1.62c-.38-.38-.92-.55-1.46-.47l-2.3.32a.24.24 0 0 1-.28-.2l-.41-2.3a1.72 1.72 0 0 0-.9-1.24l-2.06-1.09a.254.254 0 0 1-.1-.33l1.02-2.09c.24-.49.24-1.05 0-1.54l-1.02-2.09a.254.254 0 0 1 .1-.33l2.06-1.09c.48-.25.81-.71.9-1.24l.41-2.3c.02-.13.14-.22.28-.2l2.3.32c.54.08 1.08-.09 1.46-.47l1.68-1.62c.09-.09.25-.09.34 0l1.68 1.62c.38.38.92.55 1.46.47l2.3-.32c.14-.02.26.07.28.2l.41 2.3c.09.53.42.99.9 1.24l2.06 1.09c.11.06.16.21.1.33l-1.02 2.09c-.24.49-.24 1.05 0 1.54"})]}),co=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M22.5 15.75h-8.64c.31-1.16.59-2.39.81-3.62.22-1.24.39-2.48.49-3.66.64-.38 1.29-.72 1.95-1 .04.21.08.45.13.72.02.16.05.33.08.5.1.54.22 1.13.38 1.63.09.25.19.51.33.74.13.21.34.46.63.61.32.16.69.08.92-.19.87-1.05 2.74-3.88 3.16-6.87a.747.747 0 0 0-.63-.85.747.747 0 0 0-.85.63c-.29 2.02-1.36 4.02-2.19 5.26-.11-.35-.19-.77-.27-1.22-.02-.14-.05-.29-.07-.44-.07-.37-.13-.73-.19-1.02-.05-.2-.11-.42-.19-.61a1.3 1.3 0 0 0-.22-.33.85.85 0 0 0-.63-.28c-.09 0-.18.02-.26.05-.67.25-1.33.55-1.98.89.01-.57 0-1.11-.03-1.61-.06-.97-.21-1.86-.51-2.52-.29-.67-.83-1.31-1.72-1.31-.65 0-1.56.27-2.5.63-.98.37-2.1.88-3.22 1.45-2.22 1.14-4.53 2.54-5.77 3.6-.31.27-.35.74-.08 1.06.27.31.74.35 1.06.08 1.1-.94 3.28-2.28 5.48-3.4 1.08-.56 2.15-1.04 3.06-1.39.95-.36 1.62-.53 1.97-.53.03 0 .17 0 .35.41.19.43.33 1.11.38 2.01.05.72.04 1.54-.01 2.42-.85.54-1.65 1.14-2.39 1.78-1.74 1.48-3.19 3.18-4 4.79-.2.41-.33.98-.4 1.59H2c-.41 0-.75.34-.75.75s.34.75.75.75h4.86c.01.54.05 1.11.12 1.66.11.88.32 1.77.67 2.46.33.67.91 1.38 1.85 1.38.8 0 1.43-.56 1.9-1.15.48-.62.93-1.47 1.33-2.44.24-.58.47-1.23.69-1.91h9.08c.41 0 .75-.34.75-.75s-.34-.75-.75-.75m-11.16 2.84c-.37.91-.76 1.62-1.13 2.09-.39.5-.63.57-.71.57-.06 0-.26-.04-.51-.55-.24-.48-.42-1.18-.53-1.99-.06-.48-.09-.98-.1-1.46h3.48c-.16.47-.33.92-.5 1.34m1.85-6.72c-.24 1.33-.54 2.66-.88 3.88H8.45c.06-.44.14-.75.22-.91.69-1.39 1.99-2.94 3.63-4.33.4-.34.81-.67 1.24-.98-.09.76-.21 1.55-.35 2.34M1.97 9.97c.29-.29.77-.29 1.06 0l.97.97.97-.97c.29-.29.77-.29 1.06 0s.29.77 0 1.06l-.97.97.97.97c.29.29.29.77 0 1.06s-.77.29-1.06 0L4 13.06l-.97.97c-.29.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06l.97-.97-.97-.97a.754.754 0 0 1 0-1.06",clipRule:"evenodd"})]}),uo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M7.375 20h9.25a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1h-9.25a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1"})]}),po=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m10.76 3.18-5 5s-.11.07-.17.07H2C1.03 8.25.25 9.03.25 10v3.5c0 .97.78 1.75 1.75 1.75h3.09c.06 0 .13.03.17.07l5.5 5.5c1.1 1.11 2.99.32 2.99-1.23V4.41c0-1.55-1.89-2.34-2.99-1.23m1.49 16.41c0 .22-.27.33-.43.17l-5.5-5.5c-.32-.33-.77-.51-1.23-.51H2c-.14 0-.25-.11-.25-.25V10c0-.14.11-.25.25-.25h3.59c.46 0 .91-.18 1.23-.51l5-5c.16-.16.43-.05.43.17zm3.46-11.36c.29-.29.77-.29 1.06 0a5.74 5.74 0 0 1 0 8.13c-.29.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06 4.25 4.25 0 0 0 0-6.01.755.755 0 0 1 0-1.06m4.32-2.76a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06 3.22 3.22 3.22 8.45 0 11.67-.29.29-.29.77 0 1.06s.77.29 1.06 0a9.747 9.747 0 0 0 0-13.79",clipRule:"evenodd"})]}),ho=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M6.993 6.25c-.41 0-.75.34-.75.75s.34.75.75.75h4.25V18c0 .41.34.75.75.75s.75-.34.75-.75V7.75h4.25c.41 0 .75-.34.75-.75s-.34-.75-.75-.75zm1.09 15.22c.46-.61 1.37-.61 1.81-.02 1.05 1.4 3.15 1.4 4.2 0 .44-.59 1.35-.59 1.81.02 1.03 1.38 3.12 1.45 4.21.08l.46-.58c.26-.32.21-.8-.12-1.05a.74.74 0 0 0-1.05.12l-.46.58c-.46.58-1.38.57-1.84-.04-1.04-1.39-3.16-1.43-4.21-.02-.45.6-1.35.6-1.8 0-1.06-1.41-3.17-1.37-4.21.02-.46.61-1.37.63-1.84.04l-.46-.58a.748.748 0 0 0-1.17.93l.46.58c1.09 1.36 3.18 1.3 4.21-.08"})]}),fo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",d:"M17.5 11.5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6m0 10.5c-2.49 0-4.5-2.01-4.5-4.5s2.01-4.5 4.5-4.5 4.5 2.01 4.5 4.5-2.01 4.5-4.5 4.5m3.25-4.5c0 .41-.34.75-.75.75h-1.75V20c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-1.75H15c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h1.75V15c0-.41.34-.75.75-.75s.75.34.75.75v1.75H20c.41 0 .75.34.75.75M1.22 19.28a.77.77 0 0 1-.22-.54l.02-1.03c.03-1.5 1.25-2.7 2.75-2.7H8V9.63A4.756 4.756 0 0 1 10.75 1c2.62 0 4.75 2.13 4.75 4.75 0 1.6-.79 3.01-2 3.87v1.53c-.55.35-1.06.77-1.5 1.25V9.21c0-.27.14-.52.38-.65A3.22 3.22 0 0 0 14 5.75c0-1.8-1.45-3.25-3.25-3.25S7.5 3.95 7.5 5.75c0 1.2.65 2.25 1.62 2.81.23.13.38.38.38.65v6.54c0 .41-.34.75-.75.75H3.77c-.68 0-1.24.55-1.25 1.23V18h7.5c.03.52.12 1.02.25 1.5H1.75a.75.75 0 0 1-.53-.22M10.87 21c.29.54.64 1.05 1.04 1.5H1.75c-.41 0-.75-.34-.75-.75s.34-.75.75-.75z"})]}),mo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M18.75 15H14.5V9.62c1.21-.86 2-2.27 2-3.87C16.5 3.13 14.37 1 11.75 1S7 3.13 7 5.75c0 1.6.79 3.01 2 3.87V15H4.77c-1.5 0-2.73 1.2-2.75 2.7L2 18.74a.75.75 0 0 0 .75.76h18c.41 0 .75-.34.75-.75v-1c0-1.52-1.23-2.75-2.75-2.75M20 18H3.51v-.27c.02-.68.57-1.23 1.26-1.23h4.98c.41 0 .75-.34.75-.75V9.21c0-.27-.14-.52-.38-.65A3.24 3.24 0 0 1 8.5 5.75c0-1.8 1.45-3.25 3.25-3.25S15 3.95 15 5.75c0 1.2-.65 2.25-1.62 2.81-.24.13-.38.38-.38.65v6.54c0 .41.34.75.75.75h5c.69 0 1.25.56 1.25 1.25zM2.75 21c-.41 0-.75.34-.75.75s.34.75.75.75h18c.41 0 .75-.34.75-.75s-.34-.75-.75-.75z",clipRule:"evenodd"})]}),go=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12.692 1.212a.75.75 0 0 0-1.385 0L8.574 7.784l-7.096.57A.75.75 0 0 0 1.05 9.67l5.406 4.631-1.651 6.924a.75.75 0 0 0 1.12.814L12 18.33l6.074 3.71a.75.75 0 0 0 1.12-.814l-1.65-6.924 5.405-4.63a.75.75 0 0 0-.428-1.318l-7.095-.569-2.734-6.572Z"})]}),vo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 .75a.75.75 0 0 1 .692.462l2.734 6.572 7.095.57a.75.75 0 0 1 .428 1.316l-5.406 4.631 1.652 6.924a.75.75 0 0 1-1.12.814L12 18.33l-6.075 3.71a.75.75 0 0 1-1.12-.814l1.651-6.924-5.406-4.63a.75.75 0 0 1 .428-1.318l7.096-.569 2.733-6.572A.75.75 0 0 1 12 .75m0 2.703-2.217 5.33a.75.75 0 0 1-.633.46l-5.755.461L7.78 13.46a.75.75 0 0 1 .242.744l-1.34 5.615 4.927-3.01a.75.75 0 0 1 .782 0l4.926 3.01-1.34-5.615a.75.75 0 0 1 .243-.744l4.384-3.756-5.755-.461a.75.75 0 0 1-.632-.46z",clipRule:"evenodd"})]}),yo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10 11V6.13L1.2 12l8.8 5.87V13h14v-2zm-2 3.13L4.8 12 8 9.87z",clipRule:"evenodd"})]}),bo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m8.45 7.17 1.11 1.66L6.31 11h17.7v2H6.3l3.25 2.17-1.11 1.66L1.2 12z",clipRule:"evenodd"})]}),wo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 6.131 9.303 11H24v2H9.333L2 18.5zm5.27 5.917L4 9.868V14.5z",clipRule:"evenodd"})]}),xo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7.35 11H24v2H7.35l-4.726 3.78-1.249-1.56L5.399 12 1.375 8.78l1.25-1.56z",clipRule:"evenodd"})]}),So=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6m-5 3a5 5 0 0 1 9.9-1H24v2H11.9A5.002 5.002 0 0 1 2 12",clipRule:"evenodd"})]}),_o=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7 6.586 11.414 11H24v2H11.414L7 17.414 1.586 12zM9.586 12 7 9.414 4.414 12 7 14.586z",clipRule:"evenodd"})]}),Co=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M0 11h24v2H0z",clipRule:"evenodd"})]}),Eo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m5.618 11 1.276-2.553-1.789-.894-4 8 1.79.894L4.617 13H24v-2z",clipRule:"evenodd"})]}),ko=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2.5 7.5h9V11H24v2H11.5v3.5h-9zm2 2v5h5v-5z",clipRule:"evenodd"})]}),zo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M2 16V8h2v3h20v2H4v3z",clipRule:"evenodd"})]}),Po=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M6.24 7c0-.41.34-.75.75-.75h10c.41 0 .75.34.75.75s-.34.75-.75.75h-4.25v2h-1.5v-2H6.99c-.41 0-.75-.34-.75-.75m5 11v-3.75h1.5V18c0 .41-.34.75-.75.75s-.75-.34-.75-.75m-6.25-6.75c-.41 0-.75.34-.75.75s.34.75.75.75h14c.41 0 .75-.34.75-.75s-.34-.75-.75-.75z"})]}),Ao=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"m18.587 14.991 3.02-3.01h-.01a2.76 2.76 0 0 0 0-3.89l-.53-.53-3.36 3.36c-.3.28-.76.3-1.06 0s-.29-.77 0-1.06c1.24-1.24 1.51-2.89 1.33-4.22-.12-.93-.6-1.77-1.26-2.43l-2.55-2.55c-.19-.18-.47-.26-.74-.18a.7.7 0 0 0-.52.55v.04s-.03.08-.03.14c-.05.11-.09.28-.14.47 0 .02-.01.04-.02.06-.13.46-.35 1.1-.65 1.82-.43 1.05-1.03 2.26-1.83 3.34-.28.38-.22.93.12 1.27l6.82 6.82c.39.39 1.02.39 1.41 0m-10.24-6.72 8.84 8.84c.39.39.39 1.02 0 1.41l-.53.53c-.68.69-1.78.69-2.47 0l-1.96-1.96c-.12-.1-.3-.09-.39.04l-3.04 4.55c-1.25 1.9-3.94 2.17-5.56.56s-1.36-4.31.54-5.56l4.56-3.05c.13-.09.15-.28.04-.39l-1.97-1.95c-.68-.69-.68-1.81 0-2.49l.53-.53a.996.996 0 0 1 1.41 0m-3.19 10.6a.996.996 0 0 0 0 1.41c.39.4 1.02.38 1.41 0s.38-1.02 0-1.41-1.02-.38-1.41 0"})]}),Do=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M6.579 18.88a.996.996 0 1 0-1.41 1.41.996.996 0 1 0 1.41-1.41m15.03-10.79-1.05-1.04s-.01-.01-.01-.02l-1.42-1.41-.02-.02-4.93-4.93a.74.74 0 0 0-.74-.19c-.26.07-.46.28-.52.55v.04s-.03.08-.05.14c-.03.12-.08.31-.15.53-.13.46-.35 1.1-.65 1.83-.52 1.27-1.29 2.76-2.34 3.99a1.75 1.75 0 0 0-2.27.18L6.399 8.8c-.68.68-.68 1.79 0 2.48l1.97 1.96c.11.11.09.3-.04.39l-4.56 3.03c-1.9 1.27-2.16 3.96-.55 5.58 1.62 1.61 4.31 1.34 5.57-.56l3.04-4.55c.09-.14.28-.15.39-.04l1.96 1.96c.69.69 1.79.69 2.48 0l1.06-1.06c.62-.62.68-1.6.16-2.28l3.73-3.73a2.76 2.76 0 0 0 0-3.89m-4.95 8.84-1.06 1.06c-.1.1-.26.1-.36 0l-1.96-1.96c-.78-.78-2.08-.66-2.7.26l-3.04 4.56a2.117 2.117 0 1 1-2.93-2.94l4.55-3.04c.92-.61 1.05-1.91.27-2.69l-1.97-1.97c-.09-.09-.09-.25 0-.35l1.07-1.06c.09-.1.25-.1.35 0l.33.33s0 .02.02.02l7.07 7.08s.02.01.03.02l.33.33c.09.1.09.25 0 .35m3.89-6.01-3.72 3.71-6.03-6.03c1.24-1.41 2.1-3.1 2.66-4.46.23-.57.42-1.08.56-1.51l3.89 3.89s.01.05.01.09c.02.19.03.47-.01.81-.09.67-.38 1.56-1.25 2.44-.3.29-.3.77 0 1.06.29.29.76.29 1.06 0l2.29-2.3.54.53c.48.49.48 1.28 0 1.77"})]}),To=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M6 2.744c.09 2.918.692 9.27 2.197 10.977.12.129.291.188.462.188h6.682a.6.6 0 0 0 .462-.188C17.317 12.014 17.91 5.662 18 2.744A.733.733 0 0 0 17.257 2H6.743A.733.733 0 0 0 6 2.744m3 13.15h6.02l-2.067 5.458c-.32.864-1.555.864-1.876 0L9.01 15.894z"})]}),Io=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M7.75 2c0-.41-.34-.75-.75-.75s-.75.34-.75.75c0 1.23.12 3.7.4 6.13.14 1.21.33 2.43.57 3.47.23 1.02.54 1.97.96 2.59.29.42.75.56 1.12.56h5.38c.37 0 .83-.14 1.12-.56.42-.62.73-1.57.96-2.59.24-1.04.43-2.26.57-3.47.29-2.42.4-4.9.4-6.13 0-.41-.34-.75-.75-.75s-.75.34-.75.75c0 1.16-.11 3.58-.39 5.95-.14 1.18-.32 2.34-.54 3.31-.21.92-.45 1.6-.68 1.99H9.36c-.23-.39-.47-1.06-.68-1.99-.22-.97-.4-2.13-.54-3.31-.28-2.37-.39-4.79-.39-5.95m7.35 13.56a.72.72 0 0 0-.6-.31h-5c-.24 0-.46.11-.6.31-.15.19-.19.44-.12.66l1.55 4.95c.51 1.64 2.83 1.64 3.34 0l1.55-4.95c.07-.22.03-.47-.12-.66m-2.86 5.16c-.07.24-.41.24-.48 0l-1.24-3.97h2.96z"})]}),Mo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 1.25a.75.75 0 0 1 .75.75v2.929a.75.75 0 0 1-1.5 0V2a.75.75 0 0 1 .75-.75M18.321 12a.75.75 0 0 1 .75-.75H22a.75.75 0 0 1 0 1.5h-2.929a.75.75 0 0 1-.75-.75M1.25 12a.75.75 0 0 1 .75-.75h2.929a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1-.75-.75M12 18.321a.75.75 0 0 1 .75.75V22a.75.75 0 0 1-1.5 0v-2.929a.75.75 0 0 1 .75-.75M17 12a5 5 0 1 1-10 0 5 5 0 0 1 10 0m-5 3.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7m7.601-10.04a.75.75 0 1 0-1.06-1.061l-2.071 2.07a.75.75 0 0 0 1.06 1.061zm-2.07 11.01a.75.75 0 1 0-1.061 1.06l2.07 2.071a.75.75 0 0 0 1.061-1.06zM5.458 4.399a.75.75 0 0 0-1.06 1.06l2.07 2.071A.75.75 0 1 0 7.53 6.47L5.46 4.399ZM7.53 17.53a.75.75 0 0 0-1.06-1.06l-2.071 2.07a.75.75 0 0 0 1.06 1.061l2.071-2.07Z",clipRule:"evenodd"})]}),No=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M1 3a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v18a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2zm8-.5h6V8H9zM8 8V2.5H3a.5.5 0 0 0-.5.5v5zM2.5 9H8v6H2.5zM9 9h6v6H9zm12.5-1V3a.5.5 0 0 0-.5-.5h-5V8zM9 16h6v5.5H9zm-1 0H2.5v5a.5.5 0 0 0 .5.5h5zm13.5 0H16v5.5h5a.5.5 0 0 0 .5-.5z",clipRule:"evenodd"})]}),Oo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3 3.75a.75.75 0 0 0 0 1.5h18a.75.75 0 0 0 0-1.5zm3 5a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5zM2.25 14.5a.75.75 0 0 1 .75-.75h18a.75.75 0 0 1 0 1.5H3a.75.75 0 0 1-.75-.75M6 18.75a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),Ro=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3 3.75a.75.75 0 0 0 0 1.5h18a.75.75 0 0 0 0-1.5zm0 5a.75.75 0 0 0 0 1.5h18a.75.75 0 0 0 0-1.5zm-.75 5.75a.75.75 0 0 1 .75-.75h18a.75.75 0 0 1 0 1.5H3a.75.75 0 0 1-.75-.75M3 18.75a.75.75 0 0 0 0 1.5h18a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),jo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3 3.75a.75.75 0 0 0 0 1.5h18a.75.75 0 0 0 0-1.5zm0 5a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5zm-.75 5.75a.75.75 0 0 1 .75-.75h18a.75.75 0 0 1 0 1.5H3a.75.75 0 0 1-.75-.75M3 18.75a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),Fo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M3 3.75a.75.75 0 0 0 0 1.5h18a.75.75 0 0 0 0-1.5zm6 5a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5zM2.25 14.5a.75.75 0 0 1 .75-.75h18a.75.75 0 0 1 0 1.5H3a.75.75 0 0 1-.75-.75M9 18.75a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]}),Bo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M11 4.24c-.41 0-.75.34-.75.75s.34.75.75.75h2.25v5.25c0 .41.34.75.75.75s.75-.34.75-.75V5.74H17c.41 0 .75-.34.75-.75s-.34-.75-.75-.75zm8-4H9c-2.62 0-4.75 2.13-4.75 4.75v6c0 2.62 2.13 4.75 4.75 4.75h10c2.62 0 4.75-2.13 4.75-4.75v-6c0-2.62-2.13-4.75-4.75-4.75m3.25 10.75c0 1.79-1.46 3.25-3.25 3.25H9c-1.79 0-3.25-1.46-3.25-3.25v-6C5.75 3.2 7.21 1.74 9 1.74h10c1.79 0 3.25 1.46 3.25 3.25zm-9 6h1.5v3c0 .37-.27.68-.63.74l-10.17 1.7c-.2.9-1 1.57-1.95 1.57-1.1 0-2-.9-2-2s.9-2 2-2c.72 0 1.35.38 1.71.96l9.54-1.59z"})]}),Lo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4 3.25a.75.75 0 0 0 0 1.5h4.25V15a.75.75 0 0 0 1.5 0V4.75H14a.75.75 0 0 0 0-1.5zM8 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1h-9.75v7A2.25 2.25 0 0 1 8 17.016z",clipRule:"evenodd"})]}),Vo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6.25 7A.75.75 0 0 1 7 6.25h10a.75.75 0 0 1 0 1.5h-4.25V18a.75.75 0 0 1-1.5 0V7.75H7A.75.75 0 0 1 6.25 7",clipRule:"evenodd"})]}),Ko=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M14 4.25H6C3.38 4.25 1.25 6.38 1.25 9S3.38 13.75 6 13.75h.25V19c0 .41.34.75.75.75s.75-.34.75-.75V5.75h2.26V19c0 .41.34.75.75.75s.75-.34.75-.75V5.75H14c.41 0 .75-.34.75-.75s-.34-.75-.75-.75m-7.75 8H6c-1.79 0-3.25-1.46-3.25-3.25S4.21 5.75 6 5.75h.25zm9.28-2.78a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06l3 3c.29.29.77.29 1.06 0l3-3c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0L18 11.94z",clipRule:"evenodd"})]}),Ho=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M13.99 4.25h-8C3.37 4.25 1.24 6.38 1.24 9s2.13 4.75 4.75 4.75h.25V19c0 .41.34.75.75.75s.75-.34.75-.75V5.75H10V19c0 .41.34.75.75.75s.75-.34.75-.75V5.75h2.49c.41 0 .75-.34.75-.75s-.34-.75-.75-.75m-7.75 8h-.25c-1.79 0-3.25-1.46-3.25-3.25S4.2 5.75 5.99 5.75h.25zm9.28 1.28c-.29.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06l3-3c.29-.29.77-.29 1.06 0l3 3c.29.29.29.77 0 1.06s-.77.29-1.06 0l-2.47-2.47z",clipRule:"evenodd"})]}),$o=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M4.25 5A.75.75 0 0 1 5 4.25h14a.75.75 0 0 1 .75.75v2.727a.75.75 0 0 1-1.5 0V5.75h-5.5v13.5h2.05a.75.75 0 0 1 0 1.5H9.2a.75.75 0 0 1 0-1.5h2.05V5.75h-5.5v1.977a.75.75 0 1 1-1.5 0z",clipRule:"evenodd"})]}),Uo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M15 5.25a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5zM9.184 8.692a.75.75 0 0 0-1.368 0l-4.5 10a.75.75 0 1 0 1.368.616l1.562-3.471h4.508l1.562 3.47a.75.75 0 0 0 1.368-.615zM8.5 10.828l1.58 3.509H6.92z",clipRule:"evenodd"})]}),Wo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M0 5v2.33c0 .55.45 1 1 1h22c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1H1c-.55 0-1 .45-1 1m0 5.84v2.33c0 .55.45 1 1 1h22c.55 0 1-.45 1-1v-2.33c0-.55-.45-1-1-1H1c-.55 0-1 .44-1 1m0 5.83V19c0 .55.45 1 1 1h22c.55 0 1-.45 1-1v-2.33c0-.55-.45-1-1-1H1c-.55 0-1 .45-1 1"})]}),qo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M1 20h9.25c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1H1c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1M12.75 5v5.25c0 .55.45 1 1 1H23c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1h-9.25c-.55 0-1 .45-1 1m0 8.75V19c0 .55.45 1 1 1H23c.55 0 1-.45 1-1v-5.25c0-.55-.45-1-1-1h-9.25c-.55 0-1 .45-1 1"})]}),Go=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M1 20h5c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1H1c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1m8.5 0h5c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1h-5c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1m8.5 0h5c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1h-5c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1"})]}),Zo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M10 4.25H5c-.41 0-.75.34-.75.75v5c0 .41.34.75.75.75h5c.41 0 .75-.34.75-.75V5c0-.41-.34-.75-.75-.75m-.75 5h-3.5v-3.5h3.5zm.75 4H5c-.41 0-.75.34-.75.75v5c0 .41.34.75.75.75h5c.41 0 .75-.34.75-.75v-5c0-.41-.34-.75-.75-.75m-.75 5h-3.5v-3.5h3.5zm9.75-5h-5c-.41 0-.75.34-.75.75v5c0 .41.34.75.75.75h5c.41 0 .75-.34.75-.75v-5c0-.41-.34-.75-.75-.75m-.75 5h-3.5v-3.5h3.5zm.75-14h-5c-.41 0-.75.34-.75.75v5c0 .41.34.75.75.75h5c.41 0 .75-.34.75-.75V5c0-.41-.34-.75-.75-.75m-.75 5h-3.5v-3.5h3.5z",clipRule:"evenodd"})]}),Yo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M21.26 8.978c.1.09.19.19.27.29.5.66.61 1.57.29 2.33-.11.26-.26.49-.45.68.37.5.48 1.11.4 1.66-.17 1.15-1.1 1.96-2.27 1.96h-3.25a.3.3 0 0 0-.29.15.34.34 0 0 0-.03.34l1.56 3.79c.35 1.11-.26 2.33-1.36 2.7-1.02.36-2.15-.1-2.64-1.06-1.5-2.99-2.92-4.72-4.05-6.11-.07-.09-.14-.17-.21-.26-.02 0-.03.01-.05.01H6.45c-1.2 0-2.15-.8-2.77-1.83-.62-1.04-.98-2.43-.98-3.92s.36-2.89.98-3.92 1.57-1.82 2.76-1.83h3s.04.01.06.01c1.17-.96 2.71-1.57 4.61-1.57h2.99c2.37 0 3.55 1.38 3.64 2.66.02.27-.01.53-.08.76.18.12.34.28.48.46.51.66.63 1.58.31 2.35-.05.13-.12.25-.19.36zM6.45 5.458c-.46 0-1.01.32-1.48 1.1-.46.77-.77 1.88-.77 3.15s.31 2.38.77 3.15c.47.78 1.02 1.1 1.48 1.1H8.1c-.78-1.15-1.27-2.36-1.27-4.2 0-1.49.45-3.02 1.32-4.3zm13.89 4.73c-.15-.2-.38-.28-.67-.24a.753.753 0 0 1-.84-.65v-.1c0-.37.28-.69.66-.74.3-.04.5-.18.59-.41.11-.28.07-.63-.11-.86-.15-.19-.36-.26-.66-.22-.4.07-.79-.23-.85-.64s.23-.79.64-.85c.14-.02.16-.18.15-.32-.04-.51-.63-1.26-2.14-1.26h-2.99c-3.76 0-5.79 3.02-5.79 5.86 0 2.22.86 3.27 2.28 5 1.19 1.45 2.66 3.25 4.23 6.39a.66.66 0 0 0 .81.32c.34-.12.53-.49.44-.77l-1.54-3.73c-.24-.58-.17-1.23.17-1.74s.92-.82 1.54-.82h3.25c.5 0 .73-.36.78-.67.03-.19.03-.65-.57-.83a.75.75 0 0 1-.53-.78c.03-.35.3-.64.65-.68.3-.04.5-.17.6-.4.11-.27.07-.62-.11-.85z"})]}),Xo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M20.56 15.022c.1-.09.19-.19.27-.29.5-.66.61-1.57.29-2.33-.11-.26-.26-.49-.45-.68.37-.5.48-1.11.4-1.66-.17-1.15-1.1-1.96-2.27-1.96h-3.25a.3.3 0 0 1-.29-.15.34.34 0 0 1-.03-.34l1.56-3.79c.35-1.11-.26-2.33-1.36-2.7-1.02-.36-2.15.1-2.64 1.06-1.5 2.99-2.92 4.72-4.05 6.11-.07.09-.14.17-.21.26-.02 0-.03-.01-.05-.01H5.75c-1.2 0-2.15.8-2.77 1.83-.62 1.04-.98 2.43-.98 3.92s.36 2.89.98 3.92 1.57 1.82 2.76 1.83h3s.04-.01.06-.01c1.17.96 2.71 1.57 4.61 1.57h2.99c2.37 0 3.55-1.38 3.64-2.66.02-.27-.01-.53-.08-.76.18-.12.34-.28.48-.46.51-.66.63-1.58.31-2.35-.05-.13-.12-.25-.19-.36zm-14.81 3.52c-.46 0-1.01-.32-1.48-1.1-.46-.77-.77-1.88-.77-3.15s.31-2.38.77-3.15c.47-.78 1.02-1.1 1.48-1.1H7.4c-.78 1.15-1.27 2.36-1.27 4.2 0 1.49.45 3.02 1.32 4.3zm13.89-4.73c-.15.2-.38.28-.67.24a.753.753 0 0 0-.84.65v.1c0 .37.28.69.66.74.3.04.5.18.59.41.11.28.07.63-.11.86-.15.19-.36.26-.66.22-.4-.07-.79.23-.85.64s.23.79.64.85c.14.02.16.18.15.32-.04.51-.63 1.26-2.14 1.26h-2.99c-3.76 0-5.79-3.02-5.79-5.86 0-2.22.86-3.27 2.28-5 1.19-1.45 2.66-3.25 4.23-6.39a.66.66 0 0 1 .81-.32c.34.12.53.49.44.77l-1.54 3.73c-.24.58-.17 1.23.17 1.74s.92.82 1.54.82h3.25c.5 0 .73.36.78.67.03.19.03.65-.57.83-.34.1-.56.43-.53.78s.3.64.65.68c.3.04.5.17.6.4.11.27.07.62-.11.85z"})]}),Jo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M16 3h6v5h-6zm-1 5V3H9v5zM9 9h6v6H9zM8 8V3H2v5zM2 9v6h6V9zm14 0h6v6h-6zm0 7h6v5a1 1 0 0 1-1 1h-5zm-1 0H9v6h6zM2 21v-5h6v6H3a1 1 0 0 1-1-1M23 2v19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2",clipRule:"evenodd"})]}),Qo=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M9.75 4a2.25 2.25 0 0 1 4.5 0v.25h-4.5zm6 0a3.75 3.75 0 1 0-7.5 0v.25H3a.75.75 0 0 0 0 1.5h1.25V20A2.75 2.75 0 0 0 7 22.75h10A2.75 2.75 0 0 0 19.75 20V5.75H21a.75.75 0 0 0 0-1.5h-5.25zm-10 16V5.75h12.5V20c0 .69-.56 1.25-1.25 1.25H7c-.69 0-1.25-.56-1.25-1.25m7-11a.75.75 0 0 0-1.5 0v9a.75.75 0 0 0 1.5 0zM8.5 8.25a.75.75 0 0 1 .75.75v9a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75m7.75.75a.75.75 0 0 0-1.5 0v9a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"})]}),ei=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M0 10.25V5c0-.55.45-1 1-1h22c.55 0 1 .45 1 1v5.25c0 .55-.45 1-1 1H1c-.55 0-1-.45-1-1M0 19v-5.25c0-.55.45-1 1-1h22c.55 0 1 .45 1 1V19c0 .55-.45 1-1 1H1c-.55 0-1-.45-1-1"})]}),ti=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M1 20h9.25c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1H1c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1m12.75 0H23c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1h-9.25c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1"})]}),ni=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M19.75 3c0-.41-.34-.75-.75-.75s-.75.34-.75.75v18c0 .41.34.75.75.75s.75-.34.75-.75zM5 6.25c-.41 0-.75.34-.75.75s.34.75.75.75h4.25V18c0 .41.34.75.75.75s.75-.34.75-.75V7.75H15c.41 0 .75-.34.75-.75s-.34-.75-.75-.75z"})]}),ri=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M8.75 7c0-.41-.34-.75-.75-.75s-.75.34-.75.75v7c0 2.62 2.13 4.75 4.75 4.75s4.75-2.13 4.75-4.75V7c0-.41-.34-.75-.75-.75s-.75.34-.75.75v7c0 1.79-1.46 3.25-3.25 3.25S8.75 15.79 8.75 14zM5 20.25c-.41 0-.75.34-.75.75s.34.75.75.75h14c.41 0 .75-.34.75-.75s-.34-.75-.75-.75z"})]}),oi=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M7 6.25c-.41 0-.75.34-.75.75s.34.75.75.75h4.25V18c0 .41.34.75.75.75s.75-.34.75-.75V7.75H17c.41 0 .75-.34.75-.75s-.34-.75-.75-.75zm-2 14c-.41 0-.75.34-.75.75s.34.75.75.75h14c.41 0 .75-.34.75-.75s-.34-.75-.75-.75z"})]}),ii=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6.53 3.47a.75.75 0 0 1 0 1.06L3.81 7.25H7a.75.75 0 1 1 0 1.5H3.81l2.72 2.72a.75.75 0 1 1-1.06 1.06L.94 8l4.53-4.53a.75.75 0 0 1 1.06 0m8 0a.75.75 0 0 1 0 1.06l-2.72 2.72H14a6.75 6.75 0 0 1 0 13.5h-2a.75.75 0 0 1 0-1.5h2a5.25 5.25 0 1 0 0-10.5h-2.19l2.72 2.72a.75.75 0 1 1-1.06 1.06L8.94 8l4.53-4.53a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})]}),ai=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8.53 3.47a.75.75 0 0 1 0 1.06L5.81 7.25H14a6.75 6.75 0 0 1 0 13.5h-2a.75.75 0 0 1 0-1.5h2a5.25 5.25 0 1 0 0-10.5H5.81l2.72 2.72a.75.75 0 1 1-1.06 1.06L2.94 8l4.53-4.53a.75.75 0 0 1 1.06 0",clipRule:"evenodd"})]}),si=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M5.78 1.528c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0L.94 4.247l3.78 3.78c.29.29.77.29 1.06 0s.29-.77 0-1.06l-1.97-1.97h6.31a4.12 4.12 0 0 1 4.12 4.12c0 2.27-1.85 4.12-4.12 4.12H8.5c-.41 0-.75.34-.75.75s.34.75.75.75h1.62c3.11 0 5.62-2.52 5.62-5.62s-2.52-5.62-5.62-5.62H3.81l1.97-1.97Zm13.69 14a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l2.53 2.53-2.53 2.53c-.29.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06l.72-.72H17c-1.24 0-2.25 1.01-2.25 2.25s1.01 2.25 2.25 2.25h1c.41 0 .75.34.75.75s-.34.75-.75.75h-1c-2.07 0-3.75-1.68-3.75-3.75s1.68-3.75 3.75-3.75h3.19z"})]}),li=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M13 3.25c-.41 0-.75.34-.75.75v7c0 .41.34.75.75.75h7c.41 0 .75-.34.75-.75V4c0-.41-.34-.75-.75-.75zm.75 7v-5.5h5.5v5.5zm-9.75 2c-.41 0-.75.34-.75.75v7c0 .41.34.75.75.75h7c.41 0 .75-.34.75-.75v-7c0-.41-.34-.75-.75-.75zm.75 7v-5.5h5.5v5.5z",clipRule:"evenodd"})]}),ci=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M12.75 15.8c.45-.26.75-.74.75-1.3 0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5c0 .56.3 1.04.75 1.3V18c0 .41.34.75.75.75s.75-.34.75-.75zM18 9h-1.25V5c0-2.62-2.13-4.75-4.75-4.75S7.25 2.38 7.25 5v.5c0 .41.34.75.75.75s.75-.34.75-.75V5c0-1.79 1.46-3.25 3.25-3.25S15.25 3.21 15.25 5v4H6c-1.66 0-3 1.34-3 3v8c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3v-8c0-1.66-1.34-3-3-3m1.5 11c0 .83-.67 1.5-1.5 1.5H6c-.83 0-1.5-.67-1.5-1.5v-8c0-.83.67-1.5 1.5-1.5h12c.83 0 1.5.67 1.5 1.5z"})]}),ui=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M11.25 18c0 .41.34.75.75.75s.75-.34.75-.75V4.81l2.72 2.72c.29.29.77.29 1.06 0s.29-.77 0-1.06L12 1.94 7.47 6.47c-.29.29-.29.77 0 1.06s.77.29 1.06 0l2.72-2.72zm-7.5-1c0-.41-.34-.75-.75-.75s-.75.34-.75.75v3c0 1.52 1.23 2.75 2.75 2.75h14c1.52 0 2.75-1.23 2.75-2.75v-3c0-.41-.34-.75-.75-.75s-.75.34-.75.75v3c0 .69-.56 1.25-1.25 1.25H5c-.69 0-1.25-.56-1.25-1.25z"})]}),di=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M8.25 8.5a3.75 3.75 0 1 1 7.5 0 3.75 3.75 0 0 1-7.5 0m6.78 4.289a5.25 5.25 0 1 0-6.058 0A8.75 8.75 0 0 0 3.249 21a.75.75 0 0 0 1.5 0 7.25 7.25 0 1 1 14.5 0 .75.75 0 0 0 1.5 0 8.75 8.75 0 0 0-5.72-8.211Z",clipRule:"evenodd"})]}),pi=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"m12 0 3.53 3.47c.3.29.3.77 0 1.06-.29.3-.77.3-1.06 0l-1.72-1.7v4.16c0 .41-.34.75-.75.75s-.75-.34-.75-.75V2.84l-1.72 1.7c-.3.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06zm0 24-3.53-3.47c-.3-.29-.3-.77 0-1.06.29-.3.77-.3 1.06 0l1.72 1.7v-4.16c0-.41.34-.75.75-.75s.75.34.75.75v4.16l1.72-1.7c.3-.29.77-.29 1.06 0 .29.3.29.77 0 1.06zm0-10.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5.67 1.5 1.5 1.5",clipRule:"evenodd"})]}),hi=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M15.25 12.43c.33-.19.33-.67 0-.87l-4.5-2.6a.502.502 0 0 0-.75.43v5.2c0 .38.42.63.75.43l4.5-2.6zM21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m.5 14c0 .28-.22.5-.5.5H3c-.28 0-.5-.22-.5-.5V6c0-.28.22-.5.5-.5h18c.28 0 .5.22.5.5z"})]}),fi=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M13.5 3.043a1.75 1.75 0 0 0-3 0L.266 20.1c-.7 1.166.14 2.65 1.5 2.65h20.468c1.36 0 2.2-1.484 1.5-2.65L13.502 3.043ZM12.75 9a.75.75 0 0 0-1.5 0v5a.75.75 0 0 0 1.5 0zm.5 8.5a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0",clipRule:"evenodd"})]}),mi=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M11.992 8.248c.41 0 .75.34.75.75v5c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-5c0-.41.34-.75.75-.75m0 10.5a1.25 1.25 0 1 0 0-2.501 1.25 1.25 0 0 0 0 2.5Zm11.73 1.35-10.23-17.06a1.75 1.75 0 0 0-3 0L.262 20.098c-.7 1.17.14 2.65 1.5 2.65h20.46c1.36 0 2.2-1.48 1.5-2.65m-1.5 1.15H1.762c-.2 0-.32-.21-.22-.38l10.24-17.05c.09-.17.33-.17.42 0l10.24 17.05c.1.17-.02.38-.22.38"})]}),gi=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M6.14 7.61a.75.75 0 0 0-1.03.26c-.21.36-.1.82.26 1.03l2.5 1.5c.36.21.82.1 1.03-.26s.1-.82-.26-1.03zm12.5 1.28c.36-.21.47-.67.26-1.03a.75.75 0 0 0-1.03-.26l-2.5 1.5c-.36.21-.47.67-.26 1.03s.67.47 1.03.26zm-7.5 1.72a.75.75 0 0 0-1.03.26c-.21.36-.1.82.26 1.03l.18.11-.18.11c-.36.21-.47.67-.26 1.03s.67.47 1.03.26l.86-.52.86.52c.36.21.82.1 1.03-.26s.1-.82-.26-1.03l-.18-.11.18-.11c.36-.21.47-.67.26-1.03a.75.75 0 0 0-1.03-.26l-.86.52zm-2.5 4.28c.36-.21.47-.67.26-1.03a.75.75 0 0 0-1.03-.26l-2.5 1.5c-.36.21-.47.67-.26 1.03s.67.47 1.03.26zm7.5-1.28a.75.75 0 0 0-1.03.26c-.21.36-.1.82.26 1.03l2.5 1.5c.36.21.82.1 1.03-.26s.1-.82-.26-1.03zM22 4.5H2C1.17 4.5.5 5.17.5 6v12c0 .83.67 1.5 1.5 1.5h20c.83 0 1.5-.67 1.5-1.5V6c0-.83-.67-1.5-1.5-1.5m0 12.63-.86-.52a.746.746 0 0 0-1.03.25c-.22.36-.1.82.25 1.03l.18.11H3.46l.18-.11c.35-.21.47-.67.25-1.03a.746.746 0 0 0-1.03-.25l-.86.52V6.87l.86.52c.36.22.82.1 1.03-.25.22-.36.1-.82-.25-1.03L3.46 6h17.08l-.18.11c-.35.21-.47.67-.25 1.03.21.35.67.47 1.03.25l.86-.52z"})]}),vi=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11M9.03 7.97a.75.75 0 0 0-1.06 1.06L10.94 12l-2.97 2.97a.75.75 0 1 0 1.06 1.06L12 13.06l2.97 2.97a.75.75 0 1 0 1.06-1.06L13.06 12l2.97-2.97a.75.75 0 0 0-1.06-1.06L12 10.94z",clipRule:"evenodd"})]}),yi=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M9.03 7.97a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06L10.94 12l-2.97 2.97c-.29.29-.29.77 0 1.06s.77.29 1.06 0L12 13.06l2.97 2.97c.29.29.77.29 1.06 0s.29-.77 0-1.06L13.06 12l2.97-2.97c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0L12 10.94zM12 1C5.92 1 1 5.92 1 12s4.92 11 11 11 11-4.92 11-11S18.08 1 12 1m0 20.5c-5.25 0-9.5-4.25-9.5-9.5S6.75 2.5 12 2.5s9.5 4.25 9.5 9.5-4.25 9.5-9.5 9.5"})]}),bi=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M5.105 18.894a.75.75 0 0 1 0-1.06L10.94 12 5.105 6.166a.75.75 0 0 1 1.061-1.06L12 10.939l5.833-5.833a.75.75 0 0 1 1.061 1.06L13.06 12l5.834 5.834a.75.75 0 0 1-1.06 1.06L12 13.061l-5.834 5.833a.75.75 0 0 1-1.06 0Z",clipRule:"evenodd"})]}),wi=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M18.5 10c0 2.077-.745 3.98-1.983 5.457l.013.013 5 5a.75.75 0 0 1-1.06 1.06l-5-5-.013-.013A8.5 8.5 0 1 1 18.5 10M10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14m.75-10a.75.75 0 0 0-1.5 0v2.25H7a.75.75 0 0 0 0 1.5h2.25V13a.75.75 0 0 0 1.5 0v-2.25H13a.75.75 0 0 0 0-1.5h-2.25z",clipRule:"evenodd"})]}),xi=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M18.5 10c0 2.077-.745 3.98-1.983 5.457l.013.013 5 5a.75.75 0 0 1-1.06 1.06l-5-5-.013-.013A8.5 8.5 0 1 1 18.5 10M10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14M7 9.25a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})]});t.sB7=o,t.bvJ=a,t.KHA=s,t.HKb=m,t.A60=g,t.flY=v,t.PtA=w,t.hSU=S,t.MK5=_,t.cFy=k,t.hRt=z,t.m_y=A,t.bDP=I,t.eCO=N,t.JJd=O,t.SwV=R,t.Nrt=B,t.Twg=W,t.Z$6=Z,t.K1E=J,t.XpJ=re,t.s3U=ue,t.G8h=fe,t.rKj=me,t.N2p=ge,t.LPH=be,t.ErD=we,t.bt$=xe,t.YlR=Se,t.m9h=Ee,t.aRD=ke,t.umB=ze,t.SE=Pe,t.FfM=Ae,t.HM_=De,t.cGI=Ie,t.CiG=Me,t.dsd=Ne,t.A5W=Oe,t.s8N=Ke,t.TL=Ze,t.Kf=Xe,t.RMb=Je,t.P$r=Qe,t.Yw6=et,t.Tzz=tt,t.X5L=nt,t.J7y=rt,t._xz=ot,t.fRg=it,t.jNf=ht,t.VUW=vt,t.xfq=wt,t.mLz=It,t.txu=Ot,t.s4F=Rt,t.ZiK=Ft,t.Pjw=Bt,t.P1p=Lt,t.PyK=Vt,t.Gjr=Kt,t.HNp=Ht,t.I8e=$t,t.QBs=Ut,t.qYV=Wt,t.fYD=qt,t.XAi=Gt,t.tM$=Zt,t.Z4s=sn,t.ot=dn,t.kYz=hn,t.hKI=mn,t.ezM=gn,t.aoJ=vn,t.ncu=yn,t.On1=bn,t.bA4=wn,t.J9T=Sn,t.JAm=_n,t.d6Y=Cn,t.SIH=En,t.S2b=kn,t.tir=zn,t.EZ=Pn,t.O_E=An,t.FNe=Tn,t.Wy4=In,t.wQ8=Nn,t.tOd=On,t.Hno=Rn,t.opr=Bn,t.zf_=Ln,t.dtV=Vn,t.UoP=Kn,t.wNc=Un,t.tpl=Wn,t.M$J=qn,t.s5B=Gn,t.Vx3=Zn,t.QSY=Xn,t.C8f=Qn,t.E$n=nr,t.evl=rr,t.rZj=or,t.nlG=ir,t.udU=cr,t.XBh=fr,t.gXF=mr,t.b$9=gr,t.qcG=vr,t.QPM=yr,t.hM0=wr,t.JY8=_r,t.cAn=Er,t.Lg9=kr,t.ip0=zr,t.$s7=Pr,t.jZS=Ar,t.e_J=Dr,t.nMq=Tr,t.uWd=Mr,t.UfX=Or,t.h8W=Lr,t.HTp=Vr,t.soG=$r,t.WIv=qr,t.nhX=Zr,t.efu=Yr,t.Zes=Xr,t.CPw=ao,t.kTg=co,t.So3=ho,t.LV2=mo,t.fSs=yo,t.X4r=bo,t.$nR=wo,t.$rc=xo,t.Ka$=So,t._zw=_o,t._7R=Co,t.F9E=Eo,t.p7S=ko,t._r7=zo,t.dxj=Po,t.RnU=Bo,t.gvh=Lo,t.N$i=Vo,t.LtU=Zo,t.ucK=Qo,t.$o6=ni,t.ejX=ai,t.npA=hi,t.uv5=bi,t.ADv=wi,t.LoD=xi},68267:(e,t,n)=>{"use strict";var r=n(74848),o=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 8 8","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M7.53 1.97a.75.75 0 0 0-1.06 0L4 4.44 1.53 1.97A.75.75 0 0 0 .47 3.03l3 3a.75.75 0 0 0 1.06 0l3-3a.75.75 0 0 0 0-1.06",clipRule:"evenodd"})]}),i=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 8 8","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M6.03 7.53a.75.75 0 0 0 0-1.06L3.56 4l2.47-2.47A.75.75 0 0 0 4.97.47l-3 3a.75.75 0 0 0 0 1.06l3 3a.75.75 0 0 0 1.06 0",clipRule:"evenodd"})]}),a=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 8 8","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M1.97.47a.75.75 0 0 0 0 1.06L4.44 4 1.97 6.47a.75.75 0 0 0 1.06 1.06l3-3a.75.75 0 0 0 0-1.06l-3-3a.75.75 0 0 0-1.06 0",clipRule:"evenodd"})]}),s=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 8 8","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M.47 6.03a.75.75 0 0 0 1.06 0L4 3.56l2.47 2.47a.75.75 0 0 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 0 0 0 1.06",clipRule:"evenodd"})]}),l=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 8 8","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{d:"M1 8V0l6 4z"})]}),c=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 8 8","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",d:"M1 8V0l6 4z"})]}),u=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 8 8","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 6.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5M4 8a4 4 0 1 0 0-8 4 4 0 0 0 0 8",clipRule:"evenodd"})]}),d=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 8 8","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.75 4a.75.75 0 0 1-.75.75H1a.75.75 0 0 1 0-1.5h6a.75.75 0 0 1 .75.75",clipRule:"evenodd"})]}),p=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"none",viewBox:"0 0 8 8","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 .25a.75.75 0 0 1 .75.75v2.25H7a.75.75 0 0 1 0 1.5H4.75V7a.75.75 0 0 1-1.5 0V4.75H1a.75.75 0 0 1 0-1.5h2.25V1A.75.75 0 0 1 4 .25",clipRule:"evenodd"})]}),h=({title:e,titleId:t,...n})=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n.size||"1em",height:n.size||"1em",fill:"currentColor",viewBox:"0 0 8 8","aria-labelledby":t,...n,children:[e?r.jsx("title",{id:t,children:e}):null,r.jsx("path",{fillRule:"evenodd",d:"M.288 7.712a.75.75 0 0 1 0-1.06L2.939 4 .288 1.348a.75.75 0 1 1 1.06-1.06L4 2.939 6.652.288a.75.75 0 1 1 1.06 1.06L5.061 4l2.651 2.652a.75.75 0 0 1-1.06 1.06L4 5.061 1.348 7.712a.75.75 0 0 1-1.06 0",clipRule:"evenodd"})]});t.bD=o,t.vK=c,t.QG=d,t.c1=p,t.uv=h},58534:(e,t,n)=>{"use strict";n.d(t,{rB:()=>Ft,_r:()=>en,Gs:()=>ne,H_:()=>Ae,sr:()=>Dt,_h:()=>Ye,f8:()=>Tt,nB:()=>ie,Y8:()=>K,AV:()=>de,lu:()=>K,Mh:()=>Ve,pu:()=>rt,k8:()=>K,hY:()=>ot,Rc:()=>an,ug:()=>tn,hO:()=>nn,yg:()=>Pt,vj:()=>Sn,Ur:()=>At,gc:()=>V,Nx:()=>K,pw:()=>pe,qT:()=>K,q_:()=>Bt,M7:()=>zt,XD:()=>it});var r=n(96540),o=n(84387),i=n(40027),a=n(52971),s=n(20329),l=n(3984),c=n(65262),u=n(20576),d=n(74848),p=n(65221),h=n(55026),f=n(14484),m=n(35295),g=n(15772),v=n(8521),y=n(54910);let b=null;class w{createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",n=7e3){if(!this.node)return;let r=document.createElement("div");r.textContent=e,"assertive"===t?this.assertiveLog.appendChild(r):this.politeLog.appendChild(r),""!==e&&setTimeout((()=>{r.remove()}),n)}clear(e){this.node&&(e&&"assertive"!==e||(this.assertiveLog.innerHTML=""),e&&"polite"!==e||(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}var x=Object.defineProperty;function S(...e){return 1===e.length&&e[0]?e[0]:t=>{for(let n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}var _=new Set(["id"]),C=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),E=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),k=/^(data-.*)$/;function z(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(_.has(t)||n&&C.has(t)||r&&E.has(t)||o?.has(t)||k.test(t))&&(i[t]=e[t]);return i}function P({state:e,initialState:t={},onChange:n,ref:a}){let[s,l]=r.useState({...t,...e}),c=(0,o.useI18n)(),u=(0,o.useDevice)(a?.current||void 0),d=(0,r.useRef)(Object.fromEntries(Object.entries(e||{}).map((([e,t])=>[e,void 0!==t])))),p=(0,r.useMemo)((()=>Object.fromEntries(Object.entries(e||{}).map((([e,t])=>[e,void 0!==t])))),[e]);return(0,r.useEffect)((()=>{for(let e in d.current){let t=d.current[e];t!==p[e]&&console.warn(`WARN: A component changed from ${t?"controlled":"uncontrolled"} to ${p[e]?"controlled":"uncontrolled"}.`),d.current[e]=p[e]}}),[p]),{intl:c,state:r.useMemo((()=>({get:t=>p[t]?e?.[t]:s[t],set:(t,r)=>{if((p[t]?e?.[t]:s[t])!==r){if(n?.({...s,[t]:r},s),p[t])return void(0,i.V1)(n,"If you provide a controlled state, you must also provide an onChange handler.");l({...s,[t]:r})}},toJS:()=>({...s,...e})})),[e,p,n,s]),device:u}}function A(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function D(e,t,n){return(t=A(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}var N=(e,t,n)=>{for(var r of Object.keys(e)){var o;if(e[r]!==(null!==(o=t[r])&&void 0!==o?o:n[r]))return!1}return!0},O=e=>{var t=t=>{var n=e.defaultClassName,r=I(I({},e.defaultVariants),t);for(var o in r){var i,a=null!==(i=r[o])&&void 0!==i?i:e.defaultVariants[o];if(null!=a){var s=a;"boolean"==typeof s&&(s=!0===s?"true":"false");var l=e.variantClassNames[o][s];l&&(n+=" "+l)}}for(var[c,u]of e.compoundVariants)N(c,r,e.defaultVariants)&&(n+=" "+u);return n};return t.variants=()=>Object.keys(e.variantClassNames),t.classNames={get base(){return e.defaultClassName.split(" ")[0]},get variants(){return M(e.variantClassNames,(e=>M(e,(e=>e.split(" ")[0]))))}},t},R=O({defaultClassName:"x0o33h6 _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z6g1",variantClassNames:{variant:{wide:"x0o33h7 _1yep5z69 _1yep5z6g _1yep5z6h _1yep5z62l _1yep5z62s _1yep5z62t _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z69l _1yep5z69p _1yep5z69q",narrow:"x0o33h8 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69i _1yep5z69j _1yep5z69k"}},defaultVariants:{},compoundVariants:[]}),j=O({defaultClassName:"x0o33h3 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{variant:{wide:"x0o33h4 _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z6g3",narrow:"x0o33h5 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h"}},defaultVariants:{},compoundVariants:[]}),F=O({defaultClassName:"x0o33h0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6",variantClassNames:{variant:{narrow:"_1yep5z6g1",wide:"x0o33h2"}},defaultVariants:{},compoundVariants:[]}),B=(0,o.defineMessages)({signatures:{defaultMessage:"Signatures",id:"signatures"},addSignature:{defaultMessage:"Add Signature",id:"addSignature"},cancel:{defaultMessage:"Cancel",id:"cancel"},delete:{defaultMessage:"Delete",id:"delete"}});function L({children:e,ui:t,options:n}){if(e){let o=e({...n,ui:t});if(o instanceof l.e)return o.toReactElement();if(r.isValidElement(o))return o;throw new Error("The children function must return a valid React element or a block.")}return t.toReactElement()}var V=r.forwardRef((({children:e,state:t,onStateChange:n,initialState:l,...c},u)=>{let d=r.useRef(null),p={...c,...P({ref:d,initialState:l,state:t,onChange:n}),ref:S(u,d)},h=(({className:e,style:t,titleId:n,items:r,ref:l,onAdd:c,onAddFromPreview:u,onRemoveFromPreview:d,onCancel:p,variant:h="wide",intl:{formatMessage:f},"data-block-id":m="signatures-list","data-block-class":g})=>{let v="narrow"===h,y=(0,s.Y)(o.Separator,{className:"_1yep5z64r _1yep5z64s _1yep5z64t _1yep5z673 _1yep5z674 _1yep5z675"});return(0,s.FD)("div",{style:t,className:(0,i.xW)(F({variant:h}),e),ref:l,"data-block-id":m,"data-block-class":g,children:[(0,s.FD)("div",{className:j({variant:h}),"data-block-id":"header",children:[(0,s.Y)(o.Text,{id:n,type:"title",size:v?"sm":"md","data-block-id":"title",className:"PSPDFKit-Electronic-Signatures-Signature-Heading",children:f(B.signatures)}),"wide"===h&&(0,s.Y)(o.ActionButton,{id:"add-signature",size:"md",label:f(B.addSignature),"data-block-id":"add-signature",onPress:c,className:"PSPDFKit-Electronic-Signatures-Add-Signature-Button"})]}),v?(0,s.FD)("div",{children:[y,(0,s.FD)("div",{className:"_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6jj _1yep5z6jk _1yep5z6jl",children:[(0,s.Y)(o.Text,{type:"subtitle",size:"sm",children:f(B.addSignature)}),(0,s.Y)(o.ActionIconButton,{variant:"secondary",size:"md",icon:a.c1,onPress:c,"data-block-id":"add-signature","aria-label":f(B.addSignature)})]})]}):null,(0,s.Y)("div",{className:(0,i.xW)(R({variant:h}),"PSPDFKit-Signature-Picker PSPDFKit-Signature-Dialog-Picker"),"data-block-id":"body",children:r.map((({id:e,...t})=>(0,s.Y)(o.Preview,{className:"PSPDFKit-Signature-Dialog-Picker-Item-Button",...t,"data-block-id":e.toString(),addAriaLabel:f(B.addSignature),onPress:()=>u?.(e),onDelete:d?()=>{d(e)}:void 0,deleteAriaLabel:f(B.delete)},e)))}),!v&&(0,s.Y)("div",{className:"_1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z69 _1yep5z6d _1yep5z6e _1yep5z62l _1yep5z62p _1yep5z62q _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6kg _1yep5z6kh _1yep5z6ki _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6g3","data-block-id":"footer",children:(0,s.Y)(o.ActionButton,{variant:"secondary",size:"md",label:f(B.cancel),onPress:p,"data-block-id":"cancel",className:"PSPDFKit-Signature-Dialog-Cancel-Button"})}),v?y:null]})})(p);return L({children:e,ui:h,options:p})}));V.displayName="SignaturesList";var K=r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:i,...a},l)=>{let c=r.useRef(null),u={...a,...P({ref:c,initialState:t,state:n,onChange:i}),ref:S(l,c)},d=(({content:e,dialogProps:t,modalProps:n,modalContentProps:r,hasDialog:i=!0,...a})=>(0,s.Y)(o.Modal,{isOpen:!0,...a,...n,children:(0,s.Y)(o.ModalContent,{...r,children:i?(0,s.Y)(o.Dialog,{variant:"ghost",...t,className:"PSPDFKit-Modal-Dialog",children:e}):e})}))(u);return L({children:e,ui:d,options:u})}));K.displayName="DialogModal";var H=O({defaultClassName:"_1pebngc18 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6ln",variantClassNames:{variant:{wide:"_1pebngc19",narrow:"_1yep5z63r _1yep5z63y _1yep5z63z _1yep5z619 _1yep5z61j _1yep5z61k _1yep5z63 _1yep5z67 _1yep5z68 _1yep5z62f _1yep5z62j _1yep5z62k _1yep5z6g1"}},defaultVariants:{},compoundVariants:[]}),$=O({defaultClassName:"_1pebngc6 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6",variantClassNames:{variant:{wide:"_1pebngc7",narrow:"_1pebngc8"}},defaultVariants:{},compoundVariants:[]}),U=O({defaultClassName:"_1pebngc0",variantClassNames:{variant:{wide:"_1pebngc1",narrow:"_1pebngc2"}},defaultVariants:{},compoundVariants:[]}),W=O({defaultClassName:"_1pebngc15 _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z69 _1yep5z6d _1yep5z6e _1yep5z62l _1yep5z62p _1yep5z62q _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6kj _1yep5z6kk _1yep5z6kl",variantClassNames:{variant:{wide:"_1yep5z6g3",narrow:"_1yep5z6g1"}},defaultVariants:{},compoundVariants:[]}),q=O({defaultClassName:"_1pebngc3 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6jj _1yep5z6jk _1yep5z6jl",variantClassNames:{variant:{narrow:"_1pebngc4 _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z619 _1yep5z61g _1yep5z61h _1yep5z6g1",wide:"_1pebngc5 _1yep5z69 _1yep5z6g _1yep5z6h _1yep5z62l _1yep5z62s _1yep5z62t _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z6g3"}},defaultVariants:{},compoundVariants:[]}),G=O({defaultClassName:"_1pebngcs _1pebngch _1yep5z6ln",variantClassNames:{variant:{wide:"_1pebngct",narrow:"_1pebngcu"}},defaultVariants:{},compoundVariants:[]}),Z=O({defaultClassName:"_1pebngcm",variantClassNames:{variant:{wide:"_1pebngcn",narrow:"_1pebngco"}},defaultVariants:{},compoundVariants:[]}),Y=O({defaultClassName:"_1pebngch _1yep5z6ln _1yep5z6lo",variantClassNames:{variant:{wide:"_1yep5z65c _1yep5z65d _1yep5z65e",narrow:"_1pebngcr"}},defaultVariants:{},compoundVariants:[]}),X=O({defaultClassName:"_1pebngcv _1pebngch _1yep5z6ln",variantClassNames:{variant:{wide:"_1pebngct",narrow:"_1pebngcx"}},defaultVariants:{},compoundVariants:[]}),J=O({defaultClassName:"_1pebngcy _1pebngch _1yep5z6ln",variantClassNames:{variant:{wide:"_1pebngcz",narrow:"_1pebngc10"}},defaultVariants:{},compoundVariants:[]}),Q=O({defaultClassName:"_1pebngci _1pebngch _1yep5z6ln",variantClassNames:{variant:{wide:"_1pebngcj",narrow:"_1yep5z6af _1yep5z6ag _1yep5z6ah"}},defaultVariants:{},compoundVariants:[]}),ee=O({defaultClassName:"_1pebngc9 _1yep5z6lk",variantClassNames:{variant:{wide:"_1pebngca _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z6g3",narrow:"_1pebngcb _1yep5z64l _1yep5z63s _1yep5z63t _1yep5z629 _1yep5z61g _1yep5z61h _1yep5z6g1"}},defaultVariants:{},compoundVariants:[]}),te=O({defaultClassName:"_1pebngcc _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6lo",variantClassNames:{type:{image:"_1yep5z6c _1yep5z6d _1yep5z6e _1yep5z62o _1yep5z62p _1yep5z62q _1yep5z6kd _1yep5z6ke _1yep5z6kf",type:"_1pebngce"},variant:{wide:"_1yep5z6c _1yep5z6d _1yep5z6e _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z69o _1yep5z69p _1yep5z69q",narrow:"_1yep5z613 _1yep5z614 _1yep5z615 _1yep5z63f _1yep5z63g _1yep5z63h"}},defaultVariants:{},compoundVariants:[]}),ne={DRAW:"DRAW",TYPE:"TYPE",IMAGE:"IMAGE"};O({defaultClassName:"yje7uq8 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]});O({defaultClassName:"yje7uq0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6j1 _1yep5z6j2 _1yep5z6j3",variantClassNames:{labelPosition:{end:"_1yep5z6154 _1yep5z6155 _1yep5z6156 _1yep5z6vl _1yep5z6vm _1yep5z6vn",start:"_1yep5z615a _1yep5z615b _1yep5z615c _1yep5z616m _1yep5z616n _1yep5z616o"}},defaultVariants:{},compoundVariants:[]});var re=O({defaultClassName:"yje7uq3 _1dlrtbb6",variantClassNames:{isFocusVisible:{true:"_1dlrtbb9"},isSelected:{true:"_1dlrtbb8"},isDisabled:{true:"_1dlrtbbb"}},defaultVariants:{},compoundVariants:[]}),oe=({item:{id:e,label:t},options:{isSelected:n,isFocusVisible:r,isDisabled:o}})=>(0,d.jsxs)("div",{className:(0,i.xW)("_1pebngc12 _1yep5z63x _1yep5z63y _1yep5z63z _1yep5z61l _1yep5z61m _1yep5z61n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6ev _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6lp","PSPDFKit-Electronic-Signatures-Font-Family-Wrapper"),"aria-label":e,style:{fontFamily:e},children:[(0,d.jsx)("div",{className:re({isSelected:n,isFocusVisible:r,isDisabled:o}),children:n?(0,d.jsx)("div",{className:(0,i.xW)("yje7uq7","PSPDFKit-Electronic-Signatures-Font-Family-Radio-Input")}):null}),(0,d.jsx)("span",{className:"PSPDFKit-Electronic-Signatures-Font-Family-Label",children:t})]}),ie=r.forwardRef((({children:e,initialState:t,state:n,onStateChange:l,...d},p)=>{let h=P({initialState:{selectedFont:d.fonts[0],color:d.colorPresets[0].color||"#000000",shouldStoreSignature:!1,currentTab:d.allowedTabs?.[0]||ne.DRAW,...t},state:n,onChange:l}),f={...d,...h,ref:p},m=(({className:e,style:t,colorPresets:n,state:l,ref:d,intl:{formatMessage:p},titleId:h,fonts:f,onCloseRequest:m,onAdd:g,variant:v="wide",allowedTabs:y=[ne.DRAW,ne.IMAGE,ne.TYPE],allowStoringSignature:b=!0,"data-block-id":w="create-signature","data-block-class":x})=>{let S="narrow"===v,_=r.useRef(null),C=r.useCallback((e=>{l.set("ink",e.length?e:void 0)}),[l]),E=r.useCallback((e=>{l.set("image",e?.[0]||null)}),[l]),k=(0,r.useMemo)((()=>(0,s.Y)(o.ColorSwatchPicker,{items:n||[],"aria-label":S?void 0:p("color"),className:(0,i.xW)(H({variant:v}),"PSPDFKit-Input-ColorPicker"),value:l.get("color"),onChange:e=>{e&&l.set("color",e)},"data-block-id":"color-selector",label:S?p("color"):void 0,labelPosition:"start",optionClassName:"PSPDFKit-Input-ColorPicker-Swatch PSPDFKit-Input-ColorPicker-Label"})),[n,p,S,l,v]),z=(0,r.useCallback)((e=>{switch(e){case ne.DRAW:return(0,s.FD)(o.TabItem,{title:p("draw"),value:ne.DRAW,titleClassName:"PSPDFKit-Electronic-Signatures-Tab PSPDFKit-Electronic-Signatures-Tab-Draw",className:te({variant:v}),"data-block-id":"draw-tab",children:[!S&&k,(0,s.Y)(o.FreehandCanvas,{"data-block-id":"freehand-canvas",placeholder:p("signHere"),clearLabel:p("clearSignature"),strokeColor:l.get("color"),className:"_1pebngch _1yep5z6ln _1yep5z6lo",isInline:!S,value:l.get("ink"),canvasRef:_,canvasClassName:(0,i.xW)(G({variant:v}),"PSPDFKit-Electronic-Signatures-Canvas"),footerClassName:(0,i.xW)(Z({variant:v}),{"PSPDFKit-Electronic-Signatures-Sign-Here-Label":!l.get("ink"),"PSPDFKit-Electronic-Signatures-Clear-Signature-Button":l.get("ink")}),onChange:C}),S?k:null]},e);case ne.IMAGE:return(0,s.Y)(o.TabItem,{title:p("image"),value:ne.IMAGE,titleClassName:"PSPDFKit-Electronic-Signatures-Tab PSPDFKit-Electronic-Signatures-Tab-Image",className:te({type:"image",variant:v}),"data-block-id":"image-tab",children:(0,s.Y)(o.ImageDropZone,{className:(0,i.xW)(Y({variant:v}),"PSPDFKit-Electronic-Signatures-Image-Dropzone"),pickerButtonClassName:l.get("image")?"PSPDFKit-Electronic-Signatures-Replace-Image-Button":"PSPDFKit-Electronic-Signatures-Add-Image-Button",labelClassName:X({variant:v}),isInline:!S,"data-block-id":"image-drop-zone",onValueChange:E,imageSrc:l.get("image"),placeholder:p("selectDragImage"),footerClassName:Z({variant:v}),clearLabel:p("clearSignature"),accept:"image/jpeg, image/png,"})},e);case ne.TYPE:return(0,s.FD)(o.TabItem,{title:p("type"),value:ne.TYPE,titleClassName:"PSPDFKit-Electronic-Signatures-Tab PSPDFKit-Electronic-Signatures-Tab-Type","data-block-id":"type-tab",children:[(0,s.FD)("div",{className:te({type:"type",variant:v}),children:[!S&&k,(0,s.Y)(c.SignatureTextInput,{inputStyle:{color:l.get("color"),fontFamily:l.get("selectedFont")},placeholder:p("signature"),onChange:e=>{l.set("text",e)},label:p("signHere"),"data-block-id":"signature-text-input",value:l.get("text"),inputClassName:(0,i.xW)(J({variant:v}),"PSPDFKit-Electronic-Signatures-Text-Input"),className:(0,i.xW)(Q({variant:v}),"PSPDFKit-Text-Input"),clearLabel:p("clearSignature"),isInline:!S,footerStyle:{padding:S?u.G6.spacing.sm:void 0},footerClassName:"PSPDFKit-Electronic-Signatures-Clear-Signature-Button"})]}),!S&&1!==f.length&&(0,s.Y)(o.RadioGroup,{optionsContainerClassName:(0,i.xW)("_1pebngc14","PSPDFKit-Electronic-Signatures-Font-Families-Container"),orientation:"horizontal",className:"_1pebngc11 _1yep5z650 _1yep5z651 _1yep5z652 _1yep5z6g3",items:f.map((e=>({id:e,label:l.get("text")||p("signature")}))),"data-block-id":"font-selector",value:l.get("selectedFont"),onChange:e=>{l.set("selectedFont",e)},optionClassName:"_1pebngc13 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl","aria-label":p("fonts"),renderOption:(e,t)=>(0,s.Y)(oe,{item:e,options:t}).toReactElement()}),S?k:null,S?(0,s.Y)(o.Select,{isReadOnly:1===f.length,labelPosition:"start",label:"Font","data-block-id":"font-selector",className:H({variant:v}),placement:"bottom end",selectedKey:l.get("selectedFont"),onSelectionChange:e=>{l.set("selectedFont",e)},style:{fontFamily:l.get("selectedFont")},variant:"ghost",items:f.map((e=>({id:e,label:l.get("text")||p("signature")})))}):null]},e)}}),[p,v,S,k,l,C,E,f]),P=l.get("currentTab"),A=(0,r.useCallback)((()=>{switch(P){case ne.DRAW:return{type:ne.DRAW,value:l.get("ink")};case ne.IMAGE:return{type:ne.IMAGE,value:l.get("image")};case ne.TYPE:return{type:ne.TYPE,value:l.get("text")}}}),[P,l]);return(0,s.FD)("div",{className:(0,i.xW)(U({variant:v}),e),style:t,"data-block-id":w,"data-block-class":x,ref:d,children:[(0,s.FD)("div",{"data-block-id":"header",className:q({variant:v}),children:[(0,s.Y)(o.Text,{elementType:"h3",type:"title",size:S?"sm":"md","data-block-id":"title",id:h,children:p("addSignature")}),S?(0,s.Y)(o.ActionIconButton,{variant:"secondary","data-block-id":"close-button",size:"md",icon:a.uv,onPress:m,"aria-label":p("close")}):null]}),S?(0,s.Y)(o.Separator,{}):null,(0,s.Y)("div",{"data-block-id":"body",className:(0,i.xW)($({variant:v}),"PSPDFKit-Electronic-Signatures-Tabs-Container"),children:(0,s.Y)(o.Tabs,{variant:"ghost","data-block-id":"tabs",className:"_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",tabHeaderClassName:(0,i.xW)(ee({variant:v}),"PSPDFKit-Electronic-Signatures-Tabs-List"),onSelectionChange:e=>{l.set("currentTab",e)},children:y.map((e=>z(e)))})}),S?(0,s.Y)(o.Separator,{}):null,(0,s.FD)("div",{"data-block-id":"footer",className:W({variant:v}),children:[b?(0,s.Y)(o.Checkbox,{isSelected:l.get("shouldStoreSignature"),"data-block-id":"save-signature-checkbox",label:p("saveSignature"),className:"PSPDFKit-Electronic-Signatures-Store-Signature-Checkbox",onChange:e=>{l.set("shouldStoreSignature",e)}}):(0,s.Y)("div",{}),(0,s.FD)("div",{className:"_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69l _1yep5z69m _1yep5z69n",children:[!S&&(0,s.Y)(o.ActionButton,{"data-block-id":"cancel-button",variant:"secondary",size:"md",label:p("cancel"),onPress:m,className:"PSPDFKit-Electronic-Signatures-Cancel-Button"}),(0,s.Y)(o.ActionButton,{"data-block-id":"done-button",onPress:()=>{g({...l.toJS(),signature:A(),canvasSize:{width:_.current?.clientWidth||0,height:_.current?.clientHeight||0}})},label:p("done"),isDisabled:!A()?.value,size:"md",className:"PSPDFKit-Electronic-Signatures-Done-Button"})]})]})]})})(f);return L({children:e,ui:m,options:f})}));ie.displayName="CreateSignature";var ae="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z69m _1yep5z69n",se="dabjfd2 dabjfd0 _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z6c _1yep5z6d _1yep5z6e _1yep5z62o _1yep5z62p _1yep5z62q _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6kd _1yep5z6kk _1yep5z6kl _1yep5z6jg _1yep5z6jk _1yep5z6jl _1yep5z6g3 _1yep5z6j4 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z6ag _1yep5z6ah _1yep5z6m6 _1yep5z6oi _1yep5z616j _1yep5z616k _1yep5z616l _1yep5z615m _1yep5z615n _1yep5z615o _1yep5z6154 _1yep5z6155 _1yep5z6156",le="dabjfd0 _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z6c _1yep5z6d _1yep5z6e _1yep5z62o _1yep5z62p _1yep5z62q _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6kd _1yep5z6kk _1yep5z6kl _1yep5z6jg _1yep5z6jk _1yep5z6jl _1yep5z6g3 _1yep5z6j4 _1yep5z6j2 _1yep5z6j3 _1yep5z69l _1yep5z6ag _1yep5z6ah",ce="_1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z69 _1yep5z6d _1yep5z6e _1yep5z62l _1yep5z62p _1yep5z62q";function ue(e){return(0,i.Zt)(e,80)}var de=r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:a,...l},u)=>{let d=r.useRef(null),h=P({ref:d,initialState:{color:l.colorPresets[0].color,includeDate:!0,includeTime:!1,...t},state:n,onChange:a}),f={...l,...h,ref:S(u,d)},m=(({intl:{formatMessage:e},titleId:t,className:n,state:a,device:l,onCloseRequest:u,ref:d,onCreate:h,colorPresets:f,onExistingStampPress:m,getLighterVariant:g=ue,"data-block-id":v="create-stamp","data-block-class":y})=>{let b=(0,p.iF)({...a.get("includeDate")?{year:"2-digit",month:"2-digit",day:"2-digit"}:{},...a.get("includeTime")?{hour:"2-digit",minute:"2-digit"}:{}}),w=a.get("includeDate")||a.get("includeTime"),x=(0,r.useRef)(190);return(0,s.FD)("div",{ref:d,className:n,"data-block-id":v,"data-block-class":y,children:[(0,s.FD)("div",{"data-block-id":"header",className:(0,i.xW)(le,"PSPDFKit-Modal-Section"),children:[(0,s.Y)(o.Text,{elementType:"h3",id:t,"data-block-id":"title",children:e("customStamp")}),(0,s.Y)(o.ActionButton,{size:"md","data-block-id":"stamp-presets-button",label:e("useAnExistingStampDesign"),variant:"tertiary",className:"PSPDFKit-Stamp-Dialog-Existing-Stamp-Button",onPress:m})]}),(0,s.FD)("div",{"data-block-id":"body",className:"_1yep5z69 _1yep5z6g _1yep5z6h _1yep5z6g1",children:[(0,s.Y)("div",{className:(0,i.xW)("dabjfd1 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z68f _1yep5z68m _1yep5z68n _1yep5z663 _1yep5z66a _1yep5z66b _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6m1 _1yep5z6lz _1yep5z6h4 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6kd _1yep5z6ke _1yep5z6kf","PSPDFKit-Stamp-Editor"),children:(0,s.Y)(c.Stamp,{"data-block-id":"stamp-preview",strokeColor:a.get("color"),fontColor:a.get("color"),fillColor:g(a.get("color")),text:a.get("text"),subText:w?b.format(new Date):void 0,height:94,minWidth:190,maxWidth:408,onDimensionsChange:e=>{x.current=e.width}})}),(0,s.Y)(o.TextInput,{"data-block-id":"stamp-text-input",value:a.get("text"),className:ce,label:e("stampText"),onChange:e=>{a.set("text",e?.toUpperCase())}}),(0,s.Y)(o.Checkbox,{"data-block-id":"include-date-checkbox",label:e("date"),className:ce,labelPosition:"start",defaultSelected:a.get("includeDate"),onChange:e=>{a.set("includeDate",e)}}),(0,s.Y)(o.Checkbox,{"data-block-id":"include-time-checkbox",label:e("time"),className:ce,labelPosition:"start",defaultSelected:a.get("includeTime"),onChange:e=>{a.set("includeTime",e)}}),(0,s.Y)(o.ColorSwatchPicker,{"data-block-id":"color-selector",items:f,defaultValue:a.get("color"),className:(0,i.xW)("_1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k","PSPDFKit-Input-ColorPicker"),optionClassName:"PSPDFKit-Input-ColorPicker-Label PSPDFKit-Input-ColorPicker-Swatch",onChange:e=>{e&&a.set("color",e)},optionsContainerClassName:"dabjfd3",labelPosition:"mobile"===l?"top":"start",label:e("chooseColor")})]}),(0,s.Y)("div",{"data-block-id":"footer",className:(0,i.xW)(se,"PSPDFKit-Modal-Section"),children:(0,s.FD)("div",{className:ae,children:[(0,s.Y)(o.ActionButton,{size:"md",label:e("cancel"),variant:"secondary","data-block-id":"cancel-button",onPress:()=>u?.()}),(0,s.Y)(o.ActionButton,{label:e("createStamp"),"data-block-id":"done-button",size:"md",onPress:()=>{h({text:a.get("text"),subText:w?b.format(new Date):void 0,width:x.current,color:a.get("color")})}})]})})]})})(f);return L({children:e,ui:m,options:f})}));de.displayName="CreateStamp";var pe=r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:a,...l},c)=>{let u=r.useRef(null),d={...l,...P({ref:u,initialState:t,state:n,onChange:a}),ref:S(c,u)},p=(({intl:{formatMessage:e},titleId:t,ref:n,items:r,className:a,onAdd:l,onCancel:c,onCustomStampPress:u,"data-block-id":d="stamps-list","data-block-class":p})=>(0,s.FD)("div",{ref:n,className:a,"data-block-id":d,"data-block-class":p,children:[(0,s.FD)("div",{"data-block-id":"header",className:(0,i.xW)(le,"PSPDFKit-Modal-Section"),children:[(0,s.Y)(o.Text,{elementType:"h3",id:t,"data-block-id":"title",children:e("useAnExistingStampDesign")}),(0,s.Y)(o.ActionButton,{onPress:u,size:"md","data-block-id":"stamp-presets-button",label:e("customStamp"),variant:"tertiary",className:"PSPDFKit-Stamp-Dialog-Custom-Stamp-Button"})]}),(0,s.Y)("div",{"data-block-id":"body",className:(0,i.xW)("_1dk00840 x0o33h6 _1yep5z6iy _1yep5z6iz _1yep5z6j0 _1yep5z6g1 x0o33h7 _1yep5z69 _1yep5z6g _1yep5z6h _1yep5z62l _1yep5z62s _1yep5z62t _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z69l _1yep5z69p _1yep5z69q","PSPDFKit-Stamp-Picker"),children:r.map((({id:e,...t})=>(0,s.Y)(o.Preview,{...t,addAriaLabel:t["aria-label"],"data-block-id":`preview-${e}`,onPress:()=>l?.(e)},e)))}),(0,s.Y)("div",{"data-block-id":"footer",className:(0,i.xW)(se,"PSPDFKit-Modal-Section"),children:(0,s.Y)("div",{className:ae,children:(0,s.Y)(o.ActionButton,{onPress:c,size:"md",label:e("cancel"),variant:"secondary","data-block-id":"cancel-button"})})})]}))(d);return L({children:e,ui:p,options:d})}));pe.displayName="StampsList";var he="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6le",fe="_1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z69i _1yep5z69j _1yep5z69k",me="_443wcr7 _1yep5z68u _1yep5z68v _1yep5z68w",ge="_443wcr6";function ve({error:e}){return(0,d.jsx)(o.InlineAlert,{title:e.title,description:e.description,variant:"error",arrangement:"compact",actionLabel:e.action?.text,onAction:e.action?.onPress})}function ye({actions:e,suggestions:t=[]}){return(0,d.jsxs)(o.Box,{display:"flex",gap:"md",flexDirection:"column",children:[t?.length>0&&(0,d.jsx)("div",{className:he,children:t.map((({text:e,onPress:t},n)=>(0,d.jsx)(o.Link,{variant:"inline",onPress:t,size:"sm",children:e},n)))}),(0,d.jsx)("div",{className:he,children:e.map((({text:e,onPress:t},n)=>(0,d.jsx)(o.ActionButton,{variant:"tertiary",label:e,onPress:t,size:"sm"},n)))})]})}function be({additionalContext:e,linkToAdditionalContext:t,actions:n}){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"_1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6fw",children:(0,d.jsx)(o.Text,{type:"body",size:"sm",className:"_443wcr5",children:e})}),(0,d.jsx)(o.Link,{onPress:t.onPress,size:"sm",children:t.text}),(0,d.jsx)("div",{className:he,children:n.map((({text:e,onPress:t},n)=>(0,d.jsx)(o.ActionButton,{variant:"tertiary",label:e,onPress:t,size:"sm"},n)))})]})}function we({suggestions:e}){return(0,d.jsx)("div",{className:fe,children:e.map((({text:e,onPress:t},n)=>(0,d.jsx)(o.Link,{variant:"inline",onPress:t,size:"sm",children:e},n)))})}function xe({links:e,actions:t,actionsText:n}){let[i,a]=(0,r.useState)(1),{formatMessage:s}=(0,o.useI18n)(),l=e.length<=15,c=l?0:15*(i-1),u=l?Math.min(e.length,5*i):15*i;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:fe,children:[e.slice(c,u).map((({text:e,onPress:t},n)=>(0,d.jsxs)(o.Box,{display:"flex",alignItems:"center",gap:"sm",color:"icon.primary",children:[(0,d.jsx)(o.Box,{display:"flex",alignItems:"center",children:(0,d.jsx)(h.fl,{size:16})}),(0,d.jsx)(o.Link,{variant:"inline",onPress:t,size:"sm",title:e,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e})]},n))),e.length>15&&(0,d.jsx)(o.Pagination,{"aria-label":s(Se.viewMoreResults),variant:"pinned",maxValue:Math.ceil(e.length/15),onChange:a,size:"xs"}),l&&u<e.length?(0,d.jsx)(o.Link,{onPress:()=>{a((e=>e+1))},size:"sm",children:s("showMore")}):null]}),(0,d.jsx)(o.Text,{type:"body",size:"sm",children:n}),(0,d.jsx)("div",{className:he,children:t.map((({text:e,onPress:t},n)=>(0,d.jsx)(o.ActionButton,{variant:"tertiary",label:e,onPress:t,size:"sm"},n)))})]})}var Se=(0,o.defineMessages)({viewMoreResults:{id:"viewMoreResults",defaultMessage:"View More Results"}}),_e="ACTIONS",Ce="ERROR",Ee="SUGGESTIONS",ke="ADDITIONAL_CONTEXT",ze="QUERY_RESULT",Pe=(0,o.defineMessages)({chat:{id:"chat",defaultMessage:"Chat"},readMore:{id:"readMore",defaultMessage:"Read More"},typeSomething:{id:"typeSomething",defaultMessage:"Type something..."}}),Ae=r.forwardRef((({children:e,initialState:t={},...n},a)=>{let l=r.useRef(null),u={...n,...P({ref:l,initialState:t}),ref:S(a,l)},d=(({intl:{formatMessage:e},className:t,titleId:n,"data-block-id":a="chat-dialog","data-block-class":l,messages:u,onMessageSubmit:d,onInputChanged:p,isLoading:f,isDisabled:m,isSubmitDisabled:g,variant:v="default",inputValue:y,style:b,editorHandle:w})=>{let x=(0,r.useRef)(null);return(0,s.FD)("div",{role:"log","data-block-id":a,"data-block-class":l,className:(0,i.xW)("_1yep5z6lo _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6j4 _1yep5z6j5 _1yep5z6j6",t),style:b,"aria-labelledby":n,children:[f?(0,s.Y)(o.ProgressSpinner,{className:"_1yep5z6ln _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6g2 _1yep5z6kd _1yep5z6ke _1yep5z6kf","aria-label":e("loading")}):null,Array.isArray(u)&&!f&&(0,s.Y)("div",{className:"_443wcr1 _1yep5z6ln _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6ja _1yep5z6jb _1yep5z6jc _1yep5z69f _1yep5z69g _1yep5z69h _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6g2",ref:x,children:(0,s.Y)("div",{className:"_443wcr2",children:u.map((({id:t,type:n,isComplete:a,canCopy:l,text:d,...p},f)=>{let m;switch(n){case Ce:{let{error:e}=p;m=(0,s.Y)(ve,{error:e});break}case _e:{let{actions:e,suggestions:t}=p;m=(0,s.Y)(ye,{actions:e,suggestions:t});break}case Ee:{let{suggestions:e}=p;m=(0,s.Y)(we,{suggestions:e});break}case ke:{let{additionalContext:e,linkToAdditionalContext:t,actions:n}=p;m=(0,s.Y)(be,{actions:n,additionalContext:e,linkToAdditionalContext:t});break}case ze:{let{links:e,actionsText:t,actions:n}=p;m=(0,s.Y)(xe,{links:e,actionsText:t,actions:n});break}default:m=null}let g=(0,s.Y)(o.Markdown,{showCaret:!a,className:"_443wcr8",children:d});return(0,s.FD)(r.Fragment,{children:[(0,s.FD)(c.Comment,{avatarProps:{name:p.sender,showInitials:!0},content:g.toReactElement(),name:p.sender,isInline:"full-width"!==v,children:[m,l?(0,s.Y)(o.Box,{children:(0,s.Y)(o.ActionIconButton,{variant:"secondary",icon:h.Td,onPress:()=>{navigator.clipboard.writeText(d)},size:"sm","aria-label":e("copy")})}):null]}),f!==u.length-1&&(0,s.Y)(o.Separator,{className:(0,i.xW)(ge,{[me]:"default"===v})})]},t)}))})}),(0,s.Y)(o.Box,{position:"relative",width:"full",children:(0,s.Y)(o.ScrollControlButton,{"data-block-id":"scroll-control-button",className:"_443wcr4",label:e(Pe.readMore),scrollRef:x})}),(0,s.Y)(o.Separator,{className:ge}),(0,s.Y)(o.Editor,{isDisabled:m,isSaveDisabled:g,onChange:p,onSave:d,placeholder:e(Pe.typeSomething),variant:"minimal",isInline:!1,className:"_443wcr3 _1yep5z6c0 _1yep5z6c1 _1yep5z6c2 _1yep5z6co _1yep5z6cp _1yep5z6cq _1yep5z6ln",value:y,editorHandle:w,saveOnEnter:!0})]})})(u);return L({children:e,ui:d,options:u})}));Ae.displayName="ChatDialog";var De=O({defaultClassName:"_1slx693c _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",variantClassNames:{isEmptyState:{true:"_1slx693d"}},defaultVariants:{},compoundVariants:[]}),Te="var(--_1slx6933)",Ie="var(--_1slx6932)",Me="var(--_1slx6935)",Ne="var(--_1slx6931)",Oe="var(--_1slx6930)",Re="var(--_1slx6934)",je=O({defaultClassName:"_1slx693f _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69f _1yep5z69g _1yep5z69h _1yep5z6lq",variantClassNames:{isFocused:{true:"_1slx693g"},isSelected:{true:"_1slx693h"}},defaultVariants:{},compoundVariants:[]}),Fe=e=>((0,i.V1)(e.value&&"icon"in e.value&&e.value.icon,"Item value is required."),(0,d.jsx)(o.ActionIconButton,{"aria-label":e.textValue,icon:e.value.icon,variant:"secondary",size:"md"})),Be="prev-change",Le="next-change",Ve=(0,r.forwardRef)((({children:e,initialState:t={},state:n,onStateChange:a,...l},c)=>{let u=(0,r.useRef)(null),d={...l,...P({ref:u,initialState:t,state:n,onChange:a}),ref:S(c,u)},p=(({ref:e,style:t,className:n,"data-block-id":a="diff-viewer","data-block-class":l,"aria-label":c,changes:u,shouldShowChangesCount:d=!0,changeItemClassName:p,changeSectionClassName:h,changeSectionHeaderClassName:g,onNextChange:v,onPreviousChange:y,onJumpToChange:b,selectedKey:w,diffColors:x={}})=>{let S=(0,o.useIsFirstRender)(),_=(0,r.useMemo)((()=>{let{insertionColor:e,insertionBackgroundColor:t,deletionColor:n,deletionBackgroundColor:r,insertionCountColor:o,deletionCountColor:i}=x;return(0,f.D)({[Oe]:e,[Ne]:t,[Ie]:n,[Te]:r,[Re]:o,[Me]:i})}),[x]),C=(0,r.useRef)(null),E=(0,r.useMemo)((()=>u.flatMap((e=>e.children)).length),[u]),k=0===E,z=(0,r.useMemo)((()=>w?[w]:[]),[w]),P=b?e=>{b([...e][0])}:void 0,A=(0,r.useCallback)((e=>{if(C.current&&null!==e){let t=C.current,n=t.querySelector(`[data-key="${e}"]`);if(n){let e=t.getBoundingClientRect(),r=n.getBoundingClientRect(),o=t.scrollTop+(r.top-e.top)-(e.height-r.height)/2;t.scrollTo({top:o,behavior:S?"auto":"smooth"})}}}),[S]);(0,r.useEffect)((()=>{A(String(z[0]))}),[z,S,A]);let D=(0,r.useCallback)((({value:e},t)=>{(0,i.V1)(e,"invalid value in list item"),(0,i.V1)("title"in e,"invalid title in list item");let{title:n}=e;return(0,s.Y)("span",{className:(0,i.xW)("_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g3 _1yep5z6ip _1yep5z6iq _1yep5z6ir",g,"PSPDFKit-DiffViewer-SectionHeader"),ref:t,children:(0,s.Y)(o.Text,{type:"subtitle",size:"sm",children:n})}).toReactElement()}),[g]),T=(0,r.useMemo)((()=>u.map((e=>({...e,title:`Page ${e.pageNumber}`})))),[u]),I=E>1?[{id:Be,label:0===Number(w)?"Last Change":"Previous Change",icon:m.SwV,data:{className:"PSPDFKit-DiffViewer-Button-Prev"}},{id:Le,label:Number(w)===E-1?"First Change":"Next Change",icon:m.bDP,data:{className:"PSPDFKit-DiffViewer-Button-Next"}}]:[];return(0,s.FD)(o.Box,{className:(0,i.xW)(n,"PSPDFKit-DiffViewer"),style:{...t,..._},ref:e,"data-block-id":a,"data-block-class":l,display:"flex",flexDirection:"column",height:"full",children:[(0,s.FD)(o.Box,{display:"flex",alignItems:"center",justifyContent:"space-between",className:(0,i.xW)("_1yep5z63o _1yep5z63p _1yep5z63q","PSPDFKit-DiffViewer-Actions"),children:[(0,s.Y)(o.Text,{type:"title",size:"sm",className:(0,i.xW)("_1slx6936","PSPDFKit-DiffViewer-HeaderText"),children:d?`${E} Changes`:"Changes"}),(0,s.Y)(o.ActionGroup,{items:I,onAction:e=>{switch(e){case Le:v?.();break;case Be:y?.()}},renderActionItem:Fe})]}),(0,s.Y)("div",{className:(0,i.xW)(De({isEmptyState:k}),"PSPDFKit-DiffViewer-List"),children:k?(0,s.Y)(o.Box,{flex:1,display:"flex",justifyContent:"center",alignItems:"center",children:(0,s.Y)(o.Text,{type:"helper",children:"No Changes"})}):(0,s.Y)(o.ListBox,{ref:C,items:T,"aria-label":c,selectionMode:"single",selectedKeys:z,onSelectionChange:P,disallowEmptySelection:!0,optionClassName:p,sectionClassName:h,showSectionHeader:!0,renderSectionHeader:D,renderOption:({value:e},{optionProps:t,isFocusVisible:n,isSelected:r},a)=>{(0,i.V1)(e,"invalid value in list item"),(0,i.V1)("label"in e,"invalid label in list item");let{data:l}=e,c=l?.deletedChangesCount||0,u=l?.insertedChangesCount||0,d=(0,s.FD)(o.Text,{type:"label",size:"sm",children:[c>0&&(0,s.FD)("span",{className:(0,i.xW)("_1slx6938","PSPDFKit-DiffViewer-DeletedCount"),children:["-",c]}),c>0&&u>0&&(0,s.Y)(o.Text,{className:"_1slx693b",children:"|"}),u>0&&(0,s.FD)("span",{className:(0,i.xW)("_1slx6937","PSPDFKit-DiffViewer-InsertedCount"),children:["+",u]})]}),p={deleted:"Deleted",inserted:"Inserted",replaced:"Replaced"}[e.label.toLowerCase()];return(0,s.Y)("li",{...t,ref:a,className:(0,i.xW)(je({isFocused:n,isSelected:r}),"PSPDFKit-DiffViewer-Option"),children:(0,s.Y)(o.Box,{display:"flex",alignItems:"flex-start",gap:"sm",width:"full",paddingLeft:"sm",children:(0,s.FD)(o.Box,{flex:1,children:[(0,s.FD)(o.Box,{display:"flex",justifyContent:"space-between",alignItems:"flex-start",children:[(0,s.Y)(o.Text,{type:"label",size:"sm",children:p}),d]}),(0,s.FD)(o.Box,{marginTop:"sm",display:"flex",flexDirection:"column",gap:"sm",children:[l?.deletionContent?(0,s.Y)(o.Text,{type:"label",size:"sm",className:(0,i.xW)("_1slx6939 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck","PSPDFKit-DiffViewer-DeletedHighlight"),children:l.deletionContent}):null,l?.insertionContent?(0,s.Y)(o.Text,{type:"label",size:"sm",className:(0,i.xW)("_1slx693a _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck","PSPDFKit-DiffViewer-InsertedHighlight"),children:l.insertionContent}):null]})]})})}).toReactElement()},className:"_1slx693e"})})]})})(d);return L({children:e,ui:p,options:d})}));Ve.displayName="DiffViewer";var Ke="_1yep5z6q9 _1yep5z6qa _1yep5z6qb",He=O({defaultClassName:"_1aicd310 _1yep5z6b3 _1yep5z6ap _1yep5z6aq _1yep5z6br _1yep5z6bd _1yep5z6be _1yep5z6cf _1yep5z6c1 _1yep5z6c2 _1yep5z6d3 _1yep5z6cp _1yep5z6cq _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6g2",variantClassNames:{variant:{popover:"_1aicd311 _1yep5z614v _1yep5z614w _1yep5z614x _1yep5z6157 _1yep5z6158 _1yep5z6159 _1yep5z6167 _1yep5z6168 _1yep5z6169",sidebar:"_1aicd312"}},defaultVariants:{},compoundVariants:[]}),$e="_1aicd318 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",Ue=O({defaultClassName:"_1aicd313 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6d7",variantClassNames:{isEmpty:{true:"_1aicd314",false:"_1aicd315"}},defaultVariants:{},compoundVariants:[]}),We="_1aicd317 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6",qe="_1aicd319";var Ge=({ref:e,className:t,style:n,state:a,comments:l,intl:{formatMessage:d},"data-block-id":h="comment-thread","data-block-class":f,titleId:m,variant:v="sidebar",onEditorValueChange:y,onCommentAdd:b,onCommentUpdate:w,onDelete:x,device:S,portalContainer:_,mentionableUsers:C,editorFooterButtons:E,onAnonymousToggle:k,maxMentionableUsersSuggestions:P,onPress:A,allowCommentCreation:D=!0,defaultEditorValue:T,renderAvatar:I,...M})=>{let N=r.useRef(null),[O,R]=r.useState(new Set),j=a.get("isExpanded"),F=0===l.length,B=(0,i.nP)({"data-block-id":h,"data-block-class":f,"data-expanded":j,"data-empty":F}),L=D?(0,s.Y)(o.Editor,{className:(0,i.xW)(Ue({isEmpty:F}),"PSPDFKit-Comment-Editor"),enableRichText:!0,isInline:!1,mentionableUsers:C?.length?C:void 0,maxMentionableUsersSuggestions:P,footerButtons:E,placeholder:d(Ze.commentEditorLabel),onSave:b,"data-block-id":"editor",onChange:y,clearOnSave:!0,autoFocus:!l.length,"aria-label":d(Ze.commentEditorLabel),defaultValue:T}):null,{ref:V,...K}=function(e){let t=r.useRef(null),[n,o]=(0,r.useState)(!1),i=(0,r.useCallback)((()=>{o(!0)}),[]),a=(0,r.useCallback)((t=>{o(!1),e&&e(t)}),[e]),s=(0,r.useCallback)((e=>{("Enter"===e.key||" "===e.key)&&o(!0)}),[]),l=(0,r.useCallback)((t=>{("Enter"===t.key||" "===t.key)&&(o(!1),e&&e(t))}),[e]);return(0,r.useEffect)((()=>{let e=t.current;if(e)return e.addEventListener("pointerdown",i),e.addEventListener("pointerup",a),e.addEventListener("keydown",s),e.addEventListener("keyup",l),()=>{e.removeEventListener("pointerdown",i),e.removeEventListener("pointerup",a),e.removeEventListener("keydown",s),e.removeEventListener("keyup",l)}}),[i,a,s,l,t]),{ref:t,tabIndex:0,role:"button","aria-pressed":n,"aria-disabled":!1}}(A),H=(0,p.Bi)(m),$=(0,r.useMemo)((()=>({canEdit:{id:"edit",label:d(Ze.editContent)},canDelete:{id:"delete",label:d(Ze.deleteComment)},canBeAnonymous:{id:"anonymous",label:d(Ze.anonymous)}})),[d]),U=(0,r.useCallback)((e=>Object.entries($).filter((([t])=>!!e[t])).map((([,e])=>e))),[$]),W=(0,r.useCallback)((e=>function(e){return e.canEdit||e.canDelete||e.canBeAnonymous}(e)&&(j||"sidebar"!==v)?{items:U(e),"aria-label":d(Ze.commentOptions),selectionMode:"single",selectedKeys:e.isAnonymous?["anonymous"]:[],onAction:t=>{switch(t){case"edit":R((t=>new Set(t.add(e.id))));break;case"delete":a.set("toDelete",e.id);break;case"anonymous":k?.(e.id,!e.isAnonymous)}}}:void 0),[d,U,j,k,a,v]),q=(0,r.useCallback)((e=>{let t,n=O.has(e.id),r=!e.avatarProps&&!I;return"function"==typeof I&&(t=I({comment:e}).node),{...e,"data-comment-id":e.id,"data-block-id":"comment",className:(0,i.xW)(e.className,{[Ke]:r},"PSPDFKit-Comment"),titleClassName:"PSPDFKit-Comment-CreatorName",descriptionClassName:"PSPDFKit-Comment-CommentDate",contentClassName:"PSPDFKit-Comment-Text",headerClassName:"PSPDFKit-Comment-Header",menuProps:W(e),avatarNode:t,content:n?(0,s.Y)(o.Editor,{style:{marginInlineStart:-36},spellCheck:!1,defaultValue:e.content,mentionableUsers:C,maxMentionableUsersSuggestions:P,enableRichText:!0,autoFocus:!0,onCancel:()=>{R((t=>new Set([...t].filter((t=>t!==e.id)))))},onSave:t=>{w?.(e.id,t),R((t=>new Set([...t].filter((t=>t!==e.id)))))},submitButtonAriaLabel:d(Ze.edit),onChange:t=>y?.(t,e.id),clearOnSave:!0,cancelButtonAriaLabel:d(Ze.discardChanges),"aria-label":d(Ze.commentEditorLabel)}).toReactElement():e.content}}),[O,d,W,P,C,w,y,I]),[G,...Z]=l,Y=(0,s.FD)(s.FK,{children:[(0,s.Y)(o.Box,{backgroundColor:"background.primary.subtle",paddingY:"md",paddingX:"lg",display:"flex",alignItems:"center","data-block-id":"header",style:{minHeight:48},children:(0,s.Y)(o.Text,{id:H,type:"title",size:"sm",elementType:"h3","data-blockid":"title",children:d(Ze.comments)})}),(0,s.Y)(o.Separator,{variant:"secondary"})]}),X=G?(0,s.Y)(c.Comment,{"data-blockid":"comment",...q(G),children:"sidebar"===v&&!j&&(0,s.Y)(o.Link,{size:"sm",onPress:j?void 0:()=>{a.set("isExpanded",!0)},children:j||!Z.length?void 0:d(Ze.nMoreComments,{arg0:Z.length})})}):L,J=Z.map(((e,t)=>(0,s.FD)(r.Fragment,{children:[(0,s.Y)("div",{className:(0,u.UV)({paddingLeft:"5xl"}),children:(0,s.Y)(o.Separator,{variant:"secondary"})}),(0,s.Y)(c.Comment,{...q(e)})]},t)));return(0,r.useEffect)((()=>{l.length||a.set("isExpanded",!0)}),[l,a]),(0,r.useEffect)((()=>{j||R(new Set)}),[j]),(0,s.FD)(s.FK,{children:[(0,s.Y)(g.PY.div,{"aria-labelledby":H,...(0,p.v6)(z(M),B),role:"complementary",ref:e,style:n,animate:{height:j?"auto":N.current?.offsetHeight},className:(0,i.xW)(He({variant:v}),{"PSPDFKit-Comment-Thread-Wrapper":!0,"PSPDFKit-Comment-Thread-Wrapper-Expanded":j,"PSPDFKit-Comment-Thread-Expanded":j},t),children:(0,s.Y)("div",{...A?K:{},ref:V,className:(0,i.xW)({[qe]:"sidebar"===v,[$e]:"sidebar"!==v,[We]:"mobile"===S&&"sidebar"!==v}),children:"sidebar"===v?(0,s.FD)(s.FK,{children:[(0,s.Y)("div",{ref:N,children:X}),(Z.length>0||!!G)&&(j?(0,s.FD)(s.FK,{children:[J,L]}):null)]}):(0,s.FD)(s.FK,{children:["mobile"===S?(0,s.Y)(p.s6,{children:Y}):Y,(0,s.Y)("div",{className:"_1aicd316 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6id _1yep5z6ie _1yep5z6if _1yep5z6ja _1yep5z6jb _1yep5z6jc _1yep5z6jm _1yep5z6jn _1yep5z6jo",children:(0,s.FD)("div",{className:(0,u.UV)({display:"flex",flexDirection:"column",width:"full"}),children:[X,J]})}),l.length?L:null]})})}),(0,s.Y)(o.Modal,{isOpen:!!a.get("toDelete"),onOpenChange:()=>{a.set("toDelete",null)},children:(0,s.Y)(o.ModalContent,{portalContainer:_,style:{zIndex:999999},children:(0,s.Y)(o.AlertDialog,{title:d(Ze.deleteComment),message:d(Ze.deleteCommentConfirmMessage),onCancel:()=>{a.set("toDelete",null)},cancelLabel:d(Ze.cancel),primaryActionLabel:d(Ze.delete),onPrimaryAction:()=>{x?.(a.get("toDelete")),a.set("toDelete",null)}})})})]})};var Ze=(0,o.defineMessages)({comments:{id:"comments",defaultMessage:"Comments"},nMoreComments:{id:"nMoreComments",defaultMessage:"{n, plural, one {1 more comment} other {# more comments}}"},edit:{id:"edit",defaultMessage:"Edit"},delete:{id:"delete",defaultMessage:"Delete"},cancel:{id:"cancel",defaultMessage:"Cancel"},deleteComment:{id:"deleteComment",defaultMessage:"Delete Comment"},anonymous:{id:"anonymous",defaultMessage:"Anonymous"},commentOptions:{id:"commentOptions",defaultMessage:"Comment Options"},commentEditorLabel:{id:"commentEditorLabel",defaultMessage:"Comment Editor"},save:{id:"save",defaultMessage:"Save"},deleteCommentConfirmMessage:{id:"deleteCommentConfirmMessage",defaultMessage:"Are you sure you want to delete this comment?"},discardChanges:{id:"discardChanges",defaultMessage:"Discard Changes"},editContent:{id:"editContent",defaultMessage:"Edit Content"}}),Ye=r.forwardRef((({children:e,initialState:t={},onStateChange:n,state:o,...i},a)=>{let s=r.useRef(null),l={...i,...P({ref:s,initialState:t,state:o,onChange:n}),ref:S(a,s)};return L({children:e,ui:Ge(l),options:l})}));Ye.displayName="CommentThread";var Xe="_1gdjybca",Je="_1gdjybc7 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69i _1yep5z69j _1yep5z69k",Qe="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h",et="_1gdjybc8",tt="_1gdjybc9",nt=(0,o.defineMessages)({saveAs:{id:"saveAs",defaultMessage:"Save As...",description:'Generic "save as" label'},save:{id:"save",defaultMessage:"Save",description:"Generic save label"},cancel:{id:"cancel",defaultMessage:"Cancel",description:"Cancel"},nPagesSelected:{id:"pagesSelected",defaultMessage:"{arg0, plural,\n      =0 {{arg0} Pages}\n      one {{arg0} Page}\n      two {{arg0} Pages}\n      other {{arg0} Pages}\n    }",description:"Number of pages selected."},documentEditor:{id:"documentEditor",defaultMessage:"Document Editor",description:"Document Editor"},documentEditorDesc:{id:"documentEditorDesc",defaultMessage:"Make changes to the current document",description:"Document Editor modal"},documentEditorMoveDialog:{id:"documentEditorMoveDialog",defaultMessage:"Document Editor Move Dialog",description:"Document Editor Move Dialog"}}),rt=r.forwardRef((({initialState:e,state:t,children:n,onStateChange:a,...l},c)=>{let u={...l,...P({initialState:e,state:t,onChange:a}),ref:c},d=(({className:e,style:t,ref:n,items:a=[],toolbarItems:l=[],footerItems:c=[],intl:{formatMessage:u},selectedKeys:d,"data-block-id":p="document-editor",onReorder:h,imageWidth:f,onDelete:m,onListChange:g,onSelectionChange:v,onKeyDown:y,imageContainerClassName:b,...w})=>{let x=(0,o.useDevice)(),S=(0,r.useMemo)((()=>d&&[...d].length),[d]),_=(0,r.useCallback)((e=>e.map(((e,t)=>{if("separator"===e.type)return(0,s.Y)(o.Separator,{orientation:"vertical",style:{height:"auto"}},t);if("spacer"===e.type)return(0,s.Y)(o.Box,{flexGrow:1},t);{let{type:t,props:n,name:r}=e;switch(t){case"ActionIconButton":return(0,s.Y)(o.ActionIconButton,{className:(0,i.xW)(Xe,n.className),...n},r);case"ToggleIconButton":return(0,s.Y)(o.ToggleIconButton,{className:(0,i.xW)(Xe,n.className),...n},r);case"ActionButton":return(0,s.Y)(o.ActionButton,{variant:"toolbar",className:(0,i.xW)(Xe,n.className),...n},r);case"TagGroup":return S&&0!==S&&"mobile"!==x?(0,s.Y)(o.TagGroup,{...n}):null;case"Popover":{let{popoverTriggerProps:e,popoverContentProps:{children:t,...r}}=n;return(0,s.FD)(o.Popover,{type:"dialog",children:[(0,s.Y)(o.PopoverTrigger,{...e,children:e.children}),(0,s.Y)(o.PopoverContent,{className:"_1gdjybc6 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",...r,children:t})]})}default:return null}}}))),[x,S]),C=(0,r.useMemo)((()=>_(l)),[_,l]),E=(0,r.useMemo)((()=>_(c)),[_,c]),k=(0,r.useCallback)(((e,t)=>(0,i.xW)("BaselineUI-DocumentEditor-Image","_1gdjybc4",b,t.isSelected&&`${b}-Selected`)),[b]);return(0,s.FD)("div",{"data-block-id":p,ref:n,className:(0,i.xW)("_1gdjybc0 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6",e),style:t,children:[l.length?(0,s.Y)(o.Box,{display:"flex",flexGrow:0,flexShrink:0,children:(0,s.Y)(o.Toolbar,{isCollapsible:!0,"data-block-id":"toolbar",className:(0,i.xW)("_1gdjybc1 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6kd _1yep5z6ke _1yep5z6kf","PSPDFKit-DocumentEditor-Toolbar"),renderSpacer:!0,children:C})}):null,(0,s.Y)("div",{className:"_1gdjybc2 _1yep5z69 _1yep5z6g _1yep5z6h _1yep5z62l _1yep5z62s _1yep5z62t _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6 _1yep5z6g3",children:(0,s.Y)(o.ImageGallery,{"data-block-id":"document-editor-gallery",className:(0,i.xW)("_1gdjybc3"),items:a,"aria-label":u(nt.documentEditor),imageWidth:f,onDelete:m,onReorder:h,onListChange:g,onSelectionChange:v,onKeyDown:y,enableReorder:!0,selectionMode:"multiple",selectionBehavior:"toggle",selectedKeys:d,imageContainerClassName:k,...w})}),(0,s.Y)("div",{"data-block-id":"footer",className:(0,i.xW)("_1gdjybc5 _1yep5z63r _1yep5z63y _1yep5z63z _1yep5z61f _1yep5z61m _1yep5z61n _1yep5z69 _1yep5z6d _1yep5z6e _1yep5z62l _1yep5z62p _1yep5z62q _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6kj _1yep5z6kk _1yep5z6kl _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6jp _1yep5z6jq _1yep5z6jr _1yep5z6g1","PSPDFKit-DocumentEditor-Footer"),children:E})]})})(u);return L({children:n,ui:d,options:u})}));function ot({inputLabel:e,description:t,onChange:n,onMove:r}){return(0,d.jsxs)("div",{className:Je,children:[(0,d.jsxs)("div",{className:tt,style:{width:"100%"},children:[(0,d.jsx)(o.Text,{type:"label",size:"md",className:(0,u.UV)({flexShrink:0}),children:e}),(0,d.jsx)(o.NumberInput,{className:et,onChange:e=>{n(e)},showStepper:!1,placeholder:"Enter page #",variant:"ghost"}),(0,d.jsx)(o.ActionButton,{"data-block-id":"move-button",label:"Move",size:"sm",className:"PSPDFKit-Electronic-Signatures-Done-Button",variant:"secondary",onPress:r})]}),(0,d.jsx)(o.Separator,{orientation:"horizontal"}),(0,d.jsx)("div",{className:Qe,children:(0,d.jsx)(o.Text,{type:"body",size:"sm",color:u.G6.color.text.helper,children:t})})]})}rt.displayName="DocumentEditor";var it={};function at({itemsStore:e,desktopItems:t,tabletItems:n,mobileItems:a,emulateMobileBehaviourInTablet:s,device:l}){let c=(0,o.useDevice)();l&&(c=l);let{formatMessage:u}=(0,o.useI18n)(),[d,p]=(0,r.useState)(null),{_desktopItems:h,_tabletItems:f,_mobileItems:g}=(0,r.useMemo)((()=>{let r=Object.keys(e);return{_desktopItems:t||n||a||r,_tabletItems:n||a||r,_mobileItems:a||r}}),[t,n,a,e]),v=(0,r.useCallback)((t=>t.flatMap((t=>{if("spacer"===t)return{type:"spacer"};{let n=e[t];return"children"in n?n.children:n}}))),[e]),y=(0,r.useCallback)(((t,n)=>t.flatMap((t=>{if("spacer"===t)return{type:"spacer"};let r=e[t];if("children"in r)return ut(r.name,{icon:r.icon,"aria-label":r["aria-label"]||r.name,isDisabled:r.isDisabled,onPress:()=>{n(r.name)}});if(function(e){return"IconSlider"===e.type||"IconColorInput"===e.type||"IconSelect"===e.type||"ColorSwatchPicker"===e.type||"DomNodeRenderer"===e.type||"ActionGroup"===e.type}(r)&&"name"in r&&"props"in r&&"icon"in r.props&&r.props.icon){let{icon:e,...t}=r.props,o=t.className?.split(" ").map((e=>`${e}-Icon`)).join(" ");return ut(r.name,{...t,className:o,icon:e,variant:"toolbar",onPress:()=>{n(r.name)}})}return r}))),[e]),b=(0,r.useMemo)((()=>{if(("mobile"===c||s&&"tablet"===c)&&!d)return y("tablet"===c?f:g,p);if(d){let t=e[d];return(0,i.V1)(t,`Toolbar item with name ${d} not found`),[ut("back",{icon:m.JJd,onPress:()=>{p(null)},"aria-label":u(st.close)}),{type:"spacer"},..."children"in t?t.children:[Ct(t,{icon:void 0})]]}return v(h)}),[c,s,d,y,f,g,e,u,v,h]);return{items:(0,r.useMemo)((()=>function(e,t){return e.flatMap(((n,r)=>r<e.length-1?[n,t]:[n]))}(b,{type:"separator"}).map(((e,t)=>"name"in e?e:{...e,name:`${e.type}-${t}`}))),[b]),setExpanded:p,expanded:d}}((e,t)=>{for(var n in t)x(e,n,{get:t[n],enumerable:!0})})(it,{createActionButtonToolbarItem:()=>lt,createActionGroupToolbarItem:()=>ct,createActionIconButtonToolbarItem:()=>ut,createBlockToolbarItem:()=>_t,createButtonSelectToolbarItem:()=>dt,createCheckboxToolbarItem:()=>pt,createColorSwatchPickerToolbarItem:()=>ht,createComboBoxToolbarItem:()=>ft,createDomNodeRendererToolbarItem:()=>wt,createIconColorInputToolbarItem:()=>mt,createIconSelectToolbarItem:()=>gt,createIconSliderToolbarItem:()=>vt,createPaginationToolbarItem:()=>xt,createReactElementToolbarItem:()=>bt,createTaggedPaginationToolbarItem:()=>St,createToggleIconButtonToolbarItem:()=>yt,overrideToolbarItemProps:()=>Ct,useResponsiveToolbarItems:()=>at});var st=(0,o.defineMessages)({close:{id:"close",defaultMessage:"Close"}});function lt(e,t){return{name:e,type:"ActionButton",props:t}}function ct(e,t){return{name:e,type:"ActionGroup",props:t}}function ut(e,t){return{name:e,type:"ActionIconButton",props:t}}function dt(e,t){return{name:e,type:"ButtonSelect",props:t}}function pt(e,t){return{name:e,type:"Checkbox",props:t}}function ht(e,t){return{name:e,type:"ColorSwatchPicker",props:t}}function ft(e,t){return{name:e,type:"ComboBox",props:t}}function mt(e,t){return{name:e,type:"IconColorInput",props:t}}function gt(e,t){return{name:e,type:"IconSelect",props:t}}function vt(e,t){return{name:e,type:"IconSlider",props:t}}function yt(e,t){return{name:e,type:"ToggleIconButton",props:t}}function bt(e,t){return{name:e,type:"ReactElement",props:t}}function wt(e,t){return{name:e,type:"DomNodeRenderer",props:t}}function xt(e,t){return{name:e,type:"Pagination",props:t}}function St(e,t){return{name:e,type:"TaggedPagination",props:t}}function _t(e,t){return{name:e,type:"Block",props:t}}function Ct(e,t){return{...e,props:{...e.props,...t}}}var Et=O({defaultClassName:"_1tzubq80 _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j1 _1yep5z6j2 _1yep5z6j3 _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",variantClassNames:{type:{primary:"_1yep5z6g1",secondary:"_1yep5z6g2"}},defaultVariants:{},compoundVariants:[]});function kt({ref:e,items:t,className:n,"data-block-id":a="toolbar","data-block-class":l,type:d="primary",onEscape:p,autoFocus:h,hideTooltip:f,...m}){let g=function(e){let t=(0,r.useRef)(null);return(0,r.useMemo)((()=>({get current(){return t.current},set current(n){t.current=n,"function"==typeof e?e(n):e&&(e.current=n)}})),[e])}(e);(function({id:e,autoFocus:t},n){let a=(0,r.useRef)(new Map),s=(0,o.useIsFirstRender)();(0,v.useGranularEffect)((()=>{if(t){if(!n.current)return;let e=(0,i.n_)(n.current);if(e){let t=[...e][0];t instanceof HTMLElement&&t.focus()}}}),[],[t,n]);let l=(0,r.useRef)(!1);(0,v.useGranularEffect)((()=>{if(!n.current)return;let t=(0,i.n_)(n.current);if(l.current)if(a.current.has(e)&&t){let n=a.current.get(e);(0,i.V1)(void 0!==n,"Index should be defined");let r=[...t][n];r instanceof HTMLElement&&r.focus()}else{let e=t?.[0];e instanceof HTMLElement&&e.focus()}let r=n.current;if(!r)return;let o=n=>{l.current=!0;let r=n.target;if(!t)return;let o=[...t].indexOf(r);-1!==o&&a.current.set(e,o)},s=t=>{t.relatedTarget&&!r.contains(t.relatedTarget)&&(l.current=!1,a.current.delete(e))};return r.addEventListener("focusin",o),r.addEventListener("focusout",s),()=>{r.removeEventListener("focusin",o),r.removeEventListener("focusout",s)}}),[e],[s,n])})({id:(0,r.useMemo)((()=>t.map((e=>"name"in e?e.name:"")).join("-").replaceAll(/\s/g,"")),[t]),autoFocus:h},g),(0,r.useEffect)((()=>{let e=new ResizeObserver((e=>{for(let t of e){let e=t.target,n=e.nextElementSibling;"true"===e.dataset.spacer&&"separator"===n?.getAttribute("role")&&(0===t.contentRect.width?n?.style.setProperty("opacity","0"):n?.style.removeProperty("opacity"))}})),t=g.current?.querySelectorAll("[data-spacer='true']");if(t)for(let n of t)e.observe(n);return()=>{e.disconnect()}}),[g,t]);let y=(0,r.useCallback)((e=>{let{type:t}=e,n=e.name,a=!f&&"props"in e&&"aria-label"in e.props?{size:"sm",variant:"inverse",text:e.props["aria-label"],placement:"bottom start",includeArrow:!1,..."tooltipProps"in e.props?e.props.tooltipProps:{}}:{isDisabled:!0};switch(t){case"ActionIconButton":return(0,s.Y)(o.ActionIconButton,{tooltip:!f,"data-block-id":e.name,variant:"toolbar",size:"lg",...e.props},n);case"ToggleIconButton":return(0,s.Y)(o.ToggleIconButton,{tooltip:!f,"data-block-id":e.name,variant:"toolbar",size:"lg",...e.props},n);case"ActionButton":return(0,s.Y)(o.ActionButton,{"data-block-id":e.name,variant:"toolbar",size:"lg",...e.props},n);case"IconColorInput":return(0,s.Y)(o.IconColorInput,{offset:2,"data-block-id":e.name,tooltipProps:a,...e.props},n);case"IconSelect":return(0,s.Y)(o.IconSelect,{variant:"ghost","data-block-id":e.name,offset:2,tooltipProps:a,...e.props},n);case"Block":return e.props;case"Pagination":return(0,s.Y)(o.Pagination,{variant:"pinned",size:"lg","data-block-id":e.name,...e.props},n);case"TaggedPagination":return(0,s.Y)(c.TaggedPagination,{size:"md","data-block-id":e.name,...e.props},n);case"IconSlider":return(0,s.Y)(o.IconSlider,{"data-block-id":e.name,tooltipProps:a,includeNumberInput:!0,...e.props,popoverContentProps:{offset:2,...e.props.popoverContentProps}},n);case"Checkbox":return(0,s.Y)(o.Checkbox,{"data-block-id":e.name,...e.props,className:(0,i.xW)((0,u.UV)({marginX:"md"}),e.props.className)},n);case"ColorSwatchPicker":return(0,s.Y)(o.ColorSwatchPicker,{labelPosition:"start","data-block-id":e.name,...e.props,className:(0,i.xW)((0,u.UV)({marginX:"md"}),e.props.className)},n);case"ComboBox":return(0,s.Y)(o.ComboBox,{"data-block-id":e.name,...e.props,className:(0,i.xW)("_1tzubq83 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662",e.props.className)},n);case"ActionGroup":return(0,s.Y)(o.ActionGroup,{"data-block-id":e.name,tooltipProps:a,...e.props,className:(0,i.xW)((0,u.UV)({marginX:"md"}),e.props.className)},n);case"ButtonSelect":return(0,s.Y)(o.ButtonSelect,{size:"lg","data-block-id":e.name,...e.props},n);case"DomNodeRenderer":return(0,s.Y)(o.DomNodeRenderer,{"data-block-id":e.name,...e.props},n);case"ReactElement":return r.cloneElement(e.props,{key:n||e.props.key,"data-block-id":e.name});case"separator":return(0,s.Y)(o.Separator,{variant:"primary",orientation:"vertical",style:{height:"auto",minHeight:48}},n);case"spacer":return(0,s.Y)(o.Box,{display:"flex",flex:1,"data-spacer":"true"},n);default:return null}}),[f]),b=(0,r.useCallback)((e=>{"Escape"===e.key&&p?.()}),[p]);return(0,s.Y)(o.Toolbar,{ref:g,className:(0,i.xW)(Et({type:d}),n),"data-block-id":a,onKeyDown:b,"data-block-class":l,...m,children:t.map((e=>y(e)))})}var zt=r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:o,...i},a)=>{let s=r.useRef(null),l={...i,...P({ref:s,initialState:{expandedOnMobile:null,...t},state:n,onChange:o}),ref:S(a,s)},c=(e=>kt(e))(l);return L({children:e,ui:c,options:l})}));zt.displayName="Toolbar";var Pt=r.forwardRef(((e,t)=>(0,d.jsx)(zt,{...e,type:"primary",ref:t})));Pt.displayName="PrimaryToolbar";var At=r.forwardRef(((e,t)=>(0,d.jsx)(zt,{...e,type:"secondary",ref:t})));At.displayName="SecondaryToolbar";var Dt=r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:i,...a},l)=>{let c=r.useRef(null),d={...a,...P({ref:c,initialState:t,state:n,onChange:i}),ref:S(l,c)},p=(({intl:{formatMessage:e},titleId:t,onCloseRequest:n,isOpen:i,topOffset:a,showHeaderOnMobile:l,mobileHeaderTitle:c,content:d,"data-block-id":p="chat-dialog-decorator","data-block-class":h})=>{let f=(0,o.useDevice)(),m=(0,r.useMemo)((()=>({"aria-labelledby":l&&!c?t:void 0,inheritDrawer:l,"aria-label":c})),[t,l,c]),v=(0,r.useMemo)((()=>({onOpenChange:n})),[n]),y=(0,r.useMemo)((()=>({enableDrawer:!0})),[]);return"mobile"===f?(0,s.Y)(K,{"data-block-id":p,"data-block-class":h,dialogProps:m,modalProps:v,modalContentProps:y,content:d}):(0,s.Y)(g.Ny,{children:i?(0,s.Y)(g.PY.div,{"data-block-id":p,"data-block-class":h,className:"rohv070 _1yep5z6ig _1yep5z6ih _1yep5z6ii _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6j4 _1yep5z6j5 _1yep5z6j6",style:{top:`calc(${a??0}px + ${u.G6.spacing.xl})`},initial:"closed",animate:"open",exit:"closed",variants:{open:{opacity:1,transform:"translateX(0px)"},closed:{opacity:0,transform:"translateX(10px)"}},children:(0,s.Y)(o.Drawer,{className:"_1yep5z6ao _1yep5z6ap _1yep5z6aq _1yep5z6bc _1yep5z6bd _1yep5z6be _1yep5z6c0 _1yep5z6c1 _1yep5z6c2 _1yep5z6co _1yep5z6cp _1yep5z6cq _1yep5z6lo",title:e("chat"),onCloseRequest:n,children:d})}):null})})(d);return L({children:e,ui:p,options:d})}));Dt.displayName="ChatDialogDecorator";var Tt=r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:a,...l},c)=>{let u=r.useRef(null),d={...l,...P({ref:u,initialState:t,state:n,onChange:a}),ref:S(c,u)},p=(({content:e,referenceRect:t,variant:n,dialogTitleId:r,onOutsideClick:a,boundaryElement:l,"data-block-id":c="comment-thread-decorator","data-block-class":u})=>"mobile"===(0,o.useDevice)()?(0,s.Y)(o.Modal,{isOpen:!0,"data-block-id":c,"data-block-class":u,children:(0,s.Y)(o.ModalContent,{enableDrawer:!0,children:(0,s.Y)(o.Dialog,{inheritDrawer:!0,"aria-labelledby":r,variant:"ghost",size:"content",children:e})})}):"sidebar"===n?(0,s.Y)("div",{"data-block-id":c,"data-block-class":u,children:e}):(0,s.FD)(o.Popover,{"data-block-id":c,"data-block-class":u,type:"dialog",isOpen:!!t,onOpenChange:e=>{e||a?.()},children:[(0,s.Y)(o.PopoverTrigger,{anchorRect:t}),(0,s.Y)(o.PopoverContent,{includeArrow:!0,className:(0,i.xW)("_1yep5z6d7 _1yep5z6ij _1yep5z6ik _1yep5z6il","PSPDFKit-Comment-Thread-Popover"),contentContainerStyle:{overflow:"hidden"},contentContainerClassName:"_1yep5z6is _1yep5z6it _1yep5z6iu",boundaryElement:l?.querySelector(".PSPDFKit-Viewport")||void 0,shouldCloseOnInteractOutside:e=>!(e.dataset?.annotationId||e.classList.contains("PSPDFKit-Comment-Marker-Annotation-Selected")),children:(0,s.Y)(o.Dialog,{size:"content","aria-labelledby":r,className:"_1yep5z6wr _1yep5z6ws _1yep5z6wt _1yep5z6xf _1yep5z6xg _1yep5z6xh _1yep5z6y3 _1yep5z6y4 _1yep5z6y5 _1yep5z6yr _1yep5z6ys _1yep5z6yt _1yep5z614v _1yep5z614w _1yep5z614x",style:{overflow:"hidden"},children:e})})]}))(d);return L({children:e,ui:p,options:d})}));Tt.displayName="CommentThreadDecorator";var It=r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:o,...i},a)=>{let l=r.useRef(null),c=P({ref:l,initialState:t,state:n,onChange:o}),u="children"in i&&i.children;(0,r.useEffect)((()=>{if(u)throw new Error("A component with children is not supported")}),[u]);let d={...i,...c,ref:S(a,l)},p=(({ref:e,className:t,"data-block-id":n="component-recipe","data-block-class":r,component:o,style:i,componentProps:a})=>(0,s.Y)("div",{ref:e,style:i,className:t,"data-block-id":n,"data-block-class":r,children:(0,s.Y)(o,{...a})}))(d);return L({children:e,ui:p,options:d})}));function Mt(e,t,n){let o=r.forwardRef(((e,r)=>{let{componentProps:o,...a}=n,{className:s,style:l,"data-block-id":c,"data-block-class":u,ref:h,children:f,...m}=e,g={...(0,p.v6)(a,{className:(0,i.xW)(s,e.className),"data-block-id":c,"data-block-class":u}),style:{...l,...e.style},ref:S(r,h),children:f},v={...(0,p.v6)(o,m),style:{...o?.style,...m.style}};return(0,d.jsx)(It,{component:t,...g,componentProps:v})}));return o.displayName=e,o}It.displayName="ComponentRecipe";var Nt=O({defaultClassName:"_1vh1kgt0 _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",variantClassNames:{isEmptyState:{true:"_1vh1kgt1"}},defaultVariants:{},compoundVariants:[]}),Ot=O({defaultClassName:"_1vh1kgt4 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z6jj _1yep5z6jk _1yep5z6jl _1yep5z69f _1yep5z69g _1yep5z69h _1yep5z6lq",variantClassNames:{isFocused:{true:"_1vh1kgt5"},isSelected:{true:"_1vh1kgt6"}},defaultVariants:{},compoundVariants:[]}),{color:Rt}=u.G6,jt=(0,o.defineMessages)({annotations:{id:"annotations",defaultMessage:"Annotations"},delete:{id:"delete",defaultMessage:"Delete"},deleteAnnotationConfirmMessage:{id:"deleteAnnotationConfirmMessage",defaultMessage:"Are you sure you want to delete this annotation?"},cancel:{id:"cancel",defaultMessage:"Cancel"},noAnnotations:{id:"noAnnotations",defaultMessage:"No Annotations"},annotationsCount:{id:"annotationsCount",defaultMessage:"{arg0, plural,\n      =0 {No Annotations}\n      one {{arg0} Annotation}\n      other {{arg0} Annotations}\n    }",description:"Number of annotations"},pageX:{id:"pageX",defaultMessage:"arg0, Page {arg0}",description:"Page number"},done:{id:"done",defaultMessage:"Done"},edit:{id:"edit",defaultMessage:"Edit"}}),Ft=(0,r.forwardRef)((({children:e,initialState:t={},state:n,onStateChange:l,...c},u)=>{let d=(0,r.useRef)(null),p={...c,...P({ref:d,initialState:t,state:n,onChange:l}),ref:S(u,d)},f=(({ref:e,style:t,className:n,"data-block-id":l="annotations","data-block-class":c,"aria-label":u,annotations:d,shouldShowAnnotationsCount:p=!1,annotationItemClassName:f,annotationSectionClassName:m,annotationSectionHeaderClassName:g,onAnnotationDelete:v,onSelectionChange:b,selectedKey:w,intl:{formatMessage:x},onRenderAnnotationItem:_,canDeleteKeys:C,selectedAnnotationsIds:E,defaultMobileMode:k="read",onMobileModeChange:z})=>{let[P,A]=(0,r.useState)(!1),[D,T]=(0,r.useState)(k),I="mobile"===(0,o.useDevice)(),M=0===d.length,N=w?[w]:[],O=b?e=>{b([...e][0])}:void 0,R=(0,r.useCallback)((()=>{w&&(v?.(String(w)),b?.())}),[v,b,w]);(0,r.useEffect)((()=>{E&&0===E.length&&w&&b?.()}),[E,b,w]);let j=(0,r.useMemo)((()=>!(I&&"read"===D||(C?!w||!C.includes(w):!w))),[C,w,D,I]),F=(0,r.useCallback)((e=>{!w||!j||("Backspace"===e.key||"Delete"===e.key)&&A(!0)}),[w,j]),B=(0,r.useMemo)((()=>d.map((e=>({...e,title:x(jt.pageX,{arg0:e.pageLabel??e.pageNumber})})))),[d,x]),L=(0,r.useMemo)((()=>d.reduce(((e,t)=>e+t.children.length),0)),[d]),V=(0,r.useCallback)((({value:e},{optionProps:t,isFocusVisible:n,isSelected:r},a)=>{(0,i.V1)(e,"invalid value in list item"),(0,i.V1)("label"in e,"invalid label in list item");let{label:l,icon:c=h.Yl,description:u,data:d}=e,p=d?.actionText?(0,s.Y)(o.Link,{size:"sm",elementType:"span",className:"_1vh1kgt7",role:"presentation",children:d.actionText}):null,f=d?.annotationItemClassName,m=d?.annotationItemSelectedClassName,g=d?.extraAttributes,v=E?.includes(e.id),b={id:e.id,label:l,description:u,data:d},w=_?S(a,(e=>{_(e,b)})):a;return(0,s.FD)("li",{...t,ref:w,className:(0,i.xW)(Ot({isFocused:n,isSelected:r}),f,r&&m,v&&"PSPDFKit-Sidebar-Annotations-Item-Selected"),"data-annotation-id":e.id,children:[(0,s.Y)(c,{color:Rt.icon.interactive.disabled,className:"PSPDFKit-Sidebar-Annotations-Icon",size:16}),(0,s.FD)(o.Box,{display:"flex",gap:"xs",flexDirection:"column",marginInlineStart:"sm",flex:1,children:[(0,s.Y)(o.Text,{type:"label",size:"sm",className:"_1vh1kgt2",children:l}),u?(0,s.Y)(o.Text,{type:"helper",size:"sm",children:u}):null,p,g&&g.length>0?(0,s.Y)("div",{className:"_1vh1kgt8",children:g?.map((e=>{let{icon:t=y.fY}=e;return(0,s.FD)(o.Box,{"aria-label":e.ariaLabel,display:"flex",alignItems:"center",gap:"sm",children:[(0,s.Y)(t,{size:12,color:Rt.icon.secondary}),(0,s.Y)(o.Text,{type:"label",size:"sm",className:"_1vh1kgt9",children:e.label})]},e.label)}))}):null]})]}).toReactElement()}),[_,E]),K=(0,r.useCallback)((({value:e},t)=>{(0,i.V1)(e,"invalid value in list item"),(0,i.V1)("title"in e,"invalid title in list item");let{title:n}=e;return(0,s.Y)("span",{className:(0,i.xW)("_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g3 _1yep5z6ip _1yep5z6iq _1yep5z6ir",g),ref:t,children:(0,s.Y)(o.Text,{type:"subtitle",size:"sm",children:n})}).toReactElement()}),[g]);return(0,s.FD)(o.Box,{className:n,style:t,ref:e,"data-block-id":l,"data-block-class":c,display:"flex",flexDirection:"column",height:"full",children:[(0,s.FD)("div",{children:[(0,s.FD)(o.Box,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingInlineStart:"lg",paddingInlineEnd:"sm",gap:"lg",className:(0,i.xW)("_1vh1kgta","PSPDFKit-Sidebar-Header"),children:[(0,s.Y)(o.Text,{type:"title",size:"sm",className:(0,i.xW)("_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678","PSPDFKit-Sidebar-Annotations-Annotation-Counter"),children:p?x(jt.annotationsCount,{arg0:L}):x(jt.annotations)}),I&&L>0?(0,s.Y)(o.ToggleButton,{label:x("edit"===D?jt.done:jt.edit),variant:"primary",size:"sm",isSelected:"edit"===D,onChange:e=>{let t=e?"edit":"read";T(t),z?.(t)}}):null]}),(0,s.Y)(o.Separator,{})]}),(0,s.Y)("div",{className:Nt({isEmptyState:M}),children:M?(0,s.Y)(o.Box,{flex:1,display:"flex",justifyContent:"center",alignItems:"center",className:"PSPDFKit-Sidebar-Empty",children:(0,s.Y)(o.Text,{type:"helper",children:x(jt.noAnnotations)})}):(0,s.Y)("div",{onKeyDown:F,children:(0,s.Y)(o.ListBox,{items:B,"aria-label":u,selectionMode:"single",selectedKeys:N,onSelectionChange:O,disallowEmptySelection:!0,optionClassName:f,sectionClassName:m,showSectionHeader:!0,renderSectionHeader:K,renderOption:V,className:"_1vh1kgt3"})})}),(0,s.Y)(o.Modal,{isOpen:P,children:(0,s.Y)(o.ModalContent,{children:(0,s.Y)(o.AlertDialog,{title:x(jt.deleteAnnotationConfirmMessage),primaryActionLabel:x(jt.delete),cancelLabel:x(jt.cancel),showCloseButton:!1,onPrimaryAction:()=>{R(),A(!1)},onCancel:()=>{A(!1)}})})}),(0,s.FD)("div",{children:[(0,s.Y)(o.Separator,{}),(0,s.Y)(o.ActionIconButton,{"aria-label":x(jt.delete),icon:a.uc,isDisabled:!j,className:(0,i.xW)("_1yep5z6ln","PSPDFKit-Sidebar-Annotations-Delete"),variant:"secondary",onPress:()=>{A(!0)}})]})]})})(p);return L({children:e,ui:f,options:p})}));Ft.displayName="Annotations";var Bt=Mt("Thumbnails",o.ImageGallery,{"data-block-id":"thumbnails",className:"PSPDFKit-Image-Gallery",componentProps:{imageWidth:"md",selectionMode:"single",className:"ul2ubl0","data-block-id":"body"}}),Lt=O({defaultClassName:"_15g6utz3 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6lq",variantClassNames:{isSelected:{true:"_15g6utz4"},isEditMode:{true:"_15g6utz5"},isFocused:{true:"_15g6utz6"}},defaultVariants:{},compoundVariants:[]}),Vt=O({defaultClassName:"_15g6utz1 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",variantClassNames:{isEmptyState:{true:"_15g6utz2"}},defaultVariants:{},compoundVariants:[]}),Kt="_15g6utzb",Ht="_15g6utza",{color:$t}=u.G6,Ut=({textValue:e,value:t,props:n},{gridCellProps:a,rowProps:s,isSelected:l,isFocused:c},u)=>{let{formatMessage:f}=(0,o.useI18n)(),{isFocusVisible:m}=(0,p.Y0)();(0,i.V1)(t,"invalid value in bookmark item"),(0,i.V1)("pageNumber"in t,"invalid page number in bookmark item"),(0,i.V1)("id"in t,"invalid id in bookmark item");let{id:g,pageNumber:v,pageLabel:y}=t,x=g===n.selectedKey&&"edit"===n.mode,S=(0,r.useCallback)((e=>{"Enter"===e.key?(n?.onBookmarkUpdate(g,e.currentTarget.value),n.setMode(null)):"Escape"===e.key&&(function(e,t="assertive",n=7e3){b||(b=new w),b.announce(e,t,n)}(f(Wt.cancelledEditingBookmark),"polite"),n.setMode(null))}),[n,g,f]),_=(0,r.useCallback)((()=>{n.setMode("edit")}),[n]);return(0,d.jsx)("li",{...s,className:(0,i.xW)(Lt({isSelected:l,isEditMode:x,isFocused:m&&c&&!x}),"PSPDFKit-Sidebar-Bookmarks-Bookmark",l&&"PSPDFKit-Sidebar-Bookmarks-Bookmark-Selected",x&&"PSPDFKit-Sidebar-Bookmarks-Bookmark-Editing"),ref:u,children:(0,d.jsxs)(o.Box,{display:"flex",gap:"sm",alignItems:"center",onDoubleClick:_,"aria-label":f(Wt.gotoPageX,{arg0:y??v}),...a,children:[(0,d.jsx)(h.cF,{color:$t.icon.interactive.disabled,size:16}),x?(0,d.jsx)(p.n1,{autoFocus:!0,restoreFocus:!0,children:(0,d.jsx)(o.TextInput,{"aria-label":f(Wt.edit),defaultValue:e,className:"_15g6utz9",inputClassName:(0,i.xW)(Ht,"PSPDFKit-Sidebar-Bookmarks-Editor"),onKeyDown:S,onBlur:e=>{let t=e;n.onBookmarkUpdate?.(g,t.currentTarget.value),n.setMode(null)}})}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(o.Text,{type:"label",size:"sm",className:(0,i.xW)("_15g6utz7 _1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z689 _1yep5z68a _1yep5z68b","PSPDFKit-Sidebar-Bookmarks-Name"),children:e}),(0,d.jsx)(o.Text,{type:"value",size:"sm",className:"_15g6utz8 _1yep5z6ey","aria-label":f(Wt.pageX,{arg0:y??v}),children:y??v})]})]})})},Wt=(0,o.defineMessages)({edit:{id:"edit",defaultMessage:"Edit"},cancelledEditingBookmark:{id:"cancelledEditingBookmark",defaultMessage:"Cancelled bookmark editing"},pageX:{id:"pageX",defaultMessage:"Page {arg0}"},gotoPageX:{id:"gotoPageX",defaultMessage:"Go to Page {arg0}"}}),qt=(e,t)=>{(0,i.V1)(e.value&&"icon"in e.value&&e.value.icon,"Item value is required.");let{className:n}=e.value.data;return(0,d.jsx)(o.ActionIconButton,{"aria-label":e.textValue,icon:e.value.icon,isDisabled:t.isDisabled,className:(0,i.xW)(Kt,n),variant:"secondary"})},{color:Gt}=u.G6,Zt="add-bookmark",Yt="edit-bookmark",Xt="delete-bookmark",Jt=({ref:e,bookmarks:t,style:n,className:l,selectedKey:c,onSelectionChange:u,onBookmarkAdd:d,onBookmarkDelete:f,onBookmarkUpdate:m,intl:{formatMessage:g},"data-block-id":v="bookmarks","data-block-class":y,"aria-label":b,bookmarksHandle:w,onRenderBookmarkItem:x,defaultMobileMode:_="read",onMobileModeChange:C})=>{let[E,k]=(0,r.useState)(null),[z,P]=(0,r.useState)(!1),A=(0,r.useRef)(null),D=(0,r.useRef)(null),[T,I]=(0,r.useState)(_),M="mobile"===(0,o.useDevice)(),N=(0,p.H8)(),O=!!c,R=c?[c]:[],j=u?e=>{u([...e][0])}:void 0,F=(0,r.useCallback)(((e,t,n)=>{let r=e.value,o={id:e.value?.id,label:e.textValue,pageNumber:r.pageNumber,pageLabel:r.pageLabel};return Ut({...e,props:{selectedKey:c,mode:E,setMode:k,onBookmarkUpdate:m}},t,x?S(n,(e=>{x(e,o)})):n)}),[E,c,m,x]),B=0===t.length,L=[{id:Zt,label:g(Qt.addBookmark),icon:a.c1,data:{className:"PSPDFKit-Sidebar-Bookmarks-Button-Add"}},{id:Yt,label:g(Qt.edit),icon:a.qU,data:{className:"PSPDFKit-Sidebar-Bookmarks-Button-Edit"}},{id:Xt,label:g(Qt.delete),icon:a.uc,data:{className:"PSPDFKit-Sidebar-Bookmarks-Button-Delete"}}],V=(0,r.useMemo)((()=>{let e=[Yt,Xt];return M?"edit"===T&&O?[]:e:O?[]:e}),[O,M,T]);return(0,s.FD)(o.Box,{display:"flex",flexDirection:"column",height:"full",className:l,style:n,"data-block-id":v,"data-block-class":y,ref:e,children:[(0,s.FD)("div",{children:[(0,s.FD)(o.Box,{paddingInlineStart:"lg",paddingInlineEnd:"sm",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:"lg",className:"_15g6utz0",children:[(0,s.Y)(o.Text,{type:"title",size:"sm",className:(0,i.xW)("_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678","PSPDFKit-Sidebar-Bookmarks-Heading"),children:g(Qt.bookmarks)}),M&&!B?(0,s.Y)(o.ToggleButton,{label:g("edit"===T?Qt.done:Qt.edit),variant:"primary",size:"sm",isSelected:"edit"===T,onChange:e=>{let t=e?"edit":"read";I(t),C?.(t)}}):null]}),(0,s.Y)(o.Separator,{})]}),(0,s.FD)("div",{className:Vt({isEmptyState:B&&"add"!==E}),children:[B?"add"!==E&&(0,s.Y)(o.Box,{flex:1,display:"flex",justifyContent:"center",alignItems:"center",children:(0,s.Y)(o.Text,{type:"helper",children:g(Qt.noBookmarks)})}):(0,s.Y)("div",{onKeyDownCapture:e=>{!c||"edit"===E||("Backspace"===e.key||"Delete"===e.key?P(!0):"Enter"===e.key&&"true"===e.target.getAttribute("aria-selected")&&k("edit"))},children:(0,s.Y)(o.GridList,{items:t,renderGridItem:F,selectionMode:"single","aria-label":b,selectedKeys:R,onSelectionChange:j,isEditing:"edit"===E,disallowEmptySelection:!0,ref:D,gridListHandle:w})}),"add"===E&&(0,s.Y)("li",{className:Lt({isSelected:!0,isEditMode:!0}),children:(0,s.FD)(o.Box,{display:"flex",gap:"sm",alignItems:"center",children:[(0,s.Y)(h.cF,{color:Gt.icon.interactive.disabled,size:18}),(0,s.Y)(o.TextInput,{ref:A,"aria-label":g(Qt.addBookmark),placeholder:g(Qt.addBookmark),autoFocus:!0,inputClassName:(0,i.xW)(Ht,"PSPDFKit-Sidebar-Bookmarks-Editor"),onKeyDown:e=>{"Enter"===e.key?(d?.(e.currentTarget.value),k(null)):"Escape"===e.key&&k(null)},onBlur:e=>{d?.(e.currentTarget.value),k(null)}})]})})]}),(0,s.Y)(o.Modal,{isOpen:z,children:(0,s.Y)(o.ModalContent,{children:(0,s.Y)(o.AlertDialog,{title:g(Qt.deleteBookmarkConfirmMessage),primaryActionLabel:g(Qt.delete),cancelLabel:g(Qt.cancel),showCloseButton:!1,onPrimaryAction:()=>{c&&(f?.(String(c)),u?.()),P(!1),N?.focusPrevious()},onCancel:()=>{P(!1),N?.focusPrevious()}})})}),(0,s.FD)("div",{children:[(0,s.Y)(o.Separator,{}),(0,s.Y)(o.ActionGroup,{className:(0,i.xW)(Kt,"PSPDFKit-Sidebar-Bookmarks-Button-Container"),items:L,disabledKeys:V,onAction:e=>{switch(e){case Zt:k("add"),A.current?.scrollIntoView({behavior:"smooth",block:"nearest"});break;case Yt:D.current?.focus(),k("edit");break;case Xt:P(!0)}},renderActionItem:qt})]})]})},Qt=(0,o.defineMessages)({bookmarks:{id:"bookmarks",defaultMessage:"Bookmarks"},noBookmarks:{id:"noBookmarks",defaultMessage:"No Bookmarks"},addBookmark:{id:"addBookmark",defaultMessage:"Add bookmark"},edit:{id:"edit",defaultMessage:"Edit"},delete:{id:"delete",defaultMessage:"Delete"},deleteBookmarkConfirmMessage:{id:"deleteBookmarkConfirmMessage",defaultMessage:"Are you sure you want to delete this bookmark?"},cancel:{id:"cancel",defaultMessage:"Cancel"},done:{id:"done",defaultMessage:"Done"}}),en=(0,r.forwardRef)((({children:e,initialState:t={},state:n,onStateChange:o,...i},a)=>{let s=(0,r.useRef)(null),l={...i,...P({ref:s,initialState:t,state:n,onChange:o}),ref:S(a,s)};return L({children:e,ui:Jt(l),options:l})}));en.displayName="Bookmarks";var tn=Mt("PasswordDialog",o.AlertDialog,{"data-block-id":"password-dialog",componentProps:{className:"PSPDFKit-Password-Dialog","data-block-id":"body"}}),nn=e=>(0,d.jsx)(K,{...e,hasDialog:!1}),rn="_1yep5z6is _1yep5z6it _1yep5z6iu",on=(0,o.defineMessages)({outline:{id:"outline",defaultMessage:"Outline"},noOutline:{id:"noOutline",defaultMessage:"No Outline"}}),an=r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:a,...l},c)=>{let u=r.useRef(null),d={...l,...P({ref:u,initialState:t,state:n,onChange:a}),ref:S(c,u)},p=(({intl:{formatMessage:e},ref:t,className:n,style:r,outline:a,onPress:l,defaultExpandedItems:c,onExpandedChange:u,onRenderItem:d,"data-block-id":p="outline","data-block-class":h})=>{let f=!a;return(0,s.FD)(o.Box,{className:n,style:r,ref:t,"data-block-id":p,"data-block-class":h,display:"flex",flexDirection:"column",height:"full",children:[(0,s.Y)(o.Box,{paddingX:"lg",paddingY:"md",className:(0,i.xW)("_1fz9zbd0","PSPDFKit-Sidebar-Document-Outline-Heading"),children:(0,s.Y)(o.Text,{type:"title",size:"sm",className:"_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678",children:e(on.outline)})}),(0,s.Y)(o.Separator,{}),(0,s.Y)("div",{className:(0,i.xW)("_1fz9zbd1 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z6k4 _1yep5z6k5 _1yep5z6k6",{[rn]:f}),children:f?(0,s.Y)(o.Box,{flex:1,display:"flex",justifyContent:"center",alignItems:"center",children:(0,s.Y)(o.Text,{type:"helper",children:e(on.noOutline)})}):(0,s.Y)(o.TreeView,{items:a,onAction:l,defaultExpandedKeys:c,onExpandedChange:u,renderItemTitle:d})})]})})(d);return L({children:e,ui:p,options:d})}));an.displayName="Outline";var sn=new Set(["GridList","Accordion"]);function ln(e){switch(e.type){case"TextInput":return(0,s.Y)(o.Box,{padding:"lg",children:(0,s.Y)(o.TextInput,{...e.props})});case"Select":return(0,s.Y)(o.Box,{padding:"sm",paddingInlineStart:"lg",children:(0,s.Y)(o.Select,{...e.props})});case"Slider":return(0,s.FD)(o.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingInlineStart:"lg",padding:"sm",children:[(0,s.Y)(o.Text,{type:"label",size:"sm",children:e.label}),(0,s.Y)(o.IconSlider,{...e.props})]});case"RadioGroup":return(0,s.Y)(o.Box,{padding:"sm",paddingInlineStart:"lg",children:(0,s.Y)(o.RadioGroup,{...e.props})});case"ActionGroup":return(0,s.FD)(o.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingInlineStart:"lg",padding:"sm",children:[(0,s.Y)(o.Text,{type:"label",size:"sm",children:e.label}),(0,s.Y)(o.ActionGroup,{...e.props})]});case"Switch":return(0,s.Y)(o.Box,{padding:"sm",paddingInlineStart:"lg",children:(0,s.Y)(o.Switch,{...e.props})});case"Checkbox":return(0,s.Y)(o.Box,{padding:"lg",children:(0,s.Y)(o.Checkbox,{...e.props})});case"ColorPicker":return(0,s.Y)(o.Box,{padding:"sm",paddingInlineStart:"lg",children:(0,s.Y)(o.ColorInput,{...e.props})});case"Separator":return(0,s.Y)(o.Separator,{...e.props});case"GridList":return(0,s.Y)(o.Box,{paddingTop:"sm",paddingBottom:"lg",children:(0,s.Y)(c.DynamicGridList,{...e.props})});case"Accordion":return(0,s.Y)(o.Accordion,{children:e.props.children.map((e=>(0,s.Y)(o.AccordionItem,{title:e.label||"",value:e.label,children:e.children.map((e=>ln(e)))},e.label)))});default:return null}}var cn=({intl:{formatMessage:e},formFields:t,title:n,ref:r,className:a,"data-block-id":l="FormCreator","data-block-class":c,onDelete:u,onDone:d})=>{let h=(0,p.Bi)(n),f=(0,o.useDevice)();return(0,s.FD)(o.Box,{className:(0,i.xW)(a,"_1uzfghz2"),ref:r,"data-block-id":l,"data-block-class":c,display:"flex",flexDirection:"column",children:[(0,s.Y)(o.Box,{backgroundColor:"background.primary.subtle",paddingY:"md",paddingX:"lg",display:"flex",alignItems:"center",className:"_1uzfghz0",children:(0,s.Y)(o.Text,{id:h,type:"title",size:"sm",elementType:"h3","data-block-id":"title",children:n})}),(0,s.Y)(o.Separator,{}),(0,s.Y)(o.Box,{display:"flex",flexDirection:"column",className:"_1uzfghz4","data-block-id":"form-desiger-content",children:t.map((e=>(sn.has(e.type),ln(e))))}),(0,s.Y)(o.Box,{display:"flex",justifyContent:"center",padding:"lg","aria-label":e(un.FormCreatorFooter),"data-block-id":"form-creator-footer",className:"_1uzfghz1 _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z69i _1yep5z69j _1yep5z69k",children:"desktop"===f?(0,s.Y)(o.ActionButton,{"data-block-id":"delete",className:"PSPDFKit-Form-Creator-Editor-Delete",size:"md",label:e(un.delete),variant:"ghost",onPress:u}):(0,s.FD)(s.FK,{children:[(0,s.Y)(o.ActionButton,{"data-block-id":"delete",className:"PSPDFKit-Form-Creator-Editor-Delete",size:"sm",label:e(un.delete),variant:"secondary",onPress:u}),(0,s.Y)(o.ActionButton,{"data-block-id":"done",className:"PSPDFKit-Form-Creator-Editor-Done",size:"sm",label:e(un.done),variant:"primary",onPress:d})]})})]})},un=(0,o.defineMessages)({FormCreator:{id:"FormCreator",defaultMessage:"Form Creator"},FormCreatorFooter:{id:"FormCreatorFooter",defaultMessage:"Form Creator Footer"},delete:{id:"delete",defaultMessage:"Delete"},done:{id:"done",defaultMessage:"Done"}});r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:o,...i},a)=>{let s=r.useRef(null),l={...i,...P({ref:s,initialState:t,state:n,onChange:o}),ref:S(a,s)};return L({children:e,ui:cn(l),options:l})})).displayName="FormCreator";var dn=({popoverProps:e,popoverTriggerProps:t,popoverTrigger:n,popoverContentProps:r,dialogProps:i,content:a})=>(0,s.FD)(o.Popover,{...e,children:[n||t?(0,s.Y)(o.PopoverTrigger,{...t,children:n}):null,(0,s.Y)(o.PopoverContent,{...r,children:(0,s.Y)(o.Dialog,{...i,children:a})})]});r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:o,...a},s)=>{let l=r.useRef(null),c={...a,...P({ref:l,initialState:t,state:n,onChange:o}),ref:S(s,l)},u=(({content:e,referenceRect:t,dialogTitleId:n,onOutsideClick:r,boundaryElement:o,"data-block-id":a="form-creator-decorator","data-block-class":s})=>dn({popoverProps:{type:"dialog",isOpen:!!t,onOpenChange:e=>{e||r?.()}},popoverTriggerProps:{anchorRect:t},popoverContentProps:{"data-block-id":a,"data-block-class":s,isNonModal:!0,includeArrow:!0,className:(0,i.xW)("_1yep5z6d7 _1yep5z6ij _1yep5z6ik _1yep5z6il","PSPDFKit-Form-Creator-Popover"),contentContainerStyle:{overflow:"hidden"},contentContainerClassName:"_1yep5z6is _1yep5z6it _1yep5z6iu",boundaryElement:o?.querySelector(".PSPDFKit-Viewport")||void 0,shouldCloseOnInteractOutside:e=>!(e.dataset?.annotationId||e.classList.contains("PSPDFKit-Widget-Annotation-Selected"))},dialogProps:{size:"content","aria-labelledby":n,className:"_1yep5z6wr _1yep5z6ws _1yep5z6wt _1yep5z6xf _1yep5z6xg _1yep5z6xh _1yep5z6y3 _1yep5z6y4 _1yep5z6y5 _1yep5z6yr _1yep5z6ys _1yep5z6yt _1yep5z614v _1yep5z614w _1yep5z614x",style:{overflow:"hidden"}},content:e}))(c);return L({children:e,ui:u,options:c})})).displayName="FormCreatorDecorator";var pn="_1yep5z6k4 _1yep5z6k5 _1yep5z6k6 _1yep5z6kd _1yep5z6ke _1yep5z6kf",hn="_13vufox2 _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6is _1yep5z6it _1yep5z6iu _1yep5z69l _1yep5z69m _1yep5z69n",fn="_13vufox5",mn="_13vufox6",gn="uri",vn="page",yn=(0,o.defineMessages)({edit:{id:"edit",defaultMessage:"Edit"},goToPageLink:{id:"goToPageLink",defaultMessage:"Go to Page"},linkSettings:{id:"linkSettings",defaultMessage:"Link Settings"},linkTo:{id:"linkTo",defaultMessage:"Link To"},linkToPage:{id:"linkToPage",defaultMessage:"Link to Page"},openLink:{id:"openLink",defaultMessage:"Open Link"},pageLink:{id:"pageLink",defaultMessage:"Page"},uriLink:{id:"uriLink",defaultMessage:"Website"}});r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:a,...l},c)=>{let d=r.useRef(null),h={...l,...P({ref:d,initialState:t,state:n,onChange:a}),ref:S(c,d)},f=(({intl:{formatMessage:e},ref:t,className:n,style:a,titleId:l,uriValue:c,pageValue:d,valueType:h,onAction:f,onUriChange:m,onPageChange:g,onValueTypeChange:v,errorMessage:y,isReadOnly:b=!1,isEditing:w=!1,onEdit:x,onBlur:S,"data-block-id":_="link-editor","data-block-class":C})=>{let E=(0,p.Bi)(l),k=(0,r.useMemo)((()=>[{id:gn,label:e(yn.uriLink)},{id:vn,label:e(yn.pageLink)}]),[e]),z=(0,r.useMemo)((()=>h),[]),P=h===vn;return(0,s.FD)("div",{ref:t,className:n,style:a,"data-block-id":_,"data-block-class":C,children:[(0,s.Y)(o.Box,{backgroundColor:"background.primary.subtle",paddingY:"md",paddingX:"lg",display:"flex",alignItems:"center",justifyContent:w?"flex-start":"center","data-block-id":"header",className:"_13vufox0",children:(0,s.Y)(o.Text,{id:E,type:"title",size:"sm",elementType:"h3","data-block-id":"title",className:"_13vufox1",children:w?e(yn.linkSettings):P?`${e(yn.linkToPage)}: ${d}`:c})}),b?null:(0,s.FD)(o.Box,{"data-block-id":"content",children:[(0,s.Y)(o.Separator,{"data-block-id":"separator",variant:"secondary",className:"_13vufox3"}),w?(0,s.FD)("div",{className:hn,"data-block-id":"editor",children:[(0,s.Y)(o.Box,{flex:1,"data-block-id":"radio-group-container",children:(0,s.Y)(o.RadioGroup,{"data-block-id":"radio-group","aria-label":e(yn.linkTo),className:"_13vufox4",optionsContainerStyle:P?{gap:u.G6.spacing["2xl"]}:{justifyContent:"space-between"},optionsContainerClassName:"_13vufox7 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k",defaultValue:z,value:h,items:k,onChange:e=>{v(e)}})}),(0,s.FD)(o.Box,{flex:1,"data-block-id":"input-container",gap:"md",display:"flex",flexDirection:"column",children:[(0,s.Y)(o.TextInput,{"data-block-id":"input-uri","aria-label":e(yn.uriLink),className:(0,i.xW)(fn,{[mn]:P}),variant:"ghost",value:c,onChange:m,placeholder:"www.example.com",errorMessage:P?void 0:y,onBlur:S}),(0,s.Y)(o.TextInput,{"data-block-id":"input-page","aria-label":e(yn.pageLink),className:(0,i.xW)(fn,{[mn]:!P}),variant:"ghost",value:d,onChange:g,placeholder:"1",errorMessage:P?y:void 0,onBlur:S})]})]}):(0,s.FD)("div",{className:hn,"data-block-id":"buttons-container",children:[(0,s.Y)(o.ActionButton,{"data-block-id":"button-edit",className:(0,i.xW)(pn,"PSPDFKit-Link-Popover-Editor-Edit-Button"),variant:"secondary",label:e(yn.edit),onPress:x}),(0,s.Y)(o.ActionButton,{"data-block-id":"button-action",onPress:f,className:(0,i.xW)(pn,"PSPDFKit-Link-Popover-Editor-Open-Button"),label:e(P?yn.goToPageLink:yn.openLink)})]})]})]})})(h);return L({children:e,ui:f,options:h})})).displayName="LinkEditor";r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:o,...a},s)=>{let l=r.useRef(null),c={...a,...P({ref:l,initialState:t,state:n,onChange:o}),ref:S(s,l)},u=(({content:e,referenceRect:t,dialogTitleId:n,onOutsideClick:r,boundaryElement:o,"data-block-id":a="link-editor-decorator","data-block-class":s})=>dn({popoverProps:{type:"dialog",isOpen:!!t,onOpenChange:e=>{e||r?.()}},popoverTriggerProps:{anchorRect:t},popoverContentProps:{"data-block-id":a,"data-block-class":s,isNonModal:!0,includeArrow:!0,className:(0,i.xW)("_1yep5z6ij _1yep5z6ik _1yep5z6il","PSPDFKit-Link-Editor-Popover"),style:{width:"unset"},contentContainerClassName:"_1yep5z6ao _1yep5z6ap _1yep5z6aq _1yep5z6bc _1yep5z6bd _1yep5z6be _1yep5z6c0 _1yep5z6c1 _1yep5z6c2 _1yep5z6co _1yep5z6cp _1yep5z6cq _1yep5z6is _1yep5z6it _1yep5z6iu",boundaryElement:o?.querySelector(".PSPDFKit-Viewport")||void 0,shouldCloseOnInteractOutside:e=>!(e.dataset?.annotationId||e.classList.contains("PSPDFKit-Link-Annotation-Selected"))},dialogProps:{size:"content","aria-labelledby":n,className:"_1yep5z6wr _1yep5z6ws _1yep5z6wt _1yep5z6xf _1yep5z6xg _1yep5z6xh _1yep5z6y3 _1yep5z6y4 _1yep5z6y5 _1yep5z6yr _1yep5z6ys _1yep5z6yt _1yep5z614v _1yep5z614w _1yep5z614x"},content:e}))(c);return L({children:e,ui:u,options:c})})).displayName="LinkEditorDecorator";var bn="_109ynbm0",wn=O({defaultClassName:"wvhgzq0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g1 _1yep5z6lz _1yep5z6m1",variantClassNames:{size:{sm:"wvhgzq1",md:"wvhgzq2",lg:"wvhgzq3",content:"wvhgzq4"},variant:{primary:"_1yep5z6137",ghost:"wvhgzq6"},overlayType:{modal:"wvhgzq7",popover:"wvhgzq8"},isDrawer:{true:"wvhgzq9 _1yep5z6yi _1yep5z6yj _1yep5z6yk _1yep5z6z6 _1yep5z6z7 _1yep5z6z8 _1yep5z617q"},isFocusVisible:{true:"_1yep5z61q3 _1yep5z61tx _1yep5z61tz _1yep5z61u1"}},defaultVariants:{},compoundVariants:[]}),xn=(0,o.defineMessages)({searchPreviousMatch:{id:"searchPreviousMatch",defaultMessage:"Previous"},searchNextMatch:{id:"searchNextMatch",defaultMessage:"Next"},cancel:{id:"cancel",defaultMessage:"Cancel"},searchDocument:{id:"searchDocument",defaultMessage:"Search"},searchResultOf:{id:"searchResultOf",defaultMessage:"{arg0} of {arg1}"}}),Sn=r.forwardRef((({children:e,initialState:t={},state:n,onStateChange:a,...l},c)=>{let u=r.useRef(null),d={...l,...P({ref:u,initialState:t,state:n,onChange:a}),ref:S(c,u)},p=(({intl:{formatMessage:e},ref:t,className:n,style:a,"data-block-id":l="search","data-block-class":c,value:u,onSearchClear:d,onSearchChange:p,onFocusNext:f,onFocusPrevious:m,onCloseRequest:g,resultsSize:v,focusedResultIndex:y,...b})=>{let w=(0,r.useCallback)((e=>{e.shiftKey&&"Enter"===e.key||e.metaKey&&e.shiftKey&&"g"===e.key?(e.preventDefault(),m?.()):"Enter"===e.key||"g"===e.key&&e.metaKey?(e.preventDefault(),f?.()):"Escape"===e.key&&(e.preventDefault(),g?.())}),[f,m,g]);return(0,s.FD)(o.Box,{role:"search",display:"flex",flexDirection:"row",justifyContent:"space-between",paddingX:"lg",paddingY:"lg",className:(0,i.xW)("_109ynbm1",wn({size:"content",variant:"primary",isDrawer:!1,isFocusVisible:!1}),n),boxShadow:"medium",style:a,"data-block-id":l,"data-block-class":c,ref:t,...b,children:[(0,s.FD)(o.Box,{gap:"lg",display:"flex",flexDirection:"row",alignItems:"center",children:[(0,s.Y)("div",{className:bn,children:(0,s.Y)(o.SearchInput,{size:"sm",autoFocus:!0,variant:"primary","aria-label":e(xn.searchDocument),placeholder:e(xn.searchDocument),className:(0,i.xW)("PSPDFKit-Search-Form-Input",bn),value:u||"",onClear:d,onChange:p,onKeyDown:w})}),(0,s.Y)(o.Text,{type:"value",size:"sm",style:{whiteSpace:"nowrap"},children:e(xn.searchResultOf,{arg0:v>0?y+1:0,arg1:v})})]}),(0,s.FD)(o.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",gap:"sm",children:[(0,s.Y)(o.ActionIconButton,{icon:h.eC,size:"sm",variant:"secondary","aria-label":e(xn.searchPreviousMatch),onPress:m,isDisabled:0===v,className:"PSPDFKit-Search-Control"}),(0,s.Y)(o.ActionIconButton,{icon:h.JJ,size:"sm",variant:"secondary","aria-label":e(xn.searchNextMatch),onPress:f,isDisabled:0===v,className:"PSPDFKit-Search-Control"}),(0,s.Y)(o.ActionIconButton,{className:"PSPDFKit-Search-Button-Close",icon:h.uv,size:"sm",variant:"secondary","aria-label":e(xn.cancel),onPress:g})]})]})})(d);return L({ui:p,children:e,options:d})}));Sn.displayName="Search"},20576:(e,t,n)=>{"use strict";n.d(t,{Br:()=>b,G6:()=>g,Pq:()=>v,UV:()=>w,_k:()=>f,a5:()=>m});var r=n(2543);function o(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function i(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l,c=e=>e,u=function(){return(e=c,function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=Object.assign({},...n.map((e=>e.styles))),i=Object.keys(o),a=i.filter((e=>"mappings"in o[e]));return Object.assign((t=>{var n=[],r={},i=s({},t),l=!1;for(var c of a){var u=t[c];if(null!=u){var d=o[c];for(var p of(l=!0,d.mappings))r[p]=u,null==i[p]&&delete i[p]}}var h=l?s(s({},r),i):t,f=function(){var e=h[m],t=o[m];try{if(t.mappings)return 1;if("string"==typeof e||"number"==typeof e)n.push(t.values[e].defaultClass);else if(Array.isArray(e))for(var r=0;r<e.length;r++){var i=e[r];if(null!=i){var a=t.responsiveArray[r];n.push(t.values[i].conditions[a])}}else for(var s in e){var l=e[s];null!=l&&n.push(t.values[l].conditions[s])}}catch(e){throw e}};for(var m in h)f();return e(n.join(" "))}),{properties:new Set(i)})})(...arguments);var e},d=u(((l={conditions:{defaultCondition:["mobile","tablet","desktop"],conditionNames:["mobile","tablet","desktop"],responsiveArray:["mobile","tablet","desktop"]},styles:{paddingLeft:{mappings:["paddingInlineStart"]},paddingRight:{mappings:["paddingInlineEnd"]},paddingTop:{mappings:["paddingBlockStart"]},paddingBottom:{mappings:["paddingBlockEnd"]},padding:{mappings:["paddingBlockStart","paddingBlockEnd","paddingInlineStart","paddingInlineEnd"]},paddingX:{mappings:["paddingInlineStart","paddingInlineEnd"]},paddingY:{mappings:["paddingBlockStart","paddingBlockEnd"]},marginLeft:{mappings:["marginInlineStart"]},marginRight:{mappings:["marginInlineEnd"]},marginTop:{mappings:["marginBlockStart"]},marginBottom:{mappings:["marginBlockEnd"]},margin:{mappings:["marginBlockStart","marginBlockEnd","marginInlineStart","marginInlineEnd"]},marginX:{mappings:["marginInlineStart","marginInlineEnd"]},marginY:{mappings:["marginBlockStart","marginBlockEnd"]},paddingBlockStart:{values:{xs:{conditions:{mobile:"_1yep5z60",tablet:"_1yep5z61",desktop:"_1yep5z62"},defaultClass:"_1yep5z60 _1yep5z61 _1yep5z62"},sm:{conditions:{mobile:"_1yep5z63",tablet:"_1yep5z64",desktop:"_1yep5z65"},defaultClass:"_1yep5z63 _1yep5z64 _1yep5z65"},md:{conditions:{mobile:"_1yep5z66",tablet:"_1yep5z67",desktop:"_1yep5z68"},defaultClass:"_1yep5z66 _1yep5z67 _1yep5z68"},lg:{conditions:{mobile:"_1yep5z69",tablet:"_1yep5z6a",desktop:"_1yep5z6b"},defaultClass:"_1yep5z69 _1yep5z6a _1yep5z6b"},xl:{conditions:{mobile:"_1yep5z6c",tablet:"_1yep5z6d",desktop:"_1yep5z6e"},defaultClass:"_1yep5z6c _1yep5z6d _1yep5z6e"},"2xl":{conditions:{mobile:"_1yep5z6f",tablet:"_1yep5z6g",desktop:"_1yep5z6h"},defaultClass:"_1yep5z6f _1yep5z6g _1yep5z6h"},"3xl":{conditions:{mobile:"_1yep5z6i",tablet:"_1yep5z6j",desktop:"_1yep5z6k"},defaultClass:"_1yep5z6i _1yep5z6j _1yep5z6k"},"4xl":{conditions:{mobile:"_1yep5z6l",tablet:"_1yep5z6m",desktop:"_1yep5z6n"},defaultClass:"_1yep5z6l _1yep5z6m _1yep5z6n"},"5xl":{conditions:{mobile:"_1yep5z6o",tablet:"_1yep5z6p",desktop:"_1yep5z6q"},defaultClass:"_1yep5z6o _1yep5z6p _1yep5z6q"},"6xl":{conditions:{mobile:"_1yep5z6r",tablet:"_1yep5z6s",desktop:"_1yep5z6t"},defaultClass:"_1yep5z6r _1yep5z6s _1yep5z6t"},"7xl":{conditions:{mobile:"_1yep5z6u",tablet:"_1yep5z6v",desktop:"_1yep5z6w"},defaultClass:"_1yep5z6u _1yep5z6v _1yep5z6w"},"8xl":{conditions:{mobile:"_1yep5z6x",tablet:"_1yep5z6y",desktop:"_1yep5z6z"},defaultClass:"_1yep5z6x _1yep5z6y _1yep5z6z"},"9xl":{conditions:{mobile:"_1yep5z610",tablet:"_1yep5z611",desktop:"_1yep5z612"},defaultClass:"_1yep5z610 _1yep5z611 _1yep5z612"},none:{conditions:{mobile:"_1yep5z613",tablet:"_1yep5z614",desktop:"_1yep5z615"},defaultClass:"_1yep5z613 _1yep5z614 _1yep5z615"}},responsiveArray:void 0},paddingInlineEnd:{values:{xs:{conditions:{mobile:"_1yep5z616",tablet:"_1yep5z617",desktop:"_1yep5z618"},defaultClass:"_1yep5z616 _1yep5z617 _1yep5z618"},sm:{conditions:{mobile:"_1yep5z619",tablet:"_1yep5z61a",desktop:"_1yep5z61b"},defaultClass:"_1yep5z619 _1yep5z61a _1yep5z61b"},md:{conditions:{mobile:"_1yep5z61c",tablet:"_1yep5z61d",desktop:"_1yep5z61e"},defaultClass:"_1yep5z61c _1yep5z61d _1yep5z61e"},lg:{conditions:{mobile:"_1yep5z61f",tablet:"_1yep5z61g",desktop:"_1yep5z61h"},defaultClass:"_1yep5z61f _1yep5z61g _1yep5z61h"},xl:{conditions:{mobile:"_1yep5z61i",tablet:"_1yep5z61j",desktop:"_1yep5z61k"},defaultClass:"_1yep5z61i _1yep5z61j _1yep5z61k"},"2xl":{conditions:{mobile:"_1yep5z61l",tablet:"_1yep5z61m",desktop:"_1yep5z61n"},defaultClass:"_1yep5z61l _1yep5z61m _1yep5z61n"},"3xl":{conditions:{mobile:"_1yep5z61o",tablet:"_1yep5z61p",desktop:"_1yep5z61q"},defaultClass:"_1yep5z61o _1yep5z61p _1yep5z61q"},"4xl":{conditions:{mobile:"_1yep5z61r",tablet:"_1yep5z61s",desktop:"_1yep5z61t"},defaultClass:"_1yep5z61r _1yep5z61s _1yep5z61t"},"5xl":{conditions:{mobile:"_1yep5z61u",tablet:"_1yep5z61v",desktop:"_1yep5z61w"},defaultClass:"_1yep5z61u _1yep5z61v _1yep5z61w"},"6xl":{conditions:{mobile:"_1yep5z61x",tablet:"_1yep5z61y",desktop:"_1yep5z61z"},defaultClass:"_1yep5z61x _1yep5z61y _1yep5z61z"},"7xl":{conditions:{mobile:"_1yep5z620",tablet:"_1yep5z621",desktop:"_1yep5z622"},defaultClass:"_1yep5z620 _1yep5z621 _1yep5z622"},"8xl":{conditions:{mobile:"_1yep5z623",tablet:"_1yep5z624",desktop:"_1yep5z625"},defaultClass:"_1yep5z623 _1yep5z624 _1yep5z625"},"9xl":{conditions:{mobile:"_1yep5z626",tablet:"_1yep5z627",desktop:"_1yep5z628"},defaultClass:"_1yep5z626 _1yep5z627 _1yep5z628"},none:{conditions:{mobile:"_1yep5z629",tablet:"_1yep5z62a",desktop:"_1yep5z62b"},defaultClass:"_1yep5z629 _1yep5z62a _1yep5z62b"}},responsiveArray:void 0},paddingBlockEnd:{values:{xs:{conditions:{mobile:"_1yep5z62c",tablet:"_1yep5z62d",desktop:"_1yep5z62e"},defaultClass:"_1yep5z62c _1yep5z62d _1yep5z62e"},sm:{conditions:{mobile:"_1yep5z62f",tablet:"_1yep5z62g",desktop:"_1yep5z62h"},defaultClass:"_1yep5z62f _1yep5z62g _1yep5z62h"},md:{conditions:{mobile:"_1yep5z62i",tablet:"_1yep5z62j",desktop:"_1yep5z62k"},defaultClass:"_1yep5z62i _1yep5z62j _1yep5z62k"},lg:{conditions:{mobile:"_1yep5z62l",tablet:"_1yep5z62m",desktop:"_1yep5z62n"},defaultClass:"_1yep5z62l _1yep5z62m _1yep5z62n"},xl:{conditions:{mobile:"_1yep5z62o",tablet:"_1yep5z62p",desktop:"_1yep5z62q"},defaultClass:"_1yep5z62o _1yep5z62p _1yep5z62q"},"2xl":{conditions:{mobile:"_1yep5z62r",tablet:"_1yep5z62s",desktop:"_1yep5z62t"},defaultClass:"_1yep5z62r _1yep5z62s _1yep5z62t"},"3xl":{conditions:{mobile:"_1yep5z62u",tablet:"_1yep5z62v",desktop:"_1yep5z62w"},defaultClass:"_1yep5z62u _1yep5z62v _1yep5z62w"},"4xl":{conditions:{mobile:"_1yep5z62x",tablet:"_1yep5z62y",desktop:"_1yep5z62z"},defaultClass:"_1yep5z62x _1yep5z62y _1yep5z62z"},"5xl":{conditions:{mobile:"_1yep5z630",tablet:"_1yep5z631",desktop:"_1yep5z632"},defaultClass:"_1yep5z630 _1yep5z631 _1yep5z632"},"6xl":{conditions:{mobile:"_1yep5z633",tablet:"_1yep5z634",desktop:"_1yep5z635"},defaultClass:"_1yep5z633 _1yep5z634 _1yep5z635"},"7xl":{conditions:{mobile:"_1yep5z636",tablet:"_1yep5z637",desktop:"_1yep5z638"},defaultClass:"_1yep5z636 _1yep5z637 _1yep5z638"},"8xl":{conditions:{mobile:"_1yep5z639",tablet:"_1yep5z63a",desktop:"_1yep5z63b"},defaultClass:"_1yep5z639 _1yep5z63a _1yep5z63b"},"9xl":{conditions:{mobile:"_1yep5z63c",tablet:"_1yep5z63d",desktop:"_1yep5z63e"},defaultClass:"_1yep5z63c _1yep5z63d _1yep5z63e"},none:{conditions:{mobile:"_1yep5z63f",tablet:"_1yep5z63g",desktop:"_1yep5z63h"},defaultClass:"_1yep5z63f _1yep5z63g _1yep5z63h"}},responsiveArray:void 0},paddingInlineStart:{values:{xs:{conditions:{mobile:"_1yep5z63i",tablet:"_1yep5z63j",desktop:"_1yep5z63k"},defaultClass:"_1yep5z63i _1yep5z63j _1yep5z63k"},sm:{conditions:{mobile:"_1yep5z63l",tablet:"_1yep5z63m",desktop:"_1yep5z63n"},defaultClass:"_1yep5z63l _1yep5z63m _1yep5z63n"},md:{conditions:{mobile:"_1yep5z63o",tablet:"_1yep5z63p",desktop:"_1yep5z63q"},defaultClass:"_1yep5z63o _1yep5z63p _1yep5z63q"},lg:{conditions:{mobile:"_1yep5z63r",tablet:"_1yep5z63s",desktop:"_1yep5z63t"},defaultClass:"_1yep5z63r _1yep5z63s _1yep5z63t"},xl:{conditions:{mobile:"_1yep5z63u",tablet:"_1yep5z63v",desktop:"_1yep5z63w"},defaultClass:"_1yep5z63u _1yep5z63v _1yep5z63w"},"2xl":{conditions:{mobile:"_1yep5z63x",tablet:"_1yep5z63y",desktop:"_1yep5z63z"},defaultClass:"_1yep5z63x _1yep5z63y _1yep5z63z"},"3xl":{conditions:{mobile:"_1yep5z640",tablet:"_1yep5z641",desktop:"_1yep5z642"},defaultClass:"_1yep5z640 _1yep5z641 _1yep5z642"},"4xl":{conditions:{mobile:"_1yep5z643",tablet:"_1yep5z644",desktop:"_1yep5z645"},defaultClass:"_1yep5z643 _1yep5z644 _1yep5z645"},"5xl":{conditions:{mobile:"_1yep5z646",tablet:"_1yep5z647",desktop:"_1yep5z648"},defaultClass:"_1yep5z646 _1yep5z647 _1yep5z648"},"6xl":{conditions:{mobile:"_1yep5z649",tablet:"_1yep5z64a",desktop:"_1yep5z64b"},defaultClass:"_1yep5z649 _1yep5z64a _1yep5z64b"},"7xl":{conditions:{mobile:"_1yep5z64c",tablet:"_1yep5z64d",desktop:"_1yep5z64e"},defaultClass:"_1yep5z64c _1yep5z64d _1yep5z64e"},"8xl":{conditions:{mobile:"_1yep5z64f",tablet:"_1yep5z64g",desktop:"_1yep5z64h"},defaultClass:"_1yep5z64f _1yep5z64g _1yep5z64h"},"9xl":{conditions:{mobile:"_1yep5z64i",tablet:"_1yep5z64j",desktop:"_1yep5z64k"},defaultClass:"_1yep5z64i _1yep5z64j _1yep5z64k"},none:{conditions:{mobile:"_1yep5z64l",tablet:"_1yep5z64m",desktop:"_1yep5z64n"},defaultClass:"_1yep5z64l _1yep5z64m _1yep5z64n"}},responsiveArray:void 0},marginBlockStart:{values:{xs:{conditions:{mobile:"_1yep5z64o",tablet:"_1yep5z64p",desktop:"_1yep5z64q"},defaultClass:"_1yep5z64o _1yep5z64p _1yep5z64q"},sm:{conditions:{mobile:"_1yep5z64r",tablet:"_1yep5z64s",desktop:"_1yep5z64t"},defaultClass:"_1yep5z64r _1yep5z64s _1yep5z64t"},md:{conditions:{mobile:"_1yep5z64u",tablet:"_1yep5z64v",desktop:"_1yep5z64w"},defaultClass:"_1yep5z64u _1yep5z64v _1yep5z64w"},lg:{conditions:{mobile:"_1yep5z64x",tablet:"_1yep5z64y",desktop:"_1yep5z64z"},defaultClass:"_1yep5z64x _1yep5z64y _1yep5z64z"},xl:{conditions:{mobile:"_1yep5z650",tablet:"_1yep5z651",desktop:"_1yep5z652"},defaultClass:"_1yep5z650 _1yep5z651 _1yep5z652"},"2xl":{conditions:{mobile:"_1yep5z653",tablet:"_1yep5z654",desktop:"_1yep5z655"},defaultClass:"_1yep5z653 _1yep5z654 _1yep5z655"},"3xl":{conditions:{mobile:"_1yep5z656",tablet:"_1yep5z657",desktop:"_1yep5z658"},defaultClass:"_1yep5z656 _1yep5z657 _1yep5z658"},"4xl":{conditions:{mobile:"_1yep5z659",tablet:"_1yep5z65a",desktop:"_1yep5z65b"},defaultClass:"_1yep5z659 _1yep5z65a _1yep5z65b"},"5xl":{conditions:{mobile:"_1yep5z65c",tablet:"_1yep5z65d",desktop:"_1yep5z65e"},defaultClass:"_1yep5z65c _1yep5z65d _1yep5z65e"},"6xl":{conditions:{mobile:"_1yep5z65f",tablet:"_1yep5z65g",desktop:"_1yep5z65h"},defaultClass:"_1yep5z65f _1yep5z65g _1yep5z65h"},"7xl":{conditions:{mobile:"_1yep5z65i",tablet:"_1yep5z65j",desktop:"_1yep5z65k"},defaultClass:"_1yep5z65i _1yep5z65j _1yep5z65k"},"8xl":{conditions:{mobile:"_1yep5z65l",tablet:"_1yep5z65m",desktop:"_1yep5z65n"},defaultClass:"_1yep5z65l _1yep5z65m _1yep5z65n"},"9xl":{conditions:{mobile:"_1yep5z65o",tablet:"_1yep5z65p",desktop:"_1yep5z65q"},defaultClass:"_1yep5z65o _1yep5z65p _1yep5z65q"},none:{conditions:{mobile:"_1yep5z65r",tablet:"_1yep5z65s",desktop:"_1yep5z65t"},defaultClass:"_1yep5z65r _1yep5z65s _1yep5z65t"}},responsiveArray:void 0},marginInlineEnd:{values:{xs:{conditions:{mobile:"_1yep5z65u",tablet:"_1yep5z65v",desktop:"_1yep5z65w"},defaultClass:"_1yep5z65u _1yep5z65v _1yep5z65w"},sm:{conditions:{mobile:"_1yep5z65x",tablet:"_1yep5z65y",desktop:"_1yep5z65z"},defaultClass:"_1yep5z65x _1yep5z65y _1yep5z65z"},md:{conditions:{mobile:"_1yep5z660",tablet:"_1yep5z661",desktop:"_1yep5z662"},defaultClass:"_1yep5z660 _1yep5z661 _1yep5z662"},lg:{conditions:{mobile:"_1yep5z663",tablet:"_1yep5z664",desktop:"_1yep5z665"},defaultClass:"_1yep5z663 _1yep5z664 _1yep5z665"},xl:{conditions:{mobile:"_1yep5z666",tablet:"_1yep5z667",desktop:"_1yep5z668"},defaultClass:"_1yep5z666 _1yep5z667 _1yep5z668"},"2xl":{conditions:{mobile:"_1yep5z669",tablet:"_1yep5z66a",desktop:"_1yep5z66b"},defaultClass:"_1yep5z669 _1yep5z66a _1yep5z66b"},"3xl":{conditions:{mobile:"_1yep5z66c",tablet:"_1yep5z66d",desktop:"_1yep5z66e"},defaultClass:"_1yep5z66c _1yep5z66d _1yep5z66e"},"4xl":{conditions:{mobile:"_1yep5z66f",tablet:"_1yep5z66g",desktop:"_1yep5z66h"},defaultClass:"_1yep5z66f _1yep5z66g _1yep5z66h"},"5xl":{conditions:{mobile:"_1yep5z66i",tablet:"_1yep5z66j",desktop:"_1yep5z66k"},defaultClass:"_1yep5z66i _1yep5z66j _1yep5z66k"},"6xl":{conditions:{mobile:"_1yep5z66l",tablet:"_1yep5z66m",desktop:"_1yep5z66n"},defaultClass:"_1yep5z66l _1yep5z66m _1yep5z66n"},"7xl":{conditions:{mobile:"_1yep5z66o",tablet:"_1yep5z66p",desktop:"_1yep5z66q"},defaultClass:"_1yep5z66o _1yep5z66p _1yep5z66q"},"8xl":{conditions:{mobile:"_1yep5z66r",tablet:"_1yep5z66s",desktop:"_1yep5z66t"},defaultClass:"_1yep5z66r _1yep5z66s _1yep5z66t"},"9xl":{conditions:{mobile:"_1yep5z66u",tablet:"_1yep5z66v",desktop:"_1yep5z66w"},defaultClass:"_1yep5z66u _1yep5z66v _1yep5z66w"},none:{conditions:{mobile:"_1yep5z66x",tablet:"_1yep5z66y",desktop:"_1yep5z66z"},defaultClass:"_1yep5z66x _1yep5z66y _1yep5z66z"}},responsiveArray:void 0},marginBlockEnd:{values:{xs:{conditions:{mobile:"_1yep5z670",tablet:"_1yep5z671",desktop:"_1yep5z672"},defaultClass:"_1yep5z670 _1yep5z671 _1yep5z672"},sm:{conditions:{mobile:"_1yep5z673",tablet:"_1yep5z674",desktop:"_1yep5z675"},defaultClass:"_1yep5z673 _1yep5z674 _1yep5z675"},md:{conditions:{mobile:"_1yep5z676",tablet:"_1yep5z677",desktop:"_1yep5z678"},defaultClass:"_1yep5z676 _1yep5z677 _1yep5z678"},lg:{conditions:{mobile:"_1yep5z679",tablet:"_1yep5z67a",desktop:"_1yep5z67b"},defaultClass:"_1yep5z679 _1yep5z67a _1yep5z67b"},xl:{conditions:{mobile:"_1yep5z67c",tablet:"_1yep5z67d",desktop:"_1yep5z67e"},defaultClass:"_1yep5z67c _1yep5z67d _1yep5z67e"},"2xl":{conditions:{mobile:"_1yep5z67f",tablet:"_1yep5z67g",desktop:"_1yep5z67h"},defaultClass:"_1yep5z67f _1yep5z67g _1yep5z67h"},"3xl":{conditions:{mobile:"_1yep5z67i",tablet:"_1yep5z67j",desktop:"_1yep5z67k"},defaultClass:"_1yep5z67i _1yep5z67j _1yep5z67k"},"4xl":{conditions:{mobile:"_1yep5z67l",tablet:"_1yep5z67m",desktop:"_1yep5z67n"},defaultClass:"_1yep5z67l _1yep5z67m _1yep5z67n"},"5xl":{conditions:{mobile:"_1yep5z67o",tablet:"_1yep5z67p",desktop:"_1yep5z67q"},defaultClass:"_1yep5z67o _1yep5z67p _1yep5z67q"},"6xl":{conditions:{mobile:"_1yep5z67r",tablet:"_1yep5z67s",desktop:"_1yep5z67t"},defaultClass:"_1yep5z67r _1yep5z67s _1yep5z67t"},"7xl":{conditions:{mobile:"_1yep5z67u",tablet:"_1yep5z67v",desktop:"_1yep5z67w"},defaultClass:"_1yep5z67u _1yep5z67v _1yep5z67w"},"8xl":{conditions:{mobile:"_1yep5z67x",tablet:"_1yep5z67y",desktop:"_1yep5z67z"},defaultClass:"_1yep5z67x _1yep5z67y _1yep5z67z"},"9xl":{conditions:{mobile:"_1yep5z680",tablet:"_1yep5z681",desktop:"_1yep5z682"},defaultClass:"_1yep5z680 _1yep5z681 _1yep5z682"},none:{conditions:{mobile:"_1yep5z683",tablet:"_1yep5z684",desktop:"_1yep5z685"},defaultClass:"_1yep5z683 _1yep5z684 _1yep5z685"}},responsiveArray:void 0},marginInlineStart:{values:{xs:{conditions:{mobile:"_1yep5z686",tablet:"_1yep5z687",desktop:"_1yep5z688"},defaultClass:"_1yep5z686 _1yep5z687 _1yep5z688"},sm:{conditions:{mobile:"_1yep5z689",tablet:"_1yep5z68a",desktop:"_1yep5z68b"},defaultClass:"_1yep5z689 _1yep5z68a _1yep5z68b"},md:{conditions:{mobile:"_1yep5z68c",tablet:"_1yep5z68d",desktop:"_1yep5z68e"},defaultClass:"_1yep5z68c _1yep5z68d _1yep5z68e"},lg:{conditions:{mobile:"_1yep5z68f",tablet:"_1yep5z68g",desktop:"_1yep5z68h"},defaultClass:"_1yep5z68f _1yep5z68g _1yep5z68h"},xl:{conditions:{mobile:"_1yep5z68i",tablet:"_1yep5z68j",desktop:"_1yep5z68k"},defaultClass:"_1yep5z68i _1yep5z68j _1yep5z68k"},"2xl":{conditions:{mobile:"_1yep5z68l",tablet:"_1yep5z68m",desktop:"_1yep5z68n"},defaultClass:"_1yep5z68l _1yep5z68m _1yep5z68n"},"3xl":{conditions:{mobile:"_1yep5z68o",tablet:"_1yep5z68p",desktop:"_1yep5z68q"},defaultClass:"_1yep5z68o _1yep5z68p _1yep5z68q"},"4xl":{conditions:{mobile:"_1yep5z68r",tablet:"_1yep5z68s",desktop:"_1yep5z68t"},defaultClass:"_1yep5z68r _1yep5z68s _1yep5z68t"},"5xl":{conditions:{mobile:"_1yep5z68u",tablet:"_1yep5z68v",desktop:"_1yep5z68w"},defaultClass:"_1yep5z68u _1yep5z68v _1yep5z68w"},"6xl":{conditions:{mobile:"_1yep5z68x",tablet:"_1yep5z68y",desktop:"_1yep5z68z"},defaultClass:"_1yep5z68x _1yep5z68y _1yep5z68z"},"7xl":{conditions:{mobile:"_1yep5z690",tablet:"_1yep5z691",desktop:"_1yep5z692"},defaultClass:"_1yep5z690 _1yep5z691 _1yep5z692"},"8xl":{conditions:{mobile:"_1yep5z693",tablet:"_1yep5z694",desktop:"_1yep5z695"},defaultClass:"_1yep5z693 _1yep5z694 _1yep5z695"},"9xl":{conditions:{mobile:"_1yep5z696",tablet:"_1yep5z697",desktop:"_1yep5z698"},defaultClass:"_1yep5z696 _1yep5z697 _1yep5z698"},none:{conditions:{mobile:"_1yep5z699",tablet:"_1yep5z69a",desktop:"_1yep5z69b"},defaultClass:"_1yep5z699 _1yep5z69a _1yep5z69b"}},responsiveArray:void 0},gap:{values:{xs:{conditions:{mobile:"_1yep5z69c",tablet:"_1yep5z69d",desktop:"_1yep5z69e"},defaultClass:"_1yep5z69c _1yep5z69d _1yep5z69e"},sm:{conditions:{mobile:"_1yep5z69f",tablet:"_1yep5z69g",desktop:"_1yep5z69h"},defaultClass:"_1yep5z69f _1yep5z69g _1yep5z69h"},md:{conditions:{mobile:"_1yep5z69i",tablet:"_1yep5z69j",desktop:"_1yep5z69k"},defaultClass:"_1yep5z69i _1yep5z69j _1yep5z69k"},lg:{conditions:{mobile:"_1yep5z69l",tablet:"_1yep5z69m",desktop:"_1yep5z69n"},defaultClass:"_1yep5z69l _1yep5z69m _1yep5z69n"},xl:{conditions:{mobile:"_1yep5z69o",tablet:"_1yep5z69p",desktop:"_1yep5z69q"},defaultClass:"_1yep5z69o _1yep5z69p _1yep5z69q"},"2xl":{conditions:{mobile:"_1yep5z69r",tablet:"_1yep5z69s",desktop:"_1yep5z69t"},defaultClass:"_1yep5z69r _1yep5z69s _1yep5z69t"},"3xl":{conditions:{mobile:"_1yep5z69u",tablet:"_1yep5z69v",desktop:"_1yep5z69w"},defaultClass:"_1yep5z69u _1yep5z69v _1yep5z69w"},"4xl":{conditions:{mobile:"_1yep5z69x",tablet:"_1yep5z69y",desktop:"_1yep5z69z"},defaultClass:"_1yep5z69x _1yep5z69y _1yep5z69z"},"5xl":{conditions:{mobile:"_1yep5z6a0",tablet:"_1yep5z6a1",desktop:"_1yep5z6a2"},defaultClass:"_1yep5z6a0 _1yep5z6a1 _1yep5z6a2"},"6xl":{conditions:{mobile:"_1yep5z6a3",tablet:"_1yep5z6a4",desktop:"_1yep5z6a5"},defaultClass:"_1yep5z6a3 _1yep5z6a4 _1yep5z6a5"},"7xl":{conditions:{mobile:"_1yep5z6a6",tablet:"_1yep5z6a7",desktop:"_1yep5z6a8"},defaultClass:"_1yep5z6a6 _1yep5z6a7 _1yep5z6a8"},"8xl":{conditions:{mobile:"_1yep5z6a9",tablet:"_1yep5z6aa",desktop:"_1yep5z6ab"},defaultClass:"_1yep5z6a9 _1yep5z6aa _1yep5z6ab"},"9xl":{conditions:{mobile:"_1yep5z6ac",tablet:"_1yep5z6ad",desktop:"_1yep5z6ae"},defaultClass:"_1yep5z6ac _1yep5z6ad _1yep5z6ae"},none:{conditions:{mobile:"_1yep5z6af",tablet:"_1yep5z6ag",desktop:"_1yep5z6ah"},defaultClass:"_1yep5z6af _1yep5z6ag _1yep5z6ah"}},responsiveArray:void 0}}}).styles.paddingBlockStart.responsiveArray=l.conditions.responsiveArray,l.styles.paddingInlineEnd.responsiveArray=l.conditions.responsiveArray,l.styles.paddingBlockEnd.responsiveArray=l.conditions.responsiveArray,l.styles.paddingInlineStart.responsiveArray=l.conditions.responsiveArray,l.styles.marginBlockStart.responsiveArray=l.conditions.responsiveArray,l.styles.marginInlineEnd.responsiveArray=l.conditions.responsiveArray,l.styles.marginBlockEnd.responsiveArray=l.conditions.responsiveArray,l.styles.marginInlineStart.responsiveArray=l.conditions.responsiveArray,l.styles.gap.responsiveArray=l.conditions.responsiveArray,l),function(){var e={conditions:{defaultCondition:["mobile","tablet","desktop"],conditionNames:["mobile","tablet","desktop"],responsiveArray:["mobile","tablet","desktop"]},styles:{borderRadius:{mappings:["borderStartStartRadius","borderStartEndRadius","borderEndStartRadius","borderEndEndRadius"]},borderTopRadius:{mappings:["borderStartStartRadius","borderStartEndRadius"]},borderBottomRadius:{mappings:["borderEndStartRadius","borderEndEndRadius"]},borderLeftRadius:{mappings:["borderStartStartRadius","borderEndStartRadius"]},borderRightRadius:{mappings:["borderStartEndRadius","borderEndEndRadius"]},borderStartStartRadius:{values:{xs:{conditions:{mobile:"_1yep5z6ai",tablet:"_1yep5z6aj",desktop:"_1yep5z6ak"},defaultClass:"_1yep5z6ai _1yep5z6aj _1yep5z6ak"},sm:{conditions:{mobile:"_1yep5z6al",tablet:"_1yep5z6am",desktop:"_1yep5z6an"},defaultClass:"_1yep5z6al _1yep5z6am _1yep5z6an"},md:{conditions:{mobile:"_1yep5z6ao",tablet:"_1yep5z6ap",desktop:"_1yep5z6aq"},defaultClass:"_1yep5z6ao _1yep5z6ap _1yep5z6aq"},lg:{conditions:{mobile:"_1yep5z6ar",tablet:"_1yep5z6as",desktop:"_1yep5z6at"},defaultClass:"_1yep5z6ar _1yep5z6as _1yep5z6at"},xl:{conditions:{mobile:"_1yep5z6au",tablet:"_1yep5z6av",desktop:"_1yep5z6aw"},defaultClass:"_1yep5z6au _1yep5z6av _1yep5z6aw"},"2xl":{conditions:{mobile:"_1yep5z6ax",tablet:"_1yep5z6ay",desktop:"_1yep5z6az"},defaultClass:"_1yep5z6ax _1yep5z6ay _1yep5z6az"},full:{conditions:{mobile:"_1yep5z6b0",tablet:"_1yep5z6b1",desktop:"_1yep5z6b2"},defaultClass:"_1yep5z6b0 _1yep5z6b1 _1yep5z6b2"},none:{conditions:{mobile:"_1yep5z6b3",tablet:"_1yep5z6b4",desktop:"_1yep5z6b5"},defaultClass:"_1yep5z6b3 _1yep5z6b4 _1yep5z6b5"}},responsiveArray:void 0},borderStartEndRadius:{values:{xs:{conditions:{mobile:"_1yep5z6b6",tablet:"_1yep5z6b7",desktop:"_1yep5z6b8"},defaultClass:"_1yep5z6b6 _1yep5z6b7 _1yep5z6b8"},sm:{conditions:{mobile:"_1yep5z6b9",tablet:"_1yep5z6ba",desktop:"_1yep5z6bb"},defaultClass:"_1yep5z6b9 _1yep5z6ba _1yep5z6bb"},md:{conditions:{mobile:"_1yep5z6bc",tablet:"_1yep5z6bd",desktop:"_1yep5z6be"},defaultClass:"_1yep5z6bc _1yep5z6bd _1yep5z6be"},lg:{conditions:{mobile:"_1yep5z6bf",tablet:"_1yep5z6bg",desktop:"_1yep5z6bh"},defaultClass:"_1yep5z6bf _1yep5z6bg _1yep5z6bh"},xl:{conditions:{mobile:"_1yep5z6bi",tablet:"_1yep5z6bj",desktop:"_1yep5z6bk"},defaultClass:"_1yep5z6bi _1yep5z6bj _1yep5z6bk"},"2xl":{conditions:{mobile:"_1yep5z6bl",tablet:"_1yep5z6bm",desktop:"_1yep5z6bn"},defaultClass:"_1yep5z6bl _1yep5z6bm _1yep5z6bn"},full:{conditions:{mobile:"_1yep5z6bo",tablet:"_1yep5z6bp",desktop:"_1yep5z6bq"},defaultClass:"_1yep5z6bo _1yep5z6bp _1yep5z6bq"},none:{conditions:{mobile:"_1yep5z6br",tablet:"_1yep5z6bs",desktop:"_1yep5z6bt"},defaultClass:"_1yep5z6br _1yep5z6bs _1yep5z6bt"}},responsiveArray:void 0},borderEndStartRadius:{values:{xs:{conditions:{mobile:"_1yep5z6bu",tablet:"_1yep5z6bv",desktop:"_1yep5z6bw"},defaultClass:"_1yep5z6bu _1yep5z6bv _1yep5z6bw"},sm:{conditions:{mobile:"_1yep5z6bx",tablet:"_1yep5z6by",desktop:"_1yep5z6bz"},defaultClass:"_1yep5z6bx _1yep5z6by _1yep5z6bz"},md:{conditions:{mobile:"_1yep5z6c0",tablet:"_1yep5z6c1",desktop:"_1yep5z6c2"},defaultClass:"_1yep5z6c0 _1yep5z6c1 _1yep5z6c2"},lg:{conditions:{mobile:"_1yep5z6c3",tablet:"_1yep5z6c4",desktop:"_1yep5z6c5"},defaultClass:"_1yep5z6c3 _1yep5z6c4 _1yep5z6c5"},xl:{conditions:{mobile:"_1yep5z6c6",tablet:"_1yep5z6c7",desktop:"_1yep5z6c8"},defaultClass:"_1yep5z6c6 _1yep5z6c7 _1yep5z6c8"},"2xl":{conditions:{mobile:"_1yep5z6c9",tablet:"_1yep5z6ca",desktop:"_1yep5z6cb"},defaultClass:"_1yep5z6c9 _1yep5z6ca _1yep5z6cb"},full:{conditions:{mobile:"_1yep5z6cc",tablet:"_1yep5z6cd",desktop:"_1yep5z6ce"},defaultClass:"_1yep5z6cc _1yep5z6cd _1yep5z6ce"},none:{conditions:{mobile:"_1yep5z6cf",tablet:"_1yep5z6cg",desktop:"_1yep5z6ch"},defaultClass:"_1yep5z6cf _1yep5z6cg _1yep5z6ch"}},responsiveArray:void 0},borderEndEndRadius:{values:{xs:{conditions:{mobile:"_1yep5z6ci",tablet:"_1yep5z6cj",desktop:"_1yep5z6ck"},defaultClass:"_1yep5z6ci _1yep5z6cj _1yep5z6ck"},sm:{conditions:{mobile:"_1yep5z6cl",tablet:"_1yep5z6cm",desktop:"_1yep5z6cn"},defaultClass:"_1yep5z6cl _1yep5z6cm _1yep5z6cn"},md:{conditions:{mobile:"_1yep5z6co",tablet:"_1yep5z6cp",desktop:"_1yep5z6cq"},defaultClass:"_1yep5z6co _1yep5z6cp _1yep5z6cq"},lg:{conditions:{mobile:"_1yep5z6cr",tablet:"_1yep5z6cs",desktop:"_1yep5z6ct"},defaultClass:"_1yep5z6cr _1yep5z6cs _1yep5z6ct"},xl:{conditions:{mobile:"_1yep5z6cu",tablet:"_1yep5z6cv",desktop:"_1yep5z6cw"},defaultClass:"_1yep5z6cu _1yep5z6cv _1yep5z6cw"},"2xl":{conditions:{mobile:"_1yep5z6cx",tablet:"_1yep5z6cy",desktop:"_1yep5z6cz"},defaultClass:"_1yep5z6cx _1yep5z6cy _1yep5z6cz"},full:{conditions:{mobile:"_1yep5z6d0",tablet:"_1yep5z6d1",desktop:"_1yep5z6d2"},defaultClass:"_1yep5z6d0 _1yep5z6d1 _1yep5z6d2"},none:{conditions:{mobile:"_1yep5z6d3",tablet:"_1yep5z6d4",desktop:"_1yep5z6d5"},defaultClass:"_1yep5z6d3 _1yep5z6d4 _1yep5z6d5"}},responsiveArray:void 0}}};return e.styles.borderStartStartRadius.responsiveArray=e.conditions.responsiveArray,e.styles.borderStartEndRadius.responsiveArray=e.conditions.responsiveArray,e.styles.borderEndStartRadius.responsiveArray=e.conditions.responsiveArray,e.styles.borderEndEndRadius.responsiveArray=e.conditions.responsiveArray,e}(),{conditions:void 0,styles:{boxShadow:{values:{low:{defaultClass:"_1yep5z6d6"},medium:{defaultClass:"_1yep5z6d7"}}}}},{conditions:void 0,styles:{opacity:{values:{none:{defaultClass:"_1yep5z6d8"},low:{defaultClass:"_1yep5z6d9"},medium:{defaultClass:"_1yep5z6da"},high:{defaultClass:"_1yep5z6db"}}}}},{conditions:void 0,styles:{typography:{values:{"heading.h6.regular":{defaultClass:"_1yep5z6dc"},"heading.h6.medium":{defaultClass:"_1yep5z6dd"},"heading.h6.semibold":{defaultClass:"_1yep5z6de"},"heading.h5.regular":{defaultClass:"_1yep5z6df"},"heading.h5.medium":{defaultClass:"_1yep5z6dg"},"heading.h5.semibold":{defaultClass:"_1yep5z6dh"},"heading.h4.regular":{defaultClass:"_1yep5z6di"},"heading.h4.medium":{defaultClass:"_1yep5z6dj"},"heading.h4.semibold":{defaultClass:"_1yep5z6dk"},"heading.h3.regular":{defaultClass:"_1yep5z6dl"},"heading.h3.medium":{defaultClass:"_1yep5z6dm"},"heading.h3.semibold":{defaultClass:"_1yep5z6dn"},"heading.h2.regular":{defaultClass:"_1yep5z6do"},"heading.h2.medium":{defaultClass:"_1yep5z6dp"},"heading.h2.semibold":{defaultClass:"_1yep5z6dq"},"heading.h1.regular":{defaultClass:"_1yep5z6dr"},"heading.h1.medium":{defaultClass:"_1yep5z6ds"},"heading.h1.semibold":{defaultClass:"_1yep5z6dt"},"label.sm.regular":{defaultClass:"_1yep5z6du"},"label.sm.medium":{defaultClass:"_1yep5z6dv"},"label.sm.semibold":{defaultClass:"_1yep5z6dw"},"label.md.regular":{defaultClass:"_1yep5z6dx"},"label.md.medium":{defaultClass:"_1yep5z6dy"},"label.md.semibold":{defaultClass:"_1yep5z6dz"},"label.lg.regular":{defaultClass:"_1yep5z6e0"},"label.lg.medium":{defaultClass:"_1yep5z6e1"},"label.lg.semibold":{defaultClass:"_1yep5z6e2"},"body.sm.regular":{defaultClass:"_1yep5z6e3"},"body.sm.medium":{defaultClass:"_1yep5z6e4"},"body.sm.semibold":{defaultClass:"_1yep5z6e5"},"body.md.regular":{defaultClass:"_1yep5z6e6"},"body.md.medium":{defaultClass:"_1yep5z6e7"},"body.md.semibold":{defaultClass:"_1yep5z6e8"},"body.lg.regular":{defaultClass:"_1yep5z6e9"},"body.lg.medium":{defaultClass:"_1yep5z6ea"},"body.lg.semibold":{defaultClass:"_1yep5z6eb"}}}}},{conditions:void 0,styles:{color:{values:{"support.error.subtler":{defaultClass:"_1yep5z6ec"},"support.error.subtle":{defaultClass:"_1yep5z6ed"},"support.error.medium":{defaultClass:"_1yep5z6ee"},"support.error.strong":{defaultClass:"_1yep5z6ef"},"support.success.subtler":{defaultClass:"_1yep5z6eg"},"support.success.subtle":{defaultClass:"_1yep5z6eh"},"support.success.medium":{defaultClass:"_1yep5z6ei"},"support.success.strong":{defaultClass:"_1yep5z6ej"},"support.warning.subtler":{defaultClass:"_1yep5z6ek"},"support.warning.subtle":{defaultClass:"_1yep5z6el"},"support.warning.medium":{defaultClass:"_1yep5z6em"},"support.warning.strong":{defaultClass:"_1yep5z6en"},"support.info.subtler":{defaultClass:"_1yep5z6eo"},"support.info.subtle":{defaultClass:"_1yep5z6ep"},"support.info.medium":{defaultClass:"_1yep5z6eq"},"support.info.strong":{defaultClass:"_1yep5z6er"},"focused.default":{defaultClass:"_1yep5z6es"},"focused.inset":{defaultClass:"_1yep5z6et"},"text.primary":{defaultClass:"_1yep5z6eu"},"text.secondary":{defaultClass:"_1yep5z6ev"},"text.helper":{defaultClass:"_1yep5z6ew"},"text.placeholder":{defaultClass:"_1yep5z6ex"},"text.interactive.disabled":{defaultClass:"_1yep5z6ey"},"text.inverse":{defaultClass:"_1yep5z6ez"},"text.oninteractive":{defaultClass:"_1yep5z6f0"},"text.interactive.enabled":{defaultClass:"_1yep5z6f1"},"text.interactive.hovered":{defaultClass:"_1yep5z6f2"},"text.interactive.active":{defaultClass:"_1yep5z6f3"},"text.interactive.visited":{defaultClass:"_1yep5z6f4"},"icon.primary":{defaultClass:"_1yep5z6f5"},"icon.secondary":{defaultClass:"_1yep5z6f6"},"icon.interactive.disabled":{defaultClass:"_1yep5z6f7"},"icon.inverse":{defaultClass:"_1yep5z6f8"},"icon.oninteractive":{defaultClass:"_1yep5z6f9"},"icon.interactive.enabled":{defaultClass:"_1yep5z6fa"},"icon.interactive.hovered":{defaultClass:"_1yep5z6fb"},"icon.interactive.active":{defaultClass:"_1yep5z6fc"},"icon.interactive.visited":{defaultClass:"_1yep5z6fd"},"background.interactive.enabled":{defaultClass:"_1yep5z6fe"},"background.interactive.hovered":{defaultClass:"_1yep5z6ff"},"background.interactive.active":{defaultClass:"_1yep5z6fg"},"background.interactive.visited":{defaultClass:"_1yep5z6fh"},"background.interactive.disabled":{defaultClass:"_1yep5z6fi"}}},backgroundColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z6fj"},"support.error.subtle":{defaultClass:"_1yep5z6fk"},"support.error.medium":{defaultClass:"_1yep5z6fl"},"support.error.strong":{defaultClass:"_1yep5z6fm"},"support.success.subtler":{defaultClass:"_1yep5z6fn"},"support.success.subtle":{defaultClass:"_1yep5z6fo"},"support.success.medium":{defaultClass:"_1yep5z6fp"},"support.success.strong":{defaultClass:"_1yep5z6fq"},"support.warning.subtler":{defaultClass:"_1yep5z6fr"},"support.warning.subtle":{defaultClass:"_1yep5z6fs"},"support.warning.medium":{defaultClass:"_1yep5z6ft"},"support.warning.strong":{defaultClass:"_1yep5z6fu"},"support.info.subtler":{defaultClass:"_1yep5z6fv"},"support.info.subtle":{defaultClass:"_1yep5z6fw"},"support.info.medium":{defaultClass:"_1yep5z6fx"},"support.info.strong":{defaultClass:"_1yep5z6fy"},"focused.default":{defaultClass:"_1yep5z6fz"},"focused.inset":{defaultClass:"_1yep5z6g0"},"background.primary.subtle":{defaultClass:"_1yep5z6g1"},"background.primary.medium":{defaultClass:"_1yep5z6g2"},"background.primary.strong":{defaultClass:"_1yep5z6g3"},"background.secondary.subtle":{defaultClass:"_1yep5z6g4"},"background.secondary.medium":{defaultClass:"_1yep5z6g5"},"background.secondary.strong":{defaultClass:"_1yep5z6g6"},"background.inverse.subtle":{defaultClass:"_1yep5z6g7"},"background.inverse.medium":{defaultClass:"_1yep5z6g8"},"background.inverse.strong":{defaultClass:"_1yep5z6g9"},"background.overlay.subtle":{defaultClass:"_1yep5z6ga"},"background.overlay.medium":{defaultClass:"_1yep5z6gb"},"background.positive.subtle":{defaultClass:"_1yep5z6gc"},"background.positive.medium":{defaultClass:"_1yep5z6gd"},"background.positive.strong":{defaultClass:"_1yep5z6ge"},"background.interactive.enabled":{defaultClass:"_1yep5z6gf"},"background.interactive.hovered":{defaultClass:"_1yep5z6gg"},"background.interactive.active":{defaultClass:"_1yep5z6gh"},"background.interactive.visited":{defaultClass:"_1yep5z6gi"},"background.interactive.disabled":{defaultClass:"_1yep5z6gj"},"border.positive.interactive.enabled":{defaultClass:"_1yep5z6gk"}}},borderColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z6gl"},"support.error.subtle":{defaultClass:"_1yep5z6gm"},"support.error.medium":{defaultClass:"_1yep5z6gn"},"support.error.strong":{defaultClass:"_1yep5z6go"},"support.success.subtler":{defaultClass:"_1yep5z6gp"},"support.success.subtle":{defaultClass:"_1yep5z6gq"},"support.success.medium":{defaultClass:"_1yep5z6gr"},"support.success.strong":{defaultClass:"_1yep5z6gs"},"support.warning.subtler":{defaultClass:"_1yep5z6gt"},"support.warning.subtle":{defaultClass:"_1yep5z6gu"},"support.warning.medium":{defaultClass:"_1yep5z6gv"},"support.warning.strong":{defaultClass:"_1yep5z6gw"},"support.info.subtler":{defaultClass:"_1yep5z6gx"},"support.info.subtle":{defaultClass:"_1yep5z6gy"},"support.info.medium":{defaultClass:"_1yep5z6gz"},"support.info.strong":{defaultClass:"_1yep5z6h0"},"focused.default":{defaultClass:"_1yep5z6h1"},"focused.inset":{defaultClass:"_1yep5z6h2"},"border.subtle":{defaultClass:"_1yep5z6h3"},"border.medium":{defaultClass:"_1yep5z6h4"},"border.strong":{defaultClass:"_1yep5z6h5"},"border.inverse":{defaultClass:"_1yep5z6h6"},"border.interactive.enabled":{defaultClass:"_1yep5z6h7"},"border.interactive.hovered":{defaultClass:"_1yep5z6h8"},"border.interactive.active":{defaultClass:"_1yep5z6h9"},"border.interactive.visited":{defaultClass:"_1yep5z6ha"},"border.interactive.disabled":{defaultClass:"_1yep5z6hb"},"border.positive.interactive.enabled":{defaultClass:"_1yep5z6hc"},"border.positive.medium":{defaultClass:"_1yep5z6hd"},"border.positive.strong":{defaultClass:"_1yep5z6he"},"border.positive.subtle":{defaultClass:"_1yep5z6hf"},transparent:{defaultClass:"_1yep5z6hg"}}},outlineColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z6hh"},"support.error.subtle":{defaultClass:"_1yep5z6hi"},"support.error.medium":{defaultClass:"_1yep5z6hj"},"support.error.strong":{defaultClass:"_1yep5z6hk"},"support.success.subtler":{defaultClass:"_1yep5z6hl"},"support.success.subtle":{defaultClass:"_1yep5z6hm"},"support.success.medium":{defaultClass:"_1yep5z6hn"},"support.success.strong":{defaultClass:"_1yep5z6ho"},"support.warning.subtler":{defaultClass:"_1yep5z6hp"},"support.warning.subtle":{defaultClass:"_1yep5z6hq"},"support.warning.medium":{defaultClass:"_1yep5z6hr"},"support.warning.strong":{defaultClass:"_1yep5z6hs"},"support.info.subtler":{defaultClass:"_1yep5z6ht"},"support.info.subtle":{defaultClass:"_1yep5z6hu"},"support.info.medium":{defaultClass:"_1yep5z6hv"},"support.info.strong":{defaultClass:"_1yep5z6hw"},"focused.default":{defaultClass:"_1yep5z6hx"},"focused.inset":{defaultClass:"_1yep5z6hy"},"border.subtle":{defaultClass:"_1yep5z6hz"},"border.medium":{defaultClass:"_1yep5z6i0"},"border.strong":{defaultClass:"_1yep5z6i1"},"border.inverse":{defaultClass:"_1yep5z6i2"},"border.interactive.enabled":{defaultClass:"_1yep5z6i3"},"border.interactive.hovered":{defaultClass:"_1yep5z6i4"},"border.interactive.active":{defaultClass:"_1yep5z6i5"},"border.interactive.visited":{defaultClass:"_1yep5z6i6"},"border.interactive.disabled":{defaultClass:"_1yep5z6i7"},"border.positive.interactive.enabled":{defaultClass:"_1yep5z6i8"},"border.positive.medium":{defaultClass:"_1yep5z6i9"},"border.positive.strong":{defaultClass:"_1yep5z6ia"},"border.positive.subtle":{defaultClass:"_1yep5z6ib"},transparent:{defaultClass:"_1yep5z6ic"}}}}},function(){var e={conditions:{defaultCondition:["mobile","tablet","desktop"],conditionNames:["mobile","tablet","desktop"],responsiveArray:["mobile","tablet","desktop"]},styles:{position:{values:{relative:{conditions:{mobile:"_1yep5z6id",tablet:"_1yep5z6ie",desktop:"_1yep5z6if"},defaultClass:"_1yep5z6id _1yep5z6ie _1yep5z6if"},absolute:{conditions:{mobile:"_1yep5z6ig",tablet:"_1yep5z6ih",desktop:"_1yep5z6ii"},defaultClass:"_1yep5z6ig _1yep5z6ih _1yep5z6ii"},fixed:{conditions:{mobile:"_1yep5z6ij",tablet:"_1yep5z6ik",desktop:"_1yep5z6il"},defaultClass:"_1yep5z6ij _1yep5z6ik _1yep5z6il"}},responsiveArray:void 0},display:{values:{none:{conditions:{mobile:"_1yep5z6im",tablet:"_1yep5z6in",desktop:"_1yep5z6io"},defaultClass:"_1yep5z6im _1yep5z6in _1yep5z6io"},block:{conditions:{mobile:"_1yep5z6ip",tablet:"_1yep5z6iq",desktop:"_1yep5z6ir"},defaultClass:"_1yep5z6ip _1yep5z6iq _1yep5z6ir"},flex:{conditions:{mobile:"_1yep5z6is",tablet:"_1yep5z6it",desktop:"_1yep5z6iu"},defaultClass:"_1yep5z6is _1yep5z6it _1yep5z6iu"},"inline-flex":{conditions:{mobile:"_1yep5z6iv",tablet:"_1yep5z6iw",desktop:"_1yep5z6ix"},defaultClass:"_1yep5z6iv _1yep5z6iw _1yep5z6ix"},grid:{conditions:{mobile:"_1yep5z6iy",tablet:"_1yep5z6iz",desktop:"_1yep5z6j0"},defaultClass:"_1yep5z6iy _1yep5z6iz _1yep5z6j0"}},responsiveArray:void 0},flexDirection:{values:{row:{conditions:{mobile:"_1yep5z6j1",tablet:"_1yep5z6j2",desktop:"_1yep5z6j3"},defaultClass:"_1yep5z6j1 _1yep5z6j2 _1yep5z6j3"},column:{conditions:{mobile:"_1yep5z6j4",tablet:"_1yep5z6j5",desktop:"_1yep5z6j6"},defaultClass:"_1yep5z6j4 _1yep5z6j5 _1yep5z6j6"},"row-reverse":{conditions:{mobile:"_1yep5z6j7",tablet:"_1yep5z6j8",desktop:"_1yep5z6j9"},defaultClass:"_1yep5z6j7 _1yep5z6j8 _1yep5z6j9"},"column-reverse":{conditions:{mobile:"_1yep5z6ja",tablet:"_1yep5z6jb",desktop:"_1yep5z6jc"},defaultClass:"_1yep5z6ja _1yep5z6jb _1yep5z6jc"}},responsiveArray:void 0},alignItems:{values:{stretch:{conditions:{mobile:"_1yep5z6jd",tablet:"_1yep5z6je",desktop:"_1yep5z6jf"},defaultClass:"_1yep5z6jd _1yep5z6je _1yep5z6jf"},"flex-start":{conditions:{mobile:"_1yep5z6jg",tablet:"_1yep5z6jh",desktop:"_1yep5z6ji"},defaultClass:"_1yep5z6jg _1yep5z6jh _1yep5z6ji"},center:{conditions:{mobile:"_1yep5z6jj",tablet:"_1yep5z6jk",desktop:"_1yep5z6jl"},defaultClass:"_1yep5z6jj _1yep5z6jk _1yep5z6jl"},"flex-end":{conditions:{mobile:"_1yep5z6jm",tablet:"_1yep5z6jn",desktop:"_1yep5z6jo"},defaultClass:"_1yep5z6jm _1yep5z6jn _1yep5z6jo"}},responsiveArray:void 0},alignSelf:{values:{stretch:{conditions:{mobile:"_1yep5z6jp",tablet:"_1yep5z6jq",desktop:"_1yep5z6jr"},defaultClass:"_1yep5z6jp _1yep5z6jq _1yep5z6jr"},"flex-start":{conditions:{mobile:"_1yep5z6js",tablet:"_1yep5z6jt",desktop:"_1yep5z6ju"},defaultClass:"_1yep5z6js _1yep5z6jt _1yep5z6ju"},center:{conditions:{mobile:"_1yep5z6jv",tablet:"_1yep5z6jw",desktop:"_1yep5z6jx"},defaultClass:"_1yep5z6jv _1yep5z6jw _1yep5z6jx"},"flex-end":{conditions:{mobile:"_1yep5z6jy",tablet:"_1yep5z6jz",desktop:"_1yep5z6k0"},defaultClass:"_1yep5z6jy _1yep5z6jz _1yep5z6k0"}},responsiveArray:void 0},flex:{values:{0:{conditions:{mobile:"_1yep5z6k1",tablet:"_1yep5z6k2",desktop:"_1yep5z6k3"},defaultClass:"_1yep5z6k1 _1yep5z6k2 _1yep5z6k3"},1:{conditions:{mobile:"_1yep5z6k4",tablet:"_1yep5z6k5",desktop:"_1yep5z6k6"},defaultClass:"_1yep5z6k4 _1yep5z6k5 _1yep5z6k6"}},responsiveArray:void 0},justifyContent:{values:{stretch:{conditions:{mobile:"_1yep5z6k7",tablet:"_1yep5z6k8",desktop:"_1yep5z6k9"},defaultClass:"_1yep5z6k7 _1yep5z6k8 _1yep5z6k9"},"flex-start":{conditions:{mobile:"_1yep5z6ka",tablet:"_1yep5z6kb",desktop:"_1yep5z6kc"},defaultClass:"_1yep5z6ka _1yep5z6kb _1yep5z6kc"},center:{conditions:{mobile:"_1yep5z6kd",tablet:"_1yep5z6ke",desktop:"_1yep5z6kf"},defaultClass:"_1yep5z6kd _1yep5z6ke _1yep5z6kf"},"flex-end":{conditions:{mobile:"_1yep5z6kg",tablet:"_1yep5z6kh",desktop:"_1yep5z6ki"},defaultClass:"_1yep5z6kg _1yep5z6kh _1yep5z6ki"},"space-between":{conditions:{mobile:"_1yep5z6kj",tablet:"_1yep5z6kk",desktop:"_1yep5z6kl"},defaultClass:"_1yep5z6kj _1yep5z6kk _1yep5z6kl"}},responsiveArray:void 0},justifySelf:{values:{stretch:{conditions:{mobile:"_1yep5z6km",tablet:"_1yep5z6kn",desktop:"_1yep5z6ko"},defaultClass:"_1yep5z6km _1yep5z6kn _1yep5z6ko"},"flex-start":{conditions:{mobile:"_1yep5z6kp",tablet:"_1yep5z6kq",desktop:"_1yep5z6kr"},defaultClass:"_1yep5z6kp _1yep5z6kq _1yep5z6kr"},center:{conditions:{mobile:"_1yep5z6ks",tablet:"_1yep5z6kt",desktop:"_1yep5z6ku"},defaultClass:"_1yep5z6ks _1yep5z6kt _1yep5z6ku"},"flex-end":{conditions:{mobile:"_1yep5z6kv",tablet:"_1yep5z6kw",desktop:"_1yep5z6kx"},defaultClass:"_1yep5z6kv _1yep5z6kw _1yep5z6kx"}},responsiveArray:void 0},placeItems:{values:{stretch:{conditions:{mobile:"_1yep5z6ky",tablet:"_1yep5z6kz",desktop:"_1yep5z6l0"},defaultClass:"_1yep5z6ky _1yep5z6kz _1yep5z6l0"},"flex-start":{conditions:{mobile:"_1yep5z6l1",tablet:"_1yep5z6l2",desktop:"_1yep5z6l3"},defaultClass:"_1yep5z6l1 _1yep5z6l2 _1yep5z6l3"},center:{conditions:{mobile:"_1yep5z6l4",tablet:"_1yep5z6l5",desktop:"_1yep5z6l6"},defaultClass:"_1yep5z6l4 _1yep5z6l5 _1yep5z6l6"},"flex-end":{conditions:{mobile:"_1yep5z6l7",tablet:"_1yep5z6l8",desktop:"_1yep5z6l9"},defaultClass:"_1yep5z6l7 _1yep5z6l8 _1yep5z6l9"}},responsiveArray:void 0}}};return e.styles.position.responsiveArray=e.conditions.responsiveArray,e.styles.display.responsiveArray=e.conditions.responsiveArray,e.styles.flexDirection.responsiveArray=e.conditions.responsiveArray,e.styles.alignItems.responsiveArray=e.conditions.responsiveArray,e.styles.alignSelf.responsiveArray=e.conditions.responsiveArray,e.styles.flex.responsiveArray=e.conditions.responsiveArray,e.styles.justifyContent.responsiveArray=e.conditions.responsiveArray,e.styles.justifySelf.responsiveArray=e.conditions.responsiveArray,e.styles.placeItems.responsiveArray=e.conditions.responsiveArray,e}(),{conditions:void 0,styles:{transition:{values:{"transition.medium":{defaultClass:"_1yep5z6la"}}},transitionProperty:{values:{transform:{defaultClass:"_1yep5z6lb"},opacity:{defaultClass:"_1yep5z6lc"},"background-color":{defaultClass:"_1yep5z6ld"}}}}},{conditions:void 0,styles:{inset:{mappings:["insetBlockStart","insetBlockEnd","insetInlineEnd","insetInlineStart"]},flexWrap:{values:{wrap:{defaultClass:"_1yep5z6le"},nowrap:{defaultClass:"_1yep5z6lf"}}},insetBlockStart:{values:{0:{defaultClass:"_1yep5z6lg"}}},insetBlockEnd:{values:{0:{defaultClass:"_1yep5z6lh"}}},insetInlineStart:{values:{0:{defaultClass:"_1yep5z6li"}}},insetInlineEnd:{values:{0:{defaultClass:"_1yep5z6lj"}}},flexShrink:{values:{0:{defaultClass:"_1yep5z6lk"}}},flexGrow:{values:{0:{defaultClass:"_1yep5z6ll"},1:{defaultClass:"_1yep5z6lm"}}},width:{values:{full:{defaultClass:"_1yep5z6ln"}}},height:{values:{full:{defaultClass:"_1yep5z6lo"}}},cursor:{values:{pointer:{defaultClass:"_1yep5z6lp"}}}}},{conditions:void 0,styles:{outline:{values:{none:{defaultClass:"_1yep5z6lq"}}},outlineStyle:{values:{solid:{defaultClass:"_1yep5z6lr"}}},outlineWidth:{values:{1:{defaultClass:"_1yep5z6ls"},2:{defaultClass:"_1yep5z6lt"}}},outlineOffset:{values:{1:{defaultClass:"_1yep5z6lw"},2:{defaultClass:"_1yep5z6lx"},"-2":{defaultClass:"_1yep5z6lu"},"-1":{defaultClass:"_1yep5z6lv"}}},border:{values:{none:{defaultClass:"_1yep5z6ly"}}},borderStyle:{values:{solid:{defaultClass:"_1yep5z6lz"},dashed:{defaultClass:"_1yep5z6m0"}}},borderWidth:{values:{1:{defaultClass:"_1yep5z6m1"},2:{defaultClass:"_1yep5z6m2"}}}}}),p=u(function(){var e={conditions:{defaultCondition:["mobile","tablet","desktop"],conditionNames:["mobile","tablet","desktop"],responsiveArray:["mobile","tablet","desktop"]},styles:{paddingLeft:{mappings:["paddingInlineStart"]},paddingRight:{mappings:["paddingInlineEnd"]},paddingTop:{mappings:["paddingBlockStart"]},paddingBottom:{mappings:["paddingBlockEnd"]},padding:{mappings:["paddingBlockStart","paddingBlockEnd","paddingInlineStart","paddingInlineEnd"]},paddingX:{mappings:["paddingInlineStart","paddingInlineEnd"]},paddingY:{mappings:["paddingBlockStart","paddingBlockEnd"]},marginLeft:{mappings:["marginInlineStart"]},marginRight:{mappings:["marginInlineEnd"]},marginTop:{mappings:["marginBlockStart"]},marginBottom:{mappings:["marginBlockEnd"]},margin:{mappings:["marginBlockStart","marginBlockEnd","marginInlineStart","marginInlineEnd"]},marginX:{mappings:["marginInlineStart","marginInlineEnd"]},marginY:{mappings:["marginBlockStart","marginBlockEnd"]},paddingBlockStart:{values:{xs:{conditions:{mobile:"_1yep5z6186",tablet:"_1yep5z6187",desktop:"_1yep5z6188"},defaultClass:"_1yep5z6186 _1yep5z6187 _1yep5z6188"},sm:{conditions:{mobile:"_1yep5z6189",tablet:"_1yep5z618a",desktop:"_1yep5z618b"},defaultClass:"_1yep5z6189 _1yep5z618a _1yep5z618b"},md:{conditions:{mobile:"_1yep5z618c",tablet:"_1yep5z618d",desktop:"_1yep5z618e"},defaultClass:"_1yep5z618c _1yep5z618d _1yep5z618e"},lg:{conditions:{mobile:"_1yep5z618f",tablet:"_1yep5z618g",desktop:"_1yep5z618h"},defaultClass:"_1yep5z618f _1yep5z618g _1yep5z618h"},xl:{conditions:{mobile:"_1yep5z618i",tablet:"_1yep5z618j",desktop:"_1yep5z618k"},defaultClass:"_1yep5z618i _1yep5z618j _1yep5z618k"},"2xl":{conditions:{mobile:"_1yep5z618l",tablet:"_1yep5z618m",desktop:"_1yep5z618n"},defaultClass:"_1yep5z618l _1yep5z618m _1yep5z618n"},"3xl":{conditions:{mobile:"_1yep5z618o",tablet:"_1yep5z618p",desktop:"_1yep5z618q"},defaultClass:"_1yep5z618o _1yep5z618p _1yep5z618q"},"4xl":{conditions:{mobile:"_1yep5z618r",tablet:"_1yep5z618s",desktop:"_1yep5z618t"},defaultClass:"_1yep5z618r _1yep5z618s _1yep5z618t"},"5xl":{conditions:{mobile:"_1yep5z618u",tablet:"_1yep5z618v",desktop:"_1yep5z618w"},defaultClass:"_1yep5z618u _1yep5z618v _1yep5z618w"},"6xl":{conditions:{mobile:"_1yep5z618x",tablet:"_1yep5z618y",desktop:"_1yep5z618z"},defaultClass:"_1yep5z618x _1yep5z618y _1yep5z618z"},"7xl":{conditions:{mobile:"_1yep5z6190",tablet:"_1yep5z6191",desktop:"_1yep5z6192"},defaultClass:"_1yep5z6190 _1yep5z6191 _1yep5z6192"},"8xl":{conditions:{mobile:"_1yep5z6193",tablet:"_1yep5z6194",desktop:"_1yep5z6195"},defaultClass:"_1yep5z6193 _1yep5z6194 _1yep5z6195"},"9xl":{conditions:{mobile:"_1yep5z6196",tablet:"_1yep5z6197",desktop:"_1yep5z6198"},defaultClass:"_1yep5z6196 _1yep5z6197 _1yep5z6198"},none:{conditions:{mobile:"_1yep5z6199",tablet:"_1yep5z619a",desktop:"_1yep5z619b"},defaultClass:"_1yep5z6199 _1yep5z619a _1yep5z619b"}},responsiveArray:void 0},paddingInlineEnd:{values:{xs:{conditions:{mobile:"_1yep5z619c",tablet:"_1yep5z619d",desktop:"_1yep5z619e"},defaultClass:"_1yep5z619c _1yep5z619d _1yep5z619e"},sm:{conditions:{mobile:"_1yep5z619f",tablet:"_1yep5z619g",desktop:"_1yep5z619h"},defaultClass:"_1yep5z619f _1yep5z619g _1yep5z619h"},md:{conditions:{mobile:"_1yep5z619i",tablet:"_1yep5z619j",desktop:"_1yep5z619k"},defaultClass:"_1yep5z619i _1yep5z619j _1yep5z619k"},lg:{conditions:{mobile:"_1yep5z619l",tablet:"_1yep5z619m",desktop:"_1yep5z619n"},defaultClass:"_1yep5z619l _1yep5z619m _1yep5z619n"},xl:{conditions:{mobile:"_1yep5z619o",tablet:"_1yep5z619p",desktop:"_1yep5z619q"},defaultClass:"_1yep5z619o _1yep5z619p _1yep5z619q"},"2xl":{conditions:{mobile:"_1yep5z619r",tablet:"_1yep5z619s",desktop:"_1yep5z619t"},defaultClass:"_1yep5z619r _1yep5z619s _1yep5z619t"},"3xl":{conditions:{mobile:"_1yep5z619u",tablet:"_1yep5z619v",desktop:"_1yep5z619w"},defaultClass:"_1yep5z619u _1yep5z619v _1yep5z619w"},"4xl":{conditions:{mobile:"_1yep5z619x",tablet:"_1yep5z619y",desktop:"_1yep5z619z"},defaultClass:"_1yep5z619x _1yep5z619y _1yep5z619z"},"5xl":{conditions:{mobile:"_1yep5z61a0",tablet:"_1yep5z61a1",desktop:"_1yep5z61a2"},defaultClass:"_1yep5z61a0 _1yep5z61a1 _1yep5z61a2"},"6xl":{conditions:{mobile:"_1yep5z61a3",tablet:"_1yep5z61a4",desktop:"_1yep5z61a5"},defaultClass:"_1yep5z61a3 _1yep5z61a4 _1yep5z61a5"},"7xl":{conditions:{mobile:"_1yep5z61a6",tablet:"_1yep5z61a7",desktop:"_1yep5z61a8"},defaultClass:"_1yep5z61a6 _1yep5z61a7 _1yep5z61a8"},"8xl":{conditions:{mobile:"_1yep5z61a9",tablet:"_1yep5z61aa",desktop:"_1yep5z61ab"},defaultClass:"_1yep5z61a9 _1yep5z61aa _1yep5z61ab"},"9xl":{conditions:{mobile:"_1yep5z61ac",tablet:"_1yep5z61ad",desktop:"_1yep5z61ae"},defaultClass:"_1yep5z61ac _1yep5z61ad _1yep5z61ae"},none:{conditions:{mobile:"_1yep5z61af",tablet:"_1yep5z61ag",desktop:"_1yep5z61ah"},defaultClass:"_1yep5z61af _1yep5z61ag _1yep5z61ah"}},responsiveArray:void 0},paddingBlockEnd:{values:{xs:{conditions:{mobile:"_1yep5z61ai",tablet:"_1yep5z61aj",desktop:"_1yep5z61ak"},defaultClass:"_1yep5z61ai _1yep5z61aj _1yep5z61ak"},sm:{conditions:{mobile:"_1yep5z61al",tablet:"_1yep5z61am",desktop:"_1yep5z61an"},defaultClass:"_1yep5z61al _1yep5z61am _1yep5z61an"},md:{conditions:{mobile:"_1yep5z61ao",tablet:"_1yep5z61ap",desktop:"_1yep5z61aq"},defaultClass:"_1yep5z61ao _1yep5z61ap _1yep5z61aq"},lg:{conditions:{mobile:"_1yep5z61ar",tablet:"_1yep5z61as",desktop:"_1yep5z61at"},defaultClass:"_1yep5z61ar _1yep5z61as _1yep5z61at"},xl:{conditions:{mobile:"_1yep5z61au",tablet:"_1yep5z61av",desktop:"_1yep5z61aw"},defaultClass:"_1yep5z61au _1yep5z61av _1yep5z61aw"},"2xl":{conditions:{mobile:"_1yep5z61ax",tablet:"_1yep5z61ay",desktop:"_1yep5z61az"},defaultClass:"_1yep5z61ax _1yep5z61ay _1yep5z61az"},"3xl":{conditions:{mobile:"_1yep5z61b0",tablet:"_1yep5z61b1",desktop:"_1yep5z61b2"},defaultClass:"_1yep5z61b0 _1yep5z61b1 _1yep5z61b2"},"4xl":{conditions:{mobile:"_1yep5z61b3",tablet:"_1yep5z61b4",desktop:"_1yep5z61b5"},defaultClass:"_1yep5z61b3 _1yep5z61b4 _1yep5z61b5"},"5xl":{conditions:{mobile:"_1yep5z61b6",tablet:"_1yep5z61b7",desktop:"_1yep5z61b8"},defaultClass:"_1yep5z61b6 _1yep5z61b7 _1yep5z61b8"},"6xl":{conditions:{mobile:"_1yep5z61b9",tablet:"_1yep5z61ba",desktop:"_1yep5z61bb"},defaultClass:"_1yep5z61b9 _1yep5z61ba _1yep5z61bb"},"7xl":{conditions:{mobile:"_1yep5z61bc",tablet:"_1yep5z61bd",desktop:"_1yep5z61be"},defaultClass:"_1yep5z61bc _1yep5z61bd _1yep5z61be"},"8xl":{conditions:{mobile:"_1yep5z61bf",tablet:"_1yep5z61bg",desktop:"_1yep5z61bh"},defaultClass:"_1yep5z61bf _1yep5z61bg _1yep5z61bh"},"9xl":{conditions:{mobile:"_1yep5z61bi",tablet:"_1yep5z61bj",desktop:"_1yep5z61bk"},defaultClass:"_1yep5z61bi _1yep5z61bj _1yep5z61bk"},none:{conditions:{mobile:"_1yep5z61bl",tablet:"_1yep5z61bm",desktop:"_1yep5z61bn"},defaultClass:"_1yep5z61bl _1yep5z61bm _1yep5z61bn"}},responsiveArray:void 0},paddingInlineStart:{values:{xs:{conditions:{mobile:"_1yep5z61bo",tablet:"_1yep5z61bp",desktop:"_1yep5z61bq"},defaultClass:"_1yep5z61bo _1yep5z61bp _1yep5z61bq"},sm:{conditions:{mobile:"_1yep5z61br",tablet:"_1yep5z61bs",desktop:"_1yep5z61bt"},defaultClass:"_1yep5z61br _1yep5z61bs _1yep5z61bt"},md:{conditions:{mobile:"_1yep5z61bu",tablet:"_1yep5z61bv",desktop:"_1yep5z61bw"},defaultClass:"_1yep5z61bu _1yep5z61bv _1yep5z61bw"},lg:{conditions:{mobile:"_1yep5z61bx",tablet:"_1yep5z61by",desktop:"_1yep5z61bz"},defaultClass:"_1yep5z61bx _1yep5z61by _1yep5z61bz"},xl:{conditions:{mobile:"_1yep5z61c0",tablet:"_1yep5z61c1",desktop:"_1yep5z61c2"},defaultClass:"_1yep5z61c0 _1yep5z61c1 _1yep5z61c2"},"2xl":{conditions:{mobile:"_1yep5z61c3",tablet:"_1yep5z61c4",desktop:"_1yep5z61c5"},defaultClass:"_1yep5z61c3 _1yep5z61c4 _1yep5z61c5"},"3xl":{conditions:{mobile:"_1yep5z61c6",tablet:"_1yep5z61c7",desktop:"_1yep5z61c8"},defaultClass:"_1yep5z61c6 _1yep5z61c7 _1yep5z61c8"},"4xl":{conditions:{mobile:"_1yep5z61c9",tablet:"_1yep5z61ca",desktop:"_1yep5z61cb"},defaultClass:"_1yep5z61c9 _1yep5z61ca _1yep5z61cb"},"5xl":{conditions:{mobile:"_1yep5z61cc",tablet:"_1yep5z61cd",desktop:"_1yep5z61ce"},defaultClass:"_1yep5z61cc _1yep5z61cd _1yep5z61ce"},"6xl":{conditions:{mobile:"_1yep5z61cf",tablet:"_1yep5z61cg",desktop:"_1yep5z61ch"},defaultClass:"_1yep5z61cf _1yep5z61cg _1yep5z61ch"},"7xl":{conditions:{mobile:"_1yep5z61ci",tablet:"_1yep5z61cj",desktop:"_1yep5z61ck"},defaultClass:"_1yep5z61ci _1yep5z61cj _1yep5z61ck"},"8xl":{conditions:{mobile:"_1yep5z61cl",tablet:"_1yep5z61cm",desktop:"_1yep5z61cn"},defaultClass:"_1yep5z61cl _1yep5z61cm _1yep5z61cn"},"9xl":{conditions:{mobile:"_1yep5z61co",tablet:"_1yep5z61cp",desktop:"_1yep5z61cq"},defaultClass:"_1yep5z61co _1yep5z61cp _1yep5z61cq"},none:{conditions:{mobile:"_1yep5z61cr",tablet:"_1yep5z61cs",desktop:"_1yep5z61ct"},defaultClass:"_1yep5z61cr _1yep5z61cs _1yep5z61ct"}},responsiveArray:void 0},marginBlockStart:{values:{xs:{conditions:{mobile:"_1yep5z61cu",tablet:"_1yep5z61cv",desktop:"_1yep5z61cw"},defaultClass:"_1yep5z61cu _1yep5z61cv _1yep5z61cw"},sm:{conditions:{mobile:"_1yep5z61cx",tablet:"_1yep5z61cy",desktop:"_1yep5z61cz"},defaultClass:"_1yep5z61cx _1yep5z61cy _1yep5z61cz"},md:{conditions:{mobile:"_1yep5z61d0",tablet:"_1yep5z61d1",desktop:"_1yep5z61d2"},defaultClass:"_1yep5z61d0 _1yep5z61d1 _1yep5z61d2"},lg:{conditions:{mobile:"_1yep5z61d3",tablet:"_1yep5z61d4",desktop:"_1yep5z61d5"},defaultClass:"_1yep5z61d3 _1yep5z61d4 _1yep5z61d5"},xl:{conditions:{mobile:"_1yep5z61d6",tablet:"_1yep5z61d7",desktop:"_1yep5z61d8"},defaultClass:"_1yep5z61d6 _1yep5z61d7 _1yep5z61d8"},"2xl":{conditions:{mobile:"_1yep5z61d9",tablet:"_1yep5z61da",desktop:"_1yep5z61db"},defaultClass:"_1yep5z61d9 _1yep5z61da _1yep5z61db"},"3xl":{conditions:{mobile:"_1yep5z61dc",tablet:"_1yep5z61dd",desktop:"_1yep5z61de"},defaultClass:"_1yep5z61dc _1yep5z61dd _1yep5z61de"},"4xl":{conditions:{mobile:"_1yep5z61df",tablet:"_1yep5z61dg",desktop:"_1yep5z61dh"},defaultClass:"_1yep5z61df _1yep5z61dg _1yep5z61dh"},"5xl":{conditions:{mobile:"_1yep5z61di",tablet:"_1yep5z61dj",desktop:"_1yep5z61dk"},defaultClass:"_1yep5z61di _1yep5z61dj _1yep5z61dk"},"6xl":{conditions:{mobile:"_1yep5z61dl",tablet:"_1yep5z61dm",desktop:"_1yep5z61dn"},defaultClass:"_1yep5z61dl _1yep5z61dm _1yep5z61dn"},"7xl":{conditions:{mobile:"_1yep5z61do",tablet:"_1yep5z61dp",desktop:"_1yep5z61dq"},defaultClass:"_1yep5z61do _1yep5z61dp _1yep5z61dq"},"8xl":{conditions:{mobile:"_1yep5z61dr",tablet:"_1yep5z61ds",desktop:"_1yep5z61dt"},defaultClass:"_1yep5z61dr _1yep5z61ds _1yep5z61dt"},"9xl":{conditions:{mobile:"_1yep5z61du",tablet:"_1yep5z61dv",desktop:"_1yep5z61dw"},defaultClass:"_1yep5z61du _1yep5z61dv _1yep5z61dw"},none:{conditions:{mobile:"_1yep5z61dx",tablet:"_1yep5z61dy",desktop:"_1yep5z61dz"},defaultClass:"_1yep5z61dx _1yep5z61dy _1yep5z61dz"}},responsiveArray:void 0},marginInlineEnd:{values:{xs:{conditions:{mobile:"_1yep5z61e0",tablet:"_1yep5z61e1",desktop:"_1yep5z61e2"},defaultClass:"_1yep5z61e0 _1yep5z61e1 _1yep5z61e2"},sm:{conditions:{mobile:"_1yep5z61e3",tablet:"_1yep5z61e4",desktop:"_1yep5z61e5"},defaultClass:"_1yep5z61e3 _1yep5z61e4 _1yep5z61e5"},md:{conditions:{mobile:"_1yep5z61e6",tablet:"_1yep5z61e7",desktop:"_1yep5z61e8"},defaultClass:"_1yep5z61e6 _1yep5z61e7 _1yep5z61e8"},lg:{conditions:{mobile:"_1yep5z61e9",tablet:"_1yep5z61ea",desktop:"_1yep5z61eb"},defaultClass:"_1yep5z61e9 _1yep5z61ea _1yep5z61eb"},xl:{conditions:{mobile:"_1yep5z61ec",tablet:"_1yep5z61ed",desktop:"_1yep5z61ee"},defaultClass:"_1yep5z61ec _1yep5z61ed _1yep5z61ee"},"2xl":{conditions:{mobile:"_1yep5z61ef",tablet:"_1yep5z61eg",desktop:"_1yep5z61eh"},defaultClass:"_1yep5z61ef _1yep5z61eg _1yep5z61eh"},"3xl":{conditions:{mobile:"_1yep5z61ei",tablet:"_1yep5z61ej",desktop:"_1yep5z61ek"},defaultClass:"_1yep5z61ei _1yep5z61ej _1yep5z61ek"},"4xl":{conditions:{mobile:"_1yep5z61el",tablet:"_1yep5z61em",desktop:"_1yep5z61en"},defaultClass:"_1yep5z61el _1yep5z61em _1yep5z61en"},"5xl":{conditions:{mobile:"_1yep5z61eo",tablet:"_1yep5z61ep",desktop:"_1yep5z61eq"},defaultClass:"_1yep5z61eo _1yep5z61ep _1yep5z61eq"},"6xl":{conditions:{mobile:"_1yep5z61er",tablet:"_1yep5z61es",desktop:"_1yep5z61et"},defaultClass:"_1yep5z61er _1yep5z61es _1yep5z61et"},"7xl":{conditions:{mobile:"_1yep5z61eu",tablet:"_1yep5z61ev",desktop:"_1yep5z61ew"},defaultClass:"_1yep5z61eu _1yep5z61ev _1yep5z61ew"},"8xl":{conditions:{mobile:"_1yep5z61ex",tablet:"_1yep5z61ey",desktop:"_1yep5z61ez"},defaultClass:"_1yep5z61ex _1yep5z61ey _1yep5z61ez"},"9xl":{conditions:{mobile:"_1yep5z61f0",tablet:"_1yep5z61f1",desktop:"_1yep5z61f2"},defaultClass:"_1yep5z61f0 _1yep5z61f1 _1yep5z61f2"},none:{conditions:{mobile:"_1yep5z61f3",tablet:"_1yep5z61f4",desktop:"_1yep5z61f5"},defaultClass:"_1yep5z61f3 _1yep5z61f4 _1yep5z61f5"}},responsiveArray:void 0},marginBlockEnd:{values:{xs:{conditions:{mobile:"_1yep5z61f6",tablet:"_1yep5z61f7",desktop:"_1yep5z61f8"},defaultClass:"_1yep5z61f6 _1yep5z61f7 _1yep5z61f8"},sm:{conditions:{mobile:"_1yep5z61f9",tablet:"_1yep5z61fa",desktop:"_1yep5z61fb"},defaultClass:"_1yep5z61f9 _1yep5z61fa _1yep5z61fb"},md:{conditions:{mobile:"_1yep5z61fc",tablet:"_1yep5z61fd",desktop:"_1yep5z61fe"},defaultClass:"_1yep5z61fc _1yep5z61fd _1yep5z61fe"},lg:{conditions:{mobile:"_1yep5z61ff",tablet:"_1yep5z61fg",desktop:"_1yep5z61fh"},defaultClass:"_1yep5z61ff _1yep5z61fg _1yep5z61fh"},xl:{conditions:{mobile:"_1yep5z61fi",tablet:"_1yep5z61fj",desktop:"_1yep5z61fk"},defaultClass:"_1yep5z61fi _1yep5z61fj _1yep5z61fk"},"2xl":{conditions:{mobile:"_1yep5z61fl",tablet:"_1yep5z61fm",desktop:"_1yep5z61fn"},defaultClass:"_1yep5z61fl _1yep5z61fm _1yep5z61fn"},"3xl":{conditions:{mobile:"_1yep5z61fo",tablet:"_1yep5z61fp",desktop:"_1yep5z61fq"},defaultClass:"_1yep5z61fo _1yep5z61fp _1yep5z61fq"},"4xl":{conditions:{mobile:"_1yep5z61fr",tablet:"_1yep5z61fs",desktop:"_1yep5z61ft"},defaultClass:"_1yep5z61fr _1yep5z61fs _1yep5z61ft"},"5xl":{conditions:{mobile:"_1yep5z61fu",tablet:"_1yep5z61fv",desktop:"_1yep5z61fw"},defaultClass:"_1yep5z61fu _1yep5z61fv _1yep5z61fw"},"6xl":{conditions:{mobile:"_1yep5z61fx",tablet:"_1yep5z61fy",desktop:"_1yep5z61fz"},defaultClass:"_1yep5z61fx _1yep5z61fy _1yep5z61fz"},"7xl":{conditions:{mobile:"_1yep5z61g0",tablet:"_1yep5z61g1",desktop:"_1yep5z61g2"},defaultClass:"_1yep5z61g0 _1yep5z61g1 _1yep5z61g2"},"8xl":{conditions:{mobile:"_1yep5z61g3",tablet:"_1yep5z61g4",desktop:"_1yep5z61g5"},defaultClass:"_1yep5z61g3 _1yep5z61g4 _1yep5z61g5"},"9xl":{conditions:{mobile:"_1yep5z61g6",tablet:"_1yep5z61g7",desktop:"_1yep5z61g8"},defaultClass:"_1yep5z61g6 _1yep5z61g7 _1yep5z61g8"},none:{conditions:{mobile:"_1yep5z61g9",tablet:"_1yep5z61ga",desktop:"_1yep5z61gb"},defaultClass:"_1yep5z61g9 _1yep5z61ga _1yep5z61gb"}},responsiveArray:void 0},marginInlineStart:{values:{xs:{conditions:{mobile:"_1yep5z61gc",tablet:"_1yep5z61gd",desktop:"_1yep5z61ge"},defaultClass:"_1yep5z61gc _1yep5z61gd _1yep5z61ge"},sm:{conditions:{mobile:"_1yep5z61gf",tablet:"_1yep5z61gg",desktop:"_1yep5z61gh"},defaultClass:"_1yep5z61gf _1yep5z61gg _1yep5z61gh"},md:{conditions:{mobile:"_1yep5z61gi",tablet:"_1yep5z61gj",desktop:"_1yep5z61gk"},defaultClass:"_1yep5z61gi _1yep5z61gj _1yep5z61gk"},lg:{conditions:{mobile:"_1yep5z61gl",tablet:"_1yep5z61gm",desktop:"_1yep5z61gn"},defaultClass:"_1yep5z61gl _1yep5z61gm _1yep5z61gn"},xl:{conditions:{mobile:"_1yep5z61go",tablet:"_1yep5z61gp",desktop:"_1yep5z61gq"},defaultClass:"_1yep5z61go _1yep5z61gp _1yep5z61gq"},"2xl":{conditions:{mobile:"_1yep5z61gr",tablet:"_1yep5z61gs",desktop:"_1yep5z61gt"},defaultClass:"_1yep5z61gr _1yep5z61gs _1yep5z61gt"},"3xl":{conditions:{mobile:"_1yep5z61gu",tablet:"_1yep5z61gv",desktop:"_1yep5z61gw"},defaultClass:"_1yep5z61gu _1yep5z61gv _1yep5z61gw"},"4xl":{conditions:{mobile:"_1yep5z61gx",tablet:"_1yep5z61gy",desktop:"_1yep5z61gz"},defaultClass:"_1yep5z61gx _1yep5z61gy _1yep5z61gz"},"5xl":{conditions:{mobile:"_1yep5z61h0",tablet:"_1yep5z61h1",desktop:"_1yep5z61h2"},defaultClass:"_1yep5z61h0 _1yep5z61h1 _1yep5z61h2"},"6xl":{conditions:{mobile:"_1yep5z61h3",tablet:"_1yep5z61h4",desktop:"_1yep5z61h5"},defaultClass:"_1yep5z61h3 _1yep5z61h4 _1yep5z61h5"},"7xl":{conditions:{mobile:"_1yep5z61h6",tablet:"_1yep5z61h7",desktop:"_1yep5z61h8"},defaultClass:"_1yep5z61h6 _1yep5z61h7 _1yep5z61h8"},"8xl":{conditions:{mobile:"_1yep5z61h9",tablet:"_1yep5z61ha",desktop:"_1yep5z61hb"},defaultClass:"_1yep5z61h9 _1yep5z61ha _1yep5z61hb"},"9xl":{conditions:{mobile:"_1yep5z61hc",tablet:"_1yep5z61hd",desktop:"_1yep5z61he"},defaultClass:"_1yep5z61hc _1yep5z61hd _1yep5z61he"},none:{conditions:{mobile:"_1yep5z61hf",tablet:"_1yep5z61hg",desktop:"_1yep5z61hh"},defaultClass:"_1yep5z61hf _1yep5z61hg _1yep5z61hh"}},responsiveArray:void 0},gap:{values:{xs:{conditions:{mobile:"_1yep5z61hi",tablet:"_1yep5z61hj",desktop:"_1yep5z61hk"},defaultClass:"_1yep5z61hi _1yep5z61hj _1yep5z61hk"},sm:{conditions:{mobile:"_1yep5z61hl",tablet:"_1yep5z61hm",desktop:"_1yep5z61hn"},defaultClass:"_1yep5z61hl _1yep5z61hm _1yep5z61hn"},md:{conditions:{mobile:"_1yep5z61ho",tablet:"_1yep5z61hp",desktop:"_1yep5z61hq"},defaultClass:"_1yep5z61ho _1yep5z61hp _1yep5z61hq"},lg:{conditions:{mobile:"_1yep5z61hr",tablet:"_1yep5z61hs",desktop:"_1yep5z61ht"},defaultClass:"_1yep5z61hr _1yep5z61hs _1yep5z61ht"},xl:{conditions:{mobile:"_1yep5z61hu",tablet:"_1yep5z61hv",desktop:"_1yep5z61hw"},defaultClass:"_1yep5z61hu _1yep5z61hv _1yep5z61hw"},"2xl":{conditions:{mobile:"_1yep5z61hx",tablet:"_1yep5z61hy",desktop:"_1yep5z61hz"},defaultClass:"_1yep5z61hx _1yep5z61hy _1yep5z61hz"},"3xl":{conditions:{mobile:"_1yep5z61i0",tablet:"_1yep5z61i1",desktop:"_1yep5z61i2"},defaultClass:"_1yep5z61i0 _1yep5z61i1 _1yep5z61i2"},"4xl":{conditions:{mobile:"_1yep5z61i3",tablet:"_1yep5z61i4",desktop:"_1yep5z61i5"},defaultClass:"_1yep5z61i3 _1yep5z61i4 _1yep5z61i5"},"5xl":{conditions:{mobile:"_1yep5z61i6",tablet:"_1yep5z61i7",desktop:"_1yep5z61i8"},defaultClass:"_1yep5z61i6 _1yep5z61i7 _1yep5z61i8"},"6xl":{conditions:{mobile:"_1yep5z61i9",tablet:"_1yep5z61ia",desktop:"_1yep5z61ib"},defaultClass:"_1yep5z61i9 _1yep5z61ia _1yep5z61ib"},"7xl":{conditions:{mobile:"_1yep5z61ic",tablet:"_1yep5z61id",desktop:"_1yep5z61ie"},defaultClass:"_1yep5z61ic _1yep5z61id _1yep5z61ie"},"8xl":{conditions:{mobile:"_1yep5z61if",tablet:"_1yep5z61ig",desktop:"_1yep5z61ih"},defaultClass:"_1yep5z61if _1yep5z61ig _1yep5z61ih"},"9xl":{conditions:{mobile:"_1yep5z61ii",tablet:"_1yep5z61ij",desktop:"_1yep5z61ik"},defaultClass:"_1yep5z61ii _1yep5z61ij _1yep5z61ik"},none:{conditions:{mobile:"_1yep5z61il",tablet:"_1yep5z61im",desktop:"_1yep5z61in"},defaultClass:"_1yep5z61il _1yep5z61im _1yep5z61in"}},responsiveArray:void 0}}};return e.styles.paddingBlockStart.responsiveArray=e.conditions.responsiveArray,e.styles.paddingInlineEnd.responsiveArray=e.conditions.responsiveArray,e.styles.paddingBlockEnd.responsiveArray=e.conditions.responsiveArray,e.styles.paddingInlineStart.responsiveArray=e.conditions.responsiveArray,e.styles.marginBlockStart.responsiveArray=e.conditions.responsiveArray,e.styles.marginInlineEnd.responsiveArray=e.conditions.responsiveArray,e.styles.marginBlockEnd.responsiveArray=e.conditions.responsiveArray,e.styles.marginInlineStart.responsiveArray=e.conditions.responsiveArray,e.styles.gap.responsiveArray=e.conditions.responsiveArray,e}(),function(){var e={conditions:{defaultCondition:["mobile","tablet","desktop"],conditionNames:["mobile","tablet","desktop"],responsiveArray:["mobile","tablet","desktop"]},styles:{borderRadius:{mappings:["borderStartStartRadius","borderStartEndRadius","borderEndStartRadius","borderEndEndRadius"]},borderTopRadius:{mappings:["borderStartStartRadius","borderStartEndRadius"]},borderBottomRadius:{mappings:["borderEndStartRadius","borderEndEndRadius"]},borderLeftRadius:{mappings:["borderStartStartRadius","borderEndStartRadius"]},borderRightRadius:{mappings:["borderStartEndRadius","borderEndEndRadius"]},borderStartStartRadius:{values:{xs:{conditions:{mobile:"_1yep5z61io",tablet:"_1yep5z61ip",desktop:"_1yep5z61iq"},defaultClass:"_1yep5z61io _1yep5z61ip _1yep5z61iq"},sm:{conditions:{mobile:"_1yep5z61ir",tablet:"_1yep5z61is",desktop:"_1yep5z61it"},defaultClass:"_1yep5z61ir _1yep5z61is _1yep5z61it"},md:{conditions:{mobile:"_1yep5z61iu",tablet:"_1yep5z61iv",desktop:"_1yep5z61iw"},defaultClass:"_1yep5z61iu _1yep5z61iv _1yep5z61iw"},lg:{conditions:{mobile:"_1yep5z61ix",tablet:"_1yep5z61iy",desktop:"_1yep5z61iz"},defaultClass:"_1yep5z61ix _1yep5z61iy _1yep5z61iz"},xl:{conditions:{mobile:"_1yep5z61j0",tablet:"_1yep5z61j1",desktop:"_1yep5z61j2"},defaultClass:"_1yep5z61j0 _1yep5z61j1 _1yep5z61j2"},"2xl":{conditions:{mobile:"_1yep5z61j3",tablet:"_1yep5z61j4",desktop:"_1yep5z61j5"},defaultClass:"_1yep5z61j3 _1yep5z61j4 _1yep5z61j5"},full:{conditions:{mobile:"_1yep5z61j6",tablet:"_1yep5z61j7",desktop:"_1yep5z61j8"},defaultClass:"_1yep5z61j6 _1yep5z61j7 _1yep5z61j8"},none:{conditions:{mobile:"_1yep5z61j9",tablet:"_1yep5z61ja",desktop:"_1yep5z61jb"},defaultClass:"_1yep5z61j9 _1yep5z61ja _1yep5z61jb"}},responsiveArray:void 0},borderStartEndRadius:{values:{xs:{conditions:{mobile:"_1yep5z61jc",tablet:"_1yep5z61jd",desktop:"_1yep5z61je"},defaultClass:"_1yep5z61jc _1yep5z61jd _1yep5z61je"},sm:{conditions:{mobile:"_1yep5z61jf",tablet:"_1yep5z61jg",desktop:"_1yep5z61jh"},defaultClass:"_1yep5z61jf _1yep5z61jg _1yep5z61jh"},md:{conditions:{mobile:"_1yep5z61ji",tablet:"_1yep5z61jj",desktop:"_1yep5z61jk"},defaultClass:"_1yep5z61ji _1yep5z61jj _1yep5z61jk"},lg:{conditions:{mobile:"_1yep5z61jl",tablet:"_1yep5z61jm",desktop:"_1yep5z61jn"},defaultClass:"_1yep5z61jl _1yep5z61jm _1yep5z61jn"},xl:{conditions:{mobile:"_1yep5z61jo",tablet:"_1yep5z61jp",desktop:"_1yep5z61jq"},defaultClass:"_1yep5z61jo _1yep5z61jp _1yep5z61jq"},"2xl":{conditions:{mobile:"_1yep5z61jr",tablet:"_1yep5z61js",desktop:"_1yep5z61jt"},defaultClass:"_1yep5z61jr _1yep5z61js _1yep5z61jt"},full:{conditions:{mobile:"_1yep5z61ju",tablet:"_1yep5z61jv",desktop:"_1yep5z61jw"},defaultClass:"_1yep5z61ju _1yep5z61jv _1yep5z61jw"},none:{conditions:{mobile:"_1yep5z61jx",tablet:"_1yep5z61jy",desktop:"_1yep5z61jz"},defaultClass:"_1yep5z61jx _1yep5z61jy _1yep5z61jz"}},responsiveArray:void 0},borderEndStartRadius:{values:{xs:{conditions:{mobile:"_1yep5z61k0",tablet:"_1yep5z61k1",desktop:"_1yep5z61k2"},defaultClass:"_1yep5z61k0 _1yep5z61k1 _1yep5z61k2"},sm:{conditions:{mobile:"_1yep5z61k3",tablet:"_1yep5z61k4",desktop:"_1yep5z61k5"},defaultClass:"_1yep5z61k3 _1yep5z61k4 _1yep5z61k5"},md:{conditions:{mobile:"_1yep5z61k6",tablet:"_1yep5z61k7",desktop:"_1yep5z61k8"},defaultClass:"_1yep5z61k6 _1yep5z61k7 _1yep5z61k8"},lg:{conditions:{mobile:"_1yep5z61k9",tablet:"_1yep5z61ka",desktop:"_1yep5z61kb"},defaultClass:"_1yep5z61k9 _1yep5z61ka _1yep5z61kb"},xl:{conditions:{mobile:"_1yep5z61kc",tablet:"_1yep5z61kd",desktop:"_1yep5z61ke"},defaultClass:"_1yep5z61kc _1yep5z61kd _1yep5z61ke"},"2xl":{conditions:{mobile:"_1yep5z61kf",tablet:"_1yep5z61kg",desktop:"_1yep5z61kh"},defaultClass:"_1yep5z61kf _1yep5z61kg _1yep5z61kh"},full:{conditions:{mobile:"_1yep5z61ki",tablet:"_1yep5z61kj",desktop:"_1yep5z61kk"},defaultClass:"_1yep5z61ki _1yep5z61kj _1yep5z61kk"},none:{conditions:{mobile:"_1yep5z61kl",tablet:"_1yep5z61km",desktop:"_1yep5z61kn"},defaultClass:"_1yep5z61kl _1yep5z61km _1yep5z61kn"}},responsiveArray:void 0},borderEndEndRadius:{values:{xs:{conditions:{mobile:"_1yep5z61ko",tablet:"_1yep5z61kp",desktop:"_1yep5z61kq"},defaultClass:"_1yep5z61ko _1yep5z61kp _1yep5z61kq"},sm:{conditions:{mobile:"_1yep5z61kr",tablet:"_1yep5z61ks",desktop:"_1yep5z61kt"},defaultClass:"_1yep5z61kr _1yep5z61ks _1yep5z61kt"},md:{conditions:{mobile:"_1yep5z61ku",tablet:"_1yep5z61kv",desktop:"_1yep5z61kw"},defaultClass:"_1yep5z61ku _1yep5z61kv _1yep5z61kw"},lg:{conditions:{mobile:"_1yep5z61kx",tablet:"_1yep5z61ky",desktop:"_1yep5z61kz"},defaultClass:"_1yep5z61kx _1yep5z61ky _1yep5z61kz"},xl:{conditions:{mobile:"_1yep5z61l0",tablet:"_1yep5z61l1",desktop:"_1yep5z61l2"},defaultClass:"_1yep5z61l0 _1yep5z61l1 _1yep5z61l2"},"2xl":{conditions:{mobile:"_1yep5z61l3",tablet:"_1yep5z61l4",desktop:"_1yep5z61l5"},defaultClass:"_1yep5z61l3 _1yep5z61l4 _1yep5z61l5"},full:{conditions:{mobile:"_1yep5z61l6",tablet:"_1yep5z61l7",desktop:"_1yep5z61l8"},defaultClass:"_1yep5z61l6 _1yep5z61l7 _1yep5z61l8"},none:{conditions:{mobile:"_1yep5z61l9",tablet:"_1yep5z61la",desktop:"_1yep5z61lb"},defaultClass:"_1yep5z61l9 _1yep5z61la _1yep5z61lb"}},responsiveArray:void 0}}};return e.styles.borderStartStartRadius.responsiveArray=e.conditions.responsiveArray,e.styles.borderStartEndRadius.responsiveArray=e.conditions.responsiveArray,e.styles.borderEndStartRadius.responsiveArray=e.conditions.responsiveArray,e.styles.borderEndEndRadius.responsiveArray=e.conditions.responsiveArray,e}(),{conditions:void 0,styles:{boxShadow:{values:{low:{defaultClass:"_1yep5z61lc"},medium:{defaultClass:"_1yep5z61ld"}}}}},{conditions:void 0,styles:{opacity:{values:{none:{defaultClass:"_1yep5z61le"},low:{defaultClass:"_1yep5z61lf"},medium:{defaultClass:"_1yep5z61lg"},high:{defaultClass:"_1yep5z61lh"}}}}},{conditions:void 0,styles:{typography:{values:{"heading.h6.regular":{defaultClass:"_1yep5z61li"},"heading.h6.medium":{defaultClass:"_1yep5z61lj"},"heading.h6.semibold":{defaultClass:"_1yep5z61lk"},"heading.h5.regular":{defaultClass:"_1yep5z61ll"},"heading.h5.medium":{defaultClass:"_1yep5z61lm"},"heading.h5.semibold":{defaultClass:"_1yep5z61ln"},"heading.h4.regular":{defaultClass:"_1yep5z61lo"},"heading.h4.medium":{defaultClass:"_1yep5z61lp"},"heading.h4.semibold":{defaultClass:"_1yep5z61lq"},"heading.h3.regular":{defaultClass:"_1yep5z61lr"},"heading.h3.medium":{defaultClass:"_1yep5z61ls"},"heading.h3.semibold":{defaultClass:"_1yep5z61lt"},"heading.h2.regular":{defaultClass:"_1yep5z61lu"},"heading.h2.medium":{defaultClass:"_1yep5z61lv"},"heading.h2.semibold":{defaultClass:"_1yep5z61lw"},"heading.h1.regular":{defaultClass:"_1yep5z61lx"},"heading.h1.medium":{defaultClass:"_1yep5z61ly"},"heading.h1.semibold":{defaultClass:"_1yep5z61lz"},"label.sm.regular":{defaultClass:"_1yep5z61m0"},"label.sm.medium":{defaultClass:"_1yep5z61m1"},"label.sm.semibold":{defaultClass:"_1yep5z61m2"},"label.md.regular":{defaultClass:"_1yep5z61m3"},"label.md.medium":{defaultClass:"_1yep5z61m4"},"label.md.semibold":{defaultClass:"_1yep5z61m5"},"label.lg.regular":{defaultClass:"_1yep5z61m6"},"label.lg.medium":{defaultClass:"_1yep5z61m7"},"label.lg.semibold":{defaultClass:"_1yep5z61m8"},"body.sm.regular":{defaultClass:"_1yep5z61m9"},"body.sm.medium":{defaultClass:"_1yep5z61ma"},"body.sm.semibold":{defaultClass:"_1yep5z61mb"},"body.md.regular":{defaultClass:"_1yep5z61mc"},"body.md.medium":{defaultClass:"_1yep5z61md"},"body.md.semibold":{defaultClass:"_1yep5z61me"},"body.lg.regular":{defaultClass:"_1yep5z61mf"},"body.lg.medium":{defaultClass:"_1yep5z61mg"},"body.lg.semibold":{defaultClass:"_1yep5z61mh"}}}}},{conditions:void 0,styles:{color:{values:{"support.error.subtler":{defaultClass:"_1yep5z61mi"},"support.error.subtle":{defaultClass:"_1yep5z61mj"},"support.error.medium":{defaultClass:"_1yep5z61mk"},"support.error.strong":{defaultClass:"_1yep5z61ml"},"support.success.subtler":{defaultClass:"_1yep5z61mm"},"support.success.subtle":{defaultClass:"_1yep5z61mn"},"support.success.medium":{defaultClass:"_1yep5z61mo"},"support.success.strong":{defaultClass:"_1yep5z61mp"},"support.warning.subtler":{defaultClass:"_1yep5z61mq"},"support.warning.subtle":{defaultClass:"_1yep5z61mr"},"support.warning.medium":{defaultClass:"_1yep5z61ms"},"support.warning.strong":{defaultClass:"_1yep5z61mt"},"support.info.subtler":{defaultClass:"_1yep5z61mu"},"support.info.subtle":{defaultClass:"_1yep5z61mv"},"support.info.medium":{defaultClass:"_1yep5z61mw"},"support.info.strong":{defaultClass:"_1yep5z61mx"},"focused.default":{defaultClass:"_1yep5z61my"},"focused.inset":{defaultClass:"_1yep5z61mz"},"text.primary":{defaultClass:"_1yep5z61n0"},"text.secondary":{defaultClass:"_1yep5z61n1"},"text.helper":{defaultClass:"_1yep5z61n2"},"text.placeholder":{defaultClass:"_1yep5z61n3"},"text.interactive.disabled":{defaultClass:"_1yep5z61n4"},"text.inverse":{defaultClass:"_1yep5z61n5"},"text.oninteractive":{defaultClass:"_1yep5z61n6"},"text.interactive.enabled":{defaultClass:"_1yep5z61n7"},"text.interactive.hovered":{defaultClass:"_1yep5z61n8"},"text.interactive.active":{defaultClass:"_1yep5z61n9"},"text.interactive.visited":{defaultClass:"_1yep5z61na"},"icon.primary":{defaultClass:"_1yep5z61nb"},"icon.secondary":{defaultClass:"_1yep5z61nc"},"icon.interactive.disabled":{defaultClass:"_1yep5z61nd"},"icon.inverse":{defaultClass:"_1yep5z61ne"},"icon.oninteractive":{defaultClass:"_1yep5z61nf"},"icon.interactive.enabled":{defaultClass:"_1yep5z61ng"},"icon.interactive.hovered":{defaultClass:"_1yep5z61nh"},"icon.interactive.active":{defaultClass:"_1yep5z61ni"},"icon.interactive.visited":{defaultClass:"_1yep5z61nj"},"background.interactive.enabled":{defaultClass:"_1yep5z61nk"},"background.interactive.hovered":{defaultClass:"_1yep5z61nl"},"background.interactive.active":{defaultClass:"_1yep5z61nm"},"background.interactive.visited":{defaultClass:"_1yep5z61nn"},"background.interactive.disabled":{defaultClass:"_1yep5z61no"}}},backgroundColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z61np"},"support.error.subtle":{defaultClass:"_1yep5z61nq"},"support.error.medium":{defaultClass:"_1yep5z61nr"},"support.error.strong":{defaultClass:"_1yep5z61ns"},"support.success.subtler":{defaultClass:"_1yep5z61nt"},"support.success.subtle":{defaultClass:"_1yep5z61nu"},"support.success.medium":{defaultClass:"_1yep5z61nv"},"support.success.strong":{defaultClass:"_1yep5z61nw"},"support.warning.subtler":{defaultClass:"_1yep5z61nx"},"support.warning.subtle":{defaultClass:"_1yep5z61ny"},"support.warning.medium":{defaultClass:"_1yep5z61nz"},"support.warning.strong":{defaultClass:"_1yep5z61o0"},"support.info.subtler":{defaultClass:"_1yep5z61o1"},"support.info.subtle":{defaultClass:"_1yep5z61o2"},"support.info.medium":{defaultClass:"_1yep5z61o3"},"support.info.strong":{defaultClass:"_1yep5z61o4"},"focused.default":{defaultClass:"_1yep5z61o5"},"focused.inset":{defaultClass:"_1yep5z61o6"},"background.primary.subtle":{defaultClass:"_1yep5z61o7"},"background.primary.medium":{defaultClass:"_1yep5z61o8"},"background.primary.strong":{defaultClass:"_1yep5z61o9"},"background.secondary.subtle":{defaultClass:"_1yep5z61oa"},"background.secondary.medium":{defaultClass:"_1yep5z61ob"},"background.secondary.strong":{defaultClass:"_1yep5z61oc"},"background.inverse.subtle":{defaultClass:"_1yep5z61od"},"background.inverse.medium":{defaultClass:"_1yep5z61oe"},"background.inverse.strong":{defaultClass:"_1yep5z61of"},"background.overlay.subtle":{defaultClass:"_1yep5z61og"},"background.overlay.medium":{defaultClass:"_1yep5z61oh"},"background.positive.subtle":{defaultClass:"_1yep5z61oi"},"background.positive.medium":{defaultClass:"_1yep5z61oj"},"background.positive.strong":{defaultClass:"_1yep5z61ok"},"background.interactive.enabled":{defaultClass:"_1yep5z61ol"},"background.interactive.hovered":{defaultClass:"_1yep5z61om"},"background.interactive.active":{defaultClass:"_1yep5z61on"},"background.interactive.visited":{defaultClass:"_1yep5z61oo"},"background.interactive.disabled":{defaultClass:"_1yep5z61op"},"border.positive.interactive.enabled":{defaultClass:"_1yep5z61oq"}}},borderColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z61or"},"support.error.subtle":{defaultClass:"_1yep5z61os"},"support.error.medium":{defaultClass:"_1yep5z61ot"},"support.error.strong":{defaultClass:"_1yep5z61ou"},"support.success.subtler":{defaultClass:"_1yep5z61ov"},"support.success.subtle":{defaultClass:"_1yep5z61ow"},"support.success.medium":{defaultClass:"_1yep5z61ox"},"support.success.strong":{defaultClass:"_1yep5z61oy"},"support.warning.subtler":{defaultClass:"_1yep5z61oz"},"support.warning.subtle":{defaultClass:"_1yep5z61p0"},"support.warning.medium":{defaultClass:"_1yep5z61p1"},"support.warning.strong":{defaultClass:"_1yep5z61p2"},"support.info.subtler":{defaultClass:"_1yep5z61p3"},"support.info.subtle":{defaultClass:"_1yep5z61p4"},"support.info.medium":{defaultClass:"_1yep5z61p5"},"support.info.strong":{defaultClass:"_1yep5z61p6"},"focused.default":{defaultClass:"_1yep5z61p7"},"focused.inset":{defaultClass:"_1yep5z61p8"},"border.subtle":{defaultClass:"_1yep5z61p9"},"border.medium":{defaultClass:"_1yep5z61pa"},"border.strong":{defaultClass:"_1yep5z61pb"},"border.inverse":{defaultClass:"_1yep5z61pc"},"border.interactive.enabled":{defaultClass:"_1yep5z61pd"},"border.interactive.hovered":{defaultClass:"_1yep5z61pe"},"border.interactive.active":{defaultClass:"_1yep5z61pf"},"border.interactive.visited":{defaultClass:"_1yep5z61pg"},"border.interactive.disabled":{defaultClass:"_1yep5z61ph"},"border.positive.interactive.enabled":{defaultClass:"_1yep5z61pi"},"border.positive.medium":{defaultClass:"_1yep5z61pj"},"border.positive.strong":{defaultClass:"_1yep5z61pk"},"border.positive.subtle":{defaultClass:"_1yep5z61pl"},transparent:{defaultClass:"_1yep5z61pm"}}},outlineColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z61pn"},"support.error.subtle":{defaultClass:"_1yep5z61po"},"support.error.medium":{defaultClass:"_1yep5z61pp"},"support.error.strong":{defaultClass:"_1yep5z61pq"},"support.success.subtler":{defaultClass:"_1yep5z61pr"},"support.success.subtle":{defaultClass:"_1yep5z61ps"},"support.success.medium":{defaultClass:"_1yep5z61pt"},"support.success.strong":{defaultClass:"_1yep5z61pu"},"support.warning.subtler":{defaultClass:"_1yep5z61pv"},"support.warning.subtle":{defaultClass:"_1yep5z61pw"},"support.warning.medium":{defaultClass:"_1yep5z61px"},"support.warning.strong":{defaultClass:"_1yep5z61py"},"support.info.subtler":{defaultClass:"_1yep5z61pz"},"support.info.subtle":{defaultClass:"_1yep5z61q0"},"support.info.medium":{defaultClass:"_1yep5z61q1"},"support.info.strong":{defaultClass:"_1yep5z61q2"},"focused.default":{defaultClass:"_1yep5z61q3"},"focused.inset":{defaultClass:"_1yep5z61q4"},"border.subtle":{defaultClass:"_1yep5z61q5"},"border.medium":{defaultClass:"_1yep5z61q6"},"border.strong":{defaultClass:"_1yep5z61q7"},"border.inverse":{defaultClass:"_1yep5z61q8"},"border.interactive.enabled":{defaultClass:"_1yep5z61q9"},"border.interactive.hovered":{defaultClass:"_1yep5z61qa"},"border.interactive.active":{defaultClass:"_1yep5z61qb"},"border.interactive.visited":{defaultClass:"_1yep5z61qc"},"border.interactive.disabled":{defaultClass:"_1yep5z61qd"},"border.positive.interactive.enabled":{defaultClass:"_1yep5z61qe"},"border.positive.medium":{defaultClass:"_1yep5z61qf"},"border.positive.strong":{defaultClass:"_1yep5z61qg"},"border.positive.subtle":{defaultClass:"_1yep5z61qh"},transparent:{defaultClass:"_1yep5z61qi"}}}}},function(){var e={conditions:{defaultCondition:["mobile","tablet","desktop"],conditionNames:["mobile","tablet","desktop"],responsiveArray:["mobile","tablet","desktop"]},styles:{position:{values:{relative:{conditions:{mobile:"_1yep5z61qj",tablet:"_1yep5z61qk",desktop:"_1yep5z61ql"},defaultClass:"_1yep5z61qj _1yep5z61qk _1yep5z61ql"},absolute:{conditions:{mobile:"_1yep5z61qm",tablet:"_1yep5z61qn",desktop:"_1yep5z61qo"},defaultClass:"_1yep5z61qm _1yep5z61qn _1yep5z61qo"},fixed:{conditions:{mobile:"_1yep5z61qp",tablet:"_1yep5z61qq",desktop:"_1yep5z61qr"},defaultClass:"_1yep5z61qp _1yep5z61qq _1yep5z61qr"}},responsiveArray:void 0},display:{values:{none:{conditions:{mobile:"_1yep5z61qs",tablet:"_1yep5z61qt",desktop:"_1yep5z61qu"},defaultClass:"_1yep5z61qs _1yep5z61qt _1yep5z61qu"},block:{conditions:{mobile:"_1yep5z61qv",tablet:"_1yep5z61qw",desktop:"_1yep5z61qx"},defaultClass:"_1yep5z61qv _1yep5z61qw _1yep5z61qx"},flex:{conditions:{mobile:"_1yep5z61qy",tablet:"_1yep5z61qz",desktop:"_1yep5z61r0"},defaultClass:"_1yep5z61qy _1yep5z61qz _1yep5z61r0"},"inline-flex":{conditions:{mobile:"_1yep5z61r1",tablet:"_1yep5z61r2",desktop:"_1yep5z61r3"},defaultClass:"_1yep5z61r1 _1yep5z61r2 _1yep5z61r3"},grid:{conditions:{mobile:"_1yep5z61r4",tablet:"_1yep5z61r5",desktop:"_1yep5z61r6"},defaultClass:"_1yep5z61r4 _1yep5z61r5 _1yep5z61r6"}},responsiveArray:void 0},flexDirection:{values:{row:{conditions:{mobile:"_1yep5z61r7",tablet:"_1yep5z61r8",desktop:"_1yep5z61r9"},defaultClass:"_1yep5z61r7 _1yep5z61r8 _1yep5z61r9"},column:{conditions:{mobile:"_1yep5z61ra",tablet:"_1yep5z61rb",desktop:"_1yep5z61rc"},defaultClass:"_1yep5z61ra _1yep5z61rb _1yep5z61rc"},"row-reverse":{conditions:{mobile:"_1yep5z61rd",tablet:"_1yep5z61re",desktop:"_1yep5z61rf"},defaultClass:"_1yep5z61rd _1yep5z61re _1yep5z61rf"},"column-reverse":{conditions:{mobile:"_1yep5z61rg",tablet:"_1yep5z61rh",desktop:"_1yep5z61ri"},defaultClass:"_1yep5z61rg _1yep5z61rh _1yep5z61ri"}},responsiveArray:void 0},alignItems:{values:{stretch:{conditions:{mobile:"_1yep5z61rj",tablet:"_1yep5z61rk",desktop:"_1yep5z61rl"},defaultClass:"_1yep5z61rj _1yep5z61rk _1yep5z61rl"},"flex-start":{conditions:{mobile:"_1yep5z61rm",tablet:"_1yep5z61rn",desktop:"_1yep5z61ro"},defaultClass:"_1yep5z61rm _1yep5z61rn _1yep5z61ro"},center:{conditions:{mobile:"_1yep5z61rp",tablet:"_1yep5z61rq",desktop:"_1yep5z61rr"},defaultClass:"_1yep5z61rp _1yep5z61rq _1yep5z61rr"},"flex-end":{conditions:{mobile:"_1yep5z61rs",tablet:"_1yep5z61rt",desktop:"_1yep5z61ru"},defaultClass:"_1yep5z61rs _1yep5z61rt _1yep5z61ru"}},responsiveArray:void 0},alignSelf:{values:{stretch:{conditions:{mobile:"_1yep5z61rv",tablet:"_1yep5z61rw",desktop:"_1yep5z61rx"},defaultClass:"_1yep5z61rv _1yep5z61rw _1yep5z61rx"},"flex-start":{conditions:{mobile:"_1yep5z61ry",tablet:"_1yep5z61rz",desktop:"_1yep5z61s0"},defaultClass:"_1yep5z61ry _1yep5z61rz _1yep5z61s0"},center:{conditions:{mobile:"_1yep5z61s1",tablet:"_1yep5z61s2",desktop:"_1yep5z61s3"},defaultClass:"_1yep5z61s1 _1yep5z61s2 _1yep5z61s3"},"flex-end":{conditions:{mobile:"_1yep5z61s4",tablet:"_1yep5z61s5",desktop:"_1yep5z61s6"},defaultClass:"_1yep5z61s4 _1yep5z61s5 _1yep5z61s6"}},responsiveArray:void 0},flex:{values:{0:{conditions:{mobile:"_1yep5z61s7",tablet:"_1yep5z61s8",desktop:"_1yep5z61s9"},defaultClass:"_1yep5z61s7 _1yep5z61s8 _1yep5z61s9"},1:{conditions:{mobile:"_1yep5z61sa",tablet:"_1yep5z61sb",desktop:"_1yep5z61sc"},defaultClass:"_1yep5z61sa _1yep5z61sb _1yep5z61sc"}},responsiveArray:void 0},justifyContent:{values:{stretch:{conditions:{mobile:"_1yep5z61sd",tablet:"_1yep5z61se",desktop:"_1yep5z61sf"},defaultClass:"_1yep5z61sd _1yep5z61se _1yep5z61sf"},"flex-start":{conditions:{mobile:"_1yep5z61sg",tablet:"_1yep5z61sh",desktop:"_1yep5z61si"},defaultClass:"_1yep5z61sg _1yep5z61sh _1yep5z61si"},center:{conditions:{mobile:"_1yep5z61sj",tablet:"_1yep5z61sk",desktop:"_1yep5z61sl"},defaultClass:"_1yep5z61sj _1yep5z61sk _1yep5z61sl"},"flex-end":{conditions:{mobile:"_1yep5z61sm",tablet:"_1yep5z61sn",desktop:"_1yep5z61so"},defaultClass:"_1yep5z61sm _1yep5z61sn _1yep5z61so"},"space-between":{conditions:{mobile:"_1yep5z61sp",tablet:"_1yep5z61sq",desktop:"_1yep5z61sr"},defaultClass:"_1yep5z61sp _1yep5z61sq _1yep5z61sr"}},responsiveArray:void 0},justifySelf:{values:{stretch:{conditions:{mobile:"_1yep5z61ss",tablet:"_1yep5z61st",desktop:"_1yep5z61su"},defaultClass:"_1yep5z61ss _1yep5z61st _1yep5z61su"},"flex-start":{conditions:{mobile:"_1yep5z61sv",tablet:"_1yep5z61sw",desktop:"_1yep5z61sx"},defaultClass:"_1yep5z61sv _1yep5z61sw _1yep5z61sx"},center:{conditions:{mobile:"_1yep5z61sy",tablet:"_1yep5z61sz",desktop:"_1yep5z61t0"},defaultClass:"_1yep5z61sy _1yep5z61sz _1yep5z61t0"},"flex-end":{conditions:{mobile:"_1yep5z61t1",tablet:"_1yep5z61t2",desktop:"_1yep5z61t3"},defaultClass:"_1yep5z61t1 _1yep5z61t2 _1yep5z61t3"}},responsiveArray:void 0},placeItems:{values:{stretch:{conditions:{mobile:"_1yep5z61t4",tablet:"_1yep5z61t5",desktop:"_1yep5z61t6"},defaultClass:"_1yep5z61t4 _1yep5z61t5 _1yep5z61t6"},"flex-start":{conditions:{mobile:"_1yep5z61t7",tablet:"_1yep5z61t8",desktop:"_1yep5z61t9"},defaultClass:"_1yep5z61t7 _1yep5z61t8 _1yep5z61t9"},center:{conditions:{mobile:"_1yep5z61ta",tablet:"_1yep5z61tb",desktop:"_1yep5z61tc"},defaultClass:"_1yep5z61ta _1yep5z61tb _1yep5z61tc"},"flex-end":{conditions:{mobile:"_1yep5z61td",tablet:"_1yep5z61te",desktop:"_1yep5z61tf"},defaultClass:"_1yep5z61td _1yep5z61te _1yep5z61tf"}},responsiveArray:void 0}}};return e.styles.position.responsiveArray=e.conditions.responsiveArray,e.styles.display.responsiveArray=e.conditions.responsiveArray,e.styles.flexDirection.responsiveArray=e.conditions.responsiveArray,e.styles.alignItems.responsiveArray=e.conditions.responsiveArray,e.styles.alignSelf.responsiveArray=e.conditions.responsiveArray,e.styles.flex.responsiveArray=e.conditions.responsiveArray,e.styles.justifyContent.responsiveArray=e.conditions.responsiveArray,e.styles.justifySelf.responsiveArray=e.conditions.responsiveArray,e.styles.placeItems.responsiveArray=e.conditions.responsiveArray,e}(),{conditions:void 0,styles:{transition:{values:{"transition.medium":{defaultClass:"_1yep5z61tg"}}},transitionProperty:{values:{transform:{defaultClass:"_1yep5z61th"},opacity:{defaultClass:"_1yep5z61ti"},"background-color":{defaultClass:"_1yep5z61tj"}}}}},{conditions:void 0,styles:{inset:{mappings:["insetBlockStart","insetBlockEnd","insetInlineEnd","insetInlineStart"]},flexWrap:{values:{wrap:{defaultClass:"_1yep5z61tk"},nowrap:{defaultClass:"_1yep5z61tl"}}},insetBlockStart:{values:{0:{defaultClass:"_1yep5z61tm"}}},insetBlockEnd:{values:{0:{defaultClass:"_1yep5z61tn"}}},insetInlineStart:{values:{0:{defaultClass:"_1yep5z61to"}}},insetInlineEnd:{values:{0:{defaultClass:"_1yep5z61tp"}}},flexShrink:{values:{0:{defaultClass:"_1yep5z61tq"}}},flexGrow:{values:{0:{defaultClass:"_1yep5z61tr"},1:{defaultClass:"_1yep5z61ts"}}},width:{values:{full:{defaultClass:"_1yep5z61tt"}}},height:{values:{full:{defaultClass:"_1yep5z61tu"}}},cursor:{values:{pointer:{defaultClass:"_1yep5z61tv"}}}}},{conditions:void 0,styles:{outline:{values:{none:{defaultClass:"_1yep5z61tw"}}},outlineStyle:{values:{solid:{defaultClass:"_1yep5z61tx"}}},outlineWidth:{values:{1:{defaultClass:"_1yep5z61ty"},2:{defaultClass:"_1yep5z61tz"}}},outlineOffset:{values:{1:{defaultClass:"_1yep5z61u2"},2:{defaultClass:"_1yep5z61u3"},"-2":{defaultClass:"_1yep5z61u0"},"-1":{defaultClass:"_1yep5z61u1"}}},border:{values:{none:{defaultClass:"_1yep5z61u4"}}},borderStyle:{values:{solid:{defaultClass:"_1yep5z61u5"},dashed:{defaultClass:"_1yep5z61u6"}}},borderWidth:{values:{1:{defaultClass:"_1yep5z61u7"},2:{defaultClass:"_1yep5z61u8"}}}}}),h=u(function(){var e={conditions:{defaultCondition:["mobile","tablet","desktop"],conditionNames:["mobile","tablet","desktop"],responsiveArray:["mobile","tablet","desktop"]},styles:{paddingLeft:{mappings:["paddingInlineStart"]},paddingRight:{mappings:["paddingInlineEnd"]},paddingTop:{mappings:["paddingBlockStart"]},paddingBottom:{mappings:["paddingBlockEnd"]},padding:{mappings:["paddingBlockStart","paddingBlockEnd","paddingInlineStart","paddingInlineEnd"]},paddingX:{mappings:["paddingInlineStart","paddingInlineEnd"]},paddingY:{mappings:["paddingBlockStart","paddingBlockEnd"]},marginLeft:{mappings:["marginInlineStart"]},marginRight:{mappings:["marginInlineEnd"]},marginTop:{mappings:["marginBlockStart"]},marginBottom:{mappings:["marginBlockEnd"]},margin:{mappings:["marginBlockStart","marginBlockEnd","marginInlineStart","marginInlineEnd"]},marginX:{mappings:["marginInlineStart","marginInlineEnd"]},marginY:{mappings:["marginBlockStart","marginBlockEnd"]},paddingBlockStart:{values:{xs:{conditions:{mobile:"_1yep5z6m3",tablet:"_1yep5z6m4",desktop:"_1yep5z6m5"},defaultClass:"_1yep5z6m3 _1yep5z6m4 _1yep5z6m5"},sm:{conditions:{mobile:"_1yep5z6m6",tablet:"_1yep5z6m7",desktop:"_1yep5z6m8"},defaultClass:"_1yep5z6m6 _1yep5z6m7 _1yep5z6m8"},md:{conditions:{mobile:"_1yep5z6m9",tablet:"_1yep5z6ma",desktop:"_1yep5z6mb"},defaultClass:"_1yep5z6m9 _1yep5z6ma _1yep5z6mb"},lg:{conditions:{mobile:"_1yep5z6mc",tablet:"_1yep5z6md",desktop:"_1yep5z6me"},defaultClass:"_1yep5z6mc _1yep5z6md _1yep5z6me"},xl:{conditions:{mobile:"_1yep5z6mf",tablet:"_1yep5z6mg",desktop:"_1yep5z6mh"},defaultClass:"_1yep5z6mf _1yep5z6mg _1yep5z6mh"},"2xl":{conditions:{mobile:"_1yep5z6mi",tablet:"_1yep5z6mj",desktop:"_1yep5z6mk"},defaultClass:"_1yep5z6mi _1yep5z6mj _1yep5z6mk"},"3xl":{conditions:{mobile:"_1yep5z6ml",tablet:"_1yep5z6mm",desktop:"_1yep5z6mn"},defaultClass:"_1yep5z6ml _1yep5z6mm _1yep5z6mn"},"4xl":{conditions:{mobile:"_1yep5z6mo",tablet:"_1yep5z6mp",desktop:"_1yep5z6mq"},defaultClass:"_1yep5z6mo _1yep5z6mp _1yep5z6mq"},"5xl":{conditions:{mobile:"_1yep5z6mr",tablet:"_1yep5z6ms",desktop:"_1yep5z6mt"},defaultClass:"_1yep5z6mr _1yep5z6ms _1yep5z6mt"},"6xl":{conditions:{mobile:"_1yep5z6mu",tablet:"_1yep5z6mv",desktop:"_1yep5z6mw"},defaultClass:"_1yep5z6mu _1yep5z6mv _1yep5z6mw"},"7xl":{conditions:{mobile:"_1yep5z6mx",tablet:"_1yep5z6my",desktop:"_1yep5z6mz"},defaultClass:"_1yep5z6mx _1yep5z6my _1yep5z6mz"},"8xl":{conditions:{mobile:"_1yep5z6n0",tablet:"_1yep5z6n1",desktop:"_1yep5z6n2"},defaultClass:"_1yep5z6n0 _1yep5z6n1 _1yep5z6n2"},"9xl":{conditions:{mobile:"_1yep5z6n3",tablet:"_1yep5z6n4",desktop:"_1yep5z6n5"},defaultClass:"_1yep5z6n3 _1yep5z6n4 _1yep5z6n5"},none:{conditions:{mobile:"_1yep5z6n6",tablet:"_1yep5z6n7",desktop:"_1yep5z6n8"},defaultClass:"_1yep5z6n6 _1yep5z6n7 _1yep5z6n8"}},responsiveArray:void 0},paddingInlineEnd:{values:{xs:{conditions:{mobile:"_1yep5z6n9",tablet:"_1yep5z6na",desktop:"_1yep5z6nb"},defaultClass:"_1yep5z6n9 _1yep5z6na _1yep5z6nb"},sm:{conditions:{mobile:"_1yep5z6nc",tablet:"_1yep5z6nd",desktop:"_1yep5z6ne"},defaultClass:"_1yep5z6nc _1yep5z6nd _1yep5z6ne"},md:{conditions:{mobile:"_1yep5z6nf",tablet:"_1yep5z6ng",desktop:"_1yep5z6nh"},defaultClass:"_1yep5z6nf _1yep5z6ng _1yep5z6nh"},lg:{conditions:{mobile:"_1yep5z6ni",tablet:"_1yep5z6nj",desktop:"_1yep5z6nk"},defaultClass:"_1yep5z6ni _1yep5z6nj _1yep5z6nk"},xl:{conditions:{mobile:"_1yep5z6nl",tablet:"_1yep5z6nm",desktop:"_1yep5z6nn"},defaultClass:"_1yep5z6nl _1yep5z6nm _1yep5z6nn"},"2xl":{conditions:{mobile:"_1yep5z6no",tablet:"_1yep5z6np",desktop:"_1yep5z6nq"},defaultClass:"_1yep5z6no _1yep5z6np _1yep5z6nq"},"3xl":{conditions:{mobile:"_1yep5z6nr",tablet:"_1yep5z6ns",desktop:"_1yep5z6nt"},defaultClass:"_1yep5z6nr _1yep5z6ns _1yep5z6nt"},"4xl":{conditions:{mobile:"_1yep5z6nu",tablet:"_1yep5z6nv",desktop:"_1yep5z6nw"},defaultClass:"_1yep5z6nu _1yep5z6nv _1yep5z6nw"},"5xl":{conditions:{mobile:"_1yep5z6nx",tablet:"_1yep5z6ny",desktop:"_1yep5z6nz"},defaultClass:"_1yep5z6nx _1yep5z6ny _1yep5z6nz"},"6xl":{conditions:{mobile:"_1yep5z6o0",tablet:"_1yep5z6o1",desktop:"_1yep5z6o2"},defaultClass:"_1yep5z6o0 _1yep5z6o1 _1yep5z6o2"},"7xl":{conditions:{mobile:"_1yep5z6o3",tablet:"_1yep5z6o4",desktop:"_1yep5z6o5"},defaultClass:"_1yep5z6o3 _1yep5z6o4 _1yep5z6o5"},"8xl":{conditions:{mobile:"_1yep5z6o6",tablet:"_1yep5z6o7",desktop:"_1yep5z6o8"},defaultClass:"_1yep5z6o6 _1yep5z6o7 _1yep5z6o8"},"9xl":{conditions:{mobile:"_1yep5z6o9",tablet:"_1yep5z6oa",desktop:"_1yep5z6ob"},defaultClass:"_1yep5z6o9 _1yep5z6oa _1yep5z6ob"},none:{conditions:{mobile:"_1yep5z6oc",tablet:"_1yep5z6od",desktop:"_1yep5z6oe"},defaultClass:"_1yep5z6oc _1yep5z6od _1yep5z6oe"}},responsiveArray:void 0},paddingBlockEnd:{values:{xs:{conditions:{mobile:"_1yep5z6of",tablet:"_1yep5z6og",desktop:"_1yep5z6oh"},defaultClass:"_1yep5z6of _1yep5z6og _1yep5z6oh"},sm:{conditions:{mobile:"_1yep5z6oi",tablet:"_1yep5z6oj",desktop:"_1yep5z6ok"},defaultClass:"_1yep5z6oi _1yep5z6oj _1yep5z6ok"},md:{conditions:{mobile:"_1yep5z6ol",tablet:"_1yep5z6om",desktop:"_1yep5z6on"},defaultClass:"_1yep5z6ol _1yep5z6om _1yep5z6on"},lg:{conditions:{mobile:"_1yep5z6oo",tablet:"_1yep5z6op",desktop:"_1yep5z6oq"},defaultClass:"_1yep5z6oo _1yep5z6op _1yep5z6oq"},xl:{conditions:{mobile:"_1yep5z6or",tablet:"_1yep5z6os",desktop:"_1yep5z6ot"},defaultClass:"_1yep5z6or _1yep5z6os _1yep5z6ot"},"2xl":{conditions:{mobile:"_1yep5z6ou",tablet:"_1yep5z6ov",desktop:"_1yep5z6ow"},defaultClass:"_1yep5z6ou _1yep5z6ov _1yep5z6ow"},"3xl":{conditions:{mobile:"_1yep5z6ox",tablet:"_1yep5z6oy",desktop:"_1yep5z6oz"},defaultClass:"_1yep5z6ox _1yep5z6oy _1yep5z6oz"},"4xl":{conditions:{mobile:"_1yep5z6p0",tablet:"_1yep5z6p1",desktop:"_1yep5z6p2"},defaultClass:"_1yep5z6p0 _1yep5z6p1 _1yep5z6p2"},"5xl":{conditions:{mobile:"_1yep5z6p3",tablet:"_1yep5z6p4",desktop:"_1yep5z6p5"},defaultClass:"_1yep5z6p3 _1yep5z6p4 _1yep5z6p5"},"6xl":{conditions:{mobile:"_1yep5z6p6",tablet:"_1yep5z6p7",desktop:"_1yep5z6p8"},defaultClass:"_1yep5z6p6 _1yep5z6p7 _1yep5z6p8"},"7xl":{conditions:{mobile:"_1yep5z6p9",tablet:"_1yep5z6pa",desktop:"_1yep5z6pb"},defaultClass:"_1yep5z6p9 _1yep5z6pa _1yep5z6pb"},"8xl":{conditions:{mobile:"_1yep5z6pc",tablet:"_1yep5z6pd",desktop:"_1yep5z6pe"},defaultClass:"_1yep5z6pc _1yep5z6pd _1yep5z6pe"},"9xl":{conditions:{mobile:"_1yep5z6pf",tablet:"_1yep5z6pg",desktop:"_1yep5z6ph"},defaultClass:"_1yep5z6pf _1yep5z6pg _1yep5z6ph"},none:{conditions:{mobile:"_1yep5z6pi",tablet:"_1yep5z6pj",desktop:"_1yep5z6pk"},defaultClass:"_1yep5z6pi _1yep5z6pj _1yep5z6pk"}},responsiveArray:void 0},paddingInlineStart:{values:{xs:{conditions:{mobile:"_1yep5z6pl",tablet:"_1yep5z6pm",desktop:"_1yep5z6pn"},defaultClass:"_1yep5z6pl _1yep5z6pm _1yep5z6pn"},sm:{conditions:{mobile:"_1yep5z6po",tablet:"_1yep5z6pp",desktop:"_1yep5z6pq"},defaultClass:"_1yep5z6po _1yep5z6pp _1yep5z6pq"},md:{conditions:{mobile:"_1yep5z6pr",tablet:"_1yep5z6ps",desktop:"_1yep5z6pt"},defaultClass:"_1yep5z6pr _1yep5z6ps _1yep5z6pt"},lg:{conditions:{mobile:"_1yep5z6pu",tablet:"_1yep5z6pv",desktop:"_1yep5z6pw"},defaultClass:"_1yep5z6pu _1yep5z6pv _1yep5z6pw"},xl:{conditions:{mobile:"_1yep5z6px",tablet:"_1yep5z6py",desktop:"_1yep5z6pz"},defaultClass:"_1yep5z6px _1yep5z6py _1yep5z6pz"},"2xl":{conditions:{mobile:"_1yep5z6q0",tablet:"_1yep5z6q1",desktop:"_1yep5z6q2"},defaultClass:"_1yep5z6q0 _1yep5z6q1 _1yep5z6q2"},"3xl":{conditions:{mobile:"_1yep5z6q3",tablet:"_1yep5z6q4",desktop:"_1yep5z6q5"},defaultClass:"_1yep5z6q3 _1yep5z6q4 _1yep5z6q5"},"4xl":{conditions:{mobile:"_1yep5z6q6",tablet:"_1yep5z6q7",desktop:"_1yep5z6q8"},defaultClass:"_1yep5z6q6 _1yep5z6q7 _1yep5z6q8"},"5xl":{conditions:{mobile:"_1yep5z6q9",tablet:"_1yep5z6qa",desktop:"_1yep5z6qb"},defaultClass:"_1yep5z6q9 _1yep5z6qa _1yep5z6qb"},"6xl":{conditions:{mobile:"_1yep5z6qc",tablet:"_1yep5z6qd",desktop:"_1yep5z6qe"},defaultClass:"_1yep5z6qc _1yep5z6qd _1yep5z6qe"},"7xl":{conditions:{mobile:"_1yep5z6qf",tablet:"_1yep5z6qg",desktop:"_1yep5z6qh"},defaultClass:"_1yep5z6qf _1yep5z6qg _1yep5z6qh"},"8xl":{conditions:{mobile:"_1yep5z6qi",tablet:"_1yep5z6qj",desktop:"_1yep5z6qk"},defaultClass:"_1yep5z6qi _1yep5z6qj _1yep5z6qk"},"9xl":{conditions:{mobile:"_1yep5z6ql",tablet:"_1yep5z6qm",desktop:"_1yep5z6qn"},defaultClass:"_1yep5z6ql _1yep5z6qm _1yep5z6qn"},none:{conditions:{mobile:"_1yep5z6qo",tablet:"_1yep5z6qp",desktop:"_1yep5z6qq"},defaultClass:"_1yep5z6qo _1yep5z6qp _1yep5z6qq"}},responsiveArray:void 0},marginBlockStart:{values:{xs:{conditions:{mobile:"_1yep5z6qr",tablet:"_1yep5z6qs",desktop:"_1yep5z6qt"},defaultClass:"_1yep5z6qr _1yep5z6qs _1yep5z6qt"},sm:{conditions:{mobile:"_1yep5z6qu",tablet:"_1yep5z6qv",desktop:"_1yep5z6qw"},defaultClass:"_1yep5z6qu _1yep5z6qv _1yep5z6qw"},md:{conditions:{mobile:"_1yep5z6qx",tablet:"_1yep5z6qy",desktop:"_1yep5z6qz"},defaultClass:"_1yep5z6qx _1yep5z6qy _1yep5z6qz"},lg:{conditions:{mobile:"_1yep5z6r0",tablet:"_1yep5z6r1",desktop:"_1yep5z6r2"},defaultClass:"_1yep5z6r0 _1yep5z6r1 _1yep5z6r2"},xl:{conditions:{mobile:"_1yep5z6r3",tablet:"_1yep5z6r4",desktop:"_1yep5z6r5"},defaultClass:"_1yep5z6r3 _1yep5z6r4 _1yep5z6r5"},"2xl":{conditions:{mobile:"_1yep5z6r6",tablet:"_1yep5z6r7",desktop:"_1yep5z6r8"},defaultClass:"_1yep5z6r6 _1yep5z6r7 _1yep5z6r8"},"3xl":{conditions:{mobile:"_1yep5z6r9",tablet:"_1yep5z6ra",desktop:"_1yep5z6rb"},defaultClass:"_1yep5z6r9 _1yep5z6ra _1yep5z6rb"},"4xl":{conditions:{mobile:"_1yep5z6rc",tablet:"_1yep5z6rd",desktop:"_1yep5z6re"},defaultClass:"_1yep5z6rc _1yep5z6rd _1yep5z6re"},"5xl":{conditions:{mobile:"_1yep5z6rf",tablet:"_1yep5z6rg",desktop:"_1yep5z6rh"},defaultClass:"_1yep5z6rf _1yep5z6rg _1yep5z6rh"},"6xl":{conditions:{mobile:"_1yep5z6ri",tablet:"_1yep5z6rj",desktop:"_1yep5z6rk"},defaultClass:"_1yep5z6ri _1yep5z6rj _1yep5z6rk"},"7xl":{conditions:{mobile:"_1yep5z6rl",tablet:"_1yep5z6rm",desktop:"_1yep5z6rn"},defaultClass:"_1yep5z6rl _1yep5z6rm _1yep5z6rn"},"8xl":{conditions:{mobile:"_1yep5z6ro",tablet:"_1yep5z6rp",desktop:"_1yep5z6rq"},defaultClass:"_1yep5z6ro _1yep5z6rp _1yep5z6rq"},"9xl":{conditions:{mobile:"_1yep5z6rr",tablet:"_1yep5z6rs",desktop:"_1yep5z6rt"},defaultClass:"_1yep5z6rr _1yep5z6rs _1yep5z6rt"},none:{conditions:{mobile:"_1yep5z6ru",tablet:"_1yep5z6rv",desktop:"_1yep5z6rw"},defaultClass:"_1yep5z6ru _1yep5z6rv _1yep5z6rw"}},responsiveArray:void 0},marginInlineEnd:{values:{xs:{conditions:{mobile:"_1yep5z6rx",tablet:"_1yep5z6ry",desktop:"_1yep5z6rz"},defaultClass:"_1yep5z6rx _1yep5z6ry _1yep5z6rz"},sm:{conditions:{mobile:"_1yep5z6s0",tablet:"_1yep5z6s1",desktop:"_1yep5z6s2"},defaultClass:"_1yep5z6s0 _1yep5z6s1 _1yep5z6s2"},md:{conditions:{mobile:"_1yep5z6s3",tablet:"_1yep5z6s4",desktop:"_1yep5z6s5"},defaultClass:"_1yep5z6s3 _1yep5z6s4 _1yep5z6s5"},lg:{conditions:{mobile:"_1yep5z6s6",tablet:"_1yep5z6s7",desktop:"_1yep5z6s8"},defaultClass:"_1yep5z6s6 _1yep5z6s7 _1yep5z6s8"},xl:{conditions:{mobile:"_1yep5z6s9",tablet:"_1yep5z6sa",desktop:"_1yep5z6sb"},defaultClass:"_1yep5z6s9 _1yep5z6sa _1yep5z6sb"},"2xl":{conditions:{mobile:"_1yep5z6sc",tablet:"_1yep5z6sd",desktop:"_1yep5z6se"},defaultClass:"_1yep5z6sc _1yep5z6sd _1yep5z6se"},"3xl":{conditions:{mobile:"_1yep5z6sf",tablet:"_1yep5z6sg",desktop:"_1yep5z6sh"},defaultClass:"_1yep5z6sf _1yep5z6sg _1yep5z6sh"},"4xl":{conditions:{mobile:"_1yep5z6si",tablet:"_1yep5z6sj",desktop:"_1yep5z6sk"},defaultClass:"_1yep5z6si _1yep5z6sj _1yep5z6sk"},"5xl":{conditions:{mobile:"_1yep5z6sl",tablet:"_1yep5z6sm",desktop:"_1yep5z6sn"},defaultClass:"_1yep5z6sl _1yep5z6sm _1yep5z6sn"},"6xl":{conditions:{mobile:"_1yep5z6so",tablet:"_1yep5z6sp",desktop:"_1yep5z6sq"},defaultClass:"_1yep5z6so _1yep5z6sp _1yep5z6sq"},"7xl":{conditions:{mobile:"_1yep5z6sr",tablet:"_1yep5z6ss",desktop:"_1yep5z6st"},defaultClass:"_1yep5z6sr _1yep5z6ss _1yep5z6st"},"8xl":{conditions:{mobile:"_1yep5z6su",tablet:"_1yep5z6sv",desktop:"_1yep5z6sw"},defaultClass:"_1yep5z6su _1yep5z6sv _1yep5z6sw"},"9xl":{conditions:{mobile:"_1yep5z6sx",tablet:"_1yep5z6sy",desktop:"_1yep5z6sz"},defaultClass:"_1yep5z6sx _1yep5z6sy _1yep5z6sz"},none:{conditions:{mobile:"_1yep5z6t0",tablet:"_1yep5z6t1",desktop:"_1yep5z6t2"},defaultClass:"_1yep5z6t0 _1yep5z6t1 _1yep5z6t2"}},responsiveArray:void 0},marginBlockEnd:{values:{xs:{conditions:{mobile:"_1yep5z6t3",tablet:"_1yep5z6t4",desktop:"_1yep5z6t5"},defaultClass:"_1yep5z6t3 _1yep5z6t4 _1yep5z6t5"},sm:{conditions:{mobile:"_1yep5z6t6",tablet:"_1yep5z6t7",desktop:"_1yep5z6t8"},defaultClass:"_1yep5z6t6 _1yep5z6t7 _1yep5z6t8"},md:{conditions:{mobile:"_1yep5z6t9",tablet:"_1yep5z6ta",desktop:"_1yep5z6tb"},defaultClass:"_1yep5z6t9 _1yep5z6ta _1yep5z6tb"},lg:{conditions:{mobile:"_1yep5z6tc",tablet:"_1yep5z6td",desktop:"_1yep5z6te"},defaultClass:"_1yep5z6tc _1yep5z6td _1yep5z6te"},xl:{conditions:{mobile:"_1yep5z6tf",tablet:"_1yep5z6tg",desktop:"_1yep5z6th"},defaultClass:"_1yep5z6tf _1yep5z6tg _1yep5z6th"},"2xl":{conditions:{mobile:"_1yep5z6ti",tablet:"_1yep5z6tj",desktop:"_1yep5z6tk"},defaultClass:"_1yep5z6ti _1yep5z6tj _1yep5z6tk"},"3xl":{conditions:{mobile:"_1yep5z6tl",tablet:"_1yep5z6tm",desktop:"_1yep5z6tn"},defaultClass:"_1yep5z6tl _1yep5z6tm _1yep5z6tn"},"4xl":{conditions:{mobile:"_1yep5z6to",tablet:"_1yep5z6tp",desktop:"_1yep5z6tq"},defaultClass:"_1yep5z6to _1yep5z6tp _1yep5z6tq"},"5xl":{conditions:{mobile:"_1yep5z6tr",tablet:"_1yep5z6ts",desktop:"_1yep5z6tt"},defaultClass:"_1yep5z6tr _1yep5z6ts _1yep5z6tt"},"6xl":{conditions:{mobile:"_1yep5z6tu",tablet:"_1yep5z6tv",desktop:"_1yep5z6tw"},defaultClass:"_1yep5z6tu _1yep5z6tv _1yep5z6tw"},"7xl":{conditions:{mobile:"_1yep5z6tx",tablet:"_1yep5z6ty",desktop:"_1yep5z6tz"},defaultClass:"_1yep5z6tx _1yep5z6ty _1yep5z6tz"},"8xl":{conditions:{mobile:"_1yep5z6u0",tablet:"_1yep5z6u1",desktop:"_1yep5z6u2"},defaultClass:"_1yep5z6u0 _1yep5z6u1 _1yep5z6u2"},"9xl":{conditions:{mobile:"_1yep5z6u3",tablet:"_1yep5z6u4",desktop:"_1yep5z6u5"},defaultClass:"_1yep5z6u3 _1yep5z6u4 _1yep5z6u5"},none:{conditions:{mobile:"_1yep5z6u6",tablet:"_1yep5z6u7",desktop:"_1yep5z6u8"},defaultClass:"_1yep5z6u6 _1yep5z6u7 _1yep5z6u8"}},responsiveArray:void 0},marginInlineStart:{values:{xs:{conditions:{mobile:"_1yep5z6u9",tablet:"_1yep5z6ua",desktop:"_1yep5z6ub"},defaultClass:"_1yep5z6u9 _1yep5z6ua _1yep5z6ub"},sm:{conditions:{mobile:"_1yep5z6uc",tablet:"_1yep5z6ud",desktop:"_1yep5z6ue"},defaultClass:"_1yep5z6uc _1yep5z6ud _1yep5z6ue"},md:{conditions:{mobile:"_1yep5z6uf",tablet:"_1yep5z6ug",desktop:"_1yep5z6uh"},defaultClass:"_1yep5z6uf _1yep5z6ug _1yep5z6uh"},lg:{conditions:{mobile:"_1yep5z6ui",tablet:"_1yep5z6uj",desktop:"_1yep5z6uk"},defaultClass:"_1yep5z6ui _1yep5z6uj _1yep5z6uk"},xl:{conditions:{mobile:"_1yep5z6ul",tablet:"_1yep5z6um",desktop:"_1yep5z6un"},defaultClass:"_1yep5z6ul _1yep5z6um _1yep5z6un"},"2xl":{conditions:{mobile:"_1yep5z6uo",tablet:"_1yep5z6up",desktop:"_1yep5z6uq"},defaultClass:"_1yep5z6uo _1yep5z6up _1yep5z6uq"},"3xl":{conditions:{mobile:"_1yep5z6ur",tablet:"_1yep5z6us",desktop:"_1yep5z6ut"},defaultClass:"_1yep5z6ur _1yep5z6us _1yep5z6ut"},"4xl":{conditions:{mobile:"_1yep5z6uu",tablet:"_1yep5z6uv",desktop:"_1yep5z6uw"},defaultClass:"_1yep5z6uu _1yep5z6uv _1yep5z6uw"},"5xl":{conditions:{mobile:"_1yep5z6ux",tablet:"_1yep5z6uy",desktop:"_1yep5z6uz"},defaultClass:"_1yep5z6ux _1yep5z6uy _1yep5z6uz"},"6xl":{conditions:{mobile:"_1yep5z6v0",tablet:"_1yep5z6v1",desktop:"_1yep5z6v2"},defaultClass:"_1yep5z6v0 _1yep5z6v1 _1yep5z6v2"},"7xl":{conditions:{mobile:"_1yep5z6v3",tablet:"_1yep5z6v4",desktop:"_1yep5z6v5"},defaultClass:"_1yep5z6v3 _1yep5z6v4 _1yep5z6v5"},"8xl":{conditions:{mobile:"_1yep5z6v6",tablet:"_1yep5z6v7",desktop:"_1yep5z6v8"},defaultClass:"_1yep5z6v6 _1yep5z6v7 _1yep5z6v8"},"9xl":{conditions:{mobile:"_1yep5z6v9",tablet:"_1yep5z6va",desktop:"_1yep5z6vb"},defaultClass:"_1yep5z6v9 _1yep5z6va _1yep5z6vb"},none:{conditions:{mobile:"_1yep5z6vc",tablet:"_1yep5z6vd",desktop:"_1yep5z6ve"},defaultClass:"_1yep5z6vc _1yep5z6vd _1yep5z6ve"}},responsiveArray:void 0},gap:{values:{xs:{conditions:{mobile:"_1yep5z6vf",tablet:"_1yep5z6vg",desktop:"_1yep5z6vh"},defaultClass:"_1yep5z6vf _1yep5z6vg _1yep5z6vh"},sm:{conditions:{mobile:"_1yep5z6vi",tablet:"_1yep5z6vj",desktop:"_1yep5z6vk"},defaultClass:"_1yep5z6vi _1yep5z6vj _1yep5z6vk"},md:{conditions:{mobile:"_1yep5z6vl",tablet:"_1yep5z6vm",desktop:"_1yep5z6vn"},defaultClass:"_1yep5z6vl _1yep5z6vm _1yep5z6vn"},lg:{conditions:{mobile:"_1yep5z6vo",tablet:"_1yep5z6vp",desktop:"_1yep5z6vq"},defaultClass:"_1yep5z6vo _1yep5z6vp _1yep5z6vq"},xl:{conditions:{mobile:"_1yep5z6vr",tablet:"_1yep5z6vs",desktop:"_1yep5z6vt"},defaultClass:"_1yep5z6vr _1yep5z6vs _1yep5z6vt"},"2xl":{conditions:{mobile:"_1yep5z6vu",tablet:"_1yep5z6vv",desktop:"_1yep5z6vw"},defaultClass:"_1yep5z6vu _1yep5z6vv _1yep5z6vw"},"3xl":{conditions:{mobile:"_1yep5z6vx",tablet:"_1yep5z6vy",desktop:"_1yep5z6vz"},defaultClass:"_1yep5z6vx _1yep5z6vy _1yep5z6vz"},"4xl":{conditions:{mobile:"_1yep5z6w0",tablet:"_1yep5z6w1",desktop:"_1yep5z6w2"},defaultClass:"_1yep5z6w0 _1yep5z6w1 _1yep5z6w2"},"5xl":{conditions:{mobile:"_1yep5z6w3",tablet:"_1yep5z6w4",desktop:"_1yep5z6w5"},defaultClass:"_1yep5z6w3 _1yep5z6w4 _1yep5z6w5"},"6xl":{conditions:{mobile:"_1yep5z6w6",tablet:"_1yep5z6w7",desktop:"_1yep5z6w8"},defaultClass:"_1yep5z6w6 _1yep5z6w7 _1yep5z6w8"},"7xl":{conditions:{mobile:"_1yep5z6w9",tablet:"_1yep5z6wa",desktop:"_1yep5z6wb"},defaultClass:"_1yep5z6w9 _1yep5z6wa _1yep5z6wb"},"8xl":{conditions:{mobile:"_1yep5z6wc",tablet:"_1yep5z6wd",desktop:"_1yep5z6we"},defaultClass:"_1yep5z6wc _1yep5z6wd _1yep5z6we"},"9xl":{conditions:{mobile:"_1yep5z6wf",tablet:"_1yep5z6wg",desktop:"_1yep5z6wh"},defaultClass:"_1yep5z6wf _1yep5z6wg _1yep5z6wh"},none:{conditions:{mobile:"_1yep5z6wi",tablet:"_1yep5z6wj",desktop:"_1yep5z6wk"},defaultClass:"_1yep5z6wi _1yep5z6wj _1yep5z6wk"}},responsiveArray:void 0}}};return e.styles.paddingBlockStart.responsiveArray=e.conditions.responsiveArray,e.styles.paddingInlineEnd.responsiveArray=e.conditions.responsiveArray,e.styles.paddingBlockEnd.responsiveArray=e.conditions.responsiveArray,e.styles.paddingInlineStart.responsiveArray=e.conditions.responsiveArray,e.styles.marginBlockStart.responsiveArray=e.conditions.responsiveArray,e.styles.marginInlineEnd.responsiveArray=e.conditions.responsiveArray,e.styles.marginBlockEnd.responsiveArray=e.conditions.responsiveArray,e.styles.marginInlineStart.responsiveArray=e.conditions.responsiveArray,e.styles.gap.responsiveArray=e.conditions.responsiveArray,e}(),function(){var e={conditions:{defaultCondition:["mobile","tablet","desktop"],conditionNames:["mobile","tablet","desktop"],responsiveArray:["mobile","tablet","desktop"]},styles:{borderRadius:{mappings:["borderStartStartRadius","borderStartEndRadius","borderEndStartRadius","borderEndEndRadius"]},borderTopRadius:{mappings:["borderStartStartRadius","borderStartEndRadius"]},borderBottomRadius:{mappings:["borderEndStartRadius","borderEndEndRadius"]},borderLeftRadius:{mappings:["borderStartStartRadius","borderEndStartRadius"]},borderRightRadius:{mappings:["borderStartEndRadius","borderEndEndRadius"]},borderStartStartRadius:{values:{xs:{conditions:{mobile:"_1yep5z6wl",tablet:"_1yep5z6wm",desktop:"_1yep5z6wn"},defaultClass:"_1yep5z6wl _1yep5z6wm _1yep5z6wn"},sm:{conditions:{mobile:"_1yep5z6wo",tablet:"_1yep5z6wp",desktop:"_1yep5z6wq"},defaultClass:"_1yep5z6wo _1yep5z6wp _1yep5z6wq"},md:{conditions:{mobile:"_1yep5z6wr",tablet:"_1yep5z6ws",desktop:"_1yep5z6wt"},defaultClass:"_1yep5z6wr _1yep5z6ws _1yep5z6wt"},lg:{conditions:{mobile:"_1yep5z6wu",tablet:"_1yep5z6wv",desktop:"_1yep5z6ww"},defaultClass:"_1yep5z6wu _1yep5z6wv _1yep5z6ww"},xl:{conditions:{mobile:"_1yep5z6wx",tablet:"_1yep5z6wy",desktop:"_1yep5z6wz"},defaultClass:"_1yep5z6wx _1yep5z6wy _1yep5z6wz"},"2xl":{conditions:{mobile:"_1yep5z6x0",tablet:"_1yep5z6x1",desktop:"_1yep5z6x2"},defaultClass:"_1yep5z6x0 _1yep5z6x1 _1yep5z6x2"},full:{conditions:{mobile:"_1yep5z6x3",tablet:"_1yep5z6x4",desktop:"_1yep5z6x5"},defaultClass:"_1yep5z6x3 _1yep5z6x4 _1yep5z6x5"},none:{conditions:{mobile:"_1yep5z6x6",tablet:"_1yep5z6x7",desktop:"_1yep5z6x8"},defaultClass:"_1yep5z6x6 _1yep5z6x7 _1yep5z6x8"}},responsiveArray:void 0},borderStartEndRadius:{values:{xs:{conditions:{mobile:"_1yep5z6x9",tablet:"_1yep5z6xa",desktop:"_1yep5z6xb"},defaultClass:"_1yep5z6x9 _1yep5z6xa _1yep5z6xb"},sm:{conditions:{mobile:"_1yep5z6xc",tablet:"_1yep5z6xd",desktop:"_1yep5z6xe"},defaultClass:"_1yep5z6xc _1yep5z6xd _1yep5z6xe"},md:{conditions:{mobile:"_1yep5z6xf",tablet:"_1yep5z6xg",desktop:"_1yep5z6xh"},defaultClass:"_1yep5z6xf _1yep5z6xg _1yep5z6xh"},lg:{conditions:{mobile:"_1yep5z6xi",tablet:"_1yep5z6xj",desktop:"_1yep5z6xk"},defaultClass:"_1yep5z6xi _1yep5z6xj _1yep5z6xk"},xl:{conditions:{mobile:"_1yep5z6xl",tablet:"_1yep5z6xm",desktop:"_1yep5z6xn"},defaultClass:"_1yep5z6xl _1yep5z6xm _1yep5z6xn"},"2xl":{conditions:{mobile:"_1yep5z6xo",tablet:"_1yep5z6xp",desktop:"_1yep5z6xq"},defaultClass:"_1yep5z6xo _1yep5z6xp _1yep5z6xq"},full:{conditions:{mobile:"_1yep5z6xr",tablet:"_1yep5z6xs",desktop:"_1yep5z6xt"},defaultClass:"_1yep5z6xr _1yep5z6xs _1yep5z6xt"},none:{conditions:{mobile:"_1yep5z6xu",tablet:"_1yep5z6xv",desktop:"_1yep5z6xw"},defaultClass:"_1yep5z6xu _1yep5z6xv _1yep5z6xw"}},responsiveArray:void 0},borderEndStartRadius:{values:{xs:{conditions:{mobile:"_1yep5z6xx",tablet:"_1yep5z6xy",desktop:"_1yep5z6xz"},defaultClass:"_1yep5z6xx _1yep5z6xy _1yep5z6xz"},sm:{conditions:{mobile:"_1yep5z6y0",tablet:"_1yep5z6y1",desktop:"_1yep5z6y2"},defaultClass:"_1yep5z6y0 _1yep5z6y1 _1yep5z6y2"},md:{conditions:{mobile:"_1yep5z6y3",tablet:"_1yep5z6y4",desktop:"_1yep5z6y5"},defaultClass:"_1yep5z6y3 _1yep5z6y4 _1yep5z6y5"},lg:{conditions:{mobile:"_1yep5z6y6",tablet:"_1yep5z6y7",desktop:"_1yep5z6y8"},defaultClass:"_1yep5z6y6 _1yep5z6y7 _1yep5z6y8"},xl:{conditions:{mobile:"_1yep5z6y9",tablet:"_1yep5z6ya",desktop:"_1yep5z6yb"},defaultClass:"_1yep5z6y9 _1yep5z6ya _1yep5z6yb"},"2xl":{conditions:{mobile:"_1yep5z6yc",tablet:"_1yep5z6yd",desktop:"_1yep5z6ye"},defaultClass:"_1yep5z6yc _1yep5z6yd _1yep5z6ye"},full:{conditions:{mobile:"_1yep5z6yf",tablet:"_1yep5z6yg",desktop:"_1yep5z6yh"},defaultClass:"_1yep5z6yf _1yep5z6yg _1yep5z6yh"},none:{conditions:{mobile:"_1yep5z6yi",tablet:"_1yep5z6yj",desktop:"_1yep5z6yk"},defaultClass:"_1yep5z6yi _1yep5z6yj _1yep5z6yk"}},responsiveArray:void 0},borderEndEndRadius:{values:{xs:{conditions:{mobile:"_1yep5z6yl",tablet:"_1yep5z6ym",desktop:"_1yep5z6yn"},defaultClass:"_1yep5z6yl _1yep5z6ym _1yep5z6yn"},sm:{conditions:{mobile:"_1yep5z6yo",tablet:"_1yep5z6yp",desktop:"_1yep5z6yq"},defaultClass:"_1yep5z6yo _1yep5z6yp _1yep5z6yq"},md:{conditions:{mobile:"_1yep5z6yr",tablet:"_1yep5z6ys",desktop:"_1yep5z6yt"},defaultClass:"_1yep5z6yr _1yep5z6ys _1yep5z6yt"},lg:{conditions:{mobile:"_1yep5z6yu",tablet:"_1yep5z6yv",desktop:"_1yep5z6yw"},defaultClass:"_1yep5z6yu _1yep5z6yv _1yep5z6yw"},xl:{conditions:{mobile:"_1yep5z6yx",tablet:"_1yep5z6yy",desktop:"_1yep5z6yz"},defaultClass:"_1yep5z6yx _1yep5z6yy _1yep5z6yz"},"2xl":{conditions:{mobile:"_1yep5z6z0",tablet:"_1yep5z6z1",desktop:"_1yep5z6z2"},defaultClass:"_1yep5z6z0 _1yep5z6z1 _1yep5z6z2"},full:{conditions:{mobile:"_1yep5z6z3",tablet:"_1yep5z6z4",desktop:"_1yep5z6z5"},defaultClass:"_1yep5z6z3 _1yep5z6z4 _1yep5z6z5"},none:{conditions:{mobile:"_1yep5z6z6",tablet:"_1yep5z6z7",desktop:"_1yep5z6z8"},defaultClass:"_1yep5z6z6 _1yep5z6z7 _1yep5z6z8"}},responsiveArray:void 0}}};return e.styles.borderStartStartRadius.responsiveArray=e.conditions.responsiveArray,e.styles.borderStartEndRadius.responsiveArray=e.conditions.responsiveArray,e.styles.borderEndStartRadius.responsiveArray=e.conditions.responsiveArray,e.styles.borderEndEndRadius.responsiveArray=e.conditions.responsiveArray,e}(),{conditions:void 0,styles:{boxShadow:{values:{low:{defaultClass:"_1yep5z6z9"},medium:{defaultClass:"_1yep5z6za"}}}}},{conditions:void 0,styles:{opacity:{values:{none:{defaultClass:"_1yep5z6zb"},low:{defaultClass:"_1yep5z6zc"},medium:{defaultClass:"_1yep5z6zd"},high:{defaultClass:"_1yep5z6ze"}}}}},{conditions:void 0,styles:{typography:{values:{"heading.h6.regular":{defaultClass:"_1yep5z6zf"},"heading.h6.medium":{defaultClass:"_1yep5z6zg"},"heading.h6.semibold":{defaultClass:"_1yep5z6zh"},"heading.h5.regular":{defaultClass:"_1yep5z6zi"},"heading.h5.medium":{defaultClass:"_1yep5z6zj"},"heading.h5.semibold":{defaultClass:"_1yep5z6zk"},"heading.h4.regular":{defaultClass:"_1yep5z6zl"},"heading.h4.medium":{defaultClass:"_1yep5z6zm"},"heading.h4.semibold":{defaultClass:"_1yep5z6zn"},"heading.h3.regular":{defaultClass:"_1yep5z6zo"},"heading.h3.medium":{defaultClass:"_1yep5z6zp"},"heading.h3.semibold":{defaultClass:"_1yep5z6zq"},"heading.h2.regular":{defaultClass:"_1yep5z6zr"},"heading.h2.medium":{defaultClass:"_1yep5z6zs"},"heading.h2.semibold":{defaultClass:"_1yep5z6zt"},"heading.h1.regular":{defaultClass:"_1yep5z6zu"},"heading.h1.medium":{defaultClass:"_1yep5z6zv"},"heading.h1.semibold":{defaultClass:"_1yep5z6zw"},"label.sm.regular":{defaultClass:"_1yep5z6zx"},"label.sm.medium":{defaultClass:"_1yep5z6zy"},"label.sm.semibold":{defaultClass:"_1yep5z6zz"},"label.md.regular":{defaultClass:"_1yep5z6100"},"label.md.medium":{defaultClass:"_1yep5z6101"},"label.md.semibold":{defaultClass:"_1yep5z6102"},"label.lg.regular":{defaultClass:"_1yep5z6103"},"label.lg.medium":{defaultClass:"_1yep5z6104"},"label.lg.semibold":{defaultClass:"_1yep5z6105"},"body.sm.regular":{defaultClass:"_1yep5z6106"},"body.sm.medium":{defaultClass:"_1yep5z6107"},"body.sm.semibold":{defaultClass:"_1yep5z6108"},"body.md.regular":{defaultClass:"_1yep5z6109"},"body.md.medium":{defaultClass:"_1yep5z610a"},"body.md.semibold":{defaultClass:"_1yep5z610b"},"body.lg.regular":{defaultClass:"_1yep5z610c"},"body.lg.medium":{defaultClass:"_1yep5z610d"},"body.lg.semibold":{defaultClass:"_1yep5z610e"}}}}},{conditions:void 0,styles:{color:{values:{"support.error.subtler":{defaultClass:"_1yep5z610f"},"support.error.subtle":{defaultClass:"_1yep5z610g"},"support.error.medium":{defaultClass:"_1yep5z610h"},"support.error.strong":{defaultClass:"_1yep5z610i"},"support.success.subtler":{defaultClass:"_1yep5z610j"},"support.success.subtle":{defaultClass:"_1yep5z610k"},"support.success.medium":{defaultClass:"_1yep5z610l"},"support.success.strong":{defaultClass:"_1yep5z610m"},"support.warning.subtler":{defaultClass:"_1yep5z610n"},"support.warning.subtle":{defaultClass:"_1yep5z610o"},"support.warning.medium":{defaultClass:"_1yep5z610p"},"support.warning.strong":{defaultClass:"_1yep5z610q"},"support.info.subtler":{defaultClass:"_1yep5z610r"},"support.info.subtle":{defaultClass:"_1yep5z610s"},"support.info.medium":{defaultClass:"_1yep5z610t"},"support.info.strong":{defaultClass:"_1yep5z610u"},"focused.default":{defaultClass:"_1yep5z610v"},"focused.inset":{defaultClass:"_1yep5z610w"},"text.primary":{defaultClass:"_1yep5z610x"},"text.secondary":{defaultClass:"_1yep5z610y"},"text.helper":{defaultClass:"_1yep5z610z"},"text.placeholder":{defaultClass:"_1yep5z6110"},"text.interactive.disabled":{defaultClass:"_1yep5z6111"},"text.inverse":{defaultClass:"_1yep5z6112"},"text.oninteractive":{defaultClass:"_1yep5z6113"},"text.interactive.enabled":{defaultClass:"_1yep5z6114"},"text.interactive.hovered":{defaultClass:"_1yep5z6115"},"text.interactive.active":{defaultClass:"_1yep5z6116"},"text.interactive.visited":{defaultClass:"_1yep5z6117"},"icon.primary":{defaultClass:"_1yep5z6118"},"icon.secondary":{defaultClass:"_1yep5z6119"},"icon.interactive.disabled":{defaultClass:"_1yep5z611a"},"icon.inverse":{defaultClass:"_1yep5z611b"},"icon.oninteractive":{defaultClass:"_1yep5z611c"},"icon.interactive.enabled":{defaultClass:"_1yep5z611d"},"icon.interactive.hovered":{defaultClass:"_1yep5z611e"},"icon.interactive.active":{defaultClass:"_1yep5z611f"},"icon.interactive.visited":{defaultClass:"_1yep5z611g"},"background.interactive.enabled":{defaultClass:"_1yep5z611h"},"background.interactive.hovered":{defaultClass:"_1yep5z611i"},"background.interactive.active":{defaultClass:"_1yep5z611j"},"background.interactive.visited":{defaultClass:"_1yep5z611k"},"background.interactive.disabled":{defaultClass:"_1yep5z611l"}}},backgroundColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z611m"},"support.error.subtle":{defaultClass:"_1yep5z611n"},"support.error.medium":{defaultClass:"_1yep5z611o"},"support.error.strong":{defaultClass:"_1yep5z611p"},"support.success.subtler":{defaultClass:"_1yep5z611q"},"support.success.subtle":{defaultClass:"_1yep5z611r"},"support.success.medium":{defaultClass:"_1yep5z611s"},"support.success.strong":{defaultClass:"_1yep5z611t"},"support.warning.subtler":{defaultClass:"_1yep5z611u"},"support.warning.subtle":{defaultClass:"_1yep5z611v"},"support.warning.medium":{defaultClass:"_1yep5z611w"},"support.warning.strong":{defaultClass:"_1yep5z611x"},"support.info.subtler":{defaultClass:"_1yep5z611y"},"support.info.subtle":{defaultClass:"_1yep5z611z"},"support.info.medium":{defaultClass:"_1yep5z6120"},"support.info.strong":{defaultClass:"_1yep5z6121"},"focused.default":{defaultClass:"_1yep5z6122"},"focused.inset":{defaultClass:"_1yep5z6123"},"background.primary.subtle":{defaultClass:"_1yep5z6124"},"background.primary.medium":{defaultClass:"_1yep5z6125"},"background.primary.strong":{defaultClass:"_1yep5z6126"},"background.secondary.subtle":{defaultClass:"_1yep5z6127"},"background.secondary.medium":{defaultClass:"_1yep5z6128"},"background.secondary.strong":{defaultClass:"_1yep5z6129"},"background.inverse.subtle":{defaultClass:"_1yep5z612a"},"background.inverse.medium":{defaultClass:"_1yep5z612b"},"background.inverse.strong":{defaultClass:"_1yep5z612c"},"background.overlay.subtle":{defaultClass:"_1yep5z612d"},"background.overlay.medium":{defaultClass:"_1yep5z612e"},"background.positive.subtle":{defaultClass:"_1yep5z612f"},"background.positive.medium":{defaultClass:"_1yep5z612g"},"background.positive.strong":{defaultClass:"_1yep5z612h"},"background.interactive.enabled":{defaultClass:"_1yep5z612i"},"background.interactive.hovered":{defaultClass:"_1yep5z612j"},"background.interactive.active":{defaultClass:"_1yep5z612k"},"background.interactive.visited":{defaultClass:"_1yep5z612l"},"background.interactive.disabled":{defaultClass:"_1yep5z612m"},"border.positive.interactive.enabled":{defaultClass:"_1yep5z612n"}}},borderColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z612o"},"support.error.subtle":{defaultClass:"_1yep5z612p"},"support.error.medium":{defaultClass:"_1yep5z612q"},"support.error.strong":{defaultClass:"_1yep5z612r"},"support.success.subtler":{defaultClass:"_1yep5z612s"},"support.success.subtle":{defaultClass:"_1yep5z612t"},"support.success.medium":{defaultClass:"_1yep5z612u"},"support.success.strong":{defaultClass:"_1yep5z612v"},"support.warning.subtler":{defaultClass:"_1yep5z612w"},"support.warning.subtle":{defaultClass:"_1yep5z612x"},"support.warning.medium":{defaultClass:"_1yep5z612y"},"support.warning.strong":{defaultClass:"_1yep5z612z"},"support.info.subtler":{defaultClass:"_1yep5z6130"},"support.info.subtle":{defaultClass:"_1yep5z6131"},"support.info.medium":{defaultClass:"_1yep5z6132"},"support.info.strong":{defaultClass:"_1yep5z6133"},"focused.default":{defaultClass:"_1yep5z6134"},"focused.inset":{defaultClass:"_1yep5z6135"},"border.subtle":{defaultClass:"_1yep5z6136"},"border.medium":{defaultClass:"_1yep5z6137"},"border.strong":{defaultClass:"_1yep5z6138"},"border.inverse":{defaultClass:"_1yep5z6139"},"border.interactive.enabled":{defaultClass:"_1yep5z613a"},"border.interactive.hovered":{defaultClass:"_1yep5z613b"},"border.interactive.active":{defaultClass:"_1yep5z613c"},"border.interactive.visited":{defaultClass:"_1yep5z613d"},"border.interactive.disabled":{defaultClass:"_1yep5z613e"},"border.positive.interactive.enabled":{defaultClass:"_1yep5z613f"},"border.positive.medium":{defaultClass:"_1yep5z613g"},"border.positive.strong":{defaultClass:"_1yep5z613h"},"border.positive.subtle":{defaultClass:"_1yep5z613i"},transparent:{defaultClass:"_1yep5z613j"}}},outlineColor:{values:{"support.error.subtler":{defaultClass:"_1yep5z613k"},"support.error.subtle":{defaultClass:"_1yep5z613l"},"support.error.medium":{defaultClass:"_1yep5z613m"},"support.error.strong":{defaultClass:"_1yep5z613n"},"support.success.subtler":{defaultClass:"_1yep5z613o"},"support.success.subtle":{defaultClass:"_1yep5z613p"},"support.success.medium":{defaultClass:"_1yep5z613q"},"support.success.strong":{defaultClass:"_1yep5z613r"},"support.warning.subtler":{defaultClass:"_1yep5z613s"},"support.warning.subtle":{defaultClass:"_1yep5z613t"},"support.warning.medium":{defaultClass:"_1yep5z613u"},"support.warning.strong":{defaultClass:"_1yep5z613v"},"support.info.subtler":{defaultClass:"_1yep5z613w"},"support.info.subtle":{defaultClass:"_1yep5z613x"},"support.info.medium":{defaultClass:"_1yep5z613y"},"support.info.strong":{defaultClass:"_1yep5z613z"},"focused.default":{defaultClass:"_1yep5z6140"},"focused.inset":{defaultClass:"_1yep5z6141"},"border.subtle":{defaultClass:"_1yep5z6142"},"border.medium":{defaultClass:"_1yep5z6143"},"border.strong":{defaultClass:"_1yep5z6144"},"border.inverse":{defaultClass:"_1yep5z6145"},"border.interactive.enabled":{defaultClass:"_1yep5z6146"},"border.interactive.hovered":{defaultClass:"_1yep5z6147"},"border.interactive.active":{defaultClass:"_1yep5z6148"},"border.interactive.visited":{defaultClass:"_1yep5z6149"},"border.interactive.disabled":{defaultClass:"_1yep5z614a"},"border.positive.interactive.enabled":{defaultClass:"_1yep5z614b"},"border.positive.medium":{defaultClass:"_1yep5z614c"},"border.positive.strong":{defaultClass:"_1yep5z614d"},"border.positive.subtle":{defaultClass:"_1yep5z614e"},transparent:{defaultClass:"_1yep5z614f"}}}}},function(){var e={conditions:{defaultCondition:["mobile","tablet","desktop"],conditionNames:["mobile","tablet","desktop"],responsiveArray:["mobile","tablet","desktop"]},styles:{position:{values:{relative:{conditions:{mobile:"_1yep5z614g",tablet:"_1yep5z614h",desktop:"_1yep5z614i"},defaultClass:"_1yep5z614g _1yep5z614h _1yep5z614i"},absolute:{conditions:{mobile:"_1yep5z614j",tablet:"_1yep5z614k",desktop:"_1yep5z614l"},defaultClass:"_1yep5z614j _1yep5z614k _1yep5z614l"},fixed:{conditions:{mobile:"_1yep5z614m",tablet:"_1yep5z614n",desktop:"_1yep5z614o"},defaultClass:"_1yep5z614m _1yep5z614n _1yep5z614o"}},responsiveArray:void 0},display:{values:{none:{conditions:{mobile:"_1yep5z614p",tablet:"_1yep5z614q",desktop:"_1yep5z614r"},defaultClass:"_1yep5z614p _1yep5z614q _1yep5z614r"},block:{conditions:{mobile:"_1yep5z614s",tablet:"_1yep5z614t",desktop:"_1yep5z614u"},defaultClass:"_1yep5z614s _1yep5z614t _1yep5z614u"},flex:{conditions:{mobile:"_1yep5z614v",tablet:"_1yep5z614w",desktop:"_1yep5z614x"},defaultClass:"_1yep5z614v _1yep5z614w _1yep5z614x"},"inline-flex":{conditions:{mobile:"_1yep5z614y",tablet:"_1yep5z614z",desktop:"_1yep5z6150"},defaultClass:"_1yep5z614y _1yep5z614z _1yep5z6150"},grid:{conditions:{mobile:"_1yep5z6151",tablet:"_1yep5z6152",desktop:"_1yep5z6153"},defaultClass:"_1yep5z6151 _1yep5z6152 _1yep5z6153"}},responsiveArray:void 0},flexDirection:{values:{row:{conditions:{mobile:"_1yep5z6154",tablet:"_1yep5z6155",desktop:"_1yep5z6156"},defaultClass:"_1yep5z6154 _1yep5z6155 _1yep5z6156"},column:{conditions:{mobile:"_1yep5z6157",tablet:"_1yep5z6158",desktop:"_1yep5z6159"},defaultClass:"_1yep5z6157 _1yep5z6158 _1yep5z6159"},"row-reverse":{conditions:{mobile:"_1yep5z615a",tablet:"_1yep5z615b",desktop:"_1yep5z615c"},defaultClass:"_1yep5z615a _1yep5z615b _1yep5z615c"},"column-reverse":{conditions:{mobile:"_1yep5z615d",tablet:"_1yep5z615e",desktop:"_1yep5z615f"},defaultClass:"_1yep5z615d _1yep5z615e _1yep5z615f"}},responsiveArray:void 0},alignItems:{values:{stretch:{conditions:{mobile:"_1yep5z615g",tablet:"_1yep5z615h",desktop:"_1yep5z615i"},defaultClass:"_1yep5z615g _1yep5z615h _1yep5z615i"},"flex-start":{conditions:{mobile:"_1yep5z615j",tablet:"_1yep5z615k",desktop:"_1yep5z615l"},defaultClass:"_1yep5z615j _1yep5z615k _1yep5z615l"},center:{conditions:{mobile:"_1yep5z615m",tablet:"_1yep5z615n",desktop:"_1yep5z615o"},defaultClass:"_1yep5z615m _1yep5z615n _1yep5z615o"},"flex-end":{conditions:{mobile:"_1yep5z615p",tablet:"_1yep5z615q",desktop:"_1yep5z615r"},defaultClass:"_1yep5z615p _1yep5z615q _1yep5z615r"}},responsiveArray:void 0},alignSelf:{values:{stretch:{conditions:{mobile:"_1yep5z615s",tablet:"_1yep5z615t",desktop:"_1yep5z615u"},defaultClass:"_1yep5z615s _1yep5z615t _1yep5z615u"},"flex-start":{conditions:{mobile:"_1yep5z615v",tablet:"_1yep5z615w",desktop:"_1yep5z615x"},defaultClass:"_1yep5z615v _1yep5z615w _1yep5z615x"},center:{conditions:{mobile:"_1yep5z615y",tablet:"_1yep5z615z",desktop:"_1yep5z6160"},defaultClass:"_1yep5z615y _1yep5z615z _1yep5z6160"},"flex-end":{conditions:{mobile:"_1yep5z6161",tablet:"_1yep5z6162",desktop:"_1yep5z6163"},defaultClass:"_1yep5z6161 _1yep5z6162 _1yep5z6163"}},responsiveArray:void 0},flex:{values:{0:{conditions:{mobile:"_1yep5z6164",tablet:"_1yep5z6165",desktop:"_1yep5z6166"},defaultClass:"_1yep5z6164 _1yep5z6165 _1yep5z6166"},1:{conditions:{mobile:"_1yep5z6167",tablet:"_1yep5z6168",desktop:"_1yep5z6169"},defaultClass:"_1yep5z6167 _1yep5z6168 _1yep5z6169"}},responsiveArray:void 0},justifyContent:{values:{stretch:{conditions:{mobile:"_1yep5z616a",tablet:"_1yep5z616b",desktop:"_1yep5z616c"},defaultClass:"_1yep5z616a _1yep5z616b _1yep5z616c"},"flex-start":{conditions:{mobile:"_1yep5z616d",tablet:"_1yep5z616e",desktop:"_1yep5z616f"},defaultClass:"_1yep5z616d _1yep5z616e _1yep5z616f"},center:{conditions:{mobile:"_1yep5z616g",tablet:"_1yep5z616h",desktop:"_1yep5z616i"},defaultClass:"_1yep5z616g _1yep5z616h _1yep5z616i"},"flex-end":{conditions:{mobile:"_1yep5z616j",tablet:"_1yep5z616k",desktop:"_1yep5z616l"},defaultClass:"_1yep5z616j _1yep5z616k _1yep5z616l"},"space-between":{conditions:{mobile:"_1yep5z616m",tablet:"_1yep5z616n",desktop:"_1yep5z616o"},defaultClass:"_1yep5z616m _1yep5z616n _1yep5z616o"}},responsiveArray:void 0},justifySelf:{values:{stretch:{conditions:{mobile:"_1yep5z616p",tablet:"_1yep5z616q",desktop:"_1yep5z616r"},defaultClass:"_1yep5z616p _1yep5z616q _1yep5z616r"},"flex-start":{conditions:{mobile:"_1yep5z616s",tablet:"_1yep5z616t",desktop:"_1yep5z616u"},defaultClass:"_1yep5z616s _1yep5z616t _1yep5z616u"},center:{conditions:{mobile:"_1yep5z616v",tablet:"_1yep5z616w",desktop:"_1yep5z616x"},defaultClass:"_1yep5z616v _1yep5z616w _1yep5z616x"},"flex-end":{conditions:{mobile:"_1yep5z616y",tablet:"_1yep5z616z",desktop:"_1yep5z6170"},defaultClass:"_1yep5z616y _1yep5z616z _1yep5z6170"}},responsiveArray:void 0},placeItems:{values:{stretch:{conditions:{mobile:"_1yep5z6171",tablet:"_1yep5z6172",desktop:"_1yep5z6173"},defaultClass:"_1yep5z6171 _1yep5z6172 _1yep5z6173"},"flex-start":{conditions:{mobile:"_1yep5z6174",tablet:"_1yep5z6175",desktop:"_1yep5z6176"},defaultClass:"_1yep5z6174 _1yep5z6175 _1yep5z6176"},center:{conditions:{mobile:"_1yep5z6177",tablet:"_1yep5z6178",desktop:"_1yep5z6179"},defaultClass:"_1yep5z6177 _1yep5z6178 _1yep5z6179"},"flex-end":{conditions:{mobile:"_1yep5z617a",tablet:"_1yep5z617b",desktop:"_1yep5z617c"},defaultClass:"_1yep5z617a _1yep5z617b _1yep5z617c"}},responsiveArray:void 0}}};return e.styles.position.responsiveArray=e.conditions.responsiveArray,e.styles.display.responsiveArray=e.conditions.responsiveArray,e.styles.flexDirection.responsiveArray=e.conditions.responsiveArray,e.styles.alignItems.responsiveArray=e.conditions.responsiveArray,e.styles.alignSelf.responsiveArray=e.conditions.responsiveArray,e.styles.flex.responsiveArray=e.conditions.responsiveArray,e.styles.justifyContent.responsiveArray=e.conditions.responsiveArray,e.styles.justifySelf.responsiveArray=e.conditions.responsiveArray,e.styles.placeItems.responsiveArray=e.conditions.responsiveArray,e}(),{conditions:void 0,styles:{transition:{values:{"transition.medium":{defaultClass:"_1yep5z617d"}}},transitionProperty:{values:{transform:{defaultClass:"_1yep5z617e"},opacity:{defaultClass:"_1yep5z617f"},"background-color":{defaultClass:"_1yep5z617g"}}}}},{conditions:void 0,styles:{inset:{mappings:["insetBlockStart","insetBlockEnd","insetInlineEnd","insetInlineStart"]},flexWrap:{values:{wrap:{defaultClass:"_1yep5z617h"},nowrap:{defaultClass:"_1yep5z617i"}}},insetBlockStart:{values:{0:{defaultClass:"_1yep5z617j"}}},insetBlockEnd:{values:{0:{defaultClass:"_1yep5z617k"}}},insetInlineStart:{values:{0:{defaultClass:"_1yep5z617l"}}},insetInlineEnd:{values:{0:{defaultClass:"_1yep5z617m"}}},flexShrink:{values:{0:{defaultClass:"_1yep5z617n"}}},flexGrow:{values:{0:{defaultClass:"_1yep5z617o"},1:{defaultClass:"_1yep5z617p"}}},width:{values:{full:{defaultClass:"_1yep5z617q"}}},height:{values:{full:{defaultClass:"_1yep5z617r"}}},cursor:{values:{pointer:{defaultClass:"_1yep5z617s"}}}}},{conditions:void 0,styles:{outline:{values:{none:{defaultClass:"_1yep5z617t"}}},outlineStyle:{values:{solid:{defaultClass:"_1yep5z617u"}}},outlineWidth:{values:{1:{defaultClass:"_1yep5z617v"},2:{defaultClass:"_1yep5z617w"}}},outlineOffset:{values:{1:{defaultClass:"_1yep5z617z"},2:{defaultClass:"_1yep5z6180"},"-2":{defaultClass:"_1yep5z617x"},"-1":{defaultClass:"_1yep5z617y"}}},border:{values:{none:{defaultClass:"_1yep5z6181"}}},borderStyle:{values:{solid:{defaultClass:"_1yep5z6182"},dashed:{defaultClass:"_1yep5z6183"}}},borderWidth:{values:{1:{defaultClass:"_1yep5z6184"},2:{defaultClass:"_1yep5z6185"}}}}}),f={elevation:{low:"0 0 4px 0 rgba(0, 0, 0, 0.4)",medium:"0 4px 16px 0 rgba(0, 0, 0, 0.15)"},opacity:{none:"0",low:"0.1",medium:"0.5",high:"0.9"},rounded:{xs:"2px",sm:"4px",md:"8px",lg:"12px",xl:"16px","2xl":"24px",full:"9999px"},spacing:{xs:"2px",sm:"4px",md:"8px",lg:"12px",xl:"16px","2xl":"24px","3xl":"32px","4xl":"40px","5xl":"48px","6xl":"64px","7xl":"80px","8xl":"96px","9xl":"160px"},color:{support:{error:{subtler:"#ffebe9",subtle:"#ffd4ce",medium:"#c83c29",strong:"#8a2100"},success:{subtler:"#ecfeda",subtle:"#d4fcac",medium:"#4B8017",strong:"#2D4D0E"},warning:{subtler:"#ffecd4",subtle:"#ffd4a1",medium:"#bd5a00",strong:"#9f4c00"},info:{subtler:"#eff4fb",subtle:"#d3dcff",medium:"#4537de",strong:"#2b1cc1"}},focused:{default:"#4537de",inset:"#ffffff"},background:{primary:{subtle:"#ffffff",medium:"#f6f9fd",strong:"#f0f3f9"},interactive:{enabled:"#4537de",hovered:"#2b1cc1",active:"#190d94",visited:"#190d94",disabled:"#a9aeb7"},inverse:{subtle:"#707785",medium:"#3d434e",strong:"#2b2e36"},overlay:{subtle:"rgb(100% 100% 100% / 0.25)",medium:"rgb(5.49% 7.06% 9.41% / 0.5)",interactive:"rgb(27.1% 21.6% 87.1% / 0.25)"},secondary:{subtle:"#f0f3f9",medium:"#d7dce4",strong:"#a9aeb7"},positive:{subtle:"#ffffff",medium:"#f6f9fd",strong:"#f0f3f9",interactive:{enabled:"#4537de"}}},text:{primary:"#2b2e36",secondary:"#4d525d",helper:"#606671",placeholder:"#707785",inverse:"#ffffff",oninteractive:"#ffffff",interactive:{enabled:"#4537de",hovered:"#2b1cc1",active:"#190d94",visited:"#190d94",disabled:"rgb(16.9% 18% 21.2% / 0.5)"}},icon:{primary:"#2b2e36",secondary:"#606671",inverse:"#ffffff",oninteractive:"#ffffff",interactive:{enabled:"#4537de",hovered:"#2b1cc1",active:"#190d94",visited:"#190d94",disabled:"rgb(16.9% 18% 21.2% / 0.5)"}},border:{subtle:"#f0f3f9",medium:"#d7dce4",strong:"#a9aeb7",inverse:"#2b2e36",interactive:{enabled:"#4537de",hovered:"#2b1cc1",active:"#190d94",visited:"#190d94",disabled:"#a9aeb7"},positive:{interactive:{enabled:"#4537de"},subtle:"#f0f3f9",medium:"#d7dce4",strong:"#a9aeb7"}}},typography:{heading:{h6:{regular:{font:'400 0.875rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},medium:{font:'500 0.875rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},semibold:{font:'600 0.875rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"}},h5:{regular:{font:'400 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},medium:{font:'500 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},semibold:{font:'600 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"}},h4:{regular:{font:'400 1.375rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},medium:{font:'500 1.375rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},semibold:{font:'600 1.375rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"}},h3:{regular:{font:'400 1.5rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},medium:{font:'500 1.5rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},semibold:{font:'600 1.5rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"}},h2:{regular:{font:'400 1.75rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},medium:{font:'500 1.75rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},semibold:{font:'600 1.75rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"}},h1:{regular:{font:'400 2rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},medium:{font:'500 2rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},semibold:{font:'600 2rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"}}},label:{sm:{regular:{font:'400 0.688rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.05px"},medium:{font:'500 0.688rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.05px"},semibold:{font:'600 0.688rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.05px"}},md:{regular:{font:'400 0.75rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},medium:{font:'500 0.75rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},semibold:{font:'600 0.75rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"}},lg:{regular:{font:'400 0.875rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},medium:{font:'500 0.875rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},semibold:{font:'600 0.875rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"}}},body:{sm:{regular:{font:'400 0.75rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.05px"},medium:{font:'500 0.75rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.05px"},semibold:{font:'600 0.75rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.05px"}},md:{regular:{font:'400 0.875rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},medium:{font:'500 0.875rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},semibold:{font:'600 0.875rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"}},lg:{regular:{font:'400 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},medium:{font:'500 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},semibold:{font:'600 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"}}}}},m={elevation:{low:"0 0 4px 0 rgba(0, 0, 0, 0.4)",medium:"0 4px 16px 0 rgba(0, 0, 0, 0.15)"},opacity:{none:"0",low:"0.1",medium:"0.5",high:"0.9"},rounded:{xs:"2px",sm:"4px",md:"8px",lg:"12px",xl:"16px","2xl":"24px",full:"9999px"},spacing:{xs:"2px",sm:"4px",md:"8px",lg:"12px",xl:"16px","2xl":"24px","3xl":"32px","4xl":"40px","5xl":"48px","6xl":"64px","7xl":"80px","8xl":"96px","9xl":"160px"},color:{support:{error:{subtler:"#711b00",subtle:"#b53007",medium:"#fe7a68",strong:"#ffd4ce"},success:{subtler:"#223a03",subtle:"#3C6612",medium:"#80CC34",strong:"#ecfeda"},warning:{subtler:"#562800",subtle:"#bd5a00",medium:"#eb7f00",strong:"#ffd4a1"},info:{subtler:"#190d94",subtle:"#4537de",medium:"#777cf0",strong:"#d3dcff"}},focused:{default:"#a8bbf8",inset:"#2b2e36"},background:{primary:{subtle:"#2b2e36",medium:"#21242c",strong:"#0e1218"},interactive:{enabled:"#a8bbf8",hovered:"#d3dcff",active:"#eff4fb",visited:"#eff4fb",disabled:"#606671"},inverse:{subtle:"#707785",medium:"#f0f3f9",strong:"#ffffff"},secondary:{subtle:"#3d434e",medium:"#4d525d",strong:"#606671"},overlay:{subtle:"rgb(100% 100% 100% / 0.25)",medium:"rgb(5.49% 7.06% 9.41% / 0.5)",interactive:"rgb(65.9% 73.3% 97.3% / 0.25)"},positive:{subtle:"#f0f3f9",medium:"#f6f9fd",strong:"#ffffff",interactive:{enabled:"#4537de"}}},text:{primary:"#ffffff",secondary:"#d7dce4",helper:"#a9aeb7",placeholder:"#a9aeb7",inverse:"#2b2e36",oninteractive:"#2b2e36",interactive:{enabled:"#a8bbf8",hovered:"#d3dcff",active:"#eff4fb",visited:"#eff4fb",disabled:"rgb(100% 100% 100% / 0.5)"}},icon:{primary:"#ffffff",secondary:"#a9aeb7",inverse:"#2b2e36",oninteractive:"#2b2e36",interactive:{enabled:"#a8bbf8",hovered:"#d3dcff",active:"#eff4fb",visited:"#eff4fb",disabled:"rgb(100% 100% 100% / 0.5)"}},border:{subtle:"#3d434e",medium:"#4d525d",strong:"#606671",inverse:"#ffffff",interactive:{enabled:"#a8bbf8",hovered:"#d3dcff",active:"#eff4fb",visited:"#eff4fb",disabled:"#606671"},positive:{interactive:{enabled:"#4537de"},subtle:"#f0f3f9",medium:"#d7dce4",strong:"#a9aeb7"}}},typography:{heading:{h6:{regular:{font:'400 0.875rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},medium:{font:'500 0.875rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},semibold:{font:'600 0.875rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"}},h5:{regular:{font:'400 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},medium:{font:'500 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},semibold:{font:'600 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"}},h4:{regular:{font:'400 1.375rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},medium:{font:'500 1.375rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},semibold:{font:'600 1.375rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"}},h3:{regular:{font:'400 1.5rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},medium:{font:'500 1.5rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},semibold:{font:'600 1.5rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"}},h2:{regular:{font:'400 1.75rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},medium:{font:'500 1.75rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},semibold:{font:'600 1.75rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"}},h1:{regular:{font:'400 2rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},medium:{font:'500 2rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"},semibold:{font:'600 2rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0"}}},label:{sm:{regular:{font:'400 0.688rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.05px"},medium:{font:'500 0.688rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.05px"},semibold:{font:'600 0.688rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.05px"}},md:{regular:{font:'400 0.75rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},medium:{font:'500 0.75rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},semibold:{font:'600 0.75rem/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"}},lg:{regular:{font:'400 0.875rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},medium:{font:'500 0.875rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},semibold:{font:'600 0.875rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"}}},body:{sm:{regular:{font:'400 0.75rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.05px"},medium:{font:'500 0.75rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.05px"},semibold:{font:'600 0.75rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.05px"}},md:{regular:{font:'400 0.875rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},medium:{font:'500 0.875rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},semibold:{font:'600 0.875rem/1.375 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"}},lg:{regular:{font:'400 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},medium:{font:'500 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"},semibold:{font:'600 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif',letterSpacing:"0.1px"}}}}},g={elevation:{low:"var(--bui-elevation-low)",medium:"var(--bui-elevation-medium)"},opacity:{none:"var(--bui-opacity-none)",low:"var(--bui-opacity-low)",medium:"var(--bui-opacity-medium)",high:"var(--bui-opacity-high)"},rounded:{xs:"var(--bui-rounded-xs)",sm:"var(--bui-rounded-sm)",md:"var(--bui-rounded-md)",lg:"var(--bui-rounded-lg)",xl:"var(--bui-rounded-xl)","2xl":"var(--bui-rounded-2-xl)",full:"var(--bui-rounded-full)"},spacing:{xs:"var(--bui-spacing-xs)",sm:"var(--bui-spacing-sm)",md:"var(--bui-spacing-md)",lg:"var(--bui-spacing-lg)",xl:"var(--bui-spacing-xl)","2xl":"var(--bui-spacing-2-xl)","3xl":"var(--bui-spacing-3-xl)","4xl":"var(--bui-spacing-4-xl)","5xl":"var(--bui-spacing-5-xl)","6xl":"var(--bui-spacing-6-xl)","7xl":"var(--bui-spacing-7-xl)","8xl":"var(--bui-spacing-8-xl)","9xl":"var(--bui-spacing-9-xl)"},color:{support:{error:{subtler:"var(--bui-color-support-error-subtler)",subtle:"var(--bui-color-support-error-subtle)",medium:"var(--bui-color-support-error-medium)",strong:"var(--bui-color-support-error-strong)"},success:{subtler:"var(--bui-color-support-success-subtler)",subtle:"var(--bui-color-support-success-subtle)",medium:"var(--bui-color-support-success-medium)",strong:"var(--bui-color-support-success-strong)"},warning:{subtler:"var(--bui-color-support-warning-subtler)",subtle:"var(--bui-color-support-warning-subtle)",medium:"var(--bui-color-support-warning-medium)",strong:"var(--bui-color-support-warning-strong)"},info:{subtler:"var(--bui-color-support-info-subtler)",subtle:"var(--bui-color-support-info-subtle)",medium:"var(--bui-color-support-info-medium)",strong:"var(--bui-color-support-info-strong)"}},focused:{default:"var(--bui-color-focused-default)",inset:"var(--bui-color-focused-inset)"},background:{primary:{subtle:"var(--bui-color-background-primary-subtle)",medium:"var(--bui-color-background-primary-medium)",strong:"var(--bui-color-background-primary-strong)"},interactive:{enabled:"var(--bui-color-background-interactive-enabled)",hovered:"var(--bui-color-background-interactive-hovered)",active:"var(--bui-color-background-interactive-active)",visited:"var(--bui-color-background-interactive-visited)",disabled:"var(--bui-color-background-interactive-disabled)"},inverse:{subtle:"var(--bui-color-background-inverse-subtle)",medium:"var(--bui-color-background-inverse-medium)",strong:"var(--bui-color-background-inverse-strong)"},secondary:{subtle:"var(--bui-color-background-secondary-subtle)",medium:"var(--bui-color-background-secondary-medium)",strong:"var(--bui-color-background-secondary-strong)"},overlay:{subtle:"var(--bui-color-background-overlay-subtle)",medium:"var(--bui-color-background-overlay-medium)",interactive:"var(--bui-color-background-overlay-interactive)"},positive:{subtle:"var(--bui-color-background-positive-subtle)",medium:"var(--bui-color-background-positive-medium)",strong:"var(--bui-color-background-positive-strong)",interactive:{enabled:"var(--bui-color-background-positive-interactive-enabled)"}}},text:{primary:"var(--bui-color-text-primary)",secondary:"var(--bui-color-text-secondary)",helper:"var(--bui-color-text-helper)",placeholder:"var(--bui-color-text-placeholder)",inverse:"var(--bui-color-text-inverse)",oninteractive:"var(--bui-color-text-oninteractive)",interactive:{enabled:"var(--bui-color-text-interactive-enabled)",hovered:"var(--bui-color-text-interactive-hovered)",active:"var(--bui-color-text-interactive-active)",visited:"var(--bui-color-text-interactive-visited)",disabled:"var(--bui-color-text-interactive-disabled)"}},icon:{primary:"var(--bui-color-icon-primary)",secondary:"var(--bui-color-icon-secondary)",inverse:"var(--bui-color-icon-inverse)",oninteractive:"var(--bui-color-icon-oninteractive)",interactive:{enabled:"var(--bui-color-icon-interactive-enabled)",hovered:"var(--bui-color-icon-interactive-hovered)",active:"var(--bui-color-icon-interactive-active)",visited:"var(--bui-color-icon-interactive-visited)",disabled:"var(--bui-color-icon-interactive-disabled)"}},border:{subtle:"var(--bui-color-border-subtle)",medium:"var(--bui-color-border-medium)",strong:"var(--bui-color-border-strong)",inverse:"var(--bui-color-border-inverse)",interactive:{enabled:"var(--bui-color-border-interactive-enabled)",hovered:"var(--bui-color-border-interactive-hovered)",active:"var(--bui-color-border-interactive-active)",visited:"var(--bui-color-border-interactive-visited)",disabled:"var(--bui-color-border-interactive-disabled)"},positive:{interactive:{enabled:"var(--bui-color-border-positive-interactive-enabled)"},subtle:"var(--bui-color-border-positive-subtle)",medium:"var(--bui-color-border-positive-medium)",strong:"var(--bui-color-border-positive-strong)"}}},typography:{heading:{h6:{regular:{font:"var(--bui-typography-heading-h-6-regular-font)",letterSpacing:"var(--bui-typography-heading-h-6-regular-letter-spacing)"},medium:{font:"var(--bui-typography-heading-h-6-medium-font)",letterSpacing:"var(--bui-typography-heading-h-6-medium-letter-spacing)"},semibold:{font:"var(--bui-typography-heading-h-6-semibold-font)",letterSpacing:"var(--bui-typography-heading-h-6-semibold-letter-spacing)"}},h5:{regular:{font:"var(--bui-typography-heading-h-5-regular-font)",letterSpacing:"var(--bui-typography-heading-h-5-regular-letter-spacing)"},medium:{font:"var(--bui-typography-heading-h-5-medium-font)",letterSpacing:"var(--bui-typography-heading-h-5-medium-letter-spacing)"},semibold:{font:"var(--bui-typography-heading-h-5-semibold-font)",letterSpacing:"var(--bui-typography-heading-h-5-semibold-letter-spacing)"}},h4:{regular:{font:"var(--bui-typography-heading-h-4-regular-font)",letterSpacing:"var(--bui-typography-heading-h-4-regular-letter-spacing)"},medium:{font:"var(--bui-typography-heading-h-4-medium-font)",letterSpacing:"var(--bui-typography-heading-h-4-medium-letter-spacing)"},semibold:{font:"var(--bui-typography-heading-h-4-semibold-font)",letterSpacing:"var(--bui-typography-heading-h-4-semibold-letter-spacing)"}},h3:{regular:{font:"var(--bui-typography-heading-h-3-regular-font)",letterSpacing:"var(--bui-typography-heading-h-3-regular-letter-spacing)"},medium:{font:"var(--bui-typography-heading-h-3-medium-font)",letterSpacing:"var(--bui-typography-heading-h-3-medium-letter-spacing)"},semibold:{font:"var(--bui-typography-heading-h-3-semibold-font)",letterSpacing:"var(--bui-typography-heading-h-3-semibold-letter-spacing)"}},h2:{regular:{font:"var(--bui-typography-heading-h-2-regular-font)",letterSpacing:"var(--bui-typography-heading-h-2-regular-letter-spacing)"},medium:{font:"var(--bui-typography-heading-h-2-medium-font)",letterSpacing:"var(--bui-typography-heading-h-2-medium-letter-spacing)"},semibold:{font:"var(--bui-typography-heading-h-2-semibold-font)",letterSpacing:"var(--bui-typography-heading-h-2-semibold-letter-spacing)"}},h1:{regular:{font:"var(--bui-typography-heading-h-1-regular-font)",letterSpacing:"var(--bui-typography-heading-h-1-regular-letter-spacing)"},medium:{font:"var(--bui-typography-heading-h-1-medium-font)",letterSpacing:"var(--bui-typography-heading-h-1-medium-letter-spacing)"},semibold:{font:"var(--bui-typography-heading-h-1-semibold-font)",letterSpacing:"var(--bui-typography-heading-h-1-semibold-letter-spacing)"}}},label:{sm:{regular:{font:"var(--bui-typography-label-sm-regular-font)",letterSpacing:"var(--bui-typography-label-sm-regular-letter-spacing)"},medium:{font:"var(--bui-typography-label-sm-medium-font)",letterSpacing:"var(--bui-typography-label-sm-medium-letter-spacing)"},semibold:{font:"var(--bui-typography-label-sm-semibold-font)",letterSpacing:"var(--bui-typography-label-sm-semibold-letter-spacing)"}},md:{regular:{font:"var(--bui-typography-label-md-regular-font)",letterSpacing:"var(--bui-typography-label-md-regular-letter-spacing)"},medium:{font:"var(--bui-typography-label-md-medium-font)",letterSpacing:"var(--bui-typography-label-md-medium-letter-spacing)"},semibold:{font:"var(--bui-typography-label-md-semibold-font)",letterSpacing:"var(--bui-typography-label-md-semibold-letter-spacing)"}},lg:{regular:{font:"var(--bui-typography-label-lg-regular-font)",letterSpacing:"var(--bui-typography-label-lg-regular-letter-spacing)"},medium:{font:"var(--bui-typography-label-lg-medium-font)",letterSpacing:"var(--bui-typography-label-lg-medium-letter-spacing)"},semibold:{font:"var(--bui-typography-label-lg-semibold-font)",letterSpacing:"var(--bui-typography-label-lg-semibold-letter-spacing)"}}},body:{sm:{regular:{font:"var(--bui-typography-body-sm-regular-font)",letterSpacing:"var(--bui-typography-body-sm-regular-letter-spacing)"},medium:{font:"var(--bui-typography-body-sm-medium-font)",letterSpacing:"var(--bui-typography-body-sm-medium-letter-spacing)"},semibold:{font:"var(--bui-typography-body-sm-semibold-font)",letterSpacing:"var(--bui-typography-body-sm-semibold-letter-spacing)"}},md:{regular:{font:"var(--bui-typography-body-md-regular-font)",letterSpacing:"var(--bui-typography-body-md-regular-letter-spacing)"},medium:{font:"var(--bui-typography-body-md-medium-font)",letterSpacing:"var(--bui-typography-body-md-medium-letter-spacing)"},semibold:{font:"var(--bui-typography-body-md-semibold-font)",letterSpacing:"var(--bui-typography-body-md-semibold-letter-spacing)"}},lg:{regular:{font:"var(--bui-typography-body-lg-regular-font)",letterSpacing:"var(--bui-typography-body-lg-regular-letter-spacing)"},medium:{font:"var(--bui-typography-body-lg-medium-font)",letterSpacing:"var(--bui-typography-body-lg-medium-letter-spacing)"},semibold:{font:"var(--bui-typography-body-lg-semibold-font)",letterSpacing:"var(--bui-typography-body-lg-semibold-letter-spacing)"}}}}},v=(0,r.mapValues)((0,r.omit)({mobile:0,tablet:768,desktop:1280},"mobile"),(e=>`screen and (min-width: ${e}px)`)),y=e=>t=>t&&0!==Object.keys(t).length?{[v[e]]:t}:{},b=(y("tablet"),y("desktop"),{dialog:{row:{padding:{vertical:{xs:["xs","sm","sm"],sm:["sm","md","md"],md:["md","lg","lg"],lg:["lg","xl","xl"],xl:["lg","2xl","2xl"]},horizontal:{lg:["lg","2xl","2xl"],md:["sm","xl","xl"],sm:["sm","lg","lg"]}}}}});var w=d;w.base=d,w.variants=h,w.compoundVariants=p},40027:(e,t,n)=>{"use strict";n.d(t,{l5:()=>D,xW:()=>E,eh:()=>V,nP:()=>K,n_:()=>I,Fl:()=>R,N0:()=>j,bq:()=>M,gi:()=>P,YZ:()=>U,AY:()=>W,op:()=>B,jT:()=>A,V1:()=>C,gS:()=>O,gU:()=>$,Zt:()=>H});var r;r={"ar-AE":{alpha:"ألفا",black:"أسود",blue:"أزرق","blue purple":"أرجواني مزرق",brightness:"السطوع",brown:"بني","brown yellow":"أصفر بني",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"سماوي","cyan blue":"أزرق سماوي",dark:"داكن",gray:"رمادي",grayish:"مائل للرمادي",green:"أخضر","green cyan":"سماوي مخضر",hue:"درجة اللون",light:"فاتح",lightness:"الإضاءة",magenta:"أرجواني","magenta pink":"أرجواني وردي",orange:"برتقالي","orange yellow":"أصفر برتقالي",pale:"باهت",pink:"وردي","pink red":"أحمر وردي",purple:"أرجواني","purple magenta":"بنفسجي",red:"أحمر","red orange":"برتقالي محمر",saturation:"التشبع",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} شفاف`,"very dark":"داكن جدًا","very light":"فاتح جدًا",vibrant:"ساطع",white:"أبيض",yellow:"أصفر","yellow green":"أخضر مصفر"},"bg-BG":{alpha:"Алфа",black:"черно",blue:"Синьо","blue purple":"синьо лилаво",brightness:"Яркост",brown:"кафяво","brown yellow":"кафяво жълто",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"циан","cyan blue":"циан синьо",dark:"тъмно",gray:"сиво",grayish:"сивкав",green:"Зелено","green cyan":"зелен циан",hue:"Оттенък",light:"светло",lightness:"Лекота",magenta:"магента","magenta pink":"магента розово",orange:"оранжево","orange yellow":"оранжево жълто",pale:"бледо",pink:"розово","pink red":"розово червено",purple:"лилаво","purple magenta":"лилаво магента",red:"Червено","red orange":"червен портокал",saturation:"Наситеност",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} прозрачен`,"very dark":"много тъмно","very light":"много светло",vibrant:" ярко",white:"бяло",yellow:"жълто","yellow green":"жълто зелен"},"cs-CZ":{alpha:"Alfa",black:"černá",blue:"Modrá","blue purple":"modrofialová",brightness:"Jas",brown:"hnědá","brown yellow":"hnědožlutá",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"tyrkysová","cyan blue":"tyrkysovomodrá",dark:"tmavá",gray:"šedá",grayish:"našedlá",green:"Zelená","green cyan":"zelenotyrkysová",hue:"Odstín",light:"světlá",lightness:"Světlost",magenta:"purpurová","magenta pink":"purpurově růžová",orange:"oranžová","orange yellow":"oranžovožlutá",pale:"bledá",pink:"růžová","pink red":"růžovočervená",purple:"fialová","purple magenta":"fialově purpurová",red:"Červená","red orange":"červenooranžová",saturation:"Sytost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} průhledné`,"very dark":"velmi tmavá","very light":"velmi světlá",vibrant:"zářivá",white:"bílá",yellow:"žlutá","yellow green":"žlutozelená"},"da-DK":{alpha:"Alfa",black:"sort",blue:"Blå","blue purple":"blålilla",brightness:"Lysstyrke",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyan blå",dark:"mørk",gray:"grå",grayish:"grålig",green:"Grøn","green cyan":"grøn cyan",hue:"Tone",light:"lys",lightness:"Lyshed",magenta:"magenta","magenta pink":"magenta pink",orange:"orange","orange yellow":"orangegul",pale:"bleg",pink:"lyserød","pink red":"lyserødlig rød",purple:"lilla","purple magenta":"lilla magenta",red:"Rød","red orange":"rødorange",saturation:"Farvemætning",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} gennemsigtig`,"very dark":"meget mørk","very light":"meget lys",vibrant:"klar",white:"hvid",yellow:"gul","yellow green":"gulgrøn"},"de-DE":{alpha:"Alpha",black:"Schwarz",blue:"Blau","blue purple":"Blaulila",brightness:"Helligkeit",brown:"Braun","brown yellow":"Braungelb",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"Cyan","cyan blue":"Cyanblau",dark:"dunkles",gray:"Grau",grayish:"gräuliches",green:"Grün","green cyan":"Grüncyan",hue:"Farbton",light:"helles",lightness:"Leuchtkraft",magenta:"Magenta","magenta pink":"Magentarosa",orange:"Orange","orange yellow":"Orangegelb",pale:"blasses",pink:"Rosa","pink red":"Rosarot",purple:"Lila","purple magenta":"Lilamagenta",red:"Rot","red orange":"Rotorange",saturation:"Sättigung",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, zu ${e.percentTransparent} transparent`,"very dark":"sehr dunkles","very light":"sehr helles",vibrant:"lebhaftes",white:"Weiß",yellow:"Gelb","yellow green":"Gelbgrün"},"el-GR":{alpha:"Άλφα",black:"μαύρο",blue:"Μπλε","blue purple":"μπλε μωβ",brightness:"Φωτεινότητα",brown:"καφέ","brown yellow":"καφέ κίτρινο",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"κυανό","cyan blue":"κυανό μπλε",dark:"σκούρο",gray:"γκρι",grayish:"γκριζωπό",green:"Πράσινο","green cyan":"πράσινο κυανό",hue:"Τόνος",light:"ανοιχτό",lightness:"Φωτεινότητα",magenta:"ματζέντα","magenta pink":"ματζέντα ροζ",orange:"πορτοκαλί","orange yellow":"πορτοκαλί κίτρινο",pale:"ανοιχτό",pink:"ροζ","pink red":"ροζ κόκκινο",purple:"μωβ","purple magenta":"μωβ ματζέντα",red:"Κόκκινο","red orange":"κόκκινο πορτοκαλί",saturation:"Κορεσμός",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} διαφανές`,"very dark":"πολύ σκούρο","very light":"πολύ ανοιχτό",vibrant:"έντονο",white:"λευκό",yellow:"κίτρινο","yellow green":"κίτρινο πράσινο"},"en-US":{hue:"Hue",saturation:"Saturation",lightness:"Lightness",brightness:"Brightness",red:"Red",green:"Green",blue:"Blue",alpha:"Alpha",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"very dark",dark:"dark",light:"light","very light":"very light",pale:"pale",grayish:"grayish",vibrant:"vibrant",black:"black",white:"white",gray:"gray",pink:"pink","pink red":"pink red","red orange":"red orange",brown:"brown",orange:"orange","orange yellow":"orange yellow","brown yellow":"brown yellow",yellow:"yellow","yellow green":"yellow green","green cyan":"green cyan",cyan:"cyan","cyan blue":"cyan blue","blue purple":"blue purple",purple:"purple","purple magenta":"purple magenta",magenta:"magenta","magenta pink":"magenta pink"},"es-ES":{alpha:"Alpha",black:"negro",blue:"Azul","blue purple":"púrpura azulado",brightness:"Brillo",brown:"marrón","brown yellow":"amarillo amarronado",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cian","cyan blue":"azul cian",dark:"oscuro",gray:"gris",grayish:"grisáceo",green:"Verde","green cyan":"cian verdoso",hue:"Tono",light:"claro",lightness:"Luminosidad",magenta:"magenta","magenta pink":"rosa magenta",orange:"naranja","orange yellow":"amarillo anaranjado",pale:"pálido",pink:"rosa","pink red":"rojo rosado",purple:"morado","purple magenta":"magenta violáceo",red:"Rojo","red orange":"naranja rojizo",saturation:"Saturación",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":"muy oscuro","very light":"muy claro",vibrant:"intenso",white:"blanco",yellow:"amarillo","yellow green":"verde amarillento"},"et-EE":{alpha:"Alfa",black:"must",blue:"Sinine","blue purple":"sinakaslilla",brightness:"Heledus",brown:"pruun","brown yellow":"pruunikaskollane",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"tsüaan","cyan blue":"tsüaansinine",dark:"tume",gray:"hall",grayish:"hallikas",green:"Roheline","green cyan":"tsüaanroheline",hue:"Värv",light:"valgus",lightness:"Valgus",magenta:"magentapunane","magenta pink":"magentaroosa",orange:"oranž","orange yellow":"oranžikaskollane",pale:"kahvatu",pink:"roosa","pink red":"vaarikapunane",purple:"lilla","purple magenta":"purpurne magenta",red:"Punane","red orange":"punakasoranž",saturation:"Küllastus",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} läbipaistev`,"very dark":"väga tume","very light":"väga hele",vibrant:"ere",white:"valge",yellow:"kollane","yellow green":"kollakasroheline"},"fi-FI":{alpha:"Alpha",black:"musta",blue:"Sininen","blue purple":"sinivioletti",brightness:"Kirkkaus",brown:"ruskea","brown yellow":"ruskeankeltainen",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"syaani","cyan blue":"syaaninsininen",dark:"tumma",gray:"harmaa",grayish:"harmahtava",green:"Vihreä","green cyan":"vihreänsyaani",hue:"Sävy",light:"vaalea",lightness:"Valomäärä",magenta:"magenta","magenta pink":"magentapinkki",orange:"oranssi","orange yellow":"oranssinkeltainen",pale:"vaalea",pink:"pinkki","pink red":"vaaleanpunainen",purple:"violetti","purple magenta":"violettimagenta",red:"Punainen","red orange":"punaoranssi",saturation:"Värikylläisyys",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} läpinäkyvä`,"very dark":"hyvin tumma","very light":"erittäin vaalea",vibrant:"eloisa",white:"valkea",yellow:"keltainen","yellow green":"keltavihreä"},"fr-FR":{alpha:"Alpha",black:"Noir",blue:"Bleu","blue purple":"Violet bleu",brightness:"Luminosité",brown:"Brun","brown yellow":"Jaune brun",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"Cyan","cyan blue":"Bleu cyan",dark:"Sombre",gray:"Gris",grayish:"Grisâtre",green:"Vert","green cyan":"Cyan vert",hue:"Teinte",light:"Clair",lightness:"Luminosité",magenta:"Magenta","magenta pink":"Rose magenta",orange:"Orange","orange yellow":"Jaune orangé",pale:"Pâle",pink:"Rose","pink red":"Rouge rosé",purple:"Violet","purple magenta":"Magenta violet",red:"Rouge","red orange":"Orange rouge",saturation:"Saturation",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"Très sombre","very light":"Très clair",vibrant:"Vif",white:"Blanc",yellow:"Jaune","yellow green":"Vert jaune"},"he-IL":{alpha:"אלפא",black:"שחור",blue:"כחול","blue purple":"כחול סגול",brightness:"בהירות",brown:"חום","brown yellow":"חום צהוב",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"טורקיז","cyan blue":"כחול ציאן",dark:"כהה",gray:"אפור",grayish:"אפרפר",green:"ירוק","green cyan":"ציאן ירוק",hue:"גוון",light:"אור",lightness:"כמות אור",magenta:"מג'נטה","magenta pink":"ורוד מג'נטה",orange:"כתום","orange yellow":"כתום צהוב",pale:"חיוור",pink:"ורוד","pink red":"ורוד אדום",purple:"סגול","purple magenta":"מג'נטה סגול",red:"אדום","red orange":"כתום אדום",saturation:"רוויה",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} שקוף`,"very dark":"כהה מאוד","very light":"בהיר מאוד",vibrant:"תוסס",white:"לבן",yellow:"צהוב","yellow green":"צהוב ירוק"},"hr-HR":{alpha:"Alfa",black:"crno",blue:"Plava","blue purple":"plavo ljubičasta",brightness:"Svjetlina",brown:"smeđa","brown yellow":"smeđe žuta",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cijan","cyan blue":"cijan plava",dark:"tamno",gray:"siva",grayish:"sivkasto",green:"Zelena","green cyan":"zelena cijan",hue:"Nijansa",light:"svjetlo",lightness:"Osvijetljenost",magenta:"magenta","magenta pink":"magentno ružičasta",orange:"narančasta","orange yellow":"narančasto žuta",pale:"blijeda",pink:"ružičasta","pink red":"ružičasto crvena",purple:"ljubičasta","purple magenta":"ljubičasta magenta",red:"Crvena","red orange":"crveno narančasta",saturation:"Zasićenost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozirnosti`,"very dark":"jako tamna","very light":"vrlo svijetlo",vibrant:"vibrantna",white:"bijela",yellow:"žuto","yellow green":"žuto zelena"},"hu-HU":{alpha:"Alfa",black:"fekete",blue:"Kék","blue purple":"kék lila",brightness:"Fényesség",brown:"barna","brown yellow":"barna sárga",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciánkék","cyan blue":"ciánkék",dark:"sötét",gray:"szürke",grayish:"szürkés",green:"Zöld","green cyan":"zöld ciánkék",hue:"Színárnyalat",light:"világos",lightness:"Világosság",magenta:"bíbor","magenta pink":"bíbor rózsaszín",orange:"narancs","orange yellow":"narancssárga",pale:"halvány",pink:"rózsaszín","pink red":"rózsaszín piros",purple:"lila","purple magenta":"lila bíbor",red:"Piros","red orange":"piros narancs",saturation:"Telítettség",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} átlátszó`,"very dark":"nagyon sötét","very light":"nagyon világos",vibrant:"élénk",white:"fehér",yellow:"sárga","yellow green":"sárga zöld"},"it-IT":{alpha:"Alfa",black:"nero",blue:"Blu","blue purple":"blu viola",brightness:"Luminosità",brown:"marrone","brown yellow":"giallo bruno",colorName:e=>`${e.hue} ${e.chroma} ${e.lightness}`,cyan:"ciano","cyan blue":"blu ciano",dark:"scuro",gray:"grigio",grayish:"grigiastro",green:"Verde","green cyan":"verde ciano",hue:"Tonalità",light:"chiaro",lightness:"Luminosità",magenta:"magenta","magenta pink":"rosa magenta",orange:"arancio","orange yellow":"giallo arancio",pale:"tenue",pink:"rosa","pink red":"rosa rosso",purple:"viola","purple magenta":"viola magenta",red:"Rosso","red orange":"rosso arancio",saturation:"Saturazione",transparentColorName:e=>`${e.hue} ${e.chroma} ${e.lightness}, trasparenza ${e.percentTransparent}`,"very dark":"molto scuro","very light":"molto chiaro",vibrant:"vivace",white:"bianco",yellow:"giallo","yellow green":"giallo verde"},"ja-JP":{alpha:"アルファ",black:"ブラック",blue:"青","blue purple":"ブルーパープル",brightness:"明るさ",brown:"ブラウン","brown yellow":"ブラウンイエロー",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"シアン","cyan blue":"シアンブルー",dark:"ダーク",gray:"グレー",grayish:"グレイッシュ",green:"緑","green cyan":"グリーンシアン",hue:"色相",light:"ライト",lightness:"明度",magenta:"マゼンタ","magenta pink":"マゼンタピンク",orange:"オレンジ","orange yellow":"オレンジイエロー",pale:"ペール",pink:"ピンク","pink red":"ピンクレッド",purple:"パープル","purple magenta":"パープルマゼンタ",red:"赤","red orange":"レッドオレンジ",saturation:"彩度",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} 透明`,"very dark":"最も暗い","very light":"ベリーライト",vibrant:"鮮やか",white:"ホワイト",yellow:"イエロー","yellow green":"イエローグリーン"},"ko-KR":{alpha:"알파",black:"검은색",blue:"파랑","blue purple":"청자색",brightness:"명도",brown:"갈색","brown yellow":"황갈색",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"청록색","cyan blue":"청록색",dark:"다크",gray:"회색",grayish:"회갈색",green:"초록","green cyan":"청록색",hue:"색조",light:"라이트",lightness:"밝기",magenta:"자홍색","magenta pink":"마젠타 핑크",orange:"주황색","orange yellow":"불그스름한 노랑",pale:"흙색",pink:"분홍색","pink red":"핑크 레드",purple:"자주색","purple magenta":"보라빛 자홍색",red:"빨강","red orange":"붉은 주황색",saturation:"채도",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} 투명도`,"very dark":"매우 어두운","very light":"매우 연함",vibrant:"강렬한",white:"흰색",yellow:"노란색","yellow green":"연두색"},"lt-LT":{alpha:"Alfa",black:"juoda",blue:"Mėlyna","blue purple":"melsvai violetinė",brightness:"Ryškumas",brown:"ruda","brown yellow":"rusvai geltona",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"žalsvai mėlyna","cyan blue":"žalsvai mėlyna",dark:"tamsi",gray:"pilka",grayish:"pilkšva",green:"Žalia","green cyan":"žalsvai mėlyna",hue:"Atspalvis",light:"šviesi",lightness:"Šviesumas",magenta:"rausvai raudona","magenta pink":"purpurinė",orange:"oranžinė","orange yellow":"oranžinio atspalvio geltona",pale:"blyški",pink:"rožinė","pink red":"rožinė raudona",purple:"violetinė","purple magenta":"purpurinė rausvai raudona",red:"Raudona","red orange":"rausvai oranžinė",saturation:"Įsotinimas",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} skaidri`,"very dark":"labai tamsi","very light":"labai šviesi",vibrant:"ryški",white:"balta",yellow:"geltona","yellow green":"gelsvai žalia"},"lv-LV":{alpha:"Alfa",black:"melns",blue:"Zila","blue purple":"zili violets",brightness:"Spilgtums",brown:"brūns","brown yellow":"brūni dzeltens",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciāns","cyan blue":"ciāna zils",dark:"tumšs",gray:"pelēks",grayish:"pelēcīgs",green:"Zaļa","green cyan":"zaļš ciāns",hue:"Nokrāsa",light:"gaišs",lightness:"Gaišums",magenta:"fuksiju","magenta pink":"fuksiju rozā",orange:"oranžs","orange yellow":"oranži dzeltens",pale:"bāls",pink:"rozā","pink red":"rozīgi sarkans",purple:"violets","purple magenta":"violets fuksiju",red:"Sarkana","red orange":"sarkanīgi oranžs",saturation:"Piesātinājums",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} caurspīdīgs`,"very dark":"ļoti tumšs","very light":"ļoti gaišs",vibrant:"košs",white:"balts",yellow:"dzeltens","yellow green":"dzelteni zaļš"},"nb-NO":{alpha:"Alfa",black:"svart",blue:"Blå","blue purple":"blålilla",brightness:"Lysstyrke",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyanblå",dark:"mørk",gray:"grå",grayish:"gråaktig",green:"Grønn","green cyan":"grønncyan",hue:"Fargetone",light:"lys",lightness:"Lyshet",magenta:"magenta","magenta pink":"magentarosa",orange:"oransje","orange yellow":"oransjegul",pale:"blek",pink:"rosa","pink red":"rosarød",purple:"lilla","purple magenta":"lillamagenta",red:"Rød","red orange":"rødoransje",saturation:"Metning",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} gjennomsiktig`,"very dark":"svært mørk","very light":"svært lys",vibrant:"levende",white:"hvit",yellow:"gul","yellow green":"gulgrønn"},"nl-NL":{alpha:"Alfa",black:"zwart",blue:"Blauw","blue purple":"paarsblauw",brightness:"Helderheid",brown:"bruin","brown yellow":"bruingeel",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyaan","cyan blue":"cyaanblauw",dark:"donker",gray:"grijs",grayish:"grijsachtig",green:"Groen","green cyan":"cyaangroen",hue:"Kleurtoon",light:"licht",lightness:"Lichtsterkte",magenta:"magenta","magenta pink":"magentaroze",orange:"oranje","orange yellow":"oranjegeel",pale:"bleek",pink:"roze","pink red":"rozerood",purple:"paars","purple magenta":"magentapaars",red:"Rood","red orange":"roodoranje",saturation:"Verzadiging",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparant`,"very dark":"heel donker","very light":"heel licht",vibrant:"levendig",white:"wit",yellow:"geel","yellow green":"geelgroen"},"pl-PL":{alpha:"Alfa",black:"czarny",blue:"Niebieski","blue purple":"niebiesko-fioletowy",brightness:"Jasność",brown:"brązowy","brown yellow":"brązowo-żółty",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyjanowy","cyan blue":"cyjanowo-niebieski",dark:"ciemny",gray:"szary",grayish:"szarawy",green:"Zielony","green cyan":"zielono-cyjanowy",hue:"Odcień",light:"jasny",lightness:"Jaskrawość",magenta:"purpurowy","magenta pink":"purpurowo-różowy",orange:"pomarańczowy","orange yellow":"pomarańczowo-żółty",pale:"blady",pink:"różowy","pink red":"różowo-czerwony",purple:"fioletowy","purple magenta":"fioletowo-purpurowy",red:"Czerwony","red orange":"czerwono-pomarańczowy",saturation:"Nasycenie",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} przezroczystości`,"very dark":"bardzo ciemny","very light":"bardzo jasny",vibrant:"intensywny",white:"biały",yellow:"żółty","yellow green":"żółto-zielony"},"pt-BR":{alpha:"Alfa",black:"preto",blue:"Azul","blue purple":"roxo azulado",brightness:"Brilho",brown:"marrom","brown yellow":"marrom amarelado",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciano","cyan blue":"azul-ciano",dark:"escuro",gray:"cinza",grayish:"acinzentado",green:"Verde","green cyan":"verde-ciano",hue:"Matiz",light:"claro",lightness:"Luminosidade",magenta:"magenta","magenta pink":"rosa-magenta",orange:"laranja","orange yellow":"amarelo alaranjado",pale:"pálido",pink:"rosa","pink red":"rosa avermelhado",purple:"roxo","purple magenta":"roxo-magenta",red:"Vermelho","red orange":"laranja avermelhado",saturation:"Saturação",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":"muito escuro","very light":"muito claro",vibrant:"vibrante",white:"branco",yellow:"amarelo","yellow green":"verde amarelado"},"pt-PT":{alpha:"Alfa",black:"preto",blue:"Azul","blue purple":"azul-púrpura",brightness:"Luminosidade",brown:"castanho","brown yellow":"amarelo-castanho",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciano","cyan blue":"azul-ciano",dark:"escuro",gray:"cinzento",grayish:"acinzentado",green:"Verde","green cyan":"verde-ciano",hue:"Tonalidade",light:"claro",lightness:"Claridade",magenta:"magenta","magenta pink":"rosa-magenta",orange:"laranja","orange yellow":"amarelo-laranja",pale:"pálido",pink:"cor-de-rosa","pink red":"vermelho-rosa",purple:"púrpura","purple magenta":"púrpura-magenta",red:"Vermelho","red orange":"laranja-vermelho",saturation:"Saturação",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":"muito escuro","very light":"muito claro",vibrant:"vibrante",white:"branco",yellow:"amarelo","yellow green":"verde-amarelo"},"ro-RO":{alpha:"Alfa",black:"negru",blue:"Albastru","blue purple":"albastru-violet",brightness:"Luminozitate",brown:"maro","brown yellow":"galben maro",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"bleu","cyan blue":"albastru-bleu",dark:"închis",gray:"gri",grayish:"cenușiu",green:"Verde","green cyan":"verde bleu",hue:"Nuanță",light:"deschis",lightness:"Luminozitate",magenta:"fucsia","magenta pink":"roz-fucsia",orange:"portocaliu","orange yellow":"galben-portocaliu",pale:"pal",pink:"roz","pink red":"roz-roșu",purple:"violet","purple magenta":"violet-fucsia",red:"Roșu","red orange":"portocaliu-roșu",saturation:"Saturație",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"foarte închis","very light":"foarte deschis",vibrant:"plin de viață",white:"alb",yellow:"galben","yellow green":"galben-verde"},"ru-RU":{alpha:"Альфа",black:"черный",blue:"Синий","blue purple":"сине-фиолетовый",brightness:"Яркость",brown:"коричневый","brown yellow":"коричнево-желтый",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"голубой","cyan blue":"цвет морской волны",dark:"темный",gray:"серый",grayish:"сероватый",green:"Зеленый","green cyan":"сине-зеленый",hue:"Оттенок",light:"светлый",lightness:"Освещенность",magenta:"пурпурный","magenta pink":"пурпурно-розовый",orange:"оранжевый","orange yellow":"оранжево-желтый",pale:"бледный",pink:"розовый","pink red":"розово-красный",purple:"фиолетовый","purple magenta":"фиолетово-пурпурный",red:"Красный","red orange":"красно-оранжевый",saturation:"Насыщенность",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, прозрачный на ${e.percentTransparent}`,"very dark":"очень темный","very light":"очень светлый",vibrant:"яркий",white:"белый",yellow:"желтый","yellow green":"желто-зеленый"},"sk-SK":{alpha:"Alfa",black:"čierna",blue:"Modrá","blue purple":"modrofialová",brightness:"Jas",brown:"hnedá","brown yellow":"hnedožltá",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"azúrová","cyan blue":"azúrová modrá",dark:"tmavá",gray:"sivá",grayish:"sivastá",green:"Zelená","green cyan":"zelená azúrová",hue:"Odtieň",light:"svetlá",lightness:"Svetlosť",magenta:"purpurová","magenta pink":"ružová purpurová",orange:"oranžová","orange yellow":"oranžovožltá",pale:"bledá",pink:"ružová","pink red":"ružovočervená",purple:"fialová","purple magenta":"fialová purpurová",red:"Červená","red orange":"červenooranžová",saturation:"Sýtosť",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} priehľadná`,"very dark":"veľmi tmavá","very light":"veľmi svetlá",vibrant:"energická",white:"biela",yellow:"žltá","yellow green":"žltozelená"},"sl-SI":{alpha:"Alfa",black:"črna",blue:"Modra","blue purple":"modro vijolična",brightness:"Svetlost",brown:"rjava","brown yellow":"rjavo rumena",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cian","cyan blue":"cian modra",dark:"temna",gray:"siva",grayish:"sivkasta",green:"Zelena","green cyan":"zelena cian",hue:"Barva",light:"svetla",lightness:"Lahkost",magenta:"škrlatna","magenta pink":"škrlatno roza",orange:"oranžna","orange yellow":"oranžno rumena",pale:"bleda",pink:"roza","pink red":"roza rdeča",purple:"vijolična","purple magenta":"vijolično škrlatna",red:"Rdeča","red orange":"rdeče oranžna",saturation:"Nasičenost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozorna`,"very dark":"zelo temna","very light":"zelo svetla",vibrant:"živahna",white:"bela",yellow:"rumena","yellow green":"rumeno zelena"},"sr-SP":{alpha:"Alfa",black:"crno",blue:"Plava","blue purple":"plavoljubičasta",brightness:"Osvetljenost",brown:"smeđa","brown yellow":"smeđežuta",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cijan","cyan blue":"cijan plava",dark:"tamno",gray:"siva",grayish:"sivkasta",green:"Zelena","green cyan":"zeleno cijan",hue:"Nijansa",light:"svetla",lightness:"Osvetljenje",magenta:"purpurnocrvena","magenta pink":"magenta ružičasta",orange:"narandžasta","orange yellow":"narandžastožuta",pale:"bledo",pink:"ružičasta","pink red":"ružičastocrvena",purple:"ljubičasta","purple magenta":"ljubičasta magenta",red:"Crvena","red orange":"crvenonarandžasta",saturation:"Zasićenje",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozirna`,"very dark":"veoma tamno","very light":"vrlo svetlo",vibrant:"živopisna",white:"bela",yellow:"žuto","yellow green":"žutozelena"},"sv-SE":{alpha:"Alfa",black:"svart",blue:"Blått","blue purple":"blålila",brightness:"Ljusstyrka",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyanblå",dark:"mörk",gray:"grå",grayish:"gråaktig",green:"Grönt","green cyan":"grön cyan",hue:"Nyans",light:"ljus",lightness:"Ljushet",magenta:"magenta","magenta pink":"magentarosa",orange:"orange","orange yellow":"orangegul",pale:"blek",pink:"rosa","pink red":"rosaröd",purple:"lila","purple magenta":"lila magenta",red:"Rött","red orange":"rödorange",saturation:"Mättnad",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} genomskinlig`,"very dark":"mycket mörk","very light":"mycket ljus",vibrant:"livfull",white:"vit",yellow:"gul","yellow green":"gulgrön"},"tr-TR":{alpha:"Alfa",black:"siyah",blue:"Mavi","blue purple":"mavi mor",brightness:"Parlaklık",brown:"kahverengi","brown yellow":"kahverengi sarı",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"camgöbeği","cyan blue":"camgöbeği mavi",dark:"koyu",gray:"gri",grayish:"grimsi",green:"Yeşil","green cyan":"yeşil camgöbeği",hue:"Ton",light:"açık",lightness:"Canlılık",magenta:"eflatun","magenta pink":"eflatun pembe",orange:"turuncu","orange yellow":"turuncu sarı",pale:"solgun",pink:"pembe","pink red":"pembe kırmızı",purple:"mor","purple magenta":"mor eflatun",red:"Kırmızı","red orange":"kırmızı portakal",saturation:"Doygunluk",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} saydam`,"very dark":"çok koyu","very light":"çok açık",vibrant:"canlı",white:"beyaz",yellow:"sarı","yellow green":"sarı yeşil"},"uk-UA":{alpha:"Альфа",black:"чорний",blue:"Синій","blue purple":"синьо-фіолетовий",brightness:"Яскравість",brown:"коричневий","brown yellow":"коричнево-жовтий",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"блакитний","cyan blue":"синьо-блакитний",dark:"темний",gray:"сірий",grayish:"сіруватий",green:"Зелений","green cyan":"зелено-блакитний",hue:"Тон",light:"світлий",lightness:"Освітленість",magenta:"пурпуровий","magenta pink":"пурпурово-рожевий",orange:"помаранчевий","orange yellow":"помаранчево-жовтий",pale:"блідий",pink:"рожевий","pink red":"рожево-червоний",purple:"фіолетовий","purple magenta":"фіолетово-пурпуровий",red:"Червоний","red orange":"червоно-помаранчевий",saturation:"Насиченість",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, прозорий на ${e.percentTransparent}`,"very dark":"дуже темний","very light":"дуже світлий",vibrant:"яскравий",white:"білий",yellow:"жовтий","yellow green":"жовто-зелений"},"zh-CN":{alpha:"Alpha",black:"黑色",blue:"蓝色","blue purple":"蓝紫色",brightness:"亮度",brown:"棕色的","brown yellow":"棕黄色",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"蓝绿色","cyan blue":"青蓝色",dark:"深色",gray:"灰色",grayish:"浅灰色的",green:"绿色","green cyan":"绿青色",hue:"色相",light:"浅色",lightness:"明亮度",magenta:"紫红色","magenta pink":"紫粉色",orange:"橙色","orange yellow":"橙黄色",pale:"苍白的",pink:"粉色","pink red":"粉红色",purple:"紫色","purple magenta":"紫洋红色",red:"红色","red orange":"红橙色",saturation:"饱和度",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} 透明`,"very dark":"很暗","very light":"很浅",vibrant:"生机勃勃",white:"白色",yellow:"黄色","yellow green":"黄色/绿色"},"zh-TW":{alpha:"Alpha",black:"黑",blue:"藍色","blue purple":"藍紫",brightness:"亮度",brown:"棕","brown yellow":"棕黃",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"青","cyan blue":"青藍",dark:"暗",gray:"灰",grayish:"偏灰",green:"綠色","green cyan":"青綠",hue:"色相",light:"淺",lightness:"明亮",magenta:"洋紅","magenta pink":"淺洋紅",orange:"橙","orange yellow":"橙黃",pale:"淡",pink:"粉紅","pink red":"粉紅",purple:"紫","purple magenta":"紫洋紅",red:"紅色","red orange":"橙紅",saturation:"飽和度",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} 透明`,"very dark":"很暗","very light":"很淺",vibrant:"鮮豔",white:"白",yellow:"黃","yellow green":"黃綠"}};var o=n(9772),i=n(5533),a=n(37515);let s=new(0,i.B)((l=r)&&l.__esModule?l.default:l);var l;function c(e){let t=p.parse(e)||f.parse(e)||v.parse(e);if(t)return t;throw new Error("Invalid color value: "+e)}const u=[[0,"pink"],[15,"red"],[48,"orange"],[94,"yellow"],[135,"green"],[175,"cyan"],[264,"blue"],[284,"purple"],[320,"magenta"],[349,"pink"]];class d{toHexInt(){return this.toFormat("rgb").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}withChannelValue(e,t){if(e in this){let n=this.clone();return n[e]=t,n}throw new Error("Unsupported color channel: "+e)}getChannelName(e,t){return(i.B.getGlobalDictionaryForPackage("@react-stately/color")||s).getStringForLocale(e,t)}getColorSpaceAxes(e){let{xChannel:t,yChannel:n}=e,r=t||this.getColorChannels().find((e=>e!==n)),o=n||this.getColorChannels().find((e=>e!==r)),i=this.getColorChannels().find((e=>e!==r&&e!==o));return{xChannel:r,yChannel:o,zChannel:i}}getColorName(e){let t,[n,r,o]=y(this),l=i.B.getGlobalDictionaryForPackage("@react-stately/color")||s;if(n>.999)return l.getStringForLocale("white",e);if(n<.001)return l.getStringForLocale("black",e);[t,n]=this.getOklchHue(n,r,o,e);let c="",u="";r<=.1&&r>=.001?u=n>=.7?"pale":"grayish":r>=.15&&(u="vibrant"),n<.3?c="very dark":n<.55?c="dark":n<.7||(c=n<.85?"light":"very light"),u&&(u=l.getStringForLocale(u,e)),c&&(c=l.getStringForLocale(c,e));let d=this.getChannelValue("alpha"),p=new(0,i.J)(e,l);if(d<1){let n=new(0,a.K)(e,{style:"percent"}).format(1-d);return p.format("transparentColorName",{lightness:c,chroma:u,hue:t,percentTransparent:n}).replace(/\s+/g," ").trim()}return p.format("colorName",{lightness:c,chroma:u,hue:t}).replace(/\s+/g," ").trim()}getOklchHue(e,t,n,r){let o=i.B.getGlobalDictionaryForPackage("@react-stately/color")||s;if(t<.001)return[o.getStringForLocale("gray",r),e];for(let t=0;t<u.length;t++){let[i,a]=u[t],[s,l]=u[t+1]||[360,"pink"];if(n>=i&&n<s){return"orange"===a&&(e<.68?a="brown":e=e-.68+.55),n>i+(s-i)/2&&a!==l?a=`${a} ${l}`:"yellow"===a&&e<.85&&(a="yellow green"),[o.getStringForLocale(a,r).toLocaleLowerCase(r),e]}}throw new Error("Unexpected hue")}getHueName(e){let[t,n,r]=y(this),[o]=this.getOklchHue(t,n,r,e);return o}}class p extends d{static parse(e){let t=[];if(/^#[\da-f]+$/i.test(e)&&[4,5,7,9].includes(e.length)){const n=(e.length<6?e.replace(/[^#]/gi,"$&$&"):e).slice(1).split("");for(;n.length>0;)t.push(parseInt(n.splice(0,2).join(""),16));t[3]=void 0!==t[3]?t[3]/255:void 0}const n=e.match(/^rgba?\((.*)\)$/);var r;return(null==n?void 0:n[1])&&(t=n[1].split(",").map((e=>Number(e.trim()))),t=t.map(((e,t)=>(0,o.qE)(e,0,t<3?255:1)))),t.length<3?void 0:new p(t[0],t[1],t[2],null!==(r=t[3])&&void 0!==r?r:1)}toString(e="css"){switch(e){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(255*this.alpha).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hex":case"hexa":case"rgb":case"rgba":return this;case"hsb":case"hsba":return this.toHSB();case"hsl":case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+e)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const e=this.red/255,t=this.green/255,n=this.blue/255,r=Math.min(e,t,n),i=Math.max(e,t,n),a=i-r,s=0===i?0:a/i;let l=0;if(0!==a){switch(i){case e:l=(t-n)/a+(t<n?6:0);break;case t:l=(n-e)/a+2;break;case n:l=(e-t)/a+4}l/=6}return new f((0,o.Nh)(360*l,2),(0,o.Nh)(100*s,2),(0,o.Nh)(100*i,2),this.alpha)}toHSL(){const e=this.red/255,t=this.green/255,n=this.blue/255,r=Math.min(e,t,n),i=Math.max(e,t,n),a=(i+r)/2,s=i-r;let l,c;if(0===s)l=c=0;else{switch(c=s/(a<.5?i+r:2-i-r),i){case e:l=(t-n)/s+(t<n?6:0);break;case t:l=(n-e)/s+2;break;case n:l=(e-t)/s+4}l/=6}return new v((0,o.Nh)(360*l,2),(0,o.Nh)(100*c,2),(0,o.Nh)(100*a,2),this.alpha)}clone(){return new p(this.red,this.green,this.blue,this.alpha)}getChannelRange(e){switch(e){case"red":case"green":case"blue":return{minValue:0,maxValue:255,step:1,pageSize:17};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+e)}}getChannelFormatOptions(e){switch(e){case"red":case"green":case"blue":return{style:"decimal"};case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return new(0,a.K)(t,n).format(r)}getColorSpace(){return"rgb"}getColorChannels(){return p.colorChannels}constructor(e,t,n,r){super(),this.red=e,this.green=t,this.blue=n,this.alpha=r}}p.colorChannels=["red","green","blue"];const h=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/;class f extends d{static parse(e){let t;if(t=e.match(h)){var n;const[e,r,i,a]=(null!==(n=t[1])&&void 0!==n?n:t[2]).split(",").map((e=>Number(e.trim().replace("%",""))));return new f(g(e,360),(0,o.qE)(r,0,100),(0,o.qE)(i,0,100),(0,o.qE)(null!=a?a:1,0,1))}}toString(e="css"){switch(e){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${(0,o.Nh)(this.saturation,2)}%, ${(0,o.Nh)(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${(0,o.Nh)(this.saturation,2)}%, ${(0,o.Nh)(this.brightness,2)}%, ${this.alpha})`;default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsb":case"hsba":return this;case"hsl":case"hsla":return this.toHSL();case"rgb":case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+e)}}toHSL(){let e=this.saturation/100,t=this.brightness/100,n=t*(1-e/2);return e=0===n||1===n?0:(t-n)/Math.min(n,1-n),new v((0,o.Nh)(this.hue,2),(0,o.Nh)(100*e,2),(0,o.Nh)(100*n,2),this.alpha)}toRGB(){let e=this.hue,t=this.saturation/100,n=this.brightness/100,r=(r,o=(r+e/60)%6)=>n-t*n*Math.max(Math.min(o,4-o,1),0);return new p(Math.round(255*r(5)),Math.round(255*r(3)),Math.round(255*r(1)),this.alpha)}clone(){return new f(this.hue,this.saturation,this.brightness,this.alpha)}getChannelRange(e){switch(e){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+e)}}getChannelFormatOptions(e){switch(e){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return"saturation"!==e&&"brightness"!==e||(r/=100),new(0,a.K)(t,n).format(r)}getColorSpace(){return"hsb"}getColorChannels(){return f.colorChannels}constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.brightness=n,this.alpha=r}}f.colorChannels=["hue","saturation","brightness"];const m=/hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/;function g(e,t){return(e%t+t)%t}class v extends d{static parse(e){let t;if(t=e.match(m)){var n;const[e,r,i,a]=(null!==(n=t[1])&&void 0!==n?n:t[2]).split(",").map((e=>Number(e.trim().replace("%",""))));return new v(g(e,360),(0,o.qE)(r,0,100),(0,o.qE)(i,0,100),(0,o.qE)(null!=a?a:1,0,1))}}toString(e="css"){switch(e){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${(0,o.Nh)(this.saturation,2)}%, ${(0,o.Nh)(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${(0,o.Nh)(this.saturation,2)}%, ${(0,o.Nh)(this.lightness,2)}%, ${this.alpha})`;default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsl":case"hsla":return this;case"hsb":case"hsba":return this.toHSB();case"rgb":case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+e)}}toHSB(){let e=this.saturation/100,t=this.lightness/100,n=t+e*Math.min(t,1-t);return e=0===n?0:2*(1-t/n),new f((0,o.Nh)(this.hue,2),(0,o.Nh)(100*e,2),(0,o.Nh)(100*n,2),this.alpha)}toRGB(){let e=this.hue,t=this.saturation/100,n=this.lightness/100,r=t*Math.min(n,1-n),o=(t,o=(t+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return new p(Math.round(255*o(0)),Math.round(255*o(8)),Math.round(255*o(4)),this.alpha)}clone(){return new v(this.hue,this.saturation,this.lightness,this.alpha)}getChannelRange(e){switch(e){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+e)}}getChannelFormatOptions(e){switch(e){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return"saturation"!==e&&"lightness"!==e||(r/=100),new(0,a.K)(t,n).format(r)}getColorSpace(){return"hsl"}getColorChannels(){return v.colorChannels}constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.lightness=n,this.alpha=r}}function y(e){let t=e.toFormat("rgb"),n=t.getChannelValue("red")/255,r=t.getChannelValue("green")/255,o=t.getChannelValue("blue")/255;[n,r,o]=function(e,t,n){return[b(e),b(t),b(n)]}(n,r,o);let[i,a,s]=function(e,t,n){return w([506752/1228815,87881/245763,12673/70218,87098/409605,175762/245763,12673/175545,7918/409605,87881/737289,1001167/1053270],e,t,n)}(n,r,o),[l,c,u]=function(e,t,n){const r=[.819022437996703,.3619062600528904,-.1288737815209879,.0329836539323885,.9292868615863434,.0361446663506424,.0481771893596242,.2642395317527308,.6335478284694309],o=[.210454268309314,.7936177747023054,-.0040720430116193,1.9779985324311684,-2.42859224204858,.450593709617411,.0259040424655478,.7827717124575296,-.8086757549230774];let[i,a,s]=w(r,e,t,n);return w(o,Math.cbrt(i),Math.cbrt(a),Math.cbrt(s))}(i,a,s);return function(e,t,n){var r=180*Math.atan2(n,t)/Math.PI;return[e,Math.sqrt(t**2+n**2),r>=0?r:r+360]}(l,c,u)}function b(e){let t=e<0?-1:1,n=Math.abs(e);return n<=.04045?e/12.92:t*Math.pow((n+.055)/1.055,2.4)}function w(e,t,n,r){return[e[0]*t+e[1]*n+e[2]*r,e[3]*t+e[4]*n+e[5]*r,e[6]*t+e[7]*n+e[8]*r]}v.colorChannels=["hue","saturation","lightness"];n(96540);c("#ffffff");n(43635);c("hsl(0, 100%, 50%)");n(32144);const x=c("#000000"),S=c("#FFFFFF");x.toHexInt(),S.toHexInt();n(49858);var _=n(84997);function C(e,t){if(!e)throw new Error(t||"Invariant failed")}function E(...e){let t=e.filter(Boolean),n=[];for(let e of t)if(Array.isArray(e))n.push(E(...e));else if("object"==typeof e){let t=Object.keys(e);for(let r of t)e[r]&&n.push(r)}else"string"==typeof e&&n.push(e);return n.join(" ")}var k=e=>e&&"window"in e&&e.window===e?e:(e=>{var t;return null!==(t=e?.ownerDocument)&&void 0!==t?t:document})(e).defaultView||window;var z=function(e){let t=null;return()=>(null==t&&(t=e()),t)}((function(){return e=/^Mac/i,typeof window<"u"&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform);var e,t}));function P(e,t){return e?"string"==typeof e?t.querySelector(e):e instanceof HTMLElement?e:"current"in e?e.current:void 0:null}function A({text:e,fontSize:t=16,fontFamily:n="Arial",fontWeight:r="normal",fontStyle:o="normal",font:i}){let a=document.createElement("canvas").getContext("2d");if(!a)return{width:0,height:0};a.font=i||`${o} ${r} ${t}px ${n}`;let s=a.measureText(e);return{width:s.width,height:s.actualBoundingBoxAscent+s.actualBoundingBoxDescent}}function D({text:e,maxWidth:t,initialFontSize:n=50,fontFamily:r="Arial",fontWeight:o="normal",fontStyle:i="normal"}){let{width:a}=A({text:e,fontSize:n,fontFamily:r,fontWeight:o,fontStyle:i}),s=n,l=a;for(;l>t;)s-=.5,l=A({text:e,fontSize:s,fontFamily:r,fontWeight:o,fontStyle:i}).width;return Math.max(s,1)}var T=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'];function I(e){return e.querySelectorAll(T.join(", "))}function M(e){let t=e.getRootNode();return t instanceof Document||t instanceof ShadowRoot?t.activeElement:null}var N=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function O(e){return e instanceof HTMLInputElement&&!N.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function R(e){let t=e.getBoundingClientRect(),n=k(e),r=e.getRootNode()instanceof ShadowRoot?e.getRootNode().host.getBoundingClientRect():{left:0,top:0};return{x:t.left+n.scrollX-r.left,y:t.top+n.scrollY-r.top,width:t.width,height:t.height}}function j(e,t){let n=R(e);return{x:n.x+(t?.x??0),y:n.y+(t?.y??0)}}var F=(e,t)=>(e+t)/2;function B(e,t=!0){if(!e.length)return"";let n=e.length;if(n<4)return"";let r=e[0],o=e[1],i=e[2],a=`M${r[0].toFixed(2)},${r[1].toFixed(2)} Q${o[0].toFixed(2)},${o[1].toFixed(2)} ${F(o[0],i[0]).toFixed(2)},${F(o[1],i[1]).toFixed(2)} T`;for(let t=2,i=n-1;t<i;t++)r=e[t],o=e[t+1],a+=`${F(r[0],o[0]).toFixed(2)},${F(r[1],o[1]).toFixed(2)} `;return t&&(a+="Z"),a}function L(e){return e.split("/").pop()?.split(".").shift()}function V(e){let t={};for(let n of Object.keys(e)){t[L(n)??""]=e[n]}return t}function K(e){return Object.fromEntries(Object.entries(e).filter((([,e])=>!!e)))}function H(e,t){C(t>=0&&t<=100,"Percent must be between 0 and 100");let n=c(e),r=n.getChannelValue("red"),o=n.getChannelValue("green"),i=n.getChannelValue("blue"),a=Math.round(r+(255-r)*t/100),s=Math.round(o+(255-o)*t/100),l=Math.round(i+(255-i)*t/100);return`#${a.toString(16)}${s.toString(16)}${l.toString(16)}`}function $(e,t){if((e=e.trim()).includes(" "))return!1;try{return new URL(e),!0}catch{return!!t&&$(`https://${e}`)}}function U(e,t=!1){return z()?e.replace("Ctrl+",t?"⌘":"Cmd+").replace("Alt+",t?"⌥":"Option+").replace("Shift+",t?"⇧":"Shift+").replace("Enter+",t?"↩":"Enter+").replace("Space+",t?"␣":"Space+").replace("Enter",t?"↩":"Enter"):e}var W=e=>(new DOMParser).parseFromString(_.A.sanitize(e),"text/html").body.textContent||""},39316:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>i});var o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=r((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},34361:(e,t,n)=>{"use strict";n.d(t,{pw:()=>i});new Map;new Map;const r=["hours","minutes","seconds"];n(1716);let o=new Map;class i{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let n=this.formatter.formatToParts(e),r=this.formatter.formatToParts(t);return[...n.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...r.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return function(){null==c&&(c="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle);return c}()&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let n=s(e+=(e.includes("-u-")?"":"-u")+"-nu-latn",{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find((e=>"hour"===e.type)).value,10),o=parseInt(n.formatToParts(new Date(2020,2,3,23)).find((e=>"hour"===e.type)).value,10);if(0===r&&23===o)return"h23";if(24===r&&23===o)return"h24";if(0===r&&11===o)return"h11";if(12===r&&11===o)return"h12";throw new Error("Unexpected hour cycle result")}(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),"ethiopic-amete-alem"===e.calendar&&(e.calendar="ethioaa"),e}constructor(e,t={}){this.formatter=s(e,t),this.options=t}}const a={true:{ja:"h11"},false:{}};function s(e,t={}){if("boolean"==typeof t.hour12&&function(){null==l&&(l="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0)));return l}()){t={...t};let n=a[String(t.hour12)][e.split("-")[0]],r=t.hour12?"h12":"h23";t.hourCycle=null!=n?n:r,delete t.hour12}let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(o.has(n))return o.get(n);let r=new Intl.DateTimeFormat(e,t);return o.set(n,r),r}let l=null;let c=null},37515:(e,t,n)=>{"use strict";n.d(t,{K:()=>s,d:()=>u});let r=new Map,o=!1;try{o="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch(e){}let i=!1;try{i="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch(e){}const a={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class s{format(e){let t="";if(t=o||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,n){if("auto"===t)return e.format(n);if("never"===t)return e.format(Math.abs(n));{let r=!1;if("always"===t?r=n>0||Object.is(n,0):"exceptZero"===t&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let t=e.format(-n),r=e.format(n),o=t.replace(r,"").replace(/\u200e|\u061C/,"");return 1!==[...o].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(r,"!!!").replace(o,"+").replace("!!!",r)}return e.format(n)}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!i){var n;let{unit:e,unitDisplay:r="short",locale:o}=this.resolvedOptions();if(!e)return t;let i=null===(n=a[e])||void 0===n?void 0:n[r];t+=i[o]||i.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...r.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return o||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),i||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:n}=t;n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`);if("unit"===t.style&&!i){var o;let{unit:e,unitDisplay:n="short"}=t;if(!e)throw new Error('unit option must be provided with style: "unit"');if(!(null===(o=a[e])||void 0===o?void 0:o[n]))throw new Error(`Unsupported unit ${e} with unitDisplay = ${n}`);t={...t,style:"decimal"}}let s=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(r.has(s))return r.get(s);let l=new Intl.NumberFormat(e,t);return r.set(s,l),l}(e,t),this.options=t}}const l=new RegExp("^.*\\(.*\\).*$"),c=["latn","arab","hanidec"];class u{parse(e){return p(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return p(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return p(this.locale,this.options,e).options.numberingSystem}constructor(e,t={}){this.locale=e,this.options=t}}const d=new Map;function p(e,t,n){let r=h(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n))for(let o of c)if(o!==r.options.numberingSystem){let r=h(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(r.isValidPartialNumber(n))return r}return r}function h(e,t){let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():""),r=d.get(n);return r||(r=new f(e,t),d.set(n,r)),r}class f{parse(e){let t=this.sanitize(e);if(this.symbols.group&&(t=v(t,this.symbols.group,"")),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(t=t.replace(this.symbols.minusSign,"-")),t=t.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let e=t.indexOf("-");t=t.replace("-","");let n=t.indexOf(".");-1===n&&(n=t.length),t=t.replace(".",""),t=n-2==0?`0.${t}`:n-2==-1?`0.0${t}`:n-2==-2?"0.00":`${t.slice(0,n-2)}.${t.slice(n-2)}`,e>-1&&(t=`-${t}`)}let n=t?+t:NaN;if(isNaN(n))return NaN;if("percent"===this.options.style){var r,o;let e={...this.options,style:"decimal",minimumFractionDigits:Math.min((null!==(r=this.options.minimumFractionDigits)&&void 0!==r?r:0)+2,20),maximumFractionDigits:Math.min((null!==(o=this.options.maximumFractionDigits)&&void 0!==o?o:0)+2,20)};return new u(this.locale,e).parse(new s(this.locale,e).format(n))}return"accounting"===this.options.currencySign&&l.test(e)&&(n*=-1),n}sanitize(e){return e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(e=(e=e.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(e=v(e,".",this.symbols.group))),"fr-FR"===this.options.locale&&(e=v(e,".",String.fromCharCode(8239))),e}isValidPartialNumber(e,t=-1/0,n=1/0){return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&n>0&&(e=e.slice(this.symbols.plusSign.length)),(!this.symbols.group||!e.startsWith(this.symbols.group))&&(!(this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&0===this.options.maximumFractionDigits)&&(this.symbols.group&&(e=v(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),0===e.length))}constructor(e,t={}){var n,r;this.locale=e,this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,n,r){var o,i,a,s;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21}),c=l.formatToParts(-10000.111),u=l.formatToParts(10000.111),d=g.map((e=>l.formatToParts(e)));var p;let h=null!==(p=null===(o=c.find((e=>"minusSign"===e.type)))||void 0===o?void 0:o.value)&&void 0!==p?p:"-",f=null===(i=u.find((e=>"plusSign"===e.type)))||void 0===i?void 0:i.value;f||"exceptZero"!==(null==r?void 0:r.signDisplay)&&"always"!==(null==r?void 0:r.signDisplay)||(f="+");let v=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001),b=null===(a=v.find((e=>"decimal"===e.type)))||void 0===a?void 0:a.value,w=null===(s=c.find((e=>"group"===e.type)))||void 0===s?void 0:s.value,x=c.filter((e=>!m.has(e.type))).map((e=>y(e.value))),S=d.flatMap((e=>e.filter((e=>!m.has(e.type))).map((e=>y(e.value))))),_=[...new Set([...x,...S])].sort(((e,t)=>t.length-e.length)),C=0===_.length?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${_.join("|")}|[\\p{White_Space}]`,"gu"),E=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),k=new Map(E.map(((e,t)=>[e,t]))),z=new RegExp(`[${E.join("")}]`,"g");return{minusSign:h,plusSign:f,decimal:b,group:w,literals:C,numeral:z,index:e=>String(k.get(e))}}(e,this.formatter,this.options,t),"percent"===this.options.style&&((null!==(n=this.options.minimumFractionDigits)&&void 0!==n?n:0)>18||(null!==(r=this.options.maximumFractionDigits)&&void 0!==r?r:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const m=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),g=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function v(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function y(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}},5533:(e,t,n)=>{"use strict";n.d(t,{B:()=>a,J:()=>c});const r=Symbol.for("react-aria.i18n.locale"),o=Symbol.for("react-aria.i18n.strings");let i;class a{getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw new Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,n="en-US"){if(t[e])return t[e];let r=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);if(t[r])return t[r];for(let e in t)if(e.startsWith(r+"-"))return t[e];return t[n]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("undefined"==typeof window)return null;let t=window[r];if(void 0===i){let e=window[o];if(!e)return null;i={};for(let n in e)i[n]=new a({[t]:e[n]},t)}let n=null==i?void 0:i[e];if(!n)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter((([,e])=>e))),this.defaultLocale=t}}const s=new Map,l=new Map;class c{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let r=t["="+e];if(r)return"function"==typeof r?r():r;let o=this.locale+":"+n,i=s.get(o);return i||(i=new Intl.PluralRules(this.locale,{type:n}),s.set(o,i)),r=t[i.select(e)]||t.other,"function"==typeof r?r():r}number(e){let t=l.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),l.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return"function"==typeof n?n():n}constructor(e,t){this.locale=e,this.strings=t}}},44564:(e,t,n)=>{"use strict";n.d(t,{tb:()=>K});var r,o=[],i="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(r||(r={}));var a,s=function(e){return Object.freeze(e)},l=function(e,t){this.inlineSize=e,this.blockSize=t,s(this)},c=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,s(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),u=function(e){return e instanceof SVGElement&&"getBBox"in e},d=function(e){if(u(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},p=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},h="undefined"!=typeof window?window:{},f=new WeakMap,m=/auto|scroll/,g=/^tb|vertical/,v=/msie|trident/i.test(h.navigator&&h.navigator.userAgent),y=function(e){return parseFloat(e||"0")},b=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new l((n?t:e)||0,(n?e:t)||0)},w=s({devicePixelContentBoxSize:b(),borderBoxSize:b(),contentBoxSize:b(),contentRect:new c(0,0,0,0)}),x=function(e,t){if(void 0===t&&(t=!1),f.has(e)&&!t)return f.get(e);if(d(e))return f.set(e,w),w;var n=getComputedStyle(e),r=u(e)&&e.ownerSVGElement&&e.getBBox(),o=!v&&"border-box"===n.boxSizing,i=g.test(n.writingMode||""),a=!r&&m.test(n.overflowY||""),l=!r&&m.test(n.overflowX||""),p=r?0:y(n.paddingTop),h=r?0:y(n.paddingRight),x=r?0:y(n.paddingBottom),S=r?0:y(n.paddingLeft),_=r?0:y(n.borderTopWidth),C=r?0:y(n.borderRightWidth),E=r?0:y(n.borderBottomWidth),k=S+h,z=p+x,P=(r?0:y(n.borderLeftWidth))+C,A=_+E,D=l?e.offsetHeight-A-e.clientHeight:0,T=a?e.offsetWidth-P-e.clientWidth:0,I=o?k+P:0,M=o?z+A:0,N=r?r.width:y(n.width)-I-T,O=r?r.height:y(n.height)-M-D,R=N+k+T+P,j=O+z+D+A,F=s({devicePixelContentBoxSize:b(Math.round(N*devicePixelRatio),Math.round(O*devicePixelRatio),i),borderBoxSize:b(R,j,i),contentBoxSize:b(N,O,i),contentRect:new c(S,p,N,O)});return f.set(e,F),F},S=function(e,t,n){var o=x(e,n),i=o.borderBoxSize,a=o.contentBoxSize,s=o.devicePixelContentBoxSize;switch(t){case r.DEVICE_PIXEL_CONTENT_BOX:return s;case r.BORDER_BOX:return i;default:return a}},_=function(e){var t=x(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=s([t.borderBoxSize]),this.contentBoxSize=s([t.contentBoxSize]),this.devicePixelContentBoxSize=s([t.devicePixelContentBoxSize])},C=function(e){if(d(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},E=function(){var e=1/0,t=[];o.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new _(t.target),o=C(t.target);r.push(n),t.lastReportedSize=S(t.target,t.observedBox),o<e&&(e=o)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},k=function(e){o.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(C(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},z=function(){var e,t=0;for(k(t);o.some((function(e){return e.activeTargets.length>0}));)t=E(),k(t);return o.some((function(e){return e.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:i}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=i),window.dispatchEvent(e)),t>0},P=[],A=function(e){if(!a){var t=0,n=document.createTextNode("");new MutationObserver((function(){return P.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),a=function(){n.textContent="".concat(t?t--:t++)}}P.push(e),a()},D=0,T={attributes:!0,characterData:!0,childList:!0,subtree:!0},I=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],M=function(e){return void 0===e&&(e=0),Date.now()+e},N=!1,O=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!N){N=!0;var n,r=M(e);n=function(){var n=!1;try{n=z()}finally{if(N=!1,e=r-M(),!D)return;n?t.run(1e3):e>0?t.run(e):t.start()}},A((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,T)};document.body?t():h.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),I.forEach((function(t){return h.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),I.forEach((function(t){return h.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),R=function(e){!D&&e>0&&O.start(),!(D+=e)&&O.stop()},j=function(){function e(e,t){this.target=e,this.observedBox=t||r.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=S(this.target,this.observedBox,!0);return e=this.target,u(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),F=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},B=new WeakMap,L=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},V=function(){function e(){}return e.connect=function(e,t){var n=new F(e,t);B.set(e,n)},e.observe=function(e,t,n){var r=B.get(e),i=0===r.observationTargets.length;L(r.observationTargets,t)<0&&(i&&o.push(r),r.observationTargets.push(new j(t,n&&n.box)),R(1),O.schedule())},e.unobserve=function(e,t){var n=B.get(e),r=L(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&o.splice(o.indexOf(n),1),n.observationTargets.splice(r,1),R(-1))},e.disconnect=function(e){var t=this,n=B.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),K=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");V.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");V.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");V.unobserve(this,e)},e.prototype.disconnect=function(){V.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()},77937:(e,t,n)=>{"use strict";n(42116);n(86025),n(20381)},18855:(e,t,n)=>{"use strict";n.d(t,{s:()=>a,q:()=>s});var r=n(86025),o=n(74373),i=n(37555);function a(e,t){let n,{elementType:a="button",isDisabled:s,onPress:l,onPressStart:c,onPressEnd:u,onPressUp:d,onPressChange:p,preventFocusOnPress:h,allowFocusWhenDisabled:f,onClick:m,href:g,target:v,rel:y,type:b="button"}=e;n="button"===a?{type:b,disabled:s}:{role:"button",tabIndex:s?void 0:0,href:"a"===a&&s?void 0:g,target:"a"===a?v:void 0,type:"input"===a?b:void 0,disabled:"input"===a?s:void 0,"aria-disabled":s&&"input"!==a?s:void 0,rel:"a"===a?y:void 0};let{pressProps:w,isPressed:x}=(0,i.dD)({onPressStart:c,onPressEnd:u,onPressChange:p,onPress:l,onPressUp:d,isDisabled:s,preventFocusOnPress:h,ref:t}),{focusableProps:S}=(0,o.Wc)(e,t);f&&(S.tabIndex=s?-1:S.tabIndex);let _=(0,r.v6)(S,w,(0,r.$X)(e,{labelable:!0}));return{isPressed:x,buttonProps:(0,r.v6)(n,_,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{m&&(m(e),console.warn("onClick is deprecated, please use onPress"))}})}}function s(e,t,n){const{isSelected:o}=t,{isPressed:i,buttonProps:s}=a({...e,onPress:(0,r.cy)(t.toggle,e.onPress)},n);return{isPressed:i,buttonProps:(0,r.v6)(s,{"aria-pressed":o})}}},49899:(e,t,n)=>{"use strict";n(34361),n(20381),n(96540);new WeakMap;n(72317),n(86025);n(37555)},5642:(e,t,n)=>{"use strict";n.d(t,{vp:()=>s});var r=n(96540),o=n(75944),i=n(32144),a=n(87525);function s(e,t,n){let s=(0,i.KZ)({...e,value:t.isSelected}),{isInvalid:l,validationErrors:c,validationDetails:u}=s.displayValidation,{labelProps:d,inputProps:p,isSelected:h,isPressed:f,isDisabled:m,isReadOnly:g}=(0,a.e)({...e,isInvalid:l},t,n);(0,o.X)(e,s,n);let{isIndeterminate:v,isRequired:y,validationBehavior:b="aria"}=e;return(0,r.useEffect)((()=>{n.current&&(n.current.indeterminate=!!v)})),{labelProps:d,inputProps:{...p,checked:h,"aria-required":y&&"aria"===b||void 0,required:y&&"native"===b},isSelected:h,isPressed:f,isDisabled:m,isReadOnly:g,isInvalid:l,validationErrors:c,validationDetails:u}}new WeakMap;n(86025),n(2973),n(37555);n(27538)},55418:(e,t,n)=>{"use strict";n.d(t,{r:()=>m});var r={};r={"ar-AE":{buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`},"bg-BG":{buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`},"cs-CZ":{buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`},"da-DK":{buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`},"de-DE":{buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`},"el-GR":{buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`},"en-US":{focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"},"es-ES":{buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`},"et-EE":{buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`},"fi-FI":{buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`},"fr-FR":{buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`},"he-IL":{buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`},"hr-HR":{buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`},"hu-HU":{buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`},"it-IT":{buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`},"ja-JP":{buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`},"ko-KR":{buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`},"lt-LT":{buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`},"lv-LV":{buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`},"nb-NO":{buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`},"nl-NL":{buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`},"pl-PL":{buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`},"pt-BR":{buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`},"pt-PT":{buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`},"ro-RO":{buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`},"ru-RU":{buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`},"sk-SK":{buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`},"sl-SI":{buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`},"sr-SP":{buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`},"sv-SE":{buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`},"tr-TR":{buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`},"uk-UA":{buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`},"zh-CN":{buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组，其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`},"zh-TW":{buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`}};var o=n(72317),i=n(76423),a=n(68116),s=n(86025),l=n(96540),c=n(72114),u=n(38783),d=n(32144),p=n(20381),h=n(43773),f=n(99008);function m(e,t){let{buttonRef:n,popoverRef:m,inputRef:g,listBoxRef:v,keyboardDelegate:y,layoutDelegate:b,shouldFocusWrap:w,isReadOnly:x,isDisabled:S}=e,_=(0,p.oe)((C=r)&&C.__esModule?C.default:C,"@react-aria/combobox");var C;let{menuTriggerProps:E,menuProps:k}=(0,h.Vi)({type:"listbox",isDisabled:S||x},t,n);a.bB.set(t,{id:k.id});let{collection:z}=t,{disabledKeys:P}=t.selectionManager,A=(0,l.useMemo)((()=>y||new(0,u.nW)({collection:z,disabledKeys:P,ref:v,layoutDelegate:b})),[y,b,z,P,v]),{collectionProps:D}=(0,u.y)({selectionManager:t.selectionManager,keyboardDelegate:A,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:w,ref:g,isVirtualized:!0}),T=(0,s.rd)(),{isInvalid:I,validationErrors:M,validationDetails:N}=t.displayValidation,{labelProps:O,inputProps:R,descriptionProps:j,errorMessageProps:F}=(0,f.v)({...e,onChange:t.setInputValue,onKeyDown:x?e.onKeyDown:(0,s.cy)(t.isOpen&&D.onKeyDown,(n=>{if(!n.nativeEvent.isComposing)switch(n.key){case"Enter":case"Tab":if(t.isOpen&&"Enter"===n.key&&n.preventDefault(),t.isOpen&&null!=t.selectionManager.focusedKey&&t.selectionManager.isLink(t.selectionManager.focusedKey)){if("Enter"===n.key){let e=v.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(e instanceof HTMLAnchorElement){let r=t.collection.getItem(t.selectionManager.focusedKey);T.open(e,n,r.props.href,r.props.routerOptions)}}t.close()}else t.commit();break;case"Escape":(null!==t.selectedKey||""===t.inputValue||e.allowsCustomValue)&&n.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null)}}),e.onKeyDown),onBlur:r=>{var o;let i=(null==n?void 0:n.current)&&n.current===r.relatedTarget,a=null===(o=m.current)||void 0===o?void 0:o.contains(r.relatedTarget);i||a||(e.onBlur&&e.onBlur(r),t.setFocused(!1))},value:t.inputValue,onFocus:n=>{t.isFocused||(e.onFocus&&e.onFocus(n),t.setFocused(!0))},autoComplete:"off",validate:void 0,[d.Lf]:t},g),B=(0,s.b0)({id:E.id,"aria-label":_.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||O.id}),L=(0,s.b0)({id:k.id,"aria-label":_.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||O.id}),V=(0,l.useRef)(0),K=null!=t.selectionManager.focusedKey&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var H;let $=null!==(H=null==K?void 0:K.parentKey)&&void 0!==H?H:null;var U;let W=null!==(U=t.selectionManager.focusedKey)&&void 0!==U?U:null,q=(0,l.useRef)($),G=(0,l.useRef)(W);(0,l.useEffect)((()=>{if((0,s.lg)()&&null!=K&&W!==G.current){let e=t.selectionManager.isSelected(W),n=null!=$?t.collection.getItem($):null,r=(null==n?void 0:n["aria-label"])||("string"==typeof(null==n?void 0:n.rendered)?n.rendered:"")||"",i=_.format("focusAnnouncement",{isGroupChange:n&&$!==q.current,groupTitle:r,groupCount:n?[...(0,c.iQ)(n,t.collection)].length:0,optionText:K["aria-label"]||K.textValue||"",isSelected:e});(0,o.iP)(i)}q.current=$,G.current=W}));let Z=(0,c.vS)(t.collection),Y=(0,l.useRef)(Z),X=(0,l.useRef)(t.isOpen);(0,l.useEffect)((()=>{let e=t.isOpen!==X.current&&(null==t.selectionManager.focusedKey||(0,s.lg)());if(t.isOpen&&(e||Z!==Y.current)){let e=_.format("countAnnouncement",{optionCount:Z});(0,o.iP)(e)}Y.current=Z,X.current=t.isOpen}));let J=(0,l.useRef)(t.selectedKey);return(0,l.useEffect)((()=>{if((0,s.lg)()&&t.isFocused&&t.selectedItem&&t.selectedKey!==J.current){let e=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",n=_.format("selectedAnnouncement",{optionText:e});(0,o.iP)(n)}J.current=t.selectedKey})),(0,l.useEffect)((()=>{if(t.isOpen)return(0,i.hD)([g.current,m.current])}),[t.isOpen,g,m]),{labelProps:O,buttonProps:{...E,...B,excludeFromTabOrder:!0,onPress:e=>{"touch"===e.pointerType&&(g.current.focus(),t.toggle(null,"manual"))},onPressStart:e=>{"touch"!==e.pointerType&&(g.current.focus(),t.toggle("keyboard"===e.pointerType||"virtual"===e.pointerType?"first":null,"manual"))},isDisabled:S||x},inputProps:(0,s.v6)(R,{role:"combobox","aria-expanded":E["aria-expanded"],"aria-controls":t.isOpen?k.id:void 0,"aria-autocomplete":"list","aria-activedescendant":K?(0,a.HP)(t,K.key):void 0,onTouchEnd:e=>{if(S||x)return;if(e.timeStamp-V.current<500)return e.preventDefault(),void g.current.focus();let n=e.target.getBoundingClientRect(),r=e.changedTouches[0],o=Math.ceil(n.left+.5*n.width),i=Math.ceil(n.top+.5*n.height);r.clientX===o&&r.clientY===i&&(e.preventDefault(),g.current.focus(),t.toggle(null,"manual"),V.current=e.timeStamp)},autoCorrect:"off",spellCheck:"false"}),listBoxProps:(0,s.v6)(k,L,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:j,errorMessageProps:F,isInvalid:I,validationErrors:M,validationDetails:N}}},93828:(e,t,n)=>{"use strict";n(74373),n(86025),n(20381),n(96540),n(37555);n(2973),n(75944);new WeakMap,Date.now(),Date.now();n(32144);n(34361),n(37515),n(63792)},23808:(e,t,n)=>{"use strict";n.d(t,{s:()=>s});var r=n(86025),o=n(74373),i=n(96540),a=n(76423);function s(e,t){let{role:n="dialog"}=e,s=(0,r.X1)();s=e["aria-label"]?void 0:s;let l=(0,i.useRef)(!1);return(0,i.useEffect)((()=>{if(t.current&&!t.current.contains(document.activeElement)){(0,o.lY)(t.current);let e=setTimeout((()=>{document.activeElement===t.current&&(l.current=!0,t.current&&(t.current.blur(),(0,o.lY)(t.current)),l.current=!1)}),500);return()=>{clearTimeout(e)}}}),[t]),(0,a.Se)(),{dialogProps:{...(0,r.$X)(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||s,onBlur:e=>{l.current&&e.stopPropagation()}},titleProps:{id:s}}}},87874:(e,t,n)=>{"use strict";var r,o;n.d(t,{B2:()=>Ce,_z:()=>Ee,iD:()=>xe,TG:()=>ye,OG:()=>ve,Hd:()=>ie,mp:()=>me,z2:()=>he}),(o=r||(r={}))[o.none=0]="none",o[o.cancel=0]="cancel",o[o.move=1]="move",o[o.copy=2]="copy",o[o.link=4]="link",o[o.all=7]="all";const i={...r,copyMove:3,copyLink:6,linkMove:5,all:7,uninitialized:7},a=c(i);a[7]="all";c(r);const s={none:"cancel",link:"link",copy:"copy",move:"move"},l=c(s);function c(e){let t={};for(let n in e)t[e[n]]=n;return t}const u=new Set(["text/plain","text/uri-list","text/html"]),d="application/vnd.react-aria.items+json",p="application/octet-stream";var h=n(37555);const f=new WeakMap,m=Symbol();function g(e){let{id:t}=f.get(e);if(!t)throw new Error("Droppable item outside a droppable collection");return t}function v(e){let{ref:t}=f.get(e);if(!t)throw new Error("Droppable item outside a droppable collection");return t}function y(e){let t=new Set;for(let n of e)for(let e of Object.keys(n))t.add(e);return t}function b(e){return e||(e="virtual"),"pointer"===e&&(e="virtual"),"virtual"===e&&"undefined"!=typeof window&&"ontouchstart"in window&&(e="touch"),e}function w(){return b((0,h.lb)())}function x(){return b((0,h.ME)())}function S(e,t){let n=new Map,r=!1,o=[];for(let e of t){let t=Object.keys(e);t.length>1&&(r=!0);let i={};for(let o of t){let t=n.get(o);t?r=!0:(t=[],n.set(o,t));let a=e[o];i[o]=a,t.push(a)}o.push(i)}for(let[t,r]of n)if(u.has(t)){let n=r.join("\n");e.items.add(n,t)}else e.items.add(r[0],t);if(r){let t=JSON.stringify(o);e.items.add(t,d)}}class _{has(e){return!!(this.includesUnknownTypes||e===m&&this.types.has(p))||"string"==typeof e&&this.types.has(e)}constructor(e){this.types=new Set;let t=!1;for(let n of e.items)n.type!==d&&("file"===n.kind&&(t=!0),n.type?this.types.add(n.type):this.types.add(p));this.includesUnknownTypes=!t&&e.types.includes("Files")}}function C(e){let t=[],n=!1;if(e.types.includes(d))try{let r=e.getData(d),o=JSON.parse(r);for(let e of o)t.push({kind:"text",types:new Set(Object.keys(e)),getText:t=>Promise.resolve(e[t])});n=!0}catch(e){}if(!n){let n=new Map;for(let r of e.items)if("string"===r.kind)n.set(r.type||p,e.getData(r.type));else if("file"===r.kind)if("function"==typeof r.webkitGetAsEntry){let e=r.webkitGetAsEntry();if(!e)continue;e.isFile?t.push(E(r.getAsFile())):e.isDirectory&&t.push(k(e))}else t.push(E(r.getAsFile()));n.size>0&&t.push({kind:"text",types:new Set(n.keys()),getText:e=>Promise.resolve(n.get(e))})}return t}function E(e){return{kind:"file",type:e.type||p,name:e.name,getText:()=>{return"function"==typeof(t=e).text?t.text():new Promise(((e,n)=>{let r=new FileReader;r.onload=()=>{e(r.result)},r.onerror=n,r.readAsText(t)}));var t},getFile:()=>Promise.resolve(e)}}function k(e){return{kind:"directory",name:e.name,getEntries:()=>async function*(e){let t,n=e.createReader();do{t=await new Promise(((e,t)=>{n.readEntries(e,t)}));for(let e of t)if(e.isFile){let t=await z(e);yield E(t)}else e.isDirectory&&(yield k(e))}while(t.length>0)}(e)}}function z(e){return new Promise(((t,n)=>e.file(t,n)))}let P,A={draggingKeys:new Set};function D(e){A.draggingCollectionRef=e}function T(e){A.dropCollectionRef=e}function I(){A={draggingKeys:new Set}}function M(e){A=e}function N(e){let{draggingCollectionRef:t,dropCollectionRef:n}=A;return null!=(null==t?void 0:t.current)&&t.current===((null==e?void 0:e.current)||(null==n?void 0:n.current))}function O(e){P=e}let R=r.none;function j(e){R=e}var F=n(72317),B=n(76423),L=n(86025),V=n(96540);let K=new Map,H=new Map,$=null,U=new Set;function W(e){return K.set(e.element,e),null==$||$.updateValidDropTargets(),()=>{K.delete(e.element),null==$||$.updateValidDropTargets()}}function q(){let[e,t]=(0,V.useState)($);return(0,V.useEffect)((()=>{let e=()=>t($);return U.add(e),()=>{U.delete(e)}}),[]),e}const G=["pointerdown","pointermove","pointerenter","pointerleave","pointerover","pointerout","pointerup","mousedown","mousemove","mouseenter","mouseleave","mouseover","mouseout","mouseup","touchstart","touchmove","touchend","focusin","focusout"],Z=["pointerup","mouseup","touchend"],Y={keyboard:"dragStartedKeyboard",touch:"dragStartedTouch",virtual:"dragStartedVirtual"};class X{setup(){document.addEventListener("keydown",this.onKeyDown,!0),document.addEventListener("keyup",this.onKeyUp,!0),window.addEventListener("focus",this.onFocus,!0),window.addEventListener("blur",this.onBlur,!0),document.addEventListener("click",this.onClick,!0),document.addEventListener("pointerdown",this.onPointerDown,!0);for(let e of G)document.addEventListener(e,this.cancelEvent,!0);this.mutationObserver=new MutationObserver((()=>this.updateValidDropTargets())),this.updateValidDropTargets(),(0,F.iP)(this.stringFormatter.format(Y[x()]))}teardown(){document.removeEventListener("keydown",this.onKeyDown,!0),document.removeEventListener("keyup",this.onKeyUp,!0),window.removeEventListener("focus",this.onFocus,!0),window.removeEventListener("blur",this.onBlur,!0),document.removeEventListener("click",this.onClick,!0),document.removeEventListener("pointerdown",this.onPointerDown,!0);for(let e of G)document.removeEventListener(e,this.cancelEvent,!0);this.mutationObserver.disconnect(),this.restoreAriaHidden()}onKeyDown(e){var t;this.cancelEvent(e),"Escape"!==e.key?("Tab"!==e.key||e.metaKey||e.altKey||e.ctrlKey||(e.shiftKey?this.previous():this.next()),"function"==typeof(null===(t=this.currentDropTarget)||void 0===t?void 0:t.onKeyDown)&&this.currentDropTarget.onKeyDown(e,this.dragTarget)):this.cancel()}onKeyUp(e){this.cancelEvent(e),"Enter"===e.key&&(e.altKey?this.activate():this.drop())}onFocus(e){if(e.target!==this.dragTarget.element&&this.cancelEvent(e),!(e.target instanceof HTMLElement)||e.target===this.dragTarget.element)return;let t=this.validDropTargets.find((t=>t.element===e.target))||this.validDropTargets.find((t=>t.element.contains(e.target)));if(!t)return void(this.currentDropTarget?this.currentDropTarget.element.focus():this.dragTarget.element.focus());let n=H.get(e.target);this.setCurrentDropTarget(t,n)}onBlur(e){e.target!==this.dragTarget.element&&this.cancelEvent(e),e.relatedTarget&&e.relatedTarget instanceof HTMLElement||(this.currentDropTarget?this.currentDropTarget.element.focus():this.dragTarget.element.focus())}onClick(e){if(this.cancelEvent(e),(0,L.YF)(e)||this.isVirtualClick){if(e.target===this.dragTarget.element)return void this.cancel();let t=this.validDropTargets.find((t=>t.element.contains(e.target)));if(t){let n=H.get(e.target);this.setCurrentDropTarget(t,n),this.drop(n)}}}onPointerDown(e){this.cancelEvent(e),this.isVirtualClick=(0,L.Pg)(e)}cancelEvent(e){var t;("focusin"!==e.type&&"focusout"!==e.type||e.target!==(null===(t=this.dragTarget)||void 0===t?void 0:t.element))&&(Z.includes(e.type)||e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation())}updateValidDropTargets(){if(!this.mutationObserver)return;if(this.mutationObserver.disconnect(),this.restoreAriaHidden&&this.restoreAriaHidden(),this.validDropTargets=function(e){let t=y(e.items);return[...K.values()].filter((n=>!n.element.closest('[aria-hidden="true"]')&&("function"!=typeof n.getDropOperation||"cancel"!==n.getDropOperation(t,e.allowedDropOperations))))}(this.dragTarget),this.validDropTargets.length>0){let e=this.findNearestDropTarget();this.validDropTargets=[...this.validDropTargets.slice(e),...this.validDropTargets.slice(0,e)]}this.currentDropTarget&&!this.validDropTargets.includes(this.currentDropTarget)&&this.setCurrentDropTarget(this.validDropTargets[0]);let e=y(this.dragTarget.items),t=[...H.values()].filter((t=>"function"!=typeof t.getDropOperation||"cancel"!==t.getDropOperation(e,this.dragTarget.allowedDropOperations))),n=this.validDropTargets.filter((e=>!t.some((t=>e.element.contains(t.element)))));this.restoreAriaHidden=(0,B.hD)([this.dragTarget.element,...t.map((e=>e.element)),...n.map((e=>e.element))]),this.mutationObserver.observe(document.body,{subtree:!0,attributes:!0,attributeFilter:["aria-hidden"]})}next(){if(!this.currentDropTarget)return void this.setCurrentDropTarget(this.validDropTargets[0]);let e=this.validDropTargets.indexOf(this.currentDropTarget);e<0?this.setCurrentDropTarget(this.validDropTargets[0]):e===this.validDropTargets.length-1?this.dragTarget.element.closest('[aria-hidden="true"]')?this.setCurrentDropTarget(this.validDropTargets[0]):(this.setCurrentDropTarget(null),this.dragTarget.element.focus()):this.setCurrentDropTarget(this.validDropTargets[e+1])}previous(){if(!this.currentDropTarget)return void this.setCurrentDropTarget(this.validDropTargets[this.validDropTargets.length-1]);let e=this.validDropTargets.indexOf(this.currentDropTarget);e<0?this.setCurrentDropTarget(this.validDropTargets[this.validDropTargets.length-1]):0===e?this.dragTarget.element.closest('[aria-hidden="true"]')?this.setCurrentDropTarget(this.validDropTargets[this.validDropTargets.length-1]):(this.setCurrentDropTarget(null),this.dragTarget.element.focus()):this.setCurrentDropTarget(this.validDropTargets[e-1])}findNearestDropTarget(){let e=this.dragTarget.element.getBoundingClientRect(),t=1/0,n=-1;for(let r=0;r<this.validDropTargets.length;r++){let o=this.validDropTargets[r].element.getBoundingClientRect(),i=o.left-e.left,a=o.top-e.top,s=i*i+a*a;s<t&&(t=s,n=r)}return n}setCurrentDropTarget(e,t){if(e!==this.currentDropTarget){if(this.currentDropTarget&&"function"==typeof this.currentDropTarget.onDropExit){let e=this.currentDropTarget.element.getBoundingClientRect();this.currentDropTarget.onDropExit({type:"dropexit",x:e.left+e.width/2,y:e.top+e.height/2})}if(this.currentDropTarget=e,e){if("function"==typeof e.onDropEnter){let t=e.element.getBoundingClientRect();e.onDropEnter({type:"dropenter",x:t.left+t.width/2,y:t.top+t.height/2},this.dragTarget)}t||null==e||e.element.focus()}}t!==this.currentDropItem&&(t&&"function"==typeof this.currentDropTarget.onDropTargetEnter&&this.currentDropTarget.onDropTargetEnter(null==t?void 0:t.target),null==t||t.element.focus(),this.currentDropItem=t,this.initialFocused||((0,F.iP)(null==t?void 0:t.element.getAttribute("aria-label"),"polite"),this.initialFocused=!0))}end(){if(this.teardown(),function(){$=null;for(let e of U)e()}(),"function"==typeof this.dragTarget.onDragEnd){let e=(this.currentDropTarget&&"cancel"!==this.dropOperation?this.currentDropTarget:this.dragTarget).element.getBoundingClientRect();this.dragTarget.onDragEnd({type:"dragend",x:e.x+e.width/2,y:e.y+e.height/2,dropOperation:this.dropOperation||"cancel"})}this.currentDropTarget&&!this.currentDropTarget.preventFocusOnDrop&&document.activeElement.dispatchEvent(new FocusEvent("focusin",{bubbles:!0})),this.setCurrentDropTarget(null)}cancel(){this.setCurrentDropTarget(null),this.end(),this.dragTarget.element.closest('[aria-hidden="true"]')||this.dragTarget.element.focus(),(0,F.iP)(this.stringFormatter.format("dropCanceled"))}drop(e){if(this.currentDropTarget){if("function"==typeof(null==e?void 0:e.getDropOperation)){let t=y(this.dragTarget.items);this.dropOperation=e.getDropOperation(t,this.dragTarget.allowedDropOperations)}else if("function"==typeof this.currentDropTarget.getDropOperation){let e=y(this.dragTarget.items);this.dropOperation=this.currentDropTarget.getDropOperation(e,this.dragTarget.allowedDropOperations)}else this.dropOperation=this.dragTarget.allowedDropOperations[0];if("function"==typeof this.currentDropTarget.onDrop){let t=this.dragTarget.items.map((e=>({kind:"text",types:new Set(Object.keys(e)),getText:t=>Promise.resolve(e[t])}))),n=this.currentDropTarget.element.getBoundingClientRect();this.currentDropTarget.onDrop({type:"drop",x:n.left+n.width/2,y:n.top+n.height/2,items:t,dropOperation:this.dropOperation},null==e?void 0:e.target)}this.end(),(0,F.iP)(this.stringFormatter.format("dropComplete"))}else this.cancel()}activate(){if(this.currentDropTarget&&"function"==typeof this.currentDropTarget.onDropActivate){let e=this.currentDropTarget.element.getBoundingClientRect();this.currentDropTarget.onDropActivate({type:"dropactivate",x:e.left+e.width/2,y:e.top+e.height/2})}}constructor(e,t){this.dragTarget=e,this.stringFormatter=t,this.onKeyDown=this.onKeyDown.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onClick=this.onClick.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.cancelEvent=this.cancelEvent.bind(this),this.initialFocused=!1}}var J={};J={"ar-AE":{dragDescriptionKeyboard:"اضغط Enter لبدء السحب.",dragDescriptionKeyboardAlt:"اضغط على Alt + Enter لبدء السحب.",dragDescriptionLongPress:"اضغط باستمرار لبدء السحب.",dragDescriptionTouch:"اضغط مرتين لبدء السحب.",dragDescriptionVirtual:"انقر لبدء السحب.",dragItem:e=>`اسحب ${e.itemText}`,dragSelectedItems:(e,t)=>`اسحب ${t.plural(e.count,{one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عناصر محددة`})}`,dragSelectedKeyboard:(e,t)=>`اضغط على Enter للسحب ${t.plural(e.count,{one:"عدد العناصر المختارة",other:"عدد العناصر المختارة"})}.`,dragSelectedKeyboardAlt:(e,t)=>`اضغط على مفتاحي Alt + Enter للسحب ${t.plural(e.count,{one:"عدد العناصر المختارة",other:"عدد العناصر المختارة"})}.`,dragSelectedLongPress:(e,t)=>`اضغط باستمرار للسحب ${t.plural(e.count,{one:"عدد العناصر المختارة",other:"عدد العناصر المختارة"})}.`,dragStartedKeyboard:"بدأ السحب. اضغط Tab للانتقال إلى موضع الإفلات، ثم اضغط Enter للإفلات، أو اضغط Escape للإلغاء.",dragStartedTouch:"بدأ السحب. انتقل إلى موضع الإفلات، ثم اضغط مرتين للإفلات.",dragStartedVirtual:"بدأ السحب. انتقل إلى مكان الإفلات، ثم انقر أو اضغط Enter للإفلات.",dropCanceled:"تم إلغاء الإفلات.",dropComplete:"اكتمل الإفلات.",dropDescriptionKeyboard:"اضغط Enter للإفلات. اضغط Escape لإلغاء السحب.",dropDescriptionTouch:"اضغط مرتين للإفلات.",dropDescriptionVirtual:"انقر للإفلات.",dropIndicator:"مؤشر الإفلات",dropOnItem:e=>`إفلات ${e.itemText}`,dropOnRoot:"الإفلات",endDragKeyboard:"السحب. اضغط Enter لإلغاء السحب.",endDragTouch:"السحب. اضغط مرتين لإلغاء السحب.",endDragVirtual:"السحب. انقر لإلغاء السحب.",insertAfter:e=>`أدخل بعد ${e.itemText}`,insertBefore:e=>`أدخل قبل ${e.itemText}`,insertBetween:e=>`أدخل بين ${e.beforeItemText} و ${e.afterItemText}`},"bg-BG":{dragDescriptionKeyboard:"Натиснете „Enter“, за да започнете да плъзгате.",dragDescriptionKeyboardAlt:"Натиснете Alt + Enter, за да започнете да плъзгате.",dragDescriptionLongPress:"Натиснете продължително, за да започнете да плъзгате.",dragDescriptionTouch:"Натиснете двукратно, за да започнете да плъзгате.",dragDescriptionVirtual:"Щракнете, за да започнете да плъзгате.",dragItem:e=>`Плъзни ${e.itemText}`,dragSelectedItems:(e,t)=>`Плъзни ${t.plural(e.count,{one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елемента`})}`,dragSelectedKeyboard:(e,t)=>`Натиснете Enter, за да плъзнете ${t.plural(e.count,{one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Натиснете Alt и Enter, за да плъзнете ${t.plural(e.count,{one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,dragSelectedLongPress:(e,t)=>`Натиснете продължително, за да плъзнете ${t.plural(e.count,{one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,dragStartedKeyboard:"Започна плъзгане. Натиснете „Tab“, за да се придвижите до целта, след което натиснете „Enter“ за пускане или натиснете „Escape“ за отмяна.",dragStartedTouch:"Започна плъзгане. Придвижете се до целта, след което натиснете двукратно, за да пуснете.",dragStartedVirtual:"Започна плъзгане. Придвижете се до целта, след което щракнете или натиснете „Enter“ за пускане.",dropCanceled:"Пускането е отменено.",dropComplete:"Пускането е завършено.",dropDescriptionKeyboard:"Натиснете „Enter“ за пускане. Натиснете „Escape“ за отмяна на плъзгането.",dropDescriptionTouch:"Натиснете двукратно за пускане.",dropDescriptionVirtual:"Щракнете за пускане.",dropIndicator:"индикатор за пускане",dropOnItem:e=>`Пусни върху ${e.itemText}`,dropOnRoot:"Пусни върху",endDragKeyboard:"Плъзгане. Натиснете „Enter“ за отмяна на плъзгането.",endDragTouch:"Плъзгане. Натиснете двукратно за отмяна на плъзгането.",endDragVirtual:"Плъзгане. Щракнете за отмяна.",insertAfter:e=>`Вмъкни след ${e.itemText}`,insertBefore:e=>`Вмъкни преди ${e.itemText}`,insertBetween:e=>`Вмъкни между ${e.beforeItemText} и ${e.afterItemText}`},"cs-CZ":{dragDescriptionKeyboard:"Stisknutím klávesy Enter začnete s přetahováním.",dragDescriptionKeyboardAlt:"Stisknutím Alt + Enter zahájíte přetahování.",dragDescriptionLongPress:"Dlouhým stisknutím zahájíte přetahování.",dragDescriptionTouch:"Poklepáním začnete s přetahováním.",dragDescriptionVirtual:"Kliknutím začnete s přetahováním.",dragItem:e=>`Přetáhnout ${e.itemText}`,dragSelectedItems:(e,t)=>`Přetáhnout ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou položku`,few:()=>`${t.number(e.count)} vybrané položky`,other:()=>`${t.number(e.count)} vybraných položek`})}`,dragSelectedKeyboard:(e,t)=>`Stisknutím klávesy Enter přetáhněte ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou položku`,other:()=>`${t.number(e.count)} vybrané položky`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Stisknutím Alt + Enter přetáhněte ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou položku`,other:()=>`${t.number(e.count)} vybrané položky`})}.`,dragSelectedLongPress:(e,t)=>`Dlouhým stisknutím přetáhnete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou položku`,other:()=>`${t.number(e.count)} vybrané položky`})}.`,dragStartedKeyboard:"Začněte s přetahováním. Po stisknutí klávesy Tab najděte požadovaný cíl a stisknutím klávesy Enter přetažení dokončete nebo stisknutím klávesy Esc akci zrušte.",dragStartedTouch:"Začněte s přetahováním. Najděte požadovaný cíl a poklepáním přetažení dokončete.",dragStartedVirtual:"Začněte s přetahováním. Najděte požadovaný cíl a kliknutím nebo stisknutím klávesy Enter přetažení dokončete.",dropCanceled:"Přetažení bylo zrušeno.",dropComplete:"Přetažení bylo dokončeno.",dropDescriptionKeyboard:"Stisknutím klávesy Enter přetažení dokončete nebo stisknutím klávesy Esc akci zrušte.",dropDescriptionTouch:"Poklepáním přetažení dokončete.",dropDescriptionVirtual:"Kliknutím objekt přetáhněte.",dropIndicator:"indikátor přetažení",dropOnItem:e=>`Přetáhnout na ${e.itemText}`,dropOnRoot:"Přetáhnout na",endDragKeyboard:"Probíhá přetahování. Stisknutím klávesy Enter přetažení zrušíte.",endDragTouch:"Probíhá přetahování. Poklepáním přetažení zrušíte.",endDragVirtual:"Probíhá přetahování. Kliknutím přetažení zrušíte.",insertAfter:e=>`Vložit za ${e.itemText}`,insertBefore:e=>`Vložit před ${e.itemText}`,insertBetween:e=>`Vložit mezi ${e.beforeItemText} a ${e.afterItemText}`},"da-DK":{dragDescriptionKeyboard:"Tryk på Enter for at starte med at trække.",dragDescriptionKeyboardAlt:"Tryk på Alt + Enter for at starte med at trække.",dragDescriptionLongPress:"Tryk længe for at starte med at trække.",dragDescriptionTouch:"Dobbelttryk for at starte med at trække.",dragDescriptionVirtual:"Klik for at starte med at trække.",dragItem:e=>`Træk ${e.itemText}`,dragSelectedItems:(e,t)=>`Træk ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}`,dragSelectedKeyboard:(e,t)=>`Tryk på Enter for at trække ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Tryk på Alt + Enter for at trække ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedLongPress:(e,t)=>`Tryk længe for at trække ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragStartedKeyboard:"Startet med at trække. Tryk på Tab for at gå til et slip-mål, tryk derefter på Enter for at slippe, eller tryk på Escape for at annullere.",dragStartedTouch:"Startet med at trække. Gå til et slip-mål, og dobbelttryk derefter for at slippe.",dragStartedVirtual:"Startet med at trække. Gå til et slip-mål, og klik eller tryk derefter på enter for at slippe.",dropCanceled:"Slip annulleret.",dropComplete:"Slip fuldført.",dropDescriptionKeyboard:"Tryk på Enter for at slippe. Tryk på Escape for at annullere trækning.",dropDescriptionTouch:"Dobbelttryk for at slippe.",dropDescriptionVirtual:"Klik for at slippe.",dropIndicator:"slip-indikator",dropOnItem:e=>`Slip på ${e.itemText}`,dropOnRoot:"Slip på",endDragKeyboard:"Trækning. Tryk på enter for at annullere træk.",endDragTouch:"Trækning. Dobbelttryk for at annullere træk.",endDragVirtual:"Trækning. Klik for at annullere trækning.",insertAfter:e=>`Indsæt efter ${e.itemText}`,insertBefore:e=>`Indsæt før ${e.itemText}`,insertBetween:e=>`Indsæt mellem ${e.beforeItemText} og ${e.afterItemText}`},"de-DE":{dragDescriptionKeyboard:"Drücken Sie die Eingabetaste, um den Ziehvorgang zu starten.",dragDescriptionKeyboardAlt:"Alt + Eingabe drücken, um den Ziehvorgang zu starten.",dragDescriptionLongPress:"Lang drücken, um mit dem Ziehen zu beginnen.",dragDescriptionTouch:"Tippen Sie doppelt, um den Ziehvorgang zu starten.",dragDescriptionVirtual:"Zum Starten des Ziehvorgangs klicken.",dragItem:e=>`${e.itemText} ziehen`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgewähltes Objekt`,other:()=>`${t.number(e.count)} ausgewählte Objekte`})} ziehen`,dragSelectedKeyboard:(e,t)=>`Eingabetaste drücken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgewähltes Element`,other:()=>`${t.number(e.count)} ausgewählte Elemente`})} zu ziehen.`,dragSelectedKeyboardAlt:(e,t)=>`Alt + Eingabetaste drücken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgewähltes Element`,other:()=>`${t.number(e.count)} ausgewählte Elemente`})} zu ziehen.`,dragSelectedLongPress:(e,t)=>`Lang drücken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgewähltes Element`,other:()=>`${t.number(e.count)} ausgewählte Elemente`})} zu ziehen.`,dragStartedKeyboard:"Ziehvorgang gestartet. Drücken Sie die Tabulatortaste, um zu einem Ablegeziel zu navigieren und drücken Sie dann die Eingabetaste, um das Objekt abzulegen, oder Escape, um den Vorgang abzubrechen.",dragStartedTouch:"Ziehvorgang gestartet. Navigieren Sie zu einem Ablegeziel und tippen Sie doppelt, um das Objekt abzulegen.",dragStartedVirtual:"Ziehvorgang gestartet. Navigieren Sie zu einem Ablegeziel und klicken Sie oder drücken Sie die Eingabetaste, um das Objekt abzulegen.",dropCanceled:"Ablegen abgebrochen.",dropComplete:"Ablegen abgeschlossen.",dropDescriptionKeyboard:"Drücken Sie die Eingabetaste, um das Objekt abzulegen. Drücken Sie Escape, um den Vorgang abzubrechen.",dropDescriptionTouch:"Tippen Sie doppelt, um das Objekt abzulegen.",dropDescriptionVirtual:"Zum Ablegen klicken.",dropIndicator:"Ablegeanzeiger",dropOnItem:e=>`Auf ${e.itemText} ablegen`,dropOnRoot:"Ablegen auf",endDragKeyboard:"Ziehvorgang läuft. Drücken Sie die Eingabetaste, um den Vorgang abzubrechen.",endDragTouch:"Ziehvorgang läuft. Tippen Sie doppelt, um den Vorgang abzubrechen.",endDragVirtual:"Ziehvorgang läuft. Klicken Sie, um den Vorgang abzubrechen.",insertAfter:e=>`Nach ${e.itemText} einfügen`,insertBefore:e=>`Vor ${e.itemText} einfügen`,insertBetween:e=>`Zwischen ${e.beforeItemText} und ${e.afterItemText} einfügen`},"el-GR":{dragDescriptionKeyboard:"Πατήστε Enter για έναρξη της μεταφοράς.",dragDescriptionKeyboardAlt:"Πατήστε Alt + Enter για έναρξη της μεταφοράς.",dragDescriptionLongPress:"Πατήστε παρατεταμένα για να ξεκινήσετε τη μεταφορά.",dragDescriptionTouch:"Πατήστε δύο φορές για έναρξη της μεταφοράς.",dragDescriptionVirtual:"Κάντε κλικ για να ξεκινήσετε τη μεταφορά.",dragItem:e=>`Μεταφορά ${e.itemText}`,dragSelectedItems:(e,t)=>`Μεταφορά σε ${t.plural(e.count,{one:()=>`${t.number(e.count)} επιλεγμένο στοιχείο`,other:()=>`${t.number(e.count)} επιλεγμένα στοιχεία`})}`,dragSelectedKeyboard:(e,t)=>`Πατήστε Enter για να σύρετε ${t.plural(e.count,{one:()=>`${t.number(e.count)} επιλεγμένο στοιχείο`,other:()=>`${t.number(e.count)} επιλεγμένα στοιχεία`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Πατήστε Alt + Enter για να σύρετε ${t.plural(e.count,{one:()=>`${t.number(e.count)} επιλεγμένο στοιχείο`,other:()=>`${t.number(e.count)} επιλεγμένα στοιχεία`})}.`,dragSelectedLongPress:(e,t)=>`Πατήστε παρατεταμένα για να σύρετε ${t.plural(e.count,{one:()=>`${t.number(e.count)} επιλεγμένο στοιχείο`,other:()=>`${t.number(e.count)} επιλεγμένα στοιχεία`})}.`,dragStartedKeyboard:"Η μεταφορά ξεκίνησε. Πατήστε το πλήκτρο Tab για να μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, πατήστε Enter για απόθεση ή πατήστε Escape για ακύρωση.",dragStartedTouch:"Η μεταφορά ξεκίνησε. Μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, πατήστε δύο φορές για απόθεση.",dragStartedVirtual:"Η μεταφορά ξεκίνησε. Μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, κάντε κλικ ή πατήστε Enter για απόθεση.",dropCanceled:"Η απόθεση ακυρώθηκε.",dropComplete:"Η απόθεση ολοκληρώθηκε.",dropDescriptionKeyboard:"Πατήστε Enter για απόθεση. Πατήστε Escape για ακύρωση της μεταφοράς.",dropDescriptionTouch:"Πατήστε δύο φορές για απόθεση.",dropDescriptionVirtual:"Κάντε κλικ για απόθεση.",dropIndicator:"δείκτης απόθεσης",dropOnItem:e=>`Απόθεση σε ${e.itemText}`,dropOnRoot:"Απόθεση σε",endDragKeyboard:"Μεταφορά σε εξέλιξη. Πατήστε Enter για ακύρωση της μεταφοράς.",endDragTouch:"Μεταφορά σε εξέλιξη. Πατήστε δύο φορές για ακύρωση της μεταφοράς.",endDragVirtual:"Μεταφορά σε εξέλιξη. Κάντε κλικ για ακύρωση της μεταφοράς.",insertAfter:e=>`Εισαγωγή μετά από ${e.itemText}`,insertBefore:e=>`Εισαγωγή πριν από ${e.itemText}`,insertBetween:e=>`Εισαγωγή μεταξύ ${e.beforeItemText} και ${e.afterItemText}`},"en-US":{dragItem:e=>`Drag ${e.itemText}`,dragSelectedItems:(e,t)=>`Drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}`,dragDescriptionKeyboard:"Press Enter to start dragging.",dragDescriptionKeyboardAlt:"Press Alt + Enter to start dragging.",dragDescriptionTouch:"Double tap to start dragging.",dragDescriptionVirtual:"Click to start dragging.",dragDescriptionLongPress:"Long press to start dragging.",dragSelectedKeyboard:(e,t)=>`Press Enter to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Press Alt + Enter to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragSelectedLongPress:(e,t)=>`Long press to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragStartedKeyboard:"Started dragging. Press Tab to navigate to a drop target, then press Enter to drop, or press Escape to cancel.",dragStartedTouch:"Started dragging. Navigate to a drop target, then double tap to drop.",dragStartedVirtual:"Started dragging. Navigate to a drop target, then click or press Enter to drop.",endDragKeyboard:"Dragging. Press Enter to cancel drag.",endDragTouch:"Dragging. Double tap to cancel drag.",endDragVirtual:"Dragging. Click to cancel drag.",dropDescriptionKeyboard:"Press Enter to drop. Press Escape to cancel drag.",dropDescriptionTouch:"Double tap to drop.",dropDescriptionVirtual:"Click to drop.",dropCanceled:"Drop canceled.",dropComplete:"Drop complete.",dropIndicator:"drop indicator",dropOnRoot:"Drop on",dropOnItem:e=>`Drop on ${e.itemText}`,insertBefore:e=>`Insert before ${e.itemText}`,insertBetween:e=>`Insert between ${e.beforeItemText} and ${e.afterItemText}`,insertAfter:e=>`Insert after ${e.itemText}`},"es-ES":{dragDescriptionKeyboard:"Pulse Intro para empezar a arrastrar.",dragDescriptionKeyboardAlt:"Pulse Intro para empezar a arrastrar.",dragDescriptionLongPress:"Mantenga pulsado para comenzar a arrastrar.",dragDescriptionTouch:"Pulse dos veces para iniciar el arrastre.",dragDescriptionVirtual:"Haga clic para iniciar el arrastre.",dragItem:e=>`Arrastrar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}`,dragSelectedKeyboard:(e,t)=>`Pulse Intro para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pulse Alt + Intro para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragSelectedLongPress:(e,t)=>`Mantenga pulsado para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragStartedKeyboard:"Se ha empezado a arrastrar. Pulse el tabulador para ir al público destinatario donde se vaya a colocar y, a continuación, pulse Intro para soltar, o pulse Escape para cancelar.",dragStartedTouch:"Se ha empezado a arrastrar. Vaya al público destinatario donde se vaya a colocar y, a continuación, pulse dos veces para soltar.",dragStartedVirtual:"Se ha empezado a arrastrar. Vaya al público destinatario donde se vaya a colocar y, a continuación, haga clic o pulse Intro para soltar.",dropCanceled:"Se ha cancelado la colocación.",dropComplete:"Colocación finalizada.",dropDescriptionKeyboard:"Pulse Intro para soltar. Pulse Escape para cancelar el arrastre.",dropDescriptionTouch:"Pulse dos veces para soltar.",dropDescriptionVirtual:"Haga clic para soltar.",dropIndicator:"indicador de colocación",dropOnItem:e=>`Soltar en ${e.itemText}`,dropOnRoot:"Soltar en",endDragKeyboard:"Arrastrando. Pulse Intro para cancelar el arrastre.",endDragTouch:"Arrastrando. Pulse dos veces para cancelar el arrastre.",endDragVirtual:"Arrastrando. Haga clic para cancelar el arrastre.",insertAfter:e=>`Insertar después de ${e.itemText}`,insertBefore:e=>`Insertar antes de ${e.itemText}`,insertBetween:e=>`Insertar entre ${e.beforeItemText} y ${e.afterItemText}`},"et-EE":{dragDescriptionKeyboard:"Lohistamise alustamiseks vajutage klahvi Enter.",dragDescriptionKeyboardAlt:"Lohistamise alustamiseks vajutage klahvikombinatsiooni Alt + Enter.",dragDescriptionLongPress:"Vajutage pikalt lohistamise alustamiseks.",dragDescriptionTouch:"Topeltpuudutage lohistamise alustamiseks.",dragDescriptionVirtual:"Klõpsake lohistamise alustamiseks.",dragItem:e=>`Lohista ${e.itemText}`,dragSelectedItems:(e,t)=>`Lohista ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud üksust`,other:()=>`${t.number(e.count)} valitud üksust`})}`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud üksuse`,other:()=>`${t.number(e.count)} valitud üksuse`})} lohistamiseks vajutage sisestusklahvi Enter.`,dragSelectedKeyboardAlt:(e,t)=>`Lohistamiseks vajutage klahvikombinatsiooni Alt + Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud üksuse`,other:()=>`${t.number(e.count)} valitud üksuse`})} jaoks.`,dragSelectedLongPress:(e,t)=>`Pikk vajutus ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud üksuse`,other:()=>`${t.number(e.count)} valitud üksuse`})} lohistamiseks.`,dragStartedKeyboard:"Alustati lohistamist. Kukutamise sihtmärgi juurde navigeerimiseks vajutage klahvi Tab, seejärel vajutage kukutamiseks klahvi Enter või loobumiseks klahvi Escape.",dragStartedTouch:"Alustati lohistamist. Navigeerige kukutamise sihtmärgi juurde ja topeltpuudutage kukutamiseks.",dragStartedVirtual:"Alustati lohistamist. Navigeerige kukutamise sihtmärgi juurde ja kukutamiseks klõpsake või vajutage klahvi Enter.",dropCanceled:"Lohistamisest loobuti.",dropComplete:"Lohistamine on tehtud.",dropDescriptionKeyboard:"Kukutamiseks vajutage klahvi Enter. Lohistamisest loobumiseks vajutage klahvi Escape.",dropDescriptionTouch:"Kukutamiseks topeltpuudutage.",dropDescriptionVirtual:"Kukutamiseks klõpsake.",dropIndicator:"lohistamise indikaator",dropOnItem:e=>`Kukuta asukohta ${e.itemText}`,dropOnRoot:"Kukuta asukohta",endDragKeyboard:"Lohistamine. Lohistamisest loobumiseks vajutage klahvi Enter.",endDragTouch:"Lohistamine. Lohistamisest loobumiseks topeltpuudutage.",endDragVirtual:"Lohistamine. Lohistamisest loobumiseks klõpsake.",insertAfter:e=>`Sisesta ${e.itemText} järele`,insertBefore:e=>`Sisesta ${e.itemText} ette`,insertBetween:e=>`Sisesta ${e.beforeItemText} ja ${e.afterItemText} vahele`},"fi-FI":{dragDescriptionKeyboard:"Aloita vetäminen painamalla Enter-näppäintä.",dragDescriptionKeyboardAlt:"Aloita vetäminen painamalla Alt + Enter -näppäinyhdistelmää.",dragDescriptionLongPress:"Aloita vetäminen pitämällä painettuna.",dragDescriptionTouch:"Aloita vetäminen kaksoisnapauttamalla.",dragDescriptionVirtual:"Aloita vetäminen napsauttamalla.",dragItem:e=>`Vedä kohdetta ${e.itemText}`,dragSelectedItems:(e,t)=>`Vedä ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittua kohdetta`,other:()=>`${t.number(e.count)} valittua kohdetta`})}`,dragSelectedKeyboard:(e,t)=>`Vedä painamalla Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Vedä painamalla Alt + Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragSelectedLongPress:(e,t)=>`Vedä pitämällä painettuna ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragStartedKeyboard:"Vetäminen aloitettu. Siirry pudotuskohteeseen painamalla sarkainnäppäintä ja sitten pudota painamalla Enter-näppäintä tai peruuta painamalla Escape-näppäintä.",dragStartedTouch:"Vetäminen aloitettu. Siirry pudotuskohteeseen ja pudota kaksoisnapauttamalla.",dragStartedVirtual:"Vetäminen aloitettu. Siirry pudotuskohteeseen ja pudota napsauttamalla tai painamalla Enter-näppäintä.",dropCanceled:"Pudotus peruutettu.",dropComplete:"Pudotus suoritettu.",dropDescriptionKeyboard:"Pudota painamalla Enter-näppäintä. Peruuta vetäminen painamalla Escape-näppäintä.",dropDescriptionTouch:"Pudota kaksoisnapauttamalla.",dropDescriptionVirtual:"Pudota napsauttamalla.",dropIndicator:"pudotuksen ilmaisin",dropOnItem:e=>`Pudota kohteeseen ${e.itemText}`,dropOnRoot:"Pudota kohteeseen",endDragKeyboard:"Vedetään. Peruuta vetäminen painamalla Enter-näppäintä.",endDragTouch:"Vedetään. Peruuta vetäminen kaksoisnapauttamalla.",endDragVirtual:"Vedetään. Peruuta vetäminen napsauttamalla.",insertAfter:e=>`Lisää kohteen ${e.itemText} jälkeen`,insertBefore:e=>`Lisää ennen kohdetta ${e.itemText}`,insertBetween:e=>`Lisää kohteiden ${e.beforeItemText} ja ${e.afterItemText} väliin`},"fr-FR":{dragDescriptionKeyboard:"Appuyez sur Entrée pour commencer le déplacement.",dragDescriptionKeyboardAlt:"Appuyez sur Alt + Entrée pour commencer à faire glisser.",dragDescriptionLongPress:"Appuyez de manière prolongée pour commencer à faire glisser.",dragDescriptionTouch:"Touchez deux fois pour commencer le déplacement.",dragDescriptionVirtual:"Cliquez pour commencer le déplacement.",dragItem:e=>`Déplacer ${e.itemText}`,dragSelectedItems:(e,t)=>`Déplacer ${t.plural(e.count,{one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}`,dragSelectedKeyboard:(e,t)=>`Appuyez sur Entrée pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Appuyez sur Alt + Entrée pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,dragSelectedLongPress:(e,t)=>`Appuyez de manière prolongée pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,dragStartedKeyboard:"Déplacement commencé. Appuyez sur Tabulation pour accéder à une cible de dépôt, puis appuyez sur Entrée pour déposer, ou appuyez sur Échap pour annuler.",dragStartedTouch:"Déplacement commencé. Accédez à une cible de dépôt, puis touchez deux fois pour déposer.",dragStartedVirtual:"Déplacement commencé. Accédez à une cible de dépôt, puis cliquez ou appuyez sur Entrée pour déposer.",dropCanceled:"Dépôt annulé.",dropComplete:"Dépôt terminé.",dropDescriptionKeyboard:"Appuyez sur Entrée pour déposer. Appuyez sur Échap pour annuler le déplacement.",dropDescriptionTouch:"Touchez deux fois pour déposer.",dropDescriptionVirtual:"Cliquez pour déposer.",dropIndicator:"indicateur de dépôt",dropOnItem:e=>`Déposer sur ${e.itemText}`,dropOnRoot:"Déposer sur",endDragKeyboard:"Déplacement. Appuyez sur Entrée pour annuler le déplacement.",endDragTouch:"Déplacement. Touchez deux fois pour annuler le déplacement.",endDragVirtual:"Déplacement. Cliquez pour annuler le déplacement.",insertAfter:e=>`Insérer après ${e.itemText}`,insertBefore:e=>`Insérer avant ${e.itemText}`,insertBetween:e=>`Insérer entre ${e.beforeItemText} et ${e.afterItemText}`},"he-IL":{dragDescriptionKeyboard:"הקש על Enter כדי להתחיל לגרור.",dragDescriptionKeyboardAlt:"הקש Alt + Enter כדי להתחיל לגרור.",dragDescriptionLongPress:"לחץ לחיצה ארוכה כדי להתחיל לגרור.",dragDescriptionTouch:"הקש פעמיים כדי להתחיל בגרירה.",dragDescriptionVirtual:"לחץ כדי להתחיל לגרור.",dragItem:e=>`גרור את ${e.itemText}`,dragSelectedItems:(e,t)=>`גרור ${t.plural(e.count,{one:()=>`פריט נבחר ${t.number(e.count)}`,other:()=>`${t.number(e.count)} פריטים שנבחרו`})}`,dragSelectedKeyboard:(e,t)=>`הקש על Enter כדי לגרור ${t.plural(e.count,{one:()=>`${t.number(e.count)} פריט שנבחר`,other:()=>`${t.number(e.count)} פריטים שנבחרו`})}.`,dragSelectedKeyboardAlt:(e,t)=>`הקש Alt + Enter כדי לגרור ${t.plural(e.count,{one:()=>`${t.number(e.count)} פריט שנבחר`,other:()=>`${t.number(e.count)} פריטים שנבחרו`})}.`,dragSelectedLongPress:(e,t)=>`לחץ לחיצה ארוכה כדי לגרור ${t.plural(e.count,{one:()=>`${t.number(e.count)} פריט שנבחר`,other:()=>`${t.number(e.count)} פריטים שנבחרו`})}.`,dragStartedKeyboard:"התחלת לגרור. הקש על Tab כדי לנווט לנקודת הגרירה ולאחר מכן הקש על Enter כדי לשחרר או על Escape כדי לבטל.",dragStartedTouch:"התחלת לגרור. נווט לנקודת השחרור ולאחר מכן הקש פעמיים כדי לשחרר.",dragStartedVirtual:"התחלת לגרור. נווט לנקודת השחרור ולאחר מכן לחץ או הקש על Enter כדי לשחרר.",dropCanceled:"השחרור בוטל.",dropComplete:"השחרור הושלם.",dropDescriptionKeyboard:"הקש על Enter כדי לשחרר. הקש על Escape כדי לבטל את הגרירה.",dropDescriptionTouch:"הקש פעמיים כדי לשחרר.",dropDescriptionVirtual:"לחץ כדי לשחרר.",dropIndicator:"מחוון שחרור",dropOnItem:e=>`שחרר על ${e.itemText}`,dropOnRoot:"שחרר על",endDragKeyboard:"גורר. הקש על Enter כדי לבטל את הגרירה.",endDragTouch:"גורר. הקש פעמיים כדי לבטל את הגרירה.",endDragVirtual:"גורר. לחץ כדי לבטל את הגרירה.",insertAfter:e=>`הוסף אחרי ${e.itemText}`,insertBefore:e=>`הוסף לפני ${e.itemText}`,insertBetween:e=>`הוסף בין ${e.beforeItemText} לבין ${e.afterItemText}`},"hr-HR":{dragDescriptionKeyboard:"Pritisnite Enter da biste počeli povlačiti.",dragDescriptionKeyboardAlt:"Pritisnite Alt + Enter za početak povlačenja.",dragDescriptionLongPress:"Dugo pritisnite za početak povlačenja.",dragDescriptionTouch:"Dvaput dodirnite da biste počeli povlačiti.",dragDescriptionVirtual:"Kliknite da biste počeli povlačiti.",dragItem:e=>`Povucite stavku ${e.itemText}`,dragSelectedItems:(e,t)=>`Povucite ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabranu stavku`,other:()=>`ovoliko odabranih stavki: ${t.number(e.count)}`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite Enter za povlačenje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite Alt + Enter za povlačenje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragSelectedLongPress:(e,t)=>`Dugo pritisnite za povlačenje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragStartedKeyboard:"Počeli ste povlačiti. Pritisnite tipku tabulatora da biste došli do cilja ispuštanja, a zatim Enter da biste ispustili stavku ili Escape da biste prekinuli povlačenje.",dragStartedTouch:"Počeli ste povlačiti. Dođite do cilja ispuštanja, a zatim dvaput dodirnite da biste ispustili stavku.",dragStartedVirtual:"Počeli ste povlačiti. Dođite do cilja ispuštanja, a zatim kliknite ili pritisnite Enter da biste ispustili stavku.",dropCanceled:"Povlačenje je prekinuto.",dropComplete:"Ispuštanje je dovršeno.",dropDescriptionKeyboard:"Pritisnite Enter da biste ispustili stavku. Pritisnite Escape da biste prekinuli povlačenje.",dropDescriptionTouch:"Dvaput dodirnite da biste ispustili stavku.",dropDescriptionVirtual:"Kliknite da biste ispustili stavku.",dropIndicator:"pokazatelj ispuštanja",dropOnItem:e=>`Ispustite na stavku ${e.itemText}`,dropOnRoot:"Ispustite na",endDragKeyboard:"Povlačenje. Pritisnite Enter da biste prekinuli povlačenje.",endDragTouch:"Povlačenje. Dvaput dodirnite da biste prekinuli povlačenje.",endDragVirtual:"Povlačenje. Kliknite da biste prekinuli povlačenje.",insertAfter:e=>`Umetnite iza stavke ${e.itemText}`,insertBefore:e=>`Ispustite ispred stavke ${e.itemText}`,insertBetween:e=>`Umetnite između stavki ${e.beforeItemText} i ${e.afterItemText}`},"hu-HU":{dragDescriptionKeyboard:"Nyomja le az Enter billentyűt a húzás megkezdéséhez.",dragDescriptionKeyboardAlt:"Nyomja le az Alt + Enter billentyűket a húzás megkezdéséhez.",dragDescriptionLongPress:"Hosszan nyomja meg a húzás elindításához.",dragDescriptionTouch:"Koppintson duplán a húzás megkezdéséhez.",dragDescriptionVirtual:"Kattintson a húzás megkezdéséhez.",dragItem:e=>`${e.itemText} húzása`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} kijelölt elem`,other:()=>`${t.number(e.count)} kijelölt elem`})} húzása`,dragSelectedKeyboard:(e,t)=>`Nyomja meg az Entert ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijelölt elem`,other:()=>`${t.number(e.count)} kijelölt elem`})} húzásához.`,dragSelectedKeyboardAlt:(e,t)=>`Nyomja meg az Alt + Enter billentyűket ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijelölt elem`,other:()=>`${t.number(e.count)} kijelölt elem`})} húzásához.`,dragSelectedLongPress:(e,t)=>`Tartsa lenyomva hosszan ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijelölt elem`,other:()=>`${t.number(e.count)} kijelölt elem`})} húzásához.`,dragStartedKeyboard:"Húzás megkezdve. Nyomja le a Tab billentyűt az elengedési célhoz navigálásához, majd nyomja le az Enter billentyűt az elengedéshez, vagy nyomja le az Escape billentyűt a megszakításhoz.",dragStartedTouch:"Húzás megkezdve. Navigáljon egy elengedési célhoz, majd koppintson duplán az elengedéshez.",dragStartedVirtual:"Húzás megkezdve. Navigáljon egy elengedési célhoz, majd kattintson vagy nyomja le az Enter billentyűt az elengedéshez.",dropCanceled:"Elengedés megszakítva.",dropComplete:"Elengedés teljesítve.",dropDescriptionKeyboard:"Nyomja le az Enter billentyűt az elengedéshez. Nyomja le az Escape billentyűt a húzás megszakításához.",dropDescriptionTouch:"Koppintson duplán az elengedéshez.",dropDescriptionVirtual:"Kattintson az elengedéshez.",dropIndicator:"elengedésjelző",dropOnItem:e=>`Elengedés erre: ${e.itemText}`,dropOnRoot:"Elengedés erre:",endDragKeyboard:"Húzás folyamatban. Nyomja le az Enter billentyűt a húzás megszakításához.",endDragTouch:"Húzás folyamatban. Koppintson duplán a húzás megszakításához.",endDragVirtual:"Húzás folyamatban. Kattintson a húzás megszakításához.",insertAfter:e=>`Beszúrás ${e.itemText} után`,insertBefore:e=>`Beszúrás ${e.itemText} elé`,insertBetween:e=>`Beszúrás ${e.beforeItemText} és ${e.afterItemText} közé`},"it-IT":{dragDescriptionKeyboard:"Premi Invio per iniziare a trascinare.",dragDescriptionKeyboardAlt:"Premi Alt + Invio per iniziare a trascinare.",dragDescriptionLongPress:"Premi a lungo per iniziare a trascinare.",dragDescriptionTouch:"Tocca due volte per iniziare a trascinare.",dragDescriptionVirtual:"Fai clic per iniziare a trascinare.",dragItem:e=>`Trascina ${e.itemText}`,dragSelectedItems:(e,t)=>`Trascina ${t.plural(e.count,{one:()=>`${t.number(e.count)} altro elemento selezionato`,other:()=>`${t.number(e.count)} altri elementi selezionati`})}`,dragSelectedKeyboard:(e,t)=>`Premi Invio per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Premi Alt + Invio per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragSelectedLongPress:(e,t)=>`Premi a lungo per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragStartedKeyboard:"Hai iniziato a trascinare. Premi Tab per arrivare sull’area di destinazione, quindi premi Invio per rilasciare o Esc per annullare.",dragStartedTouch:"Hai iniziato a trascinare. Arriva sull’area di destinazione, quindi tocca due volte per rilasciare.",dragStartedVirtual:"Hai iniziato a trascinare. Arriva sull’area di destinazione, quindi fai clic o premi Invio per rilasciare.",dropCanceled:"Rilascio annullato.",dropComplete:"Rilascio completato.",dropDescriptionKeyboard:"Premi Invio per rilasciare. Premi Esc per annullare.",dropDescriptionTouch:"Tocca due volte per rilasciare.",dropDescriptionVirtual:"Fai clic per rilasciare.",dropIndicator:"indicatore di rilascio",dropOnItem:e=>`Rilascia su ${e.itemText}`,dropOnRoot:"Rilascia su",endDragKeyboard:"Trascinamento. Premi Invio per annullare.",endDragTouch:"Trascinamento. Tocca due volte per annullare.",endDragVirtual:"Trascinamento. Fai clic per annullare.",insertAfter:e=>`Inserisci dopo ${e.itemText}`,insertBefore:e=>`Inserisci prima di ${e.itemText}`,insertBetween:e=>`Inserisci tra ${e.beforeItemText} e ${e.afterItemText}`},"ja-JP":{dragDescriptionKeyboard:"Enter キーを押してドラッグを開始してください。",dragDescriptionKeyboardAlt:"Alt+Enter キーを押してドラッグを開始します。",dragDescriptionLongPress:"長押ししてドラッグを開始します。",dragDescriptionTouch:"ダブルタップしてドラッグを開始します。",dragDescriptionVirtual:"クリックしてドラッグを開始します。",dragItem:e=>`${e.itemText} をドラッグ`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} 個の選択項目`,other:()=>`${t.number(e.count)} 個の選択項目`})} をドラッグ`,dragSelectedKeyboard:(e,t)=>`Enter キーを押して、${t.plural(e.count,{one:()=>`${t.number(e.count)} 選択した項目`,other:()=>`${t.number(e.count)} 選択した項目`})}をドラッグします。`,dragSelectedKeyboardAlt:(e,t)=>`Alt+Enter キーを押して、${t.plural(e.count,{one:()=>`${t.number(e.count)} 選択した項目`,other:()=>`${t.number(e.count)} 選択した項目`})}をドラッグします。`,dragSelectedLongPress:(e,t)=>`長押しして、${t.plural(e.count,{one:()=>`${t.number(e.count)} 選択した項目`,other:()=>`${t.number(e.count)} 選択した項目`})}をドラッグします。`,dragStartedKeyboard:"ドラッグを開始します。Tab キーを押してドロップターゲットにいどうし、Enter キーを押してドロップするか、Esc キーを押してキャンセルします。",dragStartedTouch:"ドラッグを開始しました。ドロップのターゲットに移動し、ダブルタップしてドロップします。",dragStartedVirtual:"ドラッグを開始しました。ドロップのターゲットに移動し、クリックまたは Enter キーを押してドロップします。",dropCanceled:"ドロップがキャンセルされました。",dropComplete:"ドロップが完了しました。",dropDescriptionKeyboard:"Enter キーを押してドロップします。Esc キーを押してドラッグをキャンセルします。",dropDescriptionTouch:"ダブルタップしてドロップします。",dropDescriptionVirtual:"クリックしてドロップします。",dropIndicator:"ドロップインジケーター",dropOnItem:e=>`${e.itemText} にドロップ`,dropOnRoot:"ドロップ場所",endDragKeyboard:"ドラッグしています。Enter キーを押してドラッグをキャンセルします。",endDragTouch:"ドラッグしています。ダブルタップしてドラッグをキャンセルします。",endDragVirtual:"ドラッグしています。クリックしてドラッグをキャンセルします。",insertAfter:e=>`${e.itemText} の後に挿入`,insertBefore:e=>`${e.itemText} の前に挿入`,insertBetween:e=>`${e.beforeItemText} と ${e.afterItemText} の間に挿入`},"ko-KR":{dragDescriptionKeyboard:"드래그를 시작하려면 Enter를 누르세요.",dragDescriptionKeyboardAlt:"드래그를 시작하려면 Alt + Enter를 누르십시오.",dragDescriptionLongPress:"드래그를 시작하려면 길게 누르십시오.",dragDescriptionTouch:"드래그를 시작하려면 더블 탭하세요.",dragDescriptionVirtual:"드래그를 시작하려면 클릭하세요.",dragItem:e=>`${e.itemText} 드래그`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}개 선택 항목`,other:()=>`${t.number(e.count)}개 선택 항목`})} 드래그`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}개 선택 항목`,other:()=>`${t.number(e.count)}개 선택 항목`})}을 드래그하려면 Enter를 누르십시오.`,dragSelectedKeyboardAlt:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}개 선택 항목`,other:()=>`${t.number(e.count)}개 선택 항목`})}을 드래그하려면 Alt + Enter를 누르십시오.`,dragSelectedLongPress:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}개 선택 항목`,other:()=>`${t.number(e.count)}개 선택 항목`})}을 드래그하려면 길게 누르십시오.`,dragStartedKeyboard:"드래그가 시작되었습니다. Tab을 눌러 드롭 대상으로 이동한 다음 Enter를 눌러 드롭하거나 Esc를 눌러 취소하세요.",dragStartedTouch:"드래그가 시작되었습니다. 드롭 대상으로 이동한 다음 더블 탭하여 드롭하세요.",dragStartedVirtual:"드래그가 시작되었습니다. 드롭 대상으로 이동한 다음 클릭하거나 Enter를 눌러 드롭하세요.",dropCanceled:"드롭이 취소되었습니다.",dropComplete:"드롭이 완료되었습니다.",dropDescriptionKeyboard:"드롭하려면 Enter를 누르세요. 드래그를 취소하려면 Esc를 누르세요.",dropDescriptionTouch:"더블 탭하여 드롭하세요.",dropDescriptionVirtual:"드롭하려면 클릭하세요.",dropIndicator:"드롭 표시기",dropOnItem:e=>`${e.itemText}에 드롭`,dropOnRoot:"드롭 대상",endDragKeyboard:"드래그 중입니다. 드래그를 취소하려면 Enter를 누르세요.",endDragTouch:"드래그 중입니다. 드래그를 취소하려면 더블 탭하세요.",endDragVirtual:"드래그 중입니다. 드래그를 취소하려면 클릭하세요.",insertAfter:e=>`${e.itemText} 이후에 삽입`,insertBefore:e=>`${e.itemText} 이전에 삽입`,insertBetween:e=>`${e.beforeItemText} 및 ${e.afterItemText} 사이에 삽입`},"lt-LT":{dragDescriptionKeyboard:"Paspauskite „Enter“, kad pradėtumėte vilkti.",dragDescriptionKeyboardAlt:"Paspauskite „Alt + Enter“, kad pradėtumėte vilkti.",dragDescriptionLongPress:"Palaikykite nuspaudę, kad pradėtumėte vilkti.",dragDescriptionTouch:"Palieskite dukart, kad pradėtumėte vilkti.",dragDescriptionVirtual:"Spustelėkite, kad pradėtumėte vilkti.",dragItem:e=>`Vilkti ${e.itemText}`,dragSelectedItems:(e,t)=>`Vilkti ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinktą elementą`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}`,dragSelectedKeyboard:(e,t)=>`Paspauskite „Enter“, jei norite nuvilkti ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinktą elementą`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Paspauskite „Alt + Enter“, kad nuvilktumėte ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinktą elementą`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragSelectedLongPress:(e,t)=>`Nuspaudę palaikykite, kad nuvilktumėte ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinktą elementą`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragStartedKeyboard:"Pradėta vilkti. Paspauskite „Tab“, kad pereitumėte į tiesioginę paskirties vietą, tada paspauskite „Enter“, kad numestumėte, arba „Escape“, kad atšauktumėte.",dragStartedTouch:"Pradėta vilkti. Eikite į tiesioginę paskirties vietą, tada palieskite dukart, kad numestumėte.",dragStartedVirtual:"Pradėta vilkti. Eikite į tiesioginę paskirties vietą ir spustelėkite arba paspauskite „Enter“, kad numestumėte.",dropCanceled:"Numetimas atšauktas.",dropComplete:"Numesta.",dropDescriptionKeyboard:"Paspauskite „Enter“, kad numestumėte. Paspauskite „Escape“, kad atšauktumėte vilkimą.",dropDescriptionTouch:"Palieskite dukart, kad numestumėte.",dropDescriptionVirtual:"Spustelėkite, kad numestumėte.",dropIndicator:"numetimo indikatorius",dropOnItem:e=>`Numesti ant ${e.itemText}`,dropOnRoot:"Numesti ant",endDragKeyboard:"Velkama. Paspauskite „Enter“, kad atšauktumėte vilkimą.",endDragTouch:"Velkama. Spustelėkite dukart, kad atšauktumėte vilkimą.",endDragVirtual:"Velkama. Spustelėkite, kad atšauktumėte vilkimą.",insertAfter:e=>`Įterpti po ${e.itemText}`,insertBefore:e=>`Įterpti prieš ${e.itemText}`,insertBetween:e=>`Įterpti tarp ${e.beforeItemText} ir ${e.afterItemText}`},"lv-LV":{dragDescriptionKeyboard:"Nospiediet Enter, lai sāktu vilkšanu.",dragDescriptionKeyboardAlt:"Nospiediet taustiņu kombināciju Alt+Enter, lai sāktu vilkšanu.",dragDescriptionLongPress:"Turiet nospiestu, lai sāktu vilkšanu.",dragDescriptionTouch:"Veiciet dubultskārienu, lai sāktu vilkšanu.",dragDescriptionVirtual:"Noklikšķiniet, lai sāktu vilkšanu.",dragItem:e=>`Velciet ${e.itemText}`,dragSelectedItems:(e,t)=>`Velciet ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlasīto vienumu`,other:()=>`${t.number(e.count)} atlasītos vienumus`})}`,dragSelectedKeyboard:(e,t)=>`Nospiediet taustiņu Enter, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlasīto vienumu`,other:()=>`${t.number(e.count)} atlasītos vienumus`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Nospiediet taustiņu kombināciju Alt+Enter, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlasīto vienumu`,other:()=>`${t.number(e.count)} atlasītos vienumus`})}.`,dragSelectedLongPress:(e,t)=>`Turiet nospiestu, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlasīto vienumu`,other:()=>`${t.number(e.count)} atlasītos vienumus`})}.`,dragStartedKeyboard:"Uzsākta vilkšana. Nospiediet taustiņu Tab, lai pārietu uz nomešanas mērķi, pēc tam nospiediet Enter, lai nomestu, vai nospiediet Escape, lai atceltu.",dragStartedTouch:"Uzsākta vilkšana. Pārejiet uz nomešanas mērķi, pēc tam veiciet dubultskārienu, lai nomestu.",dragStartedVirtual:"Uzsākta vilkšana. Pārejiet uz nomešanas mērķi, pēc tam nospiediet Enter, lai nomestu.",dropCanceled:"Nomešana atcelta.",dropComplete:"Nomešana pabeigta.",dropDescriptionKeyboard:"Nospiediet Enter, lai nomestu. Nospiediet Escape, lai atceltu vilkšanu.",dropDescriptionTouch:"Veiciet dubultskārienu, lai nomestu.",dropDescriptionVirtual:"Noklikšķiniet, lai nomestu.",dropIndicator:"nomešanas indikators",dropOnItem:e=>`Nometiet uz ${e.itemText}`,dropOnRoot:"Nometiet uz",endDragKeyboard:"Notiek vilkšana. Nospiediet Enter, lai atceltu vilkšanu.",endDragTouch:"Notiek vilkšana. Veiciet dubultskārienu, lai atceltu vilkšanu.",endDragVirtual:"Notiek vilkšana. Noklikšķiniet, lai atceltu vilkšanu.",insertAfter:e=>`Ievietojiet pēc ${e.itemText}`,insertBefore:e=>`Ievietojiet pirms ${e.itemText}`,insertBetween:e=>`Ievietojiet starp ${e.beforeItemText} un ${e.afterItemText}`},"nb-NO":{dragDescriptionKeyboard:"Trykk på Enter for å begynne å dra.",dragDescriptionKeyboardAlt:"Trykk på Alt + Enter for å begynne å dra.",dragDescriptionLongPress:"Trykk lenge for å begynne å dra.",dragDescriptionTouch:"Dobbelttrykk for å begynne å dra.",dragDescriptionVirtual:"Klikk for å begynne å dra.",dragItem:e=>`Dra ${e.itemText}`,dragSelectedItems:(e,t)=>`Dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} merket element`,other:()=>`${t.number(e.count)} merkede elementer`})}`,dragSelectedKeyboard:(e,t)=>`Trykk Enter for å dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Trykk på Alt + Enter for å dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedLongPress:(e,t)=>`Trykk lenge for å dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragStartedKeyboard:"Begynte å dra. Trykk på Tab for å navigere til et mål, og trykk deretter på Enter for å slippe eller på Esc for å avbryte.",dragStartedTouch:"Begynte å dra. Naviger til et mål, og dobbelttrykk for å slippe.",dragStartedVirtual:"Begynte å dra. Naviger til et mål, og klikk eller trykk på Enter for å slippe.",dropCanceled:"Avbrøt slipping.",dropComplete:"Slippingen er fullført.",dropDescriptionKeyboard:"Trykk på Enter for å slippe. Trykk på Esc hvis du vil avbryte draingen.",dropDescriptionTouch:"Dobbelttrykk for å slippe.",dropDescriptionVirtual:"Klikk for å slippe.",dropIndicator:"slippeindikator",dropOnItem:e=>`Slipp på ${e.itemText}`,dropOnRoot:"Slipp på",endDragKeyboard:"Drar. Trykk på Enter hvis du vil avbryte.",endDragTouch:"Drar. Dobbelttrykk hvis du vil avbryte.",endDragVirtual:"Drar. Klikk hvis du vil avbryte.",insertAfter:e=>`Sett inn etter ${e.itemText}`,insertBefore:e=>`Sett inn før ${e.itemText}`,insertBetween:e=>`Sett inn mellom ${e.beforeItemText} og ${e.afterItemText}`},"nl-NL":{dragDescriptionKeyboard:"Druk op Enter om te slepen.",dragDescriptionKeyboardAlt:"Druk op Alt + Enter om te slepen.",dragDescriptionLongPress:"Houd lang ingedrukt om te slepen.",dragDescriptionTouch:"Dubbeltik om te slepen.",dragDescriptionVirtual:"Klik om met slepen te starten.",dragItem:e=>`${e.itemText} slepen`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} slepen`,dragSelectedKeyboard:(e,t)=>`Druk op Enter om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragSelectedKeyboardAlt:(e,t)=>`Druk op Alt + Enter om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragSelectedLongPress:(e,t)=>`Houd lang ingedrukt om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragStartedKeyboard:"Begonnen met slepen. Druk op Tab om naar een locatie te gaan. Druk dan op Enter om neer te zetten, of op Esc om te annuleren.",dragStartedTouch:"Begonnen met slepen. Ga naar de gewenste locatie en dubbeltik om neer te zetten.",dragStartedVirtual:"Begonnen met slepen. Ga naar de gewenste locatie en klik of druk op Enter om neer te zetten.",dropCanceled:"Neerzetten geannuleerd.",dropComplete:"Neerzetten voltooid.",dropDescriptionKeyboard:"Druk op Enter om neer te zetten. Druk op Esc om het slepen te annuleren.",dropDescriptionTouch:"Dubbeltik om neer te zetten.",dropDescriptionVirtual:"Klik om neer te zetten.",dropIndicator:"aanwijzer voor neerzetten",dropOnItem:e=>`Neerzetten op ${e.itemText}`,dropOnRoot:"Neerzetten op",endDragKeyboard:"Bezig met slepen. Druk op Enter om te annuleren.",endDragTouch:"Bezig met slepen. Dubbeltik om te annuleren.",endDragVirtual:"Bezig met slepen. Klik om te annuleren.",insertAfter:e=>`Plaatsen na ${e.itemText}`,insertBefore:e=>`Plaatsen vóór ${e.itemText}`,insertBetween:e=>`Plaatsen tussen ${e.beforeItemText} en ${e.afterItemText}`},"pl-PL":{dragDescriptionKeyboard:"Naciśnij Enter, aby rozpocząć przeciąganie.",dragDescriptionKeyboardAlt:"Naciśnij Alt + Enter, aby rozpocząć przeciąganie.",dragDescriptionLongPress:"Naciśnij i przytrzymaj, aby rozpocząć przeciąganie.",dragDescriptionTouch:"Dotknij dwukrotnie, aby rozpocząć przeciąganie.",dragDescriptionVirtual:"Kliknij, aby rozpocząć przeciąganie.",dragItem:e=>`Przeciągnij ${e.itemText}`,dragSelectedItems:(e,t)=>`Przeciągnij ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybranych elementów`})}`,dragSelectedKeyboard:(e,t)=>`Naciśnij Enter, aby przeciągnąć ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-ów)`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Naciśnij Alt + Enter, aby przeciągnąć ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-ów)`})}.`,dragSelectedLongPress:(e,t)=>`Naciśnij i przytrzymaj, aby przeciągnąć ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-ów)`})}.`,dragStartedKeyboard:"Rozpoczęto przeciąganie. Naciśnij Tab, aby wybrać miejsce docelowe, a następnie naciśnij Enter, aby upuścić, lub Escape, aby anulować.",dragStartedTouch:"Rozpoczęto przeciąganie. Wybierz miejsce, w którym chcesz upuścić element, a następnie dotknij dwukrotnie, aby upuścić.F",dragStartedVirtual:"Rozpoczęto przeciąganie. Wybierz miejsce, w którym chcesz upuścić element, a następnie kliknij lub naciśnij Enter, aby upuścić.",dropCanceled:"Anulowano upuszczenie.",dropComplete:"Zakończono upuszczanie.",dropDescriptionKeyboard:"Naciśnij Enter, aby upuścić. Naciśnij Escape, aby anulować przeciągnięcie.",dropDescriptionTouch:"Dotknij dwukrotnie, aby upuścić.",dropDescriptionVirtual:"Kliknij, aby upuścić.",dropIndicator:"wskaźnik upuszczenia",dropOnItem:e=>`Upuść na ${e.itemText}`,dropOnRoot:"Upuść",endDragKeyboard:"Przeciąganie. Naciśnij Enter, aby anulować przeciągnięcie.",endDragTouch:"Przeciąganie. Kliknij dwukrotnie, aby anulować przeciągnięcie.",endDragVirtual:"Przeciąganie. Kliknij, aby anulować przeciąganie.",insertAfter:e=>`Umieść za ${e.itemText}`,insertBefore:e=>`Umieść przed ${e.itemText}`,insertBetween:e=>`Umieść między ${e.beforeItemText} i ${e.afterItemText}`},"pt-BR":{dragDescriptionKeyboard:"Pressione Enter para começar a arrastar.",dragDescriptionKeyboardAlt:"Pressione Alt + Enter para começar a arrastar.",dragDescriptionLongPress:"Pressione e segure para começar a arrastar.",dragDescriptionTouch:"Toque duas vezes para começar a arrastar.",dragDescriptionVirtual:"Clique para começar a arrastar.",dragItem:e=>`Arrastar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}`,dragSelectedKeyboard:(e,t)=>`Pressione Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pressione Alt + Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedLongPress:(e,t)=>`Pressione e segure para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragStartedKeyboard:"Comece a arrastar. Pressione Tab para navegar até um alvo e, em seguida, pressione Enter para soltar ou pressione Escape para cancelar.",dragStartedTouch:"Comece a arrastar. Navegue até um alvo e toque duas vezes para soltar.",dragStartedVirtual:"Comece a arrastar. Navegue até um alvo e clique ou pressione Enter para soltar.",dropCanceled:"Liberação cancelada.",dropComplete:"Liberação concluída.",dropDescriptionKeyboard:"Pressione Enter para soltar. Pressione Escape para cancelar.",dropDescriptionTouch:"Toque duas vezes para soltar.",dropDescriptionVirtual:"Clique para soltar.",dropIndicator:"indicador de liberação",dropOnItem:e=>`Soltar em ${e.itemText}`,dropOnRoot:"Soltar",endDragKeyboard:"Arrastando. Pressione Enter para cancelar.",endDragTouch:"Arrastando. Toque duas vezes para cancelar.",endDragVirtual:"Arrastando. Clique para cancelar.",insertAfter:e=>`Inserir após ${e.itemText}`,insertBefore:e=>`Inserir antes de ${e.itemText}`,insertBetween:e=>`Inserir entre ${e.beforeItemText} e ${e.afterItemText}`},"pt-PT":{dragDescriptionKeyboard:"Prima Enter para iniciar o arrasto.",dragDescriptionKeyboardAlt:"Prima Alt + Enter para iniciar o arrasto.",dragDescriptionLongPress:"Prima longamente para começar a arrastar.",dragDescriptionTouch:"Faça duplo toque para começar a arrastar.",dragDescriptionVirtual:"Clique para iniciar o arrasto.",dragItem:e=>`Arrastar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}`,dragSelectedKeyboard:(e,t)=>`Prima Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Prima Alt + Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedLongPress:(e,t)=>`Prima longamente para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragStartedKeyboard:"Arrasto iniciado. Prima a tecla de tabulação para navegar para um destino para largar, e em seguida prima Enter para largar ou prima Escape para cancelar.",dragStartedTouch:"Arrasto iniciado. Navegue para um destino para largar, e em seguida faça duplo toque para largar.",dragStartedVirtual:"Arrasto iniciado. Navegue para um destino para largar, e em seguida clique ou prima Enter para largar.",dropCanceled:"Largar cancelado.",dropComplete:"Largar completo.",dropDescriptionKeyboard:"Prima Enter para largar. Prima Escape para cancelar o arrasto.",dropDescriptionTouch:"Faça duplo toque para largar.",dropDescriptionVirtual:"Clique para largar.",dropIndicator:"Indicador de largar",dropOnItem:e=>`Largar em ${e.itemText}`,dropOnRoot:"Largar em",endDragKeyboard:"A arrastar. Prima Enter para cancelar o arrasto.",endDragTouch:"A arrastar. Faça duplo toque para cancelar o arrasto.",endDragVirtual:"A arrastar. Clique para cancelar o arrasto.",insertAfter:e=>`Inserir depois de ${e.itemText}`,insertBefore:e=>`Inserir antes de ${e.itemText}`,insertBetween:e=>`Inserir entre ${e.beforeItemText} e ${e.afterItemText}`},"ro-RO":{dragDescriptionKeyboard:"Apăsați pe Enter pentru a începe glisarea.",dragDescriptionKeyboardAlt:"Apăsați pe Alt + Enter pentru a începe glisarea.",dragDescriptionLongPress:"Apăsați lung pentru a începe glisarea.",dragDescriptionTouch:"Atingeți de două ori pentru a începe să glisați.",dragDescriptionVirtual:"Faceți clic pentru a începe glisarea.",dragItem:e=>`Glisați ${e.itemText}`,dragSelectedItems:(e,t)=>`Glisați ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}`,dragSelectedKeyboard:(e,t)=>`Apăsați pe Enter pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Apăsați pe Alt + Enter pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragSelectedLongPress:(e,t)=>`Apăsați lung pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragStartedKeyboard:"A început glisarea. Apăsați pe Tab pentru a naviga la o țintă de fixare, apoi apăsați pe Enter pentru a fixa sau apăsați pe Escape pentru a anula glisarea.",dragStartedTouch:"A început glisarea. Navigați la o țintă de fixare, apoi atingeți de două ori pentru a fixa.",dragStartedVirtual:"A început glisarea. Navigați la o țintă de fixare, apoi faceți clic sau apăsați pe Enter pentru a fixa.",dropCanceled:"Fixare anulată.",dropComplete:"Fixare finalizată.",dropDescriptionKeyboard:"Apăsați pe Enter pentru a fixa. Apăsați pe Escape pentru a anula glisarea.",dropDescriptionTouch:"Atingeți de două ori pentru a fixa.",dropDescriptionVirtual:"Faceți clic pentru a fixa.",dropIndicator:"indicator de fixare",dropOnItem:e=>`Fixați pe ${e.itemText}`,dropOnRoot:"Fixare pe",endDragKeyboard:"Se glisează. Apăsați pe Enter pentru a anula glisarea.",endDragTouch:"Se glisează. Atingeți de două ori pentru a anula glisarea.",endDragVirtual:"Se glisează. Faceți clic pentru a anula glisarea.",insertAfter:e=>`Inserați după ${e.itemText}`,insertBefore:e=>`Inserați înainte de ${e.itemText}`,insertBetween:e=>`Inserați între ${e.beforeItemText} și ${e.afterItemText}`},"ru-RU":{dragDescriptionKeyboard:"Нажмите клавишу Enter для начала перетаскивания.",dragDescriptionKeyboardAlt:"Нажмите Alt + Enter, чтобы начать перетаскивать.",dragDescriptionLongPress:"Нажмите и удерживайте, чтобы начать перетаскивать.",dragDescriptionTouch:"Дважды нажмите для начала перетаскивания.",dragDescriptionVirtual:"Щелкните для начала перетаскивания.",dragItem:e=>`Перетащить ${e.itemText}`,dragSelectedItems:(e,t)=>`Перетащить ${t.plural(e.count,{one:()=>`${t.number(e.count)} выбранный элемент`,other:()=>`${t.number(e.count)} выбранных элем`})}`,dragSelectedKeyboard:(e,t)=>`Нажмите Enter для перетаскивания ${t.plural(e.count,{one:()=>`${t.number(e.count)} выбранного элемента`,other:()=>`${t.number(e.count)} выбранных элементов`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Нажмите Alt + Enter для перетаскивания ${t.plural(e.count,{one:()=>`${t.number(e.count)} выбранного элемента`,other:()=>`${t.number(e.count)} выбранных элементов`})}.`,dragSelectedLongPress:(e,t)=>`Нажмите и удерживайте для перетаскивания ${t.plural(e.count,{one:()=>`${t.number(e.count)} выбранного элемента`,other:()=>`${t.number(e.count)} выбранных элементов`})}.`,dragStartedKeyboard:"Начато перетаскивание. Нажмите клавишу Tab для выбора цели, затем нажмите клавишу Enter, чтобы применить перетаскивание, или клавишу Escape для отмены действия.",dragStartedTouch:"Начато перетаскивание. Выберите цель, затем дважды нажмите, чтобы применить перетаскивание.",dragStartedVirtual:"Начато перетаскивание. Нажмите клавишу Tab для выбора цели, затем нажмите клавишу Enter, чтобы применить перетаскивание.",dropCanceled:"Перетаскивание отменено.",dropComplete:"Перетаскивание завершено.",dropDescriptionKeyboard:"Нажмите клавишу Enter, чтобы применить перетаскивание. Нажмите клавишу Escape для отмены.",dropDescriptionTouch:"Дважды нажмите, чтобы применить перетаскивание.",dropDescriptionVirtual:"Щелкните, чтобы применить перетаскивание.",dropIndicator:"индикатор перетаскивания",dropOnItem:e=>`Перетащить на ${e.itemText}`,dropOnRoot:"Перетащить на",endDragKeyboard:"Перетаскивание. Нажмите клавишу Enter для отмены.",endDragTouch:"Перетаскивание. Дважды нажмите для отмены.",endDragVirtual:"Перетаскивание. Щелкните для отмены.",insertAfter:e=>`Вставить после ${e.itemText}`,insertBefore:e=>`Вставить перед ${e.itemText}`,insertBetween:e=>`Вставить между ${e.beforeItemText} и ${e.afterItemText}`},"sk-SK":{dragDescriptionKeyboard:"Stlačením klávesu Enter začnete presúvanie.",dragDescriptionKeyboardAlt:"Stlačením klávesov Alt + Enter začnete presúvanie.",dragDescriptionLongPress:"Dlhým stlačením začnete presúvanie.",dragDescriptionTouch:"Dvojitým kliknutím začnete presúvanie.",dragDescriptionVirtual:"Kliknutím začnete presúvanie.",dragItem:e=>`Presunúť položku ${e.itemText}`,dragSelectedItems:(e,t)=>`Presunúť ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybratú položku`,other:()=>`${t.number(e.count)} vybraté položky`})}`,dragSelectedKeyboard:(e,t)=>`Stlačením klávesu Enter presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybratú položku`,other:()=>`${t.number(e.count)} vybratých položiek`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Stlačením klávesov Alt + Enter presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybratú položku`,other:()=>`${t.number(e.count)} vybratých položiek`})}.`,dragSelectedLongPress:(e,t)=>`Dlhým stlačením presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybratú položku`,other:()=>`${t.number(e.count)} vybratých položiek`})}.`,dragStartedKeyboard:"Presúvanie sa začalo. Do cieľového umiestnenia prejdete stlačením klávesu Tab. Ak chcete položku umiestniť, stlačte kláves Enter alebo stlačte kláves Esc, ak chcete presúvanie zrušiť.",dragStartedTouch:"Presúvanie sa začalo. Prejdite na cieľové umiestnenie a dvojitým kliknutím umiestnite položku.",dragStartedVirtual:"Presúvanie sa začalo. Prejdite na cieľové umiestnenie a kliknutím alebo stlačením klávesu Enter umiestnite položku.",dropCanceled:"Umiestnenie zrušené.",dropComplete:"Umiestnenie dokončené.",dropDescriptionKeyboard:"Stlačením klávesu Enter umiestnite položku. Stlačením klávesu Esc zrušíte presúvanie.",dropDescriptionTouch:"Dvojitým kliknutím umiestnite položku.",dropDescriptionVirtual:"Kliknutím umiestnite položku.",dropIndicator:"indikátor umiestnenia",dropOnItem:e=>`Umiestniť na položku ${e.itemText}`,dropOnRoot:"Umiestniť na",endDragKeyboard:"Prebieha presúvanie. Ak ho chcete zrušiť, stlačte kláves Enter.",endDragTouch:"Prebieha presúvanie. Dvojitým kliknutím ho môžete zrušiť.",endDragVirtual:"Prebieha presúvanie.",insertAfter:e=>`Vložiť za položku ${e.itemText}`,insertBefore:e=>`Vložiť pred položku ${e.itemText}`,insertBetween:e=>`Vložiť medzi položky ${e.beforeItemText} a ${e.afterItemText}`},"sl-SI":{dragDescriptionKeyboard:"Pritisnite tipko Enter za začetek vlečenja.",dragDescriptionKeyboardAlt:"Pritisnite tipki Alt + Enter za začetek vlečenja.",dragDescriptionLongPress:"Pritisnite in zadržite za začetek vlečenja.",dragDescriptionTouch:"Dvotapnite za začetek vlečenja.",dragDescriptionVirtual:"Kliknite za začetek vlečenja.",dragItem:e=>`Povleci ${e.itemText}`,dragSelectedItems:(e,t)=>`Povlecite ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbran element`,other:()=>`izbrane elemente (${t.number(e.count)})`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite tipko Enter, da povlečete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite tipki Alt + Enter, da povlečete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragSelectedLongPress:(e,t)=>`Pritisnite in zadržite, da povlečete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragStartedKeyboard:"Vlečenje se je začelo. Pritisnite tipko Tab za pomik na mesto, kamor želite spustiti elemente, in pritisnite tipko Enter, da jih spustite, ali tipko Escape, da prekličete postopek.",dragStartedTouch:"Vlečenje se je začelo. Pomaknite se na mesto, kamor želite spustiti elemente, in dvotapnite, da jih spustite.",dragStartedVirtual:"Vlečenje se je začelo. Pomaknite se na mesto, kamor želite spustiti elemente, in kliknite ali pritisnite tipko Enter, da jih spustite.",dropCanceled:"Spust je preklican.",dropComplete:"Spust je končan.",dropDescriptionKeyboard:"Pritisnite tipko Enter, da spustite. Pritisnite tipko Escape, da prekličete vlečenje.",dropDescriptionTouch:"Dvotapnite, da spustite.",dropDescriptionVirtual:"Kliknite, da spustite.",dropIndicator:"indikator spusta",dropOnItem:e=>`Spusti na mesto ${e.itemText}`,dropOnRoot:"Spusti na mesto",endDragKeyboard:"Vlečenje. Pritisnite tipko Enter za preklic vlečenja.",endDragTouch:"Vlečenje. Dvotapnite za preklic vlečenja.",endDragVirtual:"Vlečenje. Kliknite, da prekličete vlečenje.",insertAfter:e=>`Vstavi za ${e.itemText}`,insertBefore:e=>`Vstavi pred ${e.itemText}`,insertBetween:e=>`Vstavi med ${e.beforeItemText} in ${e.afterItemText}`},"sr-SP":{dragDescriptionKeyboard:"Pritisnite Enter da biste započeli prevlačenje.",dragDescriptionKeyboardAlt:"Pritisnite Alt + Enter da biste započeli prevlačenje.",dragDescriptionLongPress:"Pritisnite dugo da biste započeli prevlačenje.",dragDescriptionTouch:"Dvaput dodirnite da biste započeli prevlačenje.",dragDescriptionVirtual:"Kliknite da biste započeli prevlačenje.",dragItem:e=>`Prevucite ${e.itemText}`,dragSelectedItems:(e,t)=>`Prevucite ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabrane stavke`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite Enter da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite Alt + Enter da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragSelectedLongPress:(e,t)=>`Pritisnite dugo da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragStartedKeyboard:"Prevlačenje je započeto. Pritisnite Tab da biste otišli do cilja za otpuštanje, zatim pritisnite Enter za ispuštanje ili pritisnite Escape za otkazivanje.",dragStartedTouch:"Prevlačenje je započeto. Idite do cilja za otpuštanje, a zatim dvaput dodirnite za otpuštanje.",dragStartedVirtual:"Prevlačenje je započeto. Idite do cilja za otpuštanje, a zatim kliknite ili pritinite Enter za otpuštanje.",dropCanceled:"Otpuštanje je otkazano.",dropComplete:"Prevlačenje je završeno.",dropDescriptionKeyboard:"Pritisnite Enter da biste otpustili. Pritisnite Escape da biste otkazali prevlačenje.",dropDescriptionTouch:"Dvaput dodirnite za otpuštanje.",dropDescriptionVirtual:"Kliknite za otpuštanje.",dropIndicator:"Indikator otpuštanja",dropOnItem:e=>`Otpusti na ${e.itemText}`,dropOnRoot:"Otpusti na",endDragKeyboard:"Prevlačenje u toku. Pritisnite Enter da biste otkazali prevlačenje.",endDragTouch:"Prevlačenje u toku. Dvaput dodirnite da biste otkazali prevlačenje.",endDragVirtual:"Prevlačenje u toku. Kliknite da biste otkazali prevlačenje.",insertAfter:e=>`Umetnite posle ${e.itemText}`,insertBefore:e=>`Umetnite ispred ${e.itemText}`,insertBetween:e=>`Umetnite između ${e.beforeItemText} i ${e.afterItemText}`},"sv-SE":{dragDescriptionKeyboard:"Tryck på enter för att börja dra.",dragDescriptionKeyboardAlt:"Tryck på Alt + Retur för att börja dra.",dragDescriptionLongPress:"Tryck länge för att börja dra.",dragDescriptionTouch:"Dubbeltryck för att börja dra.",dragDescriptionVirtual:"Klicka för att börja dra.",dragItem:e=>`Dra ${e.itemText}`,dragSelectedItems:(e,t)=>`Dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valt objekt`,other:()=>`${t.number(e.count)} valda objekt`})}`,dragSelectedKeyboard:(e,t)=>`Tryck på Retur för att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Tryck på Alt + Retur för att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragSelectedLongPress:(e,t)=>`Tryck länge för att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragStartedKeyboard:"Börja dra. Tryck på tabb för att navigera till målet, tryck på enter för att släppa eller på escape för att avbryta.",dragStartedTouch:"Börja dra. Navigera till ett mål och dubbeltryck för att släppa.",dragStartedVirtual:"Börja dra. Navigera till ett mål och klicka eller tryck på enter för att släppa.",dropCanceled:"Släppåtgärd avbröts.",dropComplete:"Släppåtgärd klar.",dropDescriptionKeyboard:"Tryck på enter för att släppa. Tryck på escape för att avbryta dragåtgärd.",dropDescriptionTouch:"Dubbeltryck för att släppa.",dropDescriptionVirtual:"Klicka för att släppa.",dropIndicator:"släppindikator",dropOnItem:e=>`Släpp på ${e.itemText}`,dropOnRoot:"Släpp på",endDragKeyboard:"Drar. Tryck på enter för att avbryta dragåtgärd.",endDragTouch:"Drar. Dubbeltryck för att avbryta dragåtgärd.",endDragVirtual:"Drar. Klicka för att avbryta dragåtgärd.",insertAfter:e=>`Infoga efter ${e.itemText}`,insertBefore:e=>`Infoga före ${e.itemText}`,insertBetween:e=>`Infoga mellan ${e.beforeItemText} och ${e.afterItemText}`},"tr-TR":{dragDescriptionKeyboard:"Sürüklemeyi başlatmak için Enter'a basın.",dragDescriptionKeyboardAlt:"Sürüklemeyi başlatmak için Alt + Enter'a basın.",dragDescriptionLongPress:"Sürüklemeye başlamak için uzun basın.",dragDescriptionTouch:"Sürüklemeyi başlatmak için çift tıklayın.",dragDescriptionVirtual:"Sürüklemeyi başlatmak için tıklayın.",dragItem:e=>`${e.itemText}’i sürükle`,dragSelectedItems:(e,t)=>`Sürükle ${t.plural(e.count,{one:()=>`${t.number(e.count)} seçili öge`,other:()=>`${t.number(e.count)} seçili öge`})}`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} seçilmiş öğe`,other:()=>`${t.number(e.count)} seçilmiş öğe`})} öğesini sürüklemek için Enter'a basın.`,dragSelectedKeyboardAlt:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} seçilmiş öğe`,other:()=>`${t.number(e.count)} seçilmiş öğe`})} öğesini sürüklemek için Alt + Enter tuşuna basın.`,dragSelectedLongPress:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} seçilmiş öğe`,other:()=>`${t.number(e.count)} seçilmiş öğe`})} öğesini sürüklemek için uzun basın.`,dragStartedKeyboard:"Sürükleme başlatıldı. Bir bırakma hedefine gitmek için Tab’a basın, ardından bırakmak için Enter’a basın veya iptal etmek için Escape’e basın.",dragStartedTouch:"Sürükleme başlatıldı. Bir bırakma hedefine gidin, ardından bırakmak için çift tıklayın.",dragStartedVirtual:"Sürükleme başlatıldı. Bir bırakma hedefine gidin, ardından bırakmak için Enter’a tıklayın veya basın.",dropCanceled:"Bırakma iptal edildi.",dropComplete:"Bırakma tamamlandı.",dropDescriptionKeyboard:"Bırakmak için Enter'a basın. Sürüklemeyi iptal etmek için Escape'e basın.",dropDescriptionTouch:"Bırakmak için çift tıklayın.",dropDescriptionVirtual:"Bırakmak için tıklayın.",dropIndicator:"bırakma göstergesi",dropOnItem:e=>`${e.itemText} üzerine bırak`,dropOnRoot:"Bırakın",endDragKeyboard:"Sürükleme. Sürüklemeyi iptal etmek için Enter'a basın.",endDragTouch:"Sürükleme. Sürüklemeyi iptal etmek için çift tıklayın.",endDragVirtual:"Sürükleme. Sürüklemeyi iptal etmek için tıklayın.",insertAfter:e=>`${e.itemText}’den sonra gir`,insertBefore:e=>`${e.itemText}’den önce gir`,insertBetween:e=>`${e.beforeItemText} ve ${e.afterItemText} arasına gir`},"uk-UA":{dragDescriptionKeyboard:"Натисніть Enter, щоб почати перетягування.",dragDescriptionKeyboardAlt:"Натисніть Alt + Enter, щоб почати перетягування.",dragDescriptionLongPress:"Натисніть і утримуйте, щоб почати перетягування.",dragDescriptionTouch:"Натисніть двічі, щоб почати перетягування.",dragDescriptionVirtual:"Натисніть, щоб почати перетягування.",dragItem:e=>`Перетягнути ${e.itemText}`,dragSelectedItems:(e,t)=>`Перетягніть ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елем`})}`,dragSelectedKeyboard:(e,t)=>`Натисніть Enter, щоб перетягнути ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елементи(-ів)`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Натисніть Alt + Enter, щоб перетягнути ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елементи(-ів)`})}.`,dragSelectedLongPress:(e,t)=>`Утримуйте, щоб перетягнути ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елементи(-ів)`})}.`,dragStartedKeyboard:"Перетягування почалося. Натисніть Tab, щоб перейти до цілі перетягування, потім натисніть Enter, щоб перетягнути, або Escape, щоб скасувати.",dragStartedTouch:"Перетягування почалося. Перейдіть до цілі перетягування, потім натисніть двічі, щоб перетягнути.",dragStartedVirtual:"Перетягування почалося. Перейдіть до цілі перетягування, потім натисніть Enter, щоб перетягнути.",dropCanceled:"Перетягування скасовано.",dropComplete:"Перетягування завершено.",dropDescriptionKeyboard:"Натисніть Enter, щоб перетягнути. Натисніть Escape, щоб скасувати перетягування.",dropDescriptionTouch:"Натисніть двічі, щоб перетягнути.",dropDescriptionVirtual:"Натисніть, щоб перетягнути.",dropIndicator:"індикатор перетягування",dropOnItem:e=>`Перетягнути на ${e.itemText}`,dropOnRoot:"Перетягнути на",endDragKeyboard:"Триває перетягування. Натисніть Enter, щоб скасувати перетягування.",endDragTouch:"Триває перетягування. Натисніть двічі, щоб скасувати перетягування.",endDragVirtual:"Триває перетягування. Натисніть, щоб скасувати перетягування.",insertAfter:e=>`Вставити після ${e.itemText}`,insertBefore:e=>`Вставити перед ${e.itemText}`,insertBetween:e=>`Вставити між ${e.beforeItemText} і ${e.afterItemText}`},"zh-CN":{dragDescriptionKeyboard:"按 Enter 开始拖动。",dragDescriptionKeyboardAlt:"按 Alt + Enter 开始拖动。",dragDescriptionLongPress:"长按以开始拖动。",dragDescriptionTouch:"双击开始拖动。",dragDescriptionVirtual:"单击开始拖动。",dragItem:e=>`拖动 ${e.itemText}`,dragSelectedItems:(e,t)=>`拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 选中项目`,other:()=>`${t.number(e.count)} 选中项目`})}`,dragSelectedKeyboard:(e,t)=>`按 Enter 以拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 个选定项`,other:()=>`${t.number(e.count)} 个选定项`})}。`,dragSelectedKeyboardAlt:(e,t)=>`按 Alt + Enter 以拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 个选定项`,other:()=>`${t.number(e.count)} 个选定项`})}。`,dragSelectedLongPress:(e,t)=>`长按以拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 个选定项`,other:()=>`${t.number(e.count)} 个选定项`})}。`,dragStartedKeyboard:"已开始拖动。按 Tab 导航到放置目标，然后按 Enter 放置或按 Escape 取消。",dragStartedTouch:"已开始拖动。导航到放置目标，然后双击放置。",dragStartedVirtual:"已开始拖动。导航到放置目标，然后单击或按 Enter 放置。",dropCanceled:"放置已取消。",dropComplete:"放置已完成。",dropDescriptionKeyboard:"按 Enter 放置。按 Escape 取消拖动。",dropDescriptionTouch:"双击放置。",dropDescriptionVirtual:"单击放置。",dropIndicator:"放置标记",dropOnItem:e=>`放置于 ${e.itemText}`,dropOnRoot:"放置于",endDragKeyboard:"正在拖动。按 Enter 取消拖动。",endDragTouch:"正在拖动。双击取消拖动。",endDragVirtual:"正在拖动。单击取消拖动。",insertAfter:e=>`插入到 ${e.itemText} 之后`,insertBefore:e=>`插入到 ${e.itemText} 之前`,insertBetween:e=>`插入到 ${e.beforeItemText} 和 ${e.afterItemText} 之间`},"zh-TW":{dragDescriptionKeyboard:"按 Enter 鍵以開始拖曳。",dragDescriptionKeyboardAlt:"按 Alt+Enter 鍵以開始拖曳。",dragDescriptionLongPress:"長按以開始拖曳。",dragDescriptionTouch:"輕點兩下以開始拖曳。",dragDescriptionVirtual:"按一下滑鼠以開始拖曳。",dragItem:e=>`拖曳「${e.itemText}」`,dragSelectedItems:(e,t)=>`拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}`,dragSelectedKeyboard:(e,t)=>`按 Enter 鍵以拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}。`,dragSelectedKeyboardAlt:(e,t)=>`按 Alt+Enter 鍵以拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}。`,dragSelectedLongPress:(e,t)=>`長按以拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}。`,dragStartedKeyboard:"已開始拖曳。按 Tab 鍵以瀏覽至放置目標，然後按 Enter 鍵以放置，或按 Escape 鍵以取消。",dragStartedTouch:"已開始拖曳。瀏覽至放置目標，然後輕點兩下以放置。",dragStartedVirtual:"已開始拖曳。瀏覽至放置目標，然後按一下滑鼠或按 Enter 鍵以放置。",dropCanceled:"放置已取消。",dropComplete:"放置已完成。",dropDescriptionKeyboard:"按 Enter 鍵以放置。按 Escape 鍵以取消拖曳。",dropDescriptionTouch:"輕點兩下以放置。",dropDescriptionVirtual:"按一下滑鼠以放置。",dropIndicator:"放置指示器",dropOnItem:e=>`放置在「${e.itemText}」上`,dropOnRoot:"放置在",endDragKeyboard:"拖曳中。按 Enter 鍵以取消拖曳。",endDragTouch:"拖曳中。輕點兩下以取消拖曳。",endDragVirtual:"拖曳中。按一下滑鼠以取消拖曳。",insertAfter:e=>`插入至「${e.itemText}」之後`,insertBefore:e=>`插入至「${e.itemText}」之前`,insertBetween:e=>`插入至「${e.beforeItemText}」和「${e.afterItemText}」之間`}};var Q=n(20381);const ee={keyboard:{start:"dragDescriptionKeyboard",end:"endDragKeyboard"},touch:{start:"dragDescriptionTouch",end:"endDragTouch"},virtual:{start:"dragDescriptionVirtual",end:"endDragVirtual"}};function te(e){let{hasDragButton:t,isDisabled:n}=e,o=(0,Q.oe)((i=J)&&i.__esModule?i.default:i,"@react-aria/dnd");var i;let l=(0,V.useRef)({options:e,x:0,y:0}).current;l.options=e;let c=(0,V.useRef)(!1),[u,d]=(0,V.useState)(!1),p=e=>{c.current=e,d(e)},{addGlobalListener:h,removeAllGlobalListeners:f}=(0,L.A5)(),m=(0,V.useRef)(null);(0,L.Nf)((()=>()=>{if(c.current){if("function"==typeof l.options.onDragEnd){let e={type:"dragend",x:0,y:0,dropOperation:s[P||"none"]};l.options.onDragEnd(e)}p(!1),j(r.none),O(void 0)}}),[l]);let g,v=e=>{if("function"==typeof l.options.onDragStart){let t=e.getBoundingClientRect();l.options.onDragStart({type:"dragstart",x:t.x+t.width/2,y:t.y+t.height/2})}!function(e,t){if($)throw new Error("Cannot begin dragging while already dragging");$=new X(e,t),requestAnimationFrame((()=>{$.setup(),"keyboard"===x()&&$.next()}));for(let e of U)e()}({element:e,items:l.options.getItems(),allowedDropOperations:"function"==typeof l.options.getAllowedDropOperations?l.options.getAllowedDropOperations():["move","copy","link"],onDragEnd(e){p(!1),"function"==typeof l.options.onDragEnd&&l.options.onDragEnd(e)}},o),p(!0)},y=w(),b=u?ee[y].end:ee[y].start,_=(0,L.I8)(o.format(b));return t||(g={..._,onPointerDown(e){if(m.current=(0,L.Pg)(e.nativeEvent)?"virtual":e.pointerType,e.width<1&&e.height<1)m.current="virtual";else{let t=e.currentTarget.getBoundingClientRect(),n=e.clientX-t.x,r=e.clientY-t.y,o=t.width/2,i=t.height/2;Math.abs(n-o)<=.5&&Math.abs(r-i)<=.5?m.current="virtual":m.current=e.pointerType}},onKeyDownCapture(e){e.target===e.currentTarget&&"Enter"===e.key&&(e.preventDefault(),e.stopPropagation())},onKeyUpCapture(e){e.target===e.currentTarget&&"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),v(e.target))},onClick(e){((0,L.YF)(e.nativeEvent)||"virtual"===m.current)&&(e.preventDefault(),e.stopPropagation(),v(e.target))}}),n?{dragProps:{draggable:"false"},dragButtonProps:{},isDragging:!1}:{dragProps:{...g,draggable:"true",onDragStart:t=>{var n;if(t.defaultPrevented)return;if(t.stopPropagation(),"virtual"===m.current)return t.preventDefault(),v(t.target),void(m.current=null);"function"==typeof e.onDragStart&&e.onDragStart({type:"dragstart",x:t.clientX,y:t.clientY});let o=e.getItems();S(t.dataTransfer,o);let i=r.all;if("function"==typeof e.getAllowedDropOperations){let t=e.getAllowedDropOperations();i=r.none;for(let e of t)i|=r[e]||r.none}j(i),t.dataTransfer.effectAllowed=a[i]||"none","function"==typeof(null===(n=e.preview)||void 0===n?void 0:n.current)&&e.preview.current(o,(e=>{let n=e.getBoundingClientRect(),r=t.currentTarget.getBoundingClientRect(),o=t.clientX-r.x,i=t.clientY-r.y;(o>n.width||i>n.height)&&(o=n.width/2,i=n.height/2);let a=2*Math.round(n.height/2);e.style.height=`${a}px`,t.dataTransfer.setDragImage(e,o,i)})),h(window,"drop",(e=>{e.preventDefault(),e.stopPropagation(),console.warn("Drags initiated from the React Aria useDrag hook may only be dropped on a target created with useDrop. This ensures that a keyboard and screen reader accessible alternative is available.")}),{once:!0}),l.x=t.clientX,l.y=t.clientY,requestAnimationFrame((()=>{p(!0)}))},onDrag:t=>{t.stopPropagation(),t.clientX===l.x&&t.clientY===l.y||("function"==typeof e.onDragMove&&e.onDragMove({type:"dragmove",x:t.clientX,y:t.clientY}),l.x=t.clientX,l.y=t.clientY)},onDragEnd:t=>{if(t.stopPropagation(),"function"==typeof e.onDragEnd){let n={type:"dragend",x:t.clientX,y:t.clientY,dropOperation:s[t.dataTransfer.dropEffect]};P&&(n.dropOperation=s[P]),e.onDragEnd(n)}p(!1),f(),j(r.none),O(void 0)}},dragButtonProps:{..._,onPress:e=>{"keyboard"!==e.pointerType&&"virtual"!==e.pointerType||v(e.target)}},isDragging:u}}const ne={keyboard:"dropDescriptionKeyboard",touch:"dropDescriptionTouch",virtual:"dropDescriptionVirtual"};function re(){let e=(0,Q.oe)((t=J)&&t.__esModule?t.default:t,"@react-aria/dnd");var t;let n=w(),r=q();return{dropProps:{...(0,L.I8)(r?e.format(ne[n]):""),onClick:()=>{}}}}const oe=800;function ie(e){let{hasDropButton:t,isDisabled:n}=e,[o,i]=(0,V.useState)(!1),a=(0,V.useRef)({x:0,y:0,dragOverElements:new Set,dropEffect:"none",allowedOperations:r.all,dropActivateTimer:null}).current,c=t=>{if(i(!0),"function"==typeof e.onDropEnter){let n=t.currentTarget.getBoundingClientRect();e.onDropEnter({type:"dropenter",x:t.clientX-n.x,y:t.clientY-n.y})}},u=t=>{if(i(!1),"function"==typeof e.onDropExit){let n=t.currentTarget.getBoundingClientRect();e.onDropExit({type:"dropexit",x:t.clientX-n.x,y:t.clientY-n.y})}},d=(0,L.Jt)((t=>{"function"==typeof e.onDropEnter&&e.onDropEnter(t)})),p=(0,L.Jt)((t=>{"function"==typeof e.onDropExit&&e.onDropExit(t)})),h=(0,L.Jt)((t=>{"function"==typeof e.onDropActivate&&e.onDropActivate(t)})),f=(0,L.Jt)((t=>{"function"==typeof e.onDrop&&e.onDrop(t)})),m=(0,L.Jt)(((t,n)=>e.getDropOperation?e.getDropOperation(t,n):n[0])),{ref:g}=e;(0,L.Nf)((()=>{if(!n)return W({element:g.current,getDropOperation:m,onDropEnter(e){i(!0),d(e)},onDropExit(e){i(!1),p(e)},onDrop:f,onDropActivate:h})}),[n,g,m,d,p,f,h]);let{dropProps:v}=re();return n?{dropProps:{},dropButtonProps:{isDisabled:!0},isDropTarget:!1}:{dropProps:{...!t&&v,onDragEnter:t=>{if(t.preventDefault(),t.stopPropagation(),a.dragOverElements.add(t.target),a.dragOverElements.size>1)return;let n=ae(t),r=se(n),o=r[0];if("function"==typeof e.getDropOperation){let i=new _(t.dataTransfer);o=le(n,e.getDropOperation(i,r))}if("function"==typeof e.getDropOperationForPoint){let i=new _(t.dataTransfer),a=t.currentTarget.getBoundingClientRect();o=le(n,e.getDropOperationForPoint(i,r,t.clientX-a.x,t.clientY-a.y))}a.x=t.clientX,a.y=t.clientY,a.allowedOperations=n,a.dropEffect=l[o]||"none",t.dataTransfer.dropEffect=a.dropEffect,"cancel"!==o&&c(t)},onDragOver:t=>{t.preventDefault(),t.stopPropagation();let n=ae(t);if(t.clientX===a.x&&t.clientY===a.y&&n===a.allowedOperations)return void(t.dataTransfer.dropEffect=a.dropEffect);a.x=t.clientX,a.y=t.clientY;let r=a.dropEffect;if(n!==a.allowedOperations){let r=se(n),o=r[0];if("function"==typeof e.getDropOperation){let i=new _(t.dataTransfer);o=le(n,e.getDropOperation(i,r))}a.dropEffect=l[o]||"none"}if("function"==typeof e.getDropOperationForPoint){let r=new _(t.dataTransfer),o=t.currentTarget.getBoundingClientRect(),i=le(n,e.getDropOperationForPoint(r,se(n),a.x-o.x,a.y-o.y));a.dropEffect=l[i]||"none"}if(a.allowedOperations=n,t.dataTransfer.dropEffect=a.dropEffect,"none"===a.dropEffect&&"none"!==r?u(t):"none"!==a.dropEffect&&"none"===r&&c(t),"function"==typeof e.onDropMove&&"none"!==a.dropEffect){let n=t.currentTarget.getBoundingClientRect();e.onDropMove({type:"dropmove",x:a.x-n.x,y:a.y-n.y})}if(clearTimeout(a.dropActivateTimer),"function"==typeof e.onDropActivate&&"none"!==a.dropEffect){let n=t.currentTarget.getBoundingClientRect();a.dropActivateTimer=setTimeout((()=>{e.onDropActivate({type:"dropactivate",x:a.x-n.x,y:a.y-n.y})}),oe)}},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),a.dragOverElements.delete(e.target);for(let t of a.dragOverElements)e.currentTarget.contains(t)||a.dragOverElements.delete(t);a.dragOverElements.size>0||("none"!==a.dropEffect&&u(e),clearTimeout(a.dropActivateTimer))},onDrop:t=>{if(t.preventDefault(),t.stopPropagation(),O(a.dropEffect),"function"==typeof e.onDrop){let n=s[a.dropEffect],r=C(t.dataTransfer),o=t.currentTarget.getBoundingClientRect(),i={type:"drop",x:t.clientX-o.x,y:t.clientY-o.y,items:r,dropOperation:n};e.onDrop(i)}let n={...A};a.dragOverElements.clear(),u(t),clearTimeout(a.dropActivateTimer),null==n.draggingCollectionRef?O(void 0):M(n)}},dropButtonProps:{...t&&v},isDropTarget:o}}function ae(e){let t=i[e.dataTransfer.effectAllowed];R&&(t&=R);let n=r.none;return(0,L.cX)()?(e.altKey&&(n|=r.copy),e.ctrlKey&&!(0,L.bh)()&&(n|=r.link),e.metaKey&&(n|=r.move)):(e.altKey&&(n|=r.link),e.shiftKey&&(n|=r.move),e.ctrlKey&&(n|=r.copy)),n?t&n:t}function se(e){let t=[];return e&r.move&&t.push("move"),e&r.copy&&t.push("copy"),e&r.link&&t.push("link"),t}function le(e,t){return e&r[t]?t:"cancel"}const ce=20;function ue(e){let t=(0,V.useRef)(null),n=(0,V.useRef)(!0),r=(0,V.useRef)(!0);(0,V.useEffect)((()=>{if(e.current){t.current=(0,L.ov)(e.current)?e.current:(0,L.mH)(e.current);let o=window.getComputedStyle(t.current);n.current=/(auto|scroll)/.test(o.overflowX),r.current=/(auto|scroll)/.test(o.overflowY)}}),[e]);let o=(0,V.useRef)({timer:null,dx:0,dy:0}).current;(0,V.useEffect)((()=>()=>{o.timer&&(cancelAnimationFrame(o.timer),o.timer=null)}),[o]);let i=(0,V.useCallback)((()=>{n.current&&(t.current.scrollLeft+=o.dx),r.current&&(t.current.scrollTop+=o.dy),o.timer&&(o.timer=requestAnimationFrame(i))}),[t,o]);return{move(e,n){if(!(0,L.Tc)()||(0,L.un)()||!t.current)return;let r=t.current.getBoundingClientRect(),a=ce,s=ce,l=r.height-ce,c=r.width-ce;e<a||e>c||n<s||n>l?(e<a?o.dx=e-a:e>c&&(o.dx=e-c),n<s?o.dy=n-s:n>l&&(o.dy=n-l),o.timer||(o.timer=requestAnimationFrame(i))):this.stop()},stop(){o.timer&&(cancelAnimationFrame(o.timer),o.timer=null)}}}const de=["before","on","after"],pe=["after","on","before"];function he(e,t,n){let r=(0,V.useRef)({props:e,state:t,nextTarget:null,dropOperation:null}).current;r.props=e,r.state=t;let o=(0,V.useCallback)((async e=>{let{onInsert:t,onRootDrop:o,onItemDrop:i,onReorder:a,acceptedDragTypes:s="all",shouldAcceptItemDrop:l}=r.props,{draggingKeys:c}=A,u=N(n),{target:d,dropOperation:p,items:h}=e,f=h;("all"!==s||l)&&(f=h.filter((e=>{let t;return t="directory"===e.kind?new Set([m]):"file"===e.kind?new Set([e.type]):e.types,!("all"!==s&&!s.some((e=>t.has(e))))&&("item"!==d.type||"on"!==d.dropPosition||!l||l(d,t))}))),f.length>0&&("root"===d.type&&o&&await o({items:f,dropOperation:p}),"item"===d.type&&("on"===d.dropPosition&&i&&await i({items:f,dropOperation:p,isInternal:u,target:d}),"on"!==d.dropPosition&&(!u&&t&&await t({items:f,dropOperation:p,target:d}),u&&a&&await a({keys:c,dropOperation:p,target:d}))))}),[r,n]),i=ue(n),{dropProps:a}=ie({ref:n,onDropEnter(){t.setTarget(r.nextTarget)},onDropMove(e){t.setTarget(r.nextTarget),i.move(e.x,e.y)},getDropOperationForPoint(o,i,a,s){let{draggingKeys:l,dropCollectionRef:c}=A,u=N(n),d=e.dropTargetDelegate.getDropTargetFromPoint(a,s,(e=>"cancel"!==t.getDropOperation({target:e,types:o,allowedOperations:i,isInternal:u,draggingKeys:l})));if(!d)return r.dropOperation="cancel",r.nextTarget=null,"cancel";if(r.dropOperation=t.getDropOperation({target:d,types:o,allowedOperations:i,isInternal:u,draggingKeys:l}),"cancel"===r.dropOperation){let e={type:"root"},n=t.getDropOperation({target:e,types:o,allowedOperations:i,isInternal:u,draggingKeys:l});"cancel"!==n&&(d=e,r.dropOperation=n)}return d&&"cancel"!==r.dropOperation&&(null==n?void 0:n.current)!==(null==c?void 0:c.current)&&T(n),r.nextTarget="cancel"===r.dropOperation?null:d,r.dropOperation},onDropExit(){T(void 0),t.setTarget(null),i.stop()},onDropActivate(n){var r,o;"item"===(null===(r=t.target)||void 0===r?void 0:r.type)&&"on"===(null===(o=t.target)||void 0===o?void 0:o.dropPosition)&&"function"==typeof e.onDropActivate&&e.onDropActivate({type:"dropactivate",x:n.x,y:n.y,target:t.target})},onDrop(e){T(n),t.target&&c(e,t.target);let{draggingCollectionRef:r}=A;null==r&&I()}}),s=(0,V.useRef)(null),l=(0,V.useCallback)((()=>{let{state:e}=r;if(s.current){var t;let{target:n,collection:r,selectedKeys:o,focusedKey:i,isInternal:a,draggingKeys:l}=s.current;if(e.collection.size>r.size&&e.selectionManager.isSelectionEqual(o)){let t=new Set;for(let n of e.collection.getKeys())r.getItem(n)||t.add(n);if(e.selectionManager.setSelectedKeys(t),e.selectionManager.focusedKey===i){let n=t.keys().next().value,r=e.collection.getItem(n);"cell"===(null==r?void 0:r.type)&&(n=r.parentKey),e.selectionManager.setFocusedKey(n),"none"===e.selectionManager.selectionMode&&(0,h.Cl)("keyboard")}}else e.selectionManager.focusedKey===i&&a&&"item"===n.type&&"on"!==n.dropPosition&&l.has(null===(t=e.collection.getItem(i))||void 0===t?void 0:t.parentKey)?(e.selectionManager.setFocusedKey(e.collection.getItem(i).parentKey),(0,h.Cl)("keyboard")):e.selectionManager.focusedKey===i&&"item"===n.type&&"on"===n.dropPosition&&null!=e.collection.getItem(n.key)?(e.selectionManager.setFocusedKey(n.key),(0,h.Cl)("keyboard")):e.selectionManager.isSelected(e.selectionManager.focusedKey)||(0,h.Cl)("keyboard");e.selectionManager.setFocused(!0)}}),[r]),c=(0,V.useCallback)(((e,t)=>{let{state:i}=r;s.current={timeout:null,focusedKey:i.selectionManager.focusedKey,collection:i.collection,selectedKeys:i.selectionManager.selectedKeys,draggingKeys:A.draggingKeys,isInternal:N(n),target:t},(r.props.onDrop||o)({type:"drop",x:e.x,y:e.y,target:t,items:e.items,dropOperation:e.dropOperation}),s.current.timeout=setTimeout((()=>{l(),s.current=null}),50)}),[r,o,n,l]);(0,V.useEffect)((()=>()=>{s.current&&clearTimeout(s.current.timeout)}),[]),(0,L.Nf)((()=>{s.current&&t.collection!==s.current.collection&&l()}));let{direction:u}=(0,Q.Ym)();(0,V.useEffect)((()=>{let e=(e,t=!0,n=!1)=>{if(!e)return{type:"root"};let o,{keyboardDelegate:i}=r.props;o="item"===(null==e?void 0:e.type)?n?i.getKeyRightOf(e.key):i.getKeyBelow(e.key):n&&"rtl"===u?i.getLastKey():i.getFirstKey();let a=n&&"rtl"===u?pe:de,s=a[0];if("item"===e.type){let t=n&&"rtl"===u?r.state.collection.getKeyBefore(e.key):r.state.collection.getKeyAfter(e.key);if(null==o||o===t){let t=a.indexOf(e.dropPosition),n=a[t+1];if(t<a.length-1&&(n!==a[2]||null==o))return{type:"item",key:e.key,dropPosition:n};e.dropPosition===a[2]&&(s="on")}else s=e.dropPosition}return null==o?t?{type:"root"}:null:{type:"item",key:o,dropPosition:s}},t=(e,t=!0,n=!1)=>{let o,{keyboardDelegate:i}=r.props;o="item"===(null==e?void 0:e.type)?n?i.getKeyLeftOf(e.key):i.getKeyAbove(e.key):n&&"rtl"===u?i.getFirstKey():i.getLastKey();let a=n&&"rtl"===u?pe:de,s=e&&"root"!==e.type?"on":a[2];if("item"===(null==e?void 0:e.type)){let t=n&&"rtl"===u?r.state.collection.getKeyAfter(e.key):r.state.collection.getKeyBefore(e.key);if(null==o||o===t){let t=a.indexOf(e.dropPosition),n=a[t-1];if(t>0&&n!==a[2])return{type:"item",key:e.key,dropPosition:n};e.dropPosition===a[0]&&(s="on")}else s=e.dropPosition}return null==o?t?{type:"root"}:null:{type:"item",key:o,dropPosition:s}},o=(e,t,o,i,a=!0)=>{let s,l=0,{draggingKeys:c}=A,u=N(n);do{let n=i(e,a);if(!n)return null;e=n,s=r.state.getDropOperation({target:n,types:t,allowedOperations:o,isInternal:u,draggingKeys:c}),"root"===e.type&&l++}while("cancel"===s&&!r.state.isDropTarget(e)&&l<2);return"cancel"===s?null:e};return W({element:n.current,preventFocusOnDrop:!0,getDropOperation(t,i){if(r.state.target){let{draggingKeys:e}=A,o=N(n);return r.state.getDropOperation({target:r.state.target,types:t,allowedOperations:i,isInternal:o,draggingKeys:e})}return o(null,t,i,e)?"move":"cancel"},onDropEnter(i,a){let s,l=y(a.items),c=r.state.selectionManager;T(n);let u=c.focusedKey,d="after",p=r.state.collection.getItem(u);if("cell"===(null==p?void 0:p.type)&&(u=p.parentKey),c.isSelected(u)&&(c.selectedKeys.size>1&&c.firstSelectedKey===u?d="before":u=c.lastSelectedKey),null!=u){s={type:"item",key:u,dropPosition:d};let{draggingKeys:i}=A,c=N(n);var h;"cancel"===r.state.getDropOperation({target:s,types:l,allowedOperations:a.allowedDropOperations,isInternal:c,draggingKeys:i})&&(s=null!==(h=o(s,l,a.allowedDropOperations,e,!1))&&void 0!==h?h:o(s,l,a.allowedDropOperations,t,!1))}s||(s=o(null,l,a.allowedDropOperations,e)),r.state.setTarget(s)},onDropExit(){T(void 0),r.state.setTarget(null)},onDropTargetEnter(e){r.state.setTarget(e)},onDropActivate(e){var t,n;"item"===(null===(t=r.state.target)||void 0===t?void 0:t.type)&&"on"===(null===(n=r.state.target)||void 0===n?void 0:n.dropPosition)&&"function"==typeof r.props.onDropActivate&&r.props.onDropActivate({type:"dropactivate",x:e.x,y:e.y,target:r.state.target})},onDrop(e,t){T(n),r.state.target&&c(e,t||r.state.target)},onKeyDown(i,a){let{keyboardDelegate:s}=r.props,l=y(a.items);switch(i.key){case"ArrowDown":if(s.getKeyBelow){let t=o(r.state.target,l,a.allowedDropOperations,e);r.state.setTarget(t)}break;case"ArrowUp":if(s.getKeyAbove){let e=o(r.state.target,l,a.allowedDropOperations,t);r.state.setTarget(e)}break;case"ArrowLeft":if(s.getKeyLeftOf){let e=o(r.state.target,l,a.allowedDropOperations,((e,n)=>t(e,n,!0)));r.state.setTarget(e)}break;case"ArrowRight":if(s.getKeyRightOf){let t=o(r.state.target,l,a.allowedDropOperations,((t,n)=>e(t,n,!0)));r.state.setTarget(t)}break;case"Home":if(s.getFirstKey){let t=o(null,l,a.allowedDropOperations,e);r.state.setTarget(t)}break;case"End":if(s.getLastKey){let e=o(null,l,a.allowedDropOperations,t);r.state.setTarget(e)}break;case"PageDown":if(s.getKeyPageBelow){let i=r.state.target;if(i){let u=s.getKeyPageBelow("item"===i.type?i.key:s.getFirstKey()),d="item"===i.type?i.dropPosition:"after";(null==u||"item"===i.type&&i.key===s.getLastKey())&&(u=s.getLastKey(),d="after"),i={type:"item",key:u,dropPosition:d};let{draggingCollectionRef:p,draggingKeys:h}=A,f=(null==p?void 0:p.current)===(null==n?void 0:n.current);var c;"cancel"===r.state.getDropOperation({target:i,types:l,allowedOperations:a.allowedDropOperations,isInternal:f,draggingKeys:h})&&(i=null!==(c=o(i,l,a.allowedDropOperations,e,!1))&&void 0!==c?c:o(i,l,a.allowedDropOperations,t,!1))}else i=o(null,l,a.allowedDropOperations,e);r.state.setTarget(null!=i?i:r.state.target)}break;case"PageUp":{if(!s.getKeyPageAbove)break;let i=r.state.target;if(i){if("item"===i.type){if(i.key===s.getFirstKey())i={type:"root"};else{let e=s.getKeyPageAbove(i.key),t=i.dropPosition;null==e&&(e=s.getFirstKey(),t="before"),i={type:"item",key:e,dropPosition:t}}let{draggingKeys:c}=A,d=N(n);var u;"cancel"===r.state.getDropOperation({target:i,types:l,allowedOperations:a.allowedDropOperations,isInternal:d,draggingKeys:c})&&(i=null!==(u=o(i,l,a.allowedDropOperations,t,!1))&&void 0!==u?u:o(i,l,a.allowedDropOperations,e,!1))}}else i=o(null,l,a.allowedDropOperations,t);r.state.setTarget(null!=i?i:r.state.target);break}}}})}),[r,n,c,u]);let d=(0,L.Bi)();return f.set(t,{id:d,ref:n}),{collectionProps:(0,L.v6)(a,{id:d,"aria-describedby":null})}}function fe(e,t,n){let{dropProps:r}=re(),o=v(t);(0,V.useEffect)((()=>{if(n.current)return r={element:n.current,target:e.target,getDropOperation(n,r){let{draggingKeys:i}=A,a=N(o);return t.getDropOperation({target:e.target,types:n,allowedOperations:r,isInternal:a,draggingKeys:i})}},H.set(r.element,r),()=>{H.delete(r.element)};var r}),[n,e.target,t,o]);let i=q(),{draggingKeys:a}=A,s=N(o),l=i&&"cancel"!==t.getDropOperation({target:e.target,types:y(i.dragTarget.items),allowedOperations:i.dragTarget.allowedDropOperations,isInternal:s,draggingKeys:a}),c=t.isDropTarget(e.target);return(0,V.useEffect)((()=>{i&&c&&n.current&&n.current.focus()}),[c,i,n]),{dropProps:{...r,"aria-hidden":!i||l?void 0:"true"},isDropTarget:c}}function me(e,t,n){let{target:r}=e,{collection:o}=t,i=(0,Q.oe)((a=J)&&a.__esModule?a.default:a,"@react-aria/dnd");var a;let s,l=q(),{dropProps:c}=fe(e,t,n),u=(0,L.Bi)(),d=e=>{var t,n,r;return null!==(r=null===(t=o.getTextValue)||void 0===t?void 0:t.call(o,e))&&void 0!==r?r:null===(n=o.getItem(e))||void 0===n?void 0:n.textValue},p="";if("root"===r.type)p=i.format("dropOnRoot"),s=`${u} ${g(t)}`;else if("on"===r.dropPosition)p=i.format("dropOnItem",{itemText:d(r.key)});else{let e,t;e=o.getFirstKey()===r.key&&"before"===r.dropPosition?null:"before"===r.dropPosition?o.getKeyBefore(r.key):r.key,t=o.getLastKey()===r.key&&"after"===r.dropPosition?null:"after"===r.dropPosition?o.getKeyAfter(r.key):r.key,e&&t?p=i.format("insertBetween",{beforeItemText:d(e),afterItemText:d(t)}):e?p=i.format("insertAfter",{itemText:d(e)}):t&&(p=i.format("insertBefore",{itemText:d(t)}))}let h=t.isDropTarget(r),f=l?c["aria-hidden"]:"true";return{dropIndicatorProps:{...c,id:u,"aria-roledescription":i.format("dropIndicator"),"aria-label":p,"aria-labelledby":s,"aria-hidden":f,tabIndex:-1},isDropTarget:h,isHidden:!h&&!!f}}const ge={keyboard:{selected:"dragSelectedKeyboard",notSelected:"dragDescriptionKeyboard"},touch:{selected:"dragSelectedLongPress",notSelected:"dragDescriptionLongPress"},virtual:{selected:"dragDescriptionVirtual",notSelected:"dragDescriptionVirtual"}};function ve(e,t){let n=(0,Q.oe)((r=J)&&r.__esModule?r.default:r,"@react-aria/dnd");var r;let o,i,a=t.isDisabled||t.selectionManager.isDisabled(e.key),{dragProps:s,dragButtonProps:l}=te({getItems:()=>t.getItems(e.key),preview:t.preview,getAllowedDropOperations:t.getAllowedDropOperations,hasDragButton:e.hasDragButton,onDragStart(n){var r;t.startDrag(e.key,n),r=t.draggingKeys,A.draggingKeys=r},onDragMove(e){t.moveDrag(e)},onDragEnd(e){let{dropOperation:n}=e,r="cancel"!==n&&N();t.endDrag({...e,keys:t.draggingKeys,isInternal:r}),I()}}),c=t.collection.getItem(e.key),u=t.getKeysForDrag(e.key).size,d=u>1&&t.selectionManager.isSelected(e.key),p=w();if(e.hasDragButton||"none"===t.selectionManager.selectionMode)if(d)o=n.format("dragSelectedItems",{count:u});else{var h,f,m,g;let r=null!==(g=null!==(m=null===(h=(f=t.collection).getTextValue)||void 0===h?void 0:h.call(f,e.key))&&void 0!==m?m:null==c?void 0:c.textValue)&&void 0!==g?g:"";o=n.format("dragItem",{itemText:r})}else{let t=ge[p][d?"selected":"notSelected"];e.hasAction&&"keyboard"===p&&(t+="Alt"),i=d?n.format(t,{count:u}):n.format(t),delete s.onClick}let v=(0,L.I8)(i);if(i&&Object.assign(s,v),!e.hasDragButton&&e.hasAction){let{onKeyDownCapture:e,onKeyUpCapture:t}=s;"touch"===p&&delete s["aria-describedby"],s.onKeyDownCapture=t=>{t.altKey&&(null==e||e(t))},s.onKeyUpCapture=e=>{e.altKey&&(null==t||t(e))}}return{dragProps:a?{}:s,dragButtonProps:{...l,isDisabled:a,"aria-label":o}}}function ye(e,t,n){let{draggingCollectionRef:r}=A;t.draggingKeys.size>0&&(null==r?void 0:r.current)!==n.current&&D(n)}const be=new Map;function we(e,t){let n=be.get(e);if(!n){let t=new Set,r=e=>{for(let n of t)n(e)};n={listener:r,handlers:t},be.set(e,n),document.addEventListener(e,r)}return n.handlers.add(t),()=>{n.handlers.delete(t),0===n.handlers.size&&(document.removeEventListener(e,n.listener),be.delete(e))}}function xe(e){let{isDisabled:t}=e,n=(0,V.useRef)(!1),{focusProps:r}=(0,h.iQ)({onFocusChange:e=>{n.current=e}}),o=(0,L.Jt)((t=>{n.current&&e.getItems&&t.preventDefault()})),i=(0,L.Jt)((t=>{var r;n.current&&e.getItems&&(t.preventDefault(),S(t.clipboardData,e.getItems()),null===(r=e.onCopy)||void 0===r||r.call(e))})),a=(0,L.Jt)((t=>{n.current&&e.onCut&&e.getItems&&t.preventDefault()})),s=(0,L.Jt)((t=>{n.current&&e.onCut&&e.getItems&&(t.preventDefault(),S(t.clipboardData,e.getItems()),e.onCut())})),l=(0,L.Jt)((t=>{n.current&&e.onPaste&&t.preventDefault()})),c=(0,L.Jt)((t=>{if(!n.current||!e.onPaste)return;t.preventDefault();let r=C(t.clipboardData);e.onPaste(r)}));return(0,V.useEffect)((()=>{if(!t)return(0,L.cy)(we("beforecopy",o),we("copy",i),we("beforecut",a),we("cut",s),we("beforepaste",l),we("paste",c))}),[t,o,i,a,s,l,c]),{clipboardProps:r}}var Se=n(40961);function _e(e,t){let n=e.children,[r,o]=(0,V.useState)(null),i=(0,V.useRef)(null);return(0,V.useImperativeHandle)(t,(()=>(e,t)=>{(0,Se.flushSync)((()=>{o(n(e))})),t(i.current),requestAnimationFrame((()=>{o(null)}))}),[n]),r?V.createElement("div",{style:{zIndex:-100,position:"absolute",top:0,left:-1e5},ref:i},r):null}let Ce=V.forwardRef(_e);class Ee{getPrimaryStart(e){return"horizontal"===this.orientation?e.left:e.top}getPrimaryEnd(e){return"horizontal"===this.orientation?e.right:e.bottom}getSecondaryStart(e){return"horizontal"===this.orientation?e.top:e.left}getSecondaryEnd(e){return"horizontal"===this.orientation?e.bottom:e.right}getFlowStart(e){return"stack"===this.layout?this.getPrimaryStart(e):this.getSecondaryStart(e)}getFlowEnd(e){return"stack"===this.layout?this.getPrimaryEnd(e):this.getSecondaryEnd(e)}getFlowSize(e){return this.getFlowEnd(e)-this.getFlowStart(e)}getDropTargetFromPoint(e,t,n){if(this.collection[Symbol.iterator]().next().done)return{type:"root"};let r=this.ref.current.getBoundingClientRect(),o="horizontal"===this.orientation?e:t,i="horizontal"===this.orientation?t:e;o+=this.getPrimaryStart(r),i+=this.getSecondaryStart(r);let a="stack"===this.layout?o:i,s="horizontal"===this.orientation&&"rtl"===this.direction,l="grid"===this.layout&&"vertical"===this.orientation&&"rtl"===this.direction,c="stack"===this.layout?s:l,u=this.ref.current.querySelectorAll("[data-key]"),d=new Map;for(let e of u)e instanceof HTMLElement&&d.set(e.dataset.key,e);let p=[...this.collection].filter((e=>"item"===e.type)),h=0,f=p.length;for(;h<f;){let e=Math.floor((h+f)/2),t=p[e],r=d.get(String(t.key)).getBoundingClientRect(),u=t=>{t?h=e+1:f=e};if(o<this.getPrimaryStart(r))u(s);else if(o>this.getPrimaryEnd(r))u(!s);else if(i<this.getSecondaryStart(r))u(l);else{if(!(i>this.getSecondaryEnd(r))){let e={type:"item",key:t.key,dropPosition:"on"};if(n(e))a<=this.getFlowStart(r)+5&&n({...e,dropPosition:"before"})?e.dropPosition=c?"after":"before":a>=this.getFlowEnd(r)-5&&n({...e,dropPosition:"after"})&&(e.dropPosition=c?"before":"after");else{let t=this.getFlowStart(r)+this.getFlowSize(r)/2;a<=t&&n({...e,dropPosition:"before"})?e.dropPosition=c?"after":"before":a>=t&&n({...e,dropPosition:"after"})&&(e.dropPosition=c?"before":"after")}return e}u(!l)}}let m=p[Math.min(h,p.length-1)];return r=d.get(String(m.key)).getBoundingClientRect(),o<this.getPrimaryStart(r)||Math.abs(a-this.getFlowStart(r))<Math.abs(a-this.getFlowEnd(r))?{type:"item",key:m.key,dropPosition:c?"after":"before"}:{type:"item",key:m.key,dropPosition:c?"before":"after"}}constructor(e,t,n){this.collection=e,this.ref=t,this.layout=(null==n?void 0:n.layout)||"stack",this.orientation=(null==n?void 0:n.orientation)||"vertical",this.direction=(null==n?void 0:n.direction)||"ltr"}}},74373:(e,t,n)=>{"use strict";n.d(t,{n1:()=>d,M2:()=>j,C7:()=>A,lY:()=>i,N$:()=>P,Pu:()=>S,H8:()=>p,og:()=>N,Wc:()=>F,$C:()=>B});var r=n(86025),o=n(37555);function i(e){const t=(0,r.zm)(e);if("virtual"===(0,o.ME)()){let n=null==t?void 0:t.activeElement;(0,r.vg)((()=>{(null==t?void 0:t.activeElement)===n&&e.isConnected&&(0,r.eC)(e)}))}else(0,r.eC)(e)}function a(e,t){return"#comment"!==e.nodeName&&function(e){const t=(0,r.mD)(e);if(!(e instanceof t.HTMLElement||e instanceof t.SVGElement))return!1;let{display:n,visibility:o}=e.style,i="none"!==n&&"hidden"!==o&&"collapse"!==o;if(i){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:r}=t(e);i="none"!==n&&"hidden"!==r&&"collapse"!==r}return i}(e)&&function(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||a(e.parentElement,e))}var s=n(96540);const l=s.createContext(null),c="react-aria-focus-scope-restore";let u=null;function d(e){let{children:t,contain:n,restoreFocus:o,autoFocus:i}=e,a=(0,s.useRef)(null),d=(0,s.useRef)(null),p=(0,s.useRef)([]),{parentNode:h}=(0,s.useContext)(l)||{},f=(0,s.useMemo)((()=>new I({scopeRef:p})),[p]);(0,r.Nf)((()=>{let e=h||M.root;if(M.getTreeNode(e.scopeRef)&&u&&!_(u,e.scopeRef)){let t=M.getTreeNode(u);t&&(e=t)}e.addChild(f),M.addNode(f)}),[f,h]),(0,r.Nf)((()=>{let e=M.getTreeNode(p);e&&(e.contain=!!n)}),[n]),(0,r.Nf)((()=>{var e;let t=null===(e=a.current)||void 0===e?void 0:e.nextSibling,n=[],r=e=>e.stopPropagation();for(;t&&t!==d.current;)n.push(t),t.addEventListener(c,r),t=t.nextSibling;return p.current=n,()=>{for(let e of n)e.removeEventListener(c,r)}}),[t]),function(e,t,n){(0,r.Nf)((()=>{if(t||n)return;let o=e.current;const i=(0,r.zm)(o?o[0]:void 0)||(0,r.TW)(o?o[0]:void 0);let a=t=>{let n=t.target;w(n,e.current)?u=e:b(n)||(u=null)};return i.addEventListener("focusin",a,!1),null==o||o.forEach((e=>e.addEventListener("focusin",a,!1))),()=>{i.removeEventListener("focusin",a,!1),null==o||o.forEach((e=>e.removeEventListener("focusin",a,!1)))}}),[e,t,n])}(p,o,n),function(e,t){let n=(0,s.useRef)(void 0),o=(0,s.useRef)(void 0);(0,r.Nf)((()=>{let i=e.current;if(!t)return void(o.current&&(cancelAnimationFrame(o.current),o.current=void 0));const a=(0,r.zm)(i?i[0]:void 0)||(0,r.TW)(i?i[0]:void 0);let s=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!y(e)||t.isComposing)return;let n=a.activeElement,r=e.current;if(!r||!w(n,r))return;let o=P(v(r),{tabbable:!0},r);if(!n)return;o.currentNode=n;let i=t.shiftKey?o.previousNode():o.nextNode();i||(o.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,i=t.shiftKey?o.previousNode():o.nextNode()),t.preventDefault(),i&&C(i,!0)},l=t=>{u&&!_(u,e)||!w(t.target,e.current)?y(e)&&!x(t.target,e)?n.current?n.current.focus():u&&u.current&&k(u.current):y(e)&&(n.current=t.target):(u=e,n.current=t.target)},c=t=>{o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame((()=>{var o;a.activeElement&&y(e)&&!x(a.activeElement,e)&&(u=e,(0,r.ln)(a).contains(t.target)?(n.current=t.target,null===(o=n.current)||void 0===o||o.focus()):u.current&&k(u.current))}))};return a.addEventListener("keydown",s,!1),a.addEventListener("focusin",l,!1),null==i||i.forEach((e=>e.addEventListener("focusin",l,!1))),null==i||i.forEach((e=>e.addEventListener("focusout",c,!1))),()=>{a.removeEventListener("keydown",s,!1),a.removeEventListener("focusin",l,!1),null==i||i.forEach((e=>e.removeEventListener("focusin",l,!1))),null==i||i.forEach((e=>e.removeEventListener("focusout",c,!1)))}}),[e,t]),(0,r.Nf)((()=>()=>{o.current&&cancelAnimationFrame(o.current)}),[o])}(p,n),function(e,t,n){const o=(0,s.useRef)("undefined"!=typeof document?(0,r.TW)(e.current?e.current[0]:void 0).activeElement:null);(0,r.Nf)((()=>{let o=e.current;const i=(0,r.zm)(o?o[0]:void 0)||(0,r.TW)(o?o[0]:void 0);if(!t||n)return;let a=()=>{u&&!_(u,e)||!w(i.activeElement,e.current)||(u=e)};return i.addEventListener("focusin",a,!1),null==o||o.forEach((e=>e.addEventListener("focusin",a,!1))),()=>{i.removeEventListener("focusin",a,!1),null==o||o.forEach((e=>e.removeEventListener("focusin",a,!1)))}}),[e,n]),(0,r.Nf)((()=>{const o=(0,r.zm)(e.current?e.current[0]:void 0)||(0,r.TW)(e.current?e.current[0]:void 0);if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!y(e)||t.isComposing)return;let n=o.activeElement;if(!w(n,e.current))return;let i=M.getTreeNode(e);if(!i)return;let a=i.nodeToRestore;const s=(0,r.ln)(o);let l=P(s,{tabbable:!0});l.currentNode=n;let c=t.shiftKey?l.previousNode():l.nextNode();if(a&&s.contains(a)&&a!==s||(a=void 0,i.nodeToRestore=void 0),(!c||!w(c,e.current))&&a){l.currentNode=a;do{c=t.shiftKey?l.previousNode():l.nextNode()}while(w(c,e.current));t.preventDefault(),t.stopPropagation(),c?C(c,!0):b(a)?C(a,!0):n.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}}),[e,t,n]),(0,r.Nf)((()=>{const n=(0,r.zm)(e.current?e.current[0]:void 0)||(0,r.TW)(e.current?e.current[0]:void 0),i=(0,r.ln)(n);if(!t)return;let a=M.getTreeNode(e);var s;return a?(a.nodeToRestore=null!==(s=o.current)&&void 0!==s?s:void 0,()=>{let r=M.getTreeNode(e);if(!r)return;let o=r.nodeToRestore;if(t&&o&&(w(n.activeElement,e.current)||n.activeElement===i&&function(e){let t=M.getTreeNode(u);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}(e))){let t=M.clone();requestAnimationFrame((()=>{if(n.activeElement===i){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&n.nodeToRestore.isConnected)return void z(n.nodeToRestore);n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&M.getTreeNode(n.scopeRef)){return void z(E(n.scopeRef.current,!0))}n=n.parent}}}))}}):void 0}),[e,t])}(p,o,n),function(e,t){const n=s.useRef(t);(0,s.useEffect)((()=>{if(n.current){u=e;!w((0,r.TW)(e.current?e.current[0]:void 0).activeElement,u.current)&&e.current&&k(e.current)}n.current=!1}),[e])}(p,i),(0,s.useEffect)((()=>{var e;const t=null===(e=(0,r.zm)(p.current?p.current[0]:void 0))||void 0===e?void 0:e.activeElement;let n=null;if(w(t,p.current)){for(let e of M.traverse())e.scopeRef&&w(t,e.scopeRef.current)&&(n=e);n===M.getTreeNode(p)&&(u=n.scopeRef)}}),[p]),(0,r.Nf)((()=>()=>{var e,t,n;let r=null!==(n=null===(t=M.getTreeNode(p))||void 0===t||null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null;p!==u&&!_(p,u)||r&&!M.getTreeNode(r)||(u=r),M.removeTreeNode(p)}),[p]);let m=(0,s.useMemo)((()=>function(e){return{focusNext(t={}){var n;let o=e.current,{from:i,tabbable:a,wrap:s,accept:l}=t,c=i||(null===(n=(0,r.zm)(o[0]))||void 0===n?void 0:n.activeElement),u=o[0].previousElementSibling,d=P(v(o),{tabbable:a,accept:l},o);d.currentNode=w(c,o)?c:u;let p=d.nextNode();return!p&&s&&(d.currentNode=u,p=d.nextNode()),p&&C(p,!0),p},focusPrevious(t={}){var n;let o=e.current,{from:i,tabbable:a,wrap:s,accept:l}=t,c=i||(null===(n=(0,r.zm)(o[0]))||void 0===n?void 0:n.activeElement),u=o[o.length-1].nextElementSibling,d=P(v(o),{tabbable:a,accept:l},o);d.currentNode=w(c,o)?c:u;let p=d.previousNode();return!p&&s&&(d.currentNode=u,p=d.previousNode()),p&&C(p,!0),p},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=P(v(n),{tabbable:r,accept:o},n);i.currentNode=n[0].previousElementSibling;let a=i.nextNode();return a&&C(a,!0),a},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=P(v(n),{tabbable:r,accept:o},n);i.currentNode=n[n.length-1].nextElementSibling;let a=i.previousNode();return a&&C(a,!0),a}}}(p)),[]),g=(0,s.useMemo)((()=>({focusManager:m,parentNode:f})),[f,m]);return s.createElement(l.Provider,{value:g},s.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,s.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:d}))}function p(){var e;return null===(e=(0,s.useContext)(l))||void 0===e?void 0:e.focusManager}const h=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],f=h.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";h.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const m=h.join(':not([hidden]):not([tabindex="-1"]),');function g(e){return e.matches(f)}function v(e){return e[0].parentElement}function y(e){let t=M.getTreeNode(u);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function b(e){return x(e)}function w(e,t){return!!e&&(!!t&&t.some((t=>t.contains(e))))}function x(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of M.traverse(M.getTreeNode(t)))if(n&&w(e,n.current))return!0;return!1}function S(e){return x(e,u)}function _(e,t){var n;let r=null===(n=M.getTreeNode(t))||void 0===n?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function C(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{i(e)}catch(e){}}function E(e,t=!0){let n=e[0].previousElementSibling,r=v(e),o=P(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();return t&&!i&&(r=v(e),o=P(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),i}function k(e,t=!0){C(E(e,t))}function z(e){e.dispatchEvent(new CustomEvent(c,{bubbles:!0,cancelable:!0}))&&C(e)}function P(e,t,n){let o=(null==t?void 0:t.tabbable)?m:f,i=e instanceof ShadowRoot?e:(0,r.zm)(e)||(0,r.TW)(e),s=(i instanceof ShadowRoot?i.ownerDocument:i).createTreeWalker(e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var r;return(null==t||null===(r=t.from)||void 0===r?void 0:r.contains(e))?NodeFilter.FILTER_REJECT:!e.matches(o)||!a(e)||n&&!w(e,n)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});if((null==t?void 0:t.from)&&(s.currentNode=t.from),i instanceof ShadowRoot){const e=s.nextNode.bind(s),t=s.previousNode.bind(s);s.nextNode=function(e,t){return function(){let n=e();if(!n&&t&&t.length>0){let e=t[0].getRootNode(),n=e instanceof ShadowRoot?e.host.nextElementSibling:null;for(;n;){if(n.shadowRoot){let e=Array.from(n.shadowRoot.querySelectorAll("*")).filter(g);if(e.length>0)return e[0]}n=n.nextElementSibling}}return n}}(e,n),s.previousNode=function(e,t){return function(){let n=e();if(!n&&t&&t.length>0){let e=t[0].getRootNode(),n=e instanceof ShadowRoot?e.host.previousElementSibling:null;for(;n;){if(n.shadowRoot){let e=Array.from(n.shadowRoot.querySelectorAll("*")).filter(g);if(e.length>0)return e[e.length-1]}n=n.previousElementSibling}}return n}}(t,n)}return s}function A(e,t={}){return{focusNext(n={}){let o=e.current;if(!o)return null;let{from:i,tabbable:a=t.tabbable,wrap:s=t.wrap,accept:l=t.accept}=n,c=i||((0,r.zm)(o)||(0,r.TW)(o)).activeElement,u=P(o,{tabbable:a,accept:l});o.contains(c)&&(u.currentNode=c);let d=u.nextNode();return!d&&s&&(u.currentNode=o,d=u.nextNode()),d&&C(d,!0),d},focusPrevious(n=t){let o=e.current;if(!o)return null;let{from:i,tabbable:a=t.tabbable,wrap:s=t.wrap,accept:l=t.accept}=n,c=i||((0,r.zm)(o)||(0,r.TW)(o)).activeElement,u=P(o,{tabbable:a,accept:l});if(!o.contains(c)){let e=D(u);return e&&C(e,!0),null!=e?e:null}u.currentNode=c;let d=u.previousNode();if(!d&&s){u.currentNode=o;let e=D(u);if(!e)return null;d=e}return d&&C(d,!0),null!=d?d:null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,a=P(r,{tabbable:o,accept:i}).nextNode();return a&&C(a,!0),a},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,a=D(P(r,{tabbable:o,accept:i}));return a&&C(a,!0),null!=a?a:null}}}function D(e){let t,n;do{n=e.lastChild(),n&&(t=n)}while(n);return t}class T{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null);if(!r)return;let o=new I({scopeRef:e});r.addChild(o),o.parent=r,this.fastMap.set(e,o),n&&(o.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&w(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach((e=>n&&n.addChild(e)))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e;let t=new T;var n;for(let r of this.traverse())t.addTreeNode(r.scopeRef,null!==(n=null===(e=r.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null,r.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new I({scopeRef:null}),this.fastMap.set(null,this.root)}}class I{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let M=new T;function N(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=(0,s.useRef)({isFocused:!1,isFocusVisible:t||(0,o.pP)()}),[a,l]=(0,s.useState)(!1),[c,u]=(0,s.useState)((()=>i.current.isFocused&&i.current.isFocusVisible)),d=(0,s.useCallback)((()=>u(i.current.isFocused&&i.current.isFocusVisible)),[]),p=(0,s.useCallback)((e=>{i.current.isFocused=e,l(e),d()}),[d]);(0,o.K7)((e=>{i.current.isFocusVisible=e,d()}),[],{isTextInput:n});let{focusProps:h}=(0,o.iQ)({isDisabled:r,onFocusChange:p}),{focusWithinProps:f}=(0,o.Rb)({isDisabled:!r,onFocusWithinChange:p});return{isFocused:a,isFocusVisible:c,focusProps:r?f:h}}let O=s.createContext(null);function R(e,t){let{children:n,...o}=e,i={...o,ref:(0,r.UH)(t)};return s.createElement(O.Provider,{value:i},n)}let j=s.forwardRef(R);function F(e,t){let{focusProps:n}=(0,o.iQ)(e),{keyboardProps:a}=(0,o.de)(e),l=(0,r.v6)(n,a),c=function(e){let t=(0,s.useContext)(O)||{};(0,r.wt)(t,e);let{ref:n,...o}=t;return o}(t),u=e.isDisabled?{}:c,d=(0,s.useRef)(e.autoFocus);return(0,s.useEffect)((()=>{d.current&&t.current&&i(t.current),d.current=!1}),[t]),{focusableProps:(0,r.v6)({...l,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},u)}}function B(e,t){let n=null==t?void 0:t.isDisabled,[o,i]=(0,s.useState)(!1);return(0,r.Nf)((()=>{if((null==e?void 0:e.current)&&!n){let t=()=>{if(e.current){let t=P(e.current,{tabbable:!0});i(!!t.nextNode())}};t();let n=new MutationObserver(t);return n.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{n.disconnect()}}})),!n&&o}},75944:(e,t,n)=>{"use strict";n.d(t,{X:()=>a});var r=n(37555),o=n(96540),i=n(86025);function a(e,t,n){let{validationBehavior:a,focus:l}=e;(0,i.Nf)((()=>{if("native"===a&&(null==n?void 0:n.current)){let r=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(r),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=n.current).validity.valid,validationDetails:s(e),validationErrors:e.validationMessage?[e.validationMessage]:[]})}var e}));let c=(0,i.Jt)((()=>{t.resetValidation()})),u=(0,i.Jt)((e=>{var o;t.displayValidation.isInvalid||t.commitValidation();let i=null==n||null===(o=n.current)||void 0===o?void 0:o.form;var a;!e.defaultPrevented&&n&&i&&function(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}(i)===n.current&&(l?l():null===(a=n.current)||void 0===a||a.focus(),(0,r.Cl)("keyboard"));e.preventDefault()})),d=(0,i.Jt)((()=>{t.commitValidation()}));(0,o.useEffect)((()=>{let e=null==n?void 0:n.current;if(!e)return;let t=e.form;return e.addEventListener("invalid",u),e.addEventListener("change",d),null==t||t.addEventListener("reset",c),()=>{e.removeEventListener("invalid",u),e.removeEventListener("change",d),null==t||t.removeEventListener("reset",c)}}),[n,u,d,c,a])}function s(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}},53571:(e,t,n)=>{"use strict";n.d(t,{HR:()=>l,bw:()=>p,mW:()=>d});n(38783),n(72114);new WeakMap;var r={};r={"ar-AE":{deselectedItem:e=>`${e.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عنصر محدد`})}.`,selectedItem:e=>`${e.item} المحدد`},"bg-BG":{deselectedItem:e=>`${e.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Няма избрани елементи",one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,selectedItem:e=>`${e.item} избран.`},"cs-CZ":{deselectedItem:e=>`Položka ${e.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${t.number(e.count)} položka`,other:()=>`Vybráno ${t.number(e.count)} položek`})}.`,selectedItem:e=>`Vybrána položka ${e.item}.`},"da-DK":{deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer valgt",one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`},"de-DE":{deselectedItem:e=>`${e.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${t.number(e.count)} Element ausgewählt`,other:()=>`${t.number(e.count)} Elemente ausgewählt`})}.`,selectedItem:e=>`${e.item} ausgewählt.`},"el-GR":{deselectedItem:e=>`Δεν επιλέχθηκε το στοιχείο ${e.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${t.number(e.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${t.number(e.count)} στοιχεία`})}.`,selectedItem:e=>`Επιλέχθηκε το στοιχείο ${e.item}.`},"en-US":{deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."},"es-ES":{deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ningún elemento seleccionado",one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`},"et-EE":{deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Üksusi pole valitud",one:()=>`${t.number(e.count)} üksus valitud`,other:()=>`${t.number(e.count)} üksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`},"fi-FI":{deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`},"fr-FR":{deselectedItem:e=>`${e.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Aucun élément sélectionné",one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,selectedItem:e=>`${e.item} sélectionné.`},"he-IL":{deselectedItem:e=>`${e.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${t.number(e.count)} נבחר`,other:()=>`${t.number(e.count)} פריטים נבחרו`})}.`,selectedItem:e=>`${e.item} נבחר.`},"hr-HR":{deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`},"hu-HU":{deselectedItem:e=>`${e.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${t.number(e.count)} elem kijelölve`,other:()=>`${t.number(e.count)} elem kijelölve`})}.`,selectedItem:e=>`${e.item} kijelölve.`},"it-IT":{deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nessun elemento selezionato",one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`},"ja-JP":{deselectedItem:e=>`${e.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"項目が選択されていません",one:()=>`${t.number(e.count)} 項目を選択しました`,other:()=>`${t.number(e.count)} 項目を選択しました`})}。`,selectedItem:e=>`${e.item} を選択しました。`},"ko-KR":{deselectedItem:e=>`${e.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"선택된 항목이 없습니다",one:()=>`${t.number(e.count)}개 항목이 선택되었습니다`,other:()=>`${t.number(e.count)}개 항목이 선택되었습니다`})}.`,selectedItem:e=>`${e.item}이(가) 선택되었습니다.`},"lt-LT":{deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta elementų: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`},"lv-LV":{deselectedItem:e=>`Vienums ${e.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlasīts vienums ${e.item}.`},"nb-NO":{deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer er valgt",one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`},"nl-NL":{deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Geen items geselecteerd",one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`},"pl-PL":{deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych elementów`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`},"pt-BR":{deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`},"pt-PT":{deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`},"ro-RO":{deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Niciun element selectat",one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`},"ru-RU":{deselectedItem:e=>`${e.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Нет выбранных элементов",one:()=>`${t.number(e.count)} элемент выбран`,other:()=>`${t.number(e.count)} элементов выбрано`})}.`,selectedItem:e=>`${e.item} выбрано.`},"sk-SK":{deselectedItem:e=>`Nevybraté položky: ${e.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Žiadne vybraté položky",one:()=>`${t.number(e.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybraté položky: ${e.item}.`},"sl-SI":{deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Noben element ni izbran",one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`},"sr-SP":{deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`},"sv-SE":{deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`},"tr-TR":{deselectedItem:e=>`${e.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${t.number(e.count)} öge seçildi`,other:()=>`${t.number(e.count)} öge seçildi`})}.`,selectedItem:e=>`${e.item} seçildi.`},"uk-UA":{deselectedItem:e=>`${e.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Жодних елементів не вибрано",one:()=>`${t.number(e.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} вибрано.`},"zh-CN":{deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未选择项目",one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`},"zh-TW":{deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未選取任何項目",one:()=>`已選取 ${t.number(e.count)} 個項目`,other:()=>`已選取 ${t.number(e.count)} 個項目`})}。`,selectedItem:e=>`已選取「${e.item}」。`}};var o=n(72317),i=n(20381),a=n(96540),s=n(86025);function l(e,t){let{getRowText:n=e=>{var n,r,o,i;return null!==(i=null===(n=(r=t.collection).getTextValue)||void 0===n?void 0:n.call(r,e))&&void 0!==i?i:null===(o=t.collection.getItem(e))||void 0===o?void 0:o.textValue}}=e,l=(0,i.oe)((u=r)&&u.__esModule?u.default:u,"@react-aria/grid");var u;let d=t.selectionManager.rawSelection,p=(0,a.useRef)(d);(0,s.w5)((()=>{var e;if(!t.selectionManager.isFocused)return void(p.current=d);let r=c(d,p.current),i=c(p.current,d),a="replace"===t.selectionManager.selectionBehavior,s=[];if(1===t.selectionManager.selectedKeys.size&&a){if(t.collection.getItem(t.selectionManager.selectedKeys.keys().next().value)){let e=n(t.selectionManager.selectedKeys.keys().next().value);e&&s.push(l.format("selectedItem",{item:e}))}}else if(1===r.size&&0===i.size){let e=n(r.keys().next().value);e&&s.push(l.format("selectedItem",{item:e}))}else if(1===i.size&&0===r.size&&t.collection.getItem(i.keys().next().value)){let e=n(i.keys().next().value);e&&s.push(l.format("deselectedItem",{item:e}))}"multiple"===t.selectionManager.selectionMode&&(0===s.length||"all"===d||d.size>1||"all"===p.current||(null===(e=p.current)||void 0===e?void 0:e.size)>1)&&s.push("all"===d?l.format("selectedAll"):l.format("selectedCount",{count:d.size})),s.length>0&&(0,o.iP)(s.join(" ")),p.current=d}),[d])}function c(e,t){let n=new Set;if("all"===e||"all"===t)return n;for(let r of e.keys())t.has(r)||n.add(r);return n}var u=n(37555);function d(e){let t=(0,i.oe)((n=r)&&n.__esModule?n.default:n,"@react-aria/grid");var n;let o=(0,u.lb)(),l=("pointer"===o||"virtual"===o||null==o)&&"undefined"!=typeof window&&"ontouchstart"in window,c=(0,a.useMemo)((()=>{let n,r=e.selectionManager.selectionMode,o=e.selectionManager.selectionBehavior;return l&&(n=t.format("longPressToSelect")),"replace"===o&&"none"!==r&&e.hasItemActions?n:void 0}),[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,l]);return(0,s.I8)(c)}n(74373);function p(e,t){let{key:n}=e,o=t.selectionManager,a=(0,s.Bi)(),l=!t.selectionManager.canSelectItem(n),c=t.selectionManager.isSelected(n);var u;return{checkboxProps:{id:a,"aria-label":(0,i.oe)((u=r)&&u.__esModule?u.default:u,"@react-aria/grid").format("select"),isSelected:c,isDisabled:l,onChange:()=>o.toggleSelection(n)}}}},11104:(e,t,n)=>{"use strict";n.d(t,{IZ:()=>c,ns:()=>m,v0:()=>v});const r=new WeakMap;function o(e,t){let{id:n}=r.get(e);if(!n)throw new Error("Unknown list");return`${n}-${function(e){return"string"==typeof e?e.replace(/\s*/g,""):""+e}(t)}`}var i=n(86025),a=n(53571),s=n(74373),l=n(38783);function c(e,t,n){let{isVirtualized:o,keyboardDelegate:c,layoutDelegate:u,onAction:d,linkBehavior:p="action",keyboardNavigationBehavior:h="arrow"}=e;e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:f}=(0,l.yI)({selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,ref:n,keyboardDelegate:c,layoutDelegate:u,isVirtualized:o,selectOnFocus:"replace"===t.selectionManager.selectionBehavior,shouldFocusWrap:e.shouldFocusWrap,linkBehavior:p}),m=(0,i.Bi)(e.id);r.set(t,{id:m,onAction:d,linkBehavior:p,keyboardNavigationBehavior:h});let g=(0,a.mW)({selectionManager:t.selectionManager,hasItemActions:!!d}),v=(0,s.$C)(n,{isDisabled:0!==t.collection.size}),y=(0,i.$X)(e,{labelable:!0}),b=(0,i.v6)(y,{role:"grid",id:m,"aria-multiselectable":"multiple"===t.selectionManager.selectionMode?"true":void 0},0===t.collection.size?{tabIndex:v?-1:0}:f,g);return o&&(b["aria-rowcount"]=t.collection.size,b["aria-colcount"]=1),(0,a.HR)({},t),{gridProps:b}}var u=n(72114),d=n(96540),p=n(37555),h=n(20381);const f={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function m(e,t,n){var a,c;let m,{node:v,isVirtualized:y,shouldSelectOnPressUp:b}=e,{direction:w}=(0,h.Ym)(),{onAction:x,linkBehavior:S,keyboardNavigationBehavior:_}=r.get(t),C=(0,i.X1)(),E=(0,d.useRef)(null),k={},z=t.selectionManager.isLink(v.key);if(null!=v&&"expandedKeys"in t){m=[...t.collection.getChildren(v.key)].length>1,null==x&&!z&&"none"===t.selectionManager.selectionMode&&m&&(x=()=>t.toggleKey(v.key)),k={"aria-expanded":m?t.expandedKeys.has(v.key):void 0,"aria-level":v.level+1,"aria-posinset":(null==v?void 0:v.index)+1,"aria-setsize":v.level>0?(0,u.W)(t.collection.getChildren(null==v?void 0:v.parentKey)).index+1:[...t.collection].filter((e=>0===e.level)).at(-1).index+1}}let{itemProps:P,...A}=(0,l.pB)({selectionManager:t.selectionManager,key:v.key,ref:n,isVirtualized:y,shouldSelectOnPressUp:b,onAction:x||(null===(a=v.props)||void 0===a?void 0:a.onAction)?(0,i.cy)(null===(c=v.props)||void 0===c?void 0:c.onAction,x?()=>x(v.key):void 0):void 0,focus:()=>{var e;(null!=E.current&&v.key!==E.current||!(null===(e=n.current)||void 0===e?void 0:e.contains(document.activeElement)))&&(0,s.lY)(n.current)},linkBehavior:S}),D=(0,i.HI)(v.props),T=A.hasAction?D:{},I=(0,i.v6)(P,T,{role:"row",onKeyDownCapture:e=>{if(!e.currentTarget.contains(e.target))return;let r=(0,s.N$)(n.current);if(r.currentNode=document.activeElement,"expandedKeys"in t&&document.activeElement===n.current){if(e.key===f.expand[w]&&t.selectionManager.focusedKey===v.key&&m&&!t.expandedKeys.has(v.key))return t.toggleKey(v.key),void e.stopPropagation();if(e.key===f.collapse[w]&&t.selectionManager.focusedKey===v.key&&m&&t.expandedKeys.has(v.key))return t.toggleKey(v.key),void e.stopPropagation()}switch(e.key){case"ArrowLeft":if("arrow"===_){let t="rtl"===w?r.nextNode():r.previousNode();if(t)e.preventDefault(),e.stopPropagation(),(0,s.lY)(t),(0,i.op)(t,{containingElement:(0,i.mH)(n.current)});else if(e.preventDefault(),e.stopPropagation(),"rtl"===w)(0,s.lY)(n.current),(0,i.op)(n.current,{containingElement:(0,i.mH)(n.current)});else{r.currentNode=n.current;let e=g(r);e&&((0,s.lY)(e),(0,i.op)(e,{containingElement:(0,i.mH)(n.current)}))}}break;case"ArrowRight":if("arrow"===_){let t="rtl"===w?r.previousNode():r.nextNode();if(t)e.preventDefault(),e.stopPropagation(),(0,s.lY)(t),(0,i.op)(t,{containingElement:(0,i.mH)(n.current)});else if(e.preventDefault(),e.stopPropagation(),"ltr"===w)(0,s.lY)(n.current),(0,i.op)(n.current,{containingElement:(0,i.mH)(n.current)});else{r.currentNode=n.current;let e=g(r);e&&((0,s.lY)(e),(0,i.op)(e,{containingElement:(0,i.mH)(n.current)}))}}break;case"ArrowUp":case"ArrowDown":!e.altKey&&n.current.contains(e.target)&&(e.stopPropagation(),e.preventDefault(),n.current.parentElement.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent)));break;case"Tab":if("tab"===_){let t=(0,s.N$)(n.current,{tabbable:!0});t.currentNode=document.activeElement,(e.shiftKey?t.previousNode():t.nextNode())&&e.stopPropagation()}}},onFocus:e=>{E.current=v.key,e.target===n.current||(0,p.pP)()||t.selectionManager.setFocusedKey(v.key)},"aria-label":v.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(v.key)?t.selectionManager.isSelected(v.key):void 0,"aria-disabled":t.selectionManager.isDisabled(v.key)||void 0,"aria-labelledby":C&&v.textValue?`${o(t,v.key)} ${C}`:void 0,id:o(t,v.key)});y&&(I["aria-rowindex"]=v.index+1);return{rowProps:{...(0,i.v6)(I,k)},gridCellProps:{role:"gridcell","aria-colindex":1},descriptionProps:{id:C},...A}}function g(e){let t,n;do{n=e.lastChild(),n&&(t=n)}while(n);return t}function v(e,t){let{key:n}=e;const{checkboxProps:r}=(0,a.bw)(e,t);return{checkboxProps:{...r,"aria-labelledby":`${r.id} ${o(t,n)}`}}}},20381:(e,t,n)=>{"use strict";n.d(t,{CY:()=>m,QM:()=>at,iF:()=>tt,U2:()=>st,Ym:()=>g,oe:()=>Je,pn:()=>Ge,JY:()=>ot});const r=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),o=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function i(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return r.has(t.script)}let t=e.split("-")[0];return o.has(t)}var a=n(96540),s=n(96411);const l=Symbol.for("react-aria.i18n.locale");function c(){let e="undefined"!=typeof window&&window[l]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:i(e)?"rtl":"ltr"}}let u=c(),d=new Set;function p(){u=c();for(let e of d)e(u)}function h(){let e=(0,s.wR)(),[t,n]=(0,a.useState)(u);return(0,a.useEffect)((()=>(0===d.size&&window.addEventListener("languagechange",p),d.add(n),()=>{d.delete(n),0===d.size&&window.removeEventListener("languagechange",p)})),[]),e?{locale:"en-US",direction:"ltr"}:t}const f=a.createContext(null);function m(e){let{locale:t,children:n}=e,r=h(),o=a.useMemo((()=>t?{locale:t,direction:i(t)?"rtl":"ltr"}:r),[r,t]);return a.createElement(f.Provider,{value:o},n)}function g(){let e=h();return(0,a.useContext)(f)||e}class v{getStringForLocale(e,t){let n=this.messages[t];n||(n=function(e,t,n="en-US"){if(t[e])return t[e];let r=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);if(t[r])return t[r];for(let e in t)if(e.startsWith(r+"-"))return t[e];return t[n]}(t,this.messages,this.defaultLocale),this.messages[t]=n);let r=n[e];if(!r)throw new Error(`Could not find intl message ${e} in ${t} locale`);return r}constructor(e,t="en-US"){this.messages=Object.fromEntries(Object.entries(e).filter((([,e])=>e))),this.defaultLocale=t}}var y=function(e,t){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},y(e,t)};function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var w=function(){return w=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},w.apply(this,arguments)};Object.create;function x(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var S,_,C;Object.create;function E(e){return e.type===_.literal}function k(e){return e.type===_.argument}function z(e){return e.type===_.number}function P(e){return e.type===_.date}function A(e){return e.type===_.time}function D(e){return e.type===_.select}function T(e){return e.type===_.plural}function I(e){return e.type===_.pound}function M(e){return e.type===_.tag}function N(e){return!(!e||"object"!=typeof e||e.type!==C.number)}function O(e){return!(!e||"object"!=typeof e||e.type!==C.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(S||(S={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(_||(_={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(C||(C={}));var R=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,j=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function F(e){var t={};return e.replace(j,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var B=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var L=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,V=/^(@+)?(\+|#+)?[rs]?$/g,K=/(\*)(0+)|(#+)(0+)|(0+)/g,H=/^(0+)$/;function $(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(V,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function U(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function W(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!H.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function q(e){var t=U(e);return t||{}}function G(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=w(w(w({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return w(w({},e),q(t))}),{}));continue;case"engineering":t=w(w(w({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return w(w({},e),q(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(K,(function(e,n,r,o,i,a){if(n)t.minimumIntegerDigits=r.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(H.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(L.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(L,(function(e,n,r,o,i,a){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var i=o.options[0];"w"===i?t=w(w({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=w(w({},t),$(i)))}else if(V.test(o.stem))t=w(w({},t),$(o.stem));else{var a=U(o.stem);a&&(t=w(w({},t),a));var s=W(o.stem);s&&(t=w(w({},t),s))}}return t}var Z,Y={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function X(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(Y[n||""]||Y[r||""]||Y["".concat(r,"-001")]||Y["001"])[0]}var J=new RegExp("^".concat(R.source,"*")),Q=new RegExp("".concat(R.source,"*$"));function ee(e,t){return{start:e,end:t}}var te=!!String.prototype.startsWith,ne=!!String.fromCodePoint,re=!!Object.fromEntries,oe=!!String.prototype.codePointAt,ie=!!String.prototype.trimStart,ae=!!String.prototype.trimEnd,se=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},le=!0;try{le="a"===(null===(Z=ge("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Z?void 0:Z[0])}catch(e){le=!1}var ce,ue=te?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},de=ne?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,i=0;o>i;){if((n=e[i++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},pe=re?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],i=o[0],a=o[1];t[i]=a}return t},he=oe?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},fe=ie?function(e){return e.trimStart()}:function(e){return e.replace(J,"")},me=ae?function(e){return e.trimEnd()}:function(e){return e.replace(Q,"")};function ge(e,t){return new RegExp(e,t)}if(le){var ve=ge("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ce=function(e,t){var n;return ve.lastIndex=t,null!==(n=ve.exec(e)[1])&&void 0!==n?n:""}}else ce=function(e,t){for(var n=[];;){var r=he(e,t);if(void 0===r||xe(r)||Se(r))break;n.push(r),t+=r>=65536?2:1}return de.apply(void 0,n)};var ye=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(S.UNMATCHED_CLOSING_TAG,ee(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&be(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;r.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}}else{var a=this.clonePosition();this.bump(),r.push({type:_.pound,location:ee(a,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:_.literal,value:"<".concat(r,"/>"),location:ee(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!be(this.char()))return this.error(S.INVALID_TAG,ee(a,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error(S.UNMATCHED_CLOSING_TAG,ee(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:_.tag,value:r,children:i,location:ee(n,this.clonePosition())},err:null}:this.error(S.INVALID_TAG,ee(a,this.clonePosition())))}return this.error(S.UNCLOSED_TAG,ee(n,this.clonePosition()))}return this.error(S.INVALID_TAG,ee(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&we(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{var i=this.tryParseUnquoted(e,t);if(i)r+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}var s=ee(n,this.clonePosition());return{val:{type:_.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(be(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return de.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),de(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,ee(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(S.EMPTY_ARGUMENT,ee(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(S.MALFORMED_ARGUMENT,ee(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,ee(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:_.argument,value:r,location:ee(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,ee(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(S.MALFORMED_ARGUMENT,ee(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=ce(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:ee(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(S.EXPECT_ARGUMENT_TYPE,ee(i,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((v=this.parseSimpleArgStyleIfPossible()).err)return v;if(0===(h=me(v.val)).length)return this.error(S.EXPECT_ARGUMENT_STYLE,ee(this.clonePosition(),this.clonePosition()));l={style:h,styleLocation:ee(c,this.clonePosition())}}if((y=this.tryParseArgumentClose(r)).err)return y;var u=ee(r,this.clonePosition());if(l&&ue(null==l?void 0:l.style,"::",0)){var d=fe(l.style.slice(2));if("number"===a)return(v=this.parseNumberSkeletonFromString(d,l.styleLocation)).err?v:{val:{type:_.number,value:n,location:u,style:v.val},err:null};if(0===d.length)return this.error(S.EXPECT_DATE_TIME_SKELETON,u);var p=d;this.locale&&(p=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var i=0;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;var a=1+(1&i),s=i<2?1:3+(i>>1),l=X(t);for("H"!=l&&"k"!=l||(s=0);s-- >0;)n+="a";for(;a-- >0;)n=l+n}else n+="J"===o?"H":o}return n}(d,this.locale));var h={type:C.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?F(p):{}};return{val:{type:"date"===a?_.date:_.time,value:n,location:u,style:h},err:null}}return{val:{type:"number"===a?_.number:"date"===a?_.date:_.time,value:n,location:u,style:null!==(o=null==l?void 0:l.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(S.EXPECT_SELECT_ARGUMENT_OPTIONS,ee(f,w({},f)));this.bumpSpace();var m=this.parseIdentifierIfPossible(),g=0;if("select"!==a&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ee(this.clonePosition(),this.clonePosition()));var v;if(this.bumpSpace(),(v=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,S.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return v;this.bumpSpace(),m=this.parseIdentifierIfPossible(),g=v.val}var y,b=this.tryParsePluralOrSelectOptions(e,a,t,m);if(b.err)return b;if((y=this.tryParseArgumentClose(r)).err)return y;var x=ee(r,this.clonePosition());return"select"===a?{val:{type:_.select,value:n,options:pe(b.val),location:x},err:null}:{val:{type:_.plural,value:n,options:pe(b.val),offset:g,pluralType:"plural"===a?"cardinal":"ordinal",location:x},err:null};default:return this.error(S.INVALID_ARGUMENT_TYPE,ee(i,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,ee(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(S.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ee(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(B).filter((function(e){return e.length>0}));n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],a=o.slice(1),s=0,l=a;s<l.length;s++)if(0===l[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:a})}return t}(e)}catch(e){return this.error(S.INVALID_NUMBER_SKELETON,t)}return{val:{type:C.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?G(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o,i=!1,a=[],s=new Set,l=r.value,c=r.location;;){if(0===l.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_SELECTOR,S.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=ee(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}if(s.has(l))return this.error("select"===t?S.DUPLICATE_SELECT_ARGUMENT_SELECTOR:S.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(i=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?S.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:S.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ee(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(e+1,t,n);if(h.err)return h;var f=this.tryParseArgumentClose(p);if(f.err)return f;a.push([l,{value:h.val,location:ee(p,this.clonePosition())}]),s.add(l),this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,c=o.location}return 0===a.length?this.error("select"===t?S.EXPECT_SELECT_ARGUMENT_SELECTOR:S.EXPECT_PLURAL_ARGUMENT_SELECTOR,ee(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(S.MISSING_OTHER_CLAUSE,ee(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=ee(r,this.clonePosition());return o?se(i*=n)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=he(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(ue(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&xe(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function be(e){return e>=97&&e<=122||e>=65&&e<=90}function we(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function xe(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Se(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function _e(e){e.forEach((function(e){if(delete e.location,D(e)||T(e))for(var t in e.options)delete e.options[t].location,_e(e.options[t].value);else z(e)&&N(e.style)||(P(e)||A(e))&&O(e.style)?delete e.style.location:M(e)&&_e(e.children)}))}function Ce(e,t){void 0===t&&(t={}),t=w({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new ye(e,t).parse();if(n.err){var r=SyntaxError(S[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||_e(n.val),n.val}function Ee(e,t){var n=t&&t.cache?t.cache:Me,r=t&&t.serializer?t.serializer:De;return(t&&t.strategy?t.strategy:Ae)(e,{cache:n,serializer:r})}function ke(e,t,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),a=t.get(i);return void 0===a&&(a=e.call(this,r),t.set(i,a)),a}function ze(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function Pe(e,t,n,r,o){return n.bind(t,e,r,o)}function Ae(e,t){return Pe(e,this,1===e.length?ke:ze,t.cache.create(),t.serializer)}var De=function(){return JSON.stringify(arguments)};function Te(){this.cache=Object.create(null)}Te.prototype.get=function(e){return this.cache[e]},Te.prototype.set=function(e,t){this.cache[e]=t};var Ie,Me={create:function(){return new Te}},Ne={variadic:function(e,t){return Pe(e,this,ze,t.cache.create(),t.serializer)},monadic:function(e,t){return Pe(e,this,ke,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Ie||(Ie={}));var Oe,Re=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.code=n,o.originalMessage=r,o}return b(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),je=function(e){function t(t,n,r,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Ie.INVALID_VALUE,o)||this}return b(t,e),t}(Re),Fe=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),Ie.INVALID_VALUE,r)||this}return b(t,e),t}(Re),Be=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),Ie.MISSING_VALUE,n)||this}return b(t,e),t}(Re);function Le(e){return"function"==typeof e}function Ve(e,t,n,r,o,i,a){if(1===e.length&&E(e[0]))return[{type:Oe.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(E(u))s.push({type:Oe.literal,value:u.value});else if(I(u))"number"==typeof i&&s.push({type:Oe.literal,value:n.getNumberFormat(t).format(i)});else{var d=u.value;if(!o||!(d in o))throw new Be(d,a);var p=o[d];if(k(u))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),s.push({type:"string"==typeof p?Oe.literal:Oe.object,value:p});else if(P(u)){var h="string"==typeof u.style?r.date[u.style]:O(u.style)?u.style.parsedOptions:void 0;s.push({type:Oe.literal,value:n.getDateTimeFormat(t,h).format(p)})}else if(A(u)){h="string"==typeof u.style?r.time[u.style]:O(u.style)?u.style.parsedOptions:r.time.medium;s.push({type:Oe.literal,value:n.getDateTimeFormat(t,h).format(p)})}else if(z(u)){(h="string"==typeof u.style?r.number[u.style]:N(u.style)?u.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),s.push({type:Oe.literal,value:n.getNumberFormat(t,h).format(p)})}else{if(M(u)){var f=u.children,m=u.value,g=o[m];if(!Le(g))throw new Fe(m,"function",a);var v=g(Ve(f,t,n,r,o,i).map((function(e){return e.value})));Array.isArray(v)||(v=[v]),s.push.apply(s,v.map((function(e){return{type:"string"==typeof e?Oe.literal:Oe.object,value:e}})))}if(D(u)){if(!(y=u.options[p]||u.options.other))throw new je(u.value,p,Object.keys(u.options),a);s.push.apply(s,Ve(y.value,t,n,r,o))}else if(T(u)){var y;if(!(y=u.options["=".concat(p)])){if(!Intl.PluralRules)throw new Re('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ie.MISSING_INTL_API,a);var b=n.getPluralRules(t,{type:u.pluralType}).select(p-(u.offset||0));y=u.options[b]||u.options.other}if(!y)throw new je(u.value,p,Object.keys(u.options),a);s.push.apply(s,Ve(y.value,t,n,r,o,p-(u.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===Oe.literal&&t.type===Oe.literal?n.value+=t.value:e.push(t),e}),[])}(s)}function Ke(e,t){return t?Object.keys(e).reduce((function(n,r){var o,i;return n[r]=(o=e[r],(i=t[r])?w(w(w({},o||{}),i||{}),Object.keys(o).reduce((function(e,t){return e[t]=w(w({},o[t]),i[t]||{}),e}),{})):o),n}),w({},e)):e}function He(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Oe||(Oe={}));var $e=function(){function e(t,n,r,o){var i,a=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===Oe.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return Ve(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=a.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==o?void 0:o.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ke(e.formats,r),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ee((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,x([void 0],t,!1)))}),{cache:He(i.number),strategy:Ne.variadic}),getDateTimeFormat:Ee((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,x([void 0],t,!1)))}),{cache:He(i.dateTime),strategy:Ne.variadic}),getPluralRules:Ee((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,x([void 0],t,!1)))}),{cache:He(i.pluralRules),strategy:Ne.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=Ce,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const Ue=$e;class We{format(e,t){let n,r=this.cache[e];if(!r){let t=this.messages.getStringForLocale(e,this.locale);if(!t)throw new Error(`Could not find intl message ${e} in ${this.locale} locale`);r=new Ue(t,this.locale),this.cache[e]=r}return t&&(n=Object.keys(t).reduce(((e,n)=>(e[n]=null!=t[n]&&t[n],e)),{})),r.format(n)}constructor(e,t){this.locale=e,this.messages=t,this.cache={}}}const qe=new WeakMap;function Ge(e){let{locale:t}=g(),n=(0,a.useMemo)((()=>function(e){let t=qe.get(e);return t||(t=new v(e),qe.set(e,t)),t}(e)),[e]),r=(0,a.useMemo)((()=>new We(t,n)),[t,n]);return(0,a.useCallback)(((e,t)=>r.format(e,t)),[r])}var Ze=n(5533);const Ye=new WeakMap;function Xe(e,t){return t&&Ze.B.getGlobalDictionaryForPackage(t)||function(e){let t=Ye.get(e);return t||(t=new(0,Ze.B)(e),Ye.set(e,t)),t}(e)}function Je(e,t){let{locale:n}=g(),r=Xe(e,t);return(0,a.useMemo)((()=>new(0,Ze.J)(n,r)),[n,r])}var Qe=n(34361),et=n(86025);function tt(e){e=(0,et.k9)(null!=e?e:{},nt);let{locale:t}=g();return(0,a.useMemo)((()=>new(0,Qe.pw)(t,e)),[t,e])}function nt(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0}var rt=n(37515);function ot(e={}){let{locale:t}=g();return(0,a.useMemo)((()=>new(0,rt.K)(t,e)),[t,e])}let it=new Map;function at(e){let{locale:t}=g(),n=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(it.has(n))return it.get(n);let r=new Intl.Collator(t,e);return it.set(n,r),r}function st(e){let t=at({usage:"search",...e}),n=(0,a.useCallback)(((e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(0,n.length),n))),[t]),r=(0,a.useCallback)(((e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(-n.length),n))),[t]),o=(0,a.useCallback)(((e,n)=>{if(0===n.length)return!0;e=e.normalize("NFC");let r=0,o=(n=n.normalize("NFC")).length;for(;r+o<=e.length;r++){let i=e.slice(r,r+o);if(0===t.compare(n,i))return!0}return!1}),[t]);return(0,a.useMemo)((()=>({startsWith:n,endsWith:r,contains:o})),[n,r,o])}},37555:(e,t,n)=>{"use strict";n.d(t,{NG:()=>A,YI:()=>P,ME:()=>Z,pP:()=>G,Cl:()=>Y,iQ:()=>I,Y0:()=>Q,K7:()=>ee,Rb:()=>te,Mk:()=>se,$Z:()=>le,lb:()=>X,de:()=>de,HZ:()=>me,fD:()=>pe,dD:()=>v,Q7:()=>he});var r=n(86025);let o="default",i="",a=new WeakMap;function s(e){if((0,r.un)()){if("default"===o){const t=(0,r.TW)(e);i=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}o="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(a.set(e,e.style.userSelect),e.style.userSelect="none")}function l(e){if((0,r.un)()){if("disabled"!==o)return;o="restoring",setTimeout((()=>{(0,r.vg)((()=>{if("restoring"===o){const t=(0,r.TW)(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=i||""),i="",o="default"}}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&a.has(e)){let t=a.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),a.delete(e)}}var c=n(96540);const u=c.createContext({register:()=>{}});function d(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}u.displayName="PressResponderContext";var p=n(1716);function h(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,d(e,t,"set"),n),n}var f=new WeakMap;class m{continuePropagation(){h(this,f,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(e=this,d(e,f,"get"));var e}constructor(e,t,n,r){var o;(0,p._)(this,f,{writable:!0,value:void 0}),h(this,f,!0);let i=null!==(o=null==r?void 0:r.target)&&void 0!==o?o:n.currentTarget;const a=null==i?void 0:i.getBoundingClientRect();let s,l,c=0,u=null;null!=n.clientX&&null!=n.clientY&&(l=n.clientX,u=n.clientY),a&&(null!=l&&null!=u?(s=l-a.left,c=u-a.top):(s=a.width/2,c=a.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=s,this.y=c}}const g=Symbol("linkClicked");function v(e){let{onPress:t,onPressChange:n,onPressStart:o,onPressEnd:i,onPressUp:a,isDisabled:d,isPressed:p,preventFocusOnPress:h,shouldCancelOnPointerExit:f,allowTextSelectionOnPress:v,ref:k,...z}=function(e){let t=(0,c.useContext)(u);if(t){let{register:n,...o}=t;e=(0,r.v6)(o,e),n()}return(0,r.wt)(t,e.ref),e}(e),[P,A]=(0,c.useState)(!1),D=(0,c.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:T,removeAllGlobalListeners:I}=(0,r.A5)(),M=(0,r.Jt)(((e,t)=>{let r=D.current;if(d||r.didFirePressStart)return!1;let i=!0;if(r.isTriggeringEvent=!0,o){let n=new m("pressstart",t,e);o(n),i=n.shouldStopPropagation}return n&&n(!0),r.isTriggeringEvent=!1,r.didFirePressStart=!0,A(!0),i})),N=(0,r.Jt)(((e,r,o=!0)=>{let a=D.current;if(!a.didFirePressStart)return!1;a.ignoreClickAfterPress=!0,a.didFirePressStart=!1,a.isTriggeringEvent=!0;let s=!0;if(i){let t=new m("pressend",r,e);i(t),s=t.shouldStopPropagation}if(n&&n(!1),A(!1),t&&o&&!d){let n=new m("press",r,e);t(n),s&&(s=n.shouldStopPropagation)}return a.isTriggeringEvent=!1,s})),O=(0,r.Jt)(((e,t)=>{let n=D.current;if(d)return!1;if(a){n.isTriggeringEvent=!0;let r=new m("pressup",t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0})),R=(0,r.Jt)((e=>{let t=D.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&N(S(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,I(),v||l(t.target))})),j=(0,r.Jt)((e=>{f&&R(e)})),F=(0,c.useMemo)((()=>{let e=D.current,t={onKeyDown(t){if(b(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var o;E(t.target,t.key)&&t.preventDefault();let i=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,i=M(t,"keyboard");let o=t.currentTarget,a=t=>{b(t,o)&&!t.repeat&&o.contains(t.target)&&e.target&&O(S(e.target,t),"keyboard")};const s=(0,r.zm)(t.currentTarget)||(0,r.TW)(t.currentTarget);T(s,"keyup",(0,r.cy)(a,n),!0)}i&&t.stopPropagation(),t.metaKey&&(0,r.cX)()&&(null===(o=e.metaKeyEvents)||void 0===o||o.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button&&!e.isTriggeringEvent&&!r.Fe.isOpening){let n=!0;if(d&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||(0,r.YF)(t.nativeEvent))){d||h||(0,r.eC)(t.currentTarget);let e=M(t,"virtual"),o=O(t,"virtual"),i=N(t,"virtual");n=e&&o&&i}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&b(t,e.target)){var o;E(t.target,t.key)&&t.preventDefault();let n=t.target;N(S(e.target,t),"keyboard",e.target.contains(n)),I(),"Enter"!==t.key&&y(e.target)&&e.target.contains(n)&&!t[g]&&(t[g]=!0,(0,r.Fe)(e.target,t,!1)),e.isPressed=!1,null===(o=e.metaKeyEvents)||void 0===o||o.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){var i;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())null===(i=e.target)||void 0===i||i.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if((0,r.Pg)(t.nativeEvent))return void(e.pointerType="virtual");C(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let a=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||h||(0,r.eC)(t.currentTarget),v||s(e.target),a=M(t,e.pointerType);const l=(0,r.zm)(t.currentTarget)||(0,r.TW)(t.currentTarget);T(l,"pointermove",n,!1),T(l,"pointerup",o,!1),T(l,"pointercancel",i,!1)}a&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(C(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&_(t,t.currentTarget)&&O(t,e.pointerType||t.pointerType)};let n=t=>{t.pointerId===e.activePointerId&&(e.target&&_(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,M(S(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,N(S(e.target,t),e.pointerType,!1),j(t)))},o=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&(_(t,e.target)&&null!=e.pointerType?N(S(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&N(S(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,I(),v||l(e.target))},i=e=>{R(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&R(e)}}else{t.onMouseDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if(C(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents)return void t.stopPropagation();e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=(0,r.YF)(t.nativeEvent)?"virtual":"mouse",d||h||(0,r.eC)(t.currentTarget),M(t,e.pointerType)&&t.stopPropagation();const o=(0,r.zm)(t.currentTarget)||(0,r.TW)(t.currentTarget);T(o,"mouseup",n,!1)},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,n=M(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,n=N(t,e.pointerType,!1),j(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||O(t,e.pointerType||"mouse"))};let n=t=>{0===t.button&&(e.isPressed=!1,I(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(e.target&&_(t,e.target)&&null!=e.pointerType?N(S(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&N(S(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let n=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);n&&(e.activePointerId=n.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",d||h||(0,r.eC)(t.currentTarget),v||s(e.target),M(x(e.target,t),e.pointerType)&&t.stopPropagation(),T((0,r.mD)(t.currentTarget),"scroll",o,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=w(t.nativeEvent,e.activePointerId),r=!0;n&&_(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,r=M(x(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,r=N(x(e.target,t),e.pointerType,!1),j(x(e.target,t))),r&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=w(t.nativeEvent,e.activePointerId),r=!0;n&&_(n,t.currentTarget)&&null!=e.pointerType?(O(x(e.target,t),e.pointerType),r=N(x(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(r=N(x(e.target,t),e.pointerType,!1)),r&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!v&&l(e.target),I()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&R(x(e.target,t)))};let o=t=>{e.isPressed&&t.target.contains(e.target)&&R({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&R(e)}}return t}),[T,d,h,I,v,R,j,N,M,O]);return(0,c.useEffect)((()=>()=>{var e;v||l(null!==(e=D.current.target)&&void 0!==e?e:void 0)}),[v]),{isPressed:p||P,pressProps:(0,r.v6)(z,F)}}function y(e){return"A"===e.tagName&&e.hasAttribute("href")}function b(e,t){const{key:n,code:o}=e,i=t,a=i.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==o||i instanceof(0,r.mD)(i).HTMLInputElement&&!z(i,n)||i instanceof(0,r.mD)(i).HTMLTextAreaElement||i.isContentEditable||("link"===a||!a&&y(i))&&"Enter"!==n)}function w(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const r=n[e];if(r.identifier===t)return r}return null}function x(e,t){let n=0,r=0;return t.targetTouches&&1===t.targetTouches.length&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function S(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function _(e,t){let n=t.getBoundingClientRect(),r=function(e){let t=0,n=0;return void 0!==e.width?t=e.width/2:void 0!==e.radiusX&&(t=e.radiusX),void 0!==e.height?n=e.height/2:void 0!==e.radiusY&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return i=r,!((o=n).left>i.right||i.left>o.right||o.top>i.bottom||i.top>o.bottom);var o,i}function C(e){return!(e instanceof HTMLElement&&e.hasAttribute("draggable"))}function E(e,t){return e instanceof HTMLInputElement?!z(e,t):e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!y(e)}const k=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function z(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:k.has(e.type)}const P=c.forwardRef((({children:e,...t},n)=>{let o=(0,c.useRef)(!1),i=(0,c.useContext)(u);n=(0,r.UH)(n||(null==i?void 0:i.ref));let a=(0,r.v6)(i||{},{...t,ref:n,register(){o.current=!0,i&&i.register()}});return(0,r.wt)(i,n),(0,c.useEffect)((()=>{o.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),o.current=!0)}),[]),c.createElement(u.Provider,{value:a},e)}));function A({children:e}){let t=(0,c.useMemo)((()=>({register:()=>{}})),[]);return c.createElement(u.Provider,{value:t},e)}class D{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function T(e){let t=(0,c.useRef)({isFocused:!1,observer:null});(0,r.Nf)((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=(0,r.Jt)((t=>{null==e||e(t)}));return(0,c.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,o=e=>{t.current.isFocused=!1,r.disabled&&n(new D("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}function I(e){let{isDisabled:t,onFocus:n,onBlur:o,onFocusChange:i}=e;const a=(0,c.useCallback)((e=>{if(e.target===e.currentTarget)return o&&o(e),i&&i(!1),!0}),[o,i]),s=T(a),l=(0,c.useCallback)((e=>{const t=(0,r.zm)(e.target),o=t instanceof ShadowRoot?(0,r.dw)():null==t?void 0:t.activeElement;e.target===e.currentTarget&&o===e.target&&(n&&n(e),i&&i(!0),s(e))}),[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||o)?l:void 0,onBlur:t||!o&&!i?void 0:a}}}var M=n(96411);let N=null,O=new Set,R=new Map,j=!1,F=!1;const B={Tab:!0,Escape:!0};function L(e,t){for(let n of O)n(e,t)}function V(e){j=!0,function(e){return!(e.metaKey||!(0,r.cX)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(N="keyboard",L("keyboard",e))}function K(e){N="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(j=!0,L("pointer",e))}function H(e){(0,r.YF)(e)&&(j=!0,N="virtual")}function $(e){e.target!==window&&e.target!==document&&(j||F||(N="virtual",L("virtual",e)),j=!1,F=!1)}function U(){j=!1,F=!0}function W(e){if("undefined"==typeof window||R.get((0,r.mD)(e)))return;const t=(0,r.mD)(e),n=(0,r.zm)(e);let o=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){j=!0,o.apply(this,arguments)},null==n||n.addEventListener("keydown",V,!0),null==n||n.addEventListener("keyup",V,!0),null==n||n.addEventListener("click",H,!0),t.addEventListener("focus",$,!0),t.addEventListener("blur",U,!1),"undefined"!=typeof PointerEvent?(null==n||n.addEventListener("pointerdown",K,!0),null==n||n.addEventListener("pointermove",K,!0),null==n||n.addEventListener("pointerup",K,!0)):(null==n||n.addEventListener("mousedown",K,!0),null==n||n.addEventListener("mousemove",K,!0),null==n||n.addEventListener("mouseup",K,!0)),t.addEventListener("beforeunload",(()=>{q(e)}),{once:!0}),R.set(t,{focus:o})}const q=(e,t)=>{const n=(0,r.mD)(e),o=(0,r.zm)(e);t&&(null==o||o.removeEventListener("DOMContentLoaded",t)),R.has(n)&&(n.HTMLElement.prototype.focus=R.get(n).focus,null==o||o.removeEventListener("keydown",V,!0),null==o||o.removeEventListener("keyup",V,!0),null==o||o.removeEventListener("click",H,!0),n.removeEventListener("focus",$,!0),n.removeEventListener("blur",U,!1),"undefined"!=typeof PointerEvent?(null==o||o.removeEventListener("pointerdown",K,!0),null==o||o.removeEventListener("pointermove",K,!0),null==o||o.removeEventListener("pointerup",K,!0)):(null==o||o.removeEventListener("mousedown",K,!0),null==o||o.removeEventListener("mousemove",K,!0),null==o||o.removeEventListener("mouseup",K,!0)),R.delete(n))};function G(){return"pointer"!==N}function Z(){return N}function Y(e){N=e,L(e,null)}function X(){W();let[e,t]=(0,c.useState)(N);return(0,c.useEffect)((()=>{let e=()=>{t(N)};return O.add(e),()=>{O.delete(e)}}),[]),(0,M.wR)()?null:e}"undefined"!=typeof document&&function(e){const t=(0,r.zm)(e);let n;t instanceof ShadowRoot||"loading"!==(null==t?void 0:t.readyState)?W(e):(n=()=>{W(e)},t.addEventListener("DOMContentLoaded",n))}();const J=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Q(e={}){let{isTextInput:t,autoFocus:n}=e,[r,o]=(0,c.useState)(n||G());return ee((e=>{o(e)}),[t],{isTextInput:t}),{isFocusVisible:r}}function ee(e,t,n){W(),(0,c.useEffect)((()=>{let t=(t,o)=>{(function(e,t,n){var o;const i="undefined"!=typeof window?(0,r.mD)(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,a="undefined"!=typeof window?(0,r.mD)(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s="undefined"!=typeof window?(0,r.mD)(null==n?void 0:n.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?(0,r.mD)(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof i&&!J.has(null==n||null===(o=n.target)||void 0===o?void 0:o.type)||(null==n?void 0:n.target)instanceof a||(null==n?void 0:n.target)instanceof s&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof l&&!B[n.key])})(!!(null==n?void 0:n.isTextInput),t,o)&&e(G())};return O.add(t),()=>{O.delete(t)}}),t)}function te(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:o,onFocusWithinChange:i}=e,a=(0,c.useRef)({isFocusWithin:!1}),s=(0,c.useCallback)((e=>{a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(e),i&&i(!1))}),[n,i,a]),l=T(s),u=(0,c.useCallback)((e=>{a.current.isFocusWithin||(0,r.dw)()!==e.target||(o&&o(e),i&&i(!0),a.current.isFocusWithin=!0,l(e))}),[o,i,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:s}}}let ne=!1,re=0;function oe(){ne=!0,setTimeout((()=>{ne=!1}),50)}function ie(e){"touch"===e.pointerType&&oe()}function ae(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",ie):document.addEventListener("touchend",oe),re++,()=>{re--,re>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",ie):document.removeEventListener("touchend",oe))}}function se(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,a]=(0,c.useState)(!1),s=(0,c.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,c.useEffect)(ae,[]);let{hoverProps:l,triggerHoverEnd:u}=(0,c.useMemo)((()=>{let e=(e,r)=>{if(s.pointerType=r,o||"touch"===r||s.isHovered||!e.currentTarget.contains(e.target))return;s.isHovered=!0;let i=e.currentTarget;s.target=i,t&&t({type:"hoverstart",target:i,pointerType:r}),n&&n(!0),a(!0)},i=(e,t)=>{if(s.pointerType="",s.target=null,"touch"===t||!s.isHovered)return;s.isHovered=!1;let o=e.currentTarget;r&&r({type:"hoverend",target:o,pointerType:t}),n&&n(!1),a(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=t=>{ne&&"mouse"===t.pointerType||e(t,t.pointerType)},l.onPointerLeave=e=>{!o&&e.currentTarget.contains(e.target)&&i(e,e.pointerType)}):(l.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=t=>{s.ignoreEmulatedMouseEvents||ne||e(t,"mouse"),s.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!o&&e.currentTarget.contains(e.target)&&i(e,"mouse")}),{hoverProps:l,triggerHoverEnd:i}}),[t,n,r,o,s]);return(0,c.useEffect)((()=>{o&&u({currentTarget:s.target},s.pointerType)}),[o]),{hoverProps:l,isHovered:i}}function le(e){let{ref:t,onInteractOutside:n,isDisabled:o,onInteractOutsideStart:i}=e,a=(0,c.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=(0,r.Jt)((e=>{n&&ce(e,t)&&(i&&i(e),a.current.isPointerDown=!0)})),l=(0,r.Jt)((e=>{n&&n(e)}));(0,c.useEffect)((()=>{let e=a.current;if(o)return;const n=t.current,i=(0,r.TW)(n);if("undefined"!=typeof PointerEvent){let n=n=>{e.isPointerDown&&ce(n,t)&&l(n),e.isPointerDown=!1};return i.addEventListener("pointerdown",s,!0),i.addEventListener("pointerup",n,!0),()=>{i.removeEventListener("pointerdown",s,!0),i.removeEventListener("pointerup",n,!0)}}{let n=n=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&ce(n,t)&&l(n),e.isPointerDown=!1},r=n=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&ce(n,t)&&l(n),e.isPointerDown=!1};return i.addEventListener("mousedown",s,!0),i.addEventListener("mouseup",n,!0),i.addEventListener("touchstart",s,!0),i.addEventListener("touchend",r,!0),()=>{i.removeEventListener("mousedown",s,!0),i.removeEventListener("mouseup",n,!0),i.removeEventListener("touchstart",s,!0),i.removeEventListener("touchend",r,!0)}}}),[t,o,s,l])}function ce(e,t){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return!1;if(e.target.closest("[data-react-aria-top-layer]"))return!1}return!!t.current&&!e.composedPath().includes(t.current)}function ue(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function de(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:ue(e.onKeyDown),onKeyUp:ue(e.onKeyUp)}}}function pe(e){let{onMoveStart:t,onMove:n,onMoveEnd:o}=e,i=(0,c.useRef)({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:u}=(0,r.A5)(),d=(0,r.Jt)(((e,r,o,a)=>{0===o&&0===a||(i.current.didMove||(i.current.didMove=!0,null==t||t({type:"movestart",pointerType:r,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),null==n||n({type:"move",pointerType:r,deltaX:o,deltaY:a,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))})),p=(0,r.Jt)(((e,t)=>{l(),i.current.didMove&&(null==o||o({type:"moveend",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))}));return{moveProps:(0,c.useMemo)((()=>{let e={},t=()=>{s(),i.current.didMove=!1};if("undefined"==typeof PointerEvent){let n=e=>{var t,n,r,o;0===e.button&&(d(e,"mouse",e.pageX-(null!==(r=null===(t=i.current.lastPosition)||void 0===t?void 0:t.pageX)&&void 0!==r?r:0),e.pageY-(null!==(o=null===(n=i.current.lastPosition)||void 0===n?void 0:n.pageY)&&void 0!==o?o:0)),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY})},r=e=>{0===e.button&&(p(e,"mouse"),u(window,"mousemove",n,!1),u(window,"mouseup",r,!1))};e.onMouseDown=e=>{0===e.button&&(t(),e.stopPropagation(),e.preventDefault(),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY},a(window,"mousemove",n,!1),a(window,"mouseup",r,!1))};let o=e=>{let t=[...e.changedTouches].findIndex((({identifier:e})=>e===i.current.id));if(t>=0){var n,r;let{pageX:s,pageY:l}=e.changedTouches[t];var o,a;d(e,"touch",s-(null!==(o=null===(n=i.current.lastPosition)||void 0===n?void 0:n.pageX)&&void 0!==o?o:0),l-(null!==(a=null===(r=i.current.lastPosition)||void 0===r?void 0:r.pageY)&&void 0!==a?a:0)),i.current.lastPosition={pageX:s,pageY:l}}},s=e=>{[...e.changedTouches].findIndex((({identifier:e})=>e===i.current.id))>=0&&(p(e,"touch"),i.current.id=null,u(window,"touchmove",o),u(window,"touchend",s),u(window,"touchcancel",s))};e.onTouchStart=e=>{if(0===e.changedTouches.length||null!=i.current.id)return;let{pageX:n,pageY:r,identifier:l}=e.changedTouches[0];t(),e.stopPropagation(),e.preventDefault(),i.current.lastPosition={pageX:n,pageY:r},i.current.id=l,a(window,"touchmove",o,!1),a(window,"touchend",s,!1),a(window,"touchcancel",s,!1)}}else{let n=e=>{if(e.pointerId===i.current.id){var t,n;let a=e.pointerType||"mouse";var r,o;d(e,a,e.pageX-(null!==(r=null===(t=i.current.lastPosition)||void 0===t?void 0:t.pageX)&&void 0!==r?r:0),e.pageY-(null!==(o=null===(n=i.current.lastPosition)||void 0===n?void 0:n.pageY)&&void 0!==o?o:0)),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}},r=e=>{if(e.pointerId===i.current.id){let t=e.pointerType||"mouse";p(e,t),i.current.id=null,u(window,"pointermove",n,!1),u(window,"pointerup",r,!1),u(window,"pointercancel",r,!1)}};e.onPointerDown=e=>{0===e.button&&null==i.current.id&&(t(),e.stopPropagation(),e.preventDefault(),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY},i.current.id=e.pointerId,a(window,"pointermove",n,!1),a(window,"pointerup",r,!1),a(window,"pointercancel",r,!1))}}let n=(e,n,r)=>{t(),d(e,"keyboard",n,r),p(e,"keyboard")};return e.onKeyDown=e=>{switch(e.key){case"Left":case"ArrowLeft":e.preventDefault(),e.stopPropagation(),n(e,-1,0);break;case"Right":case"ArrowRight":e.preventDefault(),e.stopPropagation(),n(e,1,0);break;case"Up":case"ArrowUp":e.preventDefault(),e.stopPropagation(),n(e,0,-1);break;case"Down":case"ArrowDown":e.preventDefault(),e.stopPropagation(),n(e,0,1)}},e}),[i,a,u,d,p])}}function he(e,t){let{onScroll:n,isDisabled:o}=e,i=(0,c.useCallback)((e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))}),[n]);(0,r._q)(t,"wheel",o?void 0:i)}const fe=500;function me(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:o,onLongPress:i,threshold:a=fe,accessibilityDescription:s}=e;const l=(0,c.useRef)(void 0);let{addGlobalListener:u,removeGlobalListener:d}=(0,r.A5)(),{pressProps:p}=v({isDisabled:t,onPressStart(e){if(e.continuePropagation(),("mouse"===e.pointerType||"touch"===e.pointerType)&&(n&&n({...e,type:"longpressstart"}),l.current=setTimeout((()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...e,type:"longpress"}),l.current=void 0}),a),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};u(e.target,"contextmenu",t,{once:!0}),u(window,"pointerup",(()=>{setTimeout((()=>{d(e.target,"contextmenu",t)}),30)}),{once:!0})}},onPressEnd(e){l.current&&clearTimeout(l.current),!o||"mouse"!==e.pointerType&&"touch"!==e.pointerType||o({...e,type:"longpressend"})}}),h=(0,r.I8)(i&&!t?s:void 0);return{longPressProps:(0,r.v6)(p,h)}}},2973:(e,t,n)=>{"use strict";n.d(t,{M:()=>i,t:()=>o});var r=n(86025);function o(e){let{id:t,label:n,"aria-labelledby":o,"aria-label":i,labelElementType:a="label"}=e;t=(0,r.Bi)(t);let s=(0,r.Bi)(),l={};return n?(o=o?`${s} ${o}`:s,l={id:s,htmlFor:"label"===a?t:void 0}):o||i||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:l,fieldProps:(0,r.b0)({id:t,"aria-label":i,"aria-labelledby":o})}}function i(e){let{description:t,errorMessage:n,isInvalid:i,validationState:a}=e,{labelProps:s,fieldProps:l}=o(e),c=(0,r.X1)([Boolean(t),Boolean(n),i,a]),u=(0,r.X1)([Boolean(t),Boolean(n),i,a]);return l=(0,r.v6)(l,{"aria-describedby":[c,u,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:l,descriptionProps:{id:c},errorMessageProps:{id:u}}}},79677:(e,t,n)=>{"use strict";var r=n(96540);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),a((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},13552:(e,t,n)=>{"use strict";e.exports=n(79677)},42116:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var r=n(86025),o=n(74373),i=n(37555);function a(e,t){let{elementType:n="a",onPress:a,onPressStart:s,onPressEnd:l,onClick:c,isDisabled:u,...d}=e,p={};"a"!==n&&(p={role:"link",tabIndex:u?void 0:0});let{focusableProps:h}=(0,o.Wc)(e,t),{pressProps:f,isPressed:m}=(0,i.dD)({onPress:a,onPressStart:s,onPressEnd:l,isDisabled:u,ref:t}),g=(0,r.$X)(d,{labelable:!0}),v=(0,r.v6)(h,f),y=(0,r.rd)(),b=(0,r._h)(e);return{isPressed:m,linkProps:(0,r.v6)(g,b,{...v,...p,"aria-disabled":u||void 0,"aria-current":e["aria-current"],onClick:t=>{var n;null===(n=f.onClick)||void 0===n||n.call(f,t),c&&(c(t),console.warn("onClick is deprecated, please use onPress")),!y.isNative&&t.currentTarget instanceof HTMLAnchorElement&&t.currentTarget.href&&!t.isDefaultPrevented()&&(0,r.sU)(t.currentTarget,t)&&e.href&&(t.preventDefault(),y.open(t.currentTarget,t,e.href,e.routerOptions))}})}}},68116:(e,t,n)=>{"use strict";n.d(t,{HP:()=>o,bB:()=>r,Xv:()=>c,u4:()=>p,xW:()=>d});const r=new WeakMap;function o(e,t){let n=r.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${o=t,"string"==typeof o?o.replace(/\s*/g,""):""+o}`;var o}var i=n(86025),a=n(37555),s=n(2973),l=n(38783);function c(e,t,n){let o=(0,i.$X)(e,{labelable:!0}),c=e.selectionBehavior||"toggle",u=e.linkBehavior||("replace"===c?"action":"override");"toggle"===c&&"action"===u&&(u="override");let{listProps:d}=(0,l.yI)({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:u}),{focusWithinProps:p}=(0,a.Rb)({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),h=(0,i.Bi)(e.id);r.set(t,{id:h,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:u});let{labelProps:f,fieldProps:m}=(0,s.t)({...e,id:h,labelElementType:"span"});return{labelProps:f,listBoxProps:(0,i.v6)(o,p,"multiple"===t.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},{role:"listbox",...(0,i.v6)(m,d)})}}var u=n(72114);function d(e,t,n){var s,c;let{key:d}=e,p=r.get(t);var h;let f=null!==(h=e.isDisabled)&&void 0!==h?h:t.selectionManager.isDisabled(d);var m;let g=null!==(m=e.isSelected)&&void 0!==m?m:t.selectionManager.isSelected(d);var v;let y=null!==(v=e.shouldSelectOnPressUp)&&void 0!==v?v:null==p?void 0:p.shouldSelectOnPressUp;var b;let w=null!==(b=e.shouldFocusOnHover)&&void 0!==b?b:null==p?void 0:p.shouldFocusOnHover;var x;let S=null!==(x=e.shouldUseVirtualFocus)&&void 0!==x?x:null==p?void 0:p.shouldUseVirtualFocus;var _;let C=null!==(_=e.isVirtualized)&&void 0!==_?_:null==p?void 0:p.isVirtualized,E=(0,i.X1)(),k=(0,i.X1)(),z={role:"option","aria-disabled":f||void 0,"aria-selected":"none"!==t.selectionManager.selectionMode?g:void 0};(0,i.cX)()&&(0,i.Tc)()||(z["aria-label"]=e["aria-label"],z["aria-labelledby"]=E,z["aria-describedby"]=k);let P=t.collection.getItem(d);if(C){let e=Number(null==P?void 0:P.index);z["aria-posinset"]=Number.isNaN(e)?void 0:e+1,z["aria-setsize"]=(0,u.vS)(t.collection)}let A=(null==p?void 0:p.onAction)?()=>{var e;return null==p||null===(e=p.onAction)||void 0===e?void 0:e.call(p,d)}:void 0,{itemProps:D,isPressed:T,isFocused:I,hasAction:M,allowsSelection:N}=(0,l.pB)({selectionManager:t.selectionManager,key:d,ref:n,shouldSelectOnPressUp:y,allowsDifferentPressOrigin:y&&w,isVirtualized:C,shouldUseVirtualFocus:S,isDisabled:f,onAction:A||(null==P||null===(s=P.props)||void 0===s?void 0:s.onAction)?(0,i.cy)(null==P||null===(c=P.props)||void 0===c?void 0:c.onAction,A):void 0,linkBehavior:null==p?void 0:p.linkBehavior}),{hoverProps:O}=(0,a.Mk)({isDisabled:f||!w,onHoverStart(){(0,a.pP)()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(d))}}),R=(0,i.$X)(null==P?void 0:P.props);delete R.id;let j=(0,i._h)(null==P?void 0:P.props);return{optionProps:{...z,...(0,i.v6)(R,D,O,j),id:o(t,d)},labelProps:{id:E},descriptionProps:{id:k},isFocused:I,isFocusVisible:I&&(0,a.pP)(),isSelected:g,isDisabled:f,isPressed:T,allowsSelection:N,hasAction:M}}function p(e){let{heading:t,"aria-label":n}=e,r=(0,i.Bi)();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}},72317:(e,t,n)=>{"use strict";n.d(t,{iP:()=>i,pA:()=>a});const r=7e3;let o=null;function i(e,t="assertive",n=r){o||(o=new s),o.announce(e,t,n)}function a(e){o&&o.clear(e)}class s{createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",n=r){if(!this.node)return;let o=document.createElement("div");o.textContent=e,"assertive"===t?this.assertiveLog.appendChild(o):this.politeLog.appendChild(o),""!==e&&setTimeout((()=>{o.remove()}),n)}clear(e){this.node&&(e&&"assertive"!==e||(this.assertiveLog.innerHTML=""),e&&"polite"!==e||(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}},43773:(e,t,n)=>{"use strict";n.d(t,{b:()=>d,Os:()=>h,y7:()=>f,Vi:()=>l});var r={};r={"ar-AE":{longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"},"bg-BG":{longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"},"cs-CZ":{longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"},"da-DK":{longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"},"de-DE":{longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"},"el-GR":{longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"},"en-US":{longPressMessage:"Long press or press Alt + ArrowDown to open menu"},"es-ES":{longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"},"et-EE":{longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"},"fi-FI":{longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"},"fr-FR":{longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."},"he-IL":{longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"},"hr-HR":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"},"hu-HU":{longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"},"it-IT":{longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"},"ja-JP":{longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"},"ko-KR":{longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"},"lt-LT":{longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."},"lv-LV":{longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"},"nb-NO":{longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"},"nl-NL":{longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"},"pl-PL":{longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"},"pt-BR":{longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"},"pt-PT":{longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"},"ro-RO":{longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"},"ru-RU":{longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"},"sk-SK":{longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"},"sl-SI":{longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"},"sr-SP":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"},"sv-SE":{longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"},"tr-TR":{longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"},"uk-UA":{longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"},"zh-CN":{longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"},"zh-TW":{longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"}};var o=n(86025),i=n(20381),a=n(37555),s=n(76423);function l(e,t,n){let{type:l="menu",isDisabled:c,trigger:u="press"}=e,d=(0,o.Bi)(),{triggerProps:p,overlayProps:h}=(0,s.oJ)({type:l},t,n),f=(0,i.oe)((m=r)&&m.__esModule?m.default:m,"@react-aria/menu");var m;let{longPressProps:g}=(0,a.HZ)({isDisabled:c||"longPress"!==u,accessibilityDescription:f.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),v={onPressStart(e){"touch"===e.pointerType||"keyboard"===e.pointerType||c||t.open("virtual"===e.pointerType?"first":null)},onPress(e){"touch"!==e.pointerType||c||t.toggle()}};return delete p.onPress,{menuTriggerProps:{...p,..."press"===u?v:g,id:d,onKeyDown:e=>{if(!c&&("longPress"!==u||e.altKey)&&n&&n.current)switch(e.key){case"Enter":case" ":if("longPress"===u)return;case"ArrowDown":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("last");break;default:"continuePropagation"in e&&e.continuePropagation()}}},menuProps:{...h,"aria-labelledby":d,autoFocus:t.focusStrategy||!0,onClose:t.close}}}var c=n(38783);const u=new WeakMap;function d(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:a,...s}=e;e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let l=(0,o.$X)(e,{labelable:!0}),{listProps:d}=(0,c.yI)({...s,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return u.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:(0,o.v6)(l,{onKeyDown:i,onKeyUp:a},{role:"menu",...d,onKeyDown:e=>{"Escape"!==e.key&&d.onKeyDown(e)}})}}var p=n(72114);function h(e,t,n){let{id:r,key:i,closeOnSelect:s,isVirtualized:l,"aria-haspopup":d,onPressStart:h,onPressUp:f,onPress:m,onPressChange:g,onPressEnd:v,onHoverStart:y,onHoverChange:b,onHoverEnd:w,onKeyDown:x,onKeyUp:S,onFocus:_,onFocusChange:C,onBlur:E}=e,k=!!d;var z;let P=null!==(z=e.isDisabled)&&void 0!==z?z:t.selectionManager.isDisabled(i);var A;let D=null!==(A=e.isSelected)&&void 0!==A?A:t.selectionManager.isSelected(i),T=u.get(t),I=t.collection.getItem(i),M=e.onClose||T.onClose,N=(0,o.rd)(),O=e=>{var t;if(!k){if((null==I||null===(t=I.props)||void 0===t?void 0:t.onAction)&&I.props.onAction(),T.onAction){(0,T.onAction)(i)}e.target instanceof HTMLAnchorElement&&N.open(e.target,e,I.props.href,I.props.routerOptions)}},R="menuitem";k||("single"===t.selectionManager.selectionMode?R="menuitemradio":"multiple"===t.selectionManager.selectionMode&&(R="menuitemcheckbox"));let j=(0,o.X1)(),F=(0,o.X1)(),B=(0,o.X1)(),L={id:r,"aria-disabled":P||void 0,role:R,"aria-label":e["aria-label"],"aria-labelledby":j,"aria-describedby":[F,B].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":d,"aria-expanded":e["aria-expanded"]};"none"===t.selectionManager.selectionMode||k||(L["aria-checked"]=D),l&&(L["aria-posinset"]=null==I?void 0:I.index,L["aria-setsize"]=(0,p.vS)(t.collection));let{itemProps:V,isFocused:K}=(0,c.pB)({selectionManager:t.selectionManager,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:H,isPressed:$}=(0,a.dD)({onPressStart:e=>{"keyboard"===e.pointerType&&O(e),null==h||h(e)},onPress:m,onPressUp:e=>{"keyboard"!==e.pointerType&&(O(e),!k&&M&&(null!=s?s:"multiple"!==t.selectionManager.selectionMode||t.selectionManager.isLink(i))&&M()),null==f||f(e)},onPressChange:g,onPressEnd:v,isDisabled:P}),{hoverProps:U}=(0,a.Mk)({isDisabled:P,onHoverStart(e){(0,a.pP)()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(i)),null==y||y(e)},onHoverChange:b,onHoverEnd:w}),{keyboardProps:W}=(0,a.de)({onKeyDown:e=>{if(e.repeat)e.continuePropagation();else switch(e.key){case" ":P||"none"!==t.selectionManager.selectionMode||k||!1===s||!M||M();break;case"Enter":P||!1===s||k||!M||M();break;default:k||e.continuePropagation(),null==x||x(e)}},onKeyUp:S}),{focusProps:q}=(0,a.iQ)({onBlur:E,onFocus:_,onFocusChange:C}),G=(0,o.$X)(I.props);delete G.id;let Z=(0,o._h)(I.props);return{menuItemProps:{...L,...(0,o.v6)(G,Z,k?{onFocus:V.onFocus,"data-key":V["data-key"]}:V,H,U,W,q),tabIndex:null!=V.tabIndex?-1:void 0},labelProps:{id:j},descriptionProps:{id:F},keyboardShortcutProps:{id:B},isFocused:K,isSelected:D,isPressed:$,isDisabled:P}}function f(e){let{heading:t,"aria-label":n}=e,r=(0,o.Bi)();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}n(96540);Math.PI},44784:(e,t,n)=>{"use strict";n(2078)},35934:(e,t,n)=>{"use strict";n.d(t,{v:()=>d});var r={};r={"ar-AE":{decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"},"bg-BG":{decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"},"cs-CZ":{decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"},"da-DK":{decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"},"de-DE":{decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"},"el-GR":{decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"},"en-US":{decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"},"es-ES":{decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"},"et-EE":{decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"},"fi-FI":{decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"},"fr-FR":{decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"},"he-IL":{decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"},"hr-HR":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"},"hu-HU":{decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"},"it-IT":{decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"},"ja-JP":{decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"},"ko-KR":{decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"},"lt-LT":{decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"},"lv-LV":{decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"},"nb-NO":{decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"},"nl-NL":{decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"},"pl-PL":{decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"},"pt-BR":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"},"pt-PT":{decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"},"ro-RO":{decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"},"ru-RU":{decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"},"sk-SK":{decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"},"sl-SI":{decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"},"sr-SP":{decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"},"sv-SE":{decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"},"tr-TR":{decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"},"uk-UA":{decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"},"zh-CN":{decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"},"zh-TW":{decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"}};var o=n(86025),i=n(96540),a=n(32144),s=n(37555),l=n(99008),c=n(20381),u=n(63792);function d(e,t,n){let{id:d,decrementAriaLabel:p,incrementAriaLabel:h,isDisabled:f,isReadOnly:m,isRequired:g,minValue:v,maxValue:y,autoFocus:b,label:w,formatOptions:x,onBlur:S=()=>{},onFocus:_,onFocusChange:C,onKeyDown:E,onKeyUp:k,description:z,errorMessage:P,isWheelDisabled:A,...D}=e,{increment:T,incrementToMax:I,decrement:M,decrementToMin:N,numberValue:O,inputValue:R,commit:j,commitValidation:F}=t;const B=(0,c.oe)((L=r)&&L.__esModule?L.default:L,"@react-aria/numberfield");var L;let V=(0,o.Bi)(d),{focusProps:K}=(0,s.iQ)({onBlur(){j()}}),H=(0,c.JY)(x),$=(0,i.useMemo)((()=>H.resolvedOptions()),[H]),U=(0,c.JY)({...x,currencySign:void 0}),W=(0,i.useMemo)((()=>isNaN(O)?"":U.format(O)),[U,O]),{spinButtonProps:q,incrementButtonProps:G,decrementButtonProps:Z}=(0,u.y)({isDisabled:f,isReadOnly:m,isRequired:g,maxValue:y,minValue:v,onIncrement:T,onIncrementToMax:I,onDecrement:M,onDecrementToMin:N,value:O,textValue:W}),[Y,X]=(0,i.useState)(!1),{focusWithinProps:J}=(0,s.Rb)({isDisabled:f,onFocusWithinChange:X}),Q=(0,i.useCallback)((e=>{Math.abs(e.deltaY)<=Math.abs(e.deltaX)||(e.deltaY>0?T():e.deltaY<0&&M())}),[M,T]),ee=A||f||m||!Y;var te;(0,s.Q7)({onScroll:Q,isDisabled:ee},n);let ne=(null!==(te=$.maximumFractionDigits)&&void 0!==te?te:0)>0,re=void 0===t.minValue||isNaN(t.minValue)||t.minValue<0,oe="numeric";(0,o.mU)()?re?oe="text":ne&&(oe="decimal"):(0,o.m0)()&&(re?oe="numeric":ne&&(oe="decimal"));let ie=(0,o.$X)(e),ae=(0,i.useCallback)((e=>{"Enter"===e.key?(j(),F()):e.continuePropagation()}),[j,F]),{isInvalid:se,validationErrors:le,validationDetails:ce}=t.displayValidation,{labelProps:ue,inputProps:de,descriptionProps:pe,errorMessageProps:he}=(0,l.r)({...D,...ie,name:void 0,label:w,autoFocus:b,isDisabled:f,isReadOnly:m,isRequired:g,validate:void 0,[a.Lf]:t,value:R,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:V,type:"text",inputMode:oe,onChange:e=>{t.validate(e)&&t.setInputValue(e)},onBlur:S,onFocus:_,onFocusChange:C,onKeyDown:(0,i.useMemo)((()=>(0,o.cy)(ae,E)),[ae,E]),onKeyUp:k,description:z,errorMessage:P},t,n);(0,o.FO)(n,t.numberValue,t.setNumberValue);let fe=(0,o.v6)(q,K,de,{role:null,"aria-roledescription":(0,o.un)()?null:B.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});"native"===e.validationBehavior&&(fe["aria-required"]=void 0);let me,ge=e=>{var t;document.activeElement!==n.current&&("mouse"===e.pointerType?null===(t=n.current)||void 0===t||t.focus():e.target.focus())},ve=e["aria-label"]||("string"==typeof e.label?e.label:"");ve||(me=null!=e.label?ue.id:e["aria-labelledby"]);let ye=(0,o.Bi)(),be=(0,o.Bi)();return{groupProps:{...J,role:"group","aria-disabled":f,"aria-invalid":se?"true":void 0},labelProps:ue,inputProps:fe,incrementButtonProps:(0,o.v6)(G,{"aria-label":h||B.format("increase",{fieldLabel:ve}).trim(),id:me&&!h?ye:null,"aria-labelledby":me&&!h?`${ye} ${me}`:null,"aria-controls":V,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:ge}),decrementButtonProps:(0,o.v6)(Z,{"aria-label":p||B.format("decrease",{fieldLabel:ve}).trim(),id:me&&!p?be:null,"aria-labelledby":me&&!p?`${be} ${me}`:null,"aria-controls":V,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:ge}),errorMessageProps:he,descriptionProps:pe,isInvalid:se,validationErrors:le,validationDetails:ce}}},76423:(e,t,n)=>{"use strict";n.d(t,{Rz:()=>W,hJ:()=>te,hD:()=>Y,ln:()=>re,Se:()=>ne,v8:()=>k,oJ:()=>I,fP:()=>X});var r=n(86025);const o={top:"top",bottom:"top",left:"left",right:"left"},i={top:"bottom",bottom:"top",left:"right",right:"left"},a={top:"left",left:"top"},s={top:"height",left:"width"},l={width:"totalWidth",height:"totalHeight"},c={};let u="undefined"!=typeof document&&window.visualViewport;function d(e){let t=0,n=0,o=0,i=0,a=0,s=0,l={},c=(null==u?void 0:u.scale)>1;if("BODY"===e.tagName){let r=document.documentElement;var d,p;o=r.clientWidth,i=r.clientHeight,t=null!==(d=null==u?void 0:u.width)&&void 0!==d?d:o,n=null!==(p=null==u?void 0:u.height)&&void 0!==p?p:i,l.top=r.scrollTop||e.scrollTop,l.left=r.scrollLeft||e.scrollLeft,u&&(a=u.offsetTop,s=u.offsetLeft)}else({width:t,height:n,top:a,left:s}=y(e)),l.top=e.scrollTop,l.left=e.scrollLeft,o=t,i=n;return(0,r.Tc)()&&("BODY"===e.tagName||"HTML"===e.tagName)&&c&&(l.top=0,l.left=0,a=u.pageTop,s=u.pageLeft),{width:t,height:n,totalWidth:o,totalHeight:i,scroll:l,top:a,left:s}}function p(e,t,n,r,i,a,l){let c=i.scroll[e],u=r[s[e]],d=r.scroll[o[e]]+a,p=u+r.scroll[o[e]]-a,h=t-c+l[e]-r[o[e]],f=t-c+n+l[e]-r[o[e]];return h<d?d-h:f>p?Math.max(p-f,d-h):0}function h(e){if(c[e])return c[e];let[t,n]=e.split(" "),r=o[t]||"right",i=a[r];o[n]||(n="center");let l=s[r],u=s[i];return c[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:l,crossSize:u},c[e]}function f(e,t,n,o,a,s,c,u,d,p){let{placement:h,crossPlacement:f,axis:m,crossAxis:g,size:v,crossSize:y}=o,b={};b[g]=e[g],"center"===f?b[g]+=(e[y]-n[y])/2:f!==g&&(b[g]+=e[y]-n[y]),b[g]+=s;const w=e[g]-n[y]+d+p,x=e[g]+e[y]-d-p;if(b[g]=(0,r.qE)(b[g],w,x),h===m){const n=u?c[v]:t[l[v]];b[i[m]]=Math.floor(n-e[m]+a)}else b[m]=Math.floor(e[m]+e[v]+a);return b}function m(e,t,n,r,o,a){let{placement:s,axis:l,size:c}=a;return s===l?Math.max(0,n[l]-e[l]-e.scroll[l]+t[l]-r[l]-r[i[l]]-o):Math.max(0,e[c]+e[l]+e.scroll[l]-t[l]-n[l]-n[c]-r[l]-r[i[l]]-o)}function g(e,t,n,o,a,s,c,u,d,g,v,y,b,w,x,S){let _=h(e),{size:C,crossAxis:E,crossSize:k,placement:z,crossPlacement:P}=_,A=f(t,u,n,_,v,y,g,b,x,S),D=v,T=m(u,g,t,a,s+v,_);if(c&&o[C]>T){let e=h(`${i[z]} ${P}`),r=f(t,u,n,e,v,y,g,b,x,S);m(u,g,t,a,s+v,e)>T&&(_=e,A=r,D=v)}let I="bottom";"top"===_.axis?"top"===_.placement?I="top":"bottom"===_.placement&&(I="bottom"):"top"===_.crossAxis&&("top"===_.crossPlacement?I="bottom":"bottom"===_.crossPlacement&&(I="top"));let M=p(E,A[E],n[k],u,d,s,g);A[E]+=M;let N=function(e,t,n,r,o,i,a,s){const c=r?n.height:t[l.height];let u=null!=e.top?n.top+e.top:n.top+(c-e.bottom-a),d="top"!==s?Math.max(0,t.height+t.top+t.scroll.top-u-(o.top+o.bottom+i)):Math.max(0,u+a-(t.top+t.scroll.top)-(o.top+o.bottom+i));return Math.min(t.height-2*i,d)}(A,u,g,b,a,s,n.height,I);w&&w<N&&(N=w),n.height=Math.min(n.height,N),A=f(t,u,n,_,D,y,g,b,x,S),M=p(E,A[E],n[k],u,d,s,g),A[E]+=M;let O={},R=t[E]+.5*t[k]-A[E];const j=x/2+S,F=n[k]-x/2-S,B=t[E]-A[E]+x/2,L=t[E]+t[k]-A[E]-x/2,V=(0,r.qE)(R,B,L);return O[E]=(0,r.qE)(V,j,F),{position:A,maxHeight:N,arrowOffsetLeft:O.left,arrowOffsetTop:O.top,placement:_.placement}}function v(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:s,offset:l,crossOffset:c,maxHeight:u,arrowSize:p=0,arrowBoundaryOffset:h=0}=e,f=r instanceof HTMLElement?function(e){let t=e.offsetParent;t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!w(t)&&(t=document.documentElement);if(null==t)for(t=e.parentElement;t&&!w(t);)t=t.parentElement;return t||document.documentElement}(r):document.documentElement,m=f===document.documentElement;const v=window.getComputedStyle(f).position;let x=!!v&&"static"!==v,S=m?y(n):b(n,f);if(!m){let{marginTop:e,marginLeft:t}=window.getComputedStyle(n);S.top+=parseInt(e,10)||0,S.left+=parseInt(t,10)||0}let _=y(r),C=function(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}(r);_.width+=C.left+C.right,_.height+=C.top+C.bottom;let E={top:(k=o).scrollTop,left:k.scrollLeft,width:k.scrollWidth,height:k.scrollHeight};var k;let z=d(s),P=d(f),A="BODY"===s.tagName?y(f):b(f,s);return"HTML"===f.tagName&&"BODY"===s.tagName&&(P.scroll.top=0,P.scroll.left=0),g(t,S,_,E,C,i,a,z,P,A,l,c,x,u,p,h)}function y(e){let{top:t,left:n,width:r,height:o}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:a,clientTop:s,clientLeft:l}=document.documentElement;return{top:t+i-s,left:n+a-l,width:r,height:o}}function b(e,t){let n,r=window.getComputedStyle(e);if("fixed"===r.position){let{top:t,left:r,width:o,height:i}=e.getBoundingClientRect();n={top:t,left:r,width:o,height:i}}else{n=y(e);let r=y(t),o=window.getComputedStyle(t);r.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,r.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,n.top-=r.top,n.left-=r.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function w(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}var x=n(96540);const S=new WeakMap;function _(e){let{triggerRef:t,isOpen:n,onClose:r}=e;(0,x.useEffect)((()=>{if(!n||null===r)return;let e=e=>{let n=e.target;if(!t.current||n instanceof Node&&!n.contains(t.current))return;let o=r||S.get(t.current);o&&o()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}}),[n,r,t])}var C=n(20381);let E="undefined"!=typeof document&&window.visualViewport;function k(e){let{direction:t}=(0,C.Ym)(),{arrowSize:n=0,targetRef:o,overlayRef:i,scrollRef:a=i,placement:s="bottom",containerPadding:l=12,shouldFlip:c=!0,boundaryElement:u=("undefined"!=typeof document?document.body:null),offset:d=0,crossOffset:p=0,shouldUpdatePosition:h=!0,isOpen:f=!0,onClose:m,maxHeight:g,arrowBoundaryOffset:y=0}=e,[b,w]=(0,x.useState)({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),S=[h,s,i.current,o.current,a.current,l,c,u,d,p,f,t,g,y,n],k=(0,x.useRef)(null==E?void 0:E.scale);(0,x.useEffect)((()=>{f&&(k.current=null==E?void 0:E.scale)}),[f]);let P=(0,x.useCallback)((()=>{if(!(!1!==h&&f&&i.current&&o.current&&a.current&&u))return;if((null==E?void 0:E.scale)!==k.current)return;let e=i.current;var r,m;!g&&i.current&&(e.style.top="0px",e.style.bottom="",e.style.maxHeight=(null!==(m=null===(r=window.visualViewport)||void 0===r?void 0:r.height)&&void 0!==m?m:window.innerHeight)+"px");let b=v({placement:z(s,t),overlayNode:i.current,targetNode:o.current,scrollNode:a.current,padding:l,shouldFlip:c,boundaryElement:u,offset:d,crossOffset:p,maxHeight:g,arrowSize:n,arrowBoundaryOffset:y});e.style.top="",e.style.bottom="",Object.keys(b.position).forEach((t=>e.style[t]=b.position[t]+"px")),e.style.maxHeight=null!=b.maxHeight?b.maxHeight+"px":void 0,w(b)}),S);(0,r.Nf)(P,S),function(e){(0,r.Nf)((()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)})),[e])}(P),(0,r.wY)({ref:i,onResize:P});let A=(0,x.useRef)(!1);(0,r.Nf)((()=>{let e,t=()=>{A.current=!0,clearTimeout(e),e=setTimeout((()=>{A.current=!1}),500),P()},n=()=>{A.current&&t()};return null==E||E.addEventListener("resize",t),null==E||E.addEventListener("scroll",n),()=>{null==E||E.removeEventListener("resize",t),null==E||E.removeEventListener("scroll",n)}}),[P]);let D=(0,x.useCallback)((()=>{A.current||m()}),[m,A]);return _({triggerRef:o,isOpen:f,onClose:m&&D}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...b.position,maxHeight:b.maxHeight}},placement:b.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:b.arrowOffsetLeft,top:b.arrowOffsetTop}},updatePosition:P}}function z(e,t){return"rtl"===t?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}var P=n(74373),A=n(37555);const D=[];function T(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:s}=e;(0,x.useEffect)((()=>(o&&D.push(t),()=>{let e=D.indexOf(t);e>=0&&D.splice(e,1)})),[o,t]);let l=()=>{D[D.length-1]===t&&n&&n()};(0,A.$Z)({ref:t,onInteractOutside:i&&o?e=>{s&&!s(e.target)||(D[D.length-1]===t&&(e.stopPropagation(),e.preventDefault()),l())}:null,onInteractOutsideStart:e=>{s&&!s(e.target)||D[D.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:c}=(0,A.Rb)({isDisabled:!r,onBlurWithin:e=>{e.relatedTarget&&!(0,P.Pu)(e.relatedTarget)&&(s&&!s(e.relatedTarget)||n())}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||a||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),l())},...c},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}function I(e,t,n){let o,{type:i}=e,{isOpen:a}=t;(0,x.useEffect)((()=>{n&&n.current&&S.set(n.current,t.close)})),"menu"===i?o=!0:"listbox"===i&&(o="listbox");let s=(0,r.Bi)();return{triggerProps:{"aria-haspopup":o,"aria-expanded":a,"aria-controls":a?s:null,onPress:t.toggle},overlayProps:{id:s}}}const M="undefined"!=typeof document&&window.visualViewport,N=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let O,R=0;function j(e={}){let{isDisabled:t}=e;(0,r.Nf)((()=>{if(!t)return R++,1===R&&(O=(0,r.un)()?function(){let e,t,n=n=>{e=(0,r.mH)(n.target,!0),e===document.documentElement&&e===document.body||e instanceof HTMLElement&&"auto"===window.getComputedStyle(e).overscrollBehavior&&(t=F(e,"overscrollBehavior","contain"))},o=t=>{e&&e!==document.documentElement&&e!==document.body?e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault():t.preventDefault()},i=e=>{let n=e.target;V(n)&&n!==document.activeElement&&(e.preventDefault(),l(),n.style.transform="translateY(-2000px)",n.focus(),requestAnimationFrame((()=>{n.style.transform=""}))),t&&t()},a=e=>{let t=e.target;V(t)&&(l(),t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",M&&(M.height<window.innerHeight?requestAnimationFrame((()=>{L(t)})):M.addEventListener("resize",(()=>L(t)),{once:!0}))})))},s=null,l=()=>{if(s)return;let e=()=>{window.scrollTo(0,0)},t=window.pageXOffset,n=window.pageYOffset;s=(0,r.cy)(B(window,"scroll",e),F(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),F(document.documentElement,"overflow","hidden"),F(document.body,"marginTop",`-${n}px`),(()=>{window.scrollTo(t,n)})),window.scrollTo(0,0)},c=(0,r.cy)(B(document,"touchstart",n,{passive:!1,capture:!0}),B(document,"touchmove",o,{passive:!1,capture:!0}),B(document,"touchend",i,{passive:!1,capture:!0}),B(document,"focus",a,!0));return()=>{null==t||t(),null==s||s(),c()}}():(0,r.cy)(F(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),F(document.documentElement,"overflow","hidden"))),()=>{R--,0===R&&O()}}),[t])}function F(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function B(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function L(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=(0,r.mH)(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;r>n+e.clientHeight&&(t.scrollTop+=r-n)}e=t.parentElement}}function V(e){return e instanceof HTMLInputElement&&!N.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var K=n(40961),H=n(96411);var $={};$={"ar-AE":{dismiss:"تجاهل"},"bg-BG":{dismiss:"Отхвърляне"},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:"Schließen"},"el-GR":{dismiss:"Απόρριψη"},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:"Lõpeta"},"fi-FI":{dismiss:"Hylkää"},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:"התעלם"},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:"Elutasítás"},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:"閉じる"},"ko-KR":{dismiss:"무시"},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:"Nerādīt"},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:"Пропустить"},"sk-SK":{dismiss:"Zrušiť"},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:"Скасувати"},"zh-CN":{dismiss:"取消"},"zh-TW":{dismiss:"關閉"}};var U=n(46473);function W(e){let{onDismiss:t,...n}=e,o=(0,C.oe)((i=$)&&i.__esModule?i.default:i,"@react-aria/overlays");var i;let a=(0,r.b0)(n,o.format("dismiss"));return x.createElement(U.s,null,x.createElement("button",{...a,tabIndex:-1,onClick:()=>{t&&t()},style:{width:1,height:1}}))}let q=new WeakMap,G=[];function Z(e){var t;return null===(t=e.filter((e=>e.getRootNode()instanceof ShadowRoot)))||void 0===t?void 0:t.map((e=>e.getRootNode()))}function Y(e,t=document.body){let n=new Set(e),r=new Set;const o=Z(e);if(o.length>0){const t=new Map;e.forEach((e=>{const r=e.getRootNode();if(r instanceof ShadowRoot)t.has(r)||t.set(r,[]),t.get(r).push(e);else{let t=e;for(;t&&t!==document.body;)n.add(t),t=t.parentElement}})),t.forEach(((e,t)=>{e.forEach((e=>{n.add(e),e.parentElement&&n.add(e.parentElement);let r=e;for(;r&&r.parentElement&&r.parentElement!==t.host;)n.add(r.parentElement),r=r.parentElement}));let r=t.host;for(;r&&r!==document.body;)n.add(r),r=r.getRootNode()instanceof ShadowRoot?r.getRootNode().host:r.parentElement})),n.add(document.body)}let i=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(t);let t=e=>{if(n.has(e)||r.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of n)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),i=t(e);if(i===NodeFilter.FILTER_ACCEPT&&a(e),i!==NodeFilter.FILTER_REJECT){let e=o.nextNode();for(;null!=e;)a(e),e=o.nextNode()}},a=e=>{var t;let n=null!==(t=q.get(e))&&void 0!==t?t:0;e instanceof Element&&("true"===e.getAttribute("aria-hidden")&&0===n||(0===n&&e.setAttribute("aria-hidden","true"),r.add(e),q.set(e,n+1)))};const s=e=>{let t=e.parentNode;t&&t.childNodes.forEach((t=>{t===e||n.has(t)||r.has(t)||a(t)}))};o.length>0&&e.forEach((e=>{let t=e;for(;t&&t!==document.body;)s(t),t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode})),G.length&&G[G.length-1].disconnect(),i(t);let l=new MutationObserver((e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...n,...r].some((e=>e.contains(t.target)))){for(let e of t.removedNodes)e instanceof Element&&(n.delete(e),r.delete(e));for(let e of t.addedNodes)!(e instanceof HTMLElement||e instanceof SVGElement)||"true"!==e.dataset.liveAnnouncer&&"true"!==e.dataset.reactAriaTopLayer?e instanceof Element&&i(e):n.add(e)}}));o.length>0&&o.forEach((e=>{l.observe(e,{childList:!0,subtree:!0})})),l.observe(t,{childList:!0,subtree:!0});let c={observe(){l.observe(t,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return G.push(c),()=>{l.disconnect(),o.length>0&&o.forEach((()=>{l.disconnect()}));for(let e of r){let t=q.get(e);1===t?(e.removeAttribute("aria-hidden"),q.delete(e)):q.set(e,t-1)}c===G[G.length-1]?(G.pop(),G.length&&G[G.length-1].observe()):G.splice(G.indexOf(c),1)}}function X(e,t){let{triggerRef:n,popoverRef:o,isNonModal:i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:s,...l}=e,{overlayProps:c,underlayProps:u}=T({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:s},o),{overlayProps:d,arrowProps:p,placement:h}=k({...l,targetRef:n,overlayRef:o,isOpen:t.isOpen,onClose:i?t.close:null});return j({isDisabled:i||!t.isOpen}),(0,r.Nf)((()=>{if(t.isOpen&&!i&&o.current)return Y([o.current])}),[i,t.isOpen,o]),{popoverProps:(0,r.v6)(c,d),arrowProps:p,underlayProps:u,placement:h}}const J=(0,x.createContext)({});function Q(){var e;return null!==(e=(0,x.useContext)(J))&&void 0!==e?e:{}}const ee=x.createContext(null);function te(e){let t=(0,H.wR)(),{portalContainer:n=(t?null:document.body),isExiting:r}=e,[o,i]=(0,x.useState)(!1),a=(0,x.useMemo)((()=>({contain:o,setContain:i})),[o,i]),{getContainer:s}=Q();if(!e.portalContainer&&s&&(n=s()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=x.createElement(P.n1,{restoreFocus:!0,contain:o&&!r},l)),l=x.createElement(ee.Provider,{value:a},x.createElement(A.NG,null,l)),K.createPortal(l,n)}function ne(){let e=(0,x.useContext)(ee),t=null==e?void 0:e.setContain;(0,r.Nf)((()=>{null==t||t(!0)}),[t])}function re(e,t,n){let{overlayProps:o,underlayProps:i}=T({...e,isOpen:t.isOpen,onClose:t.close},n);return j({isDisabled:!t.isOpen}),ne(),(0,x.useEffect)((()=>{if(t.isOpen)return Y([n.current])}),[t.isOpen,n]),{modalProps:(0,r.v6)(o),underlayProps:i}}},2078:(e,t,n)=>{"use strict";n.d(t,{E:()=>a});var r=n(86025),o=n(2973),i=n(20381);function a(e){let{value:t=0,minValue:n=0,maxValue:a=100,valueLabel:s,isIndeterminate:l,formatOptions:c={style:"percent"}}=e,u=(0,r.$X)(e,{labelable:!0}),{labelProps:d,fieldProps:p}=(0,o.t)({...e,labelElementType:"span"});t=(0,r.qE)(t,n,a);let h=(t-n)/(a-n),f=(0,i.JY)(c);if(!l&&!s){let e="percent"===c.style?h:t;s=f.format(e)}return{progressBarProps:(0,r.v6)(u,{...p,"aria-valuenow":l?void 0:t,"aria-valuemin":n,"aria-valuemax":a,"aria-valuetext":l?void 0:s,role:"progressbar"}),labelProps:d}}},97015:(e,t,n)=>{"use strict";n.d(t,{z:()=>l,m:()=>d});const r=new WeakMap;var o=n(86025),i=n(74373),a=n(75944),s=n(37555);function l(e,t,n){let{value:l,children:c,"aria-label":u,"aria-labelledby":d}=e;const p=e.isDisabled||t.isDisabled;null!=c||(null!=u||null!=d)||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let h=t.selectedValue===l,{pressProps:f,isPressed:m}=(0,s.dD)({isDisabled:p}),{pressProps:g,isPressed:v}=(0,s.dD)({isDisabled:p,onPress(){t.setSelectedValue(l)}}),{focusableProps:y}=(0,i.Wc)((0,o.v6)(e,{onFocus:()=>t.setLastFocusedValue(l)}),n),b=(0,o.v6)(f,y),w=(0,o.$X)(e,{labelable:!0}),x=-1;null!=t.selectedValue?t.selectedValue===l&&(x=0):t.lastFocusedValue!==l&&null!=t.lastFocusedValue||(x=0),p&&(x=void 0);let{name:S,descriptionId:_,errorMessageId:C,validationBehavior:E}=r.get(t);return(0,o.FO)(n,t.selectedValue,t.setSelectedValue),(0,a.X)({validationBehavior:E},t,n),{labelProps:(0,o.v6)(g,{onClick:e=>e.preventDefault()}),inputProps:(0,o.v6)(w,{...b,type:"radio",name:S,tabIndex:x,disabled:p,required:t.isRequired&&"native"===E,checked:h,value:l,onChange:e=>{e.stopPropagation(),t.setSelectedValue(l)},"aria-describedby":[e["aria-describedby"],t.isInvalid?C:null,_].filter(Boolean).join(" ")||void 0}),isDisabled:p,isSelected:h,isPressed:m||v}}var c=n(2973),u=n(20381);function d(e,t){let{name:n,isReadOnly:a,isRequired:l,isDisabled:d,orientation:p="vertical",validationBehavior:h="aria"}=e,{direction:f}=(0,u.Ym)(),{isInvalid:m,validationErrors:g,validationDetails:v}=t.displayValidation,{labelProps:y,fieldProps:b,descriptionProps:w,errorMessageProps:x}=(0,c.M)({...e,labelElementType:"span",isInvalid:t.isInvalid,errorMessage:e.errorMessage||g}),S=(0,o.$X)(e,{labelable:!0}),{focusWithinProps:_}=(0,s.Rb)({onBlurWithin(n){var r;null===(r=e.onBlur)||void 0===r||r.call(e,n),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),C=(0,o.Bi)(n);return r.set(t,{name:C,descriptionId:w.id,errorMessageId:x.id,validationBehavior:h}),{radioGroupProps:(0,o.v6)(S,{role:"radiogroup",onKeyDown:e=>{let n;switch(e.key){case"ArrowRight":n="rtl"===f&&"vertical"!==p?"prev":"next";break;case"ArrowLeft":n="rtl"===f&&"vertical"!==p?"next":"prev";break;case"ArrowDown":n="next";break;case"ArrowUp":n="prev";break;default:return}e.preventDefault();let r,o=(0,i.N$)(e.currentTarget,{from:e.target});"next"===n?(r=o.nextNode(),r||(o.currentNode=e.currentTarget,r=o.firstChild())):(r=o.previousNode(),r||(o.currentNode=e.currentTarget,r=o.lastChild())),r&&(r.focus(),t.setSelectedValue(r.value))},"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":a||void 0,"aria-required":l||void 0,"aria-disabled":d||void 0,"aria-orientation":p,...b,..._}),labelProps:y,descriptionProps:w,errorMessageProps:x,isInvalid:m,validationErrors:g,validationDetails:v}}},22305:(e,t,n)=>{"use strict";n.d(t,{Q:()=>s});var r={};r={"ar-AE":{"Clear search":"مسح البحث"},"bg-BG":{"Clear search":"Изчистване на търсене"},"cs-CZ":{"Clear search":"Vymazat hledání"},"da-DK":{"Clear search":"Ryd søgning"},"de-DE":{"Clear search":"Suche zurücksetzen"},"el-GR":{"Clear search":"Απαλοιφή αναζήτησης"},"en-US":{"Clear search":"Clear search"},"es-ES":{"Clear search":"Borrar búsqueda"},"et-EE":{"Clear search":"Tühjenda otsing"},"fi-FI":{"Clear search":"Tyhjennä haku"},"fr-FR":{"Clear search":"Effacer la recherche"},"he-IL":{"Clear search":"נקה חיפוש"},"hr-HR":{"Clear search":"Obriši pretragu"},"hu-HU":{"Clear search":"Keresés törlése"},"it-IT":{"Clear search":"Cancella ricerca"},"ja-JP":{"Clear search":"検索をクリア"},"ko-KR":{"Clear search":"검색 지우기"},"lt-LT":{"Clear search":"Išvalyti iešką"},"lv-LV":{"Clear search":"Notīrīt meklēšanu"},"nb-NO":{"Clear search":"Tøm søk"},"nl-NL":{"Clear search":"Zoekactie wissen"},"pl-PL":{"Clear search":"Wyczyść zawartość wyszukiwania"},"pt-BR":{"Clear search":"Limpar pesquisa"},"pt-PT":{"Clear search":"Limpar pesquisa"},"ro-RO":{"Clear search":"Ştergeţi căutarea"},"ru-RU":{"Clear search":"Очистить поиск"},"sk-SK":{"Clear search":"Vymazať vyhľadávanie"},"sl-SI":{"Clear search":"Počisti iskanje"},"sr-SP":{"Clear search":"Obriši pretragu"},"sv-SE":{"Clear search":"Rensa sökning"},"tr-TR":{"Clear search":"Aramayı temizle"},"uk-UA":{"Clear search":"Очистити пошук"},"zh-CN":{"Clear search":"清除搜索"},"zh-TW":{"Clear search":"清除搜尋條件"}};var o=n(86025),i=n(20381),a=n(99008);function s(e,t,n){let s=(0,i.oe)((l=r)&&l.__esModule?l.default:l,"@react-aria/searchfield");var l;let{isDisabled:c,isReadOnly:u,onSubmit:d,onClear:p,type:h="search"}=e,{labelProps:f,inputProps:m,descriptionProps:g,errorMessageProps:v,...y}=(0,a.v)({...e,value:t.value,onChange:t.setValue,onKeyDown:u?e.onKeyDown:(0,o.cy)((e=>{const n=e.key;"Enter"===n&&(c||u)&&e.preventDefault(),c||u||("Enter"===n&&d&&(e.preventDefault(),d(t.value)),"Escape"===n&&(""===t.value?e.continuePropagation():(t.setValue(""),p&&p())))}),e.onKeyDown),type:h},n);return{labelProps:f,inputProps:{...m,defaultValue:void 0},clearButtonProps:{"aria-label":s.format("Clear search"),excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:c||u,onPress:()=>{t.setValue(""),p&&p()},onPressStart:()=>{var e;null===(e=n.current)||void 0===e||e.focus()}},descriptionProps:g,errorMessageProps:v,...y}}},12224:(e,t,n)=>{"use strict";n.d(t,{HJ:()=>f,WM:()=>d});var r=n(86025),o=n(96540),i=n(38783),a=n(37555),s=n(20381),l=n(2973),c=n(43773);const u=new WeakMap;function d(e,t,n){let{keyboardDelegate:d,isDisabled:p,isRequired:h,name:f,validationBehavior:m="aria"}=e,g=(0,s.QM)({usage:"search",sensitivity:"base"}),v=(0,o.useMemo)((()=>d||new(0,i.nW)(t.collection,t.disabledKeys,null,g)),[d,t.collection,t.disabledKeys,g]),{menuTriggerProps:y,menuProps:b}=(0,c.Vi)({isDisabled:p,type:"listbox"},t,n),{typeSelectProps:w}=(0,i.Ih)({keyboardDelegate:v,selectionManager:t.selectionManager,onTypeSelect(e){t.setSelectedKey(e)}}),{isInvalid:x,validationErrors:S,validationDetails:_}=t.displayValidation,{labelProps:C,fieldProps:E,descriptionProps:k,errorMessageProps:z}=(0,l.M)({...e,labelElementType:"span",isInvalid:x,errorMessage:e.errorMessage||S});w.onKeyDown=w.onKeyDownCapture,delete w.onKeyDownCapture;let P=(0,r.$X)(e,{labelable:!0}),A=(0,r.v6)(w,y,E),D=(0,r.Bi)();return u.set(t,{isDisabled:p,isRequired:h,name:f,validationBehavior:m}),{labelProps:{...C,onClick:()=>{e.isDisabled||(n.current.focus(),(0,a.Cl)("keyboard"))}},triggerProps:(0,r.v6)(P,{...A,isDisabled:p,onKeyDown:(0,r.cy)(A.onKeyDown,(e=>{switch(e.key){case"ArrowLeft":{e.preventDefault();let n=null!=t.selectedKey?v.getKeyAbove(t.selectedKey):v.getFirstKey();n&&t.setSelectedKey(n);break}case"ArrowRight":{e.preventDefault();let n=null!=t.selectedKey?v.getKeyBelow(t.selectedKey):v.getFirstKey();n&&t.setSelectedKey(n);break}}}),e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[D,A["aria-labelledby"],A["aria-label"]&&!A["aria-labelledby"]?A.id:null].filter(Boolean).join(" "),onFocus(n){t.isFocused||(e.onFocus&&e.onFocus(n),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(n){t.isOpen||(e.onBlur&&e.onBlur(n),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:D},menuProps:{...b,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:n=>{n.currentTarget.contains(n.relatedTarget)||(e.onBlur&&e.onBlur(n),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[E["aria-labelledby"],A["aria-label"]&&!E["aria-labelledby"]?A.id:null].filter(Boolean).join(" ")},descriptionProps:k,errorMessageProps:z,isInvalid:x,validationErrors:S,validationDetails:_}}var p=n(75944),h=n(46473);function f(e){let{state:t,triggerRef:n,label:i,name:s,isDisabled:l}=e,c=(0,o.useRef)(null),{containerProps:d,inputProps:f,selectProps:m}=function(e,t,n){let o=u.get(t)||{},{autoComplete:i,name:s=o.name,isDisabled:l=o.isDisabled}=e,{validationBehavior:c,isRequired:d}=o,f=(0,a.lb)(),{visuallyHiddenProps:m}=(0,h.B)();var g;return(0,r.FO)(e.selectRef,t.selectedKey,t.setSelectedKey),(0,p.X)({validationBehavior:c,focus:()=>n.current.focus()},t,e.selectRef),{containerProps:{...m,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{type:"text",tabIndex:null==f||t.isFocused||t.isOpen?-1:0,style:{fontSize:16},onFocus:()=>n.current.focus(),disabled:l},selectProps:{tabIndex:-1,autoComplete:i,disabled:l,required:"native"===c&&d,name:s,value:null!==(g=t.selectedKey)&&void 0!==g?g:"",onChange:e=>t.setSelectedKey(e.target.value)}}}({...e,selectRef:c},t,n);var g;return t.collection.size<=300?o.createElement("div",{...d,"data-testid":"hidden-select-container"},o.createElement("input",f),o.createElement("label",null,i,o.createElement("select",{...m,ref:c},o.createElement("option",null),[...t.collection.getKeys()].map((e=>{let n=t.collection.getItem(e);if("item"===n.type)return o.createElement("option",{key:n.key,value:n.key},n.textValue)}))))):s?o.createElement("input",{type:"hidden",autoComplete:m.autoComplete,name:s,disabled:l,value:null!==(g=t.selectedKey)&&void 0!==g?g:""}):null}},38783:(e,t,n)=>{"use strict";n.d(t,{nW:()=>y,y:()=>h,pB:()=>f,yI:()=>b,Ih:()=>l});var r=n(86025);function o(e){return(0,r.lg)()?e.altKey:e.ctrlKey}function i(e){return(0,r.cX)()?e.metaKey:e.ctrlKey}var a=n(96540);const s=1e3;function l(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=(0,a.useRef)({search:"",timeout:null}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let i=function(e){return 1!==e.length&&/^[A-Z]/i.test(e)?"":e}(e.key);if(!i||e.ctrlKey||e.metaKey||!e.currentTarget.contains(e.target))return;" "===i&&o.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),o.search+=i;let a=t.getKeyForSearch(o.search,n.focusedKey);null==a&&(a=t.getKeyForSearch(o.search)),null!=a&&(n.setFocusedKey(a),r&&r(a)),clearTimeout(o.timeout),o.timeout=setTimeout((()=>{o.search=""}),s)}:null}}}var c=n(40961),u=n(74373),d=n(37555),p=n(20381);function h(e){let{selectionManager:t,keyboardDelegate:n,ref:s,autoFocus:h=!1,shouldFocusWrap:f=!1,disallowEmptySelection:m=!1,disallowSelectAll:g=!1,selectOnFocus:v="replace"===t.selectionBehavior,disallowTypeAhead:y=!1,shouldUseVirtualFocus:b,allowsTabNavigation:w=!1,isVirtualized:x,scrollRef:S=s,linkBehavior:_="action"}=e,{direction:C}=(0,p.Ym)(),E=(0,r.rd)(),k=(0,a.useRef)({top:0,left:0});(0,r._q)(S,"scroll",x?null:()=>{k.current={top:S.current.scrollTop,left:S.current.scrollLeft}});const z=(0,a.useRef)(h);(0,a.useEffect)((()=>{if(z.current){let e=null;"first"===h&&(e=n.getFirstKey()),"last"===h&&(e=n.getLastKey());let r=t.selectedKeys;if(r.size)for(let n of r)if(t.canSelectItem(n)){e=n;break}t.setFocused(!0),t.setFocusedKey(e),null!=e||b||(0,u.lY)(s.current)}}),[]);let P=(0,a.useRef)(t.focusedKey);(0,a.useEffect)((()=>{if(t.isFocused&&null!=t.focusedKey&&(t.focusedKey!==P.current||z.current)&&(null==S?void 0:S.current)){let e=(0,d.ME)(),n=s.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!n)return;("keyboard"===e||z.current)&&((0,r.Rt)(S.current,n),"virtual"!==e&&(0,r.op)(n,{containingElement:s.current}))}t.isFocused&&null==t.focusedKey&&null!=P.current&&(0,u.lY)(s.current),P.current=t.focusedKey,z.current=!1})),(0,r._q)(s,"react-aria-focus-scope-restore",(e=>{e.preventDefault(),t.setFocused(!0)}));let A,D={onKeyDown:e=>{if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!s.current.contains(e.target))return;const a=(n,r)=>{if(null!=n){if(t.isLink(n)&&"selection"===_&&v&&!o(e)){(0,c.flushSync)((()=>{t.setFocusedKey(n,r)}));let o=S.current.querySelector(`[data-key="${CSS.escape(n.toString())}"]`),i=t.getItemProps(n);return void E.open(o,e,i.href,i.routerOptions)}if(t.setFocusedKey(n,r),t.isLink(n)&&"override"===_)return;e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(n):v&&!o(e)&&t.replaceSelection(n)}};switch(e.key){case"ArrowDown":if(n.getKeyBelow){var l,d;e.preventDefault();let r=null!=t.focusedKey?n.getKeyBelow(t.focusedKey):null===(l=n.getFirstKey)||void 0===l?void 0:l.call(n);null==r&&f&&(r=null===(d=n.getFirstKey)||void 0===d?void 0:d.call(n,t.focusedKey)),a(r)}break;case"ArrowUp":if(n.getKeyAbove){var p,h;e.preventDefault();let r=null!=t.focusedKey?n.getKeyAbove(t.focusedKey):null===(p=n.getLastKey)||void 0===p?void 0:p.call(n);null==r&&f&&(r=null===(h=n.getLastKey)||void 0===h?void 0:h.call(n,t.focusedKey)),a(r)}break;case"ArrowLeft":if(n.getKeyLeftOf){var y,b;e.preventDefault();let r=n.getKeyLeftOf(t.focusedKey);null==r&&f&&(r="rtl"===C?null===(y=n.getFirstKey)||void 0===y?void 0:y.call(n,t.focusedKey):null===(b=n.getLastKey)||void 0===b?void 0:b.call(n,t.focusedKey)),a(r,"rtl"===C?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var x,k;e.preventDefault();let r=n.getKeyRightOf(t.focusedKey);null==r&&f&&(r="rtl"===C?null===(x=n.getLastKey)||void 0===x?void 0:x.call(n,t.focusedKey):null===(k=n.getFirstKey)||void 0===k?void 0:k.call(n,t.focusedKey)),a(r,"rtl"===C?"last":"first")}break;case"Home":if(n.getFirstKey){e.preventDefault();let r=n.getFirstKey(t.focusedKey,i(e));t.setFocusedKey(r),i(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(r):v&&t.replaceSelection(r)}break;case"End":if(n.getLastKey){e.preventDefault();let r=n.getLastKey(t.focusedKey,i(e));t.setFocusedKey(r),i(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(r):v&&t.replaceSelection(r)}break;case"PageDown":if(n.getKeyPageBelow){e.preventDefault(),a(n.getKeyPageBelow(t.focusedKey))}break;case"PageUp":if(n.getKeyPageAbove){e.preventDefault(),a(n.getKeyPageAbove(t.focusedKey))}break;case"a":i(e)&&"multiple"===t.selectionMode&&!0!==g&&(e.preventDefault(),t.selectAll());break;case"Escape":m||0===t.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),t.clearSelection());break;case"Tab":if(!w){if(e.shiftKey)s.current.focus();else{let e,t,n=(0,u.N$)(s.current,{tabbable:!0});do{t=n.lastChild(),t&&(e=t)}while(t);e&&!e.contains(document.activeElement)&&(0,r.eC)(e)}break}}},onFocus:e=>{if(t.isFocused)e.currentTarget.contains(e.target)||t.setFocused(!1);else if(e.currentTarget.contains(e.target)){if(t.setFocused(!0),null==t.focusedKey){let r=e=>{null!=e&&(t.setFocusedKey(e),v&&t.replaceSelection(e))},a=e.relatedTarget;var o,i;a&&e.currentTarget.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?r(null!==(o=t.lastSelectedKey)&&void 0!==o?o:n.getLastKey()):r(null!==(i=t.firstSelectedKey)&&void 0!==i?i:n.getFirstKey())}else x||(S.current.scrollTop=k.current.top,S.current.scrollLeft=k.current.left);if(null!=t.focusedKey){let e=S.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(e){e.contains(document.activeElement)||(0,r.eC)(e),"keyboard"===(0,d.ME)()&&(0,r.op)(e,{containingElement:s.current})}}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},onMouseDown(e){S.current===e.target&&e.preventDefault()}},{typeSelectProps:T}=l({keyboardDelegate:n,selectionManager:t});return y||(D=(0,r.v6)(T,D)),b||(A=null==t.focusedKey?0:-1),{collectionProps:{...D,tabIndex:A}}}function f(e){let{selectionManager:t,key:n,ref:s,shouldSelectOnPressUp:l,shouldUseVirtualFocus:c,focus:p,isDisabled:h,onAction:f,allowsDifferentPressOrigin:v,linkBehavior:y="action"}=e,b=(0,r.rd)(),w=e=>{if("keyboard"===e.pointerType&&o(e))t.toggleSelection(n);else{if("none"===t.selectionMode)return;if(t.isLink(n)){if("selection"===y){let r=t.getItemProps(n);return b.open(s.current,e,r.href,r.routerOptions),void t.setSelectedKeys(t.selectedKeys)}if("override"===y||"none"===y)return}"single"===t.selectionMode?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):e&&e.shiftKey?t.extendSelection(n):"toggle"===t.selectionBehavior||e&&(i(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?t.toggleSelection(n):t.replaceSelection(n)}};(0,a.useEffect)((()=>{n===t.focusedKey&&t.isFocused&&!c&&(p?p():document.activeElement!==s.current&&(0,u.lY)(s.current))}),[s,n,t.focusedKey,t.childFocusStrategy,t.isFocused,c]),h=h||t.isDisabled(n);let x={};c||h?h&&(x.onMouseDown=e=>{e.preventDefault()}):x={tabIndex:n===t.focusedKey?0:-1,onFocus(e){e.target===s.current&&t.setFocusedKey(n)}};let S=t.isLink(n)&&"override"===y,_=t.isLink(n)&&"selection"!==y&&"none"!==y,C=!h&&t.canSelectItem(n)&&!S,E=(f||_)&&!h,k=E&&("replace"===t.selectionBehavior?!C:!C||t.isEmpty),z=E&&C&&"replace"===t.selectionBehavior,P=k||z,A=(0,a.useRef)(null),D=P&&C,T=(0,a.useRef)(!1),I=(0,a.useRef)(!1),M=e=>{if(f&&f(),_){let r=t.getItemProps(n);b.open(s.current,e,r.href,r.routerOptions)}},N={};l?(N.onPressStart=e=>{A.current=e.pointerType,T.current=D,"keyboard"!==e.pointerType||P&&!g()||w(e)},v?(N.onPressUp=k?null:e=>{"keyboard"!==e.pointerType&&C&&w(e)},N.onPress=k?M:null):N.onPress=e=>{if(k||z&&"mouse"!==e.pointerType){if("keyboard"===e.pointerType&&!m())return;M(e)}else"keyboard"!==e.pointerType&&C&&w(e)}):(N.onPressStart=e=>{A.current=e.pointerType,T.current=D,I.current=k,C&&("mouse"===e.pointerType&&!k||"keyboard"===e.pointerType&&(!E||g()))&&w(e)},N.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&P&&m()||"mouse"===e.pointerType&&I.current)&&(P?M(e):C&&w(e))}),x["data-key"]=n,N.preventFocusOnPress=c;let{pressProps:O,isPressed:R}=(0,d.dD)(N),j=z?e=>{"mouse"===A.current&&(e.stopPropagation(),e.preventDefault(),M(e))}:void 0,{longPressProps:F}=(0,d.HZ)({isDisabled:!D,onLongPress(e){"touch"===e.pointerType&&(w(e),t.setSelectionBehavior("toggle"))}}),B=t.isLink(n)?e=>{r.Fe.isOpening||e.preventDefault()}:void 0;return{itemProps:(0,r.v6)(x,C||k?O:{},D?F:{},{onDoubleClick:j,onDragStartCapture:e=>{"touch"===A.current&&T.current&&e.preventDefault()},onClick:B}),isPressed:R,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:h,allowsSelection:C,hasAction:P}}function m(){let e=window.event;return"Enter"===(null==e?void 0:e.key)}function g(){let e=window.event;return" "===(null==e?void 0:e.key)||"Space"===(null==e?void 0:e.code)}class v{getItemRect(e){let t=this.ref.current,n=null!=e?t.querySelector(`[data-key="${CSS.escape(e.toString())}"]`):null;if(!n)return null;let r=t.getBoundingClientRect(),o=n.getBoundingClientRect();return{x:o.left-r.left+t.scrollLeft,y:o.top-r.top+t.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;return{width:e.scrollWidth,height:e.scrollHeight}}getVisibleRect(){let e=this.ref.current;return{x:e.scrollLeft,y:e.scrollTop,width:e.offsetWidth,height:e.offsetHeight}}constructor(e){this.ref=e}}class y{isDisabled(e){var t;return"all"===this.disabledBehavior&&((null===(t=e.props)||void 0===t?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}getNextKey(e){for(e=this.collection.getKeyAfter(e);null!=e;){let t=this.collection.getItem(e);if("item"===t.type&&!this.isDisabled(t))return e;e=this.collection.getKeyAfter(e)}return null}getPreviousKey(e){for(e=this.collection.getKeyBefore(e);null!=e;){let t=this.collection.getItem(e);if("item"===t.type&&!this.isDisabled(t))return e;e=this.collection.getKeyBefore(e)}return null}findKey(e,t,n){let r=this.layoutDelegate.getItemRect(e);if(!r)return null;let o=r;do{e=t(e),r=this.layoutDelegate.getItemRect(e)}while(r&&n(o,r));return e}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,(e=>this.getNextKey(e)),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,(e=>this.getPreviousKey(e)),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){return"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):this.findKey(e,(e=>this.getNextColumn(e,"rtl"===this.direction)),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):null}getKeyLeftOf(e){return"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):this.findKey(e,(e=>this.getNextColumn(e,"ltr"===this.direction)),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):null}getFirstKey(){let e=this.collection.getFirstKey();for(;null!=e;){let t=this.collection.getItem(e);if("item"===(null==t?void 0:t.type)&&!this.isDisabled(t))return e;e=this.collection.getKeyAfter(e)}return null}getLastKey(){let e=this.collection.getLastKey();for(;null!=e;){let t=this.collection.getItem(e);if("item"===t.type&&!this.isDisabled(t))return e;e=this.collection.getKeyBefore(e)}return null}getKeyPageAbove(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(!(0,r.ov)(t))return this.getFirstKey();if("horizontal"===this.orientation){let t=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>t;)n=null==(e=this.getKeyAbove(e))?null:this.layoutDelegate.getItemRect(e)}else{let t=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>t;)n=null==(e=this.getKeyAbove(e))?null:this.layoutDelegate.getItemRect(e)}return null!=e?e:this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(!(0,r.ov)(t))return this.getLastKey();if("horizontal"===this.orientation){let t=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<t;)n=null==(e=this.getKeyBelow(e))?null:this.layoutDelegate.getItemRect(e)}else{let t=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<t;)n=null==(e=this.getKeyBelow(e))?null:this.layoutDelegate.getItemRect(e)}return null!=e?e:this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;null!=r;){let t=n.getItem(r),o=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(o,e))return r;r=this.getKeyBelow(r)}return null}constructor(...e){if(1===e.length){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new v(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new v(this.ref);"stack"===this.layout&&"vertical"===this.orientation&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function b(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i,layoutDelegate:s}=e,l=(0,p.QM)({usage:"search",sensitivity:"base"}),c=t.disabledBehavior,u=(0,a.useMemo)((()=>i||new y({collection:n,disabledKeys:r,disabledBehavior:c,ref:o,collator:l,layoutDelegate:s})),[i,s,n,r,o,l,c]),{collectionProps:d}=h({...e,ref:o,selectionManager:t,keyboardDelegate:u});return{listProps:d}}},14232:(e,t,n)=>{"use strict";n.d(t,{r:()=>o});var r=n(86025);function o(e){let t,n=(0,r.$X)(e,{labelable:!0});return"vertical"===e.orientation&&(t="vertical"),"hr"!==e.elementType?{separatorProps:{...n,role:"separator","aria-orientation":t}}:{separatorProps:n}}},39760:(e,t,n)=>{"use strict";n.d(t,{P:()=>u,x:()=>p});const r=new WeakMap;function o(e,t){let n=r.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}var i=n(86025),a=n(96540),s=n(37555),l=n(2973),c=n(20381);function u(e,t,n){let{labelProps:u,fieldProps:d}=(0,l.t)(e),p="vertical"===e.orientation;var h;r.set(t,{id:null!==(h=u.id)&&void 0!==h?h:d.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:f}=(0,c.Ym)(),{addGlobalListener:m,removeGlobalListener:g}=(0,i.A5)();const v=(0,a.useRef)(null),y="rtl"===f,b=(0,a.useRef)(null),{moveProps:w}=(0,s.fD)({onMoveStart(){b.current=null},onMove({deltaX:e,deltaY:r}){let{height:o,width:a}=n.current.getBoundingClientRect(),s=p?o:a;null==b.current&&(b.current=t.getThumbPercent(v.current)*s);let l=p?r:e;if((p||y)&&(l=-l),b.current+=l,null!=v.current&&n.current){const e=(0,i.qE)(b.current/s,0,1);t.setThumbPercent(v.current,e)}},onMoveEnd(){null!=v.current&&(t.setThumbDragging(v.current,!1),v.current=null)}});let x=(0,a.useRef)(void 0),S=(r,o,i,a)=>{if(n.current&&!e.isDisabled&&t.values.every(((e,n)=>!t.isThumbDragging(n)))){let{height:e,width:s,top:l,left:c}=n.current.getBoundingClientRect();let u=((p?a:i)-(p?l:c))/(p?e:s);("rtl"===f||p)&&(u=1-u);let d,h=t.getPercentValue(u),g=t.values.findIndex((e=>h-e<0));if(0===g)d=g;else if(-1===g)d=t.values.length-1;else{let e=t.values[g-1],n=t.values[g];d=Math.abs(e-h)<Math.abs(n-h)?g-1:g}d>=0&&t.isThumbEditable(d)?(r.preventDefault(),v.current=d,t.setFocusedThumb(d),x.current=o,t.setThumbDragging(v.current,!0),t.setThumbValue(d,h),m(window,"mouseup",_,!1),m(window,"touchend",_,!1),m(window,"pointerup",_,!1)):v.current=null}},_=e=>{var n,r;(null!==(r=e.pointerId)&&void 0!==r?r:null===(n=e.changedTouches)||void 0===n?void 0:n[0].identifier)===x.current&&(null!=v.current&&(t.setThumbDragging(v.current,!1),v.current=null),g(window,"mouseup",_,!1),g(window,"touchend",_,!1),g(window,"pointerup",_,!1))};return"htmlFor"in u&&u.htmlFor&&(delete u.htmlFor,u.onClick=()=>{var e;null===(e=document.getElementById(o(t,0)))||void 0===e||e.focus(),(0,s.Cl)("keyboard")}),{labelProps:u,groupProps:{role:"group",...d},trackProps:(0,i.v6)({onMouseDown(e){0!==e.button||e.altKey||e.ctrlKey||e.metaKey||S(e,void 0,e.clientX,e.clientY)},onPointerDown(e){"mouse"===e.pointerType&&(0!==e.button||e.altKey||e.ctrlKey||e.metaKey)||S(e,e.pointerId,e.clientX,e.clientY)},onTouchStart(e){S(e,e.changedTouches[0].identifier,e.changedTouches[0].clientX,e.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},w),outputProps:{htmlFor:t.values.map(((e,n)=>o(t,n))).join(" "),"aria-live":"off"}}}var d=n(74373);function p(e,t){let{index:n=0,isRequired:u,validationState:p,isInvalid:h,trackRef:f,inputRef:m,orientation:g=t.orientation,name:v}=e,y=e.isDisabled||t.isDisabled,b="vertical"===g,{direction:w}=(0,c.Ym)(),{addGlobalListener:x,removeGlobalListener:S}=(0,i.A5)(),_=r.get(t);var C;const{labelProps:E,fieldProps:k}=(0,l.t)({...e,id:o(t,n),"aria-labelledby":`${_.id} ${null!==(C=e["aria-labelledby"])&&void 0!==C?C:""}`.trim()}),z=t.values[n],P=(0,a.useCallback)((()=>{m.current&&(0,i.eC)(m.current)}),[m]),A=t.focusedThumb===n;(0,a.useEffect)((()=>{A&&P()}),[A,P]);let D="rtl"===w,T=(0,a.useRef)(null),{keyboardProps:I}=(0,s.de)({onKeyDown(e){let{getThumbMaxValue:r,getThumbMinValue:o,decrementThumb:i,incrementThumb:a,setThumbValue:s,setThumbDragging:l,pageSize:c}=t;if(/^(PageUp|PageDown|Home|End)$/.test(e.key)){switch(e.preventDefault(),l(n,!0),e.key){case"PageUp":a(n,c);break;case"PageDown":i(n,c);break;case"Home":s(n,o(n));break;case"End":s(n,r(n))}l(n,!1)}else e.continuePropagation()}}),{moveProps:M}=(0,s.fD)({onMoveStart(){T.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:e,deltaY:r,pointerType:o,shiftKey:a}){const{getThumbPercent:s,setThumbPercent:l,decrementThumb:c,incrementThumb:u,step:d,pageSize:p}=t;let{width:h,height:m}=f.current.getBoundingClientRect(),g=b?m:h;if(null==T.current&&(T.current=s(n)*g),"keyboard"===o)e>0&&D||e<0&&!D||r>0?c(n,a?p:d):u(n,a?p:d);else{let t=b?r:e;(b||D)&&(t=-t),T.current+=t,l(n,(0,i.qE)(T.current/g,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!y);const{focusableProps:N}=(0,d.Wc)((0,i.v6)(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),m);let O=(0,a.useRef)(void 0),R=e=>{P(),O.current=e,t.setThumbDragging(n,!0),x(window,"mouseup",j,!1),x(window,"touchend",j,!1),x(window,"pointerup",j,!1)},j=e=>{var r,o;(null!==(o=e.pointerId)&&void 0!==o?o:null===(r=e.changedTouches)||void 0===r?void 0:r[0].identifier)===O.current&&(P(),t.setThumbDragging(n,!1),S(window,"mouseup",j,!1),S(window,"touchend",j,!1),S(window,"pointerup",j,!1))},F=t.getThumbPercent(n);(b||"rtl"===w)&&(F=1-F);let B=y?{}:(0,i.v6)(I,M,{onMouseDown:e=>{0!==e.button||e.altKey||e.ctrlKey||e.metaKey||R()},onPointerDown:e=>{0!==e.button||e.altKey||e.ctrlKey||e.metaKey||R(e.pointerId)},onTouchStart:e=>{R(e.changedTouches[0].identifier)}});return(0,i.FO)(m,z,(e=>{t.setThumbValue(n,e)})),{inputProps:(0,i.v6)(N,k,{type:"range",tabIndex:y?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:z,name:v,disabled:y,"aria-orientation":g,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":u||void 0,"aria-invalid":h||"invalid"===p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[_["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[_["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:e=>{t.setThumbValue(n,parseFloat(e.target.value))}}),thumbProps:{...B,style:{position:"absolute",[b?"top":"left"]:100*F+"%",transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:E,isDragging:t.isThumbDragging(n),isDisabled:y,isFocused:A}}},63792:(e,t,n)=>{"use strict";n.d(t,{y:()=>l});var r={};r={"ar-AE":{Empty:"فارغ"},"bg-BG":{Empty:"Изпразни"},"cs-CZ":{Empty:"Prázdné"},"da-DK":{Empty:"Tom"},"de-DE":{Empty:"Leer"},"el-GR":{Empty:"Άδειο"},"en-US":{Empty:"Empty"},"es-ES":{Empty:"Vacío"},"et-EE":{Empty:"Tühjenda"},"fi-FI":{Empty:"Tyhjä"},"fr-FR":{Empty:"Vide"},"he-IL":{Empty:"ריק"},"hr-HR":{Empty:"Prazno"},"hu-HU":{Empty:"Üres"},"it-IT":{Empty:"Vuoto"},"ja-JP":{Empty:"空"},"ko-KR":{Empty:"비어 있음"},"lt-LT":{Empty:"Tuščias"},"lv-LV":{Empty:"Tukšs"},"nb-NO":{Empty:"Tom"},"nl-NL":{Empty:"Leeg"},"pl-PL":{Empty:"Pusty"},"pt-BR":{Empty:"Vazio"},"pt-PT":{Empty:"Vazio"},"ro-RO":{Empty:"Gol"},"ru-RU":{Empty:"Не заполнено"},"sk-SK":{Empty:"Prázdne"},"sl-SI":{Empty:"Prazen"},"sr-SP":{Empty:"Prazno"},"sv-SE":{Empty:"Tomt"},"tr-TR":{Empty:"Boş"},"uk-UA":{Empty:"Пусто"},"zh-CN":{Empty:"空"},"zh-TW":{Empty:"空白"}};var o=n(72317),i=n(96540),a=n(86025),s=n(20381);function l(e){const t=(0,i.useRef)(void 0);let{value:n,textValue:l,minValue:c,maxValue:u,isDisabled:d,isReadOnly:p,isRequired:h,onIncrement:f,onIncrementPage:m,onDecrement:g,onDecrementPage:v,onDecrementToMin:y,onIncrementToMax:b}=e;const w=(0,s.oe)((x=r)&&x.__esModule?x.default:x,"@react-aria/spinbutton");var x;const S=()=>clearTimeout(t.current);(0,i.useEffect)((()=>()=>S()),[]);let _=(0,i.useRef)(!1),C=()=>{_.current=!0},E=()=>{_.current=!1},k=""===l?w.format("Empty"):(l||`${n}`).replace("-","−");(0,i.useEffect)((()=>{_.current&&((0,o.pA)("assertive"),(0,o.iP)(k,"assertive"))}),[k]);const z=(0,a.Jt)((e=>{S(),null==f||f(),t.current=window.setTimeout((()=>{(void 0===u||isNaN(u)||void 0===n||isNaN(n)||n<u)&&z(60)}),e)})),P=(0,a.Jt)((e=>{S(),null==g||g(),t.current=window.setTimeout((()=>{(void 0===c||isNaN(c)||void 0===n||isNaN(n)||n>c)&&P(60)}),e)}));let A=e=>{e.preventDefault()},{addGlobalListener:D,removeAllGlobalListeners:T}=(0,a.A5)();return{spinButtonProps:{role:"spinbutton","aria-valuenow":void 0===n||isNaN(n)?void 0:n,"aria-valuetext":k,"aria-valuemin":c,"aria-valuemax":u,"aria-disabled":d||void 0,"aria-readonly":p||void 0,"aria-required":h||void 0,onKeyDown:e=>{if(!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||p))switch(e.key){case"PageUp":if(m){e.preventDefault(),null==m||m();break}case"ArrowUp":case"Up":f&&(e.preventDefault(),null==f||f());break;case"PageDown":if(v){e.preventDefault(),null==v||v();break}case"ArrowDown":case"Down":g&&(e.preventDefault(),null==g||g());break;case"Home":y&&(e.preventDefault(),null==y||y());break;case"End":b&&(e.preventDefault(),null==b||b())}},onFocus:C,onBlur:E},incrementButtonProps:{onPressStart:()=>{z(400),D(window,"contextmenu",A)},onPressEnd:()=>{S(),T()},onFocus:C,onBlur:E},decrementButtonProps:{onPressStart:()=>{P(400),D(window,"contextmenu",A)},onPressEnd:()=>{S(),T()},onFocus:C,onBlur:E}}}},96411:(e,t,n)=>{"use strict";n.d(t,{wR:()=>f,Cc:()=>u});var r=n(96540);const o={prefix:String(Math.round(1e10*Math.random())),current:0},i=r.createContext(o),a=r.createContext(!1);let s=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),l=new WeakMap;function c(e=!1){let t=(0,r.useContext)(i),n=(0,r.useRef)(null);if(null===n.current&&!e){var o,a;let e=null===(a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===a||null===(o=a.ReactCurrentOwner)||void 0===o?void 0:o.current;if(e){let n=l.get(e);null==n?l.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,l.delete(e))}n.current=++t.current}return n.current}const u="function"==typeof r.useId?function(e){let t=r.useId(),[n]=(0,r.useState)(f());return e||`${n?"react-aria":`react-aria${o.prefix}`}-${t}`}:function(e){let t=(0,r.useContext)(i);t!==o||s||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=c(!!e),a=`react-aria${t.prefix}`;return e||`${a}-${n}`};function d(){return!1}function p(){return!0}function h(e){return()=>{}}function f(){return"function"==typeof r.useSyncExternalStore?r.useSyncExternalStore(h,d,p):(0,r.useContext)(a)}},12485:(e,t,n)=>{"use strict";n.d(t,{K:()=>o});var r=n(87525);function o(e,t,n){let{labelProps:o,inputProps:i,isSelected:a,isPressed:s,isDisabled:l,isReadOnly:c}=(0,r.e)(e,t,n);return{labelProps:o,inputProps:{...i,role:"switch",checked:a},isSelected:a,isPressed:s,isDisabled:l,isReadOnly:c}}},37952:(e,t,n)=>{"use strict";new WeakMap;n(72114),n(53571);n(72317),n(86025),n(87364),n(20381),n(96540);n(74373),n(37555);n(46473)},32231:(e,t,n)=>{"use strict";n.d(t,{Vh:()=>s,$c:()=>h,Jn:()=>c});const r=new WeakMap;function o(e,t,n){return"string"==typeof t&&(t=t.replace(/\s+/g,"")),`${r.get(e)}-${n}-${t}`}var i=n(86025),a=n(38783);function s(e,t,n){let{key:r,isDisabled:s,shouldSelectOnPressUp:l}=e,{selectionManager:c,selectedKey:u}=t,d=r===u,p=s||t.isDisabled||t.selectionManager.isDisabled(r),{itemProps:h,isPressed:f}=(0,a.pB)({selectionManager:c,key:r,ref:n,isDisabled:p,shouldSelectOnPressUp:l,linkBehavior:"selection"}),m=o(t,r,"tab"),g=o(t,r,"tabpanel"),{tabIndex:v}=h,y=t.collection.getItem(r),b=(0,i.$X)(null==y?void 0:y.props,{labelable:!0});delete b.id;let w=(0,i._h)(null==y?void 0:y.props);return{tabProps:(0,i.v6)(b,w,h,{id:m,"aria-selected":d,"aria-disabled":p||void 0,"aria-controls":d?g:void 0,tabIndex:p?void 0:v,role:"tab"}),isSelected:d,isDisabled:p,isPressed:f}}var l=n(74373);function c(e,t,n){let r=(0,l.$C)(n)?void 0:0;var a;const s=o(t,null!==(a=e.id)&&void 0!==a?a:null==t?void 0:t.selectedKey,"tabpanel"),c=(0,i.b0)({...e,id:s,"aria-labelledby":o(t,null==t?void 0:t.selectedKey,"tab")});return{tabPanelProps:(0,i.v6)(c,{tabIndex:r,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}class u{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}getKeyAbove(e){return this.getPreviousKey(e)}getKeyBelow(e){return this.getNextKey(e)}isDisabled(e){var t,n;return this.disabledKeys.has(e)||!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return null!=e&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return null!=e&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getNextKey(e){do{null==(e=this.collection.getKeyAfter(e))&&(e=this.collection.getFirstKey())}while(this.isDisabled(e));return e}getPreviousKey(e){do{null==(e=this.collection.getKeyBefore(e))&&(e=this.collection.getLastKey())}while(this.isDisabled(e));return e}constructor(e,t,n,r=new Set){this.collection=e,this.flipDirection="rtl"===t&&"horizontal"===n,this.disabledKeys=r}}var d=n(20381),p=n(96540);function h(e,t,n){let{orientation:o="horizontal",keyboardActivation:s="automatic"}=e,{collection:l,selectionManager:c,disabledKeys:h}=t,{direction:f}=(0,d.Ym)(),m=(0,p.useMemo)((()=>new u(l,f,o,h)),[l,h,o,f]),{collectionProps:g}=(0,a.y)({ref:n,selectionManager:c,keyboardDelegate:m,selectOnFocus:"automatic"===s,disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),v=(0,i.Bi)();r.set(t,v);let y=(0,i.b0)({...e,id:v});return{tabListProps:{...(0,i.v6)(g,y),role:"tablist","aria-orientation":o,tabIndex:void 0}}}},25638:(e,t,n)=>{"use strict";n.d(t,{O:()=>h,n:()=>d});var r=n(86025),o=n(38783),i=n(96540),a=n(2973),s=n(37555),l=n(11104),c=n(20381);const u=new WeakMap;function d(e,t,n){let{direction:d}=(0,c.Ym)(),p=e.keyboardDelegate||new(0,o.nW)({collection:t.collection,ref:n,orientation:"horizontal",direction:d,disabledKeys:t.disabledKeys,disabledBehavior:t.selectionManager.disabledBehavior}),{labelProps:h,fieldProps:f,descriptionProps:m,errorMessageProps:g}=(0,a.M)({...e,labelElementType:"span"}),{gridProps:v}=(0,l.IZ)({...e,...f,keyboardDelegate:p,shouldFocusWrap:!0,linkBehavior:"override"},t,n),[y,b]=(0,i.useState)(!1),{focusWithinProps:w}=(0,s.Rb)({onFocusWithinChange:b}),x=(0,r.$X)(e),S=(0,i.useRef)(t.collection.size);return(0,i.useEffect)((()=>{n.current&&S.current>0&&0===t.collection.size&&y&&n.current.focus(),S.current=t.collection.size}),[t.collection.size,y,n]),u.set(t,{onRemove:e.onRemove}),{gridProps:(0,r.v6)(v,x,{role:t.collection.size?"grid":null,"aria-atomic":!1,"aria-relevant":"additions","aria-live":y?"polite":"off",...w,...f}),labelProps:h,descriptionProps:m,errorMessageProps:g}}var p={};function h(e,t,n){let{item:o}=e,i=(0,c.oe)((a=p)&&a.__esModule?a.default:a,"@react-aria/tag");var a;let d=(0,r.Bi)(),{onRemove:h}=u.get(t)||{},{rowProps:f,gridCellProps:m,...g}=(0,l.ns)({node:o},t,n);delete f.onKeyDownCapture;let{descriptionProps:v,...y}=g,b=(0,s.lb)();"virtual"===b&&"undefined"!=typeof window&&"ontouchstart"in window&&(b="pointer");let w=!h||"keyboard"!==b&&"virtual"!==b?"":i.format("removeDescription"),x=(0,r.I8)(w),S=o.key===t.selectionManager.focusedKey,_=(0,r.$X)(o.props),C=(0,r.HI)(o.props);return{removeButtonProps:{"aria-label":i.format("removeButtonLabel"),"aria-labelledby":`${d} ${f.id}`,isDisabled:t.disabledKeys.has(o.key)||o.props.isDisabled,id:d,onPress:()=>h?h(new Set([o.key])):null,excludeFromTabOrder:!0},rowProps:(0,r.v6)(f,_,C,{tabIndex:S||null==t.selectionManager.focusedKey?0:-1,onKeyDown:h?e=>{"Delete"!==e.key&&"Backspace"!==e.key||(e.preventDefault(),t.selectionManager.isSelected(o.key)?null==h||h(new Set(t.selectionManager.selectedKeys)):null==h||h(new Set([o.key])))}:void 0,"aria-describedby":x["aria-describedby"]}),gridCellProps:(0,r.v6)(m,{"aria-errormessage":e["aria-errormessage"],"aria-label":e["aria-label"]}),...y,allowsRemoving:!!h}}p={"ar-AE":{removeButtonLabel:"إزالة",removeDescription:"اضغط على مفتاح DELETE لإزالة علامة."},"bg-BG":{removeButtonLabel:"Премахване",removeDescription:"Натиснете Delete, за да премахнете маркера."},"cs-CZ":{removeButtonLabel:"Odebrat",removeDescription:"Stisknutím klávesy Delete odeberete značku."},"da-DK":{removeButtonLabel:"Fjern",removeDescription:"Tryk på Slet for at fjerne tag."},"de-DE":{removeButtonLabel:"Entfernen",removeDescription:"Auf „Löschen“ drücken, um das Tag zu entfernen."},"el-GR":{removeButtonLabel:"Κατάργηση",removeDescription:"Πατήστε Διαγραφή για να καταργήσετε την ετικέτα."},"en-US":{removeDescription:"Press Delete to remove tag.",removeButtonLabel:"Remove"},"es-ES":{removeButtonLabel:"Quitar",removeDescription:"Pulse Eliminar para quitar la etiqueta."},"et-EE":{removeButtonLabel:"Eemalda",removeDescription:"Sildi eemaldamiseks vajutage kustutusklahvi Delete."},"fi-FI":{removeButtonLabel:"Poista",removeDescription:"Poista tunniste painamalla Poista-painiketta."},"fr-FR":{removeButtonLabel:"Supprimer",removeDescription:"Appuyez sur Supprimer pour supprimer l’étiquette."},"he-IL":{removeButtonLabel:"הסר",removeDescription:"לחץ על מחק כדי להסיר תג."},"hr-HR":{removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Delete za uklanjanje oznake."},"hu-HU":{removeButtonLabel:"Eltávolítás",removeDescription:"Nyomja meg a Delete billentyűt a címke eltávolításához."},"it-IT":{removeButtonLabel:"Rimuovi",removeDescription:"Premi Elimina per rimuovere il tag."},"ja-JP":{removeButtonLabel:"削除",removeDescription:"タグを削除するには、Delete キーを押します。"},"ko-KR":{removeButtonLabel:"제거",removeDescription:"태그를 제거하려면 Delete 키를 누르십시오."},"lt-LT":{removeButtonLabel:"Pašalinti",removeDescription:"Norėdami pašalinti žymą, paspauskite „Delete“ klavišą."},"lv-LV":{removeButtonLabel:"Noņemt",removeDescription:"Nospiediet Delete [Dzēst], lai noņemtu tagu."},"nb-NO":{removeButtonLabel:"Fjern",removeDescription:"Trykk på Slett for å fjerne taggen."},"nl-NL":{removeButtonLabel:"Verwijderen",removeDescription:"Druk op Verwijderen om de tag te verwijderen."},"pl-PL":{removeButtonLabel:"Usuń",removeDescription:"Naciśnij Usuń, aby usunąć znacznik."},"pt-BR":{removeButtonLabel:"Remover",removeDescription:"Pressione Delete para remover a tag."},"pt-PT":{removeButtonLabel:"Eliminar",removeDescription:"Prima Delete para eliminar a tag."},"ro-RO":{removeButtonLabel:"Îndepărtaţi",removeDescription:"Apăsați pe Delete (Ștergere) pentru a elimina eticheta."},"ru-RU":{removeButtonLabel:"Удалить",removeDescription:"Нажмите DELETE, чтобы удалить тег."},"sk-SK":{removeButtonLabel:"Odstrániť",removeDescription:"Ak chcete odstrániť značku, stlačte kláves Delete."},"sl-SI":{removeButtonLabel:"Odstrani",removeDescription:"Pritisnite Delete, da odstranite oznako."},"sr-SP":{removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Obriši da biste uklonili oznaku."},"sv-SE":{removeButtonLabel:"Ta bort",removeDescription:"Tryck på Radera för att ta bort taggen."},"tr-TR":{removeButtonLabel:"Kaldır",removeDescription:"Etiketi kaldırmak için Sil tuşuna basın."},"uk-UA":{removeButtonLabel:"Вилучити",removeDescription:"Натисніть Delete, щоб вилучити тег."},"zh-CN":{removeButtonLabel:"删除",removeDescription:"按下“删除”以删除标记。"},"zh-TW":{removeButtonLabel:"移除",removeDescription:"按 Delete 鍵以移除標記。"}}},99008:(e,t,n)=>{"use strict";n.d(t,{r:()=>p,v:()=>u});var r=n(96540),o=n(86025),i=n(9772),a=n(2973),s=n(74373),l=n(75944),c=n(32144);function u(e,t){let{inputElementType:n="input",isDisabled:u=!1,isRequired:d=!1,isReadOnly:p=!1,type:h="text",validationBehavior:f="aria"}=e,[m,g]=(0,i.PW)(e.value,e.defaultValue||"",e.onChange),{focusableProps:v}=(0,s.Wc)(e,t),y=(0,c.KZ)({...e,value:m}),{isInvalid:b,validationErrors:w,validationDetails:x}=y.displayValidation,{labelProps:S,fieldProps:_,descriptionProps:C,errorMessageProps:E}=(0,a.M)({...e,isInvalid:b,errorMessage:e.errorMessage||w}),k=(0,o.$X)(e,{labelable:!0});const z={type:h,pattern:e.pattern};return(0,o.FO)(t,m,g),(0,l.X)(e,y,t),(0,r.useEffect)((()=>{if(t.current instanceof(0,o.mD)(t.current).HTMLTextAreaElement){let e=t.current;Object.defineProperty(e,"defaultValue",{get:()=>e.value,set:()=>{},configurable:!0})}}),[t]),{labelProps:S,inputProps:(0,o.v6)(k,"input"===n?z:void 0,{disabled:u,readOnly:p,required:d&&"native"===f,"aria-required":d&&"aria"===f||void 0,"aria-invalid":b||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:m,onChange:e=>g(e.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...v,..._}),descriptionProps:C,errorMessageProps:E,isInvalid:b,validationErrors:w,validationDetails:x}}function d(){return"undefined"!=typeof window&&window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges}function p(e,t,n){let i=(0,o.Jt)((e=>{let r,o=n.current;switch(e.inputType){case"historyUndo":case"historyRedo":case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":r=o.value.slice(0,o.selectionStart)+o.value.slice(o.selectionEnd);break;case"deleteContentForward":r=o.selectionEnd===o.selectionStart?o.value.slice(0,o.selectionStart)+o.value.slice(o.selectionEnd+1):o.value.slice(0,o.selectionStart)+o.value.slice(o.selectionEnd);break;case"deleteContentBackward":r=o.selectionEnd===o.selectionStart?o.value.slice(0,o.selectionStart-1)+o.value.slice(o.selectionStart):o.value.slice(0,o.selectionStart)+o.value.slice(o.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":r=o.value.slice(o.selectionStart);break;default:null!=e.data&&(r=o.value.slice(0,o.selectionStart)+e.data+o.value.slice(o.selectionEnd))}null!=r&&t.validate(r)||e.preventDefault()}));(0,r.useEffect)((()=>{if(!d())return;let e=n.current;return e.addEventListener("beforeinput",i,!1),()=>{e.removeEventListener("beforeinput",i,!1)}}),[n,i]);let a=d()?null:e=>{let n=e.target.value.slice(0,e.target.selectionStart)+e.data+e.target.value.slice(e.target.selectionEnd);t.validate(n)||e.preventDefault()},{labelProps:s,inputProps:l,descriptionProps:c,errorMessageProps:p,...h}=u(e,n),f=(0,r.useRef)(null);return{inputProps:(0,o.v6)(l,{onBeforeInput:a,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:r}=n.current;f.current={value:e,selectionStart:t,selectionEnd:r}},onCompositionEnd(){if(!t.validate(n.current.value)){let{value:e,selectionStart:r,selectionEnd:o}=f.current;n.current.value=e,n.current.setSelectionRange(r,o),t.setInputValue(e)}}}),labelProps:s,descriptionProps:c,errorMessageProps:p,...h}}},87525:(e,t,n)=>{"use strict";n.d(t,{e:()=>a});var r=n(86025),o=n(74373),i=n(37555);function a(e,t,n){let{isDisabled:a=!1,isReadOnly:s=!1,value:l,name:c,children:u,"aria-label":d,"aria-labelledby":p,validationState:h="valid",isInvalid:f}=e;null!=u||(null!=d||null!=p)||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:m,isPressed:g}=(0,i.dD)({isDisabled:a}),{pressProps:v,isPressed:y}=(0,i.dD)({isDisabled:a||s,onPress(){t.toggle()}}),{focusableProps:b}=(0,o.Wc)(e,n),w=(0,r.v6)(m,b),x=(0,r.$X)(e,{labelable:!0});return(0,r.FO)(n,t.isSelected,t.setSelected),{labelProps:(0,r.v6)(v,{onClick:e=>e.preventDefault()}),inputProps:(0,r.v6)(x,{"aria-invalid":f||"invalid"===h||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":s||void 0,onChange:e=>{e.stopPropagation(),t.setSelected(e.target.checked)},disabled:a,...null==l?{}:{value:l},name:c,type:"checkbox",...w}),isSelected:t.isSelected,isPressed:g||y,isDisabled:a,isReadOnly:s,isInvalid:f||"invalid"===h}}},48026:(e,t,n)=>{"use strict";n.d(t,{f:()=>i,D:()=>l});var r=n(86025),o=n(37555);function i(e,t){let n=(0,r.$X)(e,{labelable:!0}),{hoverProps:i}=(0,o.Mk)({onHoverStart:()=>null==t?void 0:t.open(!0),onHoverEnd:()=>null==t?void 0:t.close()});return{tooltipProps:(0,r.v6)(n,i,{role:"tooltip"})}}var a=n(96540),s=n(74373);function l(e,t,n){let{isDisabled:i,trigger:l}=e,c=(0,r.Bi)(),u=(0,a.useRef)(!1),d=(0,a.useRef)(!1),p=()=>{(u.current||d.current)&&t.open(d.current)},h=e=>{u.current||d.current||t.close(e)};(0,a.useEffect)((()=>{let e=e=>{n&&n.current&&"Escape"===e.key&&(e.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}}),[n,t]);let f=()=>{d.current=!1,u.current=!1,h(!0)},{hoverProps:m}=(0,o.Mk)({isDisabled:i,onHoverStart:()=>{"focus"!==l&&("pointer"===(0,o.ME)()?u.current=!0:u.current=!1,p())},onHoverEnd:()=>{"focus"!==l&&(d.current=!1,u.current=!1,h())}}),{focusableProps:g}=(0,s.Wc)({isDisabled:i,onFocus:()=>{(0,o.pP)()&&(d.current=!0,p())},onBlur:()=>{d.current=!1,u.current=!1,h(!0)}},n);return{triggerProps:{"aria-describedby":t.isOpen?c:void 0,...(0,r.v6)(g,m,{onPointerDown:f,onKeyDown:f})},tooltipProps:{id:c}}}},86025:(e,t,n)=>{"use strict";n.d(t,{cy:()=>h,qE:()=>ye.qE,$X:()=>k,eC:()=>z,dw:()=>y,TW:()=>f,mD:()=>m,ln:()=>v,zm:()=>g,mH:()=>ie,m0:()=>B,lg:()=>R,un:()=>O,bh:()=>N,mU:()=>M,cX:()=>I,ov:()=>oe,YF:()=>fe,Pg:()=>me,Tc:()=>j,v6:()=>x,Fe:()=>$,vg:()=>X,Rt:()=>de,op:()=>he,sU:()=>H,k9:()=>ge,I8:()=>ce,Jt:()=>i,_q:()=>ue,FO:()=>ve,A5:()=>J,Bi:()=>u,b0:()=>Q,Nf:()=>o,_h:()=>q,UH:()=>ee,wY:()=>ne,rd:()=>K,X1:()=>p,wt:()=>re,HI:()=>W,w5:()=>te});var r=n(96540);const o="undefined"!=typeof document?r.useLayoutEffect:()=>{};function i(e){const t=(0,r.useRef)(null);return o((()=>{t.current=e}),[e]),(0,r.useCallback)(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}function a(e){let[t,n]=(0,r.useState)(e),a=(0,r.useRef)(null),s=i((()=>{if(!a.current)return;let e=a.current.next();e.done?a.current=null:t===e.value?s():n(e.value)}));o((()=>{a.current&&s()}));let l=i((e=>{a.current=e(t),s()}));return[t,l]}var s=n(96411);let l=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),c=new Map;function u(e){let[t,n]=(0,r.useState)(e),i=(0,r.useRef)(null),a=(0,s.Cc)(t),u=(0,r.useCallback)((e=>{i.current=e}),[]);return l&&c.set(a,u),o((()=>{let e=a;return()=>{c.delete(e)}}),[a]),(0,r.useEffect)((()=>{let e=i.current;e&&(i.current=null,n(e))})),a}function d(e,t){if(e===t)return e;let n=c.get(e);if(n)return n(t),t;let r=c.get(t);return r?(r(e),e):t}function p(e=[]){let t=u(),[n,i]=a(t),s=(0,r.useCallback)((()=>{i((function*(){yield t,yield document.getElementById(t)?t:void 0}))}),[t,i]);return o(s,[t,s,...e]),n}function h(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}const f=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},m=e=>{if(e&&"window"in e&&e.window===e)return e;const t=g(e);return t instanceof ShadowRoot?t.ownerDocument.defaultView||window:(null==t?void 0:t.defaultView)||window},g=e=>{if(!e)return document;const t=e.getRootNode?e.getRootNode():document;return e.isConnected?(Document,t):null},v=e=>{var t;return e instanceof ShadowRoot?null===(t=e.ownerDocument)||void 0===t?void 0:t.body:e.body},y=()=>{var e;let t=document.activeElement;for(;(null==t?void 0:t.shadowRoot)&&(null===(e=t.shadowRoot)||void 0===e?void 0:e.activeElement);)t=t.shadowRoot.activeElement;return t};function b(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=b(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const w=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=b(e))&&(r&&(r+=" "),r+=t);return r};function x(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],o=r[e];"function"==typeof n&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=h(n,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof o?"id"===e&&n&&o?t.id=d(n,o):t[e]=void 0!==o?o:n:t[e]=w(n,o)}}return t}const S=new Set(["id"]),_=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),C=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),E=/^(data-.*)$/;function k(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(S.has(t)||n&&_.has(t)||r&&C.has(t)||(null==o?void 0:o.has(t))||E.test(t))&&(i[t]=e[t]);return i}function z(e){if(function(){if(null==P){P=!1;try{document.createElement("div").focus({get preventScroll(){return P=!0,!0}})}catch(e){}}return P}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft});return n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}let P=null;function A(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function D(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function T(e){let t=null;return()=>(null==t&&(t=e()),t)}const I=T((function(){return D(/^Mac/i)})),M=T((function(){return D(/^iPhone/i)})),N=T((function(){return D(/^iPad/i)||I()&&navigator.maxTouchPoints>1})),O=T((function(){return M()||N()})),R=T((function(){return I()||O()})),j=T((function(){return A(/AppleWebKit/i)&&!F()})),F=T((function(){return A(/Chrome/i)})),B=T((function(){return A(/Android/i)})),L=T((function(){return A(/Firefox/i)})),V=(0,r.createContext)({isNative:!0,open:function(e,t){U(e,(e=>$(e,t)))},useHref:e=>e});function K(){return(0,r.useContext)(V)}function H(e,t){let n=e.getAttribute("target");return!(n&&"_self"!==n||e.origin!==location.origin||e.hasAttribute("download")||t.metaKey||t.ctrlKey||t.altKey||t.shiftKey)}function $(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=t;L()&&(null===(o=window.event)||void 0===o||null===(r=o.type)||void 0===r?void 0:r.startsWith("key"))&&"_blank"===e.target&&(I()?i=!0:a=!0);let c=j()&&I()&&!N()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});$.isOpening=n,z(e),e.dispatchEvent(c),$.isOpening=!1}function U(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function W(e){let t=K();return{"data-href":e.href?t.useHref(e.href):void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function q(e){let t=K();return{href:(null==e?void 0:e.href)?t.useHref(null==e?void 0:e.href):void 0,target:null==e?void 0:e.target,rel:null==e?void 0:e.rel,download:null==e?void 0:e.download,ping:null==e?void 0:e.ping,referrerPolicy:null==e?void 0:e.referrerPolicy}}$.isOpening=!1;let G=new Map,Z=new Set;function Y(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let r=G.get(n.target);if(r&&(r.delete(n.propertyName),0===r.size&&(n.target.removeEventListener("transitioncancel",t),G.delete(n.target)),0===G.size)){for(let e of Z)e();Z.clear()}};document.body.addEventListener("transitionrun",(n=>{if(!e(n)||!n.target)return;let r=G.get(n.target);r||(r=new Set,G.set(n.target,r),n.target.addEventListener("transitioncancel",t,{once:!0})),r.add(n.propertyName)})),document.body.addEventListener("transitionend",t)}function X(e){requestAnimationFrame((()=>{0===G.size?e():Z.add(e)}))}"undefined"!=typeof document&&("loading"!==document.readyState?Y():document.addEventListener("DOMContentLoaded",Y));function J(){let e=(0,r.useRef)(new Map),t=(0,r.useCallback)(((t,n,r,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,r,o)}),[]),n=(0,r.useCallback)(((t,n,r,o)=>{var i;let a=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(n,a,o),e.current.delete(r)}),[]),o=(0,r.useCallback)((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return(0,r.useEffect)((()=>o),[o]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:o}}function Q(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;if(n=u(n),o&&r){let e=new Set([n,...o.trim().split(/\s+/)]);o=[...e].join(" ")}else o&&(o=o.trim().split(/\s+/).join(" "));return r||o||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function ee(e){const t=(0,r.useRef)(null);return(0,r.useMemo)((()=>({get current(){return t.current},set current(n){t.current=n,"function"==typeof e?e(n):e&&(e.current=n)}})),[e])}function te(e,t){const n=(0,r.useRef)(!0),o=(0,r.useRef)(null);(0,r.useEffect)((()=>(n.current=!0,()=>{n.current=!1})),[]),(0,r.useEffect)((()=>{n.current?n.current=!1:o.current&&!t.some(((e,t)=>!Object.is(e,o[t])))||e(),o.current=t}),t)}function ne(e){const{ref:t,box:n,onResize:o}=e;(0,r.useEffect)((()=>{let e=null==t?void 0:t.current;if(e){if(void 0===window.ResizeObserver)return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)};{const t=new window.ResizeObserver((e=>{e.length&&o()}));return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}}}),[o,t,n])}function re(e,t){o((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}}))}function oe(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function ie(e,t){let n=e;for(oe(n,t)&&(n=n.parentElement);n&&!oe(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function ae(e,t){const n=[];for(;e&&e!==document.documentElement;)oe(e,t)&&n.push(e),e=e.parentElement;return n}"undefined"!=typeof document&&window.visualViewport;let se=0;const le=new Map;function ce(e){let[t,n]=(0,r.useState)();return o((()=>{if(!e)return;let t=le.get(e);if(t)n(t.element.id);else{let r="react-aria-description-"+se++;n(r);let o=document.createElement("div");o.id=r,o.style.display="none",o.textContent=e,document.body.appendChild(o),t={refCount:0,element:o},le.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),le.delete(e))}}),[e]),{"aria-describedby":e?t:void 0}}function ue(e,t,n,o){let a=i(n),s=null==n;(0,r.useEffect)((()=>{if(s||!e.current)return;let n=e.current;return n.addEventListener(t,a,o),()=>{n.removeEventListener(t,a,o)}}),[e,t,o,s,a])}function de(e,t){let n=pe(e,t,"left"),r=pe(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:c}=getComputedStyle(e),u=e.scrollLeft+parseInt(c,10),d=e.scrollTop+parseInt(l,10),p=u+e.clientWidth,h=d+e.clientHeight;n<=a?a=n-parseInt(c,10):n+o>p&&(a+=n+o-p),r<=d?s=r-parseInt(l,10):r+i>h&&(s+=r+i-h),e.scrollLeft=a,e.scrollTop=s}function pe(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function he(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(a).overflow){let t=ae(e);for(let n of t)de(n,e)}else{var n;let{left:a,top:s}=e.getBoundingClientRect();null==e||null===(n=e.scrollIntoView)||void 0===n||n.call(e,{block:"nearest"});let{left:l,top:c}=e.getBoundingClientRect();var r,o,i;if(Math.abs(a-l)>1||Math.abs(s-c)>1)null==t||null===(o=t.containingElement)||void 0===o||null===(r=o.scrollIntoView)||void 0===r||r.call(o,{block:"center",inline:"center"}),null===(i=e.scrollIntoView)||void 0===i||i.call(e,{block:"nearest"})}}}function fe(e){return!(0!==e.mozInputSource||!e.isTrusted)||(B()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function me(e){return!B()&&0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType}function ge(e,t){let n=(0,r.useRef)(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function ve(e,t,n){let o=(0,r.useRef)(t),a=i((()=>{n&&n(o.current)}));(0,r.useEffect)((()=>{var t;let n=null==e||null===(t=e.current)||void 0===t?void 0:t.form;return null==n||n.addEventListener("reset",a),()=>{null==n||n.removeEventListener("reset",a)}}),[e,a])}var ye=n(9772)},46473:(e,t,n)=>{"use strict";n.d(t,{s:()=>l,B:()=>s});var r=n(86025),o=n(96540),i=n(37555);const a={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function s(e={}){let{style:t,isFocusable:n}=e,[r,s]=(0,o.useState)(!1),{focusWithinProps:l}=(0,i.Rb)({isDisabled:!n,onFocusWithinChange:e=>s(e)});return{visuallyHiddenProps:{...l,style:(0,o.useMemo)((()=>r?t:t?{...a,...t}:a),[r])}}}function l(e){let{children:t,elementType:n="div",isFocusable:i,style:a,...l}=e,{visuallyHiddenProps:c}=s(e);return o.createElement(n,(0,r.v6)(l,c),t)}},48602:(e,t,n)=>{"use strict";n(34361);n(9772),n(96540)},29279:(e,t,n)=>{"use strict";n(32144),n(9772),n(96540)},72114:(e,t,n)=>{"use strict";n.d(t,{q7:()=>a,wn:()=>l,o3:()=>v,iQ:()=>f,ue:()=>m,vS:()=>w,W:()=>g,Ge:()=>h});var r=n(96540);function o(e){return null}function i(e){return null!=e.hasChildItems?e.hasChildItems:!!e.childItems||!!(e.title&&r.Children.count(e.children)>0)}o.getCollectionNode=function*(e,t){let{childItems:n,title:o,children:a}=e,s=e.title||e.children,l=e.textValue||("string"==typeof s?s:"")||e["aria-label"]||"";l||(null==t?void 0:t.suppressTextValueWarning)||console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:e,rendered:s,textValue:l,"aria-label":e["aria-label"],hasChildNodes:i(e),*childNodes(){if(n)for(let e of n)yield{type:"item",value:e};else if(o){let e=[];r.Children.forEach(a,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let a=o;function s(e){return null}s.getCollectionNode=function*(e){let{children:t,title:n,items:o}=e;yield{type:"section",props:e,hasChildNodes:!0,rendered:n,"aria-label":e["aria-label"],*childNodes(){if("function"==typeof t){if(!o)throw new Error("props.children was a function but props.items is missing");for(let e of o)yield{type:"item",value:e,renderer:t}}else{let e=[];r.Children.forEach(t,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let l=s;class c{build(e,t){return this.context=t,u((()=>this.iterateCollection(e)))}*iterateCollection(e){let{children:t,items:n}=e;if("function"==typeof t){if(!n)throw new Error("props.children was a function but props.items is missing");for(let n of e.items)yield*this.getFullNode({value:n},{renderer:t})}else{let e=[];r.Children.forEach(t,(t=>{e.push(t)}));let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e)n++,yield t}}}getKey(e,t,n,r){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${r}${t.key}`;let o=t.value;if(null!=o){var i;let e=null!==(i=o.key)&&void 0!==i?i:o.id;if(null==e)throw new Error("No key found for item");return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,o){let i=e.element;if(!i&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context)))return n.index=e.index,n.parentKey=o?o.key:null,void(yield n);i=t.renderer(e.value)}if(r.isValidElement(i)){let r=i.type;if("function"!=typeof r&&"function"!=typeof r.getCollectionNode){let e="function"==typeof i.type?i.type.name:i.type;throw new Error(`Unknown element <${e}> in collection.`)}let a=r.getCollectionNode(i.props,this.context),s=e.index,l=a.next();for(;!l.done&&l.value;){let r=l.value;e.index=s;let c=r.key;c||(c=r.element?null:this.getKey(i,e,t,n));let u=[...this.getFullNode({...r,key:c,index:s,wrapper:d(e.wrapper,r.wrapper)},this.getChildState(t,r),n?`${n}${i.key}`:i.key,o)];for(let t of u){if(t.value=r.value||e.value,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw new Error(`Unsupported type <${p(t.type)}> in <${p(o.type)}>. Only <${p(e.type)}> is supported.`);s++,yield t}l=a.next(u)}return}if(null==e.key)return;let a=this,s={type:e.type,props:e.props,key:e.key,parentKey:o?o.key:null,value:e.value,level:o?o.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:u((function*(){if(!e.hasChildNodes)return;let n=0;for(let r of e.childNodes()){null!=r.key&&(r.key=`${s.key}${r.key}`),r.index=n;let e=a.getFullNode(r,a.getChildState(t,r),s.key,s);for(let t of e)n++,yield t}}))};yield s}constructor(){this.cache=new WeakMap}}function u(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||(n=e());for(let e of n)t.push(e),yield e}}}function d(e,t){return e&&t?n=>e(t(n)):e||(t||void 0)}function p(e){return e[0].toUpperCase()+e.slice(1)}function h(e,t,n){let o=(0,r.useMemo)((()=>new c),[]),{children:i,items:a,collection:s}=e;return(0,r.useMemo)((()=>{if(s)return s;let e=o.build({children:i,items:a},n);return t(e)}),[o,i,a,s,n,t])}function f(e,t){return"function"==typeof t.getChildren?t.getChildren(e.key):e.childNodes}function m(e){return function(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}(e,0)}function g(e){let t;for(let n of e)t=n;return t}function v(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...y(e,t),t],o=[...y(e,n),n],i=r.slice(0,o.length).findIndex(((e,t)=>e!==o[t]));return-1!==i?(t=r[i],n=o[i],t.index-n.index):r.findIndex((e=>e===n))>=0?1:(o.findIndex((e=>e===t)),-1)}function y(e,t){let n=[];for(;null!=(null==t?void 0:t.parentKey);)t=e.getItem(t.parentKey),n.unshift(t);return n}const b=new WeakMap;function w(e){let t=b.get(e);if(null!=t)return t;t=0;let n=r=>{for(let o of r)"section"===o.type?n(f(o,e)):t++};return n(e),b.set(e,t),t}},18486:(e,t,n)=>{"use strict";n.d(t,{k:()=>c});var r=n(32144),o=n(72114),i=n(25414),a=n(96540),s=n(9772),l=n(16154);function c(e){var t,n;let{defaultFilter:o,menuTrigger:c="input",allowsEmptyCollection:d=!1,allowsCustomValue:p,shouldCloseOnBlur:h=!0}=e,[f,m]=(0,a.useState)(!1),[g,v]=(0,a.useState)(!1),[y,b]=(0,a.useState)(null);var w;let{collection:x,selectionManager:S,selectedKey:_,setSelectedKey:C,selectedItem:E,disabledKeys:k}=(0,i.Vi)({...e,onSelectionChange:t=>{e.onSelectionChange&&e.onSelectionChange(t),t===_&&(H(),L())},items:null!==(w=e.items)&&void 0!==w?w:e.defaultItems});var z,P;let[A,D]=(0,s.PW)(e.inputValue,null!==(P=null!==(z=e.defaultInputValue)&&void 0!==z?z:null===(t=x.getItem(_))||void 0===t?void 0:t.textValue)&&void 0!==P?P:"",e.onInputChange),T=x,I=(0,a.useMemo)((()=>null==e.items&&o?function(e,t,n){return new(0,i.Jk)(u(e,e,t,n))}(x,A,o):x),[x,A,o,e.items]),[M,N]=(0,a.useState)(I),O=(0,a.useRef)("focus"),R=(0,l.T)({...e,onOpenChange:t=>{e.onOpenChange&&e.onOpenChange(t,t?O.current:void 0),S.setFocused(t),t||S.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),j=(t=null,n)=>{let r="manual"===n||"focus"===n&&"focus"===c;(d||I.size>0||r&&T.size>0||e.items)&&(r&&!R.isOpen&&void 0===e.items&&m(!0),O.current=n,b(t),R.open())},F=(0,a.useCallback)((()=>{N(f?T:I)}),[f,T,I]),B=(0,a.useCallback)(((e=null)=>{R.isOpen&&F(),b(e),R.toggle()}),[R,F]),L=(0,a.useCallback)((()=>{R.isOpen&&(F(),R.close())}),[R,F]),[V,K]=(0,a.useState)(A),H=()=>{var e,t;let n=null!==(t=null===(e=x.getItem(_))||void 0===e?void 0:e.textValue)&&void 0!==t?t:"";K(n),D(n)};var $,U;let W=(0,a.useRef)(null!==(U=null!==($=e.selectedKey)&&void 0!==$?$:e.defaultSelectedKey)&&void 0!==U?U:null);var q;let G=(0,a.useRef)(null!==(q=null===(n=x.getItem(_))||void 0===n?void 0:n.textValue)&&void 0!==q?q:"");(0,a.useEffect)((()=>{var t,n;g&&(I.size>0||d)&&!R.isOpen&&A!==V&&"manual"!==c&&j(null,"input"),f||d||!R.isOpen||0!==I.size||L(),null!=_&&_!==W.current&&L(),A!==V&&(S.setFocusedKey(null),m(!1),""!==A||void 0!==e.inputValue&&void 0!==e.selectedKey||C(null)),_===W.current||void 0!==e.inputValue&&void 0!==e.selectedKey?V!==A&&K(A):H();let r=null!==(n=null===(t=x.getItem(_))||void 0===t?void 0:t.textValue)&&void 0!==n?n:"";g||null==_||void 0!==e.inputValue||_!==W.current||G.current!==r&&(K(r),D(r)),W.current=_,G.current=r}));let Z=(0,r.KZ)({...e,value:(0,a.useMemo)((()=>({inputValue:A,selectedKey:_})),[A,_])}),Y=()=>{W.current=null,C(null),L()},X=()=>{if(void 0!==e.selectedKey&&void 0!==e.inputValue){var t,n;e.onSelectionChange(_);let r=null!==(n=null===(t=x.getItem(_))||void 0===t?void 0:t.textValue)&&void 0!==n?n:"";K(r),L()}else H(),L()};const J=()=>{if(p){var e,t;const n=null!==(t=null===(e=x.getItem(_))||void 0===e?void 0:e.textValue)&&void 0!==t?t:"";A===n?X():Y()}else X()};let Q=(0,a.useRef)(A),ee=(0,a.useMemo)((()=>R.isOpen?f?T:I:M),[R.isOpen,T,I,f,M]);return{...Z,...R,focusStrategy:y,toggle:(t=null,n)=>{let r="manual"===n||"focus"===n&&"focus"===c;(d||I.size>0||r&&T.size>0||e.items||R.isOpen)&&(r&&!R.isOpen&&void 0===e.items&&m(!0),R.isOpen||(O.current=n),B(t))},open:j,close:J,selectionManager:S,selectedKey:_,setSelectedKey:C,disabledKeys:k,isFocused:g,setFocused:t=>{t?(Q.current=A,"focus"!==c||e.isReadOnly||j(null,"focus")):(h&&J(),A!==Q.current&&Z.commitValidation()),v(t)},selectedItem:E,collection:ee,inputValue:A,setInputValue:D,commit:()=>{R.isOpen&&null!=S.focusedKey?_===S.focusedKey?X():C(S.focusedKey):J()},revert:()=>{p&&null==_?Y():X()}}}function u(e,t,n,r){let i=[];for(let a of t)if("section"===a.type&&a.hasChildNodes){let t=u(e,(0,o.iQ)(a,e),n,r);[...t].some((e=>"item"===e.type))&&i.push({...a,childNodes:t})}else("item"===a.type&&r(a.textValue,n)||"item"!==a.type)&&i.push({...a});return i}},33939:(e,t,n)=>{"use strict";n.d(t,{um:()=>o,Uj:()=>l});var r=n(96540);function o(e){let{initialItems:t=[],initialSelectedKeys:n,getKey:o=e=>{var t;return null!==(t=e.id)&&void 0!==t?t:e.key},filter:a,initialFilterText:s=""}=e,[l,c]=(0,r.useState)({items:t,selectedKeys:"all"===n?"all":new Set(n||[]),filterText:s}),u=(0,r.useMemo)((()=>a?l.items.filter((e=>a(e,l.filterText))):l.items),[l.items,l.filterText,a]);return{...l,items:u,...i({getKey:o},c),getItem:e=>l.items.find((t=>o(t)===e))}}function i(e,t){let{cursor:n,getKey:r}=e;return{setSelectedKeys(e){t((t=>({...t,selectedKeys:e})))},setFilterText(e){t((t=>({...t,filterText:e})))},insert(e,...n){t((t=>a(t,e,...n)))},insertBefore(e,...n){t((t=>{let o=t.items.findIndex((t=>r(t)===e));if(-1===o){if(0!==t.items.length)return t;o=0}return a(t,o,...n)}))},insertAfter(e,...n){t((t=>{let o=t.items.findIndex((t=>r(t)===e));if(-1===o){if(0!==t.items.length)return t;o=0}return a(t,o+1,...n)}))},prepend(...e){t((t=>a(t,0,...e)))},append(...e){t((t=>a(t,t.items.length,...e)))},remove(...e){t((t=>{let o=new Set(e),i=t.items.filter((e=>!o.has(r(e)))),a="all";if("all"!==t.selectedKeys){a=new Set(t.selectedKeys);for(let t of e)a.delete(t)}return null==n&&0===i.length&&(a=new Set),{...t,items:i,selectedKeys:a}}))},removeSelectedItems(){t((e=>{if("all"===e.selectedKeys)return{...e,items:[],selectedKeys:new Set};let t=e.selectedKeys,n=e.items.filter((e=>!t.has(r(e))));return{...e,items:n,selectedKeys:new Set}}))},move(e,n){t((t=>{let o=t.items.findIndex((t=>r(t)===e));if(-1===o)return t;let i=t.items.slice(),[a]=i.splice(o,1);return i.splice(n,0,a),{...t,items:i}}))},moveBefore(e,n){t((t=>{let o=t.items.findIndex((t=>r(t)===e));if(-1===o)return t;let i=(Array.isArray(n)?n:[...n]).map((e=>t.items.findIndex((t=>r(t)===e)))).sort(((e,t)=>e-t));return s(t,i,o)}))},moveAfter(e,n){t((t=>{let o=t.items.findIndex((t=>r(t)===e));if(-1===o)return t;let i=(Array.isArray(n)?n:[...n]).map((e=>t.items.findIndex((t=>r(t)===e)))).sort(((e,t)=>e-t));return s(t,i,o+1)}))},update(e,n){t((t=>{let o=t.items.findIndex((t=>r(t)===e));return-1===o?t:{...t,items:[...t.items.slice(0,o),n,...t.items.slice(o+1)]}}))}}}function a(e,t,...n){return{...e,items:[...e.items.slice(0,t),...n,...e.items.slice(t)]}}function s(e,t,n){n-=t.filter((e=>e<n)).length;let r=t.map((e=>({from:e,to:n++})));for(let e=0;e<r.length;e++){let t=r[e].from;for(let n=e;n<r.length;n++){r[n].from>t&&r[n].from--}}for(let e=0;e<r.length;e++){let t=r[e];for(let n=r.length-1;n>e;n--){let e=r[n];e.from<t.to?t.to++:e.from++}}let o=e.items.slice();for(let e of r){let[t]=o.splice(e.from,1);o.splice(e.to,0,t)}return{...e,items:o}}function l(e){let{initialItems:t=[],initialSelectedKeys:n,getKey:o=e=>e.id||e.key,getChildren:i=e=>e.children}=e,[a,s]=(0,r.useState)((()=>p(t,new Map))),{items:l,nodeMap:c}=a,[u,d]=(0,r.useState)(new Set(n||[]));function p(e=[],t,n){return{items:e.map((e=>{let r={key:o(e),parentKey:n,value:e,children:null};return r.children=p(i(e),t,r.key).items,t.set(r.key,r),r})),nodeMap:t}}function h(e,t,n,r){let o=r.get(t);if(!o)return{items:e,nodeMap:r};let i=new Map(r),a=n(o);for(null==a?m(o,i):f(a,i);o.parentKey;){let e=i.get(o.parentKey),t={key:e.key,parentKey:e.parentKey,value:e.value,children:null},n=e.children;null==a&&(n=n.filter((e=>e!==o))),t.children=n.map((e=>e===o?a:e)),i.set(t.key,t),a=t,o=e}return null==a&&(e=e.filter((e=>e!==o))),{items:e.map((e=>e===o?a:e)),nodeMap:i}}function f(e,t){t.set(e.key,e);for(let n of e.children)f(n,t)}function m(e,t){t.delete(e.key);for(let n of e.children)m(n,t)}return{items:l,selectedKeys:u,setSelectedKeys:d,getItem:e=>c.get(e),insert(e,t,...n){s((({items:r,nodeMap:o})=>{let{items:i,nodeMap:a}=p(n,o,e);return null==e?{items:[...r.slice(0,t),...i,...r.slice(t)],nodeMap:a}:h(r,e,(e=>({key:e.key,parentKey:e.parentKey,value:e.value,children:[...e.children.slice(0,t),...i,...e.children.slice(t)]})),a)}))},insertBefore(e,...t){let n=c.get(e);if(!n)return;let r=c.get(n.parentKey),o=(r?r.children:l).indexOf(n);this.insert(null==r?void 0:r.key,o,...t)},insertAfter(e,...t){let n=c.get(e);if(!n)return;let r=c.get(n.parentKey),o=(r?r.children:l).indexOf(n);this.insert(null==r?void 0:r.key,o+1,...t)},prepend(e,...t){this.insert(e,0,...t)},append(e,...t){if(null==e)this.insert(null,l.length,...t);else{let n=c.get(e);if(!n)return;this.insert(e,n.children.length,...t)}},remove(...e){if(0===e.length)return;let t,n=l,r=c;for(let o of e)t=h(n,o,(()=>null),r),r=t.nodeMap,n=t.items;s(t);let o=new Set(u);for(let e of u)t.nodeMap.has(e)||o.delete(e);d(o)},removeSelectedItems(){this.remove(...u)},move(e,t,n){s((({items:r,nodeMap:o})=>{let i=o.get(e);if(!i)return{items:r,nodeMap:o};let{items:a,nodeMap:s}=h(r,e,(()=>null),o);const l={...i,parentKey:t};return null==t?(s.set(l.key,l),{items:[...a.slice(0,n),l,...a.slice(n)],nodeMap:s}):h(a,t,(e=>({key:e.key,parentKey:e.parentKey,value:e.value,children:[...e.children.slice(0,n),l,...e.children.slice(n)]})),s)}))},update(e,t){s((({items:n,nodeMap:r})=>h(n,e,(e=>{let n={key:e.key,parentKey:e.parentKey,value:t,children:null},o=p(i(t),r,n.key);return n.children=o.items,n}),r)))}}}},94825:(e,t,n)=>{"use strict";var r;r={"ar-AE":{rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."},"bg-BG":{rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."},"cs-CZ":{rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."},"da-DK":{rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."},"de-DE":{rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."},"el-GR":{rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."},"en-US":{rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."},"es-ES":{rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."},"et-EE":{rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."},"fi-FI":{rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."},"fr-FR":{rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."},"he-IL":{rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."},"hr-HR":{rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."},"hu-HU":{rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."},"it-IT":{rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."},"ja-JP":{rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"},"ko-KR":{rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."},"lt-LT":{rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."},"lv-LV":{rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."},"nb-NO":{rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."},"nl-NL":{rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."},"pl-PL":{rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."},"pt-BR":{rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."},"pt-PT":{rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."},"ro-RO":{rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."},"ru-RU":{rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."},"sk-SK":{rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."},"sl-SI":{rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."},"sr-SP":{rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."},"sv-SE":{rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."},"tr-TR":{rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."},"uk-UA":{rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."},"zh-CN":{rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"},"zh-TW":{rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"}};n(34361);var o=n(5533);n(32144),n(96540);new(0,o.B)((i=r)&&i.__esModule?i.default:i);var i;n(16154),n(9772);new(0,o.B)({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en")},96879:(e,t,n)=>{"use strict";n.d(t,{u:()=>o,e:()=>i});var r=n(96540);function o(e){let{getItems:t,isDisabled:n,collection:o,selectionManager:i,onDragStart:a,onDragMove:s,onDragEnd:l,preview:c,getAllowedDropOperations:u}=e,[,d]=(0,r.useState)(!1),p=(0,r.useRef)(new Set),h=(0,r.useRef)(null),f=e=>{let t=new Set(i.isSelected(e)?new Set([...i.selectedKeys].filter((e=>!!o.getItem(e)))):[]);return t.add(e),t};return{collection:o,selectionManager:i,get draggedKey(){return h.current},get draggingKeys(){return p.current},isDragging:e=>p.current.has(e),getKeysForDrag:f,getItems:e=>t(f(e)),isDisabled:n,preview:c,getAllowedDropOperations:u,startDrag(e,t){let n=f(e);p.current=n,h.current=e,i.setFocused(!1),d(!0),"function"==typeof a&&a({...t,keys:n})},moveDrag(e){"function"==typeof s&&s({...e,keys:p.current})},endDrag(e){let{isInternal:t}=e;"function"==typeof l&&l({...e,keys:p.current,isInternal:t}),p.current=new Set,h.current=null,d(!1)}}}function i(e){let{acceptedDragTypes:t="all",isDisabled:n,onInsert:o,onRootDrop:i,onItemDrop:s,onReorder:l,shouldAcceptItemDrop:c,collection:u,selectionManager:d,onDropEnter:p,getDropOperation:h,onDrop:f}=e,[m,g]=(0,r.useState)(null),v=(0,r.useRef)(null),y=e=>{if("before"===e.dropPosition){let t=u.getKeyBefore(e.key);return null!=t?{type:"item",key:t,dropPosition:"after"}:null}if("after"===e.dropPosition){let t=u.getKeyAfter(e.key);return null!=t?{type:"item",key:t,dropPosition:"before"}:null}},b=(0,r.useCallback)((e=>{if(n)return"cancel";let{target:r,types:a,allowedOperations:u,isInternal:d,draggingKeys:p}=e;if("all"===t||t.some((e=>a.has(e)))){let e=o&&"item"===r.type&&!d&&("before"===r.dropPosition||"after"===r.dropPosition),t=l&&"item"===r.type&&d&&("before"===r.dropPosition||"after"===r.dropPosition),n=i&&"root"===r.type&&!d,m=s&&"item"===r.type&&"on"===r.dropPosition&&!(d&&p.has(r.key))&&(!c||c(r,a));if(f||e||t||n||m)return h?h(r,a,u):u[0]}return"cancel"}),[n,t,h,o,i,s,c,l,f]);return{collection:u,selectionManager:d,isDisabled:n,target:m,setTarget(t){if(this.isDropTarget(t))return;let n=v.current;n&&"function"==typeof e.onDropExit&&e.onDropExit({type:"dropexit",x:0,y:0,target:n}),t&&"function"==typeof p&&p({type:"dropenter",x:0,y:0,target:t}),v.current=t,g(t)},isDropTarget(e){let t=v.current;return!!a(e,t)||"item"===(null==e?void 0:e.type)&&"item"===(null==t?void 0:t.type)&&e.key!==t.key&&e.dropPosition!==t.dropPosition&&"on"!==e.dropPosition&&"on"!==t.dropPosition&&(a(y(e),t)||a(e,y(t)))},getDropOperation:e=>b(e)}}function a(e,t){if(!e)return!t;switch(e.type){case"root":return"root"===(null==t?void 0:t.type);case"item":return"item"===(null==t?void 0:t.type)&&(null==t?void 0:t.key)===e.key&&(null==t?void 0:t.dropPosition)===e.dropPosition}}},87364:(e,t,n)=>{"use strict"},32144:(e,t,n)=>{"use strict";n.d(t,{Lf:()=>l,KZ:()=>c});var r=n(96540);const o={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},i={...o,customError:!0,valid:!1},a={isInvalid:!1,validationDetails:o,validationErrors:[]},s=(0,r.createContext)({}),l="__formValidationState"+Date.now();function c(e){if(e[l]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}=e[l];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}}return function(e){let{isInvalid:t,validationState:n,name:o,value:l,builtinValidation:c,validate:h,validationBehavior:f="aria"}=e;n&&(t||(t="invalid"===n));let m=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:i}:null,g=(0,r.useMemo)((()=>d(function(e,t){if("function"==typeof e){let n=e(t);if(n&&"boolean"!=typeof n)return u(n)}return[]}(h,l))),[h,l]);(null==c?void 0:c.validationDetails.valid)&&(c=null);let v=(0,r.useContext)(s),y=(0,r.useMemo)((()=>o?Array.isArray(o)?o.flatMap((e=>u(v[e]))):u(v[o]):[]),[v,o]),[b,w]=(0,r.useState)(v),[x,S]=(0,r.useState)(!1);v!==b&&(w(v),S(!1));let _=(0,r.useMemo)((()=>d(x?[]:y)),[x,y]),C=(0,r.useRef)(a),[E,k]=(0,r.useState)(a),z=(0,r.useRef)(a),P=()=>{if(!A)return;D(!1);let e=g||c||C.current;p(e,z.current)||(z.current=e,k(e))},[A,D]=(0,r.useState)(!1);return(0,r.useEffect)(P),{realtimeValidation:m||_||g||c||a,displayValidation:"native"===f?m||_||E:m||_||g||c||E,updateValidation(e){"aria"!==f||p(E,e)?C.current=e:k(e)},resetValidation(){let e=a;p(e,z.current)||(z.current=e,k(e)),"native"===f&&D(!1),S(!0)},commitValidation(){"native"===f&&D(!0),S(!0)}}}(e)}function u(e){return e?Array.isArray(e)?e:[e]:[]}function d(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:i}:null}function p(e,t){return e===t||e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every(((e,n)=>e===t.validationErrors[n]))&&Object.entries(e.validationDetails).every((([e,n])=>t.validationDetails[e]===n))}},25414:(e,t,n)=>{"use strict";n.d(t,{Jk:()=>r,pE:()=>s,Vi:()=>c});class r{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){this.keyMap=new Map,this.iterable=e;let t,n=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let t of e.childNodes)n(t)};for(let t of e)n(t);let r=0;for(let[e,n]of this.keyMap)t?(t.nextKey=e,n.prevKey=t.key):(this.firstKey=e,n.prevKey=void 0),"item"===n.type&&(n.index=r++),t=n,t.nextKey=void 0;this.lastKey=null==t?void 0:t.key}}var o=n(26591),i=n(96540),a=n(72114);function s(e){let{filter:t}=e,n=(0,o.R)(e),s=(0,i.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),l=(0,i.useCallback)((e=>new r(t?t(e):e)),[t]),c=(0,i.useMemo)((()=>({suppressTextValueWarning:e.suppressTextValueWarning})),[e.suppressTextValueWarning]),u=(0,a.Ge)(e,l,c),d=(0,i.useMemo)((()=>new(0,o.Y)(u,n)),[u,n]);const p=(0,i.useRef)(null);return(0,i.useEffect)((()=>{if(null!=n.focusedKey&&!u.getItem(n.focusedKey)){const e=p.current.getItem(n.focusedKey),t=[...p.current.getKeys()].map((e=>{const t=p.current.getItem(e);return"item"===t.type?t:null})).filter((e=>null!==e)),r=[...u.getKeys()].map((e=>{const t=u.getItem(e);return"item"===t.type?t:null})).filter((e=>null!==e)),o=t.length-r.length;let i,a=Math.min(o>1?Math.max(e.index-o+1,0):e.index,r.length-1),s=!1;for(;a>=0;){if(!d.isDisabled(r[a].key)){i=r[a];break}a<r.length-1&&!s?a++:(s=!0,a>e.index&&(a=e.index),a--)}n.setFocusedKey(i?i.key:null)}p.current=u}),[u,d,n,n.focusedKey]),{collection:u,disabledKeys:s,selectionManager:d}}var l=n(9772);function c(e){var t;let[n,r]=(0,l.PW)(e.selectedKey,null!==(t=e.defaultSelectedKey)&&void 0!==t?t:null,e.onSelectionChange),o=(0,i.useMemo)((()=>null!=n?[n]:[]),[n]),{collection:a,disabledKeys:c,selectionManager:u}=s({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:t=>{var o;let i=null!==(o=t.values().next().value)&&void 0!==o?o:null;i===n&&e.onSelectionChange&&e.onSelectionChange(i),r(i)}}),d=null!=n?a.getItem(n):null;return{collection:a,disabledKeys:c,selectionManager:u,selectedKey:n,setSelectedKey:r,selectedItem:d}}},46827:(e,t,n)=>{"use strict";n.d(t,{I:()=>i});var r=n(16154),o=n(96540);function i(e){let t=(0,r.T)(e),[n,i]=(0,o.useState)(null),[a,s]=(0,o.useState)([]);return{focusStrategy:n,...t,open(e=null){i(e),t.open()},toggle(e=null){i(e),t.toggle()},close(){s([]),t.close()},expandedKeysStack:a,openSubmenu:(e,t)=>{s((n=>t>n.length?n:[...n.slice(0,t),e]))},closeSubmenu:(e,t)=>{s((n=>n[t]===e?n.slice(0,t):n))}}}},49858:(e,t,n)=>{"use strict";n.d(t,{s:()=>s});var r=n(9772),o=n(32144),i=n(37515),a=n(96540);function s(e){let{minValue:t,maxValue:n,step:s,formatOptions:c,value:u,defaultValue:d=NaN,onChange:p,locale:h,isDisabled:f,isReadOnly:m}=e;null===u&&(u=NaN),void 0===u||isNaN(u)||(u=void 0===s||isNaN(s)?(0,r.qE)(u,t,n):(0,r.BU)(u,t,n,s)),isNaN(d)||(d=void 0===s||isNaN(s)?(0,r.qE)(d,t,n):(0,r.BU)(d,t,n,s));let[g,v]=(0,r.PW)(u,isNaN(d)?NaN:d,p),[y,b]=(0,a.useState)((()=>isNaN(g)?"":new(0,i.K)(h,c).format(g))),w=(0,a.useMemo)((()=>new(0,i.d)(h,c)),[h,c]),x=(0,a.useMemo)((()=>w.getNumberingSystem(y)),[w,y]),S=(0,a.useMemo)((()=>new(0,i.K)(h,{...c,numberingSystem:x})),[h,c,x]),_=(0,a.useMemo)((()=>S.resolvedOptions()),[S]),C=(0,a.useCallback)((e=>isNaN(e)||null===e?"":S.format(e)),[S]),E=(0,o.KZ)({...e,value:g}),k=void 0===s||isNaN(s)?1:s;"percent"!==_.style||void 0!==s&&!isNaN(s)||(k=.01);let[z,P]=(0,a.useState)(g),[A,D]=(0,a.useState)(h),[T,I]=(0,a.useState)(c);Object.is(g,z)&&h===A&&c===T||(b(C(g)),P(g),D(h),I(c));let M=(0,a.useMemo)((()=>w.parse(y)),[w,y]),N=(e,o=0)=>{let i=M;if(isNaN(i)){let e=isNaN(o)?0:o;return(0,r.BU)(e,t,n,k)}{let o=(0,r.BU)(i,t,n,k);return"+"===e&&o>i||"-"===e&&o<i?o:(0,r.BU)(l(e,i,k),t,n,k)}},O=(0,a.useMemo)((()=>!f&&!m&&(isNaN(M)||void 0===n||isNaN(n)||(0,r.BU)(M,t,n,k)>M||l("+",M,k)<=n)),[f,m,t,n,k,M]),R=(0,a.useMemo)((()=>!f&&!m&&(isNaN(M)||void 0===t||isNaN(t)||(0,r.BU)(M,t,n,k)<M||l("-",M,k)>=t)),[f,m,t,n,k,M]);return{...E,validate:e=>w.isValidPartialNumber(e,t,n),increment:()=>{let e=N("+",t);e===g&&b(C(e)),v(e),E.commitValidation()},incrementToMax:()=>{null!=n&&(v((0,r.BU)(n,t,n,k)),E.commitValidation())},decrement:()=>{let e=N("-",n);e===g&&b(C(e)),v(e),E.commitValidation()},decrementToMin:()=>{null!=t&&(v(t),E.commitValidation())},canIncrement:O,canDecrement:R,minValue:t,maxValue:n,numberValue:M,setNumberValue:v,setInputValue:b,inputValue:y,commit:()=>{if(!y.length)return v(NaN),void b(void 0===u?"":C(g));if(isNaN(M))return void b(C(g));let e;e=void 0===s||isNaN(s)?(0,r.qE)(M,t,n):(0,r.BU)(M,t,n,s),e=w.parse(C(e)),v(e),b(C(void 0===u?e:g))}}}function l(e,t,n){let r="+"===e?t+n:t-n;if(t%1!=0||n%1!=0){const o=t.toString().split("."),i=n.toString().split("."),a=o[1]&&o[1].length||0,s=i[1]&&i[1].length||0,l=Math.pow(10,Math.max(a,s));t=Math.round(t*l),n=Math.round(n*l),r="+"===e?t+n:t-n,r/=l}return r}},16154:(e,t,n)=>{"use strict";n.d(t,{T:()=>i});var r=n(96540),o=n(9772);function i(e){let[t,n]=(0,o.PW)(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const i=(0,r.useCallback)((()=>{n(!0)}),[n]),a=(0,r.useCallback)((()=>{n(!1)}),[n]),s=(0,r.useCallback)((()=>{n(!t)}),[n,t]);return{isOpen:t,setOpen:n,open:i,close:a,toggle:s}}},63536:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(32144),o=n(9772),i=n(96540);let a=Math.round(1e10*Math.random()),s=0;function l(e){let t=(0,i.useMemo)((()=>e.name||`radio-group-${a}-${++s}`),[e.name]);var n;let[l,c]=(0,o.PW)(e.value,null!==(n=e.defaultValue)&&void 0!==n?n:null,e.onChange),[u,d]=(0,i.useState)(null),p=(0,r.KZ)({...e,value:l}),h=p.displayValidation.isInvalid;return{...p,name:t,selectedValue:l,setSelectedValue:t=>{e.isReadOnly||e.isDisabled||(c(t),p.commitValidation())},lastFocusedValue:u,setLastFocusedValue:d,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(h?"invalid":null),isInvalid:h}}},58366:(e,t,n)=>{"use strict";n.d(t,{V:()=>o});var r=n(9772);function o(e){let[t,n]=(0,r.PW)(i(e.value),i(e.defaultValue)||"",e.onChange);return{value:t,setValue:n}}function i(e){if(null!=e)return e.toString()}},44841:(e,t,n)=>{"use strict";n.d(t,{n:()=>s});var r=n(32144),o=n(16154),i=n(25414),a=n(96540);function s(e){let t=(0,o.T)(e),[n,s]=(0,a.useState)(null),l=(0,i.Vi)({...e,onSelectionChange:n=>{null!=e.onSelectionChange&&e.onSelectionChange(n),t.close(),c.commitValidation()}}),c=(0,r.KZ)({...e,value:l.selectedKey}),[u,d]=(0,a.useState)(!1);return{...c,...l,...t,focusStrategy:n,open(e=null){0!==l.collection.size&&(s(e),t.open())},toggle(e=null){0!==l.collection.size&&(s(e),t.toggle())},isFocused:u,setFocused:d}}},26591:(e,t,n)=>{"use strict";n.d(t,{Y:()=>c,R:()=>a});class r extends Set{constructor(e,t,n){super(e),e instanceof r?(this.anchorKey=t||e.anchorKey,this.currentKey=n||e.currentKey):(this.anchorKey=t,this.currentKey=n)}}var o=n(9772),i=n(96540);function a(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:a,selectionBehavior:l="toggle",disabledBehavior:c="all"}=e,u=(0,i.useRef)(!1),[,d]=(0,i.useState)(!1),p=(0,i.useRef)(null),h=(0,i.useRef)(null),[,f]=(0,i.useState)(null),m=(0,i.useMemo)((()=>s(e.selectedKeys)),[e.selectedKeys]),g=(0,i.useMemo)((()=>s(e.defaultSelectedKeys,new r)),[e.defaultSelectedKeys]),[v,y]=(0,o.PW)(m,g,e.onSelectionChange),b=(0,i.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),[w,x]=(0,i.useState)(l);"replace"===l&&"toggle"===w&&"object"==typeof v&&0===v.size&&x("replace");let S=(0,i.useRef)(l);return(0,i.useEffect)((()=>{l!==S.current&&(x(l),S.current=l)}),[l]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:w,setSelectionBehavior:x,get isFocused(){return u.current},setFocused(e){u.current=e,d(e)},get focusedKey(){return p.current},get childFocusStrategy(){return h.current},setFocusedKey(e,t="first"){p.current=e,h.current=t,f(e)},selectedKeys:v,setSelectedKeys(e){!a&&function(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(e,v)||y(e)},disabledKeys:b,disabledBehavior:c}}function s(e,t){return e?"all"===e?"all":new r(e):t}var l=n(72114);class c{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?this.canSelectItem(e):this.state.selectedKeys.has(e))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every((e=>t.has(e))),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&(0,l.o3)(this.collection,n,e)<0)&&(e=n)}return null==e?void 0:e.key}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&(0,l.o3)(this.collection,n,e)>0)&&(e=n)}return null==e?void 0:e.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode)return void this.replaceSelection(e);let t;if(e=this.getKey(e),"all"===this.state.selectedKeys)t=new r([e],e,e);else{let n=this.state.selectedKeys,o=n.anchorKey||e;t=new r(n,o,e);for(let r of this.getKeyRange(o,n.currentKey||e))t.delete(r);for(let n of this.getKeyRange(e,o))this.canSelectItem(n)&&t.add(n)}this.state.setSelectedKeys(t)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?(0,l.o3)(this.collection,n,r)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let n=[],r=e;for(;r;){let e=this.collection.getItem(r);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&n.push(r),r===t)return n;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t)return e;if("cell"===t.type&&this.allowsCellSelection)return e;for(;"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e))return void this.replaceSelection(e);if(null==(e=this.getKey(e)))return;let t=new r("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):this.canSelectItem(e)&&(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){if("none"===this.selectionMode)return;if(null==(e=this.getKey(e)))return;let t=this.canSelectItem(e)?new r([e],e,e):new r;this.state.setSelectedKeys(t)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new r;for(let n of e)if(n=this.getKey(n),null!=n&&(t.add(n),"single"===this.selectionMode))break;this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;null!=n;){if(this.canSelectItem(n)){let r=this.collection.getItem(n);"item"===r.type&&e.push(n),r.hasChildNodes&&(this.allowsCellSelection||"item"!==r.type)&&t((0,l.ue)((0,l.iQ)(r,this.collection)).key)}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new r)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){var t;if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||(null==n||null===(t=n.props)||void 0===t?void 0:t.isDisabled)||"cell"===n.type&&!this.allowsCellSelection)}isDisabled(e){var t,n;return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.isDisabled))}isLink(e){var t,n;return!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.href)}getItemProps(e){var t;return null===(t=this.collection.getItem(e))||void 0===t?void 0:t.props}constructor(e,t,n){var r;this.collection=e,this.state=t,this.allowsCellSelection=null!==(r=null==n?void 0:n.allowsCellSelection)&&void 0!==r&&r,this._isSelectAll=null}}},43635:(e,t,n)=>{"use strict";n.d(t,{S:()=>l});var r=n(9772),o=n(96540);const i=0,a=100,s=1;function l(e){const{isDisabled:t=!1,minValue:n=i,maxValue:l=a,numberFormatter:p,step:h=s,orientation:f="horizontal"}=e;let m=(0,o.useMemo)((()=>{let e=(l-n)/10;return e=(0,r.BU)(e,0,e+h,h),Math.max(e,h)}),[h,l,n]),g=(0,o.useCallback)((e=>null==e?void 0:e.map(((t,o)=>{let i=0===o?n:t[o-1],a=o===e.length-1?l:t[o+1];return(0,r.BU)(t,i,a,h)}))),[n,l,h]),v=(0,o.useMemo)((()=>g(u(e.value))),[e.value]),y=(0,o.useMemo)((()=>{var t;return g(null!==(t=u(e.defaultValue))&&void 0!==t?t:[n])}),[e.defaultValue,n]),b=d(e.value,e.defaultValue,e.onChange),w=d(e.value,e.defaultValue,e.onChangeEnd);const[x,S]=(0,r.PW)(v,y,b),[_,C]=(0,o.useState)(new Array(x.length).fill(!1)),E=(0,o.useRef)(new Array(x.length).fill(!0)),[k,z]=(0,o.useState)(void 0),P=(0,o.useRef)(x),A=(0,o.useRef)(_);function D(e){return(e-n)/(l-n)}function T(e){return 0===e?n:x[e-1]}function I(e){return e===x.length-1?l:x[e+1]}function M(e){return E.current[e]}function N(e,n){if(t||!M(e))return;const o=T(e),i=I(e);n=(0,r.BU)(n,o,i,h),(e=>{P.current=e,S(e)})(c(P.current,e,n))}function O(e){return p.format(e)}function R(e){const t=e*(l-n)+n;return(0,r.qE)(function(e){return Math.round((e-n)/h)*h+n}(t),n,l)}return{values:x,getThumbValue:e=>x[e],setThumbValue:N,setThumbPercent:function(e,t){N(e,R(t))},isThumbDragging:e=>_[e],setThumbDragging:function(e,n){if(t||!M(e))return;n&&(P.current=x);const r=A.current[e];var o;A.current=c(A.current,e,n),o=A.current,A.current=o,C(o),w&&r&&!A.current.some(Boolean)&&w(P.current)},focusedThumb:k,setFocusedThumb:z,getThumbPercent:e=>D(x[e]),getValuePercent:D,getThumbValueLabel:e=>O(x[e]),getFormattedValue:O,getThumbMinValue:T,getThumbMaxValue:I,getPercentValue:R,isThumbEditable:M,setThumbEditable:function(e,t){E.current[e]=t},incrementThumb:function(e,t=1){let o=Math.max(t,h);N(e,(0,r.BU)(x[e]+o,n,l,h))},decrementThumb:function(e,t=1){let o=Math.max(t,h);N(e,(0,r.BU)(x[e]-o,n,l,h))},step:h,pageSize:m,orientation:f,isDisabled:t}}function c(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function u(e){if(null!=e)return Array.isArray(e)?e:[e]}function d(e,t,n){return r=>{"number"==typeof e||"number"==typeof t?null==n||n(r[0]):null==n||n(r)}}},99113:(e,t,n)=>{"use strict";var r=n(96540);n(72114),n(26591);class o{*[Symbol.iterator](){yield*[...this.rows]}get size(){return[...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){var e;return null===[...this.rows][0]||void 0===e?void 0:e.key}getLastKey(){var e;let t=[...this.rows];return null===t[t.length-1]||void 0===e?void 0:e.key}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=null==e?void 0:e.columnCount,this.rows=[];let t,n=t=>{let o=this.keyMap.get(t.key);e.visitNode&&e.visitNode(t),this.keyMap.set(t.key,t);let i,a=new Set;for(let e of t.childNodes)"cell"===e.type&&null==e.parentKey&&(e.parentKey=t.key),a.add(e.key),i?(i.nextKey=e.key,e.prevKey=i.key):e.prevKey=null,n(e);if(i&&(i.nextKey=null),o)for(let e of o.childNodes)a.has(e.key)||r(e)},r=e=>{this.keyMap.delete(e.key);for(let t of e.childNodes)this.keyMap.get(t.key)===t&&r(t)};e.items.forEach(((e,r)=>{let o={level:0,key:"row-"+r,type:"row",value:void 0,hasChildNodes:!0,childNodes:[...e.childNodes],rendered:void 0,textValue:void 0,...e};t?(t.nextKey=o.key,o.prevKey=t.key):o.prevKey=null,this.rows.push(o),n(o)})),t&&(t.nextKey=null)}}const i="row-header-column-"+Math.random().toString(36).slice(2);let a="row-header-column-"+Math.random().toString(36).slice(2);for(;i===a;)a="row-header-column-"+Math.random().toString(36).slice(2);Symbol.iterator;function s(e){return null}s.getCollectionNode=function*(e,t){let{children:n,columns:o}=e;if(t.columns=[],"function"==typeof n){if(!o)throw new Error("props.children was a function but props.columns is missing");for(let e of o)yield{type:"column",value:e,renderer:n}}else{let e=[];r.Children.forEach(n,(t=>{e.push({type:"column",element:t})})),yield*e}};function l(e){return null}l.getCollectionNode=function*(e){let{children:t,items:n}=e;yield{type:"body",hasChildNodes:!0,props:e,*childNodes(){if("function"==typeof t){if(!n)throw new Error("props.children was a function but props.items is missing");for(let e of n)yield{type:"item",value:e,renderer:t}}else{let e=[];r.Children.forEach(t,(t=>{e.push({type:"item",element:t})})),yield*e}}}};function c(e){return null}c.getCollectionNode=function*(e,t){let{title:n,children:o,childColumns:i}=e,a=n||o,s=e.textValue||("string"==typeof a?a:"")||e["aria-label"],l=yield{type:"column",hasChildNodes:!!i||n&&r.Children.count(o)>0,rendered:a,textValue:s,props:e,*childNodes(){if(i)for(let e of i)yield{type:"column",value:e};else if(n){let e=[];r.Children.forEach(o,(t=>{e.push({type:"column",element:t})})),yield*e}},shouldInvalidate:e=>(c(e),!1)},c=e=>{for(let t of l)t.hasChildNodes||e.columns.push(t)};c(t)};function u(e){return null}u.getCollectionNode=function*(e,t){let{children:n,textValue:o,UNSTABLE_childItems:i}=e;yield{type:"item",props:e,textValue:o,"aria-label":e["aria-label"],hasChildNodes:!0,*childNodes(){if(t.showDragButtons&&(yield{type:"cell",key:"header-drag",props:{isDragButtonCell:!0}}),t.showSelectionCheckboxes&&"none"!==t.selectionMode&&(yield{type:"cell",key:"header",props:{isSelectionCell:!0}}),"function"==typeof n){for(let e of t.columns)yield{type:"cell",element:n(e.key),key:e.key};if(i)for(let e of i)yield{type:"item",value:e}}else{let e=[],o=[];if(r.Children.forEach(n,(n=>{if(n.type===u){if(e.length<t.columns.length)throw new Error("All of a Row's child Cells must be positioned before any child Rows.");o.push({type:"item",element:n})}else e.push({type:"cell",element:n})})),e.length!==t.columns.length)throw new Error(`Cell count must match column count. Found ${e.length} cells and ${t.columns.length} columns.`);yield*e,yield*o}},shouldInvalidate:e=>e.columns.length!==t.columns.length||e.columns.some(((e,n)=>e.key!==t.columns[n].key))||e.showSelectionCheckboxes!==t.showSelectionCheckboxes||e.showDragButtons!==t.showDragButtons||e.selectionMode!==t.selectionMode}};function d(e){return null}d.getCollectionNode=function*(e){let{children:t}=e,n=e.textValue||("string"==typeof t?t:"")||e["aria-label"]||"";yield{type:"cell",props:e,rendered:t,textValue:n,"aria-label":e["aria-label"],hasChildNodes:!1}};n(87364),n(9772)},1568:(e,t,n)=>{"use strict";n.d(t,{g:()=>i});var r=n(25414),o=n(96540);function i(e){var t;let n=(0,r.Vi)({...e,suppressTextValueWarning:!0,defaultSelectedKey:null!==(t=e.defaultSelectedKey)&&void 0!==t?t:a(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)}),{selectionManager:i,collection:s,selectedKey:l}=n,c=(0,o.useRef)(l);return(0,o.useEffect)((()=>{let e=l;!i.isEmpty&&s.getItem(e)||(e=a(s,n.disabledKeys),null!=e&&i.setSelectedKeys([e])),(null!=e&&null==i.focusedKey||!i.isFocused&&e!==c.current)&&i.setFocusedKey(e),c.current=e})),{...n,isDisabled:e.isDisabled||!1}}function a(e,t){let n=null;if(e){var r,o,i,a;for(n=e.getFirstKey();(t.has(n)||(null===(o=e.getItem(n))||void 0===o||null===(r=o.props)||void 0===r?void 0:r.isDisabled))&&n!==e.getLastKey();)n=e.getKeyAfter(n);(t.has(n)||(null===(a=e.getItem(n))||void 0===a||null===(i=a.props)||void 0===i?void 0:i.isDisabled))&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}},57905:(e,t,n)=>{"use strict";var r=n(96540);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),a((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},54516:(e,t,n)=>{"use strict";e.exports=n(57905)},27538:(e,t,n)=>{"use strict";n.d(t,{H:()=>o});var r=n(9772);function o(e={}){let{isReadOnly:t}=e,[n,o]=(0,r.PW)(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:n,setSelected:function(e){t||o(e)},toggle:function(){t||o(!n)}}}},79291:(e,t,n)=>{"use strict";n.d(t,{O:()=>p});var r=n(96540),o=n(16154);const i=1500,a=500;let s={},l=0,c=!1,u=null,d=null;function p(e={}){let{delay:t=i,closeDelay:n=a}=e,{isOpen:p,open:h,close:f}=(0,o.T)(e),m=(0,r.useMemo)((()=>""+ ++l),[]),g=(0,r.useRef)(void 0),v=(0,r.useRef)(f),y=()=>{s[m]=x},b=()=>{for(let e in s)e!==m&&(s[e](!0),delete s[e])},w=()=>{clearTimeout(g.current),g.current=null,b(),y(),c=!0,h(),u&&(clearTimeout(u),u=null),d&&(clearTimeout(d),d=null)},x=e=>{e||n<=0?(clearTimeout(g.current),g.current=null,v.current()):g.current||(g.current=setTimeout((()=>{g.current=null,v.current()}),n)),u&&(clearTimeout(u),u=null),c&&(d&&clearTimeout(d),d=setTimeout((()=>{delete s[m],d=null,c=!1}),Math.max(a,n)))};return(0,r.useEffect)((()=>{v.current=f}),[f]),(0,r.useEffect)((()=>()=>{clearTimeout(g.current),s[m]&&delete s[m]}),[m]),{isOpen:p,open:e=>{!e&&t>0&&!g.current?(b(),y(),p||u||c?p||w():u=setTimeout((()=>{u=null,c=!0,w()}),t)):w()},close:x}}},88173:(e,t,n)=>{"use strict";n.d(t,{p:()=>l});class r{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.iterable=e,t=t||new Set;let n,r=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&("section"===e.type||t.has(e.key)))for(let t of e.childNodes)r(t)};for(let t of e)r(t);let o=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=o++),n=t,n.nextKey=void 0;this.lastKey=null==n?void 0:n.key}}var o=n(26591),i=n(96540),a=n(72114),s=n(9772);function l(e){let{onExpandedChange:t}=e,[n,l]=(0,s.PW)(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),c=(0,o.R)(e),u=(0,i.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),d=(0,a.Ge)(e,(0,i.useCallback)((e=>new r(e,{expandedKeys:n})),[n]),null);(0,i.useEffect)((()=>{null==c.focusedKey||d.getItem(c.focusedKey)||c.setFocusedKey(null)}),[d,c.focusedKey]);return{collection:d,expandedKeys:n,disabledKeys:u,toggleKey:e=>{l(function(e,t){let n=new Set(e);n.has(t)?n.delete(t):n.add(t);return n}(n,e))},setExpandedKeys:l,selectionManager:new(0,o.Y)(d,c)}}},9772:(e,t,n)=>{"use strict";n.d(t,{qE:()=>i,BU:()=>s,Nh:()=>l,PW:()=>o});var r=n(96540);function o(e,t,n){let[o,i]=(0,r.useState)(e||t),a=(0,r.useRef)(void 0!==e),s=void 0!==e;(0,r.useEffect)((()=>{let e=a.current;e!==s&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s}),[s]);let l=s?e:o,c=(0,r.useCallback)(((e,...t)=>{let r=(e,...t)=>{n&&(Object.is(l,e)||n(e,...t)),s||(l=e)};if("function"==typeof e){console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i(((n,...o)=>{let i=e(s?l:n,...o);return r(i,...t),s?n:i}))}else s||i(e),r(e,...t)}),[s,l,n]);return[l,c]}function i(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function a(e,t){let n=e,r=t.toString(),o=r.indexOf("."),i=o>=0?r.length-o:0;if(i>0){let e=Math.pow(10,i);n=Math.round(n*e)/e}return n}function s(e,t,n,r){t=Number(t),n=Number(n);let o=(e-(isNaN(t)?0:t))%r,i=a(2*Math.abs(o)>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o,r);return isNaN(t)?!isNaN(n)&&i>n&&(i=Math.floor(a(n/r,r))*r):i<t?i=t:!isNaN(n)&&i>n&&(i=t+Math.floor(a((n-t)/r,r))*r),i=a(i,r),i}function l(e,t,n=10){const r=Math.pow(n,t);return Math.round(e*r)/r}},37433:(e,t,n)=>{"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{U1:()=>N,Mz:()=>y,Z0:()=>B});var o=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),i=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};function s(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function l(e,t,n){if("function"!=typeof e)throw new Error(r(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(r(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(r(1));return n(l)(e,t)}let i=e,c=t,u=new Map,d=u,p=0,h=!1;function f(){d===u&&(d=new Map,u.forEach(((e,t)=>{d.set(t,e)})))}function m(){if(h)throw new Error(r(3));return c}function g(e){if("function"!=typeof e)throw new Error(r(4));if(h)throw new Error(r(5));let t=!0;f();const n=p++;return d.set(n,e),function(){if(t){if(h)throw new Error(r(6));t=!1,f(),d.delete(n),u=null}}}function v(e){if(!s(e))throw new Error(r(7));if(void 0===e.type)throw new Error(r(8));if("string"!=typeof e.type)throw new Error(r(17));if(h)throw new Error(r(9));try{h=!0,c=i(c,e)}finally{h=!1}return(u=d).forEach((e=>{e()})),e}v({type:a.INIT});return{dispatch:v,subscribe:g,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));i=e,v({type:a.REPLACE})},[o]:function(){const e=g;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(m())}n();return{unsubscribe:e(n)}},[o](){return this}}}}}function c(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}const o=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:a.INIT}))throw new Error(r(12));if(void 0===n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1;const s={};for(let i=0;i<o.length;i++){const l=o[i],c=n[l],u=e[l],d=c(u,t);if(void 0===d){t&&t.type;throw new Error(r(14))}s[l]=d,a=a||d!==u}return a=a||o.length!==Object.keys(e).length,a?s:e}}function u(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}var d=n(73575);function p(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}var h=e=>Array.isArray(e)?e:[e];function f(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var m="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function g(e,t={}){let n={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:r}=t;let o,i=0;function a(){let t=n;const{length:a}=arguments;for(let e=0,n=a;e<n;e++){const n=arguments[e];if("function"==typeof n||"object"==typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t={s:0,v:void 0,o:null,p:null},e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t={s:0,v:void 0,o:null,p:null},e.set(n,t)):t=r}}const s=t;let l;if(1===t.s?l=t.v:(l=e.apply(null,arguments),i++),s.s=1,r){const e=o?.deref?.()??o;null!=e&&r(e,l)&&(l=e,0!==i&&i--);o="object"==typeof l&&null!==l||"function"==typeof l?new m(l):l}return s.v=l,l}return a.clearCache=()=>{n={s:0,v:void 0,o:null,p:null},a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function v(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,o=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),p(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const s={...n,...i},{memoize:l,memoizeOptions:c=[],argsMemoize:u=g,argsMemoizeOptions:d=[],devModeChecks:m={}}=s,v=h(c),y=h(d),b=f(e),w=l((function(){return r++,a.apply(null,arguments)}),...v);const x=u((function(){o++;const e=function(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}(b,arguments);return t=w.apply(null,e),t}),...y);return Object.assign(x,{resultFunc:a,memoizedResultFunc:w,dependencies:b,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:l,argsMemoize:u})};return Object.assign(r,{withTypes:()=>r}),r}var y=v(g),b=Object.assign(((e,t=y)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>b});function w(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}var x=w(),S=w,_=(((...e)=>{const t=v(...e)})(g),"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?u:u.apply(null,arguments)});"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function C(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(H(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>function(e){return s(e)&&"type"in e&&"string"==typeof e.type}(t)&&t.type===e,n}var E=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function k(e){return(0,d.a6)(e)?(0,d.jM)(e,(()=>{})):e}function z(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(H(10));const r=n.insert(t,e);return e.set(t,r),r}var P=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let i=new E;return t&&("boolean"==typeof t?i.push(x):i.push(S(t.extraArgument))),i},A="RTK_autoBatch",D=e=>t=>{setTimeout(t,e)},T="undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:D(10),I=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new E(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,a=!1;const s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?T:"callback"===e.type?e.queueNotification:D(e.timeout),c=()=>{a=!1,i&&(i=!1,s.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>o&&e()));return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return o=!e?.meta?.[A],i=!o,i&&(a||(a=!0,l(c))),r.dispatch(e)}finally{o=!0}}})})("object"==typeof n?n:void 0)),r},M=!0;function N(e){const t=P(),{reducer:n,middleware:o,devTools:i=!0,preloadedState:a,enhancers:d}=e||{};let p,h;if("function"==typeof n)p=n;else{if(!s(n))throw new Error(H(1));p=c(n)}if(!M&&o&&"function"!=typeof o)throw new Error(H(2));if("function"==typeof o){if(h=o(t),!M&&!Array.isArray(h))throw new Error(H(3))}else h=t();if(!M&&h.some((e=>"function"!=typeof e)))throw new Error(H(4));let f=u;i&&(f=_({trace:!M,..."object"==typeof i&&i}));const m=function(...e){return t=>(n,o)=>{const i=t(n,o);let a=()=>{throw new Error(r(15))};const s={getState:i.getState,dispatch:(e,...t)=>a(e,...t)},l=e.map((e=>e(s)));return a=u(...l)(i.dispatch),{...i,dispatch:a}}}(...h),g=I(m);if(!M&&d&&"function"!=typeof d)throw new Error(H(5));let v="function"==typeof d?d(g):g();if(!M&&!Array.isArray(v))throw new Error(H(6));if(!M&&v.some((e=>"function"!=typeof e)))throw new Error(H(7));M||!h.length||v.includes(m)||console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");return l(p,a,f(...v))}function O(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(H(28));if(r in t)throw new Error(H(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}var R=Symbol.for("rtk-slice-createasyncthunk");function j(e,t){return`${e}/${t}`}function F(e,t,n,r){function o(o,...i){let a=n.call(e,o);return void 0===a&&r&&(a=e.getInitialState()),t(a,...i)}return o.unwrapped=t,o}var B=function({creators:e}={}){const t=e?.asyncThunk?.[R];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(H(11));const o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},i=Object.keys(o),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(H(12));if(n in a.sliceCaseReducersByType)throw new Error(H(13));return a.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(a.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,s)};function l(){const[t={},n=[],r]="function"==typeof e.extraReducers?O(e.extraReducers):[e.extraReducers],o={...t,...a.sliceCaseReducersByType};return function(e,t){let n,[r,o,i]=O(t);if("function"==typeof e)n=()=>k(e());else{const t=k(e);n=()=>t}function a(e=n(),t){let a=[r[t.type],...o.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===a.filter((e=>!!e)).length&&(a=[i]),a.reduce(((e,n)=>{if(n){if((0,d.Qx)(e)){const r=n(e,t);return void 0===r?e:r}if((0,d.a6)(e))return(0,d.jM)(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(H(9))}return r}}return e}),e)}return a.getInitialState=n,a}(e.initialState,(e=>{for(let t in o)e.addCase(t,o[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}))}i.forEach((r=>{const i=o[r],a={reducerName:r,type:j(n,r),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(i)?function({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(H(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?C(e,a):C(e))}(a,i,s):function({type:e,reducerName:t},n,r,o){if(!o)throw new Error(H(18));const{payloadCreator:i,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=n,d=o(e,i,u);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a);s&&r.addCase(d.pending,s);l&&r.addCase(d.rejected,l);c&&r.addMatcher(d.settled,c);r.exposeCaseReducer(t,{fulfilled:a||L,pending:s||L,rejected:l||L,settled:c||L})}(a,i,s,t)}));const c=e=>e,u=new WeakMap;let p;const h={name:n,reducerPath:r,reducer:(e,t)=>(p||(p=l()),p(e,t)),actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:()=>(p||(p=l()),p.getInitialState()),getSelectors(t=c){const n=z(u,this,{insert:()=>new WeakMap});return z(n,t,{insert:()=>{const n={};for(const[r,o]of Object.entries(e.selectors??{}))n[r]=F(this,o,t,this!==h);return n}})},selectSlice(e){let t=e[this.reducerPath];return void 0===t&&this!==h&&(t=this.getInitialState()),t},get selectors(){return this.getSelectors(this.selectSlice)},injectInto(e,{reducerPath:t,...n}={}){const r=t??this.reducerPath;return e.inject({reducerPath:r,reducer:this.reducer},n),{...this,reducerPath:r}}};return h}}();function L(){}var{assign:V}=Object,K="listenerMiddleware";C(`${K}/add`),C(`${K}/removeAll`),C(`${K}/remove`);Symbol.for("rtk-state-proxy-original");function H(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}},1716:(e,t,n)=>{"use strict";function r(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}n.d(t,{_:()=>r})},14484:(e,t,n)=>{"use strict";function r(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function o(e,t){var n=e;for(var r of t){if(!(r in n))throw new Error("Path ".concat(t.join(" -> ")," does not exist in object"));n=n[r]}return n}function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r={};for(var o in e){var a=e[o],s=[...n,o];"string"==typeof a||"number"==typeof a||null==a?r[o]=t(a,s):"object"!=typeof a||Array.isArray(a)?console.warn('Skipping invalid key "'.concat(s.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(a)?"Array":typeof a,'"')):r[o]=i(a,t,s)}return r}function a(e,t){var n={};if("object"==typeof t){var a=e;i(t,((e,t)=>{if(null!=e){var i=o(a,t);n[r(i)]=String(e)}}))}else{var s=e;for(var l in s){var c=s[l];null!=c&&(n[r(l)]=c)}}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map((e=>"".concat(e,":").concat(this[e]))).join(";")},writable:!1}),n}function s(e,t,n){e.style.setProperty(r(t),n)}function l(e,t,n){if("object"==typeof n){var r=t;i(n,((t,n)=>{null!=t&&s(e,o(r,n),String(t))}))}else{var a=t;for(var l in a){null!=a[l]&&s(e,l,a[l])}}}n.d(t,{D:()=>a,b:()=>l})},31864:(e,t)=>{"use strict";function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsReader=void 0;var r=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.ownerDocument=null,this.enableTouchEvents=!0,this.enableMouseEvents=!1,this.enableKeyboardEvents=!1,this.ignoreContextMenu=!1,this.enableHoverOutsideTarget=!1,this.touchSlop=0,this.scrollAngleRanges=void 0,this.context=n,this.delayTouchStart=t.delayTouchStart||t.delay||0,this.delayMouseStart=t.delayMouseStart||t.delay||0,Object.keys(t).forEach((function(e){null!=t[e]&&(r[e]=t[e])}))}var t,r,o;return t=e,(r=[{key:"window",get:function(){return this.context&&this.context.window?this.context.window:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){return this.ownerDocument?this.ownerDocument:this.window?this.window.document:void 0}}])&&n(t.prototype,r),o&&n(t,o),e}();t.OptionsReader=r},41598:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TouchBackendImpl=void 0;var r,o=n(37685),i=n(82685),a=n(28757),s=n(67139),l=n(53005),c=n(18022),u=n(31864);function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=(p(r={},i.ListenerType.mouse,{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"}),p(r,i.ListenerType.touch,{start:"touchstart",move:"touchmove",end:"touchend"}),p(r,i.ListenerType.keyboard,{keydown:"keydown"}),r),f=function(){function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.lastClientOffset=null,this.lastDragOverTargetIds=null,this.updateTimer=null,this.getSourceClientOffset=function(e){var t=o.sourceNodes.get(e);return t&&(0,s.getNodeClientOffset)(t)},this.handleTopMoveStartCapture=function(e){(0,a.eventShouldStartDrag)(e)&&(o.moveStartSourceIds=[])},this.handleMoveStart=function(e){Array.isArray(o.moveStartSourceIds)&&o.moveStartSourceIds.unshift(e)},this.handleTopMoveStart=function(e){if((0,a.eventShouldStartDrag)(e)){var t=(0,s.getEventClientOffset)(e);if(t){(0,a.isTouchEvent)(e)&&(o.lastTargetTouchFallback=e.targetTouches[0]),o._mouseClientOffset=t;var n=e.type===h.touch.start?o.options.delayTouchStart:o.options.delayMouseStart;if(!o.monitor.isDragging()&&o.waitingForDelay&&n>0){var r=o.moveStartSourceIds;o.actions.beginDrag(r,{clientOffset:o._mouseClientOffset,getSourceClientOffset:o.getSourceClientOffset,publishSource:!1})}}o.waitingForDelay=!1}},this.handleTopMoveStartDelay=function(e){if((0,a.eventShouldStartDrag)(e)){var t=e.type===h.touch.start?o.options.delayTouchStart:o.options.delayMouseStart;o.timeout=setTimeout(o.handleTopMoveStart.bind(o,e),t),o.waitingForDelay=!0}},this.handleTopMoveCapture=function(){o.dragOverTargetIds=[]},this.handleMove=function(e,t){o.dragOverTargetIds&&o.dragOverTargetIds.unshift(t)},this.handleTopMove=function(e){if(o.document&&!o.waitingForDelay){o.timeout&&clearTimeout(o.timeout);var t=o.moveStartSourceIds,n=o.dragOverTargetIds,r=o.options.enableHoverOutsideTarget,i=(0,s.getEventClientOffset)(e,o.lastTargetTouchFallback);if(i)if(o._isScrolling||!o.monitor.isDragging()&&(0,l.inAngleRanges)(o._mouseClientOffset.x||0,o._mouseClientOffset.y||0,i.x,i.y,o.options.scrollAngleRanges))o._isScrolling=!0;else if(!o.monitor.isDragging()&&o._mouseClientOffset.hasOwnProperty("x")&&t&&(0,l.distance)(o._mouseClientOffset.x||0,o._mouseClientOffset.y||0,i.x,i.y)>(o.options.touchSlop?o.options.touchSlop:0)&&(o.moveStartSourceIds=void 0,o.actions.beginDrag(t,{clientOffset:o._mouseClientOffset,getSourceClientOffset:o.getSourceClientOffset,publishSource:!1})),o.monitor.isDragging()){var a=o.sourceNodes.get(o.monitor.getSourceId());o.installSourceNodeRemovalObserver(a),o.actions.publishDragSource(),e.cancelable&&e.preventDefault();var c=(n||[]).map((function(e){return o.targetNodes.get(e)})).filter((function(e){return!!e})),u=o.options.getDropTargetElementsAtPoint?o.options.getDropTargetElementsAtPoint(i.x,i.y,c):o.document.elementsFromPoint(i.x,i.y),d=[];for(var p in u)if(u.hasOwnProperty(p)){var h=u[p];for(d.push(h);h;)(h=h.parentElement)&&-1===d.indexOf(h)&&d.push(h)}var f=d.filter((function(e){return c.indexOf(e)>-1})).map((function(e){return o._getDropTargetId(e)})).filter((function(e){return!!e})).filter((function(e,t,n){return n.indexOf(e)===t}));if(r)for(var m in o.targetNodes){var g=o.targetNodes.get(m);if(a&&g&&g.contains(a)&&-1===f.indexOf(m)){f.unshift(m);break}}if(o.lastDragOverTargetIds=f.reverse(),o.lastClientOffset=i,!o.updateTimer){var v=function e(){o.monitor.isDragging()&&(o.actions.hover(o.lastDragOverTargetIds,{clientOffset:o.lastClientOffset}),o.updateTimer=requestAnimationFrame(e))};o.updateTimer=requestAnimationFrame((function(){v()}))}}}},this._getDropTargetId=function(e){for(var t=o.targetNodes.keys(),n=t.next();!1===n.done;){var r=n.value;if(e===o.targetNodes.get(r))return r;n=t.next()}},this.handleTopMoveEndCapture=function(e){o._isScrolling=!1,o.lastTargetTouchFallback=void 0,(0,a.eventShouldEndDrag)(e)&&(o.monitor.isDragging()&&!o.monitor.didDrop()?(e.cancelable&&e.preventDefault(),o._mouseClientOffset={},o.uninstallSourceNodeRemovalObserver(),o.actions.drop(),o.actions.endDrag(),o.updateTimer&&cancelAnimationFrame(o.updateTimer),o.updateTimer=null):o.moveStartSourceIds=void 0)},this.handleCancelOnEscape=function(e){"Escape"===e.key&&o.monitor.isDragging()&&(o._mouseClientOffset={},o.uninstallSourceNodeRemovalObserver(),o.actions.endDrag())},this.options=new u.OptionsReader(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(i.ListenerType.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(i.ListenerType.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(i.ListenerType.keyboard)}var t,n,r;return t=e,(n=[{key:"profile",value:function(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.length)||0}}},{key:"setup",value:function(){this.document&&((0,o.invariant)(!e.isSetUp,"Cannot have two Touch backends at the same time."),e.isSetUp=!0,this.addEventListener(this.document,"start",this.getTopMoveStartHandler()),this.addEventListener(this.document,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(this.document,"move",this.handleTopMove),this.addEventListener(this.document,"move",this.handleTopMoveCapture,!0),this.addEventListener(this.document,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(this.document,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(this.document,"keydown",this.handleCancelOnEscape,!0))}},{key:"teardown",value:function(){this.document&&(e.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(this.document,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(this.document,"start",this.handleTopMoveStart),this.removeEventListener(this.document,"move",this.handleTopMoveCapture,!0),this.removeEventListener(this.document,"move",this.handleTopMove),this.removeEventListener(this.document,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(this.document,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(this.document,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}},{key:"throttle",value:function(e,t){var n=!1;return function(r){n||(e(r),n=!0,setTimeout((function(){n=!1}),t))}}},{key:"addEventListener",value:function(e,t,n,r){var o=c.supportsPassive?{capture:r,passive:!1}:r,i=this.throttle(n,50);this.listenerTypes.forEach((function(n){var r=h[n][t];r&&e.addEventListener(r,i,o)}))}},{key:"removeEventListener",value:function(e,t,n,r){var o=c.supportsPassive?{capture:r,passive:!1}:r;this.listenerTypes.forEach((function(r){var i=h[r][t];i&&e.removeEventListener(i,n,o)}))}},{key:"connectDragSource",value:function(e,t){var n=this,r=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,t),this.addEventListener(t,"start",r),function(){n.sourceNodes.delete(e),n.removeEventListener(t,"start",r)}}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDropTarget",value:function(e,t){var n=this;if(!this.document)return function(){};var r=function(r){if(n.document&&n.monitor.isDragging()){var o;switch(r.type){case h.mouse.move:o={x:r.clientX,y:r.clientY};break;case h.touch.move:o={x:r.touches[0].clientX,y:r.touches[0].clientY}}var i=null!=o?n.document.elementFromPoint(o.x,o.y):void 0,a=i&&t.contains(i);return i===t||a?n.handleMove(r,e):void 0}};return this.addEventListener(this.document.body,"move",r),this.targetNodes.set(e,t),function(){n.document&&(n.targetNodes.delete(e),n.removeEventListener(n.document.body,"move",r))}}},{key:"getTopMoveStartHandler",value:function(){return this.options.delayTouchStart||this.options.delayMouseStart?this.handleTopMoveStartDelay:this.handleTopMoveStart}},{key:"installSourceNodeRemovalObserver",value:function(e){var t=this;this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver((function(){e&&!e.parentElement&&(t.resurrectSourceNode(),t.uninstallSourceNodeRemovalObserver())})),e&&e.parentElement&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}},{key:"resurrectSourceNode",value:function(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}},{key:"uninstallSourceNodeRemovalObserver",value:function(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}},{key:"document",get:function(){return this.options.document}}])&&d(t.prototype,n),r&&d(t,r),e}();t.TouchBackendImpl=f},57141:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={TouchBackend:!0};t.TouchBackend=void 0;var o=n(41598);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));t.TouchBackend=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new o.TouchBackendImpl(e,t,n)}},82685:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ListenerType=void 0,t.ListenerType=n,function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"}(n||(t.ListenerType=n={}))},53005:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distance=function(e,t,n,r){return Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(r-t),2))},t.inAngleRanges=function(e,t,n,r,o){if(!o)return!1;for(var i=180*Math.atan2(r-t,n-e)/Math.PI+180,a=0;a<o.length;++a)if((null==o[a].start||i>=o[a].start)&&(null==o[a].end||i<=o[a].end))return!0;return!1}},67139:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNodeClientOffset=function(e){var t=e.nodeType===o?e:e.parentElement;if(!t)return;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}},t.getEventClientTouchOffset=i,t.getEventClientOffset=a;var r=n(28757),o=1;function i(e,t){return 1===e.targetTouches.length?a(e.targetTouches[0]):t&&1===e.touches.length&&e.touches[0].target===t.target?a(e.touches[0]):void 0}function a(e,t){return(0,r.isTouchEvent)(e)?i(e,t):{x:e.clientX,y:e.clientY}}},28757:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eventShouldStartDrag=function(e){return void 0===e.button||e.button===r.Left},t.eventShouldEndDrag=function(e){return void 0===e.buttons||!(e.buttons&n.Left)},t.isTouchEvent=function(e){return!!e.targetTouches};var n={Left:1,Right:2,Center:4},r={Left:0,Center:1,Right:2}},18022:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportsPassive=void 0;var n=function(){var e=!1;try{addEventListener("test",(function(){}),Object.defineProperty({},"passive",{get:function(){return e=!0,!0}}))}catch(e){}return e}();t.supportsPassive=n},37685:(e,t,n)=>{"use strict";function r(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[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 r[a++]})))).name="Invariant Violation"}throw i.framesToPop=1,i}}n.r(t),n.d(t,{invariant:()=>r})},7039:(e,t,n)=>{"use strict";n.d(t,{QP:()=>ve,i3:()=>Ke,V7:()=>He,Hd:()=>qe});var r=n(96540);const o=(0,r.createContext)({dragDropManager:void 0});var i=n(74848);function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var s="function"==typeof Symbol&&Symbol.observable||"@@observable",l=function(){return Math.random().toString(36).substring(7).split("").join(".")},c={INIT:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}};function u(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}function d(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(a(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(a(1));return n(d)(e,t)}if("function"!=typeof e)throw new Error(a(2));var o=e,i=t,l=[],p=l,h=!1;function f(){p===l&&(p=l.slice())}function m(){if(h)throw new Error(a(3));return i}function g(e){if("function"!=typeof e)throw new Error(a(4));if(h)throw new Error(a(5));var t=!0;return f(),p.push(e),function(){if(t){if(h)throw new Error(a(6));t=!1,f();var n=p.indexOf(e);p.splice(n,1),l=null}}}function v(e){if(!u(e))throw new Error(a(7));if(void 0===e.type)throw new Error(a(8));if(h)throw new Error(a(9));try{h=!0,i=o(i,e)}finally{h=!1}for(var t=l=p,n=0;n<t.length;n++){(0,t[n])()}return e}return v({type:c.INIT}),(r={dispatch:v,subscribe:g,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error(a(10));o=e,v({type:c.REPLACE})}})[s]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(a(11));function n(){e.next&&e.next(m())}return n(),{unsubscribe:t(n)}}})[s]=function(){return this},e},r}function p(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if("undefined"!=typeof process&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let n=0;e=new Error(t.replace(/%s/g,(function(){return r[n++]}))),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function h(e){return"object"==typeof e}const f="dnd-core/INIT_COORDS",m="dnd-core/BEGIN_DRAG",g="dnd-core/PUBLISH_DRAG_SOURCE",v="dnd-core/HOVER",y="dnd-core/DROP",b="dnd-core/END_DRAG";function w(e,t){return{type:f,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const x={type:f,payload:{clientOffset:null,sourceClientOffset:null}};function S(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0};const{publishSource:r=!0,clientOffset:o,getSourceClientOffset:i}=n,a=e.getMonitor(),s=e.getRegistry();e.dispatch(w(o)),function(e,t,n){p(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){p(n.getSource(e),"Expected sourceIds to be registered.")}))}(t,a,s);const l=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,a);if(null==l)return void e.dispatch(x);let c=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){p("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),c=i(l)}e.dispatch(w(o,c));const u=s.getSource(l).beginDrag(a,l);if(null==u)return;!function(e){p(h(e),"Item must be an object.")}(u),s.pinSource(l);const d=s.getSourceType(l);return{type:m,payload:{itemType:d,item:u,sourceId:l,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!r}}}}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_(e,t,n[t])}))}return e}function E(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=e.getMonitor(),r=e.getRegistry();!function(e){p(e.isDragging(),"Cannot call drop while not dragging."),p(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);const o=function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);o.forEach(((o,i)=>{const a=function(e,t,n,r){const o=n.getTarget(e);let i=o?o.drop(r,e):void 0;(function(e){p(void 0===e||h(e),"Drop result must either be an object or undefined.")})(i),void 0===i&&(i=0===t?{}:r.getDropResult());return i}(o,i,r,n),s={type:y,payload:{dropResult:C({},t,a)}};e.dispatch(s)}))}}function k(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){p(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();if(null!=r){n.getSource(r,!0).endDrag(t,r),n.unpinSource()}return{type:b}}}function z(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function P(e){return function(t){let{clientOffset:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e){p(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--){const o=e[r];z(t.getTargetType(o),n)||e.splice(r,1)}}(r,i,o.getItemType()),function(e,t,n){p(t.isDragging(),"Cannot call hover while not dragging."),p(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t<e.length;t++){const r=e[t];p(e.lastIndexOf(r)===t,"Expected targetIds to be unique in the passed array.");p(n.getTarget(r),"Expected targetIds to be registered.")}}(r,o,i),function(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}(r,o,i),{type:v,payload:{targetIds:r,clientOffset:n||null}}}}function A(e){return function(){if(e.getMonitor().isDragging())return{type:g}}}class D{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;const n=function(e){return{beginDrag:S(e),publishDragSource:A(e),hover:P(e),drop:E(e),endDrag:k(e)}}(this);return Object.keys(n).reduce(((r,o)=>{const i=n[o];var a;return r[o]=(a=i,function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];const i=a.apply(e,r);void 0!==i&&t(i)}),r}),{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function T(e,t){return{x:e.x-t.x,y:e.y-t.y}}const I=[],M=[];I.__IS_NONE__=!0,M.__IS_ALL__=!0;class N{subscribeToStateChange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{handlerIds:n}=t;p("function"==typeof e,"listener must be a function."),p(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),o=t.stateId;try{const i=o===r||o===r+1&&!function(e,t){return e!==I&&(e===M||void 0===t||(n=e,t.filter((e=>n.indexOf(e)>-1))).length>0);var n}(t.dirtyHandlerIds,n);i||e()}finally{r=o}}))}subscribeToOffsetChange(e){p("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return p(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if(p(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return z(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if(p(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;return this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),o=this.getItemType();if(o&&!z(r,o))return!1;const i=this.getTargetIds();if(!i.length)return!1;const a=i.indexOf(e);return n?a===i.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?T((i=r,{x:(o=t).x+i.x,y:o.y+i.y}),n):null;var o,i}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?T(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const O=void 0!==n.g?n.g:self,R=O.MutationObserver||O.WebKitMutationObserver;function j(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const F="function"==typeof R?function(e){let t=1;const n=new R(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:j;class B{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const L=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=F(this.flush),this.requestErrorThrow=j((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},V=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new B(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(L.registerPendingError);const K="dnd-core/ADD_SOURCE",H="dnd-core/ADD_TARGET",$="dnd-core/REMOVE_SOURCE",U="dnd-core/REMOVE_TARGET";function W(e,t){t&&Array.isArray(e)?e.forEach((e=>W(e,!1))):p("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var q;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(q||(q={}));let G=0;function Z(e){const t=(G++).toString();switch(e){case q.SOURCE:return`S${t}`;case q.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function Y(e){switch(e[0]){case"S":return q.SOURCE;case"T":return q.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function X(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,o]}=n.next();if(o===t)return!0;r=!!e}while(!r);return!1}class J{addSource(e,t){W(e),function(e){p("function"==typeof e.canDrag,"Expected canDrag to be a function."),p("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),p("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(q.SOURCE,e,t);return this.store.dispatch(function(e){return{type:K,payload:{sourceId:e}}}(n)),n}addTarget(e,t){W(e,!0),function(e){p("function"==typeof e.canDrop,"Expected canDrop to be a function."),p("function"==typeof e.hover,"Expected hover to be a function."),p("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(q.TARGET,e,t);return this.store.dispatch(function(e){return{type:H,payload:{targetId:e}}}(n)),n}containsHandler(e){return X(this.dragSources,e)||X(this.dropTargets,e)}getSource(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];p(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return p(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return p(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return p(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Y(e)===q.SOURCE}isTargetId(e){return Y(e)===q.TARGET}removeSource(e){var t;p(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:$,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},L.enqueueTask(V.create(t))}removeTarget(e){p(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:U,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);p(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){p(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=Z(e);return this.types.set(r,t),e===q.SOURCE?this.dragSources.set(r,n):e===q.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const Q=(e,t)=>e===t;function ee(){let e=arguments.length>1?arguments[1]:void 0;switch(e.type){case v:break;case K:case H:case U:case $:return I;default:return M}const{targetIds:t=[],prevTargetIds:n=[]}=e.payload,r=function(e,t){const n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);const o=[];return n.forEach(((e,t)=>{1===e&&o.push(t)})),o}(t,n),o=r.length>0||!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Q;if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(t,n);if(!o)return I;const i=n[n.length-1],a=t[t.length-1];return i!==a&&(i&&r.push(i),a&&r.push(a)),r}function te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ne={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function re(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne,t=arguments.length>1?arguments[1]:void 0;const{payload:n}=t;switch(t.type){case f:case m:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case v:return r=e.clientOffset,o=n.clientOffset,!r&&!o||r&&o&&r.x===o.x&&r.y===o.y?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){te(e,t,n[t])}))}return e}({},e,{clientOffset:n.clientOffset});case b:case y:return ne;default:return e}var r,o}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){oe(e,t,n[t])}))}return e}const ae={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function se(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ae,t=arguments.length>1?arguments[1]:void 0;const{payload:n}=t;switch(t.type){case m:return ie({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case g:return ie({},e,{isSourcePublic:!0});case v:return ie({},e,{targetIds:n.targetIds});case U:return-1===e.targetIds.indexOf(n.targetId)?e:ie({},e,{targetIds:(r=e.targetIds,o=n.targetId,r.filter((e=>e!==o)))});case y:return ie({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case b:return ie({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,o}function le(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case K:case H:return e+1;case $:case U:return e-1;default:return e}}function ce(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ue(e,t,n[t])}))}return e}function pe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:ee(e.dirtyHandlerIds,{type:t.type,payload:de({},t.payload,{prevTargetIds:(n=e,r="dragOperation.targetIds",o=[],r.split(".").reduce(((e,t)=>e&&e[t]?e[t]:o||null),n))})}),dragOffset:re(e.dragOffset,t),refCount:le(e.refCount,t),dragOperation:se(e.dragOperation,t),stateId:ce(e.stateId)};var n,r,o}function he(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return d(pe,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(arguments.length>3&&void 0!==arguments[3]&&arguments[3]),o=new N(r,new J(r)),i=new D(r,o),a=e(i,t,n);return i.receiveBackend(a),i}function fe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}let me=0;const ge=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var ve=(0,r.memo)((function(e){var{children:t}=e,n=fe(e,["children"]);const[a,s]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;const o=t;o[ge]||(o[ge]={dragDropManager:he(e,t,n,r)});return o[ge]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(n);return(0,r.useEffect)((()=>{if(s){const e=ye();return++me,()=>{0==--me&&(e[ge]=null)}}}),[]),(0,i.jsx)(o.Provider,{value:a,children:t})}));function ye(){return void 0!==n.g?n.g:window}var be=n(32017),we=n.n(be);const xe="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function Se(e,t,n){const[o,i]=(0,r.useState)((()=>t(e))),a=(0,r.useCallback)((()=>{const r=t(e);we()(o,r)||(i(r),n&&n())}),[o,e,n]);return xe(a),[o,a]}function _e(e,t,n){return function(e,t,n){const[r,o]=Se(e,t,n);return xe((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(o,{handlerIds:[t]})}),[e,o]),r}(t,e||(()=>({})),(()=>n.reconnect()))}function Ce(e,t){const n=[...t||[]];return null==t&&"function"!=typeof e&&n.push(e),(0,r.useMemo)((()=>"function"==typeof e?e():e),n)}function Ee(e){return(0,r.useMemo)((()=>e.hooks.dragSource()),[e])}function ke(e){return(0,r.useMemo)((()=>e.hooks.dragPreview()),[e])}let ze=!1,Pe=!1;class Ae{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){p(!ze,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return ze=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{ze=!1}}isDragging(){if(!this.sourceId)return!1;p(!Pe,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Pe=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Pe=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let De=!1;class Te{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;p(!De,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return De=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{De=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function Ie(e,t,n,r){let o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let a=0;a<i.length;a++){const l=i[a];if(!s(l))return!1;const c=e[l],u=t[l];if(o=n?n.call(r,c,u,l):void 0,!1===o||void 0===o&&c!==u)return!1}return!0}function Me(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Ne(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,r.isValidElement)(t)){const r=t;return e(r,n),r}const o=t;!function(e){if("string"==typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}(o);return function(e,t){const n=e.ref;return p("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?(0,r.cloneElement)(e,{ref:e=>{Re(n,e),Re(t,e)}}):(0,r.cloneElement)(e,{ref:t})}(o,n?t=>e(t,n):e)}}function Oe(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=Ne(r);t[n]=()=>e}})),t}function Re(e,t){"function"==typeof e?e(t):e.current=t}class je{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!Ie(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Ie(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=Oe({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,Me(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,Me(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class Fe{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!Ie(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=Oe({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,Me(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Be(){const{dragDropManager:e}=(0,r.useContext)(o);return p(null!=e,"Expected drag drop context"),e}class Le{beginDrag(){const e=this.spec,t=this.monitor;let n=null;return n="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(t):{},null!=n?n:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const n=this.spec,r=this.monitor,{isDragging:o}=n;return o?o(r):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}}function Ve(e,t,n){const o=Be(),i=function(e,t,n){const o=(0,r.useMemo)((()=>new Le(e,t,n)),[t,n]);return(0,r.useEffect)((()=>{o.spec=e}),[e]),o}(e,t,n),a=function(e){return(0,r.useMemo)((()=>{const t=e.type;return p(null!=t,"spec.type must be defined"),t}),[e])}(e);xe((function(){if(null!=a){const[e,r]=function(e,t,n){const r=n.getRegistry(),o=r.addSource(e,t);return[o,()=>r.removeSource(o)]}(a,i,o);return t.receiveHandlerId(e),n.receiveHandlerId(e),r}}),[o,t,n,i,a])}function Ke(e,t){const n=Ce(e,t);p(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const o=function(){const e=Be();return(0,r.useMemo)((()=>new Ae(e)),[e])}(),i=function(e,t){const n=Be(),o=(0,r.useMemo)((()=>new je(n.getBackend())),[n]);return xe((()=>(o.dragSourceOptions=e||null,o.reconnect(),()=>o.disconnectDragSource())),[o,e]),xe((()=>(o.dragPreviewOptions=t||null,o.reconnect(),()=>o.disconnectDragPreview())),[o,t]),o}(n.options,n.previewOptions);return Ve(n,o,i),[_e(n.collect,o,i),Ee(i),ke(i)]}function He(e){const t=Be().getMonitor(),[n,o]=Se(t,e);return(0,r.useEffect)((()=>t.subscribeToOffsetChange(o))),(0,r.useEffect)((()=>t.subscribeToStateChange(o))),n}function $e(e){return(0,r.useMemo)((()=>e.hooks.dropTarget()),[e])}class Ue{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function We(e,t,n){const o=Be(),i=function(e,t){const n=(0,r.useMemo)((()=>new Ue(e,t)),[t]);return(0,r.useEffect)((()=>{n.spec=e}),[e]),n}(e,t),a=function(e){const{accept:t}=e;return(0,r.useMemo)((()=>(p(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);xe((function(){const[e,r]=function(e,t,n){const r=n.getRegistry(),o=r.addTarget(e,t);return[o,()=>r.removeTarget(o)]}(a,i,o);return t.receiveHandlerId(e),n.receiveHandlerId(e),r}),[o,t,i,n,a.map((e=>e.toString())).join("|")])}function qe(e,t){const n=Ce(e,t),o=function(){const e=Be();return(0,r.useMemo)((()=>new Te(e)),[e])}(),i=function(e){const t=Be(),n=(0,r.useMemo)((()=>new Fe(t.getBackend())),[t]);return xe((()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget())),[e]),n}(n.options);return We(n,o,i),[_e(n.collect,o,i),$e(i)]}},2815:(e,t,n)=>{"use strict";n.d(t,{Dk:()=>nn,EY:()=>Gt,MT:()=>Qe,YK:()=>dn,j4:()=>Vt,tz:()=>Kt});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;function s(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var l=n(96540),c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},c(e,t)};function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var d=function(){return d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},d.apply(this,arguments)};Object.create;function p(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;function h(e,t){var n=t&&t.cache?t.cache:w,r=t&&t.serializer?t.serializer:y;return(t&&t.strategy?t.strategy:v)(e,{cache:n,serializer:r})}function f(e,t,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),a=t.get(i);return void 0===a&&(a=e.call(this,r),t.set(i,a)),a}function m(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function g(e,t,n,r,o){return n.bind(t,e,r,o)}function v(e,t){return g(e,this,1===e.length?f:m,t.cache.create(),t.serializer)}var y=function(){return JSON.stringify(arguments)},b=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),w={create:function(){return new b}},x={variadic:function(e,t){return g(e,this,m,t.cache.create(),t.serializer)},monadic:function(e,t){return g(e,this,f,t.cache.create(),t.serializer)}},S=function(e,t){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},S(e,t)};function _(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}S(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var C=function(){return C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},C.apply(this,arguments)};function E(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;function k(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var z=function(){return z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},z.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var P,A,D;function T(e){return e.type===A.literal}function I(e){return e.type===A.argument}function M(e){return e.type===A.number}function N(e){return e.type===A.date}function O(e){return e.type===A.time}function R(e){return e.type===A.select}function j(e){return e.type===A.plural}function F(e){return e.type===A.pound}function B(e){return e.type===A.tag}function L(e){return!(!e||"object"!=typeof e||e.type!==D.number)}function V(e){return!(!e||"object"!=typeof e||e.type!==D.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(P||(P={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(A||(A={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(D||(D={}));var K=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,H=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function $(e){var t={};return e.replace(H,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var U=function(){return U=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},U.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var W=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var q=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,G=/^(@+)?(\+|#+)?[rs]?$/g,Z=/(\*)(0+)|(#+)(0+)|(0+)/g,Y=/^(0+)$/;function X(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(G,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function J(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Q(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Y.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function ee(e){var t=J(e);return t||{}}function te(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=U(U(U({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return U(U({},e),ee(t))}),{}));continue;case"engineering":t=U(U(U({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return U(U({},e),ee(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Z,(function(e,n,r,o,i,a){if(n)t.minimumIntegerDigits=r.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(Y.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(q.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(q,(function(e,n,r,o,i,a){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var i=o.options[0];"w"===i?t=U(U({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=U(U({},t),X(i)))}else if(G.test(o.stem))t=U(U({},t),X(o.stem));else{var a=J(o.stem);a&&(t=U(U({},t),a));var s=Q(o.stem);s&&(t=U(U({},t),s))}}return t}var ne,re={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function oe(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(re[n||""]||re[r||""]||re["".concat(r,"-001")]||re["001"])[0]}var ie=new RegExp("^".concat(K.source,"*")),ae=new RegExp("".concat(K.source,"*$"));function se(e,t){return{start:e,end:t}}var le=!!String.prototype.startsWith&&"_a".startsWith("a",1),ce=!!String.fromCodePoint,ue=!!Object.fromEntries,de=!!String.prototype.codePointAt,pe=!!String.prototype.trimStart,he=!!String.prototype.trimEnd,fe=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},me=!0;try{me="a"===(null===(ne=_e("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===ne?void 0:ne[0])}catch(e){me=!1}var ge,ve=le?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},ye=ce?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,i=0;o>i;){if((n=e[i++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},be=ue?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],i=o[0],a=o[1];t[i]=a}return t},we=de?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},xe=pe?function(e){return e.trimStart()}:function(e){return e.replace(ie,"")},Se=he?function(e){return e.trimEnd()}:function(e){return e.replace(ae,"")};function _e(e,t){return new RegExp(e,t)}if(me){var Ce=_e("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ge=function(e,t){var n;return Ce.lastIndex=t,null!==(n=Ce.exec(e)[1])&&void 0!==n?n:""}}else ge=function(e,t){for(var n=[];;){var r=we(e,t);if(void 0===r||Pe(r)||Ae(r))break;n.push(r),t+=r>=65536?2:1}return ye.apply(void 0,n)};var Ee=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(P.UNMATCHED_CLOSING_TAG,se(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&ke(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;r.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}}else{var a=this.clonePosition();this.bump(),r.push({type:A.pound,location:se(a,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:A.literal,value:"<".concat(r,"/>"),location:se(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ke(this.char()))return this.error(P.INVALID_TAG,se(a,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error(P.UNMATCHED_CLOSING_TAG,se(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:A.tag,value:r,children:i,location:se(n,this.clonePosition())},err:null}:this.error(P.INVALID_TAG,se(a,this.clonePosition())))}return this.error(P.UNCLOSED_TAG,se(n,this.clonePosition()))}return this.error(P.INVALID_TAG,se(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&ze(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{var i=this.tryParseUnquoted(e,t);if(i)r+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}var s=se(n,this.clonePosition());return{val:{type:A.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ke(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return ye.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),ye(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE,se(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(P.EMPTY_ARGUMENT,se(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(P.MALFORMED_ARGUMENT,se(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE,se(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:A.argument,value:r,location:se(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE,se(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(P.MALFORMED_ARGUMENT,se(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=ge(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:se(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(P.EXPECT_ARGUMENT_TYPE,se(i,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((v=this.parseSimpleArgStyleIfPossible()).err)return v;if(0===(h=Se(v.val)).length)return this.error(P.EXPECT_ARGUMENT_STYLE,se(this.clonePosition(),this.clonePosition()));l={style:h,styleLocation:se(c,this.clonePosition())}}if((y=this.tryParseArgumentClose(r)).err)return y;var u=se(r,this.clonePosition());if(l&&ve(null==l?void 0:l.style,"::",0)){var d=xe(l.style.slice(2));if("number"===a)return(v=this.parseNumberSkeletonFromString(d,l.styleLocation)).err?v:{val:{type:A.number,value:n,location:u,style:v.val},err:null};if(0===d.length)return this.error(P.EXPECT_DATE_TIME_SKELETON,u);var p=d;this.locale&&(p=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var i=0;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;var a=1+(1&i),s=i<2?1:3+(i>>1),l=oe(t);for("H"!=l&&"k"!=l||(s=0);s-- >0;)n+="a";for(;a-- >0;)n=l+n}else n+="J"===o?"H":o}return n}(d,this.locale));var h={type:D.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?$(p):{}};return{val:{type:"date"===a?A.date:A.time,value:n,location:u,style:h},err:null}}return{val:{type:"number"===a?A.number:"date"===a?A.date:A.time,value:n,location:u,style:null!==(o=null==l?void 0:l.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(P.EXPECT_SELECT_ARGUMENT_OPTIONS,se(f,z({},f)));this.bumpSpace();var m=this.parseIdentifierIfPossible(),g=0;if("select"!==a&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(P.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,se(this.clonePosition(),this.clonePosition()));var v;if(this.bumpSpace(),(v=this.tryParseDecimalInteger(P.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,P.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return v;this.bumpSpace(),m=this.parseIdentifierIfPossible(),g=v.val}var y,b=this.tryParsePluralOrSelectOptions(e,a,t,m);if(b.err)return b;if((y=this.tryParseArgumentClose(r)).err)return y;var w=se(r,this.clonePosition());return"select"===a?{val:{type:A.select,value:n,options:be(b.val),location:w},err:null}:{val:{type:A.plural,value:n,options:be(b.val),offset:g,pluralType:"plural"===a?"cardinal":"ordinal",location:w},err:null};default:return this.error(P.INVALID_ARGUMENT_TYPE,se(i,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE,se(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(P.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,se(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(W).filter((function(e){return e.length>0}));n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],a=o.slice(1),s=0,l=a;s<l.length;s++)if(0===l[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:a})}return t}(e)}catch(e){return this.error(P.INVALID_NUMBER_SKELETON,t)}return{val:{type:D.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?te(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o,i=!1,a=[],s=new Set,l=r.value,c=r.location;;){if(0===l.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(P.EXPECT_PLURAL_ARGUMENT_SELECTOR,P.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=se(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}if(s.has(l))return this.error("select"===t?P.DUPLICATE_SELECT_ARGUMENT_SELECTOR:P.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(i=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?P.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:P.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,se(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(e+1,t,n);if(h.err)return h;var f=this.tryParseArgumentClose(p);if(f.err)return f;a.push([l,{value:h.val,location:se(p,this.clonePosition())}]),s.add(l),this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,c=o.location}return 0===a.length?this.error("select"===t?P.EXPECT_SELECT_ARGUMENT_SELECTOR:P.EXPECT_PLURAL_ARGUMENT_SELECTOR,se(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(P.MISSING_OTHER_CLAUSE,se(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=se(r,this.clonePosition());return o?fe(i*=n)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=we(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(ve(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Pe(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function ke(e){return e>=97&&e<=122||e>=65&&e<=90}function ze(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Pe(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Ae(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function De(e){e.forEach((function(e){if(delete e.location,R(e)||j(e))for(var t in e.options)delete e.options[t].location,De(e.options[t].value);else M(e)&&L(e.style)||(N(e)||O(e))&&V(e.style)?delete e.style.location:B(e)&&De(e.children)}))}function Te(e,t){void 0===t&&(t={}),t=z({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Ee(e,t).parse();if(n.err){var r=SyntaxError(P[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||De(n.val),n.val}var Ie;!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Ie||(Ie={}));var Me,Ne=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.code=n,o.originalMessage=r,o}return _(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Oe=function(e){function t(t,n,r,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Ie.INVALID_VALUE,o)||this}return _(t,e),t}(Ne),Re=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),Ie.INVALID_VALUE,r)||this}return _(t,e),t}(Ne),je=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),Ie.MISSING_VALUE,n)||this}return _(t,e),t}(Ne);function Fe(e){return"function"==typeof e}function Be(e,t,n,r,o,i,a){if(1===e.length&&T(e[0]))return[{type:Me.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(T(u))s.push({type:Me.literal,value:u.value});else if(F(u))"number"==typeof i&&s.push({type:Me.literal,value:n.getNumberFormat(t).format(i)});else{var d=u.value;if(!o||!(d in o))throw new je(d,a);var p=o[d];if(I(u))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),s.push({type:"string"==typeof p?Me.literal:Me.object,value:p});else if(N(u)){var h="string"==typeof u.style?r.date[u.style]:V(u.style)?u.style.parsedOptions:void 0;s.push({type:Me.literal,value:n.getDateTimeFormat(t,h).format(p)})}else if(O(u)){h="string"==typeof u.style?r.time[u.style]:V(u.style)?u.style.parsedOptions:r.time.medium;s.push({type:Me.literal,value:n.getDateTimeFormat(t,h).format(p)})}else if(M(u)){(h="string"==typeof u.style?r.number[u.style]:L(u.style)?u.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),s.push({type:Me.literal,value:n.getNumberFormat(t,h).format(p)})}else{if(B(u)){var f=u.children,m=u.value,g=o[m];if(!Fe(g))throw new Re(m,"function",a);var v=g(Be(f,t,n,r,o,i).map((function(e){return e.value})));Array.isArray(v)||(v=[v]),s.push.apply(s,v.map((function(e){return{type:"string"==typeof e?Me.literal:Me.object,value:e}})))}if(R(u)){if(!(y=u.options[p]||u.options.other))throw new Oe(u.value,p,Object.keys(u.options),a);s.push.apply(s,Be(y.value,t,n,r,o))}else if(j(u)){var y;if(!(y=u.options["=".concat(p)])){if(!Intl.PluralRules)throw new Ne('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ie.MISSING_INTL_API,a);var b=n.getPluralRules(t,{type:u.pluralType}).select(p-(u.offset||0));y=u.options[b]||u.options.other}if(!y)throw new Oe(u.value,p,Object.keys(u.options),a);s.push.apply(s,Be(y.value,t,n,r,o,p-(u.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===Me.literal&&t.type===Me.literal?n.value+=t.value:e.push(t),e}),[])}(s)}function Le(e,t){return t?Object.keys(e).reduce((function(n,r){var o,i;return n[r]=(o=e[r],(i=t[r])?C(C(C({},o||{}),i||{}),Object.keys(o).reduce((function(e,t){return e[t]=C(C({},o[t]),i[t]||{}),e}),{})):o),n}),C({},e)):e}function Ve(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Me||(Me={}));var Ke=function(){function e(t,n,r,o){void 0===n&&(n=e.defaultLocale);var i,a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===Me.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return Be(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=a.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=o||{},l=(s.formatters,E(s,["formatters"]));this.ast=e.__parse(t,C(C({},l),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Le(e.formats,r),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:h((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,k([void 0],t,!1)))}),{cache:Ve(i.number),strategy:x.variadic}),getDateTimeFormat:h((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,k([void 0],t,!1)))}),{cache:Ve(i.dateTime),strategy:x.variadic}),getPluralRules:h((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,k([void 0],t,!1)))}),{cache:Ve(i.pluralRules),strategy:x.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=Te,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();var He;!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(He||(He={}));var $e=function(e){function t(n,r,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return(i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return u(t,e),t}(Error),Ue=function(e){function t(t,n){return e.call(this,He.UNSUPPORTED_FORMATTER,t,n)||this}return u(t,e),t}($e),We=function(e){function t(t,n){return e.call(this,He.INVALID_CONFIG,t,n)||this}return u(t,e),t}($e),qe=function(e){function t(t,n){return e.call(this,He.MISSING_DATA,t,n)||this}return u(t,e),t}($e),Ge=function(e){function t(t,n,r){var o=e.call(this,He.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(n,"\n"),r)||this;return o.locale=n,o}return u(t,e),t}($e),Ze=function(e){function t(t,n,r,o){var i=e.call(this,"".concat(t,"\nMessageID: ").concat(null==r?void 0:r.id,"\nDefault Message: ").concat(null==r?void 0:r.defaultMessage,"\nDescription: ").concat(null==r?void 0:r.description,"\n"),n,o)||this;return i.descriptor=r,i.locale=n,i}return u(t,e),t}(Ge),Ye=function(e){function t(t,n){var r=e.call(this,He.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map((function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)})).join(),")"):"id"," as fallback."))||this;return r.descriptor=t,r}return u(t,e),t}($e);function Xe(e,t,n){return void 0===n&&(n={}),t.reduce((function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t}),{})}var Je={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){0},onWarn:function(e){0}};function Qe(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function et(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function tt(e,t,n,r){var o,i=e&&e[t];if(i&&(o=i[n]),o)return o;r(new Ue("No ".concat(t," format named: ").concat(n)))}function nt(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=d({timeZone:t},e[r]),n}),{})}function rt(e,t){return Object.keys(d(d({},e),t)).reduce((function(n,r){return n[r]=d(d({},e[r]||{}),t[r]||{}),n}),{})}function ot(e,t){if(!t)return e;var n=Ke.formats;return d(d(d({},n),e),{date:rt(nt(n.date,t),nt(e.date||{},t)),time:rt(nt(n.time,t),nt(e.time||{},t))})}var it=function(e,t,n,r,o){var i=e.locale,a=e.formats,s=e.messages,l=e.defaultLocale,c=e.defaultFormats,u=e.fallbackOnEmptyString,p=e.onError,h=e.timeZone,f=e.defaultRichTextElements;void 0===n&&(n={id:""});var m=n.id,g=n.defaultMessage;!function(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}(!!m,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var v=String(m),y=s&&Object.prototype.hasOwnProperty.call(s,v)&&s[v];if(Array.isArray(y)&&1===y.length&&y[0].type===A.literal)return y[0].value;if(!r&&y&&"string"==typeof y&&!f)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=d(d({},f),r||{}),a=ot(a,h),c=ot(c,h),!y){if(!1===u&&""===y)return y;if((!g||i&&i.toLowerCase()!==l.toLowerCase())&&p(new Ye(n,i)),g)try{return t.getMessageFormat(g,l,c,o).format(r)}catch(e){return p(new Ze('Error formatting default message for: "'.concat(v,'", rendering default message verbatim'),i,n,e)),"string"==typeof g?g:v}return v}try{return t.getMessageFormat(y,i,a,d({formatters:t},o||{})).format(r)}catch(e){p(new Ze('Error formatting message: "'.concat(v,'", using ').concat(g?"default message":"id"," as fallback."),i,n,e))}if(g)try{return t.getMessageFormat(g,l,c,o).format(r)}catch(e){p(new Ze('Error formatting the default message for: "'.concat(v,'", rendering message verbatim'),i,n,e))}return"string"==typeof y?y:"string"==typeof g?g:v},at=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function st(e,t,n,r){var o=e.locale,i=e.formats,a=e.onError,s=e.timeZone;void 0===r&&(r={});var l=r.format,c=d(d({},s&&{timeZone:s}),l&&tt(i,t,l,a)),u=Xe(r,at,c);return"time"!==t||u.hour||u.minute||u.second||u.timeStyle||u.dateStyle||(u=d(d({},u),{hour:"numeric",minute:"numeric"})),n(o,u)}function lt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return st(e,"date",t,a).format(s)}catch(t){e.onError(new Ge("Error formatting date.",e.locale,t))}return String(s)}function ct(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return st(e,"time",t,a).format(s)}catch(t){e.onError(new Ge("Error formatting time.",e.locale,t))}return String(s)}function ut(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=n[2],s=void 0===a?{}:a,l="string"==typeof o?new Date(o||0):o,c="string"==typeof i?new Date(i||0):i;try{return st(e,"dateTimeRange",t,s).formatRange(l,c)}catch(t){e.onError(new Ge("Error formatting date time range.",e.locale,t))}return String(l)}function dt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return st(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new Ge("Error formatting date.",e.locale,t))}return[]}function pt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return st(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new Ge("Error formatting time.",e.locale,t))}return[]}var ht=["style","type","fallback","languageDisplay"];function ft(e,t,n,r){var o=e.locale,i=e.onError;Intl.DisplayNames||i(new Ne('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',Ie.MISSING_INTL_API));var a=Xe(r,ht);try{return t(o,a).of(n)}catch(e){i(new Ge("Error formatting display name.",o,e))}}var mt=["type","style"],gt=Date.now();function vt(e,t,n,r){void 0===r&&(r={});var o=yt(e,t,n,r).reduce((function(e,t){var n=t.value;return"string"!=typeof n?e.push(n):"string"==typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e}),[]);return 1===o.length?o[0]:0===o.length?"":o}function yt(e,t,n,r){var o=e.locale,i=e.onError;void 0===r&&(r={}),Intl.ListFormat||i(new Ne('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',Ie.MISSING_INTL_API));var a=Xe(r,mt);try{var s={},l=n.map((function(e,t){if("object"==typeof e){var n=function(e){return"".concat(gt,"_").concat(e,"_").concat(gt)}(t);return s[n]=e,n}return String(e)}));return t(o,a).formatToParts(l).map((function(e){return"literal"===e.type?e:d(d({},e),{value:s[e.value]||e.value})}))}catch(e){i(new Ge("Error formatting list.",o,e))}return n}var bt=["type"];function wt(e,t,n,r){var o=e.locale,i=e.onError;void 0===r&&(r={}),Intl.PluralRules||i(new Ne('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ie.MISSING_INTL_API));var a=Xe(r,bt);try{return t(o,a).select(n)}catch(e){i(new Ge("Error formatting plural.",o,e))}return"other"}var xt=["numeric","style"];function St(e,t,n,r,o){void 0===o&&(o={}),r||(r="second"),Intl.RelativeTimeFormat||e.onError(new Ne('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',Ie.MISSING_INTL_API));try{return function(e,t,n){var r=e.locale,o=e.formats,i=e.onError;void 0===n&&(n={});var a=n.format,s=!!a&&tt(o,"relative",a,i)||{};return t(r,Xe(n,xt,s))}(e,t,o).format(n,r)}catch(t){e.onError(new Ge("Error formatting relative time.",e.locale,t))}return String(n)}var _t=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function Ct(e,t,n){var r=e.locale,o=e.formats,i=e.onError;void 0===n&&(n={});var a=n.format,s=a&&tt(o,"number",a,i)||{};return t(r,Xe(n,_t,s))}function Et(e,t,n,r){void 0===r&&(r={});try{return Ct(e,t,r).format(n)}catch(t){e.onError(new Ge("Error formatting number.",e.locale,t))}return String(n)}function kt(e,t,n,r){void 0===r&&(r={});try{return Ct(e,t,r).formatToParts(n)}catch(t){e.onError(new Ge("Error formatting number.",e.locale,t))}return[]}function zt(e){var t;e.onWarn&&e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.github.io/docs/getting-started/message-distribution')}function Pt(e,t){var n=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,o=h((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,p([void 0],t,!1)))}),{cache:et(e.dateTime),strategy:x.variadic}),i=h((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,p([void 0],t,!1)))}),{cache:et(e.number),strategy:x.variadic}),a=h((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,p([void 0],t,!1)))}),{cache:et(e.pluralRules),strategy:x.variadic});return{getDateTimeFormat:o,getNumberFormat:i,getMessageFormat:h((function(e,t,n,r){return new Ke(e,t,n,d({formatters:{getNumberFormat:i,getDateTimeFormat:o,getPluralRules:a}},r||{}))}),{cache:et(e.message),strategy:x.variadic}),getRelativeTimeFormat:h((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,p([void 0],e,!1)))}),{cache:et(e.relativeTime),strategy:x.variadic}),getPluralRules:a,getListFormat:h((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,p([void 0],e,!1)))}),{cache:et(e.list),strategy:x.variadic}),getDisplayNames:h((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,p([void 0],e,!1)))}),{cache:et(e.displayNames),strategy:x.variadic})}}(t),r=d(d({},Je),e),o=r.locale,i=r.defaultLocale,a=r.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&a?a(new qe('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&a&&a(new qe('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new We('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),zt(r),d(d({},r),{formatters:n,formatNumber:Et.bind(null,r,n.getNumberFormat),formatNumberToParts:kt.bind(null,r,n.getNumberFormat),formatRelativeTime:St.bind(null,r,n.getRelativeTimeFormat),formatDate:lt.bind(null,r,n.getDateTimeFormat),formatDateToParts:dt.bind(null,r,n.getDateTimeFormat),formatTime:ct.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:ut.bind(null,r,n.getDateTimeFormat),formatTimeToParts:pt.bind(null,r,n.getDateTimeFormat),formatPlural:wt.bind(null,r,n.getPluralRules),formatMessage:it.bind(null,r,n),$t:it.bind(null,r,n),formatList:vt.bind(null,r,n.getListFormat),formatListToParts:yt.bind(null,r,n.getListFormat),formatDisplayName:ft.bind(null,r,n.getDisplayNames)})}function At(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}function Dt(e){At(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Tt=i(i({},Je),{textComponent:l.Fragment});function It(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0;i<o;i++){var a=n[i];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}var Mt=n(4146),Nt=n.n(Mt);var Ot,Rt,jt="undefined"==typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?l.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=l.createContext(null)),Ft=jt.Consumer,Bt=jt.Provider,Lt=jt;function Vt(e,t){var n=t||{},r=n.intlPropName,o=void 0===r?"intl":r,a=n.forwardRef,s=void 0!==a&&a,c=n.enforceContext,u=void 0===c||c,d=function(t){return l.createElement(Ft,null,(function(n){var r;u&&Dt(n);var a=((r={})[o]=n,r);return l.createElement(e,i({},t,a,{ref:s?t.forwardedRef:null}))}))};return d.displayName="injectIntl(".concat(function(e){return e.displayName||e.name||"Component"}(e),")"),d.WrappedComponent=e,s?Nt()(l.forwardRef((function(e,t){return l.createElement(d,i({},e,{forwardedRef:t}))})),e):Nt()(d,e)}function Kt(){var e=l.useContext(Lt);return Dt(e),e}!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(Ot||(Ot={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(Rt||(Rt={}));var Ht=function(e){var t=Kt(),n=e.value,r=e.children,o=a(e,["value","children"]);return r(t.formatNumberToParts(n,o))};Ht.displayName="FormattedNumberParts";function $t(e){var t=function(t){var n=Kt(),r=t.value,o=t.children,i=a(t,["value","children"]),s="string"==typeof r?new Date(r||0):r;return o("formatDate"===e?n.formatDateToParts(s,i):n.formatTimeToParts(s,i))};return t.displayName=Rt[e],t}function Ut(e){var t=function(t){var n=Kt(),r=t.value,o=t.children,i=a(t,["value","children"]),s=n[e](r,i);if("function"==typeof o)return o(s);var c=n.textComponent||l.Fragment;return l.createElement(c,null,s)};return t.displayName=Ot[e],t}function Wt(e){return e?Object.keys(e).reduce((function(t,n){var r,o=e[n];return t[n]=Fe(o)?(r=o,function(e){return r(l.Children.toArray(e))}):o,t}),{}):e}Ht.displayName="FormattedNumberParts";var qt=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var a=Wt(r),c=it.apply(void 0,s([e,t,n,a],o,!1));return Array.isArray(c)?l.Children.toArray(c):c},Gt=function(e,t){var n=e.defaultRichTextElements,r=a(e,["defaultRichTextElements"]),o=Wt(n),s=Pt(i(i(i({},Tt),r),{defaultRichTextElements:o}),t),l={locale:s.locale,timeZone:s.timeZone,fallbackOnEmptyString:s.fallbackOnEmptyString,formats:s.formats,defaultLocale:s.defaultLocale,defaultFormats:s.defaultFormats,messages:s.messages,onError:s.onError,defaultRichTextElements:o};return i(i({},s),{formatMessage:qt.bind(null,l,s.formatters),$t:qt.bind(null,l,s.formatters)})},Zt=function(e){var t=Kt(),n=e.from,r=e.to,o=e.children,i=a(e,["from","to","children"]),s=t.formatDateTimeRange(n,r,i);if("function"==typeof o)return o(s);var c=t.textComponent||l.Fragment;return l.createElement(c,null,s)};Zt.displayName="FormattedDateTimeRange";function Yt(e,t){var n=e.values,r=a(e,["values"]),o=t.values,i=a(t,["values"]);return It(o,n)&&It(r,i)}function Xt(e){var t=Kt(),n=t.formatMessage,r=t.textComponent,o=void 0===r?l.Fragment:r,i=e.id,a=e.description,s=e.defaultMessage,c=e.values,u=e.children,d=e.tagName,p=void 0===d?o:d,h=n({id:i,description:a,defaultMessage:s},c,{ignoreTag:e.ignoreTag});return"function"==typeof u?u(Array.isArray(h)?h:[h]):p?l.createElement(p,null,l.Children.toArray(h)):l.createElement(l.Fragment,null,h)}Xt.displayName="FormattedMessage";var Jt=l.memo(Xt,Yt);Jt.displayName="MemoizedFormattedMessage";var Qt=function(e){var t=Kt(),n=t.formatPlural,r=t.textComponent,o=e.value,i=e.other,a=e.children,s=e[n(o,e)]||i;return"function"==typeof a?a(s):r?l.createElement(r,null,s):s};Qt.displayName="FormattedPlural";function en(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var tn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t.state={cache:t.cache,intl:Gt(en(t.props),t.cache),prevConfig:en(t.props)},t}return o(t,e),t.getDerivedStateFromProps=function(e,t){var n=t.prevConfig,r=t.cache,o=en(e);return It(n,o)?null:{intl:Gt(o,r),prevConfig:o}},t.prototype.render=function(){return Dt(this.state.intl),l.createElement(Bt,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Tt,t}(l.PureComponent);const nn=tn;var rn=3600;function on(e){var t=Math.abs(e);return t<60?"second":t<rn?"minute":t<86400?"hour":"day"}function an(e){switch(e){case"second":return 1;case"minute":return 60;case"hour":return rn;default:return 86400}}var sn=["second","minute","hour"];function ln(e){return void 0===e&&(e="second"),sn.indexOf(e)>-1}var cn=function(e){var t=Kt(),n=t.formatRelativeTime,r=t.textComponent,o=e.children,i=n(e.value||0,e.unit,a(e,["children","value","unit"]));return"function"==typeof o?o(i):r?l.createElement(r,null,i):l.createElement(l.Fragment,null,i)},un=function(e){var t=e.value,n=void 0===t?0:t,r=e.unit,o=void 0===r?"second":r,s=e.updateIntervalInSeconds,c=a(e,["value","unit","updateIntervalInSeconds"]);At(!s||!(!s||!ln(o)),"Cannot schedule update with unit longer than hour");var u,d=l.useState(),p=d[0],h=d[1],f=l.useState(0),m=f[0],g=f[1],v=l.useState(0),y=v[0],b=v[1];o===p&&n===m||(g(n||0),h(o),b(ln(o)?function(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return 60*e;default:return e*rn}}(n,o):0)),l.useEffect((function(){function e(){clearTimeout(u)}if(e(),!s||!ln(o))return e;var t=y-s,n=on(t);if("day"===n)return e;var r=an(n),i=t-t%r,a=i>=y?i-r:i,l=Math.abs(a-y);return y!==a&&(u=setTimeout((function(){return b(a)}),1e3*l)),e}),[y,s,o]);var w=n||0,x=o;if(ln(o)&&"number"==typeof y&&s){var S=an(x=on(y));w=Math.round(y/S)}return l.createElement(cn,i({value:w,unit:x},c))};un.displayName="FormattedRelativeTime";function dn(e){return e}Ut("formatDate"),Ut("formatTime"),Ut("formatNumber"),Ut("formatList"),Ut("formatDisplayName"),$t("formatDate"),$t("formatTime")},45605:(e,t,n)=>{"use strict";n.d(t,{E:()=>i,q:()=>o});var r=n(67136);class o{constructor(){(0,r.A)(this,"cancelled",!1),(0,r.A)(this,"cancelFns",[])}cancel(){for(const e of this.cancelFns)e();this.cancelled=!0}isCancelled(){return this.cancelled}addCancelFn(e){this.cancelFns.push(e)}addPromise(e){return this.addCancelFn(e.cancel),e.promise}wrapPromise(e){return i({promise:e,cancel:()=>this.cancel()})}}const i=e=>({promise:e.promise,cancel:e.cancel,then:(t,n)=>{const r=e.promise.then(t,n);return i({promise:r,cancel:e.cancel})}})},55543:(e,t,n)=>{"use strict";n.d(t,{L9:()=>f,oV:()=>d,JQ:()=>h,mC:()=>u,nl:()=>p,Eh:()=>y,f:()=>v,EX:()=>g,Ti:()=>m});var r=n(85409),o=n(4819),i=n(27957),a=n(45646),s=n(47240);class l{constructor(e){this.requestQueue=new a.L(e)}enqueue(e,t){const{promise:n,cancel:r}=this.requestQueue.enqueue(e,t===s.Priority.High);return{promise:n,cancel:()=>{(function(e){return"cancel"in e})(e)&&e.cancel(),r()}}}cancelRequests(e){this.requestQueue.cancel(e)}}const c=e=>new l(e),u=e=>{const t=c(2);return{wasmCtx:{engine:new i.N$(t,e)},requestQueue:t}},d=(e,t)=>{(0,o.v)(e.wasmCtx),e.wasmCtx.linearizedInstance=new WeakRef(t)},p=e=>{(0,o.v)(e.wasmCtx),e.wasmCtx.linearizedInstance?.deref()?.destroy(),e.wasmCtx.linearizedInstance=void 0},h=(e,t,n)=>({serverCtx:{info:e,satisfiesVersion:n},requestQueue:c(10),getWasmDispatch:t}),f=(e,t)=>{(0,o.v)(!e.wasmCtx),e.wasmCtx={engine:new i.N$(e.requestQueue,t)}},m=(e,t)=>((0,o.v)(e.wasmCtx),t(e.wasmCtx)),g=(e,t)=>((0,o.v)(e.serverCtx),t(e.serverCtx)),v=(e,t,n,o)=>{if(e.wasmCtx){if(o){const t=e.wasmCtx.linearizedInstance?.deref();if(t&&t.isRunning())return o(e.wasmCtx,t)}return m(e,t)}if(e.serverCtx)return g(e,n);throw new r.uE("No engine found")},y=(e,t)=>!!e.serverCtx&&e.serverCtx.satisfiesVersion(t)},47240:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Availability:()=>Nr,ContentEditor:()=>oo,ContentEditorTypes:()=>i,ImageFormat:()=>hr,IsLinearized:()=>Mr,LinearizedInstance:()=>Qr,LinearizedInstanceEvents:()=>Rr,LinearizedInstanceState:()=>Fr,Priority:()=>pr,Renderer:()=>r,Text:()=>o,TextComparison:()=>a,addWASMCtx:()=>s.L9,attachLinearizedInstance:()=>s.oV,createContentEditor:()=>ro,createServerContext:()=>s.JQ,createWASMContext:()=>s.mC,ping:()=>c,removeLinearizedInstance:()=>s.nl,satifiesServerVersion:()=>s.Eh,withEngine:()=>s.f,withServerEngine:()=>s.EX,withWASMEngine:()=>s.Ti});var r={};n.r(r),n.d(r,{LinearizedRenderingRequest:()=>ar,renderTile:()=>sr});var o={};n.r(o),n.d(o,{getContentTreeForPage:()=>dr,getTextForPage:()=>ur});var i={};n.r(i);var a={};n.r(a),n.d(a,{compareText:()=>wo});var s=n(55543),l=n(2752);const c=async e=>(0,s.f)(e,(async e=>{await e.engine.executeCommand("ping",pr.Normal,{})}),(async e=>{throw new l.Sx("not implemented")}));var u,d=n(67136);function p(e,t){return!(null===e||"object"!=typeof e||!("$typeName"in e)||"string"!=typeof e.$typeName)&&(void 0===t||t.typeName===e.$typeName)}function h(){let e=0,t=0;for(let n=0;n<28;n+=7){let r=this.buf[this.pos++];if(e|=(127&r)<<n,!(128&r))return this.assertBounds(),[e,t]}let n=this.buf[this.pos++];if(e|=(15&n)<<28,t=(112&n)>>4,!(128&n))return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let r=this.buf[this.pos++];if(t|=(127&r)<<n,!(128&r))return this.assertBounds(),[e,t]}throw new Error("invalid varint")}function f(e,t,n){for(let r=0;r<28;r+=7){const o=e>>>r,i=!(o>>>7==0&&0==t),a=255&(i?128|o:o);if(n.push(a),!i)return}const r=e>>>28&15|(7&t)<<4,o=!!(t>>3);if(n.push(255&(o?128|r:r)),o){for(let e=3;e<31;e+=7){const r=t>>>e,o=!(r>>>7==0),i=255&(o?128|r:r);if(n.push(i),!o)return}n.push(t>>>31&1)}}!function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"}(u||(u={}));const m=4294967296;function g(e){const t="-"===e[0];t&&(e=e.slice(1));const n=1e6;let r=0,o=0;function i(t,i){const a=Number(e.slice(t,i));o*=n,r=r*n+a,r>=m&&(o+=r/m|0,r%=m)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),t?b(r,o):y(r,o)}function v(e,t){if(({lo:e,hi:t}=function(e,t){return{lo:e>>>0,hi:t>>>0}}(e,t)),t<=2097151)return String(m*t+e);const n=16777215&(e>>>24|t<<8),r=t>>16&65535;let o=(16777215&e)+6777216*n+6710656*r,i=n+8147497*r,a=2*r;const s=1e7;return o>=s&&(i+=Math.floor(o/s),o%=s),i>=s&&(a+=Math.floor(i/s),i%=s),a.toString()+w(i)+w(o)}function y(e,t){return{lo:0|e,hi:0|t}}function b(e,t){return t=~t,e?e=1+~e:t+=1,y(e,t)}const w=e=>{const t=String(e);return"0000000".slice(t.length)+t};function x(e,t){if(e>=0){for(;e>127;)t.push(127&e|128),e>>>=7;t.push(e)}else{for(let n=0;n<9;n++)t.push(127&e|128),e>>=7;t.push(1)}}function S(){let e=this.buf[this.pos++],t=127&e;if(!(128&e))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(127&e)<<7,!(128&e))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(127&e)<<14,!(128&e))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(127&e)<<21,!(128&e))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(15&e)<<28;for(let t=5;128&e&&t<10;t++)e=this.buf[this.pos++];if(128&e)throw new Error("invalid varint");return this.assertBounds(),t>>>0}const _=C();function C(){const e=new DataView(new ArrayBuffer(8));if("function"==typeof BigInt&&"function"==typeof e.getBigInt64&&"function"==typeof e.getBigUint64&&"function"==typeof e.setBigInt64&&"function"==typeof e.setBigUint64&&("object"!=typeof process||"object"!=typeof process.env||"1"!==process.env.BUF_BIGINT_DISABLE)){const t=BigInt("-9223372036854775808"),n=BigInt("9223372036854775807"),r=BigInt("0"),o=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(e){const r="bigint"==typeof e?e:BigInt(e);if(r>n||r<t)throw new Error(`invalid int64: ${e}`);return r},uParse(e){const t="bigint"==typeof e?e:BigInt(e);if(t>o||t<r)throw new Error(`invalid uint64: ${e}`);return t},enc(t){return e.setBigInt64(0,this.parse(t),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(t){return e.setBigInt64(0,this.uParse(t),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec:(t,n)=>(e.setInt32(0,t,!0),e.setInt32(4,n,!0),e.getBigInt64(0,!0)),uDec:(t,n)=>(e.setInt32(0,t,!0),e.setInt32(4,n,!0),e.getBigUint64(0,!0))}}return{zero:"0",supported:!1,parse:e=>("string"!=typeof e&&(e=e.toString()),E(e),e),uParse:e=>("string"!=typeof e&&(e=e.toString()),k(e),e),enc:e=>("string"!=typeof e&&(e=e.toString()),E(e),g(e)),uEnc:e=>("string"!=typeof e&&(e=e.toString()),k(e),g(e)),dec:(e,t)=>function(e,t){let n=y(e,t);const r=2147483648&n.hi;r&&(n=b(n.lo,n.hi));const o=v(n.lo,n.hi);return r?"-"+o:o}(e,t),uDec:(e,t)=>v(e,t)}}function E(e){if(!/^-?[0-9]+$/.test(e))throw new Error("invalid int64: "+e)}function k(e){if(!/^[0-9]+$/.test(e))throw new Error("invalid uint64: "+e)}function z(e,t){switch(e){case u.STRING:return"";case u.BOOL:return!1;default:case u.DOUBLE:case u.FLOAT:return 0;case u.INT64:case u.UINT64:case u.SFIXED64:case u.FIXED64:case u.SINT64:return t?"0":_.zero;case u.BYTES:return new Uint8Array(0)}}class P extends Error{constructor(e,t,n="FieldValueInvalidError"){super(t),this.name=n,this.field=()=>e}}const A=Symbol.for("reflect unsafe local");function D(e,t){const n=e[t.localName].case;return void 0===n?n:t.fields.find((e=>e.localName===n))}function T(e,t){const n=t.localName;if(t.oneof)return e[t.oneof.localName].case===n;if(2!=t.presence)return void 0!==e[n]&&Object.prototype.hasOwnProperty.call(e,n);switch(t.fieldKind){case"list":return e[n].length>0;case"map":return Object.keys(e[n]).length>0;case"scalar":return!function(e,t){switch(e){case u.BOOL:return!1===t;case u.STRING:return""===t;case u.BYTES:return t instanceof Uint8Array&&!t.byteLength;default:return 0==t}}(t.scalar,e[n]);case"enum":return e[n]!==t.enum.values[0].number}throw new Error("message field with implicit presence")}function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&void 0!==e[t]}function M(e,t){if(t.oneof){const n=e[t.oneof.localName];return n.case===t.localName?n.value:void 0}return e[t.localName]}function N(e,t,n){t.oneof?e[t.oneof.localName]={case:t.localName,value:n}:e[t.localName]=n}function O(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function R(e,t){var n,r,o,i;if(O(e)&&A in e&&"add"in e&&"field"in e&&"function"==typeof e.field){if(void 0!==t){const a=t,s=e.field();return a.listKind==s.listKind&&a.scalar===s.scalar&&(null===(n=a.message)||void 0===n?void 0:n.typeName)===(null===(r=s.message)||void 0===r?void 0:r.typeName)&&(null===(o=a.enum)||void 0===o?void 0:o.typeName)===(null===(i=s.enum)||void 0===i?void 0:i.typeName)}return!0}return!1}function j(e,t){var n,r,o,i;if(O(e)&&A in e&&"has"in e&&"field"in e&&"function"==typeof e.field){if(void 0!==t){const a=t,s=e.field();return a.mapKey===s.mapKey&&a.mapKind==s.mapKind&&a.scalar===s.scalar&&(null===(n=a.message)||void 0===n?void 0:n.typeName)===(null===(r=s.message)||void 0===r?void 0:r.typeName)&&(null===(o=a.enum)||void 0===o?void 0:o.typeName)===(null===(i=s.enum)||void 0===i?void 0:i.typeName)}return!0}return!1}function F(e,t){return O(e)&&A in e&&"desc"in e&&O(e.desc)&&"message"===e.desc.kind&&(void 0===t||e.desc.typeName==t.typeName)}function B(e){const t=e.fields[0];return L(e.typeName)&&void 0!==t&&"scalar"==t.fieldKind&&"value"==t.name&&1==t.number}function L(e){return e.startsWith("google.protobuf.")&&["DoubleValue","FloatValue","Int64Value","UInt64Value","Int32Value","UInt32Value","BoolValue","StringValue","BytesValue"].includes(e.substring(16))}function V(e,t){if(p(t,e))return t;const n=function(e){let t;if(function(e){switch(e.file.edition){case 999:return!1;case 998:return!0;default:return e.fields.some((e=>2!=e.presence&&"message"!=e.fieldKind&&!e.oneof))}}(e)){const n=Z.get(e);let r,o;if(n)({prototype:r,members:o}=n);else{r={},o=new Set;for(const t of e.members)"oneof"!=t.kind&&("scalar"!=t.fieldKind&&"enum"!=t.fieldKind||2!=t.presence&&(o.add(t),r[t.localName]=Y(t)));Z.set(e,{prototype:r,members:o})}t=Object.create(r),t.$typeName=e.typeName;for(const n of e.members)if(!o.has(n)){if("field"==n.kind){if("message"==n.fieldKind)continue;if(("scalar"==n.fieldKind||"enum"==n.fieldKind)&&2!=n.presence)continue}t[n.localName]=Y(n)}}else{t={$typeName:e.typeName};for(const n of e.members)"oneof"!=n.kind&&2!=n.presence||(t[n.localName]=Y(n))}return t}(e);return void 0!==t&&function(e,t,n){for(const r of e.members){let e,o=n[r.localName];if(null!=o){if("oneof"==r.kind){const t=D(n,r);if(!t)continue;e=t,o=M(n,t)}else e=r;switch(e.fieldKind){case"message":o=U(e,o);break;case"scalar":o=K(e,o);break;case"list":o=$(e,o);break;case"map":o=H(e,o)}N(t,e,o)}}}(e,n,t),n}function K(e,t){return e.scalar==u.BYTES?W(t):t}function H(e,t){if(O(t)){if(e.scalar==u.BYTES)return q(t,W);if("message"==e.mapKind)return q(t,(t=>U(e,t)))}return t}function $(e,t){if(Array.isArray(t)){if(e.scalar==u.BYTES)return t.map(W);if("message"==e.listKind)return t.map((t=>U(e,t)))}return t}function U(e,t){if("message"==e.fieldKind&&!e.oneof&&B(e.message))return K(e.message.fields[0],t);if(O(t)){if("google.protobuf.Struct"==e.message.typeName&&"google.protobuf.Value"!==e.parent.typeName)return t;if(!p(t,e.message))return V(e.message,t)}return t}function W(e){return Array.isArray(e)?new Uint8Array(e):e}function q(e,t){const n={};for(const r of Object.entries(e))n[r[0]]=t(r[1]);return n}const G=Symbol(),Z=new WeakMap;function Y(e){if("oneof"==e.kind)return{case:void 0};if("list"==e.fieldKind)return[];if("map"==e.fieldKind)return{};if("message"==e.fieldKind)return G;const t=e.getDefaultValue();return void 0!==t?"scalar"==e.fieldKind&&e.longAsString?t.toString():t:"scalar"==e.fieldKind?z(e.scalar,e.longAsString):e.enum.values[0].number}const X=Symbol.for("@bufbuild/protobuf/text-encoding");function J(){if(null==globalThis[X]){const e=new globalThis.TextEncoder,t=new globalThis.TextDecoder;globalThis[X]={encodeUtf8:t=>e.encode(t),decodeUtf8:e=>t.decode(e),checkUtf8(e){try{return encodeURIComponent(e),!0}catch(e){return!1}}}}return globalThis[X]}var Q;!function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"}(Q||(Q={}));const ee=34028234663852886e22,te=-34028234663852886e22,ne=4294967295,re=2147483647,oe=-2147483648;class ie{constructor(e=J().encodeUtf8){this.encodeUtf8=e,this.stack=[],this.chunks=[],this.buf=[]}finish(){this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]);let e=0;for(let t=0;t<this.chunks.length;t++)e+=this.chunks[t].length;let t=new Uint8Array(e),n=0;for(let e=0;e<this.chunks.length;e++)t.set(this.chunks[e],n),n+=this.chunks[e].length;return this.chunks=[],t}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let e=this.finish(),t=this.stack.pop();if(!t)throw new Error("invalid state, fork stack empty");return this.chunks=t.chunks,this.buf=t.buf,this.uint32(e.byteLength),this.raw(e)}tag(e,t){return this.uint32((e<<3|t)>>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(le(e);e>127;)this.buf.push(127&e|128),e>>>=7;return this.buf.push(e),this}int32(e){return se(e),x(e,this.buf),this}bool(e){return this.buf.push(e?1:0),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let t=this.encodeUtf8(e);return this.uint32(t.byteLength),this.raw(t)}float(e){!function(e){if("string"==typeof e){const t=e;if(e=Number(e),isNaN(e)&&"NaN"!==t)throw new Error("invalid float32: "+t)}else if("number"!=typeof e)throw new Error("invalid float32: "+typeof e);if(Number.isFinite(e)&&(e>ee||e<te))throw new Error("invalid float32: "+e)}(e);let t=new Uint8Array(4);return new DataView(t.buffer).setFloat32(0,e,!0),this.raw(t)}double(e){let t=new Uint8Array(8);return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}fixed32(e){le(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){se(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return se(e),x(e=(e<<1^e>>31)>>>0,this.buf),this}sfixed64(e){let t=new Uint8Array(8),n=new DataView(t.buffer),r=_.enc(e);return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}fixed64(e){let t=new Uint8Array(8),n=new DataView(t.buffer),r=_.uEnc(e);return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}int64(e){let t=_.enc(e);return f(t.lo,t.hi,this.buf),this}sint64(e){let t=_.enc(e),n=t.hi>>31;return f(t.lo<<1^n,(t.hi<<1|t.lo>>>31)^n,this.buf),this}uint64(e){let t=_.uEnc(e);return f(t.lo,t.hi,this.buf),this}}class ae{constructor(e,t=J().decodeUtf8){this.decodeUtf8=t,this.varint64=h,this.uint32=S,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength)}tag(){let e=this.uint32(),t=e>>>3,n=7&e;if(t<=0||n<0||n>5)throw new Error("illegal tag: field no "+t+" wire type "+n);return[t,n]}skip(e,t){let n=this.pos;switch(e){case Q.Varint:for(;128&this.buf[this.pos++];);break;case Q.Bit64:this.pos+=4;case Q.Bit32:this.pos+=4;break;case Q.LengthDelimited:let n=this.uint32();this.pos+=n;break;case Q.StartGroup:for(;;){const[e,n]=this.tag();if(n===Q.EndGroup){if(void 0!==t&&e!==t)throw new Error("invalid end group tag");break}this.skip(n,e)}break;default:throw new Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return 0|this.uint32()}sint32(){let e=this.uint32();return e>>>1^-(1&e)}int64(){return _.dec(...this.varint64())}uint64(){return _.uDec(...this.varint64())}sint64(){let[e,t]=this.varint64(),n=-(1&e);return e=(e>>>1|(1&t)<<31)^n,t=t>>>1^n,_.dec(e,t)}bool(){let[e,t]=this.varint64();return 0!==e||0!==t}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return _.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return _.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}string(){return this.decodeUtf8(this.bytes())}}function se(e){if("string"==typeof e)e=Number(e);else if("number"!=typeof e)throw new Error("invalid int32: "+typeof e);if(!Number.isInteger(e)||e>re||e<oe)throw new Error("invalid int32: "+e)}function le(e){if("string"==typeof e)e=Number(e);else if("number"!=typeof e)throw new Error("invalid uint32: "+typeof e);if(!Number.isInteger(e)||e>ne||e<0)throw new Error("invalid uint32: "+e)}function ce(e,t,n){const r=ue(e,n);if(!0!==r)return new P(e,`list item #${t+1}: ${pe(e,n,r)}`)}function ue(e,t){return void 0!==e.scalar?de(t,e.scalar):void 0!==e.enum?e.enum.open?Number.isInteger(t):e.enum.values.some((e=>e.number===t)):F(t,e.message)}function de(e,t){switch(t){case u.DOUBLE:return"number"==typeof e;case u.FLOAT:return"number"==typeof e&&(!(!Number.isNaN(e)&&Number.isFinite(e))||(!(e>ee||e<te)||`${e.toFixed()} out of range`));case u.INT32:case u.SFIXED32:case u.SINT32:return!("number"!=typeof e||!Number.isInteger(e))&&(!(e>re||e<oe)||`${e.toFixed()} out of range`);case u.FIXED32:case u.UINT32:return!("number"!=typeof e||!Number.isInteger(e))&&(!(e>ne||e<0)||`${e.toFixed()} out of range`);case u.BOOL:return"boolean"==typeof e;case u.STRING:return"string"==typeof e&&(J().checkUtf8(e)||"invalid UTF8");case u.BYTES:return e instanceof Uint8Array;case u.INT64:case u.SFIXED64:case u.SINT64:if("string"!=typeof e&&"bigint"!=typeof e&&"number"!=typeof e)return!1;try{_.parse(e)}catch(t){return`${e} out of range`}return!0;case u.FIXED64:case u.UINT64:if("string"!=typeof e&&"bigint"!=typeof e&&"number"!=typeof e)return!1;try{_.uParse(e)}catch(t){return`${e} out of range`}return!0}}function pe(e,t,n){return n="string"==typeof n?`: ${n}`:`, got ${he(t)}`,void 0!==e.scalar?`expected ${function(e){switch(e){case u.STRING:return"string";case u.BOOL:return"boolean";case u.INT64:case u.SINT64:case u.SFIXED64:return"bigint (int64)";case u.UINT64:case u.FIXED64:return"bigint (uint64)";case u.BYTES:return"Uint8Array";case u.DOUBLE:return"number (float64)";case u.FLOAT:return"number (float32)";case u.FIXED32:case u.UINT32:return"number (uint32)";case u.INT32:case u.SFIXED32:case u.SINT32:return"number (int32)"}}(e.scalar)}`+n:void 0!==e.enum?`expected ${e.enum.toString()}`+n:`expected ${fe(e.message)}`+n}function he(e){switch(typeof e){case"object":return null===e?"null":e instanceof Uint8Array?`Uint8Array(${e.length})`:Array.isArray(e)?`Array(${e.length})`:R(e)?me(e.field()):j(e)?ge(e.field()):F(e)?fe(e.desc):p(e)?`message ${e.$typeName}`:"object";case"string":return e.length>30?"string":`"${e.split('"').join('\\"')}"`;case"boolean":case"number":return String(e);case"bigint":return String(e)+"n";default:return typeof e}}function fe(e){return`ReflectMessage (${e.typeName})`}function me(e){switch(e.listKind){case"message":return`ReflectList (${e.message.toString()})`;case"enum":return`ReflectList (${e.enum.toString()})`;case"scalar":return`ReflectList (${u[e.scalar]})`}}function ge(e){switch(e.mapKind){case"message":return`ReflectMap (${u[e.mapKey]}, ${e.message.toString()})`;case"enum":return`ReflectMap (${u[e.mapKey]}, ${e.enum.toString()})`;case"scalar":return`ReflectMap (${u[e.mapKey]}, ${u[e.scalar]})`}}function ve(e,t,n=!0){return new ye(e,t,n)}class ye{get sortedFields(){var e;return null!==(e=this._sortedFields)&&void 0!==e?e:this._sortedFields=this.desc.fields.concat().sort(((e,t)=>e.number-t.number))}constructor(e,t,n=!0){this.lists=new Map,this.maps=new Map,this.check=n,this.desc=e,this.message=this[A]=null!=t?t:V(e),this.fields=e.fields,this.oneofs=e.oneofs,this.members=e.members}findNumber(e){return this._fieldsByNumber||(this._fieldsByNumber=new Map(this.desc.fields.map((e=>[e.number,e])))),this._fieldsByNumber.get(e)}oneofCase(e){return be(this.message,e),D(this.message,e)}isSet(e){return be(this.message,e),T(this.message,e)}clear(e){be(this.message,e),function(e,t){const n=t.localName;if(t.oneof){const r=t.oneof.localName;e[r].case===n&&(e[r]={case:void 0})}else if(2!=t.presence)delete e[n];else switch(t.fieldKind){case"map":e[n]={};break;case"list":e[n]=[];break;case"enum":e[n]=t.enum.values[0].number;break;case"scalar":e[n]=z(t.scalar,t.longAsString)}}(this.message,e)}get(e){be(this.message,e);const t=M(this.message,e);switch(e.fieldKind){case"list":let n=this.lists.get(e);return n&&n[A]===t||this.lists.set(e,n=new we(e,t,this.check)),n;case"map":let r=this.maps.get(e);return r&&r[A]===t||this.maps.set(e,r=new xe(e,t,this.check)),r;case"message":return _e(e,t,this.check);case"scalar":return void 0===t?z(e.scalar,!1):Ae(e,t);case"enum":return null!=t?t:e.enum.values[0].number}}set(e,t){if(be(this.message,e),this.check){const n=function(e,t){const n="list"==e.fieldKind?R(t,e):"map"==e.fieldKind?j(t,e):ue(e,t);if(!0===n)return;let r;switch(e.fieldKind){case"list":r=`expected ${me(e)}, got ${he(t)}`;break;case"map":r=`expected ${ge(e)}, got ${he(t)}`;break;default:r=pe(e,t,n)}return new P(e,r)}(e,t);if(n)throw n}let n;n="message"==e.fieldKind?Se(e,t):j(t)||R(t)?t[A]:De(e,t),N(this.message,e,n)}getUnknown(){return this.message.$unknown}setUnknown(e){this.message.$unknown=e}}function be(e,t){if(t.parent.typeName!==e.$typeName)throw new P(t,`cannot use ${t.toString()} with message ${e.$typeName}`,"ForeignFieldError")}class we{field(){return this._field}get size(){return this._arr.length}constructor(e,t,n){this._field=e,this._arr=this[A]=t,this.check=n}get(e){const t=this._arr[e];return void 0===t?void 0:Ee(this._field,t,this.check)}set(e,t){if(e<0||e>=this._arr.length)throw new P(this._field,`list item #${e+1}: out of range`);if(this.check){const n=ce(this._field,e,t);if(n)throw n}this._arr[e]=Ce(this._field,t)}add(e){if(this.check){const t=ce(this._field,this._arr.length,e);if(t)throw t}this._arr.push(Ce(this._field,e))}clear(){this._arr.splice(0,this._arr.length)}[Symbol.iterator](){return this.values()}keys(){return this._arr.keys()}*values(){for(const e of this._arr)yield Ee(this._field,e,this.check)}*entries(){for(let e=0;e<this._arr.length;e++)yield[e,Ee(this._field,this._arr[e],this.check)]}}class xe{constructor(e,t,n=!0){this.obj=this[A]=null!=t?t:{},this.check=n,this._field=e}field(){return this._field}set(e,t){if(this.check){const n=function(e,t,n){const r=de(t,e.mapKey);if(!0!==r)return new P(e,`invalid map key: ${pe({scalar:e.mapKey},t,r)}`);const o=ue(e,n);return!0!==o?new P(e,`map entry ${he(t)}: ${pe(e,n,o)}`):void 0}(this._field,e,t);if(n)throw n}return this.obj[ze(e)]=function(e,t){if("message"==e.mapKind)return Se(e,t);return De(e,t)}(this._field,t),this}delete(e){const t=ze(e),n=Object.prototype.hasOwnProperty.call(this.obj,t);return n&&delete this.obj[t],n}clear(){for(const e of Object.keys(this.obj))delete this.obj[e]}get(e){let t=this.obj[ze(e)];return void 0!==t&&(t=ke(this._field,t,this.check)),t}has(e){return Object.prototype.hasOwnProperty.call(this.obj,ze(e))}*keys(){for(const e of Object.keys(this.obj))yield Pe(e,this._field.mapKey)}*entries(){for(const e of Object.entries(this.obj))yield[Pe(e[0],this._field.mapKey),ke(this._field,e[1],this.check)]}[Symbol.iterator](){return this.entries()}get size(){return Object.keys(this.obj).length}*values(){for(const e of Object.values(this.obj))yield ke(this._field,e,this.check)}forEach(e,t){for(const n of this.entries())e.call(t,n[1],n[0],this)}}function Se(e,t){return F(t)?L(t.message.$typeName)&&!e.oneof&&"message"==e.fieldKind?t.message.value:"google.protobuf.Struct"==t.desc.typeName&&"google.protobuf.Value"!=e.parent.typeName?Ie(t.message):t.message:t}function _e(e,t,n){return void 0!==t&&(B(e.message)&&!e.oneof&&"message"==e.fieldKind?t={$typeName:e.message.typeName,value:Ae(e.message.fields[0],t)}:"google.protobuf.Struct"==e.message.typeName&&"google.protobuf.Value"!=e.parent.typeName&&O(t)&&(t=Te(t))),new ye(e.message,t,n)}function Ce(e,t){return"message"==e.listKind?Se(e,t):De(e,t)}function Ee(e,t,n){return"message"==e.listKind?_e(e,t,n):Ae(e,t)}function ke(e,t,n){return"message"==e.mapKind?_e(e,t,n):t}function ze(e){return"string"==typeof e||"number"==typeof e?e:String(e)}function Pe(e,t){switch(t){case u.STRING:return e;case u.INT32:case u.FIXED32:case u.UINT32:case u.SFIXED32:case u.SINT32:{const t=Number.parseInt(e);if(Number.isFinite(t))return t;break}case u.BOOL:switch(e){case"true":return!0;case"false":return!1}break;case u.UINT64:case u.FIXED64:try{return _.uParse(e)}catch(e){}break;default:try{return _.parse(e)}catch(e){}}return e}function Ae(e,t){switch(e.scalar){case u.INT64:case u.SFIXED64:case u.SINT64:"longAsString"in e&&e.longAsString&&"string"==typeof t&&(t=_.parse(t));break;case u.FIXED64:case u.UINT64:"longAsString"in e&&e.longAsString&&"string"==typeof t&&(t=_.uParse(t))}return t}function De(e,t){switch(e.scalar){case u.INT64:case u.SFIXED64:case u.SINT64:"longAsString"in e&&e.longAsString?t=String(t):"string"!=typeof t&&"number"!=typeof t||(t=_.parse(t));break;case u.FIXED64:case u.UINT64:"longAsString"in e&&e.longAsString?t=String(t):"string"!=typeof t&&"number"!=typeof t||(t=_.uParse(t))}return t}function Te(e){const t={$typeName:"google.protobuf.Struct",fields:{}};if(O(e))for(const[n,r]of Object.entries(e))t.fields[n]=Ne(r);return t}function Ie(e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Me(r);return t}function Me(e){switch(e.kind.case){case"structValue":return Ie(e.kind.value);case"listValue":return e.kind.value.values.map(Me);case"nullValue":case void 0:return null;default:return e.kind.value}}function Ne(e){const t={$typeName:"google.protobuf.Value",kind:{case:void 0}};switch(typeof e){case"number":t.kind={case:"numberValue",value:e};break;case"string":t.kind={case:"stringValue",value:e};break;case"boolean":t.kind={case:"boolValue",value:e};break;case"object":if(null===e){const e=0;t.kind={case:"nullValue",value:e}}else if(Array.isArray(e)){const n={$typeName:"google.protobuf.ListValue",values:[]};if(Array.isArray(e))for(const t of e)n.values.push(Ne(t));t.kind={case:"listValue",value:n}}else t.kind={case:"structValue",value:Te(e)}}return t}function Oe(e){const t=function(){if(!Fe){Fe=[];const e=Be("std");for(let t=0;t<e.length;t++)Fe[e[t].charCodeAt(0)]=t;Fe["-".charCodeAt(0)]=e.indexOf("+"),Fe["_".charCodeAt(0)]=e.indexOf("/")}return Fe}();let n=3*e.length/4;"="==e[e.length-2]?n-=2:"="==e[e.length-1]&&(n-=1);let r,o=new Uint8Array(n),i=0,a=0,s=0;for(let n=0;n<e.length;n++){if(r=t[e.charCodeAt(n)],void 0===r)switch(e[n]){case"=":a=0;case"\n":case"\r":case"\t":case" ":continue;default:throw Error("invalid base64 string")}switch(a){case 0:s=r,a=1;break;case 1:o[i++]=s<<2|(48&r)>>4,s=r,a=2;break;case 2:o[i++]=(15&s)<<4|(60&r)>>2,s=r,a=3;break;case 3:o[i++]=(3&s)<<6|r,a=0}}if(1==a)throw Error("invalid base64 string");return o.subarray(0,i)}let Re,je,Fe;function Be(e){return Re||(Re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),je=Re.slice(0,-2).concat("-","_")),"url"==e?je:Re}function Le(e){let t=!1;const n=[];for(let r=0;r<e.length;r++){let o=e.charAt(r);switch(o){case"_":t=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n.push(o),t=!1;break;default:t&&(t=!1,o=o.toUpperCase()),n.push(o)}}return n.join("")}const Ve=new Set(["constructor","toString","toJSON","valueOf"]);function Ke(e){return Ve.has(e)?e+"$":e}function He(e){for(const t of e.field)I(t,"jsonName")||(t.jsonName=Le(t.name));e.nestedType.forEach(He)}function $e(e,t){switch(e){case u.STRING:return t;case u.BYTES:{const n=function(e){const t=[],n={tail:e,c:"",next(){return 0!=this.tail.length&&(this.c=this.tail[0],this.tail=this.tail.substring(1),!0)},take(e){if(this.tail.length>=e){const t=this.tail.substring(0,e);return this.tail=this.tail.substring(e),t}return!1}};for(;n.next();)if("\\"===n.c){if(n.next())switch(n.c){case"\\":t.push(n.c.charCodeAt(0));break;case"b":t.push(8);break;case"f":t.push(12);break;case"n":t.push(10);break;case"r":t.push(13);break;case"t":t.push(9);break;case"v":t.push(11);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{const e=n.c,r=n.take(2);if(!1===r)return!1;const o=parseInt(e+r,8);if(isNaN(o))return!1;t.push(o);break}case"x":{const e=n.c,r=n.take(2);if(!1===r)return!1;const o=parseInt(e+r,16);if(isNaN(o))return!1;t.push(o);break}case"u":{const e=n.c,r=n.take(4);if(!1===r)return!1;const o=parseInt(e+r,16);if(isNaN(o))return!1;const i=new Uint8Array(4);new DataView(i.buffer).setInt32(0,o,!0),t.push(i[0],i[1],i[2],i[3]);break}case"U":{const e=n.c,r=n.take(8);if(!1===r)return!1;const o=_.uEnc(e+r),i=new Uint8Array(8),a=new DataView(i.buffer);a.setInt32(0,o.lo,!0),a.setInt32(4,o.hi,!0),t.push(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7]);break}}}else t.push(n.c.charCodeAt(0));return new Uint8Array(t)}(t);if(!1===n)throw new Error(`cannot parse ${u[e]} default value: ${t}`);return n}case u.INT64:case u.SFIXED64:case u.SINT64:return _.parse(t);case u.UINT64:case u.FIXED64:return _.uParse(t);case u.DOUBLE:case u.FLOAT:switch(t){case"inf":return Number.POSITIVE_INFINITY;case"-inf":return Number.NEGATIVE_INFINITY;case"nan":return Number.NaN;default:return parseFloat(t)}case u.BOOL:return"true"===t;case u.INT32:case u.UINT32:case u.SINT32:case u.FIXED32:case u.SFIXED32:return parseInt(t,10)}}function*Ue(e){switch(e.kind){case"file":for(const t of e.messages)yield t,yield*Ue(t);yield*e.enums,yield*e.services,yield*e.extensions;break;case"message":for(const t of e.nestedMessages)yield t,yield*Ue(t);yield*e.nestedEnums,yield*e.nestedExtensions}}function We(...e){const t=qe();if(!e.length)return t;if("$typeName"in e[0]&&"google.protobuf.FileDescriptorSet"==e[0].$typeName){for(const n of e[0].file)pt(n,t);return t}if("$typeName"in e[0]){const r=e[0],o=e[1],i=new Set;function a(e){const n=[];for(const r of e.dependency){if(null!=t.getFile(r))continue;if(i.has(r))continue;const a=o(r);if(!a)throw new Error(`Unable to resolve ${r}, imported by ${e.name}`);"kind"in a?t.addFile(a,!1,!0):(i.add(a.name),n.push(a))}return n.concat(...n.map(a))}for(const s of[r,...a(r)].reverse())pt(s,t)}else for(const l of e)for(const c of l.files)t.addFile(c);return t}function qe(){const e=new Map,t=new Map,n=new Map;return{kind:"registry",types:e,extendees:t,[Symbol.iterator]:()=>e.values(),get files(){return n.values()},addFile(e,t,r){if(n.set(e.proto.name,e),!t)for(const t of Ue(e))this.add(t);if(r)for(const n of e.dependencies)this.addFile(n,t,r)},add(n){if("extension"==n.kind){let e=t.get(n.extendee.typeName);e||t.set(n.extendee.typeName,e=new Map),e.set(n.number,n)}e.set(n.typeName,n)},get:t=>e.get(t),getFile:e=>n.get(e),getMessage(t){const n=e.get(t);return"message"==(null==n?void 0:n.kind)?n:void 0},getEnum(t){const n=e.get(t);return"enum"==(null==n?void 0:n.kind)?n:void 0},getExtension(t){const n=e.get(t);return"extension"==(null==n?void 0:n.kind)?n:void 0},getExtensionFor(e,n){var r;return null===(r=t.get(e.typeName))||void 0===r?void 0:r.get(n)},getService(t){const n=e.get(t);return"service"==(null==n?void 0:n.kind)?n:void 0}}}const Ge=998,Ze=999,Ye=9,Xe=10,Je=11,Qe=12,et=14,tt=3,nt=2,rt=1,ot=0,it=1,at=2,st=3,lt=1,ct=2,ut=1,dt={998:{fieldPresence:1,enumType:2,repeatedFieldEncoding:2,utf8Validation:3,messageEncoding:1,jsonFormat:2},999:{fieldPresence:2,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1},1e3:{fieldPresence:1,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1}};function pt(e,t){var n,r;const o={kind:"file",proto:e,deprecated:null!==(r=null===(n=e.options)||void 0===n?void 0:n.deprecated)&&void 0!==r&&r,edition:wt(e),name:e.name.replace(/\.proto$/,""),dependencies:xt(e,t),enums:[],messages:[],extensions:[],services:[],toString:()=>`file ${e.name}`},i=new Map,a={get:e=>i.get(e),add(e){var t;Pt(!0===(null===(t=e.proto.options)||void 0===t?void 0:t.mapEntry)),i.set(e.typeName,e)}};for(const n of e.enumType)mt(n,o,void 0,t);for(const n of e.messageType)gt(n,o,void 0,t,a);for(const n of e.service)vt(n,o,t);ht(o,t);for(const e of i.values())ft(e,t,a);for(const e of o.messages)ft(e,t,a),ht(e,t);t.addFile(o,!0)}function ht(e,t){switch(e.kind){case"file":for(const n of e.proto.extension){const r=bt(n,e,t);e.extensions.push(r),t.add(r)}break;case"message":for(const n of e.proto.extension){const r=bt(n,e,t);e.nestedExtensions.push(r),t.add(r)}for(const n of e.nestedMessages)ht(n,t)}}function ft(e,t,n){const r=e.proto.oneofDecl.map((t=>function(e,t){return{kind:"oneof",proto:e,deprecated:!1,parent:t,fields:[],name:e.name,localName:Ke(Le(e.name)),toString(){return`oneof ${t.typeName}.${this.name}`}}}(t,e))),o=new Set;for(const i of e.proto.field){const a=Ct(i,r),s=bt(i,e,t,a,n);e.fields.push(s),e.field[s.localName]=s,void 0===a?e.members.push(s):(a.fields.push(s),o.has(a)||(o.add(a),e.members.push(a)))}for(const t of r.filter((e=>o.has(e))))e.oneofs.push(t);for(const r of e.nestedMessages)ft(r,t,n)}function mt(e,t,n,r){var o,i,a;const s=function(e,t){const n=(r=e,(r.substring(0,1)+r.substring(1).replace(/[A-Z]/g,(e=>"_"+e))).toLowerCase()+"_");var r;for(const e of t){if(!e.name.toLowerCase().startsWith(n))return;const t=e.name.substring(n.length);if(0==t.length)return;if(/^\d/.test(t))return}return n}(e.name,e.value),l={kind:"enum",proto:e,deprecated:null!==(i=null===(o=e.options)||void 0===o?void 0:o.deprecated)&&void 0!==i&&i,file:t,parent:n,open:!0,name:e.name,typeName:St(e,n,t),value:{},values:[],sharedPrefix:s,toString(){return`enum ${this.typeName}`}};l.open=function(e){var t;return ut==zt("enumType",{proto:e.proto,parent:null!==(t=e.parent)&&void 0!==t?t:e.file})}(l),r.add(l),e.value.forEach((e=>{var t,n;const r=e.name;l.values.push(l.value[e.number]={kind:"enum_value",proto:e,deprecated:null!==(n=null===(t=e.options)||void 0===t?void 0:t.deprecated)&&void 0!==n&&n,parent:l,name:r,localName:Ke(null==s?r:r.substring(s.length)),number:e.number,toString:()=>`enum value ${l.typeName}.${r}`})})),(null!==(a=null==n?void 0:n.nestedEnums)&&void 0!==a?a:t.enums).push(l)}function gt(e,t,n,r,o){var i,a,s,l;const c={kind:"message",proto:e,deprecated:null!==(a=null===(i=e.options)||void 0===i?void 0:i.deprecated)&&void 0!==a&&a,file:t,parent:n,name:e.name,typeName:St(e,n,t),fields:[],field:{},oneofs:[],members:[],nestedEnums:[],nestedMessages:[],nestedExtensions:[],toString(){return`message ${this.typeName}`}};!0===(null===(s=e.options)||void 0===s?void 0:s.mapEntry)?o.add(c):((null!==(l=null==n?void 0:n.nestedMessages)&&void 0!==l?l:t.messages).push(c),r.add(c));for(const n of e.enumType)mt(n,t,c,r);for(const n of e.nestedType)gt(n,t,c,r,o)}function vt(e,t,n){var r,o;const i={kind:"service",proto:e,deprecated:null!==(o=null===(r=e.options)||void 0===r?void 0:r.deprecated)&&void 0!==o&&o,file:t,name:e.name,typeName:St(e,void 0,t),methods:[],method:{},toString(){return`service ${this.typeName}`}};t.services.push(i),n.add(i);for(const t of e.method){const e=yt(t,i,n);i.methods.push(e),i.method[e.localName]=e}}function yt(e,t,n){var r,o,i,a;let s;s=e.clientStreaming&&e.serverStreaming?"bidi_streaming":e.clientStreaming?"client_streaming":e.serverStreaming?"server_streaming":"unary";const l=n.getMessage(_t(e.inputType)),c=n.getMessage(_t(e.outputType));Pt(l,`invalid MethodDescriptorProto: input_type ${e.inputType} not found`),Pt(c,`invalid MethodDescriptorProto: output_type ${e.inputType} not found`);const u=e.name;return{kind:"rpc",proto:e,deprecated:null!==(o=null===(r=e.options)||void 0===r?void 0:r.deprecated)&&void 0!==o&&o,parent:t,name:u,localName:Ke(u.length?Ke(u[0].toLowerCase()+u.substring(1)):u),methodKind:s,input:l,output:c,idempotency:null!==(a=null===(i=e.options)||void 0===i?void 0:i.idempotencyLevel)&&void 0!==a?a:ot,toString:()=>`rpc ${t.typeName}.${u}`}}function bt(e,t,n,r,o){var i,a,s;const l=void 0===o,c={kind:"field",proto:e,deprecated:null!==(a=null===(i=e.options)||void 0===i?void 0:i.deprecated)&&void 0!==a&&a,name:e.name,number:e.number,scalar:void 0,message:void 0,enum:void 0,presence:Et(e,r,l,t),listKind:void 0,mapKind:void 0,mapKey:void 0,delimitedEncoding:void 0,packed:void 0,longAsString:!1,getDefaultValue:void 0};if(l){const r="file"==t.kind?t:t.file,o="file"==t.kind?void 0:t,i=St(e,o,r);c.kind="extension",c.file=r,c.parent=o,c.oneof=void 0,c.typeName=i,c.jsonName=`[${i}]`,c.toString=()=>`extension ${i}`;const a=n.getMessage(_t(e.extendee));Pt(a,`invalid FieldDescriptorProto: extendee ${e.extendee} not found`),c.extendee=a}else{const n=t;Pt("message"==n.kind),c.parent=n,c.oneof=r,c.localName=r?Le(e.name):Ke(Le(e.name)),c.jsonName=e.jsonName,c.toString=()=>`field ${n.typeName}.${e.name}`}const d=e.label,p=e.type,h=null===(s=e.options)||void 0===s?void 0:s.jstype;if(d===tt){const r=p==Je?null==o?void 0:o.get(_t(e.typeName)):void 0;if(r){c.fieldKind="map";const{key:e,value:t}=function(e){const t=e.fields.find((e=>1===e.number)),n=e.fields.find((e=>2===e.number));return Pt(t&&"scalar"==t.fieldKind&&t.scalar!=u.BYTES&&t.scalar!=u.FLOAT&&t.scalar!=u.DOUBLE&&n&&"list"!=n.fieldKind&&"map"!=n.fieldKind),{key:t,value:n}}(r);return c.mapKey=e.scalar,c.mapKind=t.fieldKind,c.message=t.message,c.delimitedEncoding=!1,c.enum=t.enum,c.scalar=t.scalar,c}switch(c.fieldKind="list",p){case Je:case Xe:c.listKind="message",c.message=n.getMessage(_t(e.typeName)),Pt(c.message),c.delimitedEncoding=kt(e,t);break;case et:c.listKind="enum",c.enum=n.getEnum(_t(e.typeName)),Pt(c.enum);break;default:c.listKind="scalar",c.scalar=p,c.longAsString=h==rt}return c.packed=function(e,t){if(e.label!=tt)return!1;switch(e.type){case Ye:case Qe:case Xe:case Je:return!1}const n=e.options;if(n&&I(n,"packed"))return n.packed;return lt==zt("repeatedFieldEncoding",{proto:e,parent:t})}(e,t),c}switch(p){case Je:case Xe:c.fieldKind="message",c.message=n.getMessage(_t(e.typeName)),Pt(c.message,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),c.delimitedEncoding=kt(e,t),c.getDefaultValue=()=>{};break;case et:{const t=n.getEnum(_t(e.typeName));Pt(void 0!==t,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),c.fieldKind="enum",c.enum=n.getEnum(_t(e.typeName)),c.getDefaultValue=()=>I(e,"defaultValue")?function(e,t){const n=e.values.find((e=>e.name===t));if(!n)throw new Error(`cannot parse ${e} default value: ${t}`);return n.number}(t,e.defaultValue):void 0;break}default:c.fieldKind="scalar",c.scalar=p,c.longAsString=h==rt,c.getDefaultValue=()=>I(e,"defaultValue")?$e(p,e.defaultValue):void 0}return c}function wt(e){switch(e.syntax){case"":case"proto2":return Ge;case"proto3":return Ze;case"editions":if(e.edition in dt)return e.edition;throw new Error(`${e.name}: unsupported edition`);default:throw new Error(`${e.name}: unsupported syntax "${e.syntax}"`)}}function xt(e,t){return e.dependency.map((n=>{const r=t.getFile(n);if(!r)throw new Error(`Cannot find ${n}, imported by ${e.name}`);return r}))}function St(e,t,n){let r;return r=t?`${t.typeName}.${e.name}`:n.proto.package.length>0?`${n.proto.package}.${e.name}`:`${e.name}`,r}function _t(e){return e.startsWith(".")?e.substring(1):e}function Ct(e,t){if(!I(e,"oneofIndex"))return;if(e.proto3Optional)return;const n=t[e.oneofIndex];return Pt(n,`invalid FieldDescriptorProto: oneof #${e.oneofIndex} for field #${e.number} not found`),n}function Et(e,t,n,r){return e.label==nt?st:e.label==tt?at:t||e.proto3Optional||e.type==Je||n?it:zt("fieldPresence",{proto:e,parent:r})}function kt(e,t){return e.type==Xe||ct==zt("messageEncoding",{proto:e,parent:t})}function zt(e,t){var n,r;const o=null===(n=t.proto.options)||void 0===n?void 0:n.features;if(o){const t=o[e];if(0!=t)return t}if("kind"in t){if("message"==t.kind)return zt(e,null!==(r=t.parent)&&void 0!==r?r:t.file);const n=dt[t.edition];if(!n)throw new Error(`feature default for edition ${t.edition} not found`);return n[e]}return zt(e,t.parent)}function Pt(e,t){if(!e)throw new Error(t)}function At(e){const t=function(e){const t=Object.create({syntax:"",edition:0});return Object.assign(t,Object.assign(Object.assign({$typeName:"google.protobuf.FileDescriptorProto",dependency:[],publicDependency:[],weakDependency:[],service:[],extension:[]},e),{messageType:e.messageType.map(Dt),enumType:e.enumType.map(Mt)}))}(e);t.messageType.forEach(He);return We(t,(()=>{})).getFile(t.name)}function Dt(e){var t,n,r,o,i,a,s,l;return{$typeName:"google.protobuf.DescriptorProto",name:e.name,field:null!==(n=null===(t=e.field)||void 0===t?void 0:t.map(Tt))&&void 0!==n?n:[],extension:[],nestedType:null!==(o=null===(r=e.nestedType)||void 0===r?void 0:r.map(Dt))&&void 0!==o?o:[],enumType:null!==(a=null===(i=e.enumType)||void 0===i?void 0:i.map(Mt))&&void 0!==a?a:[],extensionRange:null!==(l=null===(s=e.extensionRange)||void 0===s?void 0:s.map((e=>Object.assign({$typeName:"google.protobuf.DescriptorProto.ExtensionRange"},e))))&&void 0!==l?l:[],oneofDecl:[],reservedRange:[],reservedName:[]}}function Tt(e){const t=Object.create({label:1,typeName:"",extendee:"",defaultValue:"",oneofIndex:0,jsonName:"",proto3Optional:!1});return Object.assign(t,Object.assign(Object.assign({$typeName:"google.protobuf.FieldDescriptorProto"},e),{options:e.options?It(e.options):void 0}))}function It(e){var t,n,r;const o=Object.create({ctype:0,packed:!1,jstype:0,lazy:!1,unverifiedLazy:!1,deprecated:!1,weak:!1,debugRedact:!1,retention:0});return Object.assign(o,Object.assign(Object.assign({$typeName:"google.protobuf.FieldOptions"},e),{targets:null!==(t=e.targets)&&void 0!==t?t:[],editionDefaults:null!==(r=null===(n=e.editionDefaults)||void 0===n?void 0:n.map((e=>Object.assign({$typeName:"google.protobuf.FieldOptions.EditionDefault"},e))))&&void 0!==r?r:[],uninterpretedOption:[]}))}function Mt(e){return{$typeName:"google.protobuf.EnumDescriptorProto",name:e.name,reservedName:[],reservedRange:[],value:e.value.map((e=>Object.assign({$typeName:"google.protobuf.EnumValueDescriptorProto"},e)))}}function Nt(e,t,...n){return n.reduce(((e,t)=>e.nestedMessages[t]),e.messages[t])}function Ot(e,t,...n){if(0==n.length)return e.enums[t];const r=n.pop();return n.reduce(((e,t)=>e.nestedMessages[t]),e.messages[t]).nestedEnums[r]}function Rt(e){const t={};for(const n of e.values)t[n.localName]=n.number,t[n.number]=n.localName;return t}const jt=At({name:"google/protobuf/descriptor.proto",package:"google.protobuf",messageType:[{name:"FileDescriptorSet",field:[{name:"file",number:1,type:11,label:3,typeName:".google.protobuf.FileDescriptorProto"}]},{name:"FileDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"package",number:2,type:9,label:1},{name:"dependency",number:3,type:9,label:3},{name:"public_dependency",number:10,type:5,label:3},{name:"weak_dependency",number:11,type:5,label:3},{name:"message_type",number:4,type:11,label:3,typeName:".google.protobuf.DescriptorProto"},{name:"enum_type",number:5,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto"},{name:"service",number:6,type:11,label:3,typeName:".google.protobuf.ServiceDescriptorProto"},{name:"extension",number:7,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"options",number:8,type:11,label:1,typeName:".google.protobuf.FileOptions"},{name:"source_code_info",number:9,type:11,label:1,typeName:".google.protobuf.SourceCodeInfo"},{name:"syntax",number:12,type:9,label:1},{name:"edition",number:14,type:14,label:1,typeName:".google.protobuf.Edition"}]},{name:"DescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"field",number:2,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"extension",number:6,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"nested_type",number:3,type:11,label:3,typeName:".google.protobuf.DescriptorProto"},{name:"enum_type",number:4,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto"},{name:"extension_range",number:5,type:11,label:3,typeName:".google.protobuf.DescriptorProto.ExtensionRange"},{name:"oneof_decl",number:8,type:11,label:3,typeName:".google.protobuf.OneofDescriptorProto"},{name:"options",number:7,type:11,label:1,typeName:".google.protobuf.MessageOptions"},{name:"reserved_range",number:9,type:11,label:3,typeName:".google.protobuf.DescriptorProto.ReservedRange"},{name:"reserved_name",number:10,type:9,label:3}],nestedType:[{name:"ExtensionRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.ExtensionRangeOptions"}]},{name:"ReservedRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1}]}]},{name:"ExtensionRangeOptions",field:[{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"},{name:"declaration",number:2,type:11,label:3,typeName:".google.protobuf.ExtensionRangeOptions.Declaration",options:{retention:2}},{name:"features",number:50,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"verification",number:3,type:14,label:1,typeName:".google.protobuf.ExtensionRangeOptions.VerificationState",defaultValue:"UNVERIFIED",options:{retention:2}}],nestedType:[{name:"Declaration",field:[{name:"number",number:1,type:5,label:1},{name:"full_name",number:2,type:9,label:1},{name:"type",number:3,type:9,label:1},{name:"reserved",number:5,type:8,label:1},{name:"repeated",number:6,type:8,label:1}]}],enumType:[{name:"VerificationState",value:[{name:"DECLARATION",number:0},{name:"UNVERIFIED",number:1}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"FieldDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"number",number:3,type:5,label:1},{name:"label",number:4,type:14,label:1,typeName:".google.protobuf.FieldDescriptorProto.Label"},{name:"type",number:5,type:14,label:1,typeName:".google.protobuf.FieldDescriptorProto.Type"},{name:"type_name",number:6,type:9,label:1},{name:"extendee",number:2,type:9,label:1},{name:"default_value",number:7,type:9,label:1},{name:"oneof_index",number:9,type:5,label:1},{name:"json_name",number:10,type:9,label:1},{name:"options",number:8,type:11,label:1,typeName:".google.protobuf.FieldOptions"},{name:"proto3_optional",number:17,type:8,label:1}],enumType:[{name:"Type",value:[{name:"TYPE_DOUBLE",number:1},{name:"TYPE_FLOAT",number:2},{name:"TYPE_INT64",number:3},{name:"TYPE_UINT64",number:4},{name:"TYPE_INT32",number:5},{name:"TYPE_FIXED64",number:6},{name:"TYPE_FIXED32",number:7},{name:"TYPE_BOOL",number:8},{name:"TYPE_STRING",number:9},{name:"TYPE_GROUP",number:10},{name:"TYPE_MESSAGE",number:11},{name:"TYPE_BYTES",number:12},{name:"TYPE_UINT32",number:13},{name:"TYPE_ENUM",number:14},{name:"TYPE_SFIXED32",number:15},{name:"TYPE_SFIXED64",number:16},{name:"TYPE_SINT32",number:17},{name:"TYPE_SINT64",number:18}]},{name:"Label",value:[{name:"LABEL_OPTIONAL",number:1},{name:"LABEL_REPEATED",number:3},{name:"LABEL_REQUIRED",number:2}]}]},{name:"OneofDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"options",number:2,type:11,label:1,typeName:".google.protobuf.OneofOptions"}]},{name:"EnumDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"value",number:2,type:11,label:3,typeName:".google.protobuf.EnumValueDescriptorProto"},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.EnumOptions"},{name:"reserved_range",number:4,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto.EnumReservedRange"},{name:"reserved_name",number:5,type:9,label:3}],nestedType:[{name:"EnumReservedRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1}]}]},{name:"EnumValueDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"number",number:2,type:5,label:1},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.EnumValueOptions"}]},{name:"ServiceDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"method",number:2,type:11,label:3,typeName:".google.protobuf.MethodDescriptorProto"},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.ServiceOptions"}]},{name:"MethodDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"input_type",number:2,type:9,label:1},{name:"output_type",number:3,type:9,label:1},{name:"options",number:4,type:11,label:1,typeName:".google.protobuf.MethodOptions"},{name:"client_streaming",number:5,type:8,label:1,defaultValue:"false"},{name:"server_streaming",number:6,type:8,label:1,defaultValue:"false"}]},{name:"FileOptions",field:[{name:"java_package",number:1,type:9,label:1},{name:"java_outer_classname",number:8,type:9,label:1},{name:"java_multiple_files",number:10,type:8,label:1,defaultValue:"false"},{name:"java_generate_equals_and_hash",number:20,type:8,label:1,options:{deprecated:!0}},{name:"java_string_check_utf8",number:27,type:8,label:1,defaultValue:"false"},{name:"optimize_for",number:9,type:14,label:1,typeName:".google.protobuf.FileOptions.OptimizeMode",defaultValue:"SPEED"},{name:"go_package",number:11,type:9,label:1},{name:"cc_generic_services",number:16,type:8,label:1,defaultValue:"false"},{name:"java_generic_services",number:17,type:8,label:1,defaultValue:"false"},{name:"py_generic_services",number:18,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:23,type:8,label:1,defaultValue:"false"},{name:"cc_enable_arenas",number:31,type:8,label:1,defaultValue:"true"},{name:"objc_class_prefix",number:36,type:9,label:1},{name:"csharp_namespace",number:37,type:9,label:1},{name:"swift_prefix",number:39,type:9,label:1},{name:"php_class_prefix",number:40,type:9,label:1},{name:"php_namespace",number:41,type:9,label:1},{name:"php_metadata_namespace",number:44,type:9,label:1},{name:"ruby_package",number:45,type:9,label:1},{name:"features",number:50,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],enumType:[{name:"OptimizeMode",value:[{name:"SPEED",number:1},{name:"CODE_SIZE",number:2},{name:"LITE_RUNTIME",number:3}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"MessageOptions",field:[{name:"message_set_wire_format",number:1,type:8,label:1,defaultValue:"false"},{name:"no_standard_descriptor_accessor",number:2,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"map_entry",number:7,type:8,label:1},{name:"deprecated_legacy_json_field_conflicts",number:11,type:8,label:1,options:{deprecated:!0}},{name:"features",number:12,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"FieldOptions",field:[{name:"ctype",number:1,type:14,label:1,typeName:".google.protobuf.FieldOptions.CType",defaultValue:"STRING"},{name:"packed",number:2,type:8,label:1},{name:"jstype",number:6,type:14,label:1,typeName:".google.protobuf.FieldOptions.JSType",defaultValue:"JS_NORMAL"},{name:"lazy",number:5,type:8,label:1,defaultValue:"false"},{name:"unverified_lazy",number:15,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"weak",number:10,type:8,label:1,defaultValue:"false"},{name:"debug_redact",number:16,type:8,label:1,defaultValue:"false"},{name:"retention",number:17,type:14,label:1,typeName:".google.protobuf.FieldOptions.OptionRetention"},{name:"targets",number:19,type:14,label:3,typeName:".google.protobuf.FieldOptions.OptionTargetType"},{name:"edition_defaults",number:20,type:11,label:3,typeName:".google.protobuf.FieldOptions.EditionDefault"},{name:"features",number:21,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"feature_support",number:22,type:11,label:1,typeName:".google.protobuf.FieldOptions.FeatureSupport"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],nestedType:[{name:"EditionDefault",field:[{name:"edition",number:3,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"value",number:2,type:9,label:1}]},{name:"FeatureSupport",field:[{name:"edition_introduced",number:1,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"edition_deprecated",number:2,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"deprecation_warning",number:3,type:9,label:1},{name:"edition_removed",number:4,type:14,label:1,typeName:".google.protobuf.Edition"}]}],enumType:[{name:"CType",value:[{name:"STRING",number:0},{name:"CORD",number:1},{name:"STRING_PIECE",number:2}]},{name:"JSType",value:[{name:"JS_NORMAL",number:0},{name:"JS_STRING",number:1},{name:"JS_NUMBER",number:2}]},{name:"OptionRetention",value:[{name:"RETENTION_UNKNOWN",number:0},{name:"RETENTION_RUNTIME",number:1},{name:"RETENTION_SOURCE",number:2}]},{name:"OptionTargetType",value:[{name:"TARGET_TYPE_UNKNOWN",number:0},{name:"TARGET_TYPE_FILE",number:1},{name:"TARGET_TYPE_EXTENSION_RANGE",number:2},{name:"TARGET_TYPE_MESSAGE",number:3},{name:"TARGET_TYPE_FIELD",number:4},{name:"TARGET_TYPE_ONEOF",number:5},{name:"TARGET_TYPE_ENUM",number:6},{name:"TARGET_TYPE_ENUM_ENTRY",number:7},{name:"TARGET_TYPE_SERVICE",number:8},{name:"TARGET_TYPE_METHOD",number:9}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"OneofOptions",field:[{name:"features",number:1,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"EnumOptions",field:[{name:"allow_alias",number:2,type:8,label:1},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"deprecated_legacy_json_field_conflicts",number:6,type:8,label:1,options:{deprecated:!0}},{name:"features",number:7,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"EnumValueOptions",field:[{name:"deprecated",number:1,type:8,label:1,defaultValue:"false"},{name:"features",number:2,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"debug_redact",number:3,type:8,label:1,defaultValue:"false"},{name:"feature_support",number:4,type:11,label:1,typeName:".google.protobuf.FieldOptions.FeatureSupport"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"ServiceOptions",field:[{name:"features",number:34,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"deprecated",number:33,type:8,label:1,defaultValue:"false"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"MethodOptions",field:[{name:"deprecated",number:33,type:8,label:1,defaultValue:"false"},{name:"idempotency_level",number:34,type:14,label:1,typeName:".google.protobuf.MethodOptions.IdempotencyLevel",defaultValue:"IDEMPOTENCY_UNKNOWN"},{name:"features",number:35,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],enumType:[{name:"IdempotencyLevel",value:[{name:"IDEMPOTENCY_UNKNOWN",number:0},{name:"NO_SIDE_EFFECTS",number:1},{name:"IDEMPOTENT",number:2}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"UninterpretedOption",field:[{name:"name",number:2,type:11,label:3,typeName:".google.protobuf.UninterpretedOption.NamePart"},{name:"identifier_value",number:3,type:9,label:1},{name:"positive_int_value",number:4,type:4,label:1},{name:"negative_int_value",number:5,type:3,label:1},{name:"double_value",number:6,type:1,label:1},{name:"string_value",number:7,type:12,label:1},{name:"aggregate_value",number:8,type:9,label:1}],nestedType:[{name:"NamePart",field:[{name:"name_part",number:1,type:9,label:2},{name:"is_extension",number:2,type:8,label:2}]}]},{name:"FeatureSet",field:[{name:"field_presence",number:1,type:14,label:1,typeName:".google.protobuf.FeatureSet.FieldPresence",options:{retention:1,targets:[4,1],editionDefaults:[{value:"EXPLICIT",edition:900},{value:"IMPLICIT",edition:999},{value:"EXPLICIT",edition:1e3}]}},{name:"enum_type",number:2,type:14,label:1,typeName:".google.protobuf.FeatureSet.EnumType",options:{retention:1,targets:[6,1],editionDefaults:[{value:"CLOSED",edition:900},{value:"OPEN",edition:999}]}},{name:"repeated_field_encoding",number:3,type:14,label:1,typeName:".google.protobuf.FeatureSet.RepeatedFieldEncoding",options:{retention:1,targets:[4,1],editionDefaults:[{value:"EXPANDED",edition:900},{value:"PACKED",edition:999}]}},{name:"utf8_validation",number:4,type:14,label:1,typeName:".google.protobuf.FeatureSet.Utf8Validation",options:{retention:1,targets:[4,1],editionDefaults:[{value:"NONE",edition:900},{value:"VERIFY",edition:999}]}},{name:"message_encoding",number:5,type:14,label:1,typeName:".google.protobuf.FeatureSet.MessageEncoding",options:{retention:1,targets:[4,1],editionDefaults:[{value:"LENGTH_PREFIXED",edition:900}]}},{name:"json_format",number:6,type:14,label:1,typeName:".google.protobuf.FeatureSet.JsonFormat",options:{retention:1,targets:[3,6,1],editionDefaults:[{value:"LEGACY_BEST_EFFORT",edition:900},{value:"ALLOW",edition:999}]}}],enumType:[{name:"FieldPresence",value:[{name:"FIELD_PRESENCE_UNKNOWN",number:0},{name:"EXPLICIT",number:1},{name:"IMPLICIT",number:2},{name:"LEGACY_REQUIRED",number:3}]},{name:"EnumType",value:[{name:"ENUM_TYPE_UNKNOWN",number:0},{name:"OPEN",number:1},{name:"CLOSED",number:2}]},{name:"RepeatedFieldEncoding",value:[{name:"REPEATED_FIELD_ENCODING_UNKNOWN",number:0},{name:"PACKED",number:1},{name:"EXPANDED",number:2}]},{name:"Utf8Validation",value:[{name:"UTF8_VALIDATION_UNKNOWN",number:0},{name:"VERIFY",number:2},{name:"NONE",number:3}]},{name:"MessageEncoding",value:[{name:"MESSAGE_ENCODING_UNKNOWN",number:0},{name:"LENGTH_PREFIXED",number:1},{name:"DELIMITED",number:2}]},{name:"JsonFormat",value:[{name:"JSON_FORMAT_UNKNOWN",number:0},{name:"ALLOW",number:1},{name:"LEGACY_BEST_EFFORT",number:2}]}],extensionRange:[{start:1e3,end:9995},{start:9995,end:1e4},{start:1e4,end:10001}]},{name:"FeatureSetDefaults",field:[{name:"defaults",number:1,type:11,label:3,typeName:".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"},{name:"minimum_edition",number:4,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"maximum_edition",number:5,type:14,label:1,typeName:".google.protobuf.Edition"}],nestedType:[{name:"FeatureSetEditionDefault",field:[{name:"edition",number:3,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"overridable_features",number:4,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"fixed_features",number:5,type:11,label:1,typeName:".google.protobuf.FeatureSet"}]}]},{name:"SourceCodeInfo",field:[{name:"location",number:1,type:11,label:3,typeName:".google.protobuf.SourceCodeInfo.Location"}],nestedType:[{name:"Location",field:[{name:"path",number:1,type:5,label:3,options:{packed:!0}},{name:"span",number:2,type:5,label:3,options:{packed:!0}},{name:"leading_comments",number:3,type:9,label:1},{name:"trailing_comments",number:4,type:9,label:1},{name:"leading_detached_comments",number:6,type:9,label:3}]}]},{name:"GeneratedCodeInfo",field:[{name:"annotation",number:1,type:11,label:3,typeName:".google.protobuf.GeneratedCodeInfo.Annotation"}],nestedType:[{name:"Annotation",field:[{name:"path",number:1,type:5,label:3,options:{packed:!0}},{name:"source_file",number:2,type:9,label:1},{name:"begin",number:3,type:5,label:1},{name:"end",number:4,type:5,label:1},{name:"semantic",number:5,type:14,label:1,typeName:".google.protobuf.GeneratedCodeInfo.Annotation.Semantic"}],enumType:[{name:"Semantic",value:[{name:"NONE",number:0},{name:"SET",number:1},{name:"ALIAS",number:2}]}]}]}],enumType:[{name:"Edition",value:[{name:"EDITION_UNKNOWN",number:0},{name:"EDITION_LEGACY",number:900},{name:"EDITION_PROTO2",number:998},{name:"EDITION_PROTO3",number:999},{name:"EDITION_2023",number:1e3},{name:"EDITION_2024",number:1001},{name:"EDITION_1_TEST_ONLY",number:1},{name:"EDITION_2_TEST_ONLY",number:2},{name:"EDITION_99997_TEST_ONLY",number:99997},{name:"EDITION_99998_TEST_ONLY",number:99998},{name:"EDITION_99999_TEST_ONLY",number:99999},{name:"EDITION_MAX",number:2147483647}]}]}),Ft=Nt(jt,1);var Bt;!function(e){e[e.DECLARATION=0]="DECLARATION",e[e.UNVERIFIED=1]="UNVERIFIED"}(Bt||(Bt={}));var Lt;!function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.GROUP=10]="GROUP",e[e.MESSAGE=11]="MESSAGE",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.ENUM=14]="ENUM",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"}(Lt||(Lt={}));var Vt;!function(e){e[e.OPTIONAL=1]="OPTIONAL",e[e.REPEATED=3]="REPEATED",e[e.REQUIRED=2]="REQUIRED"}(Vt||(Vt={}));var Kt;!function(e){e[e.SPEED=1]="SPEED",e[e.CODE_SIZE=2]="CODE_SIZE",e[e.LITE_RUNTIME=3]="LITE_RUNTIME"}(Kt||(Kt={}));var Ht;!function(e){e[e.STRING=0]="STRING",e[e.CORD=1]="CORD",e[e.STRING_PIECE=2]="STRING_PIECE"}(Ht||(Ht={}));var $t;!function(e){e[e.JS_NORMAL=0]="JS_NORMAL",e[e.JS_STRING=1]="JS_STRING",e[e.JS_NUMBER=2]="JS_NUMBER"}($t||($t={}));var Ut;!function(e){e[e.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",e[e.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",e[e.RETENTION_SOURCE=2]="RETENTION_SOURCE"}(Ut||(Ut={}));var Wt;!function(e){e[e.TARGET_TYPE_UNKNOWN=0]="TARGET_TYPE_UNKNOWN",e[e.TARGET_TYPE_FILE=1]="TARGET_TYPE_FILE",e[e.TARGET_TYPE_EXTENSION_RANGE=2]="TARGET_TYPE_EXTENSION_RANGE",e[e.TARGET_TYPE_MESSAGE=3]="TARGET_TYPE_MESSAGE",e[e.TARGET_TYPE_FIELD=4]="TARGET_TYPE_FIELD",e[e.TARGET_TYPE_ONEOF=5]="TARGET_TYPE_ONEOF",e[e.TARGET_TYPE_ENUM=6]="TARGET_TYPE_ENUM",e[e.TARGET_TYPE_ENUM_ENTRY=7]="TARGET_TYPE_ENUM_ENTRY",e[e.TARGET_TYPE_SERVICE=8]="TARGET_TYPE_SERVICE",e[e.TARGET_TYPE_METHOD=9]="TARGET_TYPE_METHOD"}(Wt||(Wt={}));var qt;!function(e){e[e.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",e[e.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",e[e.IDEMPOTENT=2]="IDEMPOTENT"}(qt||(qt={}));var Gt;!function(e){e[e.FIELD_PRESENCE_UNKNOWN=0]="FIELD_PRESENCE_UNKNOWN",e[e.EXPLICIT=1]="EXPLICIT",e[e.IMPLICIT=2]="IMPLICIT",e[e.LEGACY_REQUIRED=3]="LEGACY_REQUIRED"}(Gt||(Gt={}));var Zt;!function(e){e[e.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",e[e.OPEN=1]="OPEN",e[e.CLOSED=2]="CLOSED"}(Zt||(Zt={}));var Yt;!function(e){e[e.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",e[e.PACKED=1]="PACKED",e[e.EXPANDED=2]="EXPANDED"}(Yt||(Yt={}));var Xt;!function(e){e[e.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",e[e.VERIFY=2]="VERIFY",e[e.NONE=3]="NONE"}(Xt||(Xt={}));var Jt;!function(e){e[e.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",e[e.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",e[e.DELIMITED=2]="DELIMITED"}(Jt||(Jt={}));var Qt;!function(e){e[e.JSON_FORMAT_UNKNOWN=0]="JSON_FORMAT_UNKNOWN",e[e.ALLOW=1]="ALLOW",e[e.LEGACY_BEST_EFFORT=2]="LEGACY_BEST_EFFORT"}(Qt||(Qt={}));var en;!function(e){e[e.NONE=0]="NONE",e[e.SET=1]="SET",e[e.ALIAS=2]="ALIAS"}(en||(en={}));var tn;!function(e){e[e.EDITION_UNKNOWN=0]="EDITION_UNKNOWN",e[e.EDITION_LEGACY=900]="EDITION_LEGACY",e[e.EDITION_PROTO2=998]="EDITION_PROTO2",e[e.EDITION_PROTO3=999]="EDITION_PROTO3",e[e.EDITION_2023=1e3]="EDITION_2023",e[e.EDITION_2024=1001]="EDITION_2024",e[e.EDITION_1_TEST_ONLY=1]="EDITION_1_TEST_ONLY",e[e.EDITION_2_TEST_ONLY=2]="EDITION_2_TEST_ONLY",e[e.EDITION_99997_TEST_ONLY=99997]="EDITION_99997_TEST_ONLY",e[e.EDITION_99998_TEST_ONLY=99998]="EDITION_99998_TEST_ONLY",e[e.EDITION_99999_TEST_ONLY=99999]="EDITION_99999_TEST_ONLY",e[e.EDITION_MAX=2147483647]="EDITION_MAX"}(tn||(tn={}));const nn={readUnknownFields:!0};function rn(e){return e?Object.assign(Object.assign({},nn),e):nn}function on(e,t,n){const r=ve(e,void 0,!1);return an(r,new ae(t),rn(n),!1,t.byteLength),r.message}function an(e,t,n,r,o){var i;const a=r?t.len:t.pos+o;let s,l;const c=null!==(i=e.getUnknown())&&void 0!==i?i:[];for(;t.pos<a&&([s,l]=t.tag(),!r||l!=Q.EndGroup);){const r=e.findNumber(s);if(r)sn(e,t,r,l,n);else{const e=t.skip(l,s);n.readUnknownFields&&c.push({no:s,wireType:l,data:e})}}if(r&&(l!=Q.EndGroup||s!==o))throw new Error("invalid end group tag");c.length>0&&e.setUnknown(c)}function sn(e,t,n,r,o){switch(n.fieldKind){case"scalar":e.set(n,cn(t,n.scalar));break;case"enum":e.set(n,cn(t,u.INT32));break;case"message":e.set(n,ln(t,o,n,e.get(n)));break;case"list":!function(e,t,n,r){var o;const i=n.field();if("message"===i.listKind)return void n.add(ln(e,r,i));const a=null!==(o=i.scalar)&&void 0!==o?o:u.INT32,s=t==Q.LengthDelimited&&a!=u.STRING&&a!=u.BYTES;if(!s)return void n.add(cn(e,a));const l=e.uint32()+e.pos;for(;e.pos<l;)n.add(cn(e,a))}(t,r,e.get(n),o);break;case"map":!function(e,t,n){const r=t.field();let o,i;const a=e.pos+e.uint32();for(;e.pos<a;){const[t]=e.tag();switch(t){case 1:o=cn(e,r.mapKey);break;case 2:switch(r.mapKind){case"scalar":i=cn(e,r.scalar);break;case"enum":i=e.int32();break;case"message":i=ln(e,n,r)}}}void 0===o&&(o=z(r.mapKey,!1));if(void 0===i)switch(r.mapKind){case"scalar":i=z(r.scalar,!1);break;case"enum":i=r.enum.values[0].number;break;case"message":i=ve(r.message,void 0,!1)}t.set(o,i)}(t,e.get(n),o)}}function ln(e,t,n,r){const o=n.delimitedEncoding,i=null!=r?r:ve(n.message,void 0,!1);return an(i,e,t,o,o?n.number:e.uint32()),i}function cn(e,t){switch(t){case u.STRING:return e.string();case u.BOOL:return e.bool();case u.DOUBLE:return e.double();case u.FLOAT:return e.float();case u.INT32:return e.int32();case u.INT64:return e.int64();case u.UINT64:return e.uint64();case u.FIXED64:return e.fixed64();case u.BYTES:return e.bytes();case u.FIXED32:return e.fixed32();case u.SFIXED32:return e.sfixed32();case u.SFIXED64:return e.sfixed64();case u.SINT64:return e.sint64();case u.UINT32:return e.uint32();case u.SINT32:return e.sint32()}}function un(e,t){var n;const r=on(Ft,Oe(e));r.messageType.forEach(He),r.dependency=null!==(n=null==t?void 0:t.map((e=>e.proto.name)))&&void 0!==n?n:[];return We(r,(e=>null==t?void 0:t.find((t=>t.proto.name===e)))).getFile(r.name)}const dn={writeUnknownFields:!0};function pn(e,t,n){return hn(new ie,function(e){return e?Object.assign(Object.assign({},dn),e):dn}(n),ve(e,t)).finish()}function hn(e,t,n){var r;for(const r of n.sortedFields)if(n.isSet(r))fn(e,t,n,r);else if(3==r.presence)throw new Error(`cannot encode field ${n.desc.typeName}.${r.name} to binary: required field not set`);if(t.writeUnknownFields)for(const{no:t,wireType:o,data:i}of null!==(r=n.getUnknown())&&void 0!==r?r:[])e.tag(t,o).raw(i);return e}function fn(e,t,n,r){var o;switch(r.fieldKind){case"scalar":case"enum":mn(e,null!==(o=r.scalar)&&void 0!==o?o:u.INT32,r.number,n.get(r));break;case"list":!function(e,t,n,r){var o;if("message"==n.listKind){for(const o of r)gn(e,t,n,o);return}const i=null!==(o=n.scalar)&&void 0!==o?o:u.INT32;if(n.packed){if(!r.size)return;e.tag(n.number,Q.LengthDelimited).fork();for(const t of r)yn(e,i,t);return void e.join()}for(const t of r)mn(e,i,n.number,t)}(e,t,r,n.get(r));break;case"message":gn(e,t,r,n.get(r));break;case"map":for(const[o,i]of n.get(r))vn(e,t,r,o,i)}}function mn(e,t,n,r){yn(e.tag(n,function(e){switch(e){case u.BYTES:case u.STRING:return Q.LengthDelimited;case u.DOUBLE:case u.FIXED64:case u.SFIXED64:return Q.Bit64;case u.FIXED32:case u.SFIXED32:case u.FLOAT:return Q.Bit32;default:return Q.Varint}}(t)),t,r)}function gn(e,t,n,r){n.delimitedEncoding?hn(e.tag(n.number,Q.StartGroup),t,r).tag(n.number,Q.EndGroup):hn(e.tag(n.number,Q.LengthDelimited).fork(),t,r).join()}function vn(e,t,n,r,o){var i;switch(e.tag(n.number,Q.LengthDelimited).fork(),mn(e,n.mapKey,1,r),n.mapKind){case"scalar":case"enum":mn(e,null!==(i=n.scalar)&&void 0!==i?i:u.INT32,2,o);break;case"message":hn(e.tag(2,Q.LengthDelimited).fork(),t,o).join()}e.join()}function yn(e,t,n){switch(t){case u.STRING:e.string(n);break;case u.BOOL:e.bool(n);break;case u.DOUBLE:e.double(n);break;case u.FLOAT:e.float(n);break;case u.INT32:e.int32(n);break;case u.INT64:e.int64(n);break;case u.UINT64:e.uint64(n);break;case u.FIXED64:e.fixed64(n);break;case u.BYTES:e.bytes(n);break;case u.FIXED32:e.fixed32(n);break;case u.SFIXED32:e.sfixed32(n);break;case u.SFIXED64:e.sfixed64(n);break;case u.SINT64:e.sint64(n);break;case u.UINT32:e.uint32(n);break;case u.SINT32:e.sint32(n)}}var bn;!function(e){e[e.TYPE_UNKNOWN=0]="TYPE_UNKNOWN",e[e.TYPE_DOUBLE=1]="TYPE_DOUBLE",e[e.TYPE_FLOAT=2]="TYPE_FLOAT",e[e.TYPE_INT64=3]="TYPE_INT64",e[e.TYPE_UINT64=4]="TYPE_UINT64",e[e.TYPE_INT32=5]="TYPE_INT32",e[e.TYPE_FIXED64=6]="TYPE_FIXED64",e[e.TYPE_FIXED32=7]="TYPE_FIXED32",e[e.TYPE_BOOL=8]="TYPE_BOOL",e[e.TYPE_STRING=9]="TYPE_STRING",e[e.TYPE_GROUP=10]="TYPE_GROUP",e[e.TYPE_MESSAGE=11]="TYPE_MESSAGE",e[e.TYPE_BYTES=12]="TYPE_BYTES",e[e.TYPE_UINT32=13]="TYPE_UINT32",e[e.TYPE_ENUM=14]="TYPE_ENUM",e[e.TYPE_SFIXED32=15]="TYPE_SFIXED32",e[e.TYPE_SFIXED64=16]="TYPE_SFIXED64",e[e.TYPE_SINT32=17]="TYPE_SINT32",e[e.TYPE_SINT64=18]="TYPE_SINT64"}(bn||(bn={}));var wn;!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.OPTIONAL=1]="OPTIONAL",e[e.REQUIRED=2]="REQUIRED",e[e.REPEATED=3]="REPEATED"}(wn||(wn={}));var xn;!function(e){e[e.PROTO2=0]="PROTO2",e[e.PROTO3=1]="PROTO3",e[e.EDITIONS=2]="EDITIONS"}(xn||(xn={}));var Sn;!function(e){e[e.NULL_VALUE=0]="NULL_VALUE"}(Sn||(Sn={}));var _n;!function(e){e[e.NONE=0]="NONE",e[e.PROTO3_OPTIONAL=1]="PROTO3_OPTIONAL",e[e.SUPPORTS_EDITIONS=2]="SUPPORTS_EDITIONS"}(_n||(_n={}));Symbol();Symbol();var Cn=n(4819);let En=function(e){return e[e.Windows=0]="Windows",e[e.iOS=1]="iOS",e[e.macOS=2]="macOS",e[e.Android=3]="Android",e[e.Linux=4]="Linux",e}({});const kn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:globalThis.navigator?.userAgent??"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:globalThis.navigator?.platform??"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:globalThis.navigator?.maxTouchPoints??0;return t.indexOf("MacIntel")>-1&&n>1?En.iOS:e.indexOf("Win")>-1?En.Windows:e.indexOf("iPhone")>-1||e.indexOf("iPad")>-1||"iPad"===t?En.iOS:e.indexOf("Mac")>-1?En.macOS:e.indexOf("Android")>-1?En.Android:e.indexOf("Linux")>-1?En.Linux:null}();let zn=function(e){return e[e.Edge=0]="Edge",e[e.Blink=1]="Blink",e[e.Webkit=2]="Webkit",e[e.Gecko=3]="Gecko",e}({});const Pn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:globalThis.navigator?.userAgent??"";return e.indexOf("Edge/")>-1?zn.Edge:e.indexOf("Chrome/")>-1?zn.Blink:e.indexOf("AppleWebKit/")>-1?zn.Webkit:e.indexOf("Gecko/")>-1?zn.Gecko:null}(),An=16383;function Dn(e,t){let{width:n,height:r}=t;return e===hr.WebP&&(n>An||r>An)||e===hr.Bitmap&&kn===En.iOS&&n*r>16777216?hr.PNG:e}const Tn=e=>{if(e){if(e.includes("image/webp"))return hr.WebP;if(e.includes("image/png"))return hr.PNG;if(e.includes("image/jpeg"))return hr.JPEG}throw new l.Sx("Couldn't determine image format")};class In{constructor(){(0,d.A)(this,"listeners",new Map)}on(e,t){const n=this.listeners.get(e);n?n.push(t):this.listeners.set(e,[t])}off(e,t){const n=this.listeners.get(e);if(!n)return;const r=n.indexOf(t);-1!==r&&n.splice(r,1),this.listeners.set(e,n)}once(e,t){var n=this;const r=function(){t(...arguments),n.off(e,r)};this.on(e,r)}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const o=this.listeners.get(e);o&&o.slice().forEach((e=>{e(...n)}))}}var Mn=n(79308);let Nn=function(e){return e[e.Token=0]="Token",e[e.QueryToken=1]="QueryToken",e[e.ImageToken=2]="ImageToken",e}({});class On{constructor(e,t){(0,d.A)(this,"abortController",new AbortController),this.url=e,this.requestInit=t,this.identifier=(0,Mn.v4)()}async request(){return fetch(this.url,{...this.requestInit,signal:this.abortController.signal})}cancel(){this.abortController.abort()}}const Rn=(e,t,n,r,o,i)=>{let a={...i?.headers,...t.info.headers};switch(o){case Nn.Token:a={...a,"X-PSPDFKit-Token":t.info.token};break;case Nn.ImageToken:a={...a,"X-PSPDFKit-Image-Token":t.info.imageToken}}let s="";if(o==Nn.QueryToken){const e=new URLSearchParams;e.append("token",t.info.token),s="?"+e.toString()}return(0,l.E4)(e.enqueue(new On(`${t.info.url}i/d/${t.info.documentId}/h/${t.info.layerHandle}/${n}${s}`,{...i,headers:a}),r))};const jn=un("CglwZGYucHJvdG8SFVBERkMuQ29yZVBCLkdlbmVyYXRlZCJKCgZNYXRyaXgSCQoBYRgBIAEoAhIJCgFiGAIgASgCEgkKAWMYAyABKAISCQoBZBgEIAEoAhIJCgFlGAUgASgCEgkKAWYYBiABKAIiOwoEUmVjdBIJCgF4GAEgASgCEgkKAXkYAiABKAISDQoFd2lkdGgYAyABKAISDgoGaGVpZ2h0GAQgASgCIjUKB1BkZlJlY3QSCQoBbBgBIAEoAhIJCgF0GAIgASgCEgkKAXIYAyABKAISCQoBYhgEIAEoAiLTAQoLUmF3UGRmQm94ZXMSMAoIbWVkaWFCb3gYASABKAsyHi5QREZDLkNvcmVQQi5HZW5lcmF0ZWQuUGRmUmVjdBIvCgdjcm9wQm94GAIgASgLMh4uUERGQy5Db3JlUEIuR2VuZXJhdGVkLlBkZlJlY3QSMAoIYmxlZWRCb3gYAyABKAsyHi5QREZDLkNvcmVQQi5HZW5lcmF0ZWQuUGRmUmVjdBIvCgd0cmltQm94GAQgASgLMh4uUERGQy5Db3JlUEIuR2VuZXJhdGVkLlBkZlJlY3QiiAMKCFBhZ2VJbmZvEhIKCnBhZ2VfaW5kZXgYASABKAUSFwoKcGFnZV9sYWJlbBgCIAEoCUgAiAEBEhAKCHJvdGF0aW9uGAMgASgFEg0KBXdpZHRoGAQgASgCEg4KBmhlaWdodBgFIAEoAhItCgZtYXRyaXgYBiABKAsyHS5QREZDLkNvcmVQQi5HZW5lcmF0ZWQuTWF0cml4EjUKDnJldmVyc2VfbWF0cml4GAcgASgLMh0uUERGQy5Db3JlUEIuR2VuZXJhdGVkLk1hdHJpeBI1ChB0cmFuc2Zvcm1lZF9iYm94GAggASgLMhsuUERGQy5Db3JlUEIuR2VuZXJhdGVkLlJlY3QSNwoSdW50cmFuc2Zvcm1lZF9iYm94GAkgASgLMhsuUERGQy5Db3JlUEIuR2VuZXJhdGVkLlJlY3QSOQoNcmF3X3BkZl9ib3hlcxgKIAEoCzIiLlBERkMuQ29yZVBCLkdlbmVyYXRlZC5SYXdQZGZCb3hlc0INCgtfcGFnZV9sYWJlbCLJAQoOUERGUGVybWlzc2lvbnMSHQoVYW5ub3RhdGlvbnNfYW5kX2Zvcm1zGAEgASgIEhAKCGFzc2VtYmxlGAIgASgIEg8KB2V4dHJhY3QYAyABKAgSHQoVZXh0cmFjdF9hY2Nlc3NpYmlsaXR5GAQgASgIEhIKCmZpbGxfZm9ybXMYBSABKAgSFAoMbW9kaWZpY2F0aW9uGAYgASgIEhoKEnByaW50X2hpZ2hfcXVhbGl0eRgHIAEoCBIQCghwcmludGluZxgIIAEoCCKuAgoITWV0YWRhdGESEwoGYXV0aG9yGAEgASgJSACIAQESFAoHY3JlYXRvchgCIAEoCUgBiAEBEhkKDGRhdGVfY3JlYXRlZBgDIAEoCUgCiAEBEhoKDWRhdGVfbW9kaWZpZWQYBCABKAlIA4gBARIVCghwcm9kdWNlchgFIAEoCUgEiAEBEhIKBXRpdGxlGAYgASgJSAWIAQESFAoHc3ViamVjdBgHIAEoCUgGiAEBEhUKCGtleXdvcmRzGAggASgJSAeIAQFCCQoHX2F1dGhvckIKCghfY3JlYXRvckIPCg1fZGF0ZV9jcmVhdGVkQhAKDl9kYXRlX21vZGlmaWVkQgsKCV9wcm9kdWNlckIICgZfdGl0bGVCCgoIX3N1YmplY3RCCwoJX2tleXdvcmRzIiwKBVBERklEEhEKCXBlcm1hbmVudBgBIAEoCRIQCghjaGFuZ2luZxgCIAEoCSKaAwoMRG9jdW1lbnRJbmZvEhIKCnBhZ2VfY291bnQYASABKAUSEgoFdGl0bGUYAiABKAlIAIgBARI/CgtwZXJtaXNzaW9ucxgDIAEoCzIlLlBERkMuQ29yZVBCLkdlbmVyYXRlZC5QREZQZXJtaXNzaW9uc0gBiAEBEjEKCG1ldGFkYXRhGAQgASgLMh8uUERGQy5Db3JlUEIuR2VuZXJhdGVkLk1ldGFkYXRhEkQKCXBhZ2VfaW5mbxgFIAMoCzIxLlBERkMuQ29yZVBCLkdlbmVyYXRlZC5Eb2N1bWVudEluZm8uUGFnZUluZm9FbnRyeRIxCgZwZGZfaWQYBiABKAsyHC5QREZDLkNvcmVQQi5HZW5lcmF0ZWQuUERGSURIAogBARpQCg1QYWdlSW5mb0VudHJ5EgsKA2tleRgBIAEoBRIuCgV2YWx1ZRgCIAEoCzIfLlBERkMuQ29yZVBCLkdlbmVyYXRlZC5QYWdlSW5mbzoCOAFCCAoGX3RpdGxlQg4KDF9wZXJtaXNzaW9uc0IJCgdfcGRmX2lkImcKDk9wZW5QREZSZXF1ZXN0EhIKCHBkZl9kYXRhGAEgASgMSAASEwoJZmlsZV9wYXRoGAIgASgJSAASFQoIcGFzc3dvcmQYAyABKAlIAYgBAUIICgZzb3VyY2VCCwoJX3Bhc3N3b3JkIikKD09wZW5QREZSZXNwb25zZRIWCg5kb2N1bWVudF9pbmRleBgBIAEoBSIpCg9DbG9zZVBERlJlcXVlc3QSFgoOZG9jdW1lbnRfaW5kZXgYASABKAUiEgoQQ2xvc2VQREZSZXNwb25zZSI0ChpHZXREb2N1bWVudE1ldGFkYXRhUmVxdWVzdBIWCg5kb2N1bWVudF9pbmRleBgBIAEoBSJZChtHZXREb2N1bWVudE1ldGFkYXRhUmVzcG9uc2USOgoNZG9jdW1lbnRfaW5mbxgBIAEoCzIjLlBERkMuQ29yZVBCLkdlbmVyYXRlZC5Eb2N1bWVudEluZm8ywAEKA1BERhJaCgdPcGVuUERGEiUuUERGQy5Db3JlUEIuR2VuZXJhdGVkLk9wZW5QREZSZXF1ZXN0GiYuUERGQy5Db3JlUEIuR2VuZXJhdGVkLk9wZW5QREZSZXNwb25zZSIAEl0KCENsb3NlUERGEiYuUERGQy5Db3JlUEIuR2VuZXJhdGVkLkNsb3NlUERGUmVxdWVzdBonLlBERkMuQ29yZVBCLkdlbmVyYXRlZC5DbG9zZVBERlJlc3BvbnNlIgAyjQEKC1BERk1ldGFkYXRhEn4KE0dldERvY3VtZW50TWV0YWRhdGESMS5QREZDLkNvcmVQQi5HZW5lcmF0ZWQuR2V0RG9jdW1lbnRNZXRhZGF0YVJlcXVlc3QaMi5QREZDLkNvcmVQQi5HZW5lcmF0ZWQuR2V0RG9jdW1lbnRNZXRhZGF0YVJlc3BvbnNlIgBiBnByb3RvMw"),Fn=un("ChBsaW5lYXJpemVkLnByb3RvEhVQREZDLkNvcmVQQi5HZW5lcmF0ZWQiLQoNRG93bmxvYWRDaHVuaxIOCgZvZmZzZXQYAiABKAMSDAoEc2l6ZRgDIAEoAyKYAQoZQXZhaWxhYmlsaXR5V2l0aERvd25sb2FkcxI5Cgxpc19hdmFpbGFibGUYASABKA4yIy5QREZDLkNvcmVQQi5HZW5lcmF0ZWQuQXZhaWxhYmlsaXR5EkAKEmRvd25sb2Fkc19yZXF1aXJlZBgCIAMoCzIkLlBERkMuQ29yZVBCLkdlbmVyYXRlZC5Eb3dubG9hZENodW5rIkwKFklzUGFnZUF2YWlsYWJsZVJlcXVlc3QSHgoWbGluZWFyaXplZF9pbnN0YW5jZV9pZBgBIAEoBRISCgpwYWdlX2luZGV4GAIgASgFIq0BChdJc1BhZ2VBdmFpbGFibGVSZXNwb25zZRJLChFpc19wYWdlX2F2YWlsYWJsZRgBIAEoCzIwLlBERkMuQ29yZVBCLkdlbmVyYXRlZC5BdmFpbGFiaWxpdHlXaXRoRG93bmxvYWRzEjcKCXBhZ2VfaW5mbxgCIAEoCzIfLlBERkMuQ29yZVBCLkdlbmVyYXRlZC5QYWdlSW5mb0gAiAEBQgwKCl9wYWdlX2luZm8iOAoWR2V0RG9jdW1lbnRJbmZvUmVxdWVzdBIeChZsaW5lYXJpemVkX2luc3RhbmNlX2lkGAEgASgFIq0BChdHZXREb2N1bWVudEluZm9SZXNwb25zZRJICgxpc19hdmFpbGFibGUYASABKAsyMC5QREZDLkNvcmVQQi5HZW5lcmF0ZWQuQXZhaWxhYmlsaXR5V2l0aERvd25sb2Fkc0gAEjwKDWRvY3VtZW50X2luZm8YAiABKAsyIy5QREZDLkNvcmVQQi5HZW5lcmF0ZWQuRG9jdW1lbnRJbmZvSABCCgoIcmVzcG9uc2UiPAoaSXNEb2N1bWVudEF2YWlsYWJsZVJlcXVlc3QSHgoWbGluZWFyaXplZF9pbnN0YW5jZV9pZBgBIAEoBSJlChtJc0RvY3VtZW50QXZhaWxhYmxlUmVzcG9uc2USRgoMaXNfYXZhaWxhYmxlGAEgASgLMjAuUERGQy5Db3JlUEIuR2VuZXJhdGVkLkF2YWlsYWJpbGl0eVdpdGhEb3dubG9hZHMiVAoUT25EYXRhV3JpdHRlblJlcXVlc3QSHgoWbGluZWFyaXplZF9pbnN0YW5jZV9pZBgBIAEoBRIOCgZvZmZzZXQYAiABKAMSDAoEc2l6ZRgDIAEoAyIXChVPbkRhdGFXcml0dGVuUmVzcG9uc2UiNQoTSXNMaW5lYXJpemVkUmVxdWVzdBIeChZsaW5lYXJpemVkX2luc3RhbmNlX2lkGAEgASgFIpQBChRJc0xpbmVhcml6ZWRSZXNwb25zZRI6Cg1pc19saW5lYXJpemVkGAEgASgOMiMuUERGQy5Db3JlUEIuR2VuZXJhdGVkLklzTGluZWFyaXplZBJAChJkb3dubG9hZHNfcmVxdWlyZWQYAiADKAsyJC5QREZDLkNvcmVQQi5HZW5lcmF0ZWQuRG93bmxvYWRDaHVuayI9ChFJbml0aWFsaXplUmVxdWVzdBIQCghmaWxlcGF0aBgBIAEoCRIWCg5mdWxsX2ZpbGVfc2l6ZRgCIAEoAyI0ChJJbml0aWFsaXplUmVzcG9uc2USHgoWbGluZWFyaXplZF9pbnN0YW5jZV9pZBgBIAEoBSJLChVHZXRDb250ZW50VHJlZVJlcXVlc3QSHgoWbGluZWFyaXplZF9pbnN0YW5jZV9pZBgBIAEoBRISCgpwYWdlX2luZGV4GAIgASgFInsKFkdldENvbnRlbnRUcmVlUmVzcG9uc2USRgoMaXNfYXZhaWxhYmxlGAEgASgLMjAuUERGQy5Db3JlUEIuR2VuZXJhdGVkLkF2YWlsYWJpbGl0eVdpdGhEb3dubG9hZHMSGQoRY29udGVudF90cmVlX2pzb24YAiABKAki/wEKE0VNQmluZFJlbmRlclJlcXVlc3QSHgoWbGluZWFyaXplZF9pbnN0YW5jZV9pZBgBIAEoBRISCgpwYWdlX2luZGV4GAIgASgFEhQKDGJpdG1hcF93aWR0aBgDIAEoBRIVCg1iaXRtYXBfaGVpZ2h0GAQgASgFEhAKCGJpdG1hcF94GAUgASgFEhAKCGJpdG1hcF95GAYgASgFEhIKCnBhZ2Vfd2lkdGgYByABKAUSEwoLcGFnZV9oZWlnaHQYCCABKAUSOgoNcGFnZV9lbmNvZGluZxgJIAEoDjIjLlBERkMuQ29yZVBCLkdlbmVyYXRlZC5QYWdlRW5jb2RpbmciLgoMQ2xvc2VSZXF1ZXN0Eh4KFmxpbmVhcml6ZWRfaW5zdGFuY2VfaWQYASABKAUiDwoNQ2xvc2VSZXNwb25zZSo/CgxBdmFpbGFiaWxpdHkSCQoFRVJST1IQABINCglBVkFJTEFCTEUQARIVChFOT1RfQVZBSUxBQkxFX1lFVBACKj8KDElzTGluZWFyaXplZBILCgdVTktOT1dOEAASDgoKTElORUFSSVpFRBABEhIKDk5PVF9MSU5FQVJJWkVEEAIqSgoMUGFnZUVuY29kaW5nEggKBEpQRUcQABIHCgNQTkcQARIICgRXRUJQEAISCAoEVElGRhADEgcKA0dJRhAEEgoKBkJJVE1BUBAFMvkGCgpMaW5lYXJpemVkEmMKCkluaXRpYWxpemUSKC5QREZDLkNvcmVQQi5HZW5lcmF0ZWQuSW5pdGlhbGl6ZVJlcXVlc3QaKS5QREZDLkNvcmVQQi5HZW5lcmF0ZWQuSW5pdGlhbGl6ZVJlc3BvbnNlIgASaQoMSXNMaW5lYXJpemVkEiouUERGQy5Db3JlUEIuR2VuZXJhdGVkLklzTGluZWFyaXplZFJlcXVlc3QaKy5QREZDLkNvcmVQQi5HZW5lcmF0ZWQuSXNMaW5lYXJpemVkUmVzcG9uc2UiABJ+ChNJc0RvY3VtZW50QXZhaWxhYmxlEjEuUERGQy5Db3JlUEIuR2VuZXJhdGVkLklzRG9jdW1lbnRBdmFpbGFibGVSZXF1ZXN0GjIuUERGQy5Db3JlUEIuR2VuZXJhdGVkLklzRG9jdW1lbnRBdmFpbGFibGVSZXNwb25zZSIAEnIKD0lzUGFnZUF2YWlsYWJsZRItLlBERkMuQ29yZVBCLkdlbmVyYXRlZC5Jc1BhZ2VBdmFpbGFibGVSZXF1ZXN0Gi4uUERGQy5Db3JlUEIuR2VuZXJhdGVkLklzUGFnZUF2YWlsYWJsZVJlc3BvbnNlIgAScgoPR2V0RG9jdW1lbnRJbmZvEi0uUERGQy5Db3JlUEIuR2VuZXJhdGVkLkdldERvY3VtZW50SW5mb1JlcXVlc3QaLi5QREZDLkNvcmVQQi5HZW5lcmF0ZWQuR2V0RG9jdW1lbnRJbmZvUmVzcG9uc2UiABJsCg1PbkRhdGFXcml0dGVuEisuUERGQy5Db3JlUEIuR2VuZXJhdGVkLk9uRGF0YVdyaXR0ZW5SZXF1ZXN0GiwuUERGQy5Db3JlUEIuR2VuZXJhdGVkLk9uRGF0YVdyaXR0ZW5SZXNwb25zZSIAEm8KDkdldENvbnRlbnRUcmVlEiwuUERGQy5Db3JlUEIuR2VuZXJhdGVkLkdldENvbnRlbnRUcmVlUmVxdWVzdBotLlBERkMuQ29yZVBCLkdlbmVyYXRlZC5HZXRDb250ZW50VHJlZVJlc3BvbnNlIgASVAoFQ2xvc2USIy5QREZDLkNvcmVQQi5HZW5lcmF0ZWQuQ2xvc2VSZXF1ZXN0GiQuUERGQy5Db3JlUEIuR2VuZXJhdGVkLkNsb3NlUmVzcG9uc2UiAGIGcHJvdG8z",[jn]),Bn=Nt(Fn,2),Ln=Nt(Fn,3),Vn=Nt(Fn,4),Kn=Nt(Fn,5),Hn=Nt(Fn,6),$n=Nt(Fn,7),Un=Nt(Fn,8),Wn=Nt(Fn,9),qn=Nt(Fn,10),Gn=Nt(Fn,11),Zn=Nt(Fn,12),Yn=Nt(Fn,13),Xn=Nt(Fn,14),Jn=Nt(Fn,15),Qn=Nt(Fn,16),er=Nt(Fn,17),tr=Nt(Fn,18),nr=Rt(Ot(Fn,0)),rr=Rt(Ot(Fn,1)),or=Rt(Ot(Fn,2));function ir(e){switch(e){case hr.Bitmap:return or.BITMAP;case hr.JPEG:return or.JPEG;case hr.PNG:return or.PNG;case hr.WebP:return or.WEBP;default:throw new l.Sx(`Unsupported image format: ${e}`)}}class ar{constructor(e,t,n){(0,d.A)(this,"identifier","LinearizedRenderingRequest"),this.coreClient=e,this.embindRequest=t,this.format=n}async request(){const e=await this.coreClient.renderLinearized(pn(Qn,this.embindRequest).buffer);return{buffer:new Uint8Array(e),format:this.format}}}const sr=(e,t,n,r,o,i,a)=>{const c=new l.ql,u=(0,s.f)(e,(async a=>{const s={pageIndex:t,pageSize:n,tileRect:r,options:o,documentState:i},l=a.linearizedInstance?.deref();return l&&l.isRunning()?async function(e,t,n,r){(0,Cn.v)(e.wasmCtx,"Wasm context is required for linearized rendering."),await r.whenPageAvailable(t.pageIndex,n),t.options.format=t.options.format??hr.Bitmap;const o=Dn(t.options.format,t.pageSize),i=V(Qn,{linearizedInstanceId:r.linearizedInstanceId,pageIndex:t.pageIndex,bitmapWidth:t.tileRect.width,bitmapHeight:t.tileRect.height,bitmapX:t.tileRect.left,bitmapY:t.tileRect.top,pageWidth:t.pageSize.width,pageHeight:t.pageSize.height,pageEncoding:ir(o)}),{promise:a,cancel:s}=e.requestQueue.enqueue(new ar(e.wasmCtx.engine.coreClient,i,o),t.options.priority??pr.Normal);return n.addCancelFn(s),a}(e,s,c,l):async function(e,t,n){t.options.format=t.options.format??hr.Bitmap;const r=Dn(t.options.format,t.pageSize),o=t.documentState&&(t.documentState.annotations.length>0||t.documentState.formFieldValues.length>0),i=n.addPromise(e.engine.executeCommand("render_tile",t.options.priority??pr.Normal,{render_annotations:o,print_rendering:t.options.renderForPrinting,page:t.pageIndex,bitmap_width:t.tileRect.width,bitmap_height:t.tileRect.height,bitmap_x:t.tileRect.left,bitmap_y:t.tileRect.top,page_width:t.pageSize.width,page_height:t.pageSize.height,format:r,render_text:t.options.renderText??!0})),a=await i;return(0,Cn.v)(1==a.values.length,"Should have exactly one image buffer in result."),(0,Cn.v)(a.values[0]instanceof Uint8Array),{buffer:a.values[0],format:r}}(a,s,c)}),(async s=>{(0,Cn.v)(!o.format,"Requesting image format is not supported on server.");const u=`page-${t}-dimensions-${n.width}-${n.height}-tile-${r.left}-${r.top}-${r.width}-${r.height}${o.renderForPrinting?"-print":""}`,d=i?((e,t)=>{const n=new FormData;return n.append("data",JSON.stringify({annotations:e.annotations,formFieldValues:e.formFieldValues,formFields:e.formFields,signatures:e.signatures||[]})),t&&t.length>0&&t.forEach((t=>{const r=e.attachments[t];(0,Cn.v)(r,`Attachment data '${t}' could not be found.`),(0,Cn.v)(r.data,`Attachment '${t}' doesn't have any data.`),n.append(t,r.data)})),n})(i,a):void 0,p={method:d?"POST":"GET",body:d,headers:Pn!=zn.Webkit||n.width<=An&&n.height<=An?{Accept:"image/webp,*/*"}:void 0},h=c.addPromise(Rn(e.requestQueue,s,u,o.priority,Nn.ImageToken,p)),f=await h;if(!f.ok){if("application/json"!==f.headers.get("content-type"))throw new l.Sx(`The image can not be rendered because of an unknown error (${f.status})`);{const a=await f.json();if(a.attachments_not_found){if(!i)throw new l.Sx("Document state is required when attachments are missing");for(const e of a.attachments_not_found)if(!i.attachments[e])throw new l.Sx(`Attachment ${e} not found in document state, but required by server.`);const s=sr(e,t,n,r,o,i,a.attachments_not_found);return c.addCancelFn((()=>{s.cancel()})),s.promise}if(a.error)throw new l.Sx(`The server could not render the requested image (${a.error})`)}}const m=await f.arrayBuffer();return{buffer:new Uint8Array(m),format:Tn(f.headers.get("content-type"))}}));return c.wrapPromise(u)};var lr=n(45605),cr=n(27957);const ur=(e,t)=>{const n=new lr.q,r=(0,s.f)(e,(async e=>{const r=await n.addPromise(e.engine.executeCommand("page_info",pr.Normal,{page:t,query:"text_lines"}));(0,Cn.v)(1==r.values.length,"Should have exactly one result.");const o=r.values[0];return(0,Cn.v)((0,cr.Go)(o),"Should have a binary result."),JSON.parse((new TextDecoder).decode(o)).textLines}),(async r=>{const o=await n.addPromise(Rn(e.requestQueue,r,`page-${t}-text`,pr.Normal,Nn.Token));return(await o.json()).textLines}));return n.wrapPromise(r)},dr=(e,t)=>{const n=new lr.q,r=(0,s.f)(e,(async e=>{const r=await n.addPromise(e.engine.executeCommand("get_content_tree",pr.Normal,{pageIndex:t,version:1}));return(0,Cn.v)(1==r.values.length,"Should have exactly one result."),(0,Cn.v)((0,cr.Fh)(r.values[0]),"Should have a JSON result."),[r.values[0]]}),(async r=>{const o=r.satisfiesVersion(">=1.3.0"),i=`page-${t}-text-content${o?"-v-1":""}`;return(await n.addPromise(Rn(e.requestQueue,r,i,pr.Normal,Nn.Token))).json()}),(async(e,r)=>(await r.whenPageAvailable(t,n),[await r.getContentTree(t)])));return n.wrapPromise(r)};let pr=function(e){return e[e.Normal=0]="Normal",e[e.High=1]="High",e}({}),hr=function(e){return e.PNG="png",e.JPEG="jpeg",e.WebP="webp",e.Bitmap="bitmap",e}({});var fr=n(44268),mr=n(13649);const gr=un("CgxzdGF0dXMucHJvdG8SHFBERkMuV0FTTS5Qcm90b2J1Zi5HZW5lcmF0ZWQiSwoGU3RhdHVzEjAKBGNvZGUYASABKA4yIi5QREZDLldBU00uUHJvdG9idWYuR2VuZXJhdGVkLkNvZGUSDwoHbWVzc2FnZRgCIAEoCSqoAgoEQ29kZRIGCgJPSxAAEgsKB1VOS05PV04QAhIUChBJTlZBTElEX0FSR1VNRU5UEAMSFQoRREVBRExJTkVfRVhDRUVERUQQBBINCglOT1RfRk9VTkQQBRISCg5BTFJFQURZX0VYSVNUUxAGEhUKEVBFUk1JU1NJT05fREVOSUVEEAcSEwoPVU5BVVRIRU5USUNBVEVEEBASFgoSUkVTT1VSQ0VfRVhIQVVTVEVEEAgSFwoTRkFJTEVEX1BSRUNPTkRJVElPThAJEgsKB0FCT1JURUQQChIQCgxPVVRfT0ZfUkFOR0UQCxIRCg1VTklNUExFTUVOVEVEEAwSDAoISU5URVJOQUwQDRIPCgtVTkFWQUlMQUJMRRAOEg0KCURBVEFfTE9TUxAPYgZwcm90bzM"),vr=Nt(gr,0);class yr{constructor(e){this.bridgeFn=e}async Initialize(e){let t=await this.bridgeFn("PDFC.CorePB.Generated.Linearized","Initialize",pn(Zn,e));if(!t.success){const e=on(vr,t.result.slice());throw new Error(e.message,{cause:e})}if(!t.result)throw new Error("No result returned - this should not happen.");return on(Yn,t.result.slice())}async IsLinearized(e){let t=await this.bridgeFn("PDFC.CorePB.Generated.Linearized","IsLinearized",pn(qn,e));if(!t.success){const e=on(vr,t.result.slice());throw new Error(e.message,{cause:e})}if(!t.result)throw new Error("No result returned - this should not happen.");return on(Gn,t.result.slice())}async IsDocumentAvailable(e){let t=await this.bridgeFn("PDFC.CorePB.Generated.Linearized","IsDocumentAvailable",pn(Hn,e));if(!t.success){const e=on(vr,t.result.slice());throw new Error(e.message,{cause:e})}if(!t.result)throw new Error("No result returned - this should not happen.");return on($n,t.result.slice())}async IsPageAvailable(e){let t=await this.bridgeFn("PDFC.CorePB.Generated.Linearized","IsPageAvailable",pn(Bn,e));if(!t.success){const e=on(vr,t.result.slice());throw new Error(e.message,{cause:e})}if(!t.result)throw new Error("No result returned - this should not happen.");return on(Ln,t.result.slice())}async GetDocumentInfo(e){let t=await this.bridgeFn("PDFC.CorePB.Generated.Linearized","GetDocumentInfo",pn(Vn,e));if(!t.success){const e=on(vr,t.result.slice());throw new Error(e.message,{cause:e})}if(!t.result)throw new Error("No result returned - this should not happen.");return on(Kn,t.result.slice())}async OnDataWritten(e){let t=await this.bridgeFn("PDFC.CorePB.Generated.Linearized","OnDataWritten",pn(Un,e));if(!t.success){const e=on(vr,t.result.slice());throw new Error(e.message,{cause:e})}if(!t.result)throw new Error("No result returned - this should not happen.");return on(Wn,t.result.slice())}async GetContentTree(e){let t=await this.bridgeFn("PDFC.CorePB.Generated.Linearized","GetContentTree",pn(Xn,e));if(!t.success){const e=on(vr,t.result.slice());throw new Error(e.message,{cause:e})}if(!t.result)throw new Error("No result returned - this should not happen.");return on(Jn,t.result.slice())}async Close(e){let t=await this.bridgeFn("PDFC.CorePB.Generated.Linearized","Close",pn(er,e));if(!t.success){const e=on(vr,t.result.slice());throw new Error(e.message,{cause:e})}if(!t.result)throw new Error("No result returned - this should not happen.");return on(tr,t.result.slice())}}class br{constructor(e,t){void 0===t?(this.start=e,this.end=e):(this.start=e,this.end=t)}static InvalidRange(){return new br(Number.MAX_SAFE_INTEGER)}isValid(){return!this.equals(br.InvalidRange())}length(){return this.getMax()-this.getMin()}isReversed(){return this.start>this.end}isEmpty(){return this.start===this.end}getMin(){return Math.min(this.start,this.end)}getMax(){return Math.max(this.start,this.end)}equals(e){return this.start===e.start&&this.end===e.end}equalsIgnoringDirection(e){return this.getMin()===e.getMin()&&this.getMax()===e.getMax()}contains(e){return e.isBoundedBy(this)&&(e.getMax()!==this.getMax()||e.isEmpty()===this.isEmpty())}isBoundedBy(e){return this.isValid()&&e.isValid()&&this.getMin()>=e.getMin()&&this.getMax()<=e.getMax()}intersect(e){const t=Math.max(this.getMin(),e.getMin()),n=Math.min(this.getMax(),e.getMax());return t<n||this.contains(e)||e.contains(this)?new br(t,n):br.InvalidRange()}toString(){return`[${this.start},${this.end})`}}function wr(e){return e.isValid()&&e.isReversed()?new br(e.end+1,e.start+1):e}class xr{constructor(e){this.ranges=[],e instanceof br?this.union(e):e instanceof xr&&(this.ranges=[...e.ranges])}equals(e){return this.ranges.length===e.ranges.length&&this.ranges.every(((t,n)=>t.equals(e.ranges[n])))}union(e){if(e.isEmpty())return;const t=wr(e);let n=this.upperBound(t);0!=n&&n--,n<this.ranges.length&&this.ranges[n].end<t.start&&n++;let r=this.upperBound(new br(t.end));if(n===r)return void this.ranges.splice(n,0,t);r--;const o=Math.min(this.ranges[n].start,t.start),i=Math.max(this.ranges[r].end,t.end);this.ranges.splice(n,r-n+1,new br(o,i))}unionRangeSet(e){for(const t of e.ranges)this.union(t)}contains(e){if(e.isEmpty())return!1;const t=wr(e),n=this.upperBound(t);if(0===n||null===n)return!1;const r=n-1;return r>=0&&this.ranges[r].end>=t.end}subtract(e){if(e.isEmpty()||this.isEmpty())return;const t=wr(e);let n=this.upperBound(t);0!=n&&n--,n<this.ranges.length&&this.ranges[n].end<t.start&&n++;const r=this.upperBound(new br(t.end));if(n==r)return;const o=[];for(let e=n;e!=r;e++){const n=new br(this.ranges[e].start,Math.min(this.ranges[e].end,t.start)),r=new br(Math.max(this.ranges[e].start,t.end),this.ranges[e].end);n.isEmpty()||n.isReversed()||o.push(n),r.isEmpty()||r.isReversed()||o.push(r)}this.ranges.splice(n,r-n,...o)}subtractRangeSet(e){const t=e.ranges.slice();for(const e of t)this.subtract(e)}isEmpty(){return 0===this.ranges.length}clear(){this.ranges=[]}toString(){let e="{";for(const t of this.ranges)e+=t.toString();return e+="}",e}upperBound(e){for(let t=0;t<this.ranges.length;t++)if(this.ranges[t].start>e.start)return t;return this.ranges.length}}class Sr{constructor(e){(0,d.A)(this,"kChunkSize",65535),(0,d.A)(this,"eofPos",0),(0,d.A)(this,"filledChunks",new xr),(0,d.A)(this,"filledChunksCount",0),e&&(this.kChunkSize=e)}setChunkData(e){this.filledChunks.union(new br(e,e+1)),this.filledChunksCount++}getChunkIndex(e){return Math.floor(e/this.kChunkSize)}getChunkEnd(e){return Math.ceil(e/this.kChunkSize)}getChunksRange(e,t){return new br(this.getChunkIndex(e),this.getChunkEnd(e+t))}isRangeAvailable(e){if(!e.isValid()||e.isReversed()||this.eofPos>0&&this.eofPos<e.end)return!1;if(e.isEmpty())return!0;const t=new br(this.getChunkIndex(e.start),this.getChunkEnd(e.end));return this.filledChunks.contains(t)}isRangeSetAvailable(e){for(const t of e.ranges)if(!this.isRangeAvailable(t))return!1;return!0}isComplete(){return this.eofPos>0&&this.isRangeAvailable(new br(0,this.eofPos))}isValidChunkIndex(e){return!this.eofPos||e<=this.getChunkIndex(this.eofPos-1)}clear(){this.eofPos=0,this.filledChunks.clear(),this.filledChunksCount=0}totalChunksCount(){return this.getChunkEnd(this.eofPos)}}var _r=function(e){return e[e.Debug=3]="Debug",e[e.Info=2]="Info",e[e.Warn=1]="Warn",e}(_r||{});const Cr=cr.TH?_r.Debug:_r.Warn;function Er(e){if(!e)throw new Error("Matrix is required");return[e.a,e.b,e.c,e.d,e.e,e.f]}function kr(e){if(!e)throw new Error("Rect is required");return[e.x,e.y,e.width,e.height]}function zr(e){return e?[e.l,e.t,e.r,e.b]:null}function Pr(e){if(!e)throw new Error("RawPdfBoxes is required");return{mediaBox:zr(e.mediaBox),cropBox:zr(e.cropBox),bleedBox:zr(e.bleedBox),trimBox:zr(e.trimBox)}}function Ar(e){if(e.rotation<0||e.rotation>3)throw new Error("Invalid page rotation");return{pageIndex:e.pageIndex,pageLabel:e.pageLabel??`${e.pageIndex+1}`,width:e.width,height:e.height,rotation:e.rotation,matrix:Er(e.matrix),reverseMatrix:Er(e.reverseMatrix),transformedBBox:kr(e.transformedBbox),untransformedBBox:kr(e.untransformedBbox),rawPdfBoxes:Pr(e.rawPdfBoxes)}}function Dr(e){if(e)return{author:e.author,creator:e.creator,dateCreated:e.dateCreated,dateModified:e.dateModified,producer:e.producer}}function Tr(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}const Ir=function(e){let t=!0;return{debug(){if(!(_r.Debug>Cr)&&t){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];console.debug(`[${e}]`,...r)}},info(){if(!(_r.Info>Cr)&&t){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];console.info(`[${e}]`,...r)}},warn(){if(!(_r.Warn>Cr)&&t){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];console.warn(`[${e}]`,...r)}},enable(e){t=e}}}("core-pdf/linearized-instance");let Mr=function(e){return e.Yes="Yes",e.No="No",e.Unknown="Unknown",e}({}),Nr=function(e){return e.IsAvailable="IsAvailable",e.IsNotAvailableYet="IsNotAvailable",e.Error="Error",e}({});function Or(e){return`Page-${e}`}let Rr=function(e){return e[e.Progress=0]="Progress",e[e.Complete=1]="Complete",e[e.Error=2]="Error",e}({});const jr=new FinalizationRegistry((e=>{try{Ir.debug("Finalizing linearized service with id "+e.linearizedInstanceId),e.coreClient.closeFile(e.fileDescriptor),e.linearizedService.Close(V(er,{linearizedInstanceId:e.linearizedInstanceId}))}catch(e){}}));let Fr=function(e){return e.Uninitialized="Uninitialized",e.Initialized="Initialized",e.Downloading="Downloading",e.Complete="Complete",e.Destroyed="Destroyed",e.Error="Error",e}({});var Br=new WeakMap,Lr=new WeakMap,Vr=new WeakMap,Kr=new WeakMap,Hr=new WeakMap,$r=new WeakMap,Ur=new WeakMap,Wr=new WeakMap,qr=new WeakMap,Gr=new WeakMap,Zr=new WeakMap,Yr=new WeakMap,Xr=new WeakMap,Jr=new WeakMap;class Qr{constructor(e,t,n){Tr(this,Br,{writable:!0,value:void 0}),Tr(this,Lr,{writable:!0,value:Fr.Uninitialized}),Tr(this,Vr,{writable:!0,value:new In}),Tr(this,Kr,{writable:!0,value:void 0}),Tr(this,Hr,{writable:!0,value:void 0}),Tr(this,$r,{writable:!0,value:void 0}),Tr(this,Ur,{writable:!0,value:void 0}),Tr(this,Wr,{writable:!0,value:void 0}),Tr(this,qr,{writable:!0,value:0}),Tr(this,Gr,{writable:!0,value:new Sr}),Tr(this,Zr,{writable:!0,value:new xr}),Tr(this,Yr,{writable:!0,value:new Map}),Tr(this,Xr,{writable:!0,value:new Map}),Tr(this,Jr,{writable:!0,value:new Map}),(0,mr.A)(this,Hr,e),(0,mr.A)(this,$r,n??new yr(e.engine.coreClient.corePBProtoBridge.bind(e.engine.coreClient))),(0,mr.A)(this,Ur,t),(0,fr.A)(this,Hr).engine.coreClient.writeFile(t,new Uint8Array),Ir.debug("initialized")}async destroy(){this.changeState(Fr.Destroyed)}on(e,t){(0,fr.A)(this,Vr).on(e,t)}off(e,t){(0,fr.A)(this,Vr).off(e,t)}get state(){return(0,fr.A)(this,Lr)}get eventEmitter(){return(0,fr.A)(this,Vr)}get linearizedInstanceId(){return(0,fr.A)(this,Br)}async initialize(e){(0,Cn.v)((0,fr.A)(this,Lr)==Fr.Uninitialized),(0,mr.A)(this,Wr,await(0,fr.A)(this,Hr).engine.coreClient.openFile((0,fr.A)(this,Ur),"a")),(0,mr.A)(this,Kr,e);const t=new Headers({Range:"bytes=0-"}),n=await fetch((0,fr.A)(this,Kr),{headers:t,method:"HEAD",credentials:"same-origin"});if(!n.ok)throw Error("Couldn't fetch the file: "+n.statusText);const r=parseInt(n.headers.get("content-length"))||0;if(null==r||0==r)return!1;(0,fr.A)(this,Gr).eofPos=r;if(!(206==n.status&&"application/pdf"===n.headers.get("content-type")))return!1;const o=V(Zn,{fullFileSize:BigInt(r),filepath:(0,fr.A)(this,Ur)}),i=await(0,fr.A)(this,$r).Initialize(o);return(0,mr.A)(this,Br,i.linearizedInstanceId),jr.register(this,{linearizedService:(0,fr.A)(this,$r),linearizedInstanceId:(0,fr.A)(this,Br),fileDescriptor:(0,fr.A)(this,Wr),coreClient:(0,fr.A)(this,Hr).engine.coreClient}),Ir.debug("Server supports streaming document."),this.changeState(Fr.Initialized),!0}async kickStartDownload(){this.assertNotUninitialized();const e=V(Hn,{linearizedInstanceId:(0,fr.A)(this,Br)}),t=await(0,fr.A)(this,$r).IsDocumentAvailable(e);(0,Cn.v)(t.isAvailable),t.isAvailable.downloadsRequired.forEach((e=>{this.scheduleDownload(Number(e.offset),Number(e.size),"isDocumentAvailable")}))}async whenPageAvailable(e,t){if(this.assertNotUninitialized(),(0,fr.A)(this,Jr).has(e)){const t=(0,fr.A)(this,Jr).get(e);return(0,Cn.v)(t),Promise.resolve(t)}let n,r;const o=new Promise((function(e,t){n=e,r=t}));return Ir.debug(`Waiting for page ${e} to be available`),this.trackDownload(Or(e)),this.checkIsPageAvailable(e).then((i=>i.availability==Nr.IsAvailable?(Ir.debug(`Page ${e} is already available`),this.freeDownload(Or(e)),Promise.resolve(i.pageInfo)):(Ir.debug(`Page ${e} is not available yet`),(0,fr.A)(this,Vr).once(Rr.Progress,(()=>{this.pageAvailabilityCheck(e,(e=>{(0,Cn.v)(e.availability==Nr.IsAvailable),n(e.pageInfo)}),r,t)})),o)))}async getContentTree(e){this.assertNotUninitialized();const t=await(0,fr.A)(this,$r).GetContentTree(V(Xn,{linearizedInstanceId:(0,fr.A)(this,Br),pageIndex:e}));if((0,Cn.v)(t.isAvailable),t.isAvailable.downloadsRequired.forEach((t=>{this.scheduleDownload(Number(t.offset),Number(t.size),`ContentTree-${e}`)})),t.isAvailable.isAvailable!=nr.AVAILABLE)throw new Error("Content tree is not available");return JSON.parse(t.contentTreeJson)}isRunning(){return(0,fr.A)(this,Lr)!==Fr.Uninitialized&&(0,fr.A)(this,Lr)!==Fr.Destroyed&&(0,fr.A)(this,Lr)!==Fr.Error}isDestroyed(){return(0,fr.A)(this,Lr)===Fr.Destroyed}isComplete(){return(0,fr.A)(this,Lr)===Fr.Complete}async waitUntilIsLinearizedIsKnown(){if((0,fr.A)(this,Lr)===Fr.Error||this.isDestroyed())throw new Error("Loader encountered an error or was destroyed before linearization could be determined.");return new Promise(((e,t)=>{const n=async()=>{const t=await this.isLinearized();t!==Mr.Unknown&&(o(),e(t===Mr.Yes))},r=e=>{o(),t(e)},o=()=>{this.off(Rr.Progress,n),(0,fr.A)(this,Vr).off(Rr.Error,r)};this.on(Rr.Progress,n),(0,fr.A)(this,Vr).once(Rr.Error,r),n()}))}async waitUntilDocumentInfoAvailable(){if((0,fr.A)(this,Lr)===Fr.Error||this.isDestroyed())throw new Error("Loader encountered an error or was destroyed before document info could be retrieved.");const e=async()=>{switch((await this.checkIsPageAvailable(0)).availability){case Nr.IsAvailable:return this.getDocumentInfo();case Nr.IsNotAvailableYet:return null;case Nr.Error:throw new Error("Document info could not be downloaded.")}},t=await e();return t||new Promise(((t,n)=>{const r=async()=>{try{const n=await e();n&&(i(),t(n))}catch(e){i(),n(e)}},o=e=>{i(),n(e)},i=()=>{this.off(Rr.Progress,r),(0,fr.A)(this,Vr).off(Rr.Error,o)};this.on(Rr.Progress,r),(0,fr.A)(this,Vr).once(Rr.Error,o)}))}async waitUntilDownloaded(){if((0,fr.A)(this,Lr)===Fr.Error||this.isDestroyed())throw new Error("Loader encountered an error or was destroyed before download could complete.");if((0,fr.A)(this,Lr)!==Fr.Complete)return new Promise(((e,t)=>{const n=()=>{o(),e()},r=e=>{o(),t(e)},o=()=>{(0,fr.A)(this,Vr).off(Rr.Complete,n),(0,fr.A)(this,Vr).off(Rr.Error,r)};(0,fr.A)(this,Vr).once(Rr.Complete,n),(0,fr.A)(this,Vr).once(Rr.Error,r)}))}changeState(e){(0,fr.A)(this,Lr)!==Fr.Destroyed&&(0,mr.A)(this,Lr,e)}assertNotUninitialized(){(0,Cn.v)((0,fr.A)(this,Lr)!=Fr.Uninitialized,"Linearized instance not initialized, please call initialize first")}async pageAvailabilityCheck(e,t,n,r){if(r?.isCancelled()||this.isDestroyed()||this.isComplete())return Ir.debug(`Page ${e} availability check cancelled`),void this.freeDownload(Or(e));const o=await this.checkIsPageAvailable(e);if(r?.isCancelled()||this.isDestroyed()||this.isComplete())return Ir.debug(`Page ${e} availability check cancelled`),void this.freeDownload(Or(e));switch(o.availability){case Nr.IsAvailable:return Ir.debug(`Page ${e} availability changed to ${o}`),this.freeDownload(Or(e)),void t(o);case Nr.Error:return Ir.debug(`Page ${e} availability changed to ${o}`),this.freeDownload(Or(e)),void n("Error making page available");case Nr.IsNotAvailableYet:(0,fr.A)(this,Vr).once(Rr.Progress,(()=>{this.pageAvailabilityCheck(e,t,n,r)}))}}async nextDownload(){if((0,fr.A)(this,Gr).isComplete())return Ir.debug("All chunks downloaded, we're done."),this.changeState(Fr.Complete),void(0,fr.A)(this,Vr).emit(Rr.Complete);if((0,fr.A)(this,Lr)===Fr.Destroyed)return;const e=(0,fr.A)(this,Zr).isEmpty()?0:(0,fr.A)(this,Zr).ranges[0].start,t=new xr(new br(e,(0,fr.A)(this,Gr).totalChunksCount()));t.subtractRangeSet((0,fr.A)(this,Gr).filledChunks);const n=t.ranges[0];Ir.debug({pendingRequests:(0,fr.A)(this,Zr).toString(),filledChunks:(0,fr.A)(this,Gr).filledChunks.toString(),nextRequest:n.toString()});const r=n.start*(0,fr.A)(this,Gr).kChunkSize,o=Math.min(n.length(),15)*(0,fr.A)(this,Gr).kChunkSize,i=new Headers;i.append("Range",`bytes=${r}-${r+o-1}`),fetch((0,fr.A)(this,Kr),{headers:i,credentials:"same-origin"}).then((e=>{this.receivedResponse(e,r).catch((e=>{Ir.debug(`Error downloading file ${e}`),this.maybeRetryDownload(e)}))})).catch((e=>{Ir.debug(`Error downloading file ${e}`),this.maybeRetryDownload(e)}))}maybeRetryDownload(e){var t;(0,mr.A)(this,qr,(t=(0,fr.A)(this,qr),t++,t)),(0,fr.A)(this,qr)>3?this.emitUnrecoverableError(e):this.nextDownload()}async receivedResponse(e,t){if(200!=e.status&&206!=e.status){const t=new Error("Couldn't fetch the file: "+e.statusText);return void this.emitUnrecoverableError(t)}(0,mr.A)(this,qr,0);const n=await e.arrayBuffer(),r=new Uint8Array(n);(0,Cn.v)(void 0!==(0,fr.A)(this,Wr)),await(0,fr.A)(this,Hr).engine.coreClient.writeData((0,fr.A)(this,Wr),r,t).then((()=>{(0,fr.A)(this,$r).OnDataWritten(V(Un,{linearizedInstanceId:(0,fr.A)(this,Br),offset:BigInt(t),size:BigInt(r.length)}))}));let o=(0,fr.A)(this,Gr).getChunkIndex(t),i=n.byteLength;const a=(0,fr.A)(this,Gr).getChunksRange(t,i);for((0,fr.A)(this,Yr).forEach(((e,t)=>{e.subtract(a),e.isEmpty()&&(0,fr.A)(this,Yr).delete(t)}));i>0;)(0,fr.A)(this,Gr).setChunkData(o),(0,fr.A)(this,Zr).subtract(new br(o,o+1)),i-=(0,fr.A)(this,Gr).kChunkSize,o++;(0,fr.A)(this,Vr).emit(Rr.Progress),this.nextDownload()}trackDownload(e){const t=(0,fr.A)(this,Xr).get(e);t?t.refCount++:(0,fr.A)(this,Xr).set(e,{refCount:1})}freeDownload(e){const t=(0,fr.A)(this,Xr).get(e);if(t&&(t.refCount--,0==t.refCount)){(0,fr.A)(this,Xr).delete(e);const t=(0,fr.A)(this,Yr).get(e);t&&(Ir.debug(`[${e}] Freeing download, Requested chunks: ${t.toString()}`),(0,fr.A)(this,Zr).subtractRangeSet(t),(0,fr.A)(this,Yr).delete(e))}}scheduleDownload(e,t,n){const r=new xr((0,fr.A)(this,Gr).getChunksRange(e,t));if(r.subtractRangeSet((0,fr.A)(this,Gr).filledChunks),r.subtractRangeSet((0,fr.A)(this,Zr)),!r.isEmpty()){(0,fr.A)(this,Zr).unionRangeSet(r);const o=(0,fr.A)(this,Yr).get(n);o?o.unionRangeSet(r):(0,fr.A)(this,Yr).set(n,r),Ir.debug(`[${n}] Scheduling download for offset ${e} and size ${t}, Requested chunks: ${r.toString()}`)}(0,fr.A)(this,Lr)===Fr.Downloading||this.isDestroyed()||(this.changeState(Fr.Downloading),this.nextDownload())}emitUnrecoverableError(e){this.changeState(Fr.Error),(0,fr.A)(this,Vr).emit(Rr.Error,e)}async getDocumentInfo(){this.assertNotUninitialized();const e=await(0,fr.A)(this,$r).GetDocumentInfo(V(Vn,{linearizedInstanceId:(0,fr.A)(this,Br)}));if("documentInfo"===e.response.case){const t=e.response.value;return{pageCount:t.pageCount,ID:t.pdfId?{permanent:t.pdfId.permanent,update:t.pdfId.changing}:{},title:t.title,metadata:Dr(t.metadata),pages:Array.from({length:t.pageCount},(()=>Ar(t.pageInfo[0]))).map(((e,t)=>(e.pageIndex=t,e.pageLabel=`${t+1}`,e)))}}return(0,Cn.v)(e.response.value),e.response.value.downloadsRequired.forEach((e=>{this.scheduleDownload(Number(e.offset),Number(e.size),"document-info")})),null}async isLinearized(){this.assertNotUninitialized();const e=await(0,fr.A)(this,$r).IsLinearized(V(qn,{linearizedInstanceId:(0,fr.A)(this,Br)}));switch(e.downloadsRequired.forEach((e=>{this.scheduleDownload(Number(e.offset),Number(e.size),"isLinearized")})),e.isLinearized){case rr.LINEARIZED:return Mr.Yes;case rr.NOT_LINEARIZED:return Mr.No;case rr.UNKNOWN:return Mr.Unknown}}async checkIsPageAvailable(e){if(this.assertNotUninitialized(),(0,fr.A)(this,Jr).has(e)){const t=(0,fr.A)(this,Jr).get(e);return(0,Cn.v)(t),{availability:Nr.IsAvailable,pageInfo:t}}const t=V(Bn,{linearizedInstanceId:(0,fr.A)(this,Br),pageIndex:e}),n=await(0,fr.A)(this,$r).IsPageAvailable(t);switch((0,Cn.v)(n.isPageAvailable),n.isPageAvailable.downloadsRequired.forEach((t=>{this.scheduleDownload(Number(t.offset),Number(t.size),Or(e))})),n.isPageAvailable.isAvailable){case nr.AVAILABLE:{(0,Cn.v)(n.pageInfo);const t=Ar(n.pageInfo);return(0,fr.A)(this,Jr).set(e,t),{availability:Nr.IsAvailable,pageInfo:t}}case nr.NOT_AVAILABLE_YET:return{availability:Nr.IsNotAvailableYet};case nr.ERROR:return Ir.debug("Error while checking page availability"),{availability:Nr.Error}}}}var eo=n(97595);const to=async(e,t,n)=>{const r=await e.engine.executeCommand(t,pr.High,n);return(0,Cn.v)(1===r.values.length,`expected only one response for ${t}: ${r.values}`),(0,Cn.v)(!(r.values[0]instanceof Uint8Array),"expected JSON response: "+r.values),r.values[0]},no=e=>{e.serverCtx&&(0,Cn.v)((0,s.Eh)(e,eo.l),"Content Editing is available with Document Engine version "+eo.l)};async function ro(e){if(e.serverCtx){no(e);const t=Rn(e.requestQueue,e.serverCtx,"pdf",pr.High,Nn.QueryToken);if(!e.wasmCtx){(0,Cn.v)(e.getWasmDispatch);const t=await e.getWasmDispatch();e.wasmCtx||(0,s.L9)(e,t)}(0,Cn.v)(e.wasmCtx);const n=await t;return await e.wasmCtx.engine.coreClient.writeFile("/document.pdf",await n.arrayBuffer()),await e.wasmCtx.engine.executeCommand("open_document",pr.Normal,{file_path:"/document.pdf"}),await e.wasmCtx.engine.executeCommand("content_editing/enter",pr.High,{}),new oo(e.wasmCtx,e)}if(e.wasmCtx)return(0,Cn.v)(e.wasmCtx,"wasmCtx is required."),await(e.wasmCtx?.engine.executeCommand("content_editing/enter",pr.High,{})),new oo(e.wasmCtx,e)}class oo{constructor(e,t){(0,Cn.v)(e,"wasmCtx is required."),this.wasmCtx=e,this.ctx=t}async closeContentEditor(){await this.wasmCtx.engine.executeCommand("content_editing/exit",pr.High,{})}async getTextBlocks(e){return to(this.wasmCtx,"content_editing/get_text_blocks",{pageIndex:e})}async detectParagraphs(e){return to(this.wasmCtx,"content_editing/detect_paragraphs",{pageIndex:e})}async renderTextBlock(e,t,n){const r=await this.wasmCtx.engine.executeCommand("content_editing/render_text_block",pr.High,{textBlockId:e,renderTextBlockParams:t,externalControlState:n});return(0,Cn.v)(2===r.values.length,"expected only two responses for renderTextBlock. ArrayBuffer and Size info."),(0,Cn.v)(!(r.values[0]instanceof Uint8Array),`expected JSON response: ${r.values}`),(0,Cn.v)(r.values[1]instanceof Uint8Array,`expected ArrayBuffer response: ${r.values}`),{imageBuffer:r.values[1],displayRect:r.values[0].displayRect}}async setTextBlockCursor(e,t,n,r){return to(this.wasmCtx,"content_editing/set_cursor",{textBlockId:e,offset:t,selectText:n,externalControlState:r})}async moveTextBlockCursor(e,t,n,r){return to(this.wasmCtx,"content_editing/move_cursor",{textBlockId:e,movement:t,selectText:n,externalControlState:r})}async insertTextBlockString(e,t,n,r){return to(this.wasmCtx,"content_editing/insert_text",{textBlockId:e,cluster:t,text:n,externalControlState:r})}async insertTextBlockContentRef(e,t,n,r){return to(this.wasmCtx,"content_editing/insert_content_ref",{textBlockId:e,cluster:t,contentRef:n,externalControlState:r})}async createTextBlock(e){return to(this.wasmCtx,"content_editing/create_text_block",{pageIndex:e})}async layoutTextBlock(e,t,n,r){return to(this.wasmCtx,"content_editing/layout",{textBlockId:e,cursor:t,selection:n,externalControlState:r})}async deleteTextBlockRange(e,t,n){return to(this.wasmCtx,"content_editing/delete_range",{textBlockId:e,range:t,externalControlState:n})}async deleteTextBlockString(e,t,n){return to(this.wasmCtx,"content_editing/delete_cluster",{textBlockId:e,direction:t,externalControlState:n})}async setTextBlockSelection(e,t,n){return to(this.wasmCtx,"content_editing/set_selection",{textBlockId:e,mode:t,externalControlState:n})}async setTextBlockSelectionRange(e,t,n,r,o){return to(this.wasmCtx,"content_editing/set_selection_range",{textBlockId:e,begin:t,end:n,mode:r,externalControlState:o})}async textBlockUndo(e,t){return to(this.wasmCtx,"content_editing/undo",{textBlockId:e,externalControlState:t})}async textBlockRedo(e,t){return to(this.wasmCtx,"content_editing/redo",{textBlockId:e,externalControlState:t})}async textBlockRestore(e,t,n){return to(this.wasmCtx,"content_editing/restore",{textBlockId:e,version:t,externalControlState:n})}async textBlockApplyFormat(e,t,n,r){return to(this.wasmCtx,"content_editing/apply_format",{textBlockId:e,range:t,formatModifications:n,externalControlState:r})}async save(e,t,n){try{const r="/update";if(this.ctx.serverCtx){no(this.ctx);const o=await to(this.wasmCtx,"content_editing/save_to_document",{path:e,textBlockSaveInfos:t,graphicBlockSaveInfos:n,alsoSaveUpdate:!0,updateSavePath:r});(0,Cn.v)(o.checksum.length>0,"expected non-empty checksum");let i=new FormData;i.append("update",new Blob([await this.wasmCtx.engine.coreClient.readFile(r)]),"update"),i.append("checksum",o.checksum);if((await Rn(this.ctx.requestQueue,this.ctx.serverCtx,"update-source-document",pr.High,Nn.Token,{method:"POST",body:i})).ok)return;(0,Cn.v)(this.ctx.serverCtx,"serverCtx is required."),i=new FormData,i.append("file",new Blob([await this.wasmCtx.engine.coreClient.readFile(e)]),"file"),await Rn(this.ctx.requestQueue,this.ctx.serverCtx,"replace-source-document",pr.High,Nn.Token,{method:"POST",body:i})}else await this.wasmCtx.engine.executeCommand("content_editing/save_to_document",pr.High,{path:e,textBlockSaveInfos:t,graphicBlockSaveInfos:n})}catch(t){throw new Error(`Error saving to ${e}: ${t.message}`)}}async getAvailableFaces(){return to(this.wasmCtx,"content_editing/available_faces")}async detectPageElements(e){return to(this.wasmCtx,"content_editing/detect_page_elements",{pageIndex:e})}async renderGraphicBlock(e,t){const n=await this.wasmCtx.engine.executeCommand("content_editing/render_graphic_block",pr.High,{graphicBlockId:e,renderGraphicBlockParams:t});return(0,Cn.v)(2===n.values.length,"expected only two responses for renderGraphicBlock. ArrayBuffer and Size info."),(0,Cn.v)(!(n.values[0]instanceof Uint8Array),`expected JSON response: ${n.values}`),(0,Cn.v)(n.values[1]instanceof Uint8Array,`expected ArrayBuffer response: ${n.values}`),{imageBuffer:n.values[1],displayRect:n.values[0].displayRect}}cancelRequests(){this.wasmCtx.engine.cancelRequests((e=>!!e.jsonCommand&&((0,Cn.v)("string"==typeof e.jsonCommand.type,"expected string type"),e.jsonCommand.type.startsWith("content_editing/"))))}}const io=un("Cgt1dGlscy5wcm90bxIVUERGQy5Db3JlUEIuR2VuZXJhdGVkIikKBVJhbmdlEhAKCHBvc2l0aW9uGAEgASgFEg4KBmxlbmd0aBgCIAEoBWIGcHJvdG8z"),ao=un("ChV0ZXh0X2NvbXBhcmlzb24ucHJvdG8SJFBERkMuQ29yZVBCLkdlbmVyYXRlZC5UZXh0Q29tcGFyaXNvbiLwAgoSVGV4dENvbXBhcmVSZXF1ZXN0EkIKCmRvY3VtZW50X2EYASABKAsyLi5QREZDLkNvcmVQQi5HZW5lcmF0ZWQuVGV4dENvbXBhcmlzb24uRG9jdW1lbnQSRwoOcGFnZV9pbmRleGVzX2EYAiADKAsyLy5QREZDLkNvcmVQQi5HZW5lcmF0ZWQuVGV4dENvbXBhcmlzb24uUGFnZUluZGV4EkIKCmRvY3VtZW50X2IYAyABKAsyLi5QREZDLkNvcmVQQi5HZW5lcmF0ZWQuVGV4dENvbXBhcmlzb24uRG9jdW1lbnQSRwoOcGFnZV9pbmRleGVzX2IYBCADKAsyLy5QREZDLkNvcmVQQi5HZW5lcmF0ZWQuVGV4dENvbXBhcmlzb24uUGFnZUluZGV4EiQKF251bWJlcl9vZl9jb250ZXh0X3dvcmRzGAUgASgFSACIAQFCGgoYX251bWJlcl9vZl9jb250ZXh0X3dvcmRzIl8KE1RleHRDb21wYXJlUmVzcG9uc2USSAoHcmVzdWx0cxgBIAMoCzI3LlBERkMuQ29yZVBCLkdlbmVyYXRlZC5UZXh0Q29tcGFyaXNvbi5UZXh0Q29tcGFyZVJlc3VsdCIsCg5QYWdlSW5kZXhSYW5nZRINCgVzdGFydBgBIAEoBRILCgNlbmQYAiABKAUicAoJUGFnZUluZGV4Eg8KBWluZGV4GAEgASgFSAASRQoFcmFuZ2UYAiABKAsyNC5QREZDLkNvcmVQQi5HZW5lcmF0ZWQuVGV4dENvbXBhcmlzb24uUGFnZUluZGV4UmFuZ2VIAEILCglwYWdlSW5kZXgiQAoIRG9jdW1lbnQSEAoIZmlsZXBhdGgYASABKAkSFQoIcGFzc3dvcmQYAiABKAlIAIgBAUILCglfcGFzc3dvcmQiYwoJVGV4dEJsb2NrEisKBXJhbmdlGAEgASgLMhwuUERGQy5Db3JlUEIuR2VuZXJhdGVkLlJhbmdlEikKBHJlY3QYAiABKAsyGy5QREZDLkNvcmVQQi5HZW5lcmF0ZWQuUmVjdCL2AQoPT3BlcmF0aW9uUmVzdWx0EjgKBHR5cGUYASABKA4yKi5QREZDLkNvcmVQQi5HZW5lcmF0ZWQuVGV4dENvbXBhcmlzb24uVHlwZRIMCgR0ZXh0GAIgASgJEk0KFG9yaWdpbmFsX3RleHRfYmxvY2tzGAMgAygLMi8uUERGQy5Db3JlUEIuR2VuZXJhdGVkLlRleHRDb21wYXJpc29uLlRleHRCbG9jaxJMChNjaGFuZ2VkX3RleHRfYmxvY2tzGAQgAygLMi8uUERGQy5Db3JlUEIuR2VuZXJhdGVkLlRleHRDb21wYXJpc29uLlRleHRCbG9jayK3AQoESHVuaxIzCg1vcmlnaW5hbFJhbmdlGAEgASgLMhwuUERGQy5Db3JlUEIuR2VuZXJhdGVkLlJhbmdlEjIKDGNoYW5nZWRSYW5nZRgCIAEoCzIcLlBERkMuQ29yZVBCLkdlbmVyYXRlZC5SYW5nZRJGCgdyZXN1bHRzGAMgAygLMjUuUERGQy5Db3JlUEIuR2VuZXJhdGVkLlRleHRDb21wYXJpc29uLk9wZXJhdGlvblJlc3VsdCLAAQoRVGV4dENvbXBhcmVSZXN1bHQSIAoTb3JpZ2luYWxfcGFnZV9pbmRleBgBIAEoBUgAiAEBEh8KEmNoYW5nZWRfcGFnZV9pbmRleBgCIAEoBUgBiAEBEjkKBWh1bmtzGAMgAygLMiouUERGQy5Db3JlUEIuR2VuZXJhdGVkLlRleHRDb21wYXJpc29uLkh1bmtCFgoUX29yaWdpbmFsX3BhZ2VfaW5kZXhCFQoTX2NoYW5nZWRfcGFnZV9pbmRleCopCgRUeXBlEgoKBkRFTEVURRAAEgoKBklOU0VSVBABEgkKBUVRVUFMEAIylwEKDlRleHRDb21wYXJpc29uEoQBCgtDb21wYXJlVGV4dBI4LlBERkMuQ29yZVBCLkdlbmVyYXRlZC5UZXh0Q29tcGFyaXNvbi5UZXh0Q29tcGFyZVJlcXVlc3QaOS5QREZDLkNvcmVQQi5HZW5lcmF0ZWQuVGV4dENvbXBhcmlzb24uVGV4dENvbXBhcmVSZXNwb25zZSIAYgZwcm90bzM",[io,jn]),so=Nt(ao,0),lo=Nt(ao,1),co=Nt(ao,3),uo=Nt(ao,4),po=Rt(Ot(ao,0));class ho{constructor(e){this.bridgeFn=e}async CompareText(e){let t=await this.bridgeFn("PDFC.CorePB.Generated.TextComparison.TextComparison","CompareText",pn(so,e));if(!t.success){const e=on(vr,t.result.slice());throw new Error(e.message,{cause:e})}if(!t.result)throw new Error("No result returned - this should not happen.");return on(lo,t.result.slice())}}function fo(e){return(0,Cn.v)(e),{position:e.position,length:e.length}}function mo(e){return e.map((e=>Array.isArray(e)?V(co,{pageIndex:{value:{start:e[0],end:e[1]},case:"range"}}):V(co,{pageIndex:{value:e,case:"index"}})))}function go(e){return(0,Cn.v)(e),[e.x,e.y,e.width,e.height]}function vo(e){switch(e){case po.INSERT:return"insert";case po.DELETE:return"delete";case po.EQUAL:return"equal";default:throw new Error("Unknown action")}}function yo(e){return{documentComparisonResults:e.results.map((e=>({originalPageIndex:e.originalPageIndex,changedPageIndex:e.changedPageIndex,comparisonResults:[{type:"text",hunks:e.hunks.map((e=>function(e){return{originalRange:fo(e.originalRange),changedRange:fo(e.changedRange),operations:e.results.map((e=>({type:vo(e.type),text:e.text,originalTextBlocks:e.originalTextBlocks.map((e=>({range:fo(e.range),rect:go(e.rect)}))),changedTextBlocks:e.changedTextBlocks.map((e=>({range:fo(e.range),rect:go(e.rect)})))})))}}(e)))}]})))}}function bo(e,t,n){return e.engine.coreClient.writeFile(n,t.data).then((()=>V(uo,{filepath:n,password:t.password})))}const wo=(e,t,n,r)=>{const o=new lr.q,i=(0,s.f)(e,(async e=>{const o=bo(e,t,"documentA.pdf"),i=bo(e,n,"documentB.pdf"),a=new ho(e.engine.coreClient.corePBProtoBridge.bind(e.engine.coreClient)),[s,l]=await Promise.all([o,i]),c=await a.CompareText(V(so,{documentA:s,pageIndexesA:mo(t.pageIndexes),documentB:l,pageIndexesB:mo(n.pageIndexes),numberOfContextWords:r?.numberOfContextWords}));return await e.engine.coreClient.deleteFile(s.filepath),await e.engine.coreClient.deleteFile(l.filepath),yo(c)}),(e=>{(0,Cn.v)(!1,"This function can't be called on the server")}));return o.wrapPromise(i)}},48370:(e,t,n)=>{"use strict";n.d(t,{S:()=>o});var r=n(85409);class o extends r.uE{constructor(e){super(e)}}},4819:(e,t,n)=>{"use strict";n.d(t,{v:()=>o});var r=n(85409);function o(e,t){(0,r.V1)(e,t)}},2752:(e,t,n)=>{"use strict";n.d(t,{E4:()=>i.E,MX:()=>r,Sx:()=>o.S,ql:()=>i.q});var r=n(47240),o=n(48370),i=n(45605)},27957:(e,t,n)=>{"use strict";n.d(t,{TH:()=>s,N$:()=>d,Go:()=>l,Fh:()=>c});var r=n(79308),o=n(48370);class i extends o.S{constructor(e,t){super(e),this.code=t}}var a=n(2752);const s=!1;function l(e){return e instanceof Uint8Array}function c(e){return!l(e)}class u{constructor(e,t){this.jsonCommand=t,this.identifier=(0,r.v4)(),this.coreClient=e}async request(){const e=await this.coreClient.dispatchCommand(JSON.stringify(this.jsonCommand));if(s&&console.log("Dispatched command",this.jsonCommand),e.success)return s&&console.log("Result: ",e.values),e;throw s&&console.error("Error: ",e.message,e.code),new i(e.message,e.code)}}class d{constructor(e,t){this.requestQueue=e,this.coreClient=t}executeCommand(e,t,n){return(0,a.E4)(this.requestQueue.enqueue(new u(this.coreClient,{type:e,...n}),t))}cancelRequests(e){this.requestQueue.cancelRequests((t=>e(t)))}}},55994:(e,t,n)=>{"use strict";n.d(t,{EA:()=>h,Fe:()=>s,iy:()=>l,pj:()=>f});var r=n(67136),o=n(85409),i=n(37094);const a=()=>{};class s{constructor(){(0,r.A)(this,"_requests",new Map),(0,r.A)(this,"_nextRequestId",1),(0,r.A)(this,"_isLoading",!0),(0,r.A)(this,"_loadPromise",null),(0,r.A)(this,"_initPromise",null),(0,r.A)(this,"_hasOpenedDocument",!1),(0,r.A)(this,"_hasLoadedCertificates",!1),(0,r.A)(this,"_handleMessage",(e=>{const t=e.data,n=this._requests.get(t.id);(0,o.V1)(n,`No request was made for id ${t.id}.`);const{resolve:r,reject:i}=n;if(this._requests.delete(t.id),t.error){const e=new o.uE(t.error);e.callArgs=t.callArgs,i(e)}else r(t.result)}))}getNativeModule(){throw new Error("Method not implemented.")}async loadNativeModule(e,t){let{mainThreadOrigin:n,disableWebAssemblyStreaming:r,enableAutomaticLinkExtraction:i,overrideMemoryLimit:a,wasmLoaderPath:s,wasm:l,workerSpawnerFn:c}=t;return(0,o.V1)(!this._hasOpenedDocument,"cannot invoke `loadNativeModule` while an instance is still in use. Please call `recycle` first."),this._loadPromise?this._loadPromise.then((()=>{})):(this._initPromise||(this.workerSpawner||(this.workerSpawner=await c(),this.workerSpawner.setMessageHandler(this._handleMessage)),this._baseCoreUrl=e,this._mainThreadOrigin=n,this._initPromise=this._sendRequest("loadNativeModule",[s&&l?{wasm:l,wasmLoaderPath:s}:e,{mainThreadOrigin:n,disableWebAssemblyStreaming:r,enableAutomaticLinkExtraction:i,overrideMemoryLimit:a}]).then((e=>e)).catch((e=>{throw this._isLoading=!1,this.destroy(),e}))),this._initPromise)}load(e,t,n){let{mainThreadOrigin:r,customFonts:i,dynamicFonts:a,productId:s,featureFlags:l}=n;return(0,o.V1)(!this._hasOpenedDocument,"cannot invoke `load` while an instance is still in use. Please call `recycle` first."),this._loadPromise||(this._loadPromise=this._sendRequest("load",[e,t,{mainThreadOrigin:r,customFonts:i,dynamicFonts:a,productId:s,featureFlags:l}]).then((e=>(this._isLoading=!1,e))).catch((e=>{throw this._isLoading=!1,this.workerSpawner?.terminate(),e}))),this._loadPromise}corePBProtoBridge(e,t,n){return this._assertLoaded(),this._sendRequest("corePBProtoBridge",[e,t,n])}deleteFile(e){return this._assertLoaded(),this._sendRequest("deleteFile",[e])}version(){return this._assertLoaded(),this._sendRequest("version")}writeFile(e,t){return this._assertLoaded(),this._sendRequest("writeFile",[e,t])}readFile(e){return this._assertLoaded(),this._sendRequest("readFile",[e])}openDocument(e,t){return this._assertLoaded(),this._hasOpenedDocument=!0,this._sendRequest("openDocument",[e,t]).catch((e=>{throw this._hasOpenedDocument=!1,e}))}openCreateFilePathDocument(e){return this._assertLoaded(),this._hasOpenedDocument=!0,this._sendRequest("openCreateFilePathDocument",[e]).catch((e=>{throw this._hasOpenedDocument=!1,e}))}async getMeasurementScales(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getMeasurementScales")}async removeMeasurementScale(e){return this._sendRequest("removeMeasurementScale",[e])}async addMeasurementScale(e){return await this._sendRequest("addMeasurementScale",[e])}async getAnnotationsByScale(e){return await this._sendRequest("getAnnotationsByScale",[e])}async openDocumentAt(){throw new Error("Should never be called")}async getAllPageInfos(e){return this._assertLoaded(),this._sendRequest("getAllPageInfos",[e])}async enablePDFJavaScriptSupport(){return this._assertLoaded(),this._sendRequest("enablePDFJavaScriptSupport")}async runPDFFormattingScripts(e,t){return this._assertLoaded(),this._sendRequest("runPDFFormattingScripts",[e,t])}async getSuggestedLineHeightFactor(e,t){return this._assertLoaded(),this._sendRequest("getSuggestedLineHeightFactor",[e,t])}async getAvailableFontFaces(e){return this._assertLoaded(),this._sendRequest("getAvailableFontFaces",[e])}async setFontSubstitutions(e){return this._assertLoaded(),this._sendRequest("setFontSubstitutions",[e])}getBookmarks(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getBookmarks")}getFormJSON(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getFormJSON")}evalFormValuesActions(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("evalFormValuesActions",[e])}evalScript(e,t,n){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("evalScript",[e,t,n])}setFormJSONUpdateBatchMode(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("setFormJSONUpdateBatchMode",[e])}getFormValues(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getFormValues")}closeDocument(){return this._assertLoaded(),this._hasOpenedDocument=!1,this._sendRequest("closeDocument")}renderAnnotation(e,t,n,r,o,i){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("renderAnnotation",[e,t,n,r,o,i])}renderPageAnnotations(e,t,n,r,o){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("renderPageAnnotations",[e,t,n,r,o])}renderDetachedAnnotation(e,t,n,r,o){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("renderDetachedAnnotation",[e,t,n,r,o])}onKeystrokeEvent(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("onKeystrokeEvent",[e])}getAttachment(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getAttachment",[e])}annotationsForPageIndex(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("annotationsForPageIndex",[e])}getTabOrder(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getTabOrder",[e])}setTabOrder(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("setTabOrder",[e,t])}createAnnotation(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("createAnnotation",[e,t])}updateAnnotation(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("updateAnnotation",[e])}deleteAnnotation(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("deleteAnnotation",[e])}createFormField(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("createFormField",[e,t])}updateFormField(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("updateFormField",[e,t])}deleteFormField(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("deleteFormField",[e])}setFormFieldValue(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("setFormFieldValue",[e])}deleteFormFieldValue(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("deleteFormFieldValue",[e])}createBookmark(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("createBookmark",[e])}updateBookmark(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("updateBookmark",[e])}deleteBookmark(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("deleteBookmark",[e])}setDocumentOutline(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("setDocumentOutline",[e])}getTextFromRects(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getTextFromRects",[e,t])}getClosestSnapPoint(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getClosestSnapPoint",[e,t])}configureSnapper(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("configureSnapper",[e])}search(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:i.n.TEXT;return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("search",[e,t,n,r,o])}getSecondaryMeasurementUnit(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getSecondaryMeasurementUnit",[])}setSecondaryMeasurementUnit(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("setSecondaryMeasurementUnit",[e])}getMeasurementSnappingPoints(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getMeasurementSnappingPoints",[e])}parseXFDF(e,t){return this._sendRequest("parseXFDF",[e,t])}getEmbeddedFilesList(){return this._sendRequest("getEmbeddedFilesList")}exportFile(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"pdf",o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0;return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("exportFile",[e,t,n,r,o,i,a,s])}importXFDF(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("importXFDF",[e,t,n])}exportXFDF(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("exportXFDF",[e])}importInstantJSON(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("importInstantJSON",[e])}exportInstantJSON(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("exportInstantJSON",[e])}getDocumentOutline(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getDocumentOutline")}getPageGlyphs(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getPageGlyphs",[e])}applyOperations(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("applyOperations",[e,t])}reloadDocument(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("reloadDocument")}exportPDFWithOperations(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("exportPDFWithOperations",[e,t])}loadCertificates(e){return this._assertLoaded(),this._assertDocumentOpen(),this._hasLoadedCertificates=Boolean(e.length),this._sendRequest("loadCertificates",[e]).catch((e=>{throw this._hasLoadedCertificates=!1,e}))}getSignaturesInfo(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getSignaturesInfo",[])}getComments(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getComments",[])}applyComments(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("applyComments",[e])}prepareSign(e,t,n,r,o,i){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("prepareSign",[e,t,n,r,o,i])}getTimestampRequest(e,t){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getTimestampRequest",[e,t])}getRevocationRequests(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getRevocationRequests",[e])}setSignaturesLTV(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("setSignaturesLTV",[e])}sign(e,t,n,r,o,i,a,s,l){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("sign",[e,t,n,r,o,i,a,s,l])}restoreToOriginalState(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("restoreToOriginalState")}applyRedactions(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("applyRedactions",[])}readFormJSONObjects(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("readFormJSONObjects")}clearAPStreamCache(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("clearAPStreamCache")}setComparisonDocument(e,t){return this._assertLoaded(),t||this._assertDocumentOpen(),this._sendRequest("setComparisonDocument",[e,t])}openComparisonDocument(e){return this._assertLoaded(),this._hasOpenedDocument=!0,this._sendRequest("openComparisonDocument",[e]).catch((e=>{throw this._hasOpenedDocument=!1,e}))}documentCompareAndOpen(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("documentCompareAndOpen",[e])}persistOpenDocument(e){return this._assertLoaded(),e||this._assertDocumentOpen(),this._sendRequest("persistOpenDocument",[e])}cleanupDocumentComparison(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("cleanupDocumentComparison")}getOCGs(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getOCGs",[])}getOCGVisibilityState(){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("getOCGVisibilityState",[])}setOCGVisibilityState(e){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("setOCGVisibilityState",[e])}updateButtonIcon(e,t,n){return this._assertLoaded(),this._assertDocumentOpen(),this._sendRequest("updateButtonIcon",[e,t,n])}dispatchCommand(e){return this._assertLoaded(),this._sendRequest("dispatchCommand",[e])}recycle(){this._hasLoadedCertificates&&this.loadCertificates([]),this._hasOpenedDocument&&this.closeDocument(),this._isLoading||this._requests.forEach(((e,t)=>{this._requests.set(t,{resolve:a,reject:a})}))}destroy(){this._loadPromise=null,this.workerSpawner?.terminate()}_assertLoaded(){if(this._isLoading)throw new o.uE("CoreClient not yet initialized")}_assertDocumentOpen(){if(!this._hasOpenedDocument)throw new o.uE("This method can not be called since there is no open document. Have you run PSPDFKit.unload()?")}openFile(e,t){return this._assertLoaded(),this._sendRequest("openFile",[e,t])}closeFile(e){return this._assertLoaded(),this._sendRequest("closeFile",[e])}writeData(e,t,n){return this._assertLoaded(),this._sendRequest("writeData",[e,t,n])}async renderLinearized(e){return this._assertLoaded(),this._sendRequest("renderLinearized",[e])}_sendRequest(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];(0,o.V1)(this.workerSpawner,"CoreClient has been destroyed");const n=this.workerSpawner;return new Promise(((r,o)=>{const i=this._assignId(),a=[...t].filter((e=>e instanceof ArrayBuffer));n.postMessage({id:i,action:e,args:t},a),this._requests=this._requests.set(i,{resolve:r,reject:o})}))}_assignId(){const e=this._nextRequestId;return this._nextRequestId=this._nextRequestId+1,e}getCoreCallRecording(){return this._assertLoaded(),this._sendRequest("getCoreCallRecording")}enableCoreCallRecording(e){return this._assertLoaded(),this._sendRequest("enableCoreCallRecording",[e])}}class l{constructor(e){(0,r.A)(this,"size",1),(0,r.A)(this,"_freeObjects",[]),this._constructor=e}checkOut(){let e;return e=this._freeObjects.length>0?this._freeObjects.shift():new this._constructor,{object:e,checkIn:()=>{this._freeObjects.length>=this.size?e.destroy():(e.recycle(),this._freeObjects.push(e))}}}}n(80018),n(34551),n(95920),n(41211);var c=n(55480),u=n.n(c);let d;d="object"==typeof process&&"object"==typeof process.versions&&void 0!==process.versions.node?u():function(e){return"object"==typeof window?new Promise(((t,n)=>{const r=document.createElement("script");r.type="text/javascript",r.async=!0,r.onload=()=>t(window.PSPDFModuleInit),r.onerror=n,r.src=e;const{documentElement:i}=document;(0,o.V1)(i),i.appendChild(r)})):(self.importScripts(e),Promise.resolve(self.PSPDFModuleInit))};n(93564),n(59924),n(37361);var p=n(68322);n(83647);n(25030),n(9627),n(41204);const h="/create.pdf";new Set;new Set;p.v.Maui_iOS,p.v.Maui_Android,p.v.Maui_MacCatalyst,p.v.Maui_Windows,p.v.FlutterForWeb;const f=async function(){let e;if(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]){const{default:t}=await n.e(329).then(n.bind(n,11005));e=new t}else e=new Worker(new URL(n.p+n.u(249),n.b));return{setMessageHandler(t){(0,o.V1)(e,"Worker is null"),e.onmessage=t},postMessage(t,n){e?.postMessage(t,n)},terminate(){e?.terminate(),e=null}}}},25030:(e,t,n)=>{"use strict";n.d(t,{sw:()=>o});var r=n(85409);async function o(e){const t=(await async function(e){try{const t=await fetch(e).catch((t=>{throw new r.uE(`Error fetching dynamic fonts file ${e}. ${t}`)}));if(200!==t.status)throw new r.uE(`Error fetching dynamic fonts file ${e}. Status code: ${t.status}`);return t}catch(e){throw e}}(e)).json().catch((t=>{throw new r.uE(`Error parsing dynamic fonts file ${e}. ${t}`)}));return t}},45646:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var r=n(49568),o=n(85409);function i(){return!0}class a{constructor(e){this.queue=(0,r.uY)(),this.priorityQueue=(0,r.uY)(),this.inFlightRequests=(0,r.T5)(),this.inflightRequestLimit=e,this.isDestroyed=!1}enqueue(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.isDestroyed)return{promise:new Promise((()=>{})),cancel:()=>{}};let n=null,o=null;const i=new Promise(((e,t)=>{n=e,o=t})),a=t?this.priorityQueue:this.queue,s=(0,r.hZ)(a,e,{promise:i,resolve:n,reject:o});return t?this.priorityQueue=s:this.queue=s,t?this.next():setTimeout((()=>this.next()),35),{promise:i,cancel:()=>this._cancel(e)}}_cancel(e){this.queue.has(e)&&(this.queue=this.queue.delete(e)),this.priorityQueue.has(e)&&(this.priorityQueue=this.priorityQueue.delete(e)),this.inFlightRequests.has(e)&&(this.inFlightRequests=this.inFlightRequests.delete(e))}cancelAll(){this.queue=(0,r.uY)(),this.priorityQueue=(0,r.uY)(),this.inFlightRequests=(0,r.T5)()}cancel(e){const t=(t,n)=>e(n);this.queue=this.queue.filter(t),this.priorityQueue=this.priorityQueue.filter(t),this.inFlightRequests=this.inFlightRequests.filter(t)}_requestFinished(e,t){if(this.isDestroyed)return;const n=this.inFlightRequests.get(e);n&&(n.resolve(t),this.inFlightRequests=this.inFlightRequests.delete(e)),this.next()}_requestFailed(e,t){if(this.isDestroyed)return;const n=this.inFlightRequests.get(e);n&&(n.reject(t),this.inFlightRequests=this.inFlightRequests.delete(e)),this.next()}next(){if(!(this.isDestroyed||this.inFlightRequests.size>=this.inflightRequestLimit)){if(this.priorityQueue.size>=1){const e=this.priorityQueue.findLastEntry(i);(0,o.V1)(e);const[t,n]=e;return this.priorityQueue=this.priorityQueue.delete(t),this.inFlightRequests=this.inFlightRequests.set(t,n),void t.request().then((e=>this._requestFinished(t,e))).catch((e=>this._requestFailed(t,e)))}if(this.queue.size>=1){const e=this.queue.findEntry(i);(0,o.V1)(e);const[t,n]=e;this.queue=this.queue.delete(t),this.inFlightRequests=this.inFlightRequests.set(t,n),t.request().then((e=>this._requestFinished(t,e))).catch((e=>this._requestFailed(t,e)))}}}destroy(){this.isDestroyed=!0}}},63211:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(67136);class o{constructor(e){(0,r.A)(this,"_subscriptions",new Set),this._state=e}getState(){return this._state}setState(e){this._state="function"==typeof e?e(this._state):e;for(const e of this._subscriptions)e(this._state)}subscribe(e){return this._subscriptions.add(e),()=>this.unsubscribe(e)}unsubscribe(e){this._subscriptions.delete(e)}}},98006:(e,t,n)=>{"use strict";n.d(t,{$:()=>i,A:()=>o});const r=function e(t){let n;return n=t instanceof Error?t:new Error(t),Object.setPrototypeOf(n,e.prototype),n};r.prototype=Object.create(Error.prototype,{name:{value:"PSPDFKitError",enumerable:!1}});const o=r;function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t=>new r(""===e?t:`${e}: ${t}`)}},37748:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=e=>{throw new Error("")}},74109:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,P:()=>i});const r={keys:[]};function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;if(n={keys:null!=n?.keys?n.keys:r.keys},Object.is(e,t))return[];let o=n.keys||[];if(0===o.length){o=[...new Set(Object.keys(e).concat(Object.keys(t)))]}return o.filter((n=>e[n]!==t[n])).map((n=>({key:n,previous:e[n],current:t[n]})))}function i(e){return e.map((e=>{let{key:t,previous:n,current:r}=e;return`- ${t} was previously ${n}, but is now ${r}`})).join("\n")}},74715:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(2===t.length)return i(t[0],t[1])||null;return t.slice(1).reduce(((e,t)=>i(e,t)),t[0])||null}n.d(t,{A:()=>r});const o=new WeakMap;function i(e,t){if(e&&t){const n=o.get(e)||new WeakMap;o.set(e,n);const r=n.get(t)||(n=>{a(e,n),a(t,n)});return n.set(t,r),r}return e||t}function a(e,t){"function"==typeof e?e(t):e.current=t}},97444:(e,t,n)=>{"use strict";function r(e){a(e)}function o(e,t,n){if(n)return r(`The API ${e} has been deprecated and will be removed in the next major release. Please use ${t} instead. Please go to https://www.nutrient.io/api/web/ for more informations`);r(`The function ${e} was deprecated and will be removed in future version. Please use ${t} instead.`)}function i(e){console.log(e)}function a(){console.warn(...arguments)}function s(e){console.error(e)}function l(){console.info(...arguments)}n.d(t,{R8:()=>a,Rm:()=>i,eO:()=>o,pq:()=>l,t6:()=>r,z3:()=>s})},97595:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});const r=">=1.4"},93476:(e,t,n)=>{"use strict";n.d(t,{dV:()=>r,iq:()=>o});const r=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");function o(e){return Array.prototype.filter.call(e.querySelectorAll(r),(e=>!(e.inert||e.hasAttribute("inert")||"-1"===e.getAttribute("tabindex")||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))))}},85409:(e,t,n)=>{"use strict";n.d(t,{$5:()=>o.$,$y:()=>h.Y,B6:()=>d.B,GQ:()=>i.A,PQ:()=>l.P,Qd:()=>a.A,R8:()=>u.R8,Rm:()=>u.Rm,S7:()=>c.S,V1:()=>r.A,V7:()=>m.V,Wj:()=>s.A,eO:()=>u.eO,pQ:()=>f.p,pq:()=>u.pq,t6:()=>u.t6,tE:()=>p.A,uE:()=>o.A,xz:()=>l.A,yj:()=>h.A,z3:()=>u.z3});var r=n(94701),o=n(98006),i=n(37748),a=n(61206),s=n(28918),l=n(74109),c=n(59406),u=n(97444),d=n(40249),p=(n(93476),n(72162),n(63211),n(74715)),h=n(60976),f=n(11203),m=n(9123);n(21169),n(97595)},94701:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(98006);function o(e,t){if(!e)throw new r.A(`Assertion failed: ${t||"Condition not met"}\n\nFor further assistance, please go to: https://pspdfkit.com/support/request`)}},40249:(e,t,n)=>{"use strict";function r(e){return"true"===e.contentEditable||"INPUT"===e.tagName||"TEXTAREA"===e.tagName}n.d(t,{B:()=>r})},61206:(e,t,n)=>{"use strict";function r(e){return"[object Object]"===Object.prototype.toString.call(e)}n.d(t,{A:()=>r})},28918:(e,t,n)=>{"use strict";function r(e){const t=new MessageChannel;try{t.port1.postMessage(e)}catch(e){return!1}return!0}n.d(t,{A:()=>r})},72162:(e,t,n)=>{"use strict";n.d(t,{E1:()=>l,I4:()=>v,IA:()=>g,JG:()=>b,P_:()=>i,Qm:()=>p,Vn:()=>h,WJ:()=>a,WM:()=>o,Wu:()=>s,XS:()=>c,gV:()=>m,hH:()=>d,jE:()=>f,lK:()=>w,qN:()=>y,u:()=>u,uD:()=>r});const r=48,o=70,i=71,a=80,s=90,l=13,c=27,u=32,d=34,p=33,h=37,f=38,m=39,g=40,v=187,y=189,b=8,w=9},9123:(e,t,n)=>{"use strict";function r(e){return null!=e}n.d(t,{V:()=>r})},59406:(e,t,n)=>{"use strict";function r(e){alert(e)}n.d(t,{S:()=>r})},11203:(e,t,n)=>{"use strict";function r(e,t){if(t.caretRangeFromPoint)return t.caretRangeFromPoint(e.x,e.y);if("caretPositionFromPoint"in t&&"function"==typeof t.caretPositionFromPoint){const n=t.caretPositionFromPoint(e.x,e.y),r=t.createRange();return r.setStart(n.offsetNode,n.offset),r.setEnd(n.offsetNode,n.offset),r}}n.d(t,{p:()=>r})},21169:()=>{},60976:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,Y:()=>i});var r=n(94701);function o(e){(0,r.A)("object"==typeof e&&null!==e,"instantJSON must be an Object"),(0,r.A)("https://pspdfkit.com/instant-json/v1"===e.format,"instantJSON has an invalid format, please use 'https://pspdfkit.com/instant-json/v1");const{pdfId:t}=e;t&&(0,r.A)("object"==typeof t&&null!==t&&("string"==typeof t.permanent&&"string"==typeof t.changing||"string"!=typeof t.permanent&&"string"!=typeof t.changing),"instantJSON has an invalid pdfId"),(0,r.A)(void 0===e.skippedPdfObjectIds||Array.isArray(e.skippedPdfObjectIds),"instantJSON has invalid skippedPdfObjectIds"),(0,r.A)(void 0===e.annotations||Array.isArray(e.annotations)&&e.annotations.every((e=>"object"==typeof e&&null!==e)),"instantJSON has invalid annotations"),(0,r.A)(void 0===e.formFieldValues||Array.isArray(e.formFieldValues)&&e.formFieldValues.every((e=>"object"==typeof e&&null!==e)),"instantJSON has invalid form field values"),(0,r.A)(void 0===e.skippedPdfBookmarkIds||Array.isArray(e.skippedPdfBookmarkIds),"instantJSON has invalid skippedPdfBookmarkIds"),(0,r.A)(void 0===e.bookmarks||Array.isArray(e.bookmarks)&&e.bookmarks.every((e=>"object"==typeof e&&null!==e)),"instantJSON has invalid bookmarks")}function i(e){const t={};return Object.keys(e).forEach((n=>{Array.isArray(e[n])?t[n]=e[n].filter(Boolean):"object"==typeof e[n]&&null!==e[n]?t[n]=i(e[n]):t[n]=e[n]})),t}},41294:(e,t,n)=>{"use strict";n.d(t,{$n:()=>d,e2:()=>p,pe:()=>st,PY:()=>Qt,so:()=>Ln,lT:()=>ht,XA:()=>pt,gJ:()=>Nt,aF:()=>At,ke:()=>jt,z6:()=>Gt,ks:()=>$t,s6:()=>_t,Dl:()=>r});var r={};n.r(r),n.d(r,{applyStyle:()=>Tn,cssStringToObject:()=>un,deserialize:()=>ln,escapeHtml:()=>sn,getComputedStyleAll:()=>kn,getInnerHTML:()=>vn,getLastNCharacters:()=>wn,getSelectedNodesColor:()=>zn,getStyleString:()=>dn,getText:()=>fn,getWrapperTags:()=>gn,isAtStartOfWordOrText:()=>xn,isMarkActive:()=>pn,isRangeSelected:()=>bn,isSelectionUnderlined:()=>In,parseHTML:()=>mn,prepareHTML:()=>yn,serialize:()=>cn,setStyleOrToggleFormat:()=>_n,toHex:()=>Cn,toggleMark:()=>hn,unwrapNode:()=>Dn,wrapNode:()=>An});var o=n(96540),i=n.t(o,2),a=n(45242),s=n.n(a),l=n(50843),c=n.n(l),u=n(74848);const d=e=>{const{className:t,disabled:n,inverted:r,primary:o,danger:i,type:a,...l}=e,d=s()({[c().general]:!0,[c().default]:!o,[c().primary]:o,[c().danger]:i,[c().disabled]:n,[c().inverted]:!n&&r},t);return(0,u.jsx)("button",{...l,className:d,disabled:n,type:a||"button"})},p=e=>{const{className:t,children:n,align:r,style:i}=e;let a=null;return(0,u.jsx)("div",{className:s()(c().group,"start"===r&&c().groupAlignStart,"end"===r&&c().groupAlignEnd,t),style:i,children:o.Children.map(n,(e=>e?a?(a=e,(0,u.jsxs)(o.Fragment,{children:[(0,u.jsx)("div",{className:c().groupSpacer}),e]})):(a=e,e):null))})};function h(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function f(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function m(e){f(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function g(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}Math.pow(10,8);function v(e){f(1,arguments);var t=m(e);return!isNaN(t)}var y={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function b(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const w={date:b({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:b({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:b({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var x={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function S(e){return function(t,n){var r,o=n||{};if("formatting"===(o.context?String(o.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=o.width?String(o.width):i;r=e.formattingValues[a]||e.formattingValues[i]}else{var s=e.defaultWidth,l=o.width?String(o.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const _={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:S({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:S({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:S({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:S({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:S({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function C(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(c):c,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var E,k={ordinalNumber:(E={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(E.matchPattern);if(!n)return null;var r=n[0],o=e.match(E.parsePattern);if(!o)return null;var i=E.valueCallback?E.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:C({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:C({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:C({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:C({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:C({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var z={code:"en-US",formatDistance:function(e,t,n){var r;return n=n||{},r="string"==typeof y[e]?y[e]:1===t?y[e].one:y[e].other.replace("{{count}}",t),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r},formatLong:w,formatRelative:function(e,t,n,r){return x[e]},localize:_,match:k,options:{weekStartsOn:0,firstWeekContainsDate:1}};const P=z;function A(e,t){return f(2,arguments),function(e,t){f(2,arguments);var n=m(e).getTime(),r=h(t);return new Date(n+r)}(e,-h(t))}function D(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var T={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return D("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):D(n+1,2)},d:function(e,t){return D(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return D(e.getUTCHours()%12||12,t.length)},H:function(e,t){return D(e.getUTCHours(),t.length)},m:function(e,t){return D(e.getUTCMinutes(),t.length)},s:function(e,t){return D(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return D(Math.floor(r*Math.pow(10,n-3)),t.length)}};const I=T;function M(e){f(1,arguments);var t=m(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function N(e){f(1,arguments);var t=m(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=M(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=M(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function O(e){f(1,arguments);var t=m(e),n=M(t).getTime()-function(e){f(1,arguments);var t=N(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),M(n)}(t).getTime();return Math.round(n/6048e5)+1}function R(e,t){f(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,i=null==o?0:h(o),a=null==n.weekStartsOn?i:h(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=m(e),l=s.getUTCDay(),c=(l<a?7:0)+l-a;return s.setUTCDate(s.getUTCDate()-c),s.setUTCHours(0,0,0,0),s}function j(e,t){f(1,arguments);var n=m(e,t),r=n.getUTCFullYear(),o=t||{},i=o.locale,a=i&&i.options&&i.options.firstWeekContainsDate,s=null==a?1:h(a),l=null==o.firstWeekContainsDate?s:h(o.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(r+1,0,l),c.setUTCHours(0,0,0,0);var u=R(c,t),d=new Date(0);d.setUTCFullYear(r,0,l),d.setUTCHours(0,0,0,0);var p=R(d,t);return n.getTime()>=u.getTime()?r+1:n.getTime()>=p.getTime()?r:r-1}function F(e,t){f(1,arguments);var n=m(e),r=R(n,t).getTime()-function(e,t){f(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.firstWeekContainsDate,i=null==o?1:h(o),a=null==n.firstWeekContainsDate?i:h(n.firstWeekContainsDate),s=j(e,t),l=new Date(0);return l.setUTCFullYear(s,0,a),l.setUTCHours(0,0,0,0),R(l,t)}(n,t).getTime();return Math.round(r/6048e5)+1}var B="midnight",L="noon",V="morning",K="afternoon",H="evening",$="night",U={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return I.y(e,t)},Y:function(e,t,n,r){var o=j(e,r),i=o>0?o:1-o;return"YY"===t?D(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):D(i,t.length)},R:function(e,t){return D(N(e),t.length)},u:function(e,t){return D(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return D(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return D(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return I.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return D(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=F(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):D(o,t.length)},I:function(e,t,n){var r=O(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):D(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):I.d(e,t)},D:function(e,t,n){var r=function(e){f(1,arguments);var t=m(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):D(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return D(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return D(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return D(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?L:0===o?B:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?H:o>=12?K:o>=4?V:$,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return I.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):I.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):D(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):D(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):I.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):I.s(e,t)},S:function(e,t){return I.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return q(o);case"XXXX":case"XX":return G(o);default:return G(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return q(o);case"xxxx":case"xx":return G(o);default:return G(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+W(o,":");default:return"GMT"+G(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+W(o,":");default:return"GMT"+G(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return D(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return D((r._originalDate||e).getTime(),t.length)}};function W(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+D(i,2)}function q(e,t){return e%60==0?(e>0?"-":"+")+D(Math.abs(e)/60,2):G(e,t)}function G(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+D(Math.floor(o/60),2)+n+D(o%60,2)}const Z=U;function Y(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function X(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var J={p:X,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),o=r[1],i=r[2];if(!i)return Y(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",Y(o,t)).replace("{{time}}",X(i,t))}};const Q=J;var ee=["D","DD"],te=["YY","YYYY"];function ne(e){return-1!==ee.indexOf(e)}function re(e){return-1!==te.indexOf(e)}function oe(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var ie=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ae=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,se=/^'([^]*?)'?$/,le=/''/g,ce=/[a-zA-Z]/;function ue(e,t,n){f(2,arguments);var r=String(t),o=n||{},i=o.locale||P,a=i.options&&i.options.firstWeekContainsDate,s=null==a?1:h(a),l=null==o.firstWeekContainsDate?s:h(o.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=i.options&&i.options.weekStartsOn,u=null==c?0:h(c),d=null==o.weekStartsOn?u:h(o.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!i.localize)throw new RangeError("locale must contain localize property");if(!i.formatLong)throw new RangeError("locale must contain formatLong property");var p=m(e);if(!v(p))throw new RangeError("Invalid time value");var y=A(p,g(p)),b={firstWeekContainsDate:l,weekStartsOn:d,locale:i,_originalDate:p};return r.match(ae).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Q[t])(e,i.formatLong,b):e})).join("").match(ie).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return n.match(se)[1].replace(le,"'");var a=Z[r];if(a)return!o.useAdditionalWeekYearTokens&&re(n)&&oe(n,t,e),!o.useAdditionalDayOfYearTokens&&ne(n)&&oe(n,t,e),a(y,n,i.localize,b);if(r.match(ce))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("")}function de(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function pe(e,t,n){f(2,arguments);var r=n||{},o=r.locale,i=o&&o.options&&o.options.weekStartsOn,a=null==i?0:h(i),s=null==r.weekStartsOn?a:h(r.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=m(e),c=h(t),u=((c%7+7)%7<s?7:0)+c-l.getUTCDay();return l.setUTCDate(l.getUTCDate()+u),l}var he=/^(1[0-2]|0?\d)/,fe=/^(3[0-1]|[0-2]?\d)/,me=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,ge=/^(5[0-3]|[0-4]?\d)/,ve=/^(2[0-3]|[0-1]?\d)/,ye=/^(2[0-4]|[0-1]?\d)/,be=/^(1[0-1]|0?\d)/,we=/^(1[0-2]|0?\d)/,xe=/^[0-5]?\d/,Se=/^[0-5]?\d/,_e=/^\d/,Ce=/^\d{1,2}/,Ee=/^\d{1,3}/,ke=/^\d{1,4}/,ze=/^-?\d+/,Pe=/^-?\d/,Ae=/^-?\d{1,2}/,De=/^-?\d{1,3}/,Te=/^-?\d{1,4}/,Ie=/^([+-])(\d{2})(\d{2})?|Z/,Me=/^([+-])(\d{2})(\d{2})|Z/,Ne=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Oe=/^([+-])(\d{2}):(\d{2})|Z/,Re=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function je(e,t,n){var r=t.match(e);if(!r)return null;var o=parseInt(r[0],10);return{value:n?n(o):o,rest:t.slice(r[0].length)}}function Fe(e,t){var n=t.match(e);return n?"Z"===n[0]?{value:0,rest:t.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:t.slice(n[0].length)}:null}function Be(e,t){return je(ze,e,t)}function Le(e,t,n){switch(e){case 1:return je(_e,t,n);case 2:return je(Ce,t,n);case 3:return je(Ee,t,n);case 4:return je(ke,t,n);default:return je(new RegExp("^\\d{1,"+e+"}"),t,n)}}function Ve(e,t,n){switch(e){case 1:return je(Pe,t,n);case 2:return je(Ae,t,n);case 3:return je(De,t,n);case 4:return je(Te,t,n);default:return je(new RegExp("^-?\\d{1,"+e+"}"),t,n)}}function Ke(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function He(e,t){var n,r=t>0,o=r?t:1-t;if(o<=50)n=e||100;else{var i=o+50;n=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return r?n:1-n}var $e=[31,28,31,30,31,30,31,31,30,31,30,31],Ue=[31,29,31,30,31,30,31,31,30,31,30,31];function We(e){return e%400==0||e%4==0&&e%100!=0}var qe={G:{priority:140,parse:function(e,t,n,r){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,r){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,n,r){var o=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return Le(4,e,o);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:o});default:return Le(t.length,e,o)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var o=e.getUTCFullYear();if(n.isTwoDigitYear){var i=He(n.year,o);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,n,r){var o=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return Le(4,e,o);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:o});default:return Le(t.length,e,o)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var o=j(e,r);if(n.isTwoDigitYear){var i=He(n.year,o);return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),R(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),R(e,r)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,n,r){return Ve("R"===t?4:t.length,e)},set:function(e,t,n,r){var o=new Date(0);return o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0),M(o)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,n,r){return Ve("u"===t?4:t.length,e)},set:function(e,t,n,r){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,n,r){switch(t){case"Q":case"QQ":return Le(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,n,r){switch(t){case"q":case"qq":return Le(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,n,r){var o=function(e){return e-1};switch(t){case"M":return je(he,e,o);case"MM":return Le(2,e,o);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:o});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,n,r){var o=function(e){return e-1};switch(t){case"L":return je(he,e,o);case"LL":return Le(2,e,o);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:o});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,n,r){switch(t){case"w":return je(ge,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Le(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return R(function(e,t,n){f(2,arguments);var r=m(e),o=h(t),i=F(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*i),r}(e,n,r),r)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,n,r){switch(t){case"I":return je(ge,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Le(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return M(function(e,t){f(2,arguments);var n=m(e),r=h(t),o=O(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n,r),r)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(e,t,n,r){switch(t){case"d":return je(fe,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Le(t.length,e)}},validate:function(e,t,n){var r=We(e.getUTCFullYear()),o=e.getUTCMonth();return r?t>=1&&t<=Ue[o]:t>=1&&t<=$e[o]},set:function(e,t,n,r){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(e,t,n,r){switch(t){case"D":case"DD":return je(me,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Le(t.length,e)}},validate:function(e,t,n){return We(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,r){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,n,r){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=pe(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return Le(t.length,e,o);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:o});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=pe(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return Le(t.length,e,o);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:o});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=pe(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,n,r){var o=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return Le(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:o})||n.day(e,{width:"short",context:"formatting",valueCallback:o})||n.day(e,{width:"narrow",context:"formatting",valueCallback:o});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:o});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:o})||n.day(e,{width:"narrow",context:"formatting",valueCallback:o});default:return n.day(e,{width:"wide",context:"formatting",valueCallback:o})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:o})||n.day(e,{width:"short",context:"formatting",valueCallback:o})||n.day(e,{width:"narrow",context:"formatting",valueCallback:o})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,r){return e=function(e,t){f(2,arguments);var n=h(t);n%7==0&&(n-=7);var r=m(e),o=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+o),r}(e,n,r),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,t,n,r){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(Ke(n),0,0,0),e},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(e,t,n,r){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(Ke(n),0,0,0),e},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(e,t,n,r){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(Ke(n),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,n,r){switch(t){case"h":return je(we,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Le(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=12},set:function(e,t,n,r){var o=e.getUTCHours()>=12;return o&&n<12?e.setUTCHours(n+12,0,0,0):o||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,n,r){switch(t){case"H":return je(ve,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Le(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,r){return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,n,r){switch(t){case"K":return je(be,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Le(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(e,t,n,r){switch(t){case"k":return je(ye,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Le(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,r){var o=n<=24?n%24:n;return e.setUTCHours(o,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,n,r){switch(t){case"m":return je(xe,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Le(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCMinutes(n,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,n,r){switch(t){case"s":return je(Se,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Le(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCSeconds(n,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,n,r){return Le(t.length,e,(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))},set:function(e,t,n,r){return e.setUTCMilliseconds(n),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,n,r){switch(t){case"X":return Fe(Ie,e);case"XX":return Fe(Me,e);case"XXXX":return Fe(Ne,e);case"XXXXX":return Fe(Re,e);default:return Fe(Oe,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,n,r){switch(t){case"x":return Fe(Ie,e);case"xx":return Fe(Me,e);case"xxxx":return Fe(Ne,e);case"xxxxx":return Fe(Re,e);default:return Fe(Oe,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,n,r){return Be(e)},set:function(e,t,n,r){return[new Date(1e3*n),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,n,r){return Be(e)},set:function(e,t,n,r){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}};const Ge=qe;var Ze=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ye=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Xe=/^'([^]*?)'?$/,Je=/''/g,Qe=/\S/,et=/[a-zA-Z]/;function tt(e,t,n,r){f(3,arguments);var o=String(e),i=String(t),a=r||{},s=a.locale||P;if(!s.match)throw new RangeError("locale must contain match property");var l=s.options&&s.options.firstWeekContainsDate,c=null==l?1:h(l),u=null==a.firstWeekContainsDate?c:h(a.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=s.options&&s.options.weekStartsOn,p=null==d?0:h(d),v=null==a.weekStartsOn?p:h(a.weekStartsOn);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===i)return""===o?m(n):new Date(NaN);var y,b={firstWeekContainsDate:u,weekStartsOn:v,locale:s},w=[{priority:10,subPriority:-1,set:nt,index:0}],x=i.match(Ye).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Q[t])(e,s.formatLong,b):e})).join("").match(Ze),S=[];for(y=0;y<x.length;y++){var _=x[y];!a.useAdditionalWeekYearTokens&&re(_)&&oe(_,i,e),!a.useAdditionalDayOfYearTokens&&ne(_)&&oe(_,i,e);var C=_[0],E=Ge[C];if(E){var k=E.incompatibleTokens;if(Array.isArray(k)){for(var z=void 0,D=0;D<S.length;D++){var T=S[D].token;if(-1!==k.indexOf(T)||T===C){z=S[D];break}}if(z)throw new RangeError("The format string mustn't contain `".concat(z.fullToken,"` and `").concat(_,"` at the same time"))}else if("*"===E.incompatibleTokens&&S.length)throw new RangeError("The format string mustn't contain `".concat(_,"` and any other token at the same time"));S.push({token:C,fullToken:_});var I=E.parse(o,_,s.match,b);if(!I)return new Date(NaN);w.push({priority:E.priority,subPriority:E.subPriority||0,set:E.set,validate:E.validate,value:I.value,index:w.length}),o=I.rest}else{if(C.match(et))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");if("''"===_?_="'":"'"===C&&(_=_.match(Xe)[1].replace(Je,"'")),0!==o.indexOf(_))return new Date(NaN);o=o.slice(_.length)}}if(o.length>0&&Qe.test(o))return new Date(NaN);var M=w.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return w.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),N=m(n);if(isNaN(N))return new Date(NaN);var O=A(N,g(N)),R={};for(y=0;y<M.length;y++){var j=M[y];if(j.validate&&!j.validate(O,j.value,b))return new Date(NaN);var F=j.set(O,R,j.value,b);F[0]?(O=F[0],de(R,F[1])):O=F}return O}function nt(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}var rt=n(43100),ot=n.n(rt),it=n(9627);const at={date:"yyyy-MM-dd",time:"HH:mm","datetime-local":"yyyy-MM-dd'T'HH:mm"},st=o.forwardRef(((e,t)=>{const[n,r]=o.useState(),[i,a]=o.useState(),l=o.useCallback((e=>{r(e)}),[]),c=o.useCallback((e=>{a(e)}),[]),d=e.format.split("").map((e=>{switch(e){case"m":return"M";case"M":return"m"}return e})).join("");o.useEffect((()=>{if(n&&i&&n.value!==i.value){const t=tt(n.value,d,new Date);v(t)?i.value=ue(t,at[e.type]):i.value=""}}),[n,i,e.type,d]);const[p,h]=o.useState(!1);o.useImperativeHandle(t,(()=>n),[n]);const f=it.H8||it.HQ||"date"===e.type,m=t=>{if(!n)return;const r=n.ownerDocument.activeElement;r!==n&&r!==i&&(e.onBlur?.(t),h(!1))},g=t=>{p||e.onFocus?.(t),h(!0)},y=s()({[ot().picker]:!0,[ot().firefoxDatePicker]:it.gm});return(0,u.jsxs)("div",{className:ot().wrapper,children:[(0,u.jsx)("input",{"data-testid":"input",ref:l,name:e.name,value:e.value,style:e.style,className:s()(ot().input,e.className,"PSPDFKit-Annotation-Widget-Date-Input"),type:"text",disabled:e.disabled,maxLength:e.maxLength,placeholder:e.format,required:e.required,onChange:t=>{if(n){const r=tt(n.value,d,new Date);!0===v(r)&&i&&(i.value=ue(r,at[e.type])),e.onChange?.(t)}},onBlur:m,onFocus:g}),f?(0,u.jsx)("div",{style:{opacity:p?1:0},className:ot().pickerWidget,children:(0,u.jsx)("input",{"data-testid":"picker",ref:c,className:y,type:e.type,onChange:t=>{if(n&&i){if(""===i.value)n.value="";else{const t=tt(i.value,at[e.type],new Date);v(t)&&i&&(n.value=ue(t,d))}e.onChange?.(t)}},onBlur:m,onFocus:g,disabled:e.disabled})}):null]})}));st.defaultProps={};n(28841);n(7039),n(57141),n(49568),n(7737),n(46323);n(81457);var lt=n(67136),ct=n(85409);var ut=n(48673),dt=n.n(ut);const pt=e=>{const{children:t,onPress:n,expanded:r,ariaControls:o,className:i,headingRef:a,headingTag:l="div"}=e;return(0,u.jsx)(l,{className:s()("PSPDFKit-Expando-Control",dt().control,i),ref:a,children:(0,u.jsx)("button",{className:dt().controlButton,"aria-expanded":o?r:void 0,"aria-controls":o,onClick:n,autoFocus:e.autoFocus,children:t})})},ht=e=>{const{children:t,expanded:n,id:r}=e;return(0,u.jsx)("div",{id:r,className:s()("PSPDFKit-Expando-Content",!n&&dt().contentHidden,!n&&"PSPDFKit-Expando-Content-Hidden"),children:t})};var ft=n(40249),mt=n(72162),gt=n(93476);class vt extends o.Component{constructor(){super(...arguments),(0,lt.A)(this,"rootRef",o.createRef()),(0,lt.A)(this,"activeItem",o.createRef()),(0,lt.A)(this,"state",{activeItemIndex:0,focusReason:"initial"}),(0,lt.A)(this,"didSetActiveItem",!1),(0,lt.A)(this,"onActiveItemIndexChange",(()=>{this.props.onActiveItemIndexChange&&this.props.onActiveItemIndexChange(this.state.activeItemIndex)})),(0,lt.A)(this,"onKeyDown",(e=>{const{ignoreOnKeyPress:t}=this.props;if("function"==typeof t?t(e):e.altKey||e.shiftKey)return;const n=e.currentTarget.ownerDocument.defaultView?.HTMLElement;if(!(e.target instanceof n)||(0,ft.B)(e.target))return;const{activeItemIndex:r}=this.state,o=e.ctrlKey||e.metaKey;if(e.which===this.props.prevKey&&r>0&&this.setState({activeItemIndex:o?0:r-1,focusReason:"keyboard"},this.onActiveItemIndexChange),e.which===this.props.nextKey){const e=this.props.items.length-1;r<e&&this.setState({activeItemIndex:o?e:r+1,focusReason:"keyboard"},this.onActiveItemIndexChange)}})),(0,lt.A)(this,"onFocus",(e=>{const t=e.target!==e.currentTarget;let n=this.state.activeItemIndex;const r=e.currentTarget,o=r&&r.parentNode&&r.parentNode.children?Array.prototype.findIndex.call(r.parentNode.children,(e=>e===r)):-1;-1!==o&&(n=o),this.setState({activeItemIndex:n,focusReason:t?"focus_within":"focus"},this.onActiveItemIndexChange)}))}setActiveItem(e){this.didSetActiveItem=!0,this.setState({activeItemIndex:e,focusReason:"focus"})}getActiveItem(){return this.state.activeItemIndex}componentDidMount(){yt(this.rootRef.current,this.activeItem.current),this.onActiveItemIndexChange()}componentDidUpdate(e,t){(this.didSetActiveItem||e.items.length!==this.props.items.length||t.activeItemIndex!==this.state.activeItemIndex)&&(this.didSetActiveItem=!1,yt(this.rootRef.current,this.activeItem.current),"focus_within"!==this.state.focusReason&&function(e){if(!e)return;const t=e.children,n=t[0],r=n.matches||n.msMatchesSelector;1===t.length&&r.call(n,gt.dV)?(e.removeAttribute("tabindex"),n.focus()):e.focus()}(this.activeItem.current))}render(){if("function"==typeof this.props.children){let e=!1,t=!1;const n=this.props.children({activeItemIndex:this.state.activeItemIndex,getContainerProps:()=>(e=!0,{onKeyDown:this.onKeyDown,ref:this.rootRef}),getItemProps:e=>{let{item:n}=e;(0,ct.V1)(n,"getItemProps must be called with `{ item }`");const r=this.props.items.findIndex((e=>e===n));(0,ct.V1)(r>-1,"getItemPropsL: Cannot find `item` in `props.items`");const o=r===this.state.activeItemIndex;return t=!0,{tabIndex:o?0:-1,ref:o?this.activeItem:void 0,onFocus:this.onFocus,onClick:e=>{e.target.closest(gt.dV)||this.setState({activeItemIndex:r,focusReason:"focus"},this.onActiveItemIndexChange)}}}});return(0,ct.V1)(n,"Did not return valid children"),(0,ct.V1)(e,"Did not call getContainerProps"),(0,ct.V1)(t,"Did not call getItemProps"),n}return(0,u.jsx)("div",{onKeyDown:this.onKeyDown,ref:this.rootRef,"data-testid":"accessible-collection",children:this.props.items.map(((e,t)=>{const n=t===this.state.activeItemIndex;return(0,u.jsx)("div",{tabIndex:n?0:-1,ref:n?this.activeItem:void 0,onFocus:this.onFocus,onClick:e=>{e.target.closest(gt.dV)||this.setState({activeItemIndex:t,focusReason:"focus"},this.onActiveItemIndexChange)},children:e},t)}))})}}function yt(e,t){if(!e||!t)return;(0,gt.iq)(e).forEach((t=>{t.parentNode!==e&&t.setAttribute("tabindex","-1")})),Array.prototype.forEach.call(t.querySelectorAll('[tabindex="-1"]'),(e=>{e.removeAttribute("tabindex")}))}(0,lt.A)(vt,"defaultProps",{prevKey:mt.jE,nextKey:mt.IA,ignoreOnKeyPress:null});var bt=n(45849),wt=n(80018),xt=n(68942),St=n.n(xt);const _t=o.forwardRef((function(e,t){const{className:n,tag:r,announce:o,...i}=e,a=o?{role:"status","aria-live":o}:{};return(0,u.jsx)(r||"p",{...i,ref:t,className:s()(St().visuallyHidden,n),...a})}));class Ct extends o.Component{constructor(){super(...arguments),(0,lt.A)(this,"_handleRef",(e=>{this._el=e,this._document=e?e.ownerDocument:null})),(0,lt.A)(this,"_handleKeyDown",(e=>{const t=this._el,n=this._document;if(e.keyCode===mt.lK&&t&&n){const r=(0,gt.iq)(t),o=r.indexOf(n.activeElement);e.shiftKey&&0===o?(r[r.length-1].focus(),e.preventDefault()):e.shiftKey||o!==r.length-1||(r[0].focus(),e.preventDefault())}}))}componentDidMount(){this._document&&this._document.addEventListener("keydown",this._handleKeyDown),document.addEventListener("keydown",this._handleKeyDown);const e=this._el;if(e&&!e.querySelector('[autofocus]:not([autofocus="false"])')){const t=(0,gt.iq)(e)[0]||e.querySelector('[tabindex="-1"]');t&&t.focus()}}componentWillUnmount(){this._document&&this._document.removeEventListener("keydown",this._handleKeyDown),document.removeEventListener("keydown",this._handleKeyDown)}render(){return(0,u.jsx)("div",{ref:this._handleRef,children:this.props.children})}}var Et=n(15285),kt=n.n(Et);const zt=[];function Pt(){const e=zt.length-1;zt.forEach(((t,n)=>{t.setState({isOnTop:n==e})}))}class At extends o.Component{constructor(){super(...arguments),(0,lt.A)(this,"descriptionId",this.props.accessibilityDescription?`modal-description-${wt.o4.encode(this.props.accessibilityDescription).substr(0,10)}`:null),(0,lt.A)(this,"restoreOnCloseElement",this.props.restoreOnCloseElement),(0,lt.A)(this,"useBorderRadius",!1!==this.props.useBorderRadius),(0,lt.A)(this,"state",{isShaking:!1,isOnTop:!0}),(0,lt.A)(this,"_preventPropagation",(e=>{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()})),(0,lt.A)(this,"_handleClick",(()=>{this.props.onDismiss&&this.props.onDismiss()})),(0,lt.A)(this,"onMount",(e=>{0===zt.length&&e.setAttribute("aria-hidden","true"),zt.push(this),Pt()})),(0,lt.A)(this,"onUnmount",(e=>{zt.pop(),0===zt.length&&e.removeAttribute("aria-hidden"),Pt(),this.restoreOnCloseElement&&this.restoreOnCloseElement.focus()})),(0,lt.A)(this,"_handleKeyDown",(e=>{e.keyCode!==mt.E1&&e.keyCode!==mt.u||e.nativeEvent.stopImmediatePropagation(),this.props.onEscape&&e.keyCode===mt.XS&&(this.props.onEscape(),e.preventDefault(),e.target.ownerDocument.addEventListener("keyup",this._preventPropagation,{capture:!0,once:!0})),this.props.onEnter&&e.keyCode===mt.E1&&(this.props.onEnter(),e.preventDefault())})),(0,lt.A)(this,"_handleAnimationEnd",(()=>{this.setState({isShaking:!1})}))}shake(){this.setState({isShaking:!0})}componentDidMount(){this.props.innerRef&&(this.props.innerRef.current=this)}componentWillUnmount(){this.props.innerRef&&(this.props.innerRef.current=null)}render(){const{isShaking:e,isOnTop:t}=this.state,{className:n,backdropFixed:r,visibleDimensions:i}=this.props,a=t?Ct:o.Fragment;if(r&&!i)return null;const l=r&&i?{position:"absolute",left:i.width/2,top:i.height/2,transform:"translate(-50%, -50%)"}:{};return(0,u.jsx)(bt.W,{onMount:this.onMount,onUnmount:this.onUnmount,children:(0,u.jsx)("div",{"aria-hidden":!t,children:(0,u.jsx)(a,{children:(0,u.jsx)("div",{className:s()(kt().backdropContainer,"PSPDFKit-Modal-Backdrop",r&&kt().backdropFixed),onClick:this._handleClick,onKeyDown:t?this._handleKeyDown:void 0,children:(0,u.jsxs)("div",{role:this.props.role||"dialog","aria-label":this.props.accessibilityLabel,"aria-describedby":this.props.accessibilityDescription?this.descriptionId??void 0:void 0,className:s()(kt().dialog,n,"PSPDFKit-Modal-Dialog",{[kt().shaking]:e,[kt().squareCorners]:!this.useBorderRadius}),onTouchEndCapture:this._preventPropagation,onMouseUpCapture:this._preventPropagation,onPointerUpCapture:this._preventPropagation,onKeyUpCapture:this._preventPropagation,onAnimationEnd:this._handleAnimationEnd,tabIndex:-1,style:l,children:[this.props.children,this.props.accessibilityDescription&&(0,u.jsx)(_t,{id:this.descriptionId??void 0,children:this.props.accessibilityDescription})]})})})})})}}function Dt(e){const{children:t,className:n,spaced:r,...o}=e,i=s()(kt().section,r&&kt().sectionSpaced,r&&"PSPDFKit-Modal-Section-Spaced",n,"PSPDFKit-Modal-Section");return(0,u.jsx)("div",{...o,className:i,children:t})}function Tt(e){const{className:t,spaced:n,...r}=e,o=s()(kt().divider,n&&kt().dividerSpaced,n&&"PSPDFKit-Modal-Divider-Spaced",t,"PSPDFKit-Modal-Divider");return(0,u.jsx)("div",{...r,className:o})}(0,lt.A)(At,"Section",Dt),(0,lt.A)(At,"Divider",Tt),Dt.displayName="Modal.Section",Dt.defaultProps={spaced:!1},Tt.displayName="Modal.Divider",Tt.defaultProps={spaced:!0};var It=n(21459),Mt=n.n(It);const Nt=o.forwardRef((function(e,t){const n=o.useRef(null);return o.useImperativeHandle(t,(()=>n.current)),o.useEffect((()=>{const e=n.current;return e?.showModal(),()=>{e?.close()}}),[]),(0,u.jsx)("dialog",{ref:n,className:s()("PSPDFKit-Modal-Backdrop",Mt().wrapper,e.wrapperClass),onClose:e.onDismiss,children:(0,u.jsx)("form",{method:"dialog",className:e.formClass,children:e.children})})}));var Ot=n(70673),Rt=n.n(Ot);const jt=e=>{let{message:t,progress:n,style:r}=e;if(n){const e=Math.floor(100*n);return(0,u.jsxs)("div",{className:s()("PSPDFKit-Progress",Rt().progress),style:r,role:"progressbar","aria-valuenow":e,"aria-label":`${e}% complete`,children:[(0,u.jsx)("div",{className:Rt().progressBar,children:(0,u.jsx)("div",{className:Rt().progressFill,style:{width:`${e}%`}})}),t?(0,u.jsx)("div",{className:Rt().progressText,children:t}):null]})}return(0,u.jsxs)("div",{className:s()("PSPDFKit-Progress",Rt().loader),style:r,role:"progressbar","aria-valuenow":0,"aria-label":"0% complete",children:[(0,u.jsx)("div",{className:Rt().loaderDot}),(0,u.jsx)("div",{className:Rt().loaderDot}),(0,u.jsx)("div",{className:Rt().loaderDot})]})};var Ft=n(39089),Bt=n.n(Ft);const Lt=e=>t=>{const{className:n,children:r,...i}=t,a={...i,className:s()(Bt()[e],n)};return o.createElement(e,a,r)};Lt("p").displayName="Text";Lt("h1").displayName="HeaderText";var Vt=n(58138),Kt=n.n(Vt);const Ht=(e,t)=>{const n=o.useRef(null);o.useImperativeHandle(t,(()=>n.current)),o.useEffect((()=>{const{selectTextOnFocus:t,autoFocus:n}=e;t&&n&&r()}),[]);const r=o.useCallback((()=>{const{selectTextOnFocus:t}=e,{current:r}=n;r&&(t&&r.select(),p&&p())}),[]),{secureTextEntry:i,error:a,success:l,selectTextOnFocus:c,onBlur:d,onFocus:p,...h}=e,f=s()({[Kt().default]:!a&&!l,[Kt().error]:a,[Kt().success]:l},e.className),m=i?"password":"text";return(0,u.jsx)("input",{...h,className:f,type:m,ref:n,onFocus:r,onBlur:d})},$t=o.memo(o.forwardRef(Ht));var Ut=n(77868),Wt=n(36570),qt=n.n(Wt);function Gt(e){let{inputName:t,label:n,options:r,onChange:o,selectedOption:i,labelClassNamePrefix:a,disabled:l=!1,showLabel:c,isButton:d,wrapperClasses:p}=e;return(0,u.jsx)("div",{className:s()(qt().radioGroup,{[p]:p}),"aria-label":n,role:"radiogroup",children:r.map((e=>{let{value:n,label:r,iconPath:p}=e;const h=n===i,f=s()(qt().iconLabel,{[qt().iconLabelIsActive]:h,[`${a}-${n}`]:!0,[`${a}-active`]:h,[qt().focusedLabelFocusVisible]:h,[qt().selectedLabel]:h&&d,[qt().radioGroupLabel]:!h&&d,[qt().fullWidthRadio]:d});return(0,u.jsxs)("label",{className:f,children:[(0,u.jsx)(_t,{tag:"span",children:r}),(0,u.jsx)("input",{type:"radio",name:t,value:n,checked:h,onChange:e=>o(e.target.value),"aria-label":r,disabled:l}),d&&h&&(0,u.jsx)(Ut.A,{src:p,className:s()(qt().icon,{[qt().radioGroupIcon]:d})}),!d&&(0,u.jsx)(Ut.A,{src:p,className:qt().icon}),c&&(0,u.jsx)("span",{children:r})]},n)}))})}var Zt=n(46492),Yt=n.n(Zt);let Xt=0;const Jt=()=>Xt++;function Qt(e){const t=o.useRef(Jt()),{label:n,accessibilityLabel:r,onUpdate:i}=e,a=o.useCallback((e=>{i(e.target.checked)}),[i]);const l=s()(Yt().label,e.styles.label);return(0,u.jsx)("div",{className:e.styles.controlWrapper,children:(0,u.jsx)("div",{className:e.styles.control,children:(0,u.jsxs)("div",{className:s()("PSPDFKit-Checkbox-Input",e.className,Yt().root),children:[(0,u.jsx)("input",{className:s()(Yt().input,e.styles.input),type:"checkbox",id:`${Yt().label}-${t.current}`,onChange:a,checked:e.value}),e.label?(0,u.jsx)("label",{htmlFor:`${Yt().label}-${t.current}`,className:l,children:n}):r?(0,u.jsx)("label",{htmlFor:`${Yt().label}-${t.current}`,className:l,children:(0,u.jsx)(_t,{tag:"span",children:r})}):null]})})})}var en=n(71761),tn=n(69101),nn=n(59184),rn=n(56986),on=n(20265);const an=/["'&<>]/;function sn(e){const t=""+e,n=an.exec(t);if(!n)return t;let r,o="",i=0,a=0;for(i=n.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#39;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}a!==i&&(o+=t.substring(a,i)),a=i+1,o+=r}return a!==i?o+t.substring(a,i):o}function ln(e,t){if(e.nodeType===Node.TEXT_NODE)return(0,on.Y)("text",t,e.textContent);if(e.nodeType!==Node.ELEMENT_NODE)return null;const n={...t};switch(e.nodeName.toUpperCase()){case"B":n.bold=!0;break;case"I":case"EM":n.italic=!0;break;case"U":n.underline=!0;break;case"SPAN":if("underline"===un(e.getAttribute("style")||"")["text-decoration"]){n.underline=!0;break}}const r=Array.from(e.childNodes).map((e=>ln(e,n))).flat();switch(0===r.length&&r.push((0,on.Y)("text",n,"")),e.nodeName.toUpperCase()){case"BR":return(0,on.Y)("text",t,"\n");case"SPAN":{const t=function(e){return"SPAN"===e.nodeName.toUpperCase()&&e.getAttribute("data-user-id")}(e);if(t)return(0,on.Y)("element",{type:"mention",userId:t,displayName:fn(cn(r))},r);if(function(e){return"SPAN"===e.nodeName.toUpperCase()&&e.getAttribute("style")}(e)&&!function(e){return"underline"===e.style.textDecoration&&!e.style.color&&!e.style.backgroundColor}(e)){const t=un(e.getAttribute("style")||""),n=t.color?Cn(t.color):void 0,o=t["background-color"]?Cn(t["background-color"]):void 0;return(0,on.Y)("element",{type:"style",fontColor:n,backgroundColor:o},r)}return r}case"P":return(0,on.Y)("element",{type:"paragraph"},r);case"A":return(0,on.Y)("element",{type:"link",url:e.getAttribute("href")},r);default:return r}}function cn(e){function t(e){if(function(e){return tn.EY.isText(e)}(e)){let t=sn(e.text);return e.bold&&(t=`<b>${t}</b>`),e.italic&&(t=`<i>${t}</i>`),e.underline&&(t=`<span style="text-decoration: underline;">${t}</span>`),t}const t=e.children?.map((e=>cn(e))).join("");switch(e.type){case"paragraph":return`<p>${t}</p>`;case"link":return`<a href="${e.url}">${t}</a>`;case"mention":return`<span data-user-id="${e.userId}">${e.displayName}</span>`;case"style":{const n=dn(e);return`<span${n?` style="${n}"`:""}>${t}</span>`}default:return t}}return Array.isArray(e)?e.map((e=>t(e))).join(""):t(e)}function un(e){return e?((e=e.trim()).endsWith(";")&&(e=e.slice(0,-1)),e.split(";").map((e=>e.split(":").map((e=>e.trim())))).reduce(((e,t)=>{let[n,r]=t;return{...e,[n]:r}}),{})):{}}function dn(e){let t="";return e.fontColor&&(t+=`color: ${e.fontColor};`),e.backgroundColor&&(t+=`background-color: ${e.backgroundColor};`),t}function pn(e,t){const n=tn.KE.marks(e);return!!n&&!0===n[t]}const hn=(e,t)=>{pn(e,t)?tn.KE.removeMark(e,t):tn.KE.addMark(e,t,!0)};function fn(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||""}function mn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(new DOMParser).parseFromString(e,"text/html")}function gn(){const e=((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")||"").match(/(<[^<>]+>)/g)||[],t={pre:[],post:[]};return e.forEach((e=>{if(e.startsWith("<html"))return t.pre.push(e),void t.post.unshift("</html>");e.startsWith("<body")&&(t.pre.push(e),t.post.unshift("</body>"))})),t}function vn(){return mn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").body.innerHTML}function yn(e){let{changeUnderlineCSStoHTML:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=mn(e).body;if(0===n.childNodes.length){const e=document.createElement("p");return n.appendChild(e),n}const r=document.createElement("body");let o=[];return[...n.childNodes].forEach(((e,t)=>{const i=n.childNodes.length-1===t;if("P"===e.nodeName.toUpperCase()||i){if(i&&"P"!==e.nodeName.toUpperCase()&&o.push(e),o.length){const e=document.createElement("p");o.forEach((t=>{e.appendChild(t)})),r.appendChild(e),o=[]}"P"===e.nodeName.toUpperCase()&&r.appendChild(e)}else o.push(e)})),r.childNodes.forEach((e=>{e.querySelectorAll?.("p").forEach((e=>{const t=document.createElement("span");e.style.cssText&&t.setAttribute("style",e.style.cssText),t.innerHTML=e.innerHTML,e.replaceWith(t)})),e.querySelectorAll?.("div").forEach((e=>{const t=document.createElement("span");e.style.cssText&&t.setAttribute("style",e.style.cssText),t.innerHTML=e.innerHTML,e.replaceWith(t)})),t&&e.querySelectorAll?.("span").forEach((e=>{if("underline"===e.style.textDecoration){const t=document.createElement("u");t.innerHTML=e.innerHTML,e.innerHTML=t.outerHTML,e.style.textDecoration="",e.style.cssText||(e.removeAttribute("style"),e.attributes.length||e.replaceWith(...e.childNodes))}}))})),r}function bn(e){if(!e)return!1;const{selection:t}=e;return!!t&&tn.Q6.isExpanded(t)&&""!==tn.KE.string(e,t)}function wn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const{selection:n}=e;if(n){const[r]=tn.Q6.edges(n),o=tn.KE.before(e,r,{distance:t,unit:"character"}),i=o&&tn.KE.range(e,o,r);return{text:i&&tn.KE.string(e,i),range:i}}return null}function xn(e){return e&&(" "===e.text||!e.range)}function Sn(e,t,n){const r={...un(e.getAttribute("style")??""),["fontColor"===t?"color":"background-color"]:n??void 0};return Object.entries(r).filter((e=>{let[,t]=e;return void 0!==t})).map((e=>{let[t,n]=e;return`${t}: ${n}`})).join("; ").concat(";")}function _n(e,t,n){const r=yn(e,{changeUnderlineCSStoHTML:!1});function o(e){const t=e.closest("p")?.textContent;return e.textContent===t&&!e.closest("span[style]")}return r.querySelectorAll("p").forEach((e=>{const{isBold:r,isUnderlined:i,isItalic:a}=En(e);if("fontColor"===t){let t=!1;if(e.querySelectorAll("span[style]").forEach((e=>{o(e)?(t=!0,e.setAttribute("style",Sn(e,"fontColor",n))):(e.style.color="",""===e.style.cssText&&e.replaceWith(...e.childNodes))})),!t){const t=document.createElement("span");t.setAttribute("style",Sn(t,"fontColor",n)),t.innerHTML=e.innerHTML,e.innerHTML=t.outerHTML}}else if("underline"===t){const t=e.querySelectorAll("span[style]");if(i)t.forEach((e=>{e.style.textDecoration=""}));else{let n=!1;if(t.forEach((e=>{o(e)&&(n=!0,e.style.textDecoration="underline")})),!n){const t=document.createElement("span");t.style.textDecoration="underline",t.innerHTML=e.innerHTML,e.innerHTML=t.outerHTML}}t.forEach((e=>{o(e)?e.style.textDecoration=i?"":"underline":(e.style.textDecoration="",""===e.style.cssText&&e.replaceWith(...e.childNodes))}))}else if("bold"===t){const t=e.querySelectorAll("b");if(r)t.forEach((e=>{e.replaceWith(...e.childNodes)}));else{const t=document.createElement("b");t.innerHTML=e.innerHTML,e.innerHTML=t.outerHTML}}else if("italic"===t){const t=e.querySelectorAll("i, em");if(a)t.forEach((e=>{e.replaceWith(...e.childNodes)}));else{const t=document.createElement("i");t.innerHTML=e.innerHTML,e.innerHTML=t.outerHTML}}})),r.innerHTML}function Cn(e){if(!e)return"";if(e.startsWith("rgb")){const t=e.replace("rgb(","").replace(")","").split(",").map((e=>parseInt(e,10))).map((e=>e.toString(16))).map((e=>1===e.length?`0${e}`:e)).join("");return`#${t}`}return e.startsWith("#")&&9===e.length?`#${e.substr(3,6)}`:7===e.length&&e.startsWith("#")?e:"#000000"}function En(e){const t=e.querySelectorAll("span[style]"),n=Array.from(t).filter((t=>t.textContent===e.textContent)),r=n.filter((e=>e.style.color)),o=n.filter((e=>e.style.backgroundColor)),i=n.filter((e=>"underline"===e.style.textDecoration)),a=e.querySelectorAll("b"),s=Array.from(a).filter((t=>t.textContent===e.textContent)),l=e.querySelectorAll("i, em"),c=Array.from(l).filter((t=>t.textContent===e.textContent));return{fontColor:r.length>0?Cn(r[r.length-1].style.color):null,backgroundColor:o.length>0?Cn(o[o.length-1].style.backgroundColor):null,isUnderlined:i.length>0,isBold:s.length>0,isItalic:c.length>0}}function kn(e){const t=yn(e,{changeUnderlineCSStoHTML:!1}).querySelectorAll("p"),n=Array.from(t).map((e=>En(e)));return{fontColor:n.every((e=>{let{fontColor:t}=e;return t&&t===n[0].fontColor}))?n[0].fontColor:null,isUnderlined:n.every((e=>{let{isUnderlined:t}=e;return t&&t===n[0].isUnderlined})),isBold:n.every((e=>{let{isBold:t}=e;return t&&t===n[0].isBold})),isItalic:n.every((e=>{let{isItalic:t}=e;return t&&t===n[0].isItalic})),backgroundColor:n.every((e=>{let{backgroundColor:t}=e;return t&&t===n[0].backgroundColor}))?n[0].backgroundColor:null}}function zn(e,t){const{selection:n}=e;if(!n)return;const[...r]=Array.from(tn.KE.nodes(e,{at:tn.KE.unhangRange(e,n),match:e=>!tn.KE.isEditor(e)&&Pn(e)})),o=r.map((e=>{let[t]=e;return t}));if(!o)return;const i=o.map((e=>Cn(e[t])));return 1===new Set(i).size?i[0]??void 0:void 0}function Pn(e){return"style"===e.type}function An(e,t){const{selection:n}=e;n&&tn.Q6.isCollapsed(n)?tn.gB.insertNodes(e,t):(tn.gB.wrapNodes(e,t,{split:!0}),tn.gB.collapse(e,{edge:"end"}))}function Dn(e,t){tn.gB.unwrapNodes(e,{match:e=>!tn.KE.isEditor(e)&&tn.Hg.isElement(e)&&e.type===t})}function Tn(e,t,n){(0,ct.V1)(e,"Editor is not defined.");const[r]=tn.KE.nodes(e,{match:e=>!tn.KE.isEditor(e)&&tn.Hg.isElement(e)&&Pn(e)});r?tn.gB.setNodes(e,{[t]:n},{match:e=>Pn(e),split:!0}):An(e,{type:"style",[t]:n,children:[{text:""}]})}function In(e){const{selection:t}=e;if(!t)return!1;const[...n]=Array.from(tn.KE.nodes(e,{at:tn.KE.unhangRange(e,t),match:e=>!tn.KE.isEditor(e)&&Pn(e)})),r=n.map((e=>{let[t]=e;return t}));return!!r?.[0]?.underline}function Mn(e,t){const n=ln(yn(e));tn.gB.insertFragment(t,n)}function Nn(e){return"mention"===e.type}const On=e=>{const{insertData:t,isInline:n,markableVoid:r,isVoid:o}=e;return e.isInline=e=>"link"===e.type||Nn(e)||"style"===e.type||n(e),e.isVoid=e=>Nn(e)||o(e),e.markableVoid=e=>Nn(e)||r(e),e.insertData=n=>{try{const r=n.getData("text/html");if(r)return void Mn(r,e);t(n)}catch(t){!function(e){let{html:t,editor:n}=e;try{tn.gB.insertNodes(n,{type:"style",contentEditable:!1,fontSize:0,children:[{text:"​"}]}),Mn(t,n)}catch(e){return!1}}({html:n.getData("text/html"),editor:e})}},e};var Rn,jn;const Fn="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),Bn="undefined"!=typeof navigator&&/Chrome/.test(navigator.userAgent),Ln=o.forwardRef(((e,t)=>{let{text:n,style:r,updateBoundingBox:i,onValueChange:a,onBlurSave:l,maxLength:c,onStopEditing:d,onEscape:p,lastMousePoint:h,onEditorInit:f,className:m,placeholder:g,onBlur:v,autoFocus:y=!0,onSelectionChange:b,autoOpenKeyboard:w=!0,onKeyDown:x,keepSelectedTool:S,title:_="Rich text editor",shadowRoot:C}=e;const{value:E,wrapperTags:k}=(0,o.useMemo)((()=>({wrapperTags:gn(n),value:vn(n)})),[n]),z=(0,o.useRef)(null),P=o.useRef(E),A=(0,o.useMemo)((()=>On((0,nn.$k)((0,en.o$)((0,tn.ie)())))),[]),D=(0,o.useCallback)((e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}),[]);(0,o.useEffect)((()=>{const e=z.current;function t(t){const n=t?.target?.shadowRoot,r=n?n?.elementFromPoint?.(t.x,t.y)?.parentElement:t.target,o=!!r?.closest(".PSPDFKit-Text-Annotation-Toolbar, .PSPDFKit-Input-Dropdown-Items, .PSPDFKit-Input-Dropdown-Button");e?.contains(t.target)||l?.({isTextToolbarClicked:o,isNativeBlurEvent:!0})}return e?.ownerDocument.addEventListener("pointerdown",t,{capture:!0}),tn.gB.select(A,tn.KE.end(A,[])),()=>{e?.ownerDocument.removeEventListener("pointerdown",t,{capture:!0})}}),[A,l]);const T=(0,o.useMemo)((()=>ln(yn(E))),[E]),I=(0,o.useCallback)((e=>(0,u.jsx)(Hn,{...e})),[]),M=(0,o.useCallback)((e=>(0,u.jsx)(Vn,{...e})),[]);(0,o.useEffect)((()=>(f?.(A),()=>{f?.(null)})),[A,f]),(0,o.useEffect)((()=>{y&&(en.rL.focus(A),S?w||setTimeout((()=>{en.rL.blur(A)}),0):setTimeout((()=>{en.rL.blur(A),en.rL.focus(A),w||en.rL.blur(A)}),0))}),[w]),(0,o.useEffect)((()=>{setTimeout((()=>{if(h&&z.current){const e=(0,ct.pQ)(h,z.current.ownerDocument);if(!e)return;const t=en.rL.toSlatePoint(A,[e.startContainer,e.startOffset],{exactMatch:!0,suppressThrow:!0});t&&tn.gB.select(A,t)}}),0)}),[A,h,t]);const N=(0,o.useCallback)((e=>{if("Escape"!==e.key)return"Enter"===e.key&&e.shiftKey?(d?.(),void e.preventDefault()):void(c&&fn(P.current).length>=c&&e.preventDefault());p?.(e)}),[c,p,d]),O=(0,o.useCallback)((()=>{const{selection:e}=A;if(e&&tn.Q6.isCollapsed(e)){const[t]=tn.Q6.edges(e),n=wn(A,2);if((n?.text?.startsWith(" ")||1===n?.text?.length)&&n?.text?.endsWith("@")){(0,ct.V1)(n,"lastTwoCharacters should be defined");const e=wn(A)?.range;return e?{query:"",target:e}:null}{const e=tn.KE.before(A,t,{unit:"word"}),n=e&&tn.KE.before(A,e),r=n&&tn.KE.range(A,n,t),o=r&&tn.KE.string(A,r),i=o&&o.match(/^@(\w+)$/),a=tn.KE.after(A,t),s=tn.KE.range(A,t,a),l=tn.KE.string(A,s).match(/^(\s|$)/);return i&&l&&r?{query:i[1],target:r}:null}}return null}),[A]),R=(0,o.useCallback)((e=>{A.operations.every((e=>"set_selection"===e.type))&&(b?.(),"onSelectionChange"in A&&"function"==typeof A.onSelectionChange&&A.onSelectionChange());const t=e.map((e=>cn(e))).join("");P.current=t,a(`${k.pre.join("")}${t}${k.post.join("")}`,{activeMention:O()??null}),i?.(),"onValueChange"in A&&"function"==typeof A.onValueChange&&A.onValueChange(t)}),[a,i,k,A,b,O]);return(0,u.jsx)("div",{role:"presentation",className:s()(rn.richTextEditor,"PSPDFKit-Rich-Text-Editor",m),style:r,ref:(0,ct.tE)(t,z),onBlur:()=>{l?.({}),v?.()},onDragStart:D,onDragEnd:D,onKeyUp:D,onMouseDown:D,onPointerUp:D,onTouchStart:D,onTouchEnd:D,onMouseUp:D,children:(0,u.jsx)(en.A,{onChange:R,editor:A,value:T,children:(0,u.jsx)(en.Fo,{title:_,placeholder:g,renderLeaf:M,renderElement:I,onInput:i,className:rn.wrapper,onKeyDown:e=>{x?x(e):(N(e),(e.metaKey||e.ctrlKey)&&"b"===e.key?(e.preventDefault(),hn(A,"bold")):(e.metaKey||e.ctrlKey)&&"i"===e.key?(e.preventDefault(),hn(A,"italic")):(e.metaKey||e.ctrlKey)&&"u"===e.key&&(e.preventDefault(),hn(A,"underline")),Fn&&!en.rL.isComposing(A)&&setTimeout(A.onChange,10),it.gm&&C&&en.rL.focus(A))}})})})})),Vn=e=>{let{attributes:t,children:n,leaf:r}=e;return r.bold&&(n=(0,u.jsx)("strong",{children:n})),r.italic&&(n=(0,u.jsx)("em",{children:n})),r.underline&&(n=(0,u.jsx)("u",{children:n})),(0,u.jsx)("span",{...t,children:n})},Kn=()=>(0,u.jsxs)("span",{contentEditable:!1,style:{fontSize:0},children:["$",String.fromCodePoint(160)]}),Hn=e=>{const{attributes:t,children:n,element:r}=e;switch(r.type){case"link":return(0,u.jsxs)("a",{...t,href:r.url,children:[Rn||(Rn=(0,u.jsx)(Kn,{})),n,jn||(jn=(0,u.jsx)(Kn,{}))]});case"mention":return(0,u.jsxs)("span",{...t,contentEditable:Bn?void 0:t.contentEditable,"data-user-id":r.userId,children:[n,"@",r.displayName]});case"style":return(0,u.jsx)("span",{...t,style:{color:r.fontColor,backgroundColor:r.backgroundColor},children:n});default:return(0,u.jsx)("p",{...t,children:n})}};function $n(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function Un(...e){return(0,o.useCallback)($n(...e),e)}function Wn(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>(0,o.createContext)(e)));return function(n){const r=(null==n?void 0:n[e])||t;return(0,o.useMemo)((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const i=(0,o.createContext)(r),a=n.length;function s(t){const{scope:n,children:r,...s}=t,l=(null==n?void 0:n[e][a])||i,c=(0,o.useMemo)((()=>s),Object.values(s));return(0,o.createElement)(l.Provider,{value:c},r)}return n=[...n,r],s.displayName=t+"Provider",[s,function(n,s){const l=(null==s?void 0:s[e][a])||i,c=(0,o.useContext)(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},qn(r,...t)]}function qn(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return(0,o.useMemo)((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function Gn(){return Gn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gn.apply(this,arguments)}var Zn=n(40961);function Yn(){return Yn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yn.apply(this,arguments)}const Xn=(0,o.forwardRef)(((e,t)=>{const{children:n,...r}=e,i=o.Children.toArray(n),a=i.find(er);if(a){const e=a.props.children,n=i.map((t=>t===a?o.Children.count(e)>1?o.Children.only(null):(0,o.isValidElement)(e)?e.props.children:null:t));return(0,o.createElement)(Jn,Yn({},r,{ref:t}),(0,o.isValidElement)(e)?(0,o.cloneElement)(e,void 0,n):null)}return(0,o.createElement)(Jn,Yn({},r,{ref:t}),n)}));Xn.displayName="Slot";const Jn=(0,o.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,o.isValidElement)(n)?(0,o.cloneElement)(n,{...tr(r,n.props),ref:$n(t,n.ref)}):o.Children.count(n)>1?o.Children.only(null):null}));Jn.displayName="SlotClone";const Qn=({children:e})=>(0,o.createElement)(o.Fragment,null,e);function er(e){return(0,o.isValidElement)(e)&&e.type===Qn}function tr(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,o.forwardRef)(((e,n)=>{const{asChild:r,...i}=e,a=r?Xn:t;return(0,o.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,o.createElement)(a,Gn({},i,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function nr(e){const t=e+"CollectionProvider",[n,r]=Wn(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:t,children:n}=e,r=o.useRef(null),a=o.useRef(new Map).current;return o.createElement(i,{scope:t,itemMap:a,collectionRef:r},n)},l=e+"CollectionSlot",c=o.forwardRef(((e,t)=>{const{scope:n,children:r}=e,i=Un(t,a(l,n).collectionRef);return o.createElement(Xn,{ref:i},r)})),u=e+"CollectionItemSlot",d="data-radix-collection-item",p=o.forwardRef(((e,t)=>{const{scope:n,children:r,...i}=e,s=o.useRef(null),l=Un(t,s),c=a(u,n);return o.useEffect((()=>(c.itemMap.set(s,{ref:s,...i}),()=>{c.itemMap.delete(s)}))),o.createElement(Xn,{[d]:"",ref:l},r)}));return[{Provider:s,Slot:c,ItemSlot:p},function(t){const n=a(e+"CollectionConsumer",t),r=o.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},r]}new Set,new Set,new Set;!function(){let e=[]}();function rr(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const or=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?o.useLayoutEffect:()=>{};i["useId".toString()];Math.min,Math.max;const ir=["top","right","bottom","left"];ir.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);Math.min,Math.max,Math.round;"undefined"!=typeof document?o.useLayoutEffect:o.useEffect;const ar="Popper",[sr,lr]=Wn(ar),[cr,ur]=sr(ar),dr="PopperContent",[pr,hr]=sr(dr),[fr,mr]=sr(dr,{hasParent:!1,positionUpdateFns:new Set});const gr=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=(0,o.useState)(),r=(0,o.useRef)({}),i=(0,o.useRef)(e),a=(0,o.useRef)("none"),s=e?"mounted":"unmounted",[l,c]=function(e,t){return(0,o.useReducer)(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,o.useEffect)((()=>{const e=vr(r.current);a.current="mounted"===l?e:"none"}),[l]),or((()=>{const t=r.current,n=i.current;if(n!==e){const r=a.current,o=vr(t);if(e)c("MOUNT");else if("none"===o||"none"===(null==t?void 0:t.display))c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=e}}),[e,c]),or((()=>{if(t){const e=e=>{const n=vr(r.current).includes(e.animationName);e.target===t&&n&&(0,Zn.flushSync)((()=>c("ANIMATION_END")))},n=e=>{e.target===t&&(a.current=vr(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,o.useCallback)((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),i="function"==typeof n?n({present:r.isPresent}):o.Children.only(n),a=Un(r.ref,i.ref);return"function"==typeof n||r.isPresent?(0,o.cloneElement)(i,{ref:a}):null};function vr(e){return(null==e?void 0:e.animationName)||"none"}gr.displayName="Presence";const yr="RovingFocusGroup",[br,wr,xr]=nr(yr),[Sr,_r]=Wn(yr,[xr]),[Cr,Er]=Sr(yr);new WeakMap,new WeakMap;var kr=function(){return kr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},kr.apply(this,arguments)};function zr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;Object.create;var Pr="right-scroll-bar-position",Ar="width-before-scroll-bar";function Dr(e,t){return function(e,t){var n=(0,o.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}(t||null,(function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}new WeakMap;new WeakMap;function Tr(e){return e}function Ir(e,t){void 0===t&&(t=Tr);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}var Mr=function(e){var t=e.sideCar,n=zr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return o.createElement(r,kr({},n))};Mr.isSideCarExport=!0;var Nr,Or=function(e){void 0===e&&(e={});var t=Ir(null);return t.options=kr({async:!0,ssr:!1},e),t}(),Rr=function(){},jr=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useState({onScrollCapture:Rr,onWheelCapture:Rr,onTouchMoveCapture:Rr}),i=r[0],a=r[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,h=e.sideCar,f=e.noIsolation,m=e.inert,g=e.allowPinchZoom,v=e.as,y=void 0===v?"div":v,b=zr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=h,x=Dr([n,t]),S=kr(kr({},b),i);return o.createElement(o.Fragment,null,d&&o.createElement(w,{sideCar:Or,removeScrollBar:u,shards:p,noIsolation:f,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:n}),s?o.cloneElement(o.Children.only(l),kr(kr({},S),{ref:x})):o.createElement(y,kr({},S,{className:c,ref:x}),l))}));jr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},jr.classNames={fullWidth:Ar,zeroRight:Pr};function Fr(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Nr||n.nc;return t&&e.setAttribute("nonce",t),e}var Br=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=Fr())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Lr=function(){var e,t=(e=Br(),function(t,n){o.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},Vr={left:0,top:0,right:0,gap:0},Kr=function(e){return parseInt(e||"",10)||0},Hr=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Vr;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Kr(n),Kr(r),Kr(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},$r=Lr(),Ur=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(Pr," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(Ar," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(Pr," .").concat(Pr," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(Ar," .").concat(Ar," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},Wr=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r,a=o.useMemo((function(){return Hr(i)}),[i]);return o.createElement($r,{styles:Ur(a,!t,i,n?"":"!important")})},qr=!1;if("undefined"!=typeof window)try{var Gr=Object.defineProperty({},"passive",{get:function(){return qr=!0,!0}});window.addEventListener("test",Gr,Gr),window.removeEventListener("test",Gr,Gr)}catch(e){qr=!1}var Zr=!!qr&&{passive:!1},Yr=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Xr=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Jr(e,n)){var r=Qr(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Jr=function(e,t){return"v"===e?function(e){return Yr(e,"overflowY")}(t):function(e){return Yr(e,"overflowX")}(t)},Qr=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},eo=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},to=function(e){return[e.deltaX,e.deltaY]},no=function(e){return e&&"current"in e?e.current:e},ro=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},oo=0,io=[];const ao=(so=function(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),i=o.useState(oo++)[0],a=o.useState((function(){return Lr()}))[0],s=o.useRef(e);o.useEffect((function(){s.current=e}),[e]),o.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||t)}([e.lockRef.current],(e.shards||[]).map(no),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=o.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var o,i=eo(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=Xr(d,u);if(!p)return!0;if(p?o=d:(o="v"===d?"h":"v",p=Xr(d,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var h=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,u=a>0,d=0,p=0;do{var h=Qr(e,s),f=h[0],m=h[1]-h[2]-i*f;(f||m)&&Jr(e,s)&&(d+=m,p+=f),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&0===d||!o&&a>d)||!u&&(o&&0===p||!o&&-a>p))&&(c=!0),c}(h,t,e,"h"===h?l:c,!0)}),[]),c=o.useCallback((function(e){var n=e;if(io.length&&io[io.length-1]===a){var r="deltaY"in n?to(n):eo(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var i=(s.current.shards||[]).map(no).filter(Boolean).filter((function(e){return e.contains(n.target)}));(i.length>0?l(n,i[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=o.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=o.useCallback((function(e){n.current=eo(e),r.current=void 0}),[]),p=o.useCallback((function(t){u(t.type,to(t),t.target,l(t,e.lockRef.current))}),[]),h=o.useCallback((function(t){u(t.type,eo(t),t.target,l(t,e.lockRef.current))}),[]);o.useEffect((function(){return io.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",c,Zr),document.addEventListener("touchmove",c,Zr),document.addEventListener("touchstart",d,Zr),function(){io=io.filter((function(e){return e!==a})),document.removeEventListener("wheel",c,Zr),document.removeEventListener("touchmove",c,Zr),document.removeEventListener("touchstart",d,Zr)}}),[]);var f=e.removeScrollBar,m=e.inert;return o.createElement(o.Fragment,null,m?o.createElement(a,{styles:ro(i)}):null,f?o.createElement(Wr,{gapMode:"margin"}):null)},Or.useMedium(so),Mr);var so,lo=o.forwardRef((function(e,t){return o.createElement(jr,kr({},e,{ref:t,sideCar:ao}))}));lo.classNames=jr.classNames;const co=["Enter"," "],uo=["ArrowUp","PageDown","End"],po="Menu",[ho,fo,mo]=nr(po),[go,vo]=Wn(po,[mo,lr,_r]),[yo,bo]=(lr(),_r(),go(po)),[wo,xo]=go(po),So="MenuPortal",[_o,Co]=go(So,{forceMount:void 0}),Eo="MenuContent",[ko,zo]=go(Eo),Po="MenuRadioGroup",[Ao,Do]=go(Po,{value:void 0,onValueChange:()=>{}}),To="MenuItemIndicator",[Io,Mo]=go(To,{checked:!1}),No="MenuSub",[Oo,Ro]=go(No);const jo="DropdownMenu",[Fo,Bo]=Wn(jo,[vo]),[Lo,Vo]=(vo(),Fo(jo));n(52781),n(55511)},90741:(e,t,n)=>{"use strict";n.d(t,{A:()=>$e});var r=n(49568),o=n(85409),i=n(63211),a=n(23071),s=n(35467),l=n(1889),c=n(52002),u=n(96615),d=n(69979),p=n(89055),h=n(63939),f=n(76943),m=n(7516),g=n(50960),v=n(62116),y=n(86977),b=n(95171),w=n(75439),x=n(72084),S=n(38849);const _=(0,S.A)("ToolbarItems");var C=n(51946),E=n(71453),k=n(89574),z=n(42361),P=n(64337);const A=["annotationSelection.change"];var D=n(76117),T=n(78625),I=n(16192),M=n(5217),N=n(84445);const O=(0,S.A)("Annotations");var R=n(22372);const j=(0,S.A)("Bookmarks");var F=n(34554),B=n(82500);var L=n(32522);const V=(0,S.A)("CustomOverlayItem");var K=n(83720),H=n(18248),$=n(83877);const U=(0,S.A)("Forms");var W=n(63638);var q=n(97444),G=n(92526);const Z=(0,S.A)("InkSignatures"),Y=["inkSignatures.create","inkSignatures.update","inkSignatures.delete","inkSignatures.change"],X=["storedSignatures.create","storedSignatures.update","storedSignatures.delete","storedSignatures.change"];var J=n(37361),Q=n(9939);const ee=(0,S.A)();async function te(e,t,n){if("object"!=typeof e||"number"!=typeof e.width&&"number"!=typeof e.height)throw new o.uE("The first argument must be an object with either `width` or `height` set to a number.");if("width"in e&&"height"in e)throw new o.uE("The first argument can't contain both `height` and `width` propeties at the same time.");if("width"in e&&"number"!=typeof e.width)throw new o.uE("`width` must be a number.");if("height"in e&&"number"!=typeof e.height)throw new o.uE("`height` must be a number.");ee("number"==typeof t,"pageIndex must be a number."),await(n.getState().annotationManager?.loadAnnotationsForPageIndex(t));const r=n.getState(),i=r.pages.get(t);ee(i,`Could not find page with index ${t} in this document.`);const{pageSize:a}=i;let s,l;"width"in e&&"number"==typeof e.width&&e.width>0&&e.width<=J.bg?(s=Math.round(e.width),l=Math.round(s*a.height/a.width)):"height"in e&&"number"==typeof e.height&&e.height>0&&e.height<=J.bg?(l=Math.round(e.height),s=Math.round(l*a.width/a.height)):ee(!1,`Could not calculate cover dimensions. Values must be in the interval \`(0; ${J.bg}]\`.`);const c=r.annotations.filter((e=>e.pageIndex===t&&!(e instanceof D.dG||e instanceof D.tr&&r.commentThreads.has(e.id)))).toList(),u=r.formFields.filter((e=>e.annotationIds.some((e=>{const n=r.annotations.get(e);return!(!n||n.pageIndex!==t)})))),d=(0,K.UA)(u);ee(r.backend);const{promise:p}=r.backend.corePDFBridge.renderTile(t,new D.or({width:s,height:l}),new D.rw({width:s,height:l}),!1,!0,{annotations:c,formFieldValues:d,formFields:u.toList(),attachments:r.attachments,signatures:r.digitalSignatures&&r.digitalSignatures.signatures}),{element:h}=await p;return{element:h,width:s,height:l}}var ne=n(42633),re=n(45408),oe=n(37094),ie=n(69118),ae=n(75675);const se=["search.stateChange","search.termChange"];var le=n(67748);const ce=(0,S.A)("StampAnnotationTemplates");var ue=n(28567),de=n(82142),pe=n(16692);const he=(0,S.A)("ToolbarItems");var fe=n(8972);var me=n(21559),ge=n(63226),ve=n(41567);var ye=n(53080);function be(e){return e instanceof r.B8?e.toArray():Array.isArray(e)?[...e]:[e]}function we(e,t){return"STANDALONE"!==e.type?t():(e.setFormJSONUpdateBatchMode(!0),t().finally((()=>{e.setFormJSONUpdateBatchMode(!1)})))}var xe=n(23237);const Se=["history.undo","history.redo","history.change","history.willChange","history.clear"];var _e=n(25e3),Ce=n(75838),Ee=n(72320);const ke=(0,S.A)("DocumentEditorFooterItem");var ze=n(51467),Pe=n(23660);const Ae=["documentComparisonUI.start","documentComparisonUI.end"];var De=n(17293);var Te=n(6606),Ie=n(35224),Me=n(53253),Ne=n(46692),Oe=n(64329),Re=n(2440),je=n(90820),Fe=n(85410);const Be=(0,S.A)(),Le=["instant.connectedClients.change","page.press","textLine.press","annotationPresets.update","annotationNote.hover","annotationNote.press"],Ve=[function(e,t){Object.defineProperty(t,"editableAnnotationTypes",{enumerable:!0,configurable:!1,get:()=>e.getState().editableAnnotationTypes}),t.setEditableAnnotationTypes=function(t){if(!Array.isArray(t))throw new o.uE("editableAnnotationTypes must be an array of annotation types.");if(!t.every((e=>e&&e.prototype&&(e.prototype instanceof R.A||e==R.A))))throw new o.uE("editableAnnotationTypes must be an array of annotation types.");e.dispatch((0,s.DU)((0,r.NZ)(t)))},t.setIsEditableAnnotation=function(t){if("function"!=typeof t)throw new o.uE("The type for isEditableAnnotation is not valid. Must be `function`.");e.dispatch((0,s.eH)(t))}},function(e,t){const n=()=>e.getState().annotationPresets;Object.defineProperty(t,"annotationPresets",{enumerable:!0,configurable:!1,get:()=>n().toObject()}),Object.defineProperty(t,"currentAnnotationPreset",{enumerable:!0,configurable:!1,get:()=>e.getState().currentItemPreset}),t.setAnnotationPresets=function(t){let o=t;"function"==typeof t&&(o=t.call(null,n().toObject())),_("object"==typeof o,`The ${"function"==typeof t?"return value of your update function":"supplied argument"} is not an object.`),Object.values(o).forEach(x.t);const i=(0,r.T5)(o);n().equals(i)||e.dispatch((0,w.Rf)(i))},t.setCurrentAnnotationPreset=function(t){const n=e.getState();"string"==typeof t&&(0,o.V1)(void 0!==n.annotationPresets.get(t),`There is no annotation preset with the supplied 'annotationPresetID' ${t}`),e.dispatch((0,w.iE)(t))}},function(e,t){const n=()=>[...e.getState().stampAnnotationTemplates];Object.defineProperty(t,"stampAnnotationTemplates",{enumerable:!0,configurable:!1,get:()=>n()}),t.setStampAnnotationTemplates=function(t){let r=t;"function"==typeof r&&(r=r.call(null,n())),ce(Array.isArray(r),`The ${"function"==typeof t?"return value of your update function":"supplied argument"} is not an array.`),r.forEach(le.nn);const o=n();JSON.stringify(o)!==JSON.stringify(r)&&e.dispatch((0,w.vN)([...r]))}},fe.Ay,function(e,t){const n=()=>e.getState().toolbarItems;Object.defineProperty(t,"toolbarItems",{enumerable:!0,configurable:!1,get:()=>n().toJS()}),t.setToolbarItems=function(t){let i=t;"function"==typeof i&&(i=i.call(null,n().toJS())),he(Array.isArray(i),`The ${"function"==typeof t?"return value of your update function":"supplied argument"} is not an array.`),i=i.map((e=>"ink-signature"===e.type?((0,o.t6)("The 'ink-signature' toolbar item type has been renamed to 'signature'. The 'ink-signature' identifier will be removed on a future release of PSPDFKit for Web."),{...e,type:"signature"}):e)),i.forEach(pe.t);const a=(0,r.ss)(i);n().equals(a)||e.dispatch((0,de.H$)(a))},t.setAnnotationToolbarItems=t=>{(0,o.V1)("function"==typeof t,"The annotationToolbarItemsCallback argument must be a function."),e.dispatch((0,de.gL)(t))}},function(e,t){const n=function(e){const{eventEmitter:t}=e.getState();t.events.push("annotations.willChange","annotations.change","annotations.willSave","annotations.didSave","annotations.load","annotations.create","annotations.update","annotations.delete","annotations.press","annotations.focus","annotations.blur","annotations.transform","annotations.cut","annotations.copy","annotations.paste","annotations.duplicate");let n=e.getState().annotations;const r=()=>t.emit("annotations.willSave"),o=()=>t.emit("annotations.didSave"),i=e=>t.emit("annotations.load",e),a=e=>t.emit("annotations.create",e),s=e=>t.emit("annotations.update",e),l=e=>t.emit("annotations.delete",e);let c=!1;const u=()=>{if(!c){const{annotationManager:t}=e.getState();t&&(t.eventEmitter.on("willSave",r),t.eventEmitter.on("didSave",o),t.eventEmitter.on("load",i),t.eventEmitter.on("create",a),t.eventEmitter.on("update",s),t.eventEmitter.on("delete",l),c=!0)}},d=e.subscribe((()=>{const r=e.getState().annotations;n!==r&&(n=r,t.emit("annotations.change")),u()}));return u(),()=>{if(c){const{annotationManager:t}=e.getState();O(t,"AnnotationManager is not present in the state"),t.eventEmitter.off("willSave",r),t.eventEmitter.off("didSave",o),t.eventEmitter.off("load",i),t.eventEmitter.off("create",a),t.eventEmitter.off("update",s),t.eventEmitter.off("delete",l),c=!1}d()}}(e);return t.getAnnotations=async function(t){O("number"==typeof t,"`pageIndex` must be a number");const{annotationManager:n,totalPages:r}=e.getState();O(t>-1&&t<r,"`pageIndex` must be a number between 0 and "+(r-1)),await(n?.loadAnnotationsForPageIndex(t));const{annotations:o}=e.getState();return o.filter((e=>e.pageIndex===t)).toList()},t.createAttachment=async function(t){const{hash:n}=await(0,T.gj)(t),r=new D.o3({data:t});return e.dispatch((0,M.c)({hash:n,attachment:r})),n},t.getAttachment=async function(t){if(!(0,k.r3)(t))throw new o.uE(`${t} is not a valid attachment.`);const n=e.getState(),r=n.attachments.get(t);if(r){if(r.data)return r.data;throw new o.uE(`Attachment ${t} not found.`)}return O(n.backend),n.backend.getAttachment(t)},t.calculateFittingTextAnnotationBoundingBox=function(t){O(t instanceof C.dh,"The annotation in `calculateFittingTextAnnotationBoundingBox(annotation)` must be of type `PSPDFKit.Annotations.TextAnnotation`"),O("number"==typeof t.pageIndex,"`pageIndex` must be a number");const{viewportState:n,shadowRoot:r}=e.getState(),o=n.pageSizes.get(t.pageIndex);return O(o,"`pageIndex` is not a valid page index in the open document"),(0,I.VN)(t,o,void 0,r)},t.getEmbeddedFiles=async function(){const{backend:t}=e.getState();return O(t),t.getEmbeddedFiles()},t.setOnAnnotationResizeStart=function(t){e.dispatch((0,w.n$)(t))},t.getOverlappingAnnotations=async function(t){O(t instanceof C.YH||t instanceof N.Ay,"Argument must be an annotation or a form field");const{annotationManager:n,annotations:o}=e.getState();if(t instanceof N.Ay){const i=t.annotationIds?t.annotationIds:(0,r.B8)(),a=o.valueSeq().toList().filter((e=>i.includes(e.id)||i.includes(String(e.pdfObjectId)))),s=a.map((e=>e.pageIndex)),l=s.filter(((e,t)=>s.indexOf(e)===t));for(let e=0;e<l.size;e++){const t=l.get(e);t&&await(n?.loadAnnotationsForPageIndex(t))}const c=e.getState().annotations.valueSeq().toList().filter((e=>a.some((t=>t.pageIndex===e.pageIndex)))).filter((e=>!(e instanceof C.sb&&e.formFieldName!==t.formFieldName)));let u,d=(0,r.B8)();return c.size>0&&(u=a.map((e=>e.boundingBox)),d=c.filter((e=>u.some((t=>e.boundingBox.isRectOverlapping(t)))))),d}{await(n?.loadAnnotationsForPageIndex(t.pageIndex));const{annotations:r}=e.getState();return r.filter((e=>!(e.id===t.id))).filter((e=>e.boundingBox.isRectOverlapping(t.boundingBox)&&e.pageIndex===t.pageIndex)).valueSeq().toList()}},n},function(e,t){const n=function(e){const{eventEmitter:t}=e.getState();t.events.push("bookmarks.change","bookmarks.willSave","bookmarks.didSave","bookmarks.load","bookmarks.create","bookmarks.update","bookmarks.delete");const n=()=>t.emit("bookmarks.change"),r=()=>t.emit("bookmarks.willSave"),o=()=>t.emit("bookmarks.didSave"),i=e=>t.emit("bookmarks.load",e),a=e=>t.emit("bookmarks.create",e),s=e=>t.emit("bookmarks.update",e),l=e=>t.emit("bookmarks.delete",e);let c=!1;const u=()=>{if(!c){const{bookmarkManager:t}=e.getState();t&&(t.eventEmitter.on("change",n),t.eventEmitter.on("willSave",r),t.eventEmitter.on("didSave",o),t.eventEmitter.on("load",i),t.eventEmitter.on("create",a),t.eventEmitter.on("update",s),t.eventEmitter.on("delete",l),c=!0)}},d=e.subscribe(u);return u(),()=>{if(c){const{bookmarkManager:t}=e.getState();t.eventEmitter.off("change",n),t.eventEmitter.off("willSave",r),t.eventEmitter.off("didSave",o),t.eventEmitter.off("load",i),t.eventEmitter.off("create",a),t.eventEmitter.off("update",s),t.eventEmitter.off("delete",l),c=!1}d()}}(e);return t.getBookmarks=async function(){const t=await(e.getState().bookmarkManager?.getBookmarks());return j(t),t.toList()},n},function(e,t){const n=function(e){const{eventEmitter:t}=e.getState();t.events.push("formFieldValues.update","formFieldValues.willSave","formFieldValues.didSave","forms.willSubmit","forms.didSubmit","formFields.change","formFields.willSave","formFields.didSave","formFields.load","formFields.create","formFields.update","formFields.delete");const n=e.getState();let{formFields:r}=n;const o=()=>t.emit("formFieldValues.willSave"),i=()=>t.emit("formFieldValues.didSave"),a=e=>t.emit("formFieldValues.update",e),s=e=>t.emit("forms.willSubmit",e),l=e=>t.emit("forms.didSubmit",e),c=()=>t.emit("formFields.willSave"),u=()=>t.emit("formFields.didSave"),d=e=>t.emit("formFields.load",e),h=e=>t.emit("formFields.create",e),f=e=>t.emit("formFields.update",e),m=e=>t.emit("formFields.delete",e);let g=!1,v=!1;const y=()=>{const t=e.getState();if(!g){const{formFieldValueManager:e}=t;e&&(e.eventEmitter.on("willSave",o),e.eventEmitter.on("didSave",i),e.eventEmitter.on("update",a),e.eventEmitter.on("willSubmit",s),e.eventEmitter.on("didSubmit",l),g=!0)}if(!v){const{formFieldManager:e}=t;e&&(0,p.ru)(t)&&(e.eventEmitter.on("willSave",c),e.eventEmitter.on("didSave",u),e.eventEmitter.on("load",d),e.eventEmitter.on("create",h),e.eventEmitter.on("update",f),e.eventEmitter.on("delete",m),v=!0)}},b=e.subscribe((()=>{const n=e.getState().formFields;r!==n&&(r=n,t.emit("formFields.change")),y()}));return y(),()=>{if(g){const{formFieldValueManager:t}=e.getState();t.eventEmitter.off("willSave",o),t.eventEmitter.off("didSave",i),t.eventEmitter.off("update",a),t.eventEmitter.off("willSubmit",s),t.eventEmitter.off("didSubmit",l),g=!1}if(v){const{formFieldManager:t}=e.getState();t.eventEmitter.off("willSave",c),t.eventEmitter.off("didSave",u),t.eventEmitter.off("load",d),t.eventEmitter.off("create",h),t.eventEmitter.off("update",f),t.eventEmitter.off("delete",m),v=!1}b()}}(e);return t.getFormFields=async function(){const{features:t,formFieldManager:n,formsEnabled:r}=e.getState();U(t.includes(P.Y.FORMS),z.PC),U(r,z.rZ),n instanceof H.u&&await n.loadFormFields();const{formFields:o}=e.getState();return o.valueSeq().toList()},t.getFormFieldValues=function(){const{formFields:t,features:n,formsEnabled:o}=e.getState();return U(n.includes(P.Y.FORMS),z.PC),U(o,z.rZ),(0,K.UA)(t).reduce(((e,t)=>(e[t.name]=t.value instanceof r.B8?t.value.toJS():t.value,e)),{})},t.setFormFieldValues=async function(t){const{formFieldManager:n,features:o,formsEnabled:i}=e.getState();U(o.includes(P.Y.FORMS),z.PC),U(i,z.rZ),n instanceof H.u&&await n.loadFormFields();const{formFields:a}=e.getState(),s=Object.keys(t).map((e=>{const n=a.get(e);U(a.has(e),`Tried to set the form field value for form field \`${e}\` which does not exist.`);const o=Array.isArray(t[e])?(0,r.B8)(t[e]):t[e];return n&&(0,z.W4)(n,o),{name:e,value:o,optionIndexes:void 0}}));return new Promise((t=>{e.dispatch((0,$.mV)(s,t))})).then((()=>{})).catch((e=>{throw e}))},t.setOnWidgetAnnotationCreationStart=function(t){const{features:n}=e.getState();U("function"==typeof t,"The callback must be a function."),U(n.includes(P.Y.FORMS),z.PC),U(n.includes(P.Y.FORM_DESIGNER),z.Pf),e.dispatch((0,$.nA)(t))},n},ue.A,function(e,t){function n(){const{selectedAnnotationIds:t,annotations:n}=e.getState();return(0,r.B8)(t.map((e=>{const t=n.get(e);return(0,o.V1)(t),t})))}function i(t,n){if(!t)return void e.dispatch((0,b.J9)());const i=r.B8.isList(t)?t:(0,r.B8)([t]),{annotations:a}=e.getState(),s=e.getState(),l=i.map((t=>{const n=t instanceof C.YH?t.id:t;(0,o.V1)("string"==typeof n,"annotationId must be a string"),(0,o.V1)(a.has(n),"Unknown annotationId. Either the annotation was not yet created or is not yet loaded from the annotation provider.");const r=a.get(n);return(0,o.V1)(r&&(0,k.gf)(r),"Annotations with the `noView` or `hidden` flag set cannot be selected."),r instanceof C.sb&&!s.formDesignMode?e.dispatch((0,w.in)(n)):((0,o.V1)(!(r instanceof C.sb)||s.features.includes(P.Y.FORM_DESIGNER),`Cannot select PSPDFKit.Annotations.WidgetAnnotation: ${z.Pf}`),(0,o.V1)(!(r instanceof C.sb)||(0,p.ah)(s.backend),`Cannot select PSPDFKit.Annotations.WidgetAnnotation: ${z.z8}`)),n}));if(1===l.size){const t=a.get(l.first());e.dispatch((0,b.WS)(l.toSet(),t instanceof C.dh||t instanceof C.s9?n:E.Q.SELECTED))}else e.dispatch((0,b.WS)(l.toSet(),E.Q.SELECTED))}t.getSelectedAnnotation=function(){(0,o.eO)("getSelectedAnnotation","getSelectedAnnotations",!1);const e=n();return e.size>0?e.first():null},t.getSelectedAnnotations=function(){const e=n();return e.size>0?e:null},t.setSelectedAnnotation=function(e){(0,o.eO)("setSelectedAnnotation","setSelectedAnnotations",!1),i(e,E.Q.SELECTED)},t.setSelectedAnnotations=function(e){i(e,E.Q.SELECTED)},t.groupAnnotations=function(t){if(!t||0===t?.size)return;const n=t?.map((e=>e instanceof C.YH?e.id:e));e.dispatch((0,s.vE)(n.toSet()))},t.getAnnotationsGroups=function(){const{annotationsGroups:t}=e.getState();return t.size>=1?t:null},t.deleteAnnotationsGroup=function(t){t&&e.dispatch((0,s.g8)(t))},t.setEditingAnnotation=function(t,n){e.dispatch((0,b.J9)()),!0===n&&e.dispatch((0,b.Co)()),i(t,E.Q.EDITING)};let a=n();const{eventEmitter:l}=e.getState();return l.events.push(...A),e.subscribe((()=>{const e=n();a.every((t=>e.some((e=>e.id===t.id))))&&a.size===e.size?a=e:(a=e,l.emit("annotationSelection.change",e))}))},function(e,t){t.setCustomOverlayItem=function(t){V(t instanceof L.A,"invalid item. Expected an instance of PSPDFKit.CustomOverlayItem"),(0,L.t)(t),e.dispatch((e=>({type:B.Y8N,item:e}))(t))},t.removeCustomOverlayItem=function(t){V("string"==typeof t,"`id` must be a string"),e.dispatch((e=>({type:B.UvZ,id:e}))(t))}},function(e,t){t.setLocale=async function(t){const n=(0,W.vy)(t);await(0,W.G2)(n),e.dispatch((0,s.Qd)(n))},Object.defineProperty(t,"locale",{enumerable:!0,configurable:!1,get:()=>e.getState().locale})},function(e,t){const n=()=>e.getState().searchState;t.search=async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{backend:r,totalPages:o,searchState:{minSearchQueryLength:i}}=e.getState(),a=null!=n.startPageIndex?n.startPageIndex:0,s=null!=n.endPageIndex?n.endPageIndex:o-1,l=n.searchType||oe.n.TEXT,c=n.searchInAnnotations||!1,u="boolean"==typeof n.caseSensitive?n.caseSensitive:l!==oe.n.TEXT;return(0,ae.V)(Object.values(oe.n).includes(l),"searchType is not valid."),l===oe.n.PRESET&&(0,ae.V)(Object.values(ie.N).includes(t),"search query is not a valid search pattern."),(0,ae.V)("number"==typeof a&&"number"==typeof s,"startPageIndex/endPageIndex must be numbers"),(0,ae.V)("boolean"==typeof c,"searchInAnnotations should be boolean"),(0,ae.V)(void 0===n.caseSensitive||"boolean"==typeof n.caseSensitive,"caseSensitive should be boolean"),(0,ae.V)(s>=a,"endPageIndex must be greater than or equal to startPageIndex"),(0,ae.V)(t.length>=i,`"${t}" - search query length (${t.length}) shorter than the minimum (${i})`),(0,ae.V)(r),await r.search(t,a,s-a+1,u,c,l)},Object.defineProperty(t,"searchState",{enumerable:!0,configurable:!1,get:n}),t.setSearchState=function(t){let i=t;if("function"==typeof i&&(i=i.call(null,n())),!(i instanceof re.A)){const e="function"==typeof i?"return value of your update function":"supplied argument";throw new o.uE(`The ${e} is not an instance of PSPDFKit.SearchState.`)}const a=n();i.minSearchQueryLength!==a.minSearchQueryLength&&((0,o.R8)(`Trying to set readonly property SearchState.minSearchQueryLength from ${a.minSearchQueryLength} to ${i.minSearchQueryLength} failed. For more details please see https://www.nutrient.io/api/web/PSPDFKit.SearchState.html#minSearchQueryLength`),i=i.set("minSearchQueryLength",a.minSearchQueryLength)),function(e){if("boolean"!=typeof e.isFocused)throw new o.uE("`isFocused` must be of type boolean.");if("boolean"!=typeof e.isLoading)throw new o.uE("`isLoading` must be of type boolean.");if("string"!=typeof e.term)throw new o.uE("`term` must be of type string.");if("number"!=typeof e.focusedResultIndex)throw new o.uE("`focusedResultIndex` must be of type number.");if(!(e.results instanceof r.B8))throw new o.uE("`results` must be of type PSPDFKit.Immutable.List.")}(i),function(e,t,n){const{dispatch:r}=e;t!==n&&r((0,ne.M9)(n))}(e,n(),i)},t.startUISearch=function(t){const{dispatch:n,getState:r}=e,{searchProvider:o,eventEmitter:i,searchState:{minSearchQueryLength:a}}=r();let s=!1;i.emit("search.termChange",{term:t,preventDefault:()=>{s=!0}}),s||((0,ae.V)(t.length>=a,`"${t}" - search query length (${t.length}) shorter than the minimum (${a})`),n((0,ne.yK)()),n((0,ne.ow)(t)),o?.searchTerm(t))};let i=e.getState();const{eventEmitter:a}=i;return a.events.push(...se),e.subscribe((()=>{const t=e.getState();i.searchState.equals(t.searchState)||a.emit("search.stateChange",t.searchState),i=t}))},function(e,t){t.renderPageAsArrayBuffer=async function(t,n){const{element:r,width:o,height:i}=await te(t,n,e);let a;if(r instanceof HTMLImageElement){const e=document.createElement("canvas");e.width=o,e.height=i,a=e.getContext("2d"),await(0,Q._i)(r),a.drawImage(r,0,0,o,i)}else r instanceof HTMLCanvasElement?a=r.getContext("2d"):ee(!1,"There was an error while rendering the page. Please try again.");return a.getImageData(0,0,o,i).data.buffer},t.renderPageAsImageURL=async function(t,n){const{element:r}=await te(t,n,e);return r instanceof HTMLImageElement?r.src:r instanceof HTMLCanvasElement?URL.createObjectURL(await(0,Q.PG)(r)):void ee(!1,"There was an error while generating the image URL. Please try again.")}},function(e,t){async function n(){let{storedSignatures:t}=e.getState().signatureState;if(!t){const n=(0,G.XC)();await n(e.dispatch,e.getState),t=e.getState().signatureState.storedSignatures}return t||(0,r.B8)()}async function o(t){let n=e.getState().signatureState.storedSignatures;const o=n instanceof r.B8;n||(n=await e.getState().signatureState.populateStoredSignatures());let i=t;"function"==typeof i&&(i=i.call(null,n)),Z(i instanceof r.B8&&i.every((e=>e instanceof D.Eo||e instanceof D.vU)),`The ${"function"==typeof t?"return value of your update function":"supplied argument"} is not a PSPDFKit.Immutable.List of PSPDFKit.Annotations.InkAnnotation or PSPDFKit.Annotations.ImageAnnotation`),o&&n.equals(i)||(e.dispatch((0,G.hJ)(i)),e.getState().eventEmitter.emit("inkSignatures.update",i),e.getState().eventEmitter.emit("inkSignatures.change"),e.getState().eventEmitter.emit("storedSignatures.update",i),e.getState().eventEmitter.emit("storedSignatures.change"))}e.getState().eventEmitter.events.push(...Y,...X),t.getInkSignatures=async function(){return(0,q.eO)("instance.getInkSignatures","instance.getStoredSignatures"),n()},t.getStoredSignatures=n,t.setInkSignatures=async function(e){return(0,q.eO)("instance.setInkSignatures","instance.setStoredSignatures"),o(e)},t.setStoredSignatures=o},F.A,function(e,t){t.setIsEditableComment=function(t){(0,o.V1)("function"==typeof t,"The type for isEditableComment is not valid. Must be `function`."),e.dispatch((0,s.yu)(t))}},me.A,function(e,t){const n=function(e){const{eventEmitter:t}=e.getState();t.events.push("comments.change","comments.willSave","comments.didSave","comments.load","comments.create","comments.update","comments.delete","comments.mention");const n=()=>t.emit("comments.change"),r=()=>t.emit("comments.willSave"),o=()=>t.emit("comments.didSave"),i=e=>t.emit("comments.load",e),a=e=>t.emit("comments.create",e),s=e=>t.emit("comments.update",e),l=e=>t.emit("comments.delete",e);let c=!1;const u=()=>{if(!c){const{commentManager:t}=e.getState();t&&(t.eventEmitter.on("change",n),t.eventEmitter.on("willSave",r),t.eventEmitter.on("didSave",o),t.eventEmitter.on("load",i),t.eventEmitter.on("create",a),t.eventEmitter.on("update",s),t.eventEmitter.on("delete",l),c=!0)}},d=e.subscribe(u);return u(),()=>{if(c){const{commentManager:t}=e.getState();t&&(t.eventEmitter.off("change",n),t.eventEmitter.off("willSave",r),t.eventEmitter.off("didSave",o),t.eventEmitter.off("load",i),t.eventEmitter.off("create",a),t.eventEmitter.off("update",s),t.eventEmitter.off("delete",l)),c=!1}d()}}(e);return t.getComments=async function(){const{comments:t,backend:n}=e.getState(),r=t.filter((e=>!(0,ge.Jm)(e))).toList();return r.size||!n?.isUsingInstantProvider()?r:new Promise((t=>{const n=setInterval((()=>{const{hasFetchedInitialRecordsFromInstant:r,comments:o}=e.getState();r&&(clearInterval(n),t(o.filter((e=>!(0,ge.Jm)(e))).toList()))}),500)}))},t.setMentionableUsers=function(t){e.dispatch((0,ve.fJ)(t))},t.setMaxMentionSuggestions=function(t){e.dispatch((0,ve.uY)(t))},t.setOnCommentCreationStart=function(t){(0,o.V1)("function"==typeof t,"The callback must be a function."),e.dispatch((0,ve.bH)(t))},n},ye.A,function(e,t){const n=function(e){const{eventEmitter:t}=e.getState();t.events.push("document.saveStateChange");const n=e=>{t.emit("document.saveStateChange",e)};let r=!1;const i=()=>{if(!r){const{changeManager:t}=e.getState();t&&(t.eventEmitter.on("saveStateChange",n),r=!0)}},a=e.subscribe((()=>{i()}));return i(),()=>{if(r){const{changeManager:t}=e.getState();(0,o.V1)(t),t.eventEmitter.off("saveStateChange",n),r=!1}a()}}(e);return t.save=async function(){const{changeManager:t}=e.getState();return(0,o.V1)(t),t.save(!0)},t.hasUnsavedChanges=function(){const{changeManager:t}=e.getState();return(0,o.V1)(t),t.hasUnsavedChanges()},t.syncChanges=async function(){const{backend:n}=e.getState();if((0,o.V1)(n),!n.isUsingInstantProvider())throw new o.uE("You need PSPDFKit Instant to use this method.");return t.save()},t.create=async function(t){const{changeManager:n,backend:r}=e.getState();return(0,o.V1)(n&&r),we(r,(()=>n.create(be(t))))},t.update=async function(t){const{changeManager:n,backend:r}=e.getState();return(0,o.V1)(n&&r),we(r,(()=>n.update(be(t))))},t.delete=async function(t){const{changeManager:n,backend:r}=e.getState();return(0,o.V1)(n&&r),we(r,(()=>n.delete(be(t))))},t.ensureChangesSaved=async function(t){const{changeManager:n,backend:r}=e.getState();return(0,o.V1)(n&&r),"STANDALONE"===r?.type&&await(r?.setFormJSONUpdateBatchMode(!1)),n.ensureChangesSaved(be(t))},n},ye.A,function(e,t){t.setGroup=function(t){const{backend:n}=e.getState();n?.isCollaborationPermissionsEnabled()?e.dispatch((0,s.sI)(t)):(0,o.R8)("`instance.setGroup` is no-op if Collaboration Permissions is not enabled.")},t.resetGroup=function(){const{backend:t}=e.getState();t?.isCollaborationPermissionsEnabled()?e.dispatch((0,s.sI)(t.getDefaultGroup())):(0,o.R8)("`instance.setGroup` is no-op if Collaboration Permissions is not enabled.")}},function(e,t){const n=()=>e.getState().documentEditorFooterItems,o=()=>e.getState().documentEditorToolbarItems;Object.defineProperty(t,"documentEditorFooterItems",{enumerable:!0,configurable:!1,get:()=>n().toJS()}),Object.defineProperty(t,"documentEditorToolbarItems",{enumerable:!0,configurable:!1,get:()=>o().toJS()}),t.setDocumentEditorFooterItems=function(t){const{features:o}=e.getState();(0,ae.V)(o.includes(P.Y.DOCUMENT_EDITING),F.Q);let i=t;"function"==typeof i&&(i=i(n().toJS())),ke(Array.isArray(i),`The ${"function"==typeof t?"return value of your update function":"supplied argument"} is not an array.`),i.forEach(Ce.t);const a=(0,r.ss)(i);var s;n().equals(a)||e.dispatch((s=a,{type:B.$j9,documentEditorFooterItems:s}))},t.setDocumentEditorToolbarItems=function(t){const{features:n}=e.getState();(0,ae.V)(n.includes(P.Y.DOCUMENT_EDITING),F.Q);let i=t;"function"==typeof i&&(i=i(o().toJS())),ke(Array.isArray(i),`The ${"function"==typeof t?"return value of your update function":"supplied argument"} is not an array.`),i.forEach(Ee.t);const a=(0,r.ss)(i);var s;o().equals(a)||e.dispatch((s=a,{type:B.tpQ,documentEditorToolbarItems:s}))}},function(e,t){function n(){const{isHistoryEnabled:t,undoActions:n}=e.getState();return t&&n.size>0}function r(){const{isHistoryEnabled:t,redoActions:n}=e.getState();return t&&n.size>0}e.getState().eventEmitter.events.push(...Se),t.history={},t.history.undo=async function(){return!!n()&&(e.dispatch((0,xe.tN)()),!0)},t.history.redo=async function(){return!!r()&&(e.dispatch((0,xe.ZS)()),!0)},t.history.canUndo=function(){return n()},t.history.canRedo=function(){return r()},t.history.clear=function(){e.dispatch((0,xe.g4)())},t.history.enable=function(){e.dispatch((0,xe.GJ)())},t.history.disable=function(){e.dispatch((0,xe.tw)())}},function(e,t){t.parseXFDF=async(t,n)=>{const{backend:r}=e.getState();return(0,o.V1)(r,"backend is null."),(0,o.V1)("STANDALONE"===r.type,"`instance.parseXFDF` only works in standalone mode."),r.parseXFDF(t,n??!1)}},function(e,t){e.getState().eventEmitter.events.push(...Ae),t.setDocumentComparisonMode=async function(t){const{features:n,backend:r,viewportState:{documentComparisonMode:i}}=e.getState();if((0,o.V1)(n.includes(P.Y.DOCUMENT_COMPARISON),ze.wv),(0,o.V1)("STANDALONE"===r?.type,ze.JT),function(e){if("object"!=typeof e)throw new o.uE("`PSPDFKit.DocumentComparisonConfiguration` must be a `PSPDFKit.DocumentComparisonConfiguration` plain object, or `null`.");if(null===e)return;if("boolean"!=typeof e.autoCompare)throw new o.uE("`PSPDFKit.DocumentComparisonConfiguration.autoCompare` must be a boolean value.");if("object"!=typeof e.documentA||null===e.documentA)throw new o.uE("`PSPDFKit.DocumentComparisonConfiguration.documentA` must be a plain object.");if("object"!=typeof e.documentB||null===e.documentB)throw new o.uE("`PSPDFKit.DocumentComparisonConfiguration.documentB` must be a plain object.");if(!("string"==typeof e.documentA.source||e.documentA.source instanceof ArrayBuffer||e.documentA.source instanceof Promise))throw new o.uE("`PSPDFKit.DocumentComparisonConfiguration.documentA#source` must be a string, an ArrayBuffer or a Promise object resolving to a string or an ArrayBuffer.");if(!("string"==typeof e.documentB.source||e.documentB.source instanceof ArrayBuffer||e.documentB.source instanceof Promise))throw new o.uE("`PSPDFKit.DocumentComparisonConfiguration.documentB#source` must be a string, an ArrayBuffer or a Promise object resolving to a string or an ArrayBuffer.");if(void 0!==e.documentA.pageIndex&&"number"!=typeof e.documentA.pageIndex)throw new o.uE("If provided, `PSPDFKit.DocumentComparisonConfiguration.documentA#pageIndex` must be a number.");if(void 0!==e.documentB.pageIndex&&"number"!=typeof e.documentB.pageIndex)throw new o.uE("If provided, `PSPDFKit.DocumentComparisonConfiguration.documentB#pageIndex` must be a number.");if(void 0!==e.blendMode&&!Object.values(Pe.N).includes(e.blendMode))throw new o.uE("If provided, `PSPDFKit.DocumentComparisonConfiguration.blendMode` must be a `PSPDFKit.BlendMode`.");if(void 0!==e.strokeColors&&("object"!=typeof e.strokeColors||null===e.strokeColors))throw new o.uE("If provided, `PSPDFKit.DocumentComparisonConfiguration.strokeColors` must be a plain object.");if("object"==typeof e.strokeColors){if(void 0!==e.strokeColors.documentA&&!(e.strokeColors.documentA instanceof D.Q1))throw new o.uE("If provided, `PSPDFKit.DocumentComparisonConfiguration.strokeColors#documentA` must be a `PSPDFKit.Color` value.");if(void 0!==e.strokeColors.documentB&&!(e.strokeColors.documentB instanceof D.Q1))throw new o.uE("If provided, `PSPDFKit.DocumentComparisonConfiguration.strokeColors#documentB` must be a `PSPDFKit.Color` value.");e.strokeColors.documentA&&e.strokeColors.documentB&&e.strokeColors.documentA.equals(e.strokeColors.documentB)&&(0,o.R8)("The values provided for `PSPDFKit.DocumentComparisonConfiguration.strokeColors#documentA` and `PSPDFKit.DocumentComparisonConfiguration.strokeColors#documentB` are identical.")}}(t),t)e.dispatch((0,s.FS)(t));else if(i){const{completion:{end:{promise:t}}}=i;return e.dispatch((0,s.FS)(null)),t}}},a.Ay,function(e,t){t.getPageTabOrder=async function(t){const{pages:n,backend:r}=e.getState();if((0,o.V1)(r),"STANDALONE"!==r.type)throw new o.uE("`instance.getTabOrder()` is only available in Standalone mode.");if("number"!=typeof t)throw new o.uE("pageIndex must be a number.");if(t>=n.size||t<0)throw new o.uE(`pageIndex is out of bounds. Please provide a value between 0 and ${n.size-1}.`);const i=n.get(t);if(!i)throw new o.uE(`Cannot retrieve tab order for page: page ${t} does not exist.`);if(i.tabOrder)return i.tabOrder;await r.provider.updateTabOrder(t);const{pages:a}=e.getState(),s=a.get(t);if(!s)throw new o.uE(`Cannot retrieve tab order for page: page ${t} does not exist.`);if(!s.tabOrder)throw new o.uE(`Cannot retrieve tab order for page: page ${t} does not have a tab order.`);return s.tabOrder},t.setPageTabOrder=async function(t,n){if("function"!=typeof n)throw new o.uE("annotationIdsSortCallback must be a function.");const{backend:r,annotations:i,pages:a}=e.getState();if((0,o.V1)(r),"STANDALONE"!==r.type)throw new o.uE("`instance.getTabOrder()` is only available in Standalone mode.");if(!a.get(t))throw new o.uE(`Cannot set tab order for page: page ${t} does not exist.`);const s=n((await this.getPageTabOrder(t)).map((e=>i.get(e))).filter(Boolean));if(!Array.isArray(s))throw new o.uE("annotationIdsSortCallback must return an array of annotation IDs.");const l=s.map((e=>{const t=i.get(e);if(!t)throw new o.uE(`Annotation with ID ${e} does not exist.`);return{id:t.id,pdfObjectId:t.pdfObjectId}}));return e.dispatch((0,w.pk)(t,l)),r.provider.setTabOrder(t,l)}},_e.A],Ke="You need PSPDFKit Instant to use this method.",He="You need to enable clients presence in your configuration (`instant: { clientsPresenceEnabled: true }`) to use this method.";class $e{constructor(e){let{store:t,backend:n,eventEmitter:a}=e;a.events.push(...Le);let w=!1;const x=Ve.map((e=>e(t,this)));let S=(0,r.T5)();t.dispatch((0,s.rY)((e=>{w||(S=e.map((e=>(0,c.L)(e))),a.emit("instant.connectedClients.change",S))}))),Object.defineProperty(this,"totalPageCount",{enumerable:!0,configurable:!1,get:()=>t.getState().totalPages}),this.pageInfoForIndex=function(e){const n=t.getState().pages.get(e);return n?(0,l.K)(n):null},this.textLinesForPageIndex=async function(e){const{promise:t}=n.textForPageIndex(e);return t},this.toggleClipboardActions=function(e){Be("boolean"==typeof e,"`toggleClipboardActions` expects a boolean as an argument"),t.dispatch((0,s.ot)(e))},this.setMeasurementSnapping=function(e){Be("boolean"==typeof e,"`setMeasurementSnapping` expects a boolean as an argument"),Be(t.getState().features.includes(P.Y.MEASUREMENT_TOOLS),Ne.Z),t.dispatch((0,s.F)(e))},this.setMeasurementPrecision=function(e){Be("string"==typeof e,"`setMeasurementPrecision` expects a string as an argument"),Be(t.getState().features.includes(P.Y.MEASUREMENT_TOOLS),Ne.Z),t.dispatch((0,s.bK)(e))},this.setMeasurementScale=function(e){Be(e instanceof Ie.A,"`setMeasurementScale` expects an instance of `MeasurementScale` as an argument"),Be(t.getState().features.includes(P.Y.MEASUREMENT_TOOLS),Ne.Z),t.dispatch((0,s.ZY)(e))},this.setMeasurementValueConfiguration=e=>{Be("function"==typeof e,"The `measurementValueConfigurationCallback` argument must be a function."),Be(t.getState().features.includes(P.Y.MEASUREMENT_TOOLS),Ne.Z),t.dispatch((0,s.kl)(e))},this.getMarkupAnnotationText=async function(e){return Be(e instanceof u.A,"annotation must be a PSPDFKit.Annotations.MarkupAnnotation"),n.getTextFromRects(e.pageIndex,e.rects)},this.getTextFromRects=async function(e,t){return Be("number"==typeof e,"pageIndex must be a number"),Be(t instanceof r.B8&&t.every((e=>e instanceof g.rw)),"rects must be a PSPDFKit.Immutable.List of PSPDFKit.Geometry.Rect"),n.getTextFromRects(e,t)},this.getDocumentPermissions=async function(){return(0,p.sj)(t.getState())},Object.defineProperty(this,"currentZoomLevel",{enumerable:!0,configurable:!1,get:()=>t.getState().viewportState.zoomLevel}),Object.defineProperty(this,"annotationCreatorName",{enumerable:!0,configurable:!1,get:()=>t.getState().annotationCreatorName}),Object.defineProperty(this,"maximumZoomLevel",{enumerable:!0,configurable:!1,get(){const{viewportState:e}=t.getState();return(0,d.m9)(e)}}),Object.defineProperty(this,"minimumZoomLevel",{enumerable:!0,configurable:!1,get(){const{viewportState:e}=t.getState();return(0,d.m0)(e)}}),Object.defineProperty(this,"zoomStep",{enumerable:!0,configurable:!1,get(){const{viewportState:e}=t.getState();return e.zoomStep}}),Object.defineProperty(this,"disablePointSnapping",{get(){const{viewportState:e}=t.getState();return e.disablePointSnapping}}),Object.defineProperty(this,"connectedClients",{enumerable:!0,configurable:!1,get:()=>n.isUsingInstantProvider()?n.hasClientsPresence()?S:((0,o.R8)(He),(0,r.T5)()):((0,o.R8)(Ke),(0,r.T5)())}),Object.defineProperty(this,"enableAlwaysScrollToZoom",{get(){const{viewportState:e}=t.getState();return e.enableAlwaysScrollToZoom}}),this.addEventListener=function(e,t){Be("instant.connectedClients.change"!==e||n.isUsingInstantProvider(),Ke),Be("instant.connectedClients.change"!==e||n.hasClientsPresence(),He),Be(!e.startsWith("comments.")||(0,p.oj)(n),Ke);const r=Ue(e);try{a.on(r,t)}catch(e){throw new o.uE(e)}},this.removeEventListener=function(e,t){Be("instant.connectedClients.change"!==e||n.isUsingInstantProvider(),Ke),Be("instant.connectedClients.change"!==e||n.hasClientsPresence(),He);const r=Ue(e);try{a.off(r,t)}catch(e){throw new o.uE(e)}},this.jumpToRect=function(e,n){const{totalPages:r}=t.getState();Be(e>=0&&e<r,`Could not find page with index ${e} in this document.`),Be(n instanceof g.rw,"rect must be of type `PSPDFKit.Geometry.Rect`."),t.dispatch((0,f.YQ)(e,n))},this.jumpAndZoomToRect=function(e,n){const{totalPages:r}=t.getState();Be(e>=0&&e<r,`Could not find page with index ${e} in this document.`),Be(n instanceof g.rw,"rect must be of type `PSPDFKit.Geometry.Rect`."),t.dispatch((0,f.kw)(e,n))},this.transformContentClientToPageSpace=function(e,n){const{totalPages:r,viewportState:o}=t.getState();Be(n>=0&&n<r,`Could not find page with index ${n} in this document.`),Be(e instanceof g.rw||e instanceof g.bR,"rectOrPoint must be of type `PSPDFKit.Geometry.Rect` or `PSPDFKit.Geometry.Point`.");const i=(0,h.NJ)(o,n);return e.apply(i)},this.transformContentPageToClientSpace=function(e,n){const{totalPages:r,viewportState:o}=t.getState();Be(n>=0&&n<r,`Could not find page with index ${n} in this document.`),Be(e instanceof g.rw||e instanceof g.bR,"rectOrPoint must be of type `PSPDFKit.Geometry.Rect` or `PSPDFKit.Geometry.Point`.");const i=(0,h.zo)(o,n);return e.apply(i)},this.transformClientToPageSpace=function(e,n){const{totalPages:r,viewportState:o,rootElement:i}=t.getState();Be(n>=0&&n<r,`Could not find page with index ${n} in this document.`),Be(e instanceof g.rw||e instanceof g.bR,"rectOrPoint must be of type `PSPDFKit.Geometry.Rect` or `PSPDFKit.Geometry.Point`.");const a=i?.getBoundingClientRect(),s=(0,h.NJ)(o,n).translate({x:-a.left,y:-a.top});return e.apply(s)},this.transformPageToClientSpace=function(e,n){const{totalPages:r,viewportState:o,rootElement:i}=t.getState();Be(n>=0&&n<r,`Could not find page with index ${n} in this document.`),Be(e instanceof g.rw||e instanceof g.bR,"rectOrPoint must be of type `PSPDFKit.Geometry.Rect` or `PSPDFKit.Geometry.Point`.");const a=i?.getBoundingClientRect(),s=(0,h.zo)(o,n);return e.translate(new g.bR({x:a.left,y:a.top})).apply(s)},this.transformRawToPageSpace=function(e,n){Be(null!=n,"No page index was provided as second parameter to this function.");const{pages:r}=t.getState(),o=r.get(n);Be(o,`No page found with pageIndex ${n}`);let i=null;if(e instanceof g.Yy)i=e;else{i=(0,Te.J)(e);const t=i.top;i=i.set("top",i.bottom).set("bottom",t)}let a=i.apply(o.matrix);const s=g.rw.fromInset(a),l=a.top;return a=a.set("top",a.bottom).set("bottom",l),s.set("top",o.pageSize.height-a.top)},this.transformPageToRawSpace=function(e,n){Be(null!=n,"No page index was provided as second parameter to this function.");const{pages:r}=t.getState(),o=r.get(n);Be(o,`No page found with pageIndex ${n}`);let i=g.Yy.fromRect(e);const{height:a}=o.pageSize,s=a-i.top;i=i.set("top",s).set("bottom",s-e.height);const l=i.apply(o.reverseMatrix),c=l.top;return l.set("top",l.bottom).set("bottom",c)},this.exportOffice=async function(e){if(!e||!e.format||!Object.values(je.z).includes(e.format))throw new o.uE(`An object has to be passed to \`instance.exportOffice()\` specifying one of the supported output formats\n        in the \`format\` property: ${Object.values(je.z).map((e=>`PSPDFKit.OfficeDocumentFormat.${e}`)).join(", ")}`);return n.exportOffice(e)},this.exportPDF=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=t.getState();if((0,p.Ko)(r)){let t;return e.flattenElectronicSignatures&&"STANDALONE"===n.type&&(t=r.annotations.toList().filter((e=>(e instanceof Re.A||e instanceof Oe.A)&&e.isSignature)).map((e=>({pageIndex:e.pageIndex,id:e.id,pdfObjectId:e.pdfObjectId})))),n.exportPDF(e,t?.toArray())}throw new o.uE("This document permissions do not allow exporting.")},this.exportXFDF=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return n.exportXFDF(e)},this.exportInstantJSON=async function(e){return n.exportInstantJSON(e)},this._destroy=function(){x.filter(Boolean).forEach((e=>{e?.()})),w=!0},this.print=function(e){const n=t.getState(),{isPrinting:r}=n,i=(0,p.$n)(n);e&&"object"!=typeof e&&(0,o.R8)("PSPDFKit.Instance.print: options must be an object. If you want to pass the `printMode`, use `{ mode: PSPDFKit.PrintMode.DOM }` instead.");const a="object"==typeof e?e.mode:e;if(!i)throw new o.uE("Tried to start a print job while printing is disabled.");if(r)throw new o.uE("Tried to start a print job while another one was already being processed.\nUse PSPDFKit.Instance#abortPrint to terminate the current print job.\n        ");if(a&&!Object.prototype.hasOwnProperty.call(m.l,a))throw new o.uE("The supplied printMode is not valid.\nValid `printMode`s are: PSPDFKit.PrintMode.DOM, PSPDFKit.PrintMode.EXPORT_PDF");t.dispatch(y.yy({mode:a,excludeAnnotations:"object"==typeof e&&e.excludeAnnotations}))},this.setAnnotationCreatorName=function(e){const{annotationCreatorNameReadOnly:n}=t.getState();if(n)throw new o.uE("When the annotation creator name is defined on the JWT it can't be overriden.");t.dispatch((0,s.x4)(e))},this.setCustomRenderers=function(e){t.dispatch((0,s.QD)(e))},this.setCustomUIConfiguration=function(e){const{customUIStore:n}=t.getState();if(n?.getState()===e)return;let r,o;r="function"==typeof e?e(n?.getState()||null):e,(0,De.I)(r),n||(o=new i.A(r),t.dispatch((0,s.lD)(o))),(n||o).setState(r)},this.setInlineTextSelectionToolbarItems=e=>{Be("function"==typeof e,"The inlineTextSelectionToolbarItemsCallback argument must be a function."),t.dispatch((0,b.kJ)(e))},this.abortPrint=function(){const e=t.getState(),{isPrinting:n}=e;if(!(0,p.$n)(e))throw new o.uE("Tried to terminate a print job while printing is disabled.");if(!n)throw new o.uE("No print job to abort found.");t.dispatch(y.gr())},this.getDocumentOutline=async function(){const e=t.getState();if(e.documentOutlineState.elements)return e.documentOutlineState.elements;Be(e.backend);const n=await e.backend.getDocumentOutline();return t.dispatch((0,v.K)(n)),n},this.setDocumentOutline=async function(e){const n=t.getState();Be(n.backend);try{await n.backend.setDocumentOutline(e)}catch(e){throw new o.uE(`Failed to set the document outline: ${e.message}`,e)}t.dispatch((0,v.K)(e))},this.getPageGlyphs=async function(e){const n=t.getState();return Be(n.backend),Be("number"==typeof e&&Number.isInteger(e)&&e>=0&&e<n.totalPages,`Page index must be an integer between 0 and ${n.totalPages-1} (number of pages - 1) inclusive.`),n.backend.getPageGlyphs(e)},this.getLayers=async function(){const e=t.getState();return Be(e.backend),e.backend.getOCGs()},this.getLayersVisibilityState=async function(){const e=t.getState();return Be(e.backend),e.backend.getOCGVisibilityState()},this.setLayersVisibilityState=async function(e){t.dispatch((0,Me.gp)(e))},Object.defineProperty(this,"contentWindow",{enumerable:!0,configurable:!1,get:()=>t.getState().frameWindow}),Object.defineProperty(this,"contentDocument",{enumerable:!0,configurable:!1,get:()=>t.getState().shadowRoot||t.getState().frameWindow?.document}),Object.defineProperty(this,"licenseFeatures",{enumerable:!0,configurable:!1,get:()=>t.getState().features}),("production"!==(0,Fe.uc)()||t.getState().isTextComparison)&&(this._store=t,this._eventEmitter=a)}}function Ue(e){switch(e){case"annotations.onPress":case"textLine.onPress":case"page.onPress":{const t=e.replace(".onPress",".press");return(0,o.t6)(`The event ${e} was renamed and will be removed in a a future version. Please use ${t} instead.`),t}default:return e}}},16315:(e,t,n)=>{"use strict";n.d(t,{default:()=>Yt});n(75417);"object"==typeof window&&(window._babelPolyfill=!1);var r=n(49568),o=n(85409),i=n(3984),a=n(84387),s=n(65262),l=n(70778),c=n(90820),u=n(51946),d=n(44268),p=n(13649),h=n(82079),f=n(79154),m=n(9945);function g(e,t){y(e,t),t.add(e)}function v(e,t,n){y(e,t),t.set(e,n)}function y(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function b(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}var w=new WeakMap,x=new WeakMap,S=new WeakMap,_=new WeakMap,C=new WeakMap,E=new WeakMap,k=new WeakMap,z=new WeakMap,P=new WeakMap,A=new WeakSet,D=new WeakSet,T=new WeakSet,I=new WeakSet,M=new WeakSet,N=new WeakSet,O=new WeakSet,R=new WeakSet;class j{constructor(e){g(this,R),g(this,O),g(this,N),g(this,M),g(this,I),g(this,T),g(this,D),g(this,A),v(this,w,{writable:!0,value:void 0}),v(this,x,{writable:!0,value:void 0}),v(this,S,{writable:!0,value:void 0}),v(this,_,{writable:!0,value:void 0}),v(this,C,{writable:!0,value:void 0}),v(this,E,{writable:!0,value:void 0}),v(this,k,{writable:!0,value:void 0}),v(this,z,{writable:!0,value:void 0}),v(this,P,{writable:!0,value:void 0}),(0,p.A)(this,w,e)}annotationFocused(e){(0,d.A)(this,w).invokeMethodAsync(this.annotationFocused.name,e)}async annotationPressed(e){const t=await(0,d.A)(this,w).invokeMethodAsync("annotationsPressed",e.annotation.id,e.selected);e.preventDefault=t}annotationSelected(e){(0,d.A)(this,w).invokeMethodAsync(this.annotationSelected.name,e)}annotationToolbarButtonClicked(e,t){(0,d.A)(this,w).invokeMethodAsync(this.annotationToolbarButtonClicked.name,e,t)}annotationUnfocused(e){(0,d.A)(this,w).invokeMethodAsync(this.annotationUnfocused.name,e)}mainToolbarButtonClicked(e){(0,d.A)(this,w).invokeMethodAsync(this.mainToolbarButtonClicked.name,e)}subscribeToEvent(e,t){switch(e){case"annotations.change":(0,p.A)(this,x,(()=>b(this,A,F).call(this))),t.addEventListener(e,(0,d.A)(this,x));break;case"annotations.create":(0,p.A)(this,S,(e=>b(this,D,B).call(this,e))),t.addEventListener(e,(0,d.A)(this,S));break;case"annotations.delete":(0,p.A)(this,_,(e=>b(this,T,L).call(this,e))),t.addEventListener(e,(0,d.A)(this,_));break;case"annotations.didSave":(0,p.A)(this,C,(()=>b(this,I,V).call(this))),t.addEventListener(e,(0,d.A)(this,C));break;case"annotations.load":(0,p.A)(this,E,(e=>b(this,M,K).call(this,e))),t.addEventListener(e,(0,d.A)(this,E));break;case"annotations.update":(0,p.A)(this,P,(e=>b(this,N,H).call(this,e))),t.addEventListener(e,(0,d.A)(this,P));break;case"annotations.willChange":(0,p.A)(this,k,(e=>b(this,O,$).call(this,e))),t.addEventListener(e,(0,d.A)(this,k));break;case"annotations.willSave":(0,p.A)(this,z,(()=>b(this,R,U).call(this))),t.addEventListener(e,(0,d.A)(this,z))}}unsubscribeFromEvent(e,t){switch(e){case"annotations.change":t.removeEventListener(e,(0,d.A)(this,x));break;case"annotations.create":t.removeEventListener(e,(0,d.A)(this,S));break;case"annotations.delete":t.removeEventListener(e,(0,d.A)(this,_));break;case"annotations.didSave":t.removeEventListener(e,(0,d.A)(this,C));break;case"annotations.load":t.removeEventListener(e,(0,d.A)(this,E));break;case"annotations.update":t.removeEventListener(e,(0,d.A)(this,P));break;case"annotations.willChange":t.removeEventListener(e,(0,d.A)(this,k));break;case"annotations.willSave":t.removeEventListener(e,(0,d.A)(this,z))}}viewStateUpdated(e,t){const{interactionMode:n,sidebarMode:r}=e;n==t.interactionMode&&r==t.sidebarMode||(0,d.A)(this,w).invokeMethodAsync(this.viewStateUpdated.name,JSON.stringify({interactionMode:n,sidebarMode:r}))}}function F(){(0,d.A)(this,w).invokeMethodAsync("annotationsChanged")}function B(e){(0,d.A)(this,w).invokeMethodAsync("annotationsCreated",JSON.stringify(e))}function L(e){(0,d.A)(this,w).invokeMethodAsync("annotationsDeleted",JSON.stringify(e))}function V(){(0,d.A)(this,w).invokeMethodAsync("annotationsDidSave")}function K(e){(0,d.A)(this,w).invokeMethodAsync("annotationsLoaded",JSON.stringify(e))}function H(e){(0,d.A)(this,w).invokeMethodAsync("annotationsUpdated",JSON.stringify(e))}function $(e){(0,d.A)(this,w).invokeMethodAsync("annotationsWillChange",JSON.stringify(e.annotations),e.reason)}function U(){(0,d.A)(this,w).invokeMethodAsync("annotationsWillSave")}var W=n(30830),q=n(30235),G=n(97881);function Z(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var Y=new WeakMap;class X{constructor(e){Z(this,Y,{writable:!0,value:void 0}),(0,p.A)(this,Y,e)}async applyRedactions(){await(0,d.A)(this,Y).applyRedactions()}async createAnnotation(e){const[t]=await(0,d.A)(this,Y).create((0,G.h8)(null,JSON.parse(e)));return t.id}deleteAnnotations(e){(0,d.A)(this,Y).delete(JSON.parse(e))}async exportInstantJSON(){return await(0,d.A)(this,Y).exportInstantJSON()}async flattenAnnotations(e){(0,d.A)(this,Y).applyOperations([{type:"flattenAnnotations",pageIndexes:e}])}async getAnnotations(e){const t=await(0,d.A)(this,Y).getAnnotations(e),n=[];return t.forEach((e=>{try{const t=(0,G.eq)(e);n.push(t)}catch(e){if("Unsupported annotation type"!==e.message)throw e}})),JSON.stringify(n)}importInstantJSON(e){(0,d.A)(this,Y).applyOperations([{type:"applyInstantJson",instantJson:e}])}setSelectedAnnotations(e){(0,d.A)(this,Y).setSelectedAnnotations(null==e?null:(0,r.B8)(JSON.parse(e)))}updateAnnotation(e){const t=JSON.parse(e),n=(0,G.h8)(t.id,t);(0,d.A)(this,Y).update(n)}}function J(e,t){ee(e,t),t.add(e)}function Q(e,t,n){ee(e,t),t.set(e,n)}function ee(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function te(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}var ne=new WeakMap,re=new WeakMap,oe=new WeakMap,ie=new WeakMap,ae=new WeakMap,se=new WeakMap,le=new WeakMap,ce=new WeakMap,ue=new WeakSet,de=new WeakSet,pe=new WeakSet,he=new WeakSet,fe=new WeakSet,me=new WeakSet;async function ge(e,t){const{CustomStylesheetPath:n,License:r,PackageName:o,ProductId:i,instantJson:a,IsDarkTheme:s,UseInBuiltFilePicker:l,toolbarItems:c,toolbarPlacement:u}=JSON.parse(t),f={licenseKey:r,container:(0,d.A)(this,ne),document:e,theme:s?m.S.DARK:m.S.LIGHT,appName:o,productId:te(this,pe,ye).call(this,i),toolbarItems:c,toolbarPlacement:u,initialViewState:te(this,fe,we).call(this,t),instantJSON:a};n&&(f.styleSheets=[n]);const g="undefined"!=typeof advanceConfiguration?{...advanceConfiguration,...f}:f;if(this.currentDocument=await(0,h.Hh)(g),(0,p.A)(this,oe,new X(this.currentDocument)),this.currentDocument.setToolbarItems((e=>(0,d.A)(this,ae)?(0,d.A)(this,ae):e)),this.currentDocument.setAnnotationToolbarItems(((e,t)=>{let{defaultAnnotationToolbarItems:n}=t;const r=e?te(this,de,ve).call(this,e):this.currentDocument.viewState.interactionMode===q.O.INK_ERASER?q.O.INK_ERASER:null;if(r){const e=(0,d.A)(this,ie).get(r);if(e)return e}return n})),te(this,me,xe).call(this),l){const e={type:"custom",id:"file-picker",title:"Pick document",onPress:()=>{te(this,he,be).call(this),(0,d.A)(this,ce)||((0,p.A)(this,ce,document.getElementById("filePicker")),(0,d.A)(this,ce)?.addEventListener("change",(e=>{const n=e?.target?.files[0];if(n){const e=new FileReader;e.onload=async e=>{const n=new Uint8Array(e.target.result);this.unload(),await te(this,ue,ge).call(this,n.buffer,t)},e.readAsArrayBuffer(n)}}))),(0,d.A)(this,ce)?.click()},icon:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 20.5H7C6.60218 20.5 6.22064 20.342 5.93934 20.0607C5.65804 19.7794 5.5 19.3978 5.5 19V5C5.5 4.60218 5.65804 4.22064 5.93934 3.93934C6.22064 3.65804 6.60218 3.5 7 3.5H14L18.5 8V14" stroke="#3D424E" stroke-miterlimit="10" stroke-linecap="round"/><path opacity="0.66" d="M14.4963 8.21565H18.01L13.7936 3.99927V7.51292C13.796 7.69854 13.8708 7.87587 14.0021 8.00714C14.1334 8.1384 14.3107 8.21322 14.4963 8.21565Z" fill="#3D424E"/><path d="M18.5 18V23" stroke="#3D424E" stroke-miterlimit="10" stroke-linecap="round"/><path d="M21 20.5H16" stroke="#3D424E" stroke-miterlimit="10" stroke-linecap="round"/></svg>'};this.currentDocument.setToolbarItems((t=>[e,...t]))}}function ve(e){if(e instanceof u.Eo)return u.Eo.readableName;if(e instanceof u.Zx)return u.Zx.readableName;if(e instanceof u.Go)return u.Go.readableName;if(e instanceof u.MU)return u.MU.readableName;if(e instanceof u.ug)return u.ug.readableName;if(e instanceof u.Si)return u.Si.readableName;if(e instanceof u.h5)return u.h5.readableName;if(e instanceof u.tr)return u.tr.readableName;if(e instanceof u.vU)return u.vU.readableName;if(e instanceof u.xY)return u.xY.readableName;if(e instanceof u.sb)return u.sb.readableName;if(e instanceof u.dh)return u.dh.readableName;if(e instanceof u.s9)return u.s9.readableName;if(e instanceof u.UL)return u.UL.readableName;throw"Unknown annotation type"}function ye(e){return`Maui_${e}`}function be(){if(!(0,d.A)(this,se)){const e=document.getElementById("documentLoadingIndicator");if(!e)return;(0,p.A)(this,se,e)}(0,d.A)(this,se).style.visibility="collapse"}function we(e){const{interactionMode:t,sidebarMode:n,showToolbar:r}=JSON.parse(e);return new W.A({interactionMode:t,showToolbar:r,sidebarMode:n})}function xe(){this.currentDocument.addEventListener("viewState.change",((e,t)=>{(0,d.A)(this,re).viewStateUpdated(e,t)})),this.currentDocument.addEventListener("annotations.focus",(e=>{(0,d.A)(this,re).annotationFocused(e.annotation.id)})),this.currentDocument.addEventListener("annotations.blur",(e=>{(0,d.A)(this,re).annotationUnfocused(e.annotation.id)})),this.currentDocument.addEventListener("annotationSelection.change",(e=>{e&&0!==e?.size&&e.forEach((e=>{const t=e.get("id");t&&(0,d.A)(this,re).annotationSelected(t)}))})),this.currentDocument.addEventListener("annotations.press",(e=>{(0,d.A)(this,re).annotationPressed(e)}))}new class{constructor(){J(this,me),J(this,fe),J(this,he),J(this,pe),J(this,de),J(this,ue),Q(this,ne,{writable:!0,value:"#pspdfkit"}),Q(this,re,{writable:!0,value:void 0}),Q(this,oe,{writable:!0,value:void 0}),Q(this,ie,{writable:!0,value:new Map}),Q(this,ae,{writable:!0,value:void 0}),Q(this,se,{writable:!0,value:void 0}),Q(this,le,{writable:!0,value:void 0}),Q(this,ce,{writable:!0,value:void 0})}initialize(e){(0,p.A)(this,re,new j(e))}async addAdvanceAccessScript(e){const t=document.getElementById("advanceAccess");t.src=e;const n=new Promise(((e,n)=>{t.onload=e,t.onerror=n}));await n}async loadDocumentFromPath(e,t){te(this,he,be).call(this),await te(this,ue,ge).call(this,e,t)}async loadDocumentFromBase64String(e,t){te(this,he,be).call(this),await te(this,ue,ge).call(this,`data:application/pdf;base64,${e}`,t)}async loadDocumentFromBuffer(e,t){te(this,he,be).call(this),await te(this,ue,ge).call(this,e.buffer,t)}async exportDocument(e){const t=JSON.parse(e),n=await this.currentDocument.exportPDF(t);return new Uint8Array(n)}setMainToolbarItems(e){const t=JSON.parse(e);(0,p.A)(this,ae,t),(0,d.A)(this,ae).forEach((e=>{"custom"===e.type&&(e.onPress=(e,t)=>{(0,d.A)(this,re).mainToolbarButtonClicked(t)})})),this.currentDocument?.setToolbarItems((e=>(0,d.A)(this,ae)?(0,d.A)(this,ae):e))}setAnnotationToolbarItems(e,t){const n=JSON.parse(t);(0,d.A)(this,ie).set(e,n),(0,d.A)(this,ie).get(e).forEach((t=>{"custom"===t.type&&(t.onPress=(t,n)=>{(0,d.A)(this,re).annotationToolbarButtonClicked(e,n)})})),this.currentDocument?.setAnnotationToolbarItems(((e,t)=>{let{defaultAnnotationToolbarItems:n}=t;const r=e?te(this,de,ve).call(this,e):this.currentDocument.viewState.interactionMode===q.O.INK_ERASER?q.O.INK_ERASER:null;if(r){const e=(0,d.A)(this,ie).get(r);if(e)return e}return n}))}unload(){(0,f.G)("#pspdfkit")}setViewState(e,t){const n=this.currentDocument.viewState.set(e,t);this.currentDocument.setViewState(n)}async applyRedactions(){await(0,d.A)(this,oe).applyRedactions()}async createAnnotation(e){return await(0,d.A)(this,oe).createAnnotation(e)}async exportInstantJSON(){return JSON.stringify(await(0,d.A)(this,oe).exportInstantJSON())}async getAnnotations(e){return(0,d.A)(this,oe).getAnnotations(e)}importInstantJSON(e){(0,d.A)(this,oe).importInstantJSON(JSON.parse(e))}setSelectedAnnotations(e){(0,d.A)(this,oe).setSelectedAnnotations(e)}deleteAnnotations(e){(0,d.A)(this,oe).deleteAnnotations(e)}async flattenAnnotations(e){return await(0,d.A)(this,oe).flattenAnnotations(e)}updateAnnotation(e){(0,d.A)(this,oe).updateAnnotation(e)}subscribeToEvent(e){(0,d.A)(this,re).subscribeToEvent(e,this.currentDocument)}unsubscribeFromEvent(e){(0,d.A)(this,re).unsubscribeFromEvent(e,this.currentDocument)}showDocumentLoadingIndicator(){if(!(0,d.A)(this,se)){const e=document.getElementById("documentLoadingIndicator");if(!e)return;(0,p.A)(this,se,e)}(0,d.A)(this,se).style.visibility="visible"}showGenericProcessingIndicator(){if(!(0,d.A)(this,le)){const e=document.getElementById("genericProcessingIndicator");if(!e)return;(0,p.A)(this,le,e)}(0,d.A)(this,le).style.visibility="visible"}hideGenericProcessingIndicator(){if(!(0,d.A)(this,le)){const e=document.getElementById("genericProcessingIndicator");if(!e)return;(0,p.A)(this,le,e)}(0,d.A)(this,le).style.visibility="collapse"}};var Se=n(36899),_e=n(53644),Ce=n(43420),Ee=n(94308),ke=n(30962),ze=n(24159),Pe=n(32522),Ae=n(47612),De=n(29226),Te=n(52002),Ie=n(1889),Me=n(85507),Ne=n(90310),Oe=n(70631),Re=n(5511),je=n(83647),Fe=n(27522),Be=n(85410),Le=n(61371),Ve=n(33091),Ke=n(8367),He=n(78729),$e=n(50960),Ue=n(7516),We=n(27634),qe=n(28567),Ge=n(25028),Ze=n(39168),Ye=n(30006),Xe=n(21535);var Je=n(14079),Qe=n(94045),et=n(495),tt=n(17796),nt=n(53793),rt=n(74963),ot=n(96754),it=n(26635),at=n(24063),st=n(62362),lt=n(4033),ct=n(10455),ut=n(81199),dt=n(1257),pt=n(88425),ht=n(63638),ft=n(90741),mt=n(3220),gt=n(45408),vt=n(69118),yt=n(37094),bt=n(46952),wt=n(47745),xt=n(46907),St=n(29249),_t=n(82747),Ct=n(79595),Et=n(91109),kt=n(67867),zt=n(89009),Pt=n(23660),At=n(46395),Dt=n(45666),Tt=n(13825),It=n(35014),Mt=n(27959),Nt=n(54694),Ot=n(87374),Rt=n(68322),jt=n(35224),Ft=n(57892),Bt=n(20546),Lt=n(76117),Vt=n(82047),Kt=n(6914),Ht=n(32574),$t=n(64966);function Ut(e){return(0,$t.i)(e.jwt).api_base_path||"/api/"}function Wt(e){const t=e.serverUrl||(0,$t.i)(e.jwt).server_url;return(0,o.V1)(t,"`authPayload.jwt` must contain claim `server_url` or the `authPayload.serverUrl` should be set"),t}let qt;try{qt=(0,Be.$_)(document)}catch(e){}const Gt=h.o3,Zt={UI:{Core:a,createBlock:i.W,Recipes:Vt.M5,Decorators:Vt.N9,Interfaces:Vt.Rq,App:s},Immutable:{List:r.B8,Set:r.NZ},version:"1.1.0",Geometry:{Point:$e.bR,DrawingPoint:$e.LL,Rect:$e.rw,Size:$e.or,Inset:$e.Yy},Actions:{Action:_e.rc,GoToAction:Ce.ic,GoToEmbeddedAction:Ce.yp,GoToRemoteAction:Ce.sG,HideAction:Ce.$i,JavaScriptAction:Ce.ew,LaunchAction:Ce.Ki,NamedAction:Ce.mm,ResetFormAction:Ce.kV,SubmitFormAction:Ce.Dh,URIAction:Ce.tt},Annotations:{Annotation:u.YH,CommentMarkerAnnotation:u.dG,HighlightAnnotation:u.ax,InkAnnotation:u.Eo,ShapeAnnotation:u.pP,LineAnnotation:u.MU,RectangleAnnotation:u.Zx,EllipseAnnotation:u.Go,PolygonAnnotation:u.Si,PolylineAnnotation:u.ug,LinkAnnotation:u.UL,NoteAnnotation:u.s9,MarkupAnnotation:u.tr,RedactionAnnotation:u.h5,SquiggleAnnotation:u.TI,StampAnnotation:u.xY,StrikeOutAnnotation:u.sB,TextAnnotation:u.dh,UnderlineAnnotation:u.Yi,ImageAnnotation:u.vU,UnknownAnnotation:u.Ip,WidgetAnnotation:u.sb,MediaAnnotation:u.KR,toSerializableObject:G.eq,fromSerializableObject:e=>(0,G.h8)(null,e),rotate:(e,t,n)=>{const r=(0,Ft.rK)(e,n);return(0,Ft.pE)(r.set("rotation",t))}},AnnotationPresets:{toSerializableObject:G.Um,fromSerializableObject:G.Zt},Comment:Ne.Ay,Bookmark:ke.A,CustomOverlayItem:Pe.A,OutlineElement:Ae.A,FormFields:{FormField:Se.zB,ButtonFormField:Se.$h,CheckBoxFormField:Se.av,ChoiceFormField:Se.G_,ComboBoxFormField:Se.sh,ListBoxFormField:Se.O2,RadioButtonFormField:Se.Qk,TextFormField:Se.uS,SignatureFormField:Se.Vw,toSerializableObject:G.T7,fromSerializableObject:e=>(0,G.mh)(String(e.pdfObjectId),e)},FormFieldValue:Se.E2,FormOption:De.A,Callout:Lt.Pq,Color:ze.A,Instance:ft.A,preloadWorker:Gt,load:h.Hh,unload:f.G,loadTextComparison:Kt.Tw,convertToOffice:h.Hr,convertToPDF:h.nf,populateDocumentTemplate:h.Ib,build:async function(e,t,n){const{jwt:r}=e,i=Ut(e),a=`${Wt(e)}${i}build`;(0,o.V1)(t&&"object"==typeof t&&Object.keys(t).length>0,"instructions must be a non-empty object");const s=new FormData;let l;s.append("instructions",JSON.stringify(t)),n&&((0,o.V1)(Array.isArray(n),"inputs must be an array"),n.forEach((e=>{(0,o.V1)("object"==typeof e,"inputs must be objects"),(0,o.V1)(e.name,"input.name must be provided"),(0,o.V1)(e.content&&(e.content instanceof ArrayBuffer||e.content instanceof Blob),"input.content must be an ArrayBuffer or a Blob");const t=new Blob([e.content]);s.append(e.name,t)})));try{l=await fetch(a,{method:"POST",headers:{Authorization:`Bearer ${r}`,Accept:"application/json"},credentials:"same-origin",body:s})}catch(e){throw new o.uE(`Failed to fetch from ${a}`)}if(!l.ok)throw await async function(e){const t=await e.text();let n;try{n=JSON.parse(t)}catch(e){}const r=new Error(`Failed to perform Build request. Status: ${e.status} Body: '${t}'`,{cause:n});return new o.uE(r)}(l);return await l.arrayBuffer()},Error:o.uE,SaveError:wt.d,ViewState:W.A,PageInfo:Ie.A,TextLine:Me.A,InstantClient:Te.A,TextSelection:qe.N,SearchResult:mt.A,SearchState:gt.A,HighlightState:Ht.A,AutoSaveMode:Re.O,SignatureSaveMode:tt.v,LayoutMode:Ve.S,PrintMode:Ue.l,PrintQuality:We.z,ScrollMode:Ge.V,ZoomMode:ot.d,InteractionMode:q.O,unstable_InkEraserMode:Le.y,SidebarMode:Xe.I,UIElement:{Sidebar:"Sidebar"},Alignment:zt.C,BlendMode:Pt.N,BorderStyle:At.k,LineCap:Dt.$,SidebarPlacement:Qe.A,SignatureAppearanceMode:et.C,ShowSignatureValidationStatusMode:it.y,NoteIcon:Ke.Qv,Theme:m.S,ToolbarPlacement:Ze.h,ElectronicSignatureCreationMode:Ye.F,I18n:ht.Ay,baseUrl:qt,DocumentIntegrityStatus:je.Pb,SignatureValidationStatus:je.w1,SignatureType:je.D7,SignatureContainerType:je.Yj,PAdESLevel:je.sX,CertificateChainValidationStatus:je.k5,DocumentValidationStatus:Fe.J,AnnotationsWillChangeReason:Ee.x,DocumentComparisonSourceType:Je.O,MeasurementScaleUnitFrom:It.b,MeasurementScaleUnitTo:Mt._,MeasurementPrecision:Nt.x,MeasurementScale:jt.A,ProductId:Rt.v,ProcessorEngine:Ot.j,Conformance:Bt.o,DocumentPermissions:xt.d,ComparisonOperation:Lt.zT,DocumentDescriptor:Lt.Hv,ComparisonOperationType:l.d,OfficeDocumentFormat:c.z,WheelZoomMode:rt.O,viewStateFromOpenParameters:nt.J,get defaultElectronicSignatureColorPresets(){return(0,r.ss)(dt.A).toJS().map((e=>{let{color:t,...n}=e;return{...n,color:new ze.A(t)}}))},get defaultToolbarItems(){return ut.Ay.toJS()},get defaultDocumentEditorFooterItems(){return St.A.toJS()},get defaultDocumentEditorToolbarItems(){return _t.A.toJS()},get defaultTextComparisonToolbarItems(){return Et.A.toJS()},get defaultTextComparisonInnerToolbarItems(){return kt.A.toJS()},get defaultAnnotationPresets(){return at.Ay.toObject()},get defaultStampAnnotationTemplates(){return[...ct.Ay]},get defaultAnnotationsSidebarContent(){return Ct.A.toJS()},defaultEditableAnnotationTypes:st.A,defaultElectronicSignatureCreationModes:lt.A,defaultSigningFonts:pt.A,Options:He.JY,SearchPattern:vt.N,SearchType:yt.n,UIDateTimeElement:Tt.E,generateInstantId:bt.A,Font:Oe.A};const Yt=Zt},1025:(e,t,n)=>{"use strict";n.d(t,{DX:()=>h,K_:()=>g,Wy:()=>f,xO:()=>m});var r=n(85409),o=n(7737),i=n(49568),a=n(83877),s=n(76943),l=n(43420),c=n(43836),u=n(78729),d=n(75439),p=n(5864);const h=e=>(t,n)=>{!function e(u){try{if(u instanceof l.tt){(0,r.V1)("string"==typeof u.uri,"URIAction requires `uri`");const e=n();(!e.onOpenURI||e.onOpenURI(u.uri,!0))&&(0,c.A)(u.uri)}else if(u instanceof l.ic)(0,r.V1)("number"==typeof u.pageIndex,"GoToAction requires `pageIndex`"),t((0,s.Ir)(u.pageIndex));else if(u instanceof l.kV)(0,r.V1)("boolean"==typeof u.includeExclude,"ResetFormAction requires `includeExclude`"),t((0,a.tl)(u.fields,u.includeExclude));else if(u instanceof l.Dh)(0,r.V1)("string"==typeof u.uri,"ResetFormAction requires `uri`"),(0,r.V1)("boolean"==typeof u.includeExclude,"ResetFormAction requires `includeExclude`"),t((0,a.j2)(u));else{if(!(u instanceof l.$i))throw new r.uE(`Annotation action not handled: ${u?.constructor.name}`);{(0,r.V1)(i.B8.isList(u.annotationReferences),"HideAction must have `annotationReferences`");const{annotations:e,formFields:a}=n(),s=u.annotationReferences.map((e=>"fieldName"in e&&a.get(e.fieldName))),l=u.annotationReferences.map((t=>"pdfObjectId"in t&&"number"==typeof t.pdfObjectId?e.find((e=>e.pdfObjectId===t.pdfObjectId)):null));(0,o.vA)((()=>{l.forEach((e=>{e&&t((0,d.g_)(e.set("hidden",u.hide)))})),s.forEach((n=>{n&&n.annotationIds.forEach((n=>{const r=e.get(n);r&&t((0,d.g_)(r.set("hidden",u.hide)))}))}))}))}}}catch(e){(0,r.R8)(e.message)}u?.subActions&&u.subActions.forEach((t=>{e(t)}))}(e)},f=e=>{const{action:t}=e;return t instanceof l.ew?g(t.script,"onPointerDown",e instanceof p.A?e.formFieldName:null):h(t)},m=(e,t)=>{const{additionalActions:n,formFieldName:r}=e,o=n?.[t];return o instanceof l.ew?g(o.script,t,e instanceof p.A?r:null):h(o)};function g(e,t,n){return async(o,i)=>{const{backend:s}=i();if((0,r.V1)(s),"STANDALONE"!==s.type||!u.JY.PDF_JAVASCRIPT)return;(0,r.V1)("string"==typeof e,"JavaScriptAction requires `script`");const l=await s.evalScript(e,t,n);o((0,a.f_)({changes:l}))}}},75439:(e,t,n)=>{"use strict";n.d(t,{B3:()=>$,EH:()=>C,Iy:()=>D,J5:()=>oe,Kl:()=>B,L0:()=>F,M:()=>O,PY:()=>k,RE:()=>A,Rf:()=>j,Ud:()=>N,XV:()=>I,Xs:()=>T,ax:()=>ee,dH:()=>ne,eS:()=>G,g_:()=>W,iE:()=>R,iN:()=>M,in:()=>ie,js:()=>Q,ke:()=>te,li:()=>L,n$:()=>re,n9:()=>Y,nG:()=>Z,nO:()=>E,pk:()=>ae,vN:()=>X,vs:()=>P,wA:()=>z,yk:()=>J,ze:()=>V});var r=n(49568),o=n(7737),i=n(85409),a=n(76117),s=n(94308),l=n(50960),c=n(95171),u=n(5217),d=n(35467),p=n(76943),h=n(83877),f=n(41567),m=n(89574),g=n(84192),v=n(16192),y=n(17032),b=n(78625),w=n(63226),x=n(82500),S=n(37361),_=n(24063);const C=(e,t)=>n=>{n((0,c.Vm)()),n({type:x.B5,annotation:e,pageIndex:t})},E=(e,t)=>n=>{n((0,c.Vm)()),n({type:x.KaD,annotation:e,pageIndex:t})},k=(e,t)=>n=>{n((0,c.Vm)()),n({type:x.mIs,annotation:e,pageIndex:t})},z=async e=>{const{hash:t,dimensions:n}=await(0,b.gj)(e);return{hash:t,dimensions:n,attachment:new a.o3({data:e})}},P=e=>async(t,n)=>{const{dimensions:i,hash:a,attachment:l}=await z(e),d=(0,m.l3)(n(),i,a,e.type,e.name),h={annotations:(0,r.B8)([d]),reason:s.x.SELECT_END},{eventEmitter:f,annotationManager:g}=n();(0,o.vA)((()=>{f?.emit("annotations.willChange",h),t((0,u.c)({hash:a,attachment:l})),t(I((0,r.B8)([d]))),g?.createObject(d,{attachments:(0,r.T5)([[a,l]])}),g?.autoSave(),t((0,c.TT)((0,r.NZ)([d.id]),null)),t((0,p.YQ)(d.pageIndex,d.boundingBox))}))},A=e=>(t,n)=>{let i;const{imageAttachmentId:u,contentType:d,fileName:h,description:f}=e,g=u&&n().attachments.get(u);if(e instanceof a.xY)t(R("stamp")),i=(0,m.RG)(n(),new l.or({width:e.boundingBox.width,height:e.boundingBox.height}),e);else{if(!(e instanceof a.vU))return;if(!u)return;t(R("image")),i=(0,m.l3)(n(),new l.or({width:e.boundingBox.width,height:e.boundingBox.height}),u,d||"",h),f&&(i=i.set("description",f))}const v={annotations:(0,r.B8)([i]),reason:s.x.SELECT_END},{eventEmitter:y,annotationManager:b}=n();(0,o.vA)((()=>{y?.emit("annotations.willChange",v),t(I((0,r.B8)([i]))),b?.createObject(i,{attachments:u&&g?(0,r.T5)([[u,g]]):(0,r.T5)()}),b?.autoSave(),t((0,c.TT)((0,r.NZ)([i.id]),null)),t((0,p.YQ)(i.pageIndex,i.boundingBox))}))},D=e=>(t,n)=>{const{annotationManager:o,backend:a,attachments:s}=n();(0,i.V1)(a),"STANDALONE"===a.type?t(I((0,r.B8)(e.map((e=>e.set("pdfObjectId",null).delete("APStreamCache")))))):t(I((0,r.B8)(e))),o?.createObjects(e,e.map((e=>({attachments:(0,m.Bv)(s,e)}))))},T=e=>(t,n)=>{const a=n();(0,i.V1)(a.backend);const{annotationManager:s,backend:l,attachments:c}=a;(0,o.vA)((()=>{t(I("STANDALONE"===l?.type?(0,r.B8)([e.set("pdfObjectId",null).delete("APStreamCache")]):(0,r.B8)([e]))),s?.createObject(e,{attachments:(0,m.Bv)(c,e)})}))},I=e=>({type:x.agm,annotations:e}),M=e=>({type:x.FCx,annotations:e}),N=e=>({type:x.vmd,ids:e}),O=e=>(t,n)=>{const r=n(),o=r.currentItemPreset;if(!o)return;const i=r.annotationPresets.get(o);if(!i)return;let a=!1;r.eventEmitter.emit("annotationPresets.update",{preventDefault:()=>a=!0,currentPreset:o,currentPresetProperties:i,newPresetProperties:e}),a||t({type:x.QRJ,attributes:e})},R=e=>({type:x.xQ8,currentItemPreset:e}),j=e=>({type:x.jms,annotationPresets:e}),F=(e,t)=>({type:x.e7N,annotationID:e,annotationPresetID:t}),B=e=>({type:x.VGl,annotationID:e}),L=e=>({type:x.Gro,annotationID:e}),V=(e,t)=>(n,r)=>{n(R(t)),(0,y.ZY)(r(),e).forEach((e=>{n(T(e)),!_.rM[t]&&n(F(e.id,t))}))},K=(e,t)=>{const{annotationManager:n,attachments:r}=e();n?.updateObject(t,{attachments:(0,m.Bv)(r,t)})},H={},$=e=>(t,n)=>{const{annotations:o,invalidAPStreams:a,backend:s}=n();if(!o.has(e.id))return void(0,i.R8)("An annotation that does not exist was updated. This is probably caused by a sync conflict when Instant is enabled.\nThe update of this annotation was skipped.");(0,m.Sk)({annotations:o,backend:s},(0,r.B8)([e]));let l=e.set("updatedAt",new Date);t(M((0,r.B8)([l]))),l=(0,m.dA)(n(),a,l),H[l.id]||(H[l.id]=(0,g.h)(K,S.YF)),H[l.id](n,l)};function U(e,t,n){const{annotations:r,invalidAPStreams:o,backend:s,annotationManager:l,attachments:c}=t;(0,m.Sk)({annotations:r,backend:s},n);const u=n.map((e=>r.has(e.id)?(e instanceof a.pP&&e.isMeasurement()&&(e=e.set("note",e.getMeasurementDetails().label)),"STANDALONE"===s?.type?e.delete("APStreamCache").set("updatedAt",new Date):e.set("updatedAt",new Date)):((0,i.R8)("An annotation that does not exist was updated. This is probably caused by a sync conflict when Instant is enabled.\nThe update of this annotation was skipped."),!1))).filter(Boolean);e(M(u)),u.forEach((e=>{const n=(0,m.dA)(t,o,e);null!==e.pageIndex&&l?.updateObject(n,{attachments:(0,m.Bv)(c,n)})}))}const W=e=>(t,n)=>{const i=n();(0,o.vA)((()=>{U(t,i,(0,r.B8)([e]))}))};function q(e,t,n){const{commentThreads:s,comments:l,annotationManager:c,formFieldValueManager:u}=t;n.forEach((t=>{const n=s.get(t.id);if(n&&1===n.size){const t=l.get(n.first());t&&(0,w.Jm)(t)&&((0,i.V1)(t.id),e((0,f.wn)((0,r.NZ)([t.id]))))}})),n.forEach((t=>{(t instanceof a.dG||t instanceof a.ax||t.isCommentThreadRoot)&&e((0,f.hM)(t))}));let d=(0,r.B8)();(0,o.vA)((()=>{e(N(n.map((e=>e.id)).toSet())),d=n.map((e=>(0,m.rU)(t,e))),d.forEach((e=>{c?.deleteObject(e)}))})),d.forEach((n=>{if(n instanceof a.sb){const o=n.formFieldName?t.formFields.get(n.formFieldName):null;if(o)if(1!==o.annotationIds.size||o.annotationIds.first()!==n.id&&o.annotationIds.first()!==String(n.pdfObjectId)){if(o.annotationIds.includes(n.id)||o.annotationIds.includes(String(n.pdfObjectId))){const t=o.annotationIds.findIndex((e=>e===n.id||e===String(n.pdfObjectId)));let i=o.set("annotationIds",o.annotationIds.filter((e=>e!==n.id&&e!==String(n.pdfObjectId))));i.options&&(i=i.set("options",o.options.filter(((e,n)=>n!==t)))),e((0,h.rl)(i)),i.options.some((e=>e.value===i.value))||e((0,h.$D)((0,r.B8)([new a.E2({name:i.name,value:null})])))}}else e((0,h.jE)(o)),t.backend?.isUsingInstantProvider()||u?.deleteObject(new a.E2({name:o.name,value:o.value}))}H[n.id]&&delete H[n.id]}))}const G=e=>(t,n)=>{q(t,n(),(0,r.B8)([e]))},Z=(e,t)=>(n,r)=>{const i=r(),{annotations:a}=i,s=t.map((e=>a.get(e))).filter(Boolean);(0,o.vA)((()=>{e.size>0&&U(n,i,e),s.size>0&&q(n,i,s)}))};function Y(e){return(t,n)=>{if(e&&!e.isEmpty()){const t=n(),o=e.map((e=>t.annotations.get(e))).filter(Boolean),i={annotations:(0,r.B8)(o),reason:s.x.DELETE_START};t.eventEmitter.emit("annotations.willChange",i)}t({type:x.Get,annotationsIDs:e})}}const X=e=>({type:x.c5z,stampAnnotationTemplates:e});function J(){return(e,t)=>{const n=t();let r=new a.s9((0,m.mN)(n));const o=n.pages.get(n.viewportState.currentPageIndex);(0,i.V1)(o);const s=a.rw.getCenteredRect(new l.or({width:S.b4,height:S.b4}),o.pageSize);r=r.set("pageIndex",n.viewportState.currentPageIndex).set("boundingBox",s),e((0,d.R8)(null,r)),e(W(r))}}function Q(){return(e,t)=>{const n=t();let r=new a.dh((0,m.mN)(n));const o=n.pages.get(n.viewportState.currentPageIndex);(0,i.V1)(o);const{pagesRotation:s,currentPageIndex:l}=n.viewportState,c=o.pageSize.scale(.5),u=(0,v.Fz)(new a.bR({x:c.width,y:c.height}),s);r=r.set("pageIndex",l).set("boundingBox",u).set("rotation",s),e((0,d.K3)(null,r)),e(W(r))}}const ee=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{type:x.qml,value:e}},te=e=>({type:x.qRc,ids:e}),ne=e=>({type:x.jkd,ids:e}),re=e=>({type:x.jAd,callback:e}),oe=(e,t)=>({type:x.dv5,variant:e,annotationObjectIds:t}),ie=e=>({type:x.m65,annotationId:e}),ae=(e,t)=>({type:x.uo5,pageIndex:e,tabOrder:t})},41567:(e,t,n)=>{"use strict";n.d(t,{GO:()=>D,Rq:()=>v,Sd:()=>C,TW:()=>m,VM:()=>E,bH:()=>I,fJ:()=>y,hM:()=>P,m5:()=>w,mT:()=>k,qu:()=>z,t6:()=>g,tT:()=>S,uY:()=>b,wn:()=>x,zQ:()=>T});var r=n(49568),o=n(82500),i=n(37361),a=n(76117),s=n(75439),l=n(95171),c=n(35467),u=n(17032),d=n(63226),p=n(89574),h=n(75675),f=n(97028);const m=e=>t=>{t({type:o.yiN,comments:e}),t(D())},g=e=>t=>{t({type:o.bYc,rootId:e}),t(D())};function v(){return(e,t)=>{const n=(0,u.ZY)(t(),a.ax,!0);if(n.size){e((0,l.J9)()),e((0,s.XV)(n));const o=t().annotations.get(n.first()?.id);(0,h.V)(o),e((0,l.TT)((0,r.NZ)([o.id]),null)),e(g(o.id))}}}const y=e=>({type:o.PHl,users:e}),b=e=>({type:o.ZkK,maxSuggestions:e}),w=e=>t=>{t((e=>({type:o.Rv8,comments:e}))(e)),t(D())},x=e=>t=>{t({type:o.B0K,ids:e}),t(D())};function S(){return(e,t)=>{const n=t(),o=[],i=[];n.selectedAnnotationIds.forEach((e=>{const t=n.commentThreads.get(e);if(!t)return;let r=t.size;t.forEach((e=>{const t=n.comments.get(e);!t||null!=t.pageIndex||null!=t.text?.value&&""!==(0,f.lb)(t.text.value)||(o.push(e),r--)})),0===r&&i.push(e)})),o.length>0&&e(x((0,r.NZ)(o))),i.length>0&&e((0,s.Ud)((0,r.NZ)(i)))}}function _(e,t){let{oldComment:n,comment:o,action:i}=t;const{comments:a,eventEmitter:s}=e;if("DELETE"===i)(0,h.V)(n),s.emit("comments.mention",{comment:n,modifications:n.getMentionedUserIds().map((e=>({userId:e,action:"REMOVED"}))).toList()});else if("CREATE"===i)(0,h.V)(o),s.emit("comments.mention",{comment:o,modifications:o.getMentionedUserIds().map((e=>({userId:e,action:"ADDED"}))).toList()});else{(0,h.V)(o);const e=n||o.id&&a.get(o.id),t=o.getMentionedUserIds();let i=(0,r.B8)();(0,h.V)(e);const l=e.getMentionedUserIds(),c=l.subtract(t);c.size>0&&(i=i.push(...c.map((e=>({userId:e,action:"REMOVED"}))).toList()));const u=t.subtract(l);u.size>0&&(i=i.push(...u.map((e=>({userId:e,action:"ADDED"}))).toList())),s.emit("comments.mention",{comment:o,modifications:i})}}const C=(e,t)=>(n,o)=>{const i=o();(0,h.V)(e.rootId);const a=i.annotations.get(e.rootId);(0,h.V)(a);const l=new Date,c=e.set("updatedAt",l).set("pageIndex",a.pageIndex);_(i,{comment:c,oldComment:t,action:"UPDATE"}),n(w((0,r.B8)([c])));const u=i.commentThreads.get(e.rootId);if((0,h.V)(null!=u),1===u.size&&(0,d.Jm)(e)){let e=a.set("isCommentThreadRoot",!0);const t=i.comments.get(u.first());e=e.set("isAnonymous",Boolean(t?.isAnonymous)),n((0,s.iN)((0,r.B8)([e]))),i.annotationManager?.createObject(e),i.annotationManager?.autoSave()}(0,h.V)(null!=i.commentManager);const p=o(),f=p.comments.toList().filter((e=>!(0,d.Jm)(e)));i.commentManager.createObject(c,{comments:f,annotations:p.annotations}),i.commentManager.autoSave()},E=e=>(t,n)=>{t(m((0,r.B8)([e]))),_(n(),{comment:e,action:"CREATE"});const{commentManager:o,annotations:i}=n();(0,h.V)(null!=o);const a=n().comments.toList().filter((e=>!(0,d.Jm)(e)));o.createObject(e,{comments:a,annotations:i})},k=e=>(t,n)=>{const o=e.set("updatedAt",new Date);t(w((0,r.B8)([o]))),_(n(),{comment:o,oldComment:e,action:"UPDATE"});const{annotations:i,commentManager:a}=n();(0,h.V)(null!=a);const s=n().comments.toList().filter((e=>!(0,d.Jm)(e)));a.updateObject(o,{comments:s,annotations:i})},z=e=>(t,n)=>{const o=n();if((0,h.V)(e.id),_(o,{oldComment:e,action:"DELETE"}),e.rootId){const i=o.commentThreads.get(e.rootId);if(i&&i.first()===e.id){const r=i.toList().get(1);if(r){const i=o.comments.get(r);i&&A(n,e.rootId,t,i.isAnonymous??!1)}}if(i&&(1===i.size||(0,d.aX)(i,o.comments)&&2===i.size)){const n=o.annotations.get(e.rootId);if(n)return t((0,s.eS)(n)),void o.commentManager?.eventEmitter.emit("delete",(0,r.B8)([e]))}}t(x((0,r.NZ)([e.id])));const{commentManager:i}=o;(0,h.V)(null!=i);const a=n(),l=a.comments.toList().filter((e=>!(0,d.Jm)(e)));i.deleteObject(e,{comments:l,annotations:a.annotations}),i.autoSave()},P=e=>(t,n)=>{const r=n();if((0,h.V)(e),"SERVER"===r.backend?.type)return;const o=r.comments.filter((t=>t.rootId===e.id&&!(0,d.Jm)(t))).map((e=>e.id));if(0===o.size)return;t(x(o.toSet())),r.comments.forEach((e=>{_(r,{oldComment:e,action:"DELETE"})}));const{commentManager:i}=r;(0,h.V)(null!=i);const a=n();let s=a.comments.toList().filter((e=>!(0,d.Jm)(e)));s.forEach((t=>{t.rootId===e.id&&(i.deleteObject(t,{comments:s,annotations:a.annotations}),s=s.filter((e=>e.id!==t.id)))})),i.autoSave()},A=(e,t,n,o)=>{const i=e(),a=i.annotations.get(t);(0,h.V)(null!=a);const l=a.set("isAnonymous",o);n((0,s.iN)((0,r.B8)([l]))),i.annotationManager?.updateObject(l),i.annotationManager?.autoSave()};function D(){return{type:o.S$q}}const T=()=>(e,t)=>{const n=t();let o=new a.dG((0,p.mN)(n));const l=n.pages.get(n.viewportState.currentPageIndex);(0,h.V)(l);const u=a.rw.getCenteredRect(new a.or({width:i.jw,height:i.jw}),l.pageSize);o=o.set("pageIndex",n.viewportState.currentPageIndex).set("boundingBox",u),e((0,c.WN)(o)),e((0,s.iN)((0,r.B8)([o]))),e(g(o.id))};function I(e){return{type:o.AN0,onCommentCreationStartCallback:e}}},35467:(e,t,n)=>{"use strict";n.d(t,{$x:()=>Xe,A5:()=>I,A8:()=>pe,Ar:()=>Y,B4:()=>fe,BJ:()=>Me,BQ:()=>M,BZ:()=>Ee,CM:()=>ut,Cc:()=>ct,Cu:()=>Ae,D8:()=>m,D9:()=>f,DU:()=>Te,E7:()=>re,F:()=>L,FS:()=>lt,Fl:()=>Qe,GV:()=>tt,Gh:()=>D,Gm:()=>de,Gz:()=>Oe,H$:()=>xe,He:()=>T,Hj:()=>ze,I8:()=>Se,Ib:()=>se,In:()=>ot,JN:()=>oe,JR:()=>U,K:()=>xt,K3:()=>ee,K5:()=>ft,LD:()=>N,LV:()=>st,M1:()=>ge,NI:()=>Be,NP:()=>A,NW:()=>Q,P4:()=>Et,PP:()=>ce,QD:()=>nt,QG:()=>W,Qd:()=>We,Ql:()=>Ot,R:()=>J,R8:()=>O,RX:()=>Fe,Sz:()=>Pt,U$:()=>$e,Ue:()=>$,Vh:()=>St,Vu:()=>ae,WB:()=>X,WG:()=>yt,WN:()=>j,WX:()=>Le,Xh:()=>_e,Xp:()=>Tt,YL:()=>p,YZ:()=>gt,Yu:()=>le,Z0:()=>jt,ZY:()=>V,Zo:()=>rt,_Q:()=>k,_b:()=>Ce,_e:()=>B,aJ:()=>ke,b$:()=>G,b8:()=>mt,bK:()=>K,bT:()=>zt,bf:()=>vt,c1:()=>Ye,cS:()=>C,dJ:()=>je,dp:()=>Mt,eH:()=>Ie,eW:()=>v,eZ:()=>Ve,g8:()=>Ct,gK:()=>be,gY:()=>d,gp:()=>at,gw:()=>S,hP:()=>He,i0:()=>we,i6:()=>Pe,iw:()=>g,jQ:()=>y,jt:()=>Ke,kJ:()=>P,kl:()=>H,l$:()=>te,l8:()=>it,lA:()=>Ue,lD:()=>bt,lH:()=>pt,ll:()=>Z,m9:()=>w,mp:()=>z,mz:()=>At,nB:()=>b,nu:()=>Re,nx:()=>ye,o8:()=>It,on:()=>ht,ot:()=>h,q6:()=>Rt,ql:()=>Dt,qx:()=>dt,r7:()=>he,rY:()=>ue,rf:()=>et,sI:()=>Ge,sx:()=>q,t4:()=>_,t5:()=>Nt,tE:()=>ne,tJ:()=>E,u7:()=>me,uT:()=>Je,vE:()=>_t,w9:()=>R,wG:()=>kt,x4:()=>Ze,xS:()=>F,xg:()=>wt,xw:()=>ve,y7:()=>ie,yT:()=>qe,yu:()=>Ne,zB:()=>x});var r=n(85409),o=n(7737),i=n(62116),a=n(82500),s=n(95171),l=n(21535),c=n(76943),u=n(59924);const d=()=>({type:a.YHd}),p=()=>({type:a.sWq}),h=e=>({type:a.ovX,enabled:e}),f=()=>({type:a.TY$}),m=e=>({type:a.m$,preset:e}),g=()=>({type:a.fmV}),v=e=>({type:a.coD,preset:e}),y=()=>({type:a.LvH}),b=e=>({type:a.nXN,preset:e}),w=()=>({type:a.oiE}),x=e=>({type:a.dqA,preset:e}),S=()=>({type:a.qvB}),_=()=>({type:a.a6C}),C=()=>({type:a.TV2}),E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{signatureRect:null,signaturePageIndex:null,formFieldName:null};return{type:a.tTM,...e}},k=()=>({type:a.uWd}),z=(e,t)=>()=>P(e,t),P=(e,t,n)=>({type:a.GJD,shapeClass:e,shapeInteractionMode:t,preset:n}),A=()=>({type:a.tSE}),D=e=>({type:a.SI,preset:e}),T=()=>({type:a.bjH}),I=()=>({type:a.h0k}),M=()=>({type:a.Cj7}),N=()=>({type:a.How}),O=(e,t)=>({type:a.Vrp,preset:e,annotation:t}),R=()=>({type:a.SB}),j=e=>({type:a.DIz,annotation:e}),F=()=>({type:a.Ajq});function B(e){return{type:a.bD6,formDesignMode:e}}function L(e){return{type:a.LPR,measurementSnapping:e}}function V(e){return{type:a.zRM,scale:e}}function K(e){return{type:a.ZN_,measurementPrecision:e}}function H(e){return{type:a.H0A,configurationCallback:e}}function $(e){return{type:a.ur2,scales:e}}function U(){return{type:a.GFn}}function W(){return{type:a.N00}}function q(){return{type:a.LPm}}function G(){return{type:a.sMs}}const Z=()=>({type:a.mOc}),Y=()=>({type:a.bD_}),X=()=>({type:a.Ot4}),J=()=>({type:a.N6A}),Q=(e,t)=>({type:a.iZ4,preset:e,annotation:t,isCallout:!0}),ee=(e,t)=>({type:a.iZ4,preset:e,annotation:t}),te=()=>({type:a.DSK}),ne=()=>({type:a.ZTP}),re=()=>({type:a.q3n}),oe=()=>({type:a.uby}),ie=()=>({type:a.r9i}),ae=e=>({type:a.Ep5,editor:e}),se=e=>({type:a.SuH,width:e}),le=e=>({type:a.C7_,zoomStep:e}),ce=e=>({type:a.kyl,disablePointSnapping:e}),ue=e=>({type:a.iry,callback:e}),de=e=>({type:a.K6V,transformClientToPage:e});function pe(e){return{type:a.ENJ,layoutMode:e}}function he(e){return{type:a.Jgj,scrollMode:e}}function fe(e){return{type:a.TBQ,showSignatureValidationStatus:e}}function me(e){return{type:a.cmb,scrollElement:e}}function ge(e){return{type:a.pmk,spreadSpacing:e}}function ve(e){return{type:a.hIA,pageSpacing:e}}function ye(e){return{type:a.Xt9,keepFirstSpreadAsSinglePage:e}}function be(e){return{type:a.SA4,viewportPadding:e}}function we(e){return{type:a.av_,readOnlyEnabled:e}}function xe(){return{type:a.H_3}}function Se(){return{type:a.P5p}}function _e(){return{type:a.QVN}}function Ce(){return{type:a.l58}}function Ee(){return{type:a.oFF}}function ke(){return{type:a.CD4}}function ze(){return{type:a.$hc}}function Pe(e){return{type:a.POx,features:e}}function Ae(e){return{type:a.h31,signatureFeatureAvailability:e}}function De(e){return t=>{t({type:a.SlF,mode:e}),t((0,s.od)())}}function Te(e){return{type:a.MC9,editableAnnotationTypes:e}}function Ie(e){return{type:a.lp_,isEditableAnnotation:e}}function Me(e,t){return{type:a.mb6,editableAnnotationTypes:e,isEditableAnnotation:t}}function Ne(e){return{type:a.dnz,isEditableComment:e}}const Oe=()=>(e,t)=>{e(De(l.I.ANNOTATIONS));const n=t();for(let e=0;e<n.totalPages;e++)n.annotationManager?.loadAnnotationsForPageIndex(e)};function Re(){return De(l.I.BOOKMARKS)}const je=()=>async(e,t)=>{e(De(l.I.DOCUMENT_OUTLINE));const n=t();if(n.documentOutlineState.elements)return;(0,r.V1)(n.backend);const o=await n.backend.getDocumentOutline();e((0,i.K)(o))};function Fe(){return De(l.I.THUMBNAILS)}function Be(){return De(l.I.SIGNATURES)}function Le(){return De(l.I.ATTACHMENTS)}function Ve(){return De(l.I.LAYERS)}function Ke(){return De(l.I.CUSTOM)}function He(){return{type:a.SlF,mode:null}}function $e(e){return{type:a.iGi,placement:e}}function Ue(e){return{type:a.FKq,sidebarOptions:e}}function We(e){return{type:a.h6f,locale:e}}function qe(){return{type:a.fAM}}function Ge(e){return{type:a.bUk,group:e}}function Ze(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:a.evn,annotationCreatorName:e,immutable:t}}const Ye=()=>({type:a.k5x}),Xe=()=>({type:a.R_L}),Je=e=>({type:a.q$5,interactionMode:e}),Qe=()=>({type:a.rw4});function et(){return{type:a.ZSp}}function tt(){return{type:a.C1Z}}const nt=e=>({type:a.vjD,customRenderers:e});function rt(){return{type:a.Td6}}function ot(){return{type:a.Gsj}}function it(){return{type:a.JMw}}function at(){return{type:a.ozB}}function st(e){return{type:a.QlR,previewRedactionMode:e}}function lt(e){return async(t,n)=>{const{viewportState:i,eventEmitter:a,documentComparisonState:s}=n();if(e){const n={start:{},end:{}};n.start.promise=new Promise(((e,t)=>{n.start.resolve=e,n.start.reject=t})),n.end.promise=new Promise(((e,t)=>{n.end.resolve=e,n.end.reject=t})),(0,o.vA)((()=>{t((0,c.CN)(i.set("documentComparisonMode",{...e,completion:n}))),t(ct({referencePoints:[],autoCompare:e.autoCompare,isResultFetched:!1,currentTab:e.autoCompare?null:u.w.documentA,documentKey:u.w.documentA,previousViewportState:{zoomMode:i.zoomMode,zoomLevel:i.zoomLevel,scrollPosition:i.scrollPosition,currentPageIndex:i.currentPageIndex,pageSizes:i.pageSizes}}))})),a.emit("documentComparisonUI.start",e)}else if(i.documentComparisonMode){const{completion:e}=i.documentComparisonMode;try{e.start.resolve(),await e.end.promise,(0,o.vA)((()=>{t((0,c.CN)(i.set("documentComparisonMode",null).merge(s.previousViewportState))),t(ct(null))})),a.emit("documentComparisonUI.end")}catch(e){throw new r.uE(e.message)}}}}function ct(e){return{type:a.h0V,documentComparisonState:e}}function ut(e){return{type:a.dBd,a11yStatusMessage:e}}function dt(){return{type:a.vjS}}function pt(){return{type:a.qDC}}function ht(e){return{type:a.tJg,lastToolbarActionUsedKeyboard:e}}function ft(){return{type:a.tEU}}function mt(){return{type:a.AcT}}function gt(){return{type:a.loZ}}function vt(){return{type:a.s_A}}function yt(e){return{type:a.JFC,instance:e}}function bt(e){return{type:a.Q5I,customUIStore:e}}const wt=()=>({type:a.BmW}),xt=e=>({type:a.CdF,multiAnnotationsUsingShortcut:e}),St=()=>({type:a.nN5}),_t=e=>({type:a.FJm,annotationsIds:e}),Ct=e=>({type:a.yT6,groupId:e}),Et=(e,t)=>({type:a.mS9,annotationId:e,groupId:t}),kt=e=>({type:a.SwZ,customFontsReadableNames:e}),zt=()=>({type:a.TVi}),Pt=()=>({type:a.IMM});function At(e){return{type:a.VWe,enableAlwaysScrollToZoom:e}}function Dt(e){return{type:a.Sb4,forceRenderWidgetsInAnnotationsOrder:e}}function Tt(e){return{type:a._z4,evaluation:e}}function It(e){return{type:a.hEI,prerenderedPageSpreads:e}}function Mt(e){return{type:a.t_f,configuration:e}}function Nt(e){return{type:a.xt3,attachment:e}}function Ot(){return{type:a.MVW}}function Rt(e){return{type:a.bSs,showAIAssistant:e}}function jt(e){return{type:a.MTb,currentTextSelection:e}}},18835:(e,t,n)=>{"use strict";n.d(t,{Up:()=>f,WP:()=>p,aW:()=>h,j:()=>m,jI:()=>d,uF:()=>g});var r=n(7737),o=n(82500),i=n(42633),a=n(83877),s=n(53253),l=n(35467),c=n(67926),u=n(23237);function d(e,t){return{type:o.Ztu,reason:e,progress:t}}function p(){return{type:o.fnC}}function h(){return{type:o._YG}}function f(e){return{type:o.VhV,reason:e}}function m(e){return{type:o.PMu,resolvePassword:e}}function g(e){let{attemptedUnlockViaModal:t,hasPassword:n,features:d,signatureFeatureAvailability:p,permissions:h,documentInfo:f,formJSON:m,annotationManager:g,bookmarkManager:v,formFieldManager:y,formFieldValueManager:b,commentManager:w,changeManager:x,minSearchQueryLength:S,documentHandle:_,allowedTileScales:C,pageKeys:E}=e;return(e,k)=>{const{searchState:z,documentHandle:P,features:A,signatureFeatureAvailability:D}=k();(0,r.vA)((()=>{C&&e(function(e){return{type:o.zvJ,allowedTileScales:e}}(C)),t&&e({type:o.njw}),e(function(e){return{type:o.ErL,hasPassword:e}}(n)),d&&0===A.size&&e((0,l.i6)(d)),p&&!D&&e((0,l.Cu)(p)),e((0,s.Tm)(h)),P&&P!==_&&e({type:o.SJ7}),e((0,s.nX)(f,E)),m&&e((0,a.xH)(m)),e((0,u.g4)()),e(function(e){return{type:o.rJq,annotationManager:e}}(g)),e(function(e){return{type:o.mQT,bookmarkManager:e}}(v)),e(function(e){return{type:o.fjq,formFieldManager:e}}(y)),e(function(e){return{type:o.re3,formFieldValueManager:e}}(b)),null!=w&&e(function(e){return{type:o.$1_,commentManager:e}}(w)),e(function(e){return{type:o.eko,changeManager:e}}(x)),"number"==typeof S&&e((0,i.M9)(z.set("minSearchQueryLength",S))),e((0,c.ym)(_))}))}}},58341:(e,t,n)=>{"use strict";n.d(t,{Az:()=>j,BB:()=>k,CY:()=>H,GM:()=>C,J4:()=>w,Lm:()=>z,O6:()=>M,OY:()=>K,Xd:()=>E,aU:()=>T,ab:()=>A,bU:()=>b,dV:()=>v,eR:()=>g,fg:()=>$,fq:()=>I,hi:()=>y,iK:()=>O,le:()=>F,lp:()=>S,oi:()=>N,tC:()=>_,uV:()=>x,xe:()=>B,zH:()=>D,zv:()=>P});var r=n(7737),o=n(2752),i=n(55994),a=n(55543),s=n(85409),l=n(82500),c=n(33075),u=n(83877),d=n(43195),p=n(81235),h=n(95171),f=n(47679),m=n(85410);const g=async(e,t)=>{const{backend:n}=t();if((0,m.Sb)(n)){if(e({type:l.psz,promptContentEditorDocumentDownload:!0}),!n.corePDFBridge.ctx.wasmCtx){e({type:l.uW3,isServerModeDownloadingWASM:!0});try{const e=await(n.corePDFBridge.ctx.getWasmDispatch?.());(0,s.V1)(e),n.corePDFBridge.ctx.wasmCtx||await(0,a.L9)(n.corePDFBridge.ctx,e)}catch(e){(0,s.z3)(`Failed to load WASM context: ${e.message}`)}finally{e({type:l.uW3,isServerModeDownloadingWASM:!1})}}}else e(v)},v=async(e,t)=>{const{backend:n,contentEditorSession:i}=t();i.contentEditor&&await i.contentEditor.closeContentEditor(),(0,s.V1)(n),(0,m.Sb)(n)&&(0,r.vA)((()=>{e({type:l.zD7,isServerModeDownloadingDocument:!0}),e({type:l.uW3,isServerModeDownloadingWASM:!0})}));const a=await o.MX.createContentEditor(n.corePDFBridge.ctx);(0,m.Sb)(n)&&(0,r.vA)((()=>{e({type:l.uW3,isServerModeDownloadingWASM:!1}),e({type:l.zD7,isServerModeDownloadingDocument:!1})})),(0,r.vA)((()=>{e((0,h.J9)()),e({type:l.M5B,contentEditor:a})}))},y=async(e,t)=>{const{contentEditorSession:n}=t();(0,s.V1)(n.contentEditor),await n.contentEditor.closeContentEditor(),(0,r.vA)((()=>{e({type:l.$Yt}),e(z(!1))}))},b=(e,t,n,r,o)=>V(e,t,(e=>e.setTextBlockCursor(t,n,r,o))),w=(e,t,n,r,o)=>V(e,t,(e=>e.insertTextBlockString(t,n,r,o))),x=(e,t,n,r,o)=>V(e,t,(e=>e.moveTextBlockCursor(t,n,r,o))),S=(e,t,n,r)=>V(e,t,(e=>e.deleteTextBlockString(t,n,r))),_=(e,t,n,r)=>V(e,t,(e=>e.setTextBlockSelection(t,n,r))),C=(e,t,n,r,o,i)=>V(e,t,(e=>e.setTextBlockSelectionRange(t,n,r,o,i))),E=(e,t,n)=>V(e,t,(e=>e.textBlockUndo(t,n))),k=(e,t,n)=>V(e,t,(e=>e.textBlockRedo(t,n))),z=e=>({type:l.B3$,isVisible:e}),P=(e,t)=>({type:l.Qvq,pageIndex:e,textBlockId:t}),A=(e,t)=>({type:l.gA3,pageIndex:e,textBlockId:t}),D=e=>{e({type:l.q7x})},T=async(e,t)=>{e({type:l.TN1,isSaving:!0});const{contentEditorSession:n,backend:o,features:a,annotations:p,isAPStreamRendered:h,contentEditorSession:f}=t(),m=(0,d.Ci)(n);(0,s.V1)(o),(0,s.V1)(f.contentEditor);try{await f.contentEditor.save(i.EA,m,[])}catch(t){return void(0,r.vA)((()=>{e({type:l.TN1,isSaving:!1}),e({type:l.kZs,promptContentEditorCannotSaveChanges:!0})}))}o.cancelRequests(),f.contentEditor.cancelRequests(),await o.contentEditorReload(),e({type:l.TN1,isSaving:!1});const g=await o.runPDFFormattingScriptsFromWidgets(p,null,h);await(0,c.SN)(e,t,{features:a}),g.length&&e((0,u.f_)({changes:g})),e(y)},I=e=>{let{fixpointValue:t,newWidth:n}=e;return async(e,r)=>{const o=r(),{contentEditorSession:i}=o;(0,s.V1)(i.contentEditor);const{textBlockInteractionState:a}=i;if(a?.state!==p.mS.Selected)return;const{pageIndex:c,textBlockId:u}=a;e({type:l.$eX,pageIndex:c,textBlockId:u,fixpointValue:t,newWidth:n});const d=(0,p.kE)(c,u)(r());(0,s.V1)(d),await i.contentEditor.layoutTextBlock(u,null,null,(0,f.jr)(d)).then((t=>e({type:l.lBj,pageIndex:c,textBlockId:u,updateInfo:t}))).catch()}},M=e=>{let{anchor:t,pageIndex:n=null,textBlockId:r=null,isKeyboardMove:o}=e;return async(e,i)=>{const a=i(),{contentEditorSession:c}=a;if((0,s.V1)(c.contentEditor),null===n||!r){const{textBlockInteractionState:e}=c;if(({pageIndex:n,textBlockId:r}=e),e?.state===p.mS.Active)return}e({type:l.ilz,pageIndex:n,textBlockId:r,anchor:t,isKeyboardMove:o});const u=(0,p.kE)(n,r)(i());(0,s.V1)(u),await c.contentEditor.layoutTextBlock(r,null,null,(0,f.jr)(u)).then((t=>e({type:l.lBj,pageIndex:n,textBlockId:r,updateInfo:t}))).catch()}},N=e=>(t,n)=>{const r=n(),{contentEditorSession:o}=r;(0,s.V1)(o.contentEditor);const{textBlockInteractionState:i}=o;(0,s.V1)(i?.state===p.mS.Active);const a=(0,p.kE)(i.pageIndex,i.textBlockId)(r);if(a)if(a.selection)o.contentEditor.textBlockApplyFormat(i.textBlockId,null,e,(0,f.jr)(a)).then((e=>{t({type:l.lBj,pageIndex:i.pageIndex,textBlockId:i.textBlockId,updateInfo:e})}));else{let n=a.modificationsCharacterStyle.fontRef.faceRef;e.family&&(n=n.set("family",e.family)),null!=e.bold&&(n=n.setIn(["variant","bold"],e.bold)),null!=e.italic&&(n=n.setIn(["variant","italic"],e.italic)),t({type:l.Vat,pageIndex:i.pageIndex,textBlockId:i.textBlockId,faceRef:n,color:e.color,size:e.size})}},O=async(e,t)=>{e(R());const{contentEditorSession:n}=t();(0,s.V1)(n.contentEditor);const r=await n.contentEditor.getAvailableFaces();e(L(r))},R=()=>({type:l.oJw}),j=(e,t)=>({type:l.NZW,tooltipRect:e,fontFace:t}),F=e=>async t=>{new Promise((n=>{setTimeout((()=>{e.aborted||t({type:l.qNu}),n()}),100)}))},B=e=>({type:l.NTB,abortController:e}),L=e=>({type:l.A39,faceList:e}),V=(e,t,n)=>async(r,o)=>{const{contentEditorSession:i}=o();(0,s.V1)(i.contentEditor),r({type:l.ydo});const a=await n(i.contentEditor);r({type:l.lBj,pageIndex:e,textBlockId:t,updateInfo:a})},K=async(e,t)=>{const n=t(),{contentEditorSession:o}=n,{textBlockInteractionState:i}=o;(0,s.V1)(i?.state===p.mS.Selected||i?.state===p.mS.Active);const{pageIndex:a,textBlockId:c}=i,u=(0,p.kE)(a,c)(t());(0,s.V1)(u);const d=(0,f.jr)(u);(0,r.vA)((()=>{e(_(a,c,"everything",d)),e(S(a,c,"forward",d)),e({type:l.TUU,pageIndex:a,textBlockId:c})}))},H=e=>({type:l.qU5,mode:e}),$=(e,t)=>async(n,o)=>{const{contentEditorSession:i}=o();(0,s.V1)(i.contentEditor),n({type:l.ydo});const a=await i.contentEditor.createTextBlock(e);a.textBlock.modificationsCharacterStyle.fontRef.size=16;const{id:c,textBlock:{maxWidth:u,alignment:d,lineSpacingFactor:p,modificationsCharacterStyle:h}}=a,f=await i.contentEditor.layoutTextBlock(c,null,null,{maxWidth:u,alignment:d,lineSpacingFactor:p,modificationsCharacterStyle:h});(0,r.vA)((()=>{n({type:l.bQ9,pageIndex:e,initialTextBlock:a,anchor:t.set("y",t.y-f.contentRect.offset.y/2)}),n({type:l.lBj,pageIndex:e,textBlockId:c,updateInfo:f})}))}},47750:(e,t,n)=>{"use strict";n.d(t,{K:()=>l,t:()=>s});var r=n(85409),o=n(33075),i=n(82500),a=n(83877);function s(e,t,n,i){return async(s,l)=>{const{backend:c,features:u,pages:d}=l();try{(0,r.V1)(c),c.cancelRequests();const n=await c.signDocumentAndReload(e,t);if(await(0,o.SN)(s,l,{features:u,pageKeys:d.map((e=>e.pageKey))}),n&&"STANDALONE"===c.type){const e=await c.runPDFFormattingScripts([n],!1);e.length>0&&s((0,a.f_)({changes:e,isReloading:!0}))}}catch(e){return i(e)}l().eventEmitter.emit("document.change",[]),n()}}function l(e){return{type:i.wY4,digitalSignatures:e}}},67926:(e,t,n)=>{"use strict";n.d(t,{Hp:()=>v,_p:()=>d,bb:()=>f,eW:()=>h,lL:()=>g,ym:()=>p});var r=n(85409),o=n(33075),i=n(82500),a=n(83877),s=n(97881),l=n(46952),c=n(83145),u=n(35467);function d(e,t,n){return async(i,l)=>{const{backend:u,features:d,pages:p,annotations:h,isAPStreamRendered:f}=l();(0,r.V1)(u);try{const t=e.map(s.ty);u.cancelRequests(),await u.applyOperationsAndReload(t);const n=await u.runPDFFormattingScriptsFromWidgets(h,null,f);await(0,o.SN)(i,l,{features:d,pageKeys:m(p.map((e=>e.pageKey)),e,h.filter((e=>e instanceof c.A)))}),n.length&&i((0,a.f_)({changes:n}))}catch(e){return n(e)}l().eventEmitter.emit("document.change",e),t()}}function p(e){return{type:i.K2b,documentHandle:e}}function h(e){return{type:i.VmY,isDocumentHandleOutdated:e}}function f(e,t){return async(n,i)=>{const{backend:s,features:l,annotations:c,isAPStreamRendered:u}=i();(0,r.V1)(s);try{s.cancelRequests(),await s.reloadDocument();const e=await s.runPDFFormattingScriptsFromWidgets(c,null,u);await(0,o.SN)(n,i,{features:l}),e.length&&n((0,a.f_)({changes:e}))}catch(e){return t(e)}i().eventEmitter.emit("document.change",[]),e()}}function m(e,t,n){return t.reduce(((e,t)=>{switch(t.type){case"addPage":return e.insert("beforePageIndex"in t?t.beforePageIndex:t.afterPageIndex+1,(0,l.A)());case"movePages":{const n=e.filter(((e,n)=>t.pageIndexes.includes(n)));return e.map(((e,n)=>t.pageIndexes.includes(n)?null:e)).splice("beforePageIndex"in t?t.beforePageIndex:t.afterPageIndex+1,0,...n.toArray()).filter((e=>e))}case"removePages":return e.filter(((e,n)=>!t.pageIndexes.includes(n)));case"keepPages":return e.filter(((e,n)=>t.pageIndexes.includes(n)));case"duplicatePages":return e.flatMap(((e,n)=>t.pageIndexes.includes(n)?[e,(0,l.A)()]:[e]));case"addPageMargins":case"cropPages":case"rotatePages":case"flattenAnnotations":return e.map(((e,n)=>!t.pageIndexes||t.pageIndexes.includes(n)?(0,l.A)():e));case"applyRedactions":{const t=n.map((e=>e.pageIndex)).toSet();return e.map(((e,n)=>t.includes(n)?(0,l.A)():e))}case"updateMetadata":case"setPageLabel":return e;case"importDocument":if(t.treatImportedDocumentAsOnePage){const n="beforePageIndex"in t?t.beforePageIndex:t.afterPageIndex+1;return e.map(((e,t)=>t<n?e:(0,l.A)()))}return e;case"applyInstantJson":case"applyXfdf":case"performOcr":return e.map((()=>(0,l.A)()));default:throw new Error(`Operation ${t} is not implemented`)}}),e)}function g(e,t){return{type:i.I9p,cropArea:e,cropPageIndex:t}}function v(e){return(t,n)=>{const{cropArea:o,cropPageIndex:i}=n();(0,r.V1)(o,"Crop area must be defined"),(0,r.V1)("number"==typeof i,"Crop page index must be defined"),t(d([{type:"cropPages",cropBox:o,pageIndexes:e?void 0:[i]}],(()=>{}),(()=>{}))),t((0,u.lH)())}}},62116:(e,t,n)=>{"use strict";n.d(t,{K:()=>o,m:()=>i});var r=n(82500);function o(e){return{type:r.qOc,outline:e}}function i(e){return{type:r.fPp,newState:e}}},83877:(e,t,n)=>{"use strict";n.d(t,{f_:()=>L,iJ:()=>V,l$:()=>P,aB:()=>T,jE:()=>H,aJ:()=>D,GX:()=>M,Lg:()=>R,SM:()=>O,Ek:()=>B,vM:()=>$,tl:()=>U,ar:()=>G,$D:()=>A,mV:()=>j,xH:()=>z,nA:()=>N,j2:()=>W,rl:()=>K,dx:()=>I});var r=n(7737),o=n(85409),i=n(49568),a=n(40961),s=n(76117),l=n(82500),c=n(97881),u=n(75439),d=n(53644),p=n(43836),h=n(83720),f=n(86977),m=n(77270),g=n(78729),v=n(93440),y=n(2815),b=n(93900);async function w(e,t,n){const{default:r}=await b.V[e](),i=(0,y.EY)({locale:e,messages:r},(0,y.MT)());setTimeout((()=>(0,o.S7)(i.formatMessage(t,n?.reduce(((e,t,n)=>({...e,[`arg${n}`]:t})),{})))),0)}var x=n(35467),S=n(30235),_=n(5511),C=n(89574),E=n(28301),k=n(46952);function z(e){return{type:l.Zkn,formJSON:e}}function P(e){return{type:l.e1v,formFieldValues:e}}function A(e){return{type:l.uoR,formFieldValues:e}}function D(e){return{type:l.TRW,formFieldValuesIds:e}}function T(e){return{type:l.UDq,formFields:e}}function I(e){return{type:l.f5v,formFields:e}}function M(e){return{type:l.yoE,formFieldsIds:e}}function N(e){return{type:l.XPU,onWidgetCreationStartCallback:e}}function O(){return e=>{e((0,x._e)(!0)),e((0,x.uT)(S.O.FORM_CREATOR))}}function R(){return e=>{e((0,x._e)(!1)),e((0,x.Fl)())}}function j(e,t){return(n,a)=>{const l=e.map((e=>new s.E2({name:e.name,value:e.value,optionIndexes:e.optionIndexes,isFitting:e.isFitting}))),c=(0,i.B8)(l),{backend:u,formFields:d,formFieldValueManager:p,annotations:f,viewportState:{zoomLevel:m}}=a();if((0,o.V1)(u),(0,o.V1)(p),g.JY.PDF_JAVASCRIPT&&"STANDALONE"===u.type)n(B(c,t));else{const e=[];(0,r.vA)((()=>{c.forEach((t=>{let r;const a=new Promise((e=>{r=e}));e.push(a),(0,h.hn)({getState:()=>({formFields:d,annotations:f,backend:u}),originalFormFields:(0,i.T5)([[t.name,d.get(t.name)]]),formFieldValues:(0,i.B8)(l),callback:e=>{if(!e.includes(t.name)){const e=d.get(t.name);(0,o.V1)(e);const r=e.annotationIds.reduce(((e,t)=>{const n=f.get(t);return n instanceof s.sb?e.push(n):e}),(0,i.B8)());if(e.multiLine){const o=(0,E.vS)(r.first(),e.value,m);n(A((0,i.B8)([t.set("isFitting",o)])))}else n(A((0,i.B8)([t])))}},resolve:r}),p.updateObject(t)}))})),Promise.all(e).then((()=>{t?.((0,i.B8)())})).catch((e=>{throw e}))}}}let F=Promise.resolve();function B(e,t){return async(n,r)=>{const l=F;let c;F=new Promise((function(e){c=e})),await l;let u=(0,i.B8)();try{const{backend:t}=r();if((0,o.V1)(t),"STANDALONE"!==t.type||!g.JY.PDF_JAVASCRIPT)return;const l=await(0,m.wR)(t.evalFormValuesActions(e),1e4),c=l.filter((e=>e.change_type===d.JI&&"pspdfkit/form-field-value"===e.object.type)),p=c.map((e=>e.object.name)),f=(0,i.B8)(c.map((e=>new s.E2({name:e.object.name,value:Array.isArray(e.object.value)?(0,i.B8)(e.object.value):e.object.value,optionIndexes:e.object.optionIndexes})))),v=e.map((e=>e.name)).toArray().filter((e=>p.indexOf(e)<0)),{formFields:y}=r(),b=(0,h.UA)(y.filter(((e,t)=>v.indexOf(t)>=0))),w=y.filter((t=>e.find((e=>e.name===t.name))||b.find((e=>e.name===t.name))||p.includes(t.name))),x=e.map((e=>f.find((t=>t.name===e.name))||e)).concat(f.filter((t=>!e.find((e=>e.name===t.name)))));(0,h.hn)({getState:r,originalFormFields:w,formFieldValues:x,callback:t=>{e.size>0&&(0,a.flushSync)((function(){n(A(e))})),b.size>0&&(u=b,n(A(b))),n(L({changes:l,unchangedFormFieldValues:t}))}})}catch(e){}finally{c()}t?.(u)}}function L(e){let{changes:t,unchangedFormFieldValues:n=[],resolve:a,reject:s,isReloading:m=!1}=e;return(e,g)=>{const y=g(),{annotations:b,formFields:x,formFieldManager:S,formFieldValueManager:C,backend:E,autoSaveMode:k}=y,z=y.formattedFormFieldValues;let P,D=(0,i.B8)(),T=y.editingFormFieldValues;(0,r.vA)((function(){E?.setFormJSONUpdateBatchMode(!0).catch((e=>{s?.(e)})),D=D.withMutations((n=>{P=z.withMutations((r=>{t.forEach((t=>{let{change_type:i,object:a}=t;switch(i){case d.Us:case d.JI:if("pspdfkit/form-field-value"===a.type){const e=(0,c.R5)(a);n.push(e),"string"==typeof a.formattedValue&&r.set(e.name,a.formattedValue),"string"==typeof a.editingValue&&(T=T.set(e.name,a.editingValue))}else if(a.type.startsWith("pspdfkit/form-field/")){if(!S)return;const t=(0,c.mh)(a.id,a,{permissions:a.permissions,group:a.group});x.has(t.name)?e(K(t)):e(V(t))}else try{const t=(0,c.h8)(a.id,a);b.has(t.id)?e((0,u.g_)(t)):e((0,u.Xs)(t))}catch(e){(0,o.R8)(`Form actions: unable to apply change of type "${i}"\n\n${a}\n\n${e.message}`)}break;case d.jG:if(a.type.startsWith("pspdfkit/form-field/")){const t=x.get(a.name);t?e(H(t)):(0,o.R8)(`Form actions: unable to find FormField to delete with id "${a.id}".`)}else{const t=b.get(a.id);t?e((0,u.eS)(t)):(0,o.R8)(`Form actions: unable to find Annotation to delete with id "${a.id}".`)}break;case d.f8:switch(a.type){case"pspdfkit/javascript/effects/alert":{const{message:e}=a;if(e.startsWith(h.FI)){const t=e.split("[")[1].split("]"),n=t[1].split(h.uY);w(y.locale,v.e.dateValidationBadFormat,[t[0],n[1]])}else if(e.startsWith(h.Iu)){const t=e.split("[")[1].split("]");w(y.locale,v.e.numberValidationBadFormat,[t[0]])}else(0,o.S7)(e);break}case"pspdfkit/javascript/effects/print":e((0,f.yy)());break;case"pspdfkit/javascript/effects/launchURL":{const e=y.onOpenURI?.(a.url,!1);e&&(a.newFrame?(0,p.A)(a.url):(0,p.b)(a.url));break}case"pspdfkit/javascript/effects/mail":{if(!a.to)break;let e=`mailto:${Array.isArray(a.to)?a.to.join(","):a.to}?`;const t=[];if(a.subject&&t.push(`subject=${encodeURIComponent(a.subject)}`),a.cc){const e=Array.isArray(a.cc)?a.cc.map((e=>encodeURIComponent(e))).join(";"):encodeURIComponent(a.cc);t.push(`cc=${e}`)}if(a.bcc){const e=Array.isArray(a.bcc)?a.bcc.map((e=>encodeURIComponent(e))).join(";"):encodeURIComponent(a.bcc);t.push(`bcc=${e}`)}a.message&&t.push(`body=${encodeURIComponent(a.message)}`),e+=t.join("&"),(0,p.A)(e);break}case"pspdfkit/javascript/effects/importIcon":{const t=b.find((e=>e.pdfObjectId===a.annotationID||e.id===a.id));t?e(G(t)):(0,o.R8)(`Form actions: unable to find Annotation to import icon for with pdfObjectId "${a.annotationID}".`);break}default:(0,o.R8)(`Form actions: side effect "${a.type}" not supported.`)}break;case d.M6:break;default:(0,o.R8)(`Form actions: change type "${i}" not supported.`)}}))}))}))}));const I=E?.setFormJSONUpdateBatchMode(!1);let M=[];if(D.size>0){e(A(D)),P&&P.size>0&&e(function(e){return{type:l.$uS,formattedFormFieldValues:e}}(P)),T.size>0&&e(function(e){return{type:l.J7t,editingFormFieldValues:e}}(T)),(0,o.V1)(C);let t=(0,i.NZ)();M=D.filter((e=>!n.includes(e.name))).map((e=>{if(C.updateObject(e),m){const n=x.get(e.name);if(n){const e=n.annotationIds.map((e=>b.get(e)||b.find((t=>e===String(t.pdfObjectId))))).filter(Boolean);t=t.concat((0,i.NZ)(e.map((e=>e.pageIndex))))}}return k===_.O.DISABLED?Promise.resolve():C.ensureObjectSaved(e)})).toArray(),m&&t.size>0&&e({type:l.LAB,pageIndexes:t})}Promise.all([I,...M]).then((()=>{a?.()})).catch((e=>{s?.(e)}))}}function V(e){return(t,n)=>{const{formFields:r,formFieldManager:a}=n();if(r.get(e.name))throw new o.uE(`Cannot create form field: a form field with the name "${e.name}" already exists. Form field names must be unique.`);t(T((0,i.B8)([e]))),a?.createObject(e)}}function K(e){return(t,n)=>{const{formFields:r,annotationManager:a,annotations:l,backend:c,formFieldManager:d}=n(),p=r.find((t=>t.id===e.id||t.name===e.name));if(!p)return void(0,o.R8)("A form field that does not exist was updated. This is probably caused by a sync conflict when Instant is enabled.\nThe update of this form field was skipped.");const h=e.merge({value:p.value,values:p.values});if(p.readOnly!==e.readOnly){const t=e.annotationIds.map((e=>l.get(e))).filter(Boolean);(0,C.g8)({formFields:r,backend:c},t,e)}let f;if(t(I((0,i.B8)([h]))),p.name!==e.name){const n=l.filter((e=>e instanceof s.sb&&e.formFieldName===p.name)).toList();f=n.map((t=>t.set("formFieldName",e.name))),t((0,u.iN)(f))}d?.updateObject(h),f&&f.size>0&&f.forEach((e=>{a?.updateObject(e)}))}}function H(e){return(t,n)=>{const r=n(),o=e.annotationIds.map((e=>r.annotations.get(e))).filter(Boolean);var a;o.isEmpty()||(t((0,u.Ud)(o.map((e=>e?.id)).toSet())),o.forEach((e=>{r.annotationManager?.deleteObject(e)}))),t((a=(0,i.NZ)([e.name]),{type:l.ngf,formFieldNames:a})),r.formFieldManager?.deleteObject(e)}}function $(e,t,n){return(r,i)=>{const{formFields:a,annotations:l}=i();(0,o.V1)(a.has(e.name),`Form field with name "${e.name}" not found; renaming it is not possible.`),(0,o.V1)(e.annotationIds.size===n.size,"Invalid newWidgetIds size.");const c=e.annotationIds.map((e=>l.get(e)||l.find((t=>String(t.pdfObjectId)===e)))).filter((e=>e instanceof s.sb)),d=c.map(((e,r)=>{const i=n.get(r);return(0,o.V1)(i,"Invalid newWidgetId."),e.set("formFieldName",t).set("id",i).set("pdfObjectId",null)})),p=d.map((e=>e.id));d.forEach((e=>{r((0,u.Xs)(e))}));const h=e.merge({name:t,id:(0,k.A)(),pdfObjectId:null,annotationIds:p});r(V(h))}}function U(e,t){return(n,r)=>{const i=q(r(),e,t).map((e=>{const{name:t}=e;let n;return e instanceof s.uS||e instanceof s.Qk?n=e.defaultValue:e instanceof s.G_||e instanceof s.av?n=e.defaultValues:e instanceof s.$h?n=null:(0,o.V1)(!1),new s.E2({name:t,value:n})}));g.JY.PDF_JAVASCRIPT&&n(B(i)),n(A(i)),i.forEach((e=>{r().formFieldValueManager?.updateObject(e)}))}}function W(e){return(t,n)=>{const r=n();let a,l=!1;if(r.formFieldValueManager?.eventEmitter.emit("willSubmit",{preventDefault:()=>l=!0}),l)return;const{uri:c,fields:u,includeExclude:d,exportFormat:p,getMethod:h,submitPDF:f,xfdf:m}=e,g=(0,i.T5)(q(r,u,d).filter((e=>!e.noExport)).map((e=>{const{name:t}=e;return[t,e instanceof s.$h?null:void 0===e.value?e.values:e.value]})));if(p){const e=function(e){const t=[];return e.forEach(((e,n)=>{const r=encodeURIComponent(n);"string"==typeof e?t.push(`${r}=${encodeURIComponent(e)}`):null===e?t.push(`${r}=`):e instanceof i.B8&&e.forEach((e=>{t.push(`${r}[]=${encodeURIComponent(e)}`)}))})),t.join("&")}(g);if(h)a=Promise.resolve({uri:`${c}?${e}`,fetchOptions:{method:"GET"}});else{const t={headers:new Headers({"Content-Type":"application/x-www-form-urlencoded"}),method:"POST",body:e};a=Promise.resolve({uri:c,fetchOptions:t})}}else{if(!f)return m?void(0,o.z3)("XFDF Form submission not supported yet."):void(0,o.z3)("FDF Form submission not supported yet.");(0,o.V1)(r.backend),a=r.backend.exportPDF({flatten:!0,incremental:!1}).then((e=>{const t={headers:new Headers({"Content-Type":"application/pdf"}),method:"POST",body:e};return{uri:c,fetchOptions:t}}))}a.then((e=>{let{uri:t,fetchOptions:n}=e;fetch(t,n).then((e=>{r.formFieldValueManager?.eventEmitter.emit("didSubmit",{response:e})}))})).catch((e=>{e(`Form submission failed with the following error:\n\n${e}`),r.formFieldValueManager?.eventEmitter.emit("didSubmit",{error:e})}))}}function q(e,t,n){let r;const o=e.formFields.keySeq().toSet();return r=t?n?o.subtract(t):o.intersect(t):o,e.get("formFields").valueSeq().filter((e=>r.includes(e.name))).toList()}function G(e){return{type:l.hNe,annotation:e}}},23237:(e,t,n)=>{"use strict";n.d(t,{GJ:()=>w,ZS:()=>y,_v:()=>m,g4:()=>b,tN:()=>v,tw:()=>x,w7:()=>g});var r=n(49568),o=n(85409),i=n(82500),a=n(75439),s=n(47055),l=n(22372),c=n(89574),u=n(3745),d=n(41567),p=n(46952),h=n(83877);function f(e){return{type:i.tII,historyChangeContext:e}}function m(e,t){return(n,r)=>{const{historyChangeContext:o}=r();n(f(e)),t(),n(f(o))}}function g(e){return{type:i.j_B,annotationId:e}}function v(){return(e,t)=>{const{undoActions:n,annotations:f,isHistoryEnabled:g}=t();if(!g)throw new o.uE("Cannot undo: the Undo Redo history API is disabled.");if(0===n.size)throw new o.uE("Cannot undo: the Undo actions history is empty.");const v=n.last(),y=(0,s.oS)(v,f);e(m(u.I.HISTORY,(()=>{"create"===v.type?e(function(e){return function(t,n){const{historyIdsMap:o,backend:s}=n();let l=e.payload;const c=e.formField;if(e.restoreAPStream&&"STANDALONE"===s?.type&&(l=l.set("APStreamCache",{attach:o.get(l.id)||l.id})),t((0,a.Xs)(l)),c&&t((0,h.iJ)(c)),l.isCommentThreadRoot&&e.comments){e.comments.map((t=>t.set("rootId",e.payload.id).set("id",(0,p.A)()))).forEach((e=>{t((0,d.VM)(e))}))}e.restoreAPStream?t((0,a.dH)((0,r.T5)([[l.id,l.pageIndex]]))):t((0,a.ke)((0,r.T5)([[l.id,l.pageIndex]])));const u={type:"delete",payload:{id:l.id}};t({type:i.XX9,nextRedoAction:u})}}(v)):"update"===v.type?e(function(e){return function(t,n){const{annotations:u,historyIdsMap:d,backend:p}=n();let h=u.get(e.payload.id);!h&&e.deletedAnnotation&&(h=e.deletedAnnotation.set("id",(0,c.K1)()),t((0,a.Xs)(h))),(0,o.V1)(h instanceof l.A);let f=h.merge({...e.payload,pdfObjectId:h.pdfObjectId,id:h.id});e.restoreAPStream&&"STANDALONE"===p?.type&&(f=f.set("APStreamCache",{attach:d.get(f.id)||f.id})),t((0,a.g_)(f)),e.restoreAPStream&&t((0,a.dH)((0,r.T5)([[f.id,f.pageIndex]])));const m={type:"update",payload:{...(0,s.hH)(f,h),id:h.id}};t({type:i.XX9,nextRedoAction:m}),t({type:i.lfs,oldId:d.get(e.payload.id)||e.payload.id,newId:h.id})}}(v)):"delete"===v.type?e(function(e){return function(t,n){const o=n(),{annotations:u,commentThreads:d,comments:p,historyIdsMap:f}=o,m=u.get(e.payload.id);if(!(m instanceof l.A))return;t((0,a.eS)(m));const g=(0,c.K1)(),v=(0,s._3)(m,g,d,p),y=(0,s.mE)(m,g,o);y&&t((0,h.GX)((0,r.NZ)([y.id])));const b={type:"create",payload:m.merge(e.payload).set("id",g),comments:v,formField:y};t({type:i.XX9,nextRedoAction:b,oldId:e.payload.id}),t({type:i.lfs,oldId:f.get(e.payload.id)||e.payload.id,newId:g})}}(v)):(0,o.GQ)(v.type)})));const{annotations:b,eventEmitter:w}=t(),x=(0,s.pS)(v,b,v.payload.id);w.emit("history.undo",{before:y,after:x}),w.emit("history.change",{before:y,after:x,action:"undo"})}}function y(){return(e,t)=>{const{redoActions:n,annotations:r,isHistoryEnabled:f}=t();if(!f)throw new o.uE("Cannot redo: the Undo Redo history API is disabled.");if(0===n.size)throw new o.uE("Cannot redo: the Redo actions history is empty.");const g=n.last(),v=(0,s.oS)(g,r);e(m(u.I.HISTORY,(()=>{"create"===g.type?e(function(e){return t=>{const n=e.payload,r=e.formField;if(t((0,a.Xs)(n)),n.isCommentThreadRoot&&e.comments){e.comments.map((e=>e.set("rootId",n.id).set("id",(0,p.A)()))).forEach((e=>{t((0,d.VM)(e))}))}r&&t((0,h.iJ)(r));const o={type:"delete",payload:{id:n.id}};t({type:i.V5X,nextUndoAction:o})}}(g)):"update"===g.type?e(function(e){return(t,n)=>{const{annotations:r}=n(),u=r.get(e.payload.id);(0,o.V1)(u instanceof l.A);const d=u.merge({...e.payload,id:u.id}),p=(0,c.sz)(n,u,(()=>{t((0,a.g_)(d))})),h={type:"update",payload:(0,s.hH)(d,u),restoreAPStream:p};t({type:i.V5X,nextUndoAction:h})}}(g)):"delete"===g.type&&e(function(e){return(t,n)=>{const r=n(),{historyIdsMap:u,annotations:d,commentThreads:p,comments:h}=r,f=d.get(e.payload.id);(0,o.V1)(f instanceof l.A);const m=(0,c.sz)(n,f,(()=>{t((0,a.eS)(f))})),g=(0,c.K1)(),v=(0,s._3)(f,g,p,h),y=(0,s.mE)(f,g,r),b={type:"create",payload:f.set("id",g),restoreAPStream:m,comments:v,formField:y};t({type:i.V5X,nextUndoAction:b,oldId:e.payload.id}),t({type:i.lfs,oldId:u.get(e.payload.id)||e.payload.id,newId:g})}}(g))})));const{annotations:y,eventEmitter:b}=t(),w=(0,s.pS)(g,y,g.payload.id);b.emit("history.redo",{before:v,after:w}),b.emit("history.change",{before:v,after:w,action:"redo"})}}function b(){return(e,t)=>{e({type:i.RG9});const{backend:n,eventEmitter:r}=t();"STANDALONE"===n?.type&&n.clearAPStreamCache(),r.emit("history.clear")}}function w(){return{type:i.TpM}}function x(){return{type:i.MPB}}},8593:(e,t,n)=>{"use strict";n.d(t,{Al:()=>l,NJ:()=>d,Qc:()=>p,XL:()=>m,lO:()=>c,nt:()=>f,rs:()=>u,yL:()=>h});var r=n(85409),o=n(67926),i=n(44523),a=n(35467),s=n(82500);function l(e){return{type:s.zjV,measurementToolState:e}}function c(e){return{type:s.Fe8,hintLines:e}}function u(e){return{type:s.SmB,secondaryMeasurementUnit:e}}function d(e){return{type:s.cX,activeMeasurementScale:e}}function p(e){return{type:s.gKg,isCalibratingScale:e}}const h=e=>async(t,n)=>{const o=n();(0,r.V1)(o.backend);const{backend:i,secondaryMeasurementUnit:a}=o;try{e&&(await(i?.setSecondaryMeasurementUnit(e)),t(u(e))),a&&!e&&(await(i?.setSecondaryMeasurementUnit(null)),t(u(null)))}catch(e){(0,r.R8)(`Failed to set secondary measurement unit: ${e}.`),t(u(a))}},f=(e,t)=>async(n,s)=>{const l=s();(0,r.V1)(l.backend);const{backend:c,measurementScales:u}=l,d="STANDALONE"===c.type;(0,r.V1)(u);const{added:p,deleted:h}=(0,i.b4)(u,e),f=h.map((async e=>{d&&await(c?.removeMeasurementScale(e));const r=t?.find((t=>t.prevScale===e));r||await(0,i.KQ)({deletedScale:e,getState:s,dispatch:n})})),m=p.map((async e=>{d&&await(c?.addMeasurementScale(e))})),g=t?.map((async t=>{await(0,i.Py)({scale:e[t.index],oldScale:t.prevScale,getState:s,dispatch:n})}));Promise.all([f,m,g]).then((async()=>{d||(p.length>0?await(c?.addMeasurementScale(p[0])):h.length>0&&await(c?.removeMeasurementScale(h[0])),n((0,o.eW)(!0))),n((0,a.Ue)(e))}))},m=e=>async(t,n)=>{const o=n();(0,r.V1)(o.backend);const{backend:i,measurementScales:s}=o;await(i?.addMeasurementScale(e)),t((0,a.Ue)(s?[...s,e]:[e]))}},76943:(e,t,n)=>{"use strict";n.d(t,{$w:()=>a,CN:()=>h,GL:()=>y,Gj:()=>x,Ip:()=>C,Ir:()=>s,XP:()=>l,Xy:()=>w,YQ:()=>c,Zj:()=>i,_m:()=>g,e$:()=>S,ed:()=>p,fX:()=>k,ke:()=>m,kw:()=>u,mI:()=>v,nF:()=>f,pH:()=>_,tV:()=>d,uL:()=>b,xT:()=>E});var r=n(82500),o=n(41567);const i=()=>({type:r.ASR}),a=()=>({type:r.wYS}),s=e=>({type:r.NjH,pageIndex:e}),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:r.TpQ,scrollPosition:e,lastScrollUsingKeyboard:t}},c=(e,t)=>({type:r.e$c,pageIndex:e,rect:t}),u=(e,t)=>({type:r.yI7,pageIndex:e,rect:t});function d(e,t){return n=>{n({type:r.vSr,viewportRect:e,isTriggeredByOrientationChange:t}),n((0,o.GO)())}}const p=(e,t)=>({type:r._XN,zoomLevel:e,scrollPosition:t}),h=e=>({type:r.o1d,viewportState:e}),f=()=>({type:r.UrP}),m=()=>({type:r.hUH}),g=()=>({type:r.iU1}),v=()=>({type:r.XZE}),y=()=>({type:r.T7d}),b=e=>({type:r.$w5,wheelZoomMode:e}),w=e=>({type:r.ym1,isLegacyZoom:e}),x=e=>({type:r.CHH,zoomOptions:e}),S=e=>({type:r.UWX,degCW:e}),_=()=>({type:r.Qti}),C=()=>({type:r.Z8}),E=e=>({type:r.lxe,width:e}),k=e=>({type:r.twv,shouldDisable:e})},53253:(e,t,n)=>{"use strict";n.d(t,{Ok:()=>g,S9:()=>c,Sz:()=>m,Tm:()=>h,Y3:()=>u,d_:()=>d,ew:()=>f,gp:()=>v,nX:()=>l,z_:()=>p});var r=n(7737),o=n(82500),i=n(38849),a=n(46952);const s=(0,i.A)();function l(e,t){return{type:o.TTm,payload:e,pageKeys:t}}function c(e,t){return{type:o.Uas,payload:e,pageKeys:t}}function u(e){return{type:o.iMO,payload:e}}const d=(e,t)=>({type:o.u8m,pageIndex:e,contentBlocks:t}),p=(e,t)=>({type:o.uO1,pageIndex:e,pageInfo:t});function h(e){return{type:o.dVR,backendPermissions:e}}const f=e=>({type:o.k0y,OCGLayers:e}),m=e=>({type:o._w,visibleLayerIds:e}),g=e=>({type:o.mND,embeddedFiles:e}),v=e=>async(t,n)=>{(0,r.vA)((async()=>{const{backend:r,pages:i}=n();var l;s(r),t(m(e.visibleLayerIds)),await r.setOCGVisibilityState(e),t((l=i.map((e=>({pageIndex:e.pageIndex,pageKey:(0,a.A)()}))),{type:o.Ps5,pageKeysForPages:l}))}))}},86977:(e,t,n)=>{"use strict";n.d(t,{gr:()=>D,be:()=>A,yy:()=>I});var r=n(49568),o=n(85409),i=n(37361),a=n(27634),s=n(76117),l=n(9627);const c=l.LZ;function u(e,t,n){const r=i._M[n];let o=r>=i._M[a.z.LOW]&&c?i._M[a.z.MEDIUM]:r;t||(o=i._M[a.z.MEDIUM]);let l=e.scale(o).floor();return l.width>i.bg&&l.width>l.height&&(l=new s.or({width:i.bg,height:Math.round(i.bg*l.height/l.width)})),l.height>i.bg&&l.height>l.width&&(l=new s.or({width:Math.round(i.bg*l.width/l.height),height:i.bg})),[l,o]}const d=e=>{const t=e.scale(i.Cy);return new s.or({width:Math.ceil(t.width),height:Math.floor(t.height)})};function p(e,t,n,r){const a=e.ownerDocument,l=a.createElement("div");l.id="print";const c=a.createElement("style");c.textContent=function(e){const t=`\n    @page {\n      size: ${e.width}pt ${e.height}pt;\n    }\n\n    \n    @page {\n      margin: 0;\n    }`;return`\n    @media print {\n      \n      * {\n        ${h()}\n        padding: 0 !important;\n        margin: 0 !important;\n        box-sizing: initial !important;\n        display: none !important;\n        visibility: hidden !important;\n      }\n\n      html, body {\n        ${h()}\n        height: 100% !important;\n        width: 100% !important;\n        display: block !important;\n        visibility: visible !important;\n      }\n\n      \n\n      body {\n        background: transparent none !important;\n      }\n\n      #print, #print-container {\n        ${h()}\n        display: block !important;\n        visibility: visible !important;\n        height: 100% !important;\n      }\n\n      #print-container > div {\n        ${h()}\n        display: block !important;\n        visibility: visible !important;\n        position: relative !important;\n        top: 0 !important;\n        left: 0 !important;\n        width: 1px !important;\n        height: 1px !important;\n        overflow: visible !important;\n        page-break-after: always !important;\n        page-break-inside: avoid !important;\n      }\n\n      #print-container canvas {\n        ${h()}\n        display: block !important;\n        visibility: visible !important;\n      }\n\n    \n      #print-container > .rotate90 {\n       ${h()}\n        display: block !important;\n        visibility: visible !important;\n        transform: rotate(90deg) !important;\n    }\n\n    \n    #print-container > .rotateNegative90 {\n       ${h()}\n        display: block !important;\n        visibility: visible !important;\n        transform: translateY(${Math.abs(e.height-e.width)}pt) rotate(-90deg) !important;\n    }\n\n    \n    @-moz-document url-prefix() {\n      #print-container > .rotateNegative90 , #print-container > .rotate90 {\n        margin-bottom: ${Math.abs(e.height-e.width)}pt !important;\n      }\n    }\n\n\n\n\n    ${t}\n  `}(function(e){const t=e.first();if(!t)return new s.or({width:i.Pw,height:i.Gz});let n=!1;const r=e.reduce(((e,t)=>{let{pageSize:r}=t;return r.width<e.width?(n=!0,r):(r.height!=e.height&&(n=!0),e)}),t.pageSize).floor();return n&&(0,o.R8)("Printing documents using PrintMode.DOM may lead to incorrect results because not all pages have the same size.\nFor more information, see: https://pspdfkit.com/guides/web/current/features/printing/"),r}(n));const u=a.createElement("div");return u.id="print-container",t.forEach(((e,t)=>{const{rotation:o}=n.get(t)||{},i=a.createElement("div");if(i.classList.add("page"),r){e.width>e.height&&(1===o?i.classList.add("rotateNegative90"):i.classList.add("rotate90"))}i.appendChild(e),u.appendChild(i)})),l.appendChild(c),l.appendChild(u),e.appendChild(l),()=>{e.removeChild(l)}}function h(){return"animation: none 0s ease 0s 1 normal none running !important;\nbackface-visibility: visible !important;\nbackground: transparent none repeat 0 0/auto auto padding-box border-box scroll !important;\nborder: medium none currentColor !important;\nborder-collapse: separate !important;\nborder-image: none !important;\nborder-radius: 0 !important;\nborder-spacing: 0 !important;\nbottom: auto !important;\nbox-shadow: none !important;\nbox-sizing: content-box !important;\ncaption-side: top !important;\nclear: none !important;\nclip: auto !important;\ncolor: #000 !important;\ncolumns: auto !important;\ncolumn-count: auto !important;\ncolumn-fill: balance !important;\ncolumn-gap: normal !important;\ncolumn-rule: medium none currentColor !important;\ncolumn-span: 1 !important;\ncolumn-width: auto !important;\ncontent: normal !important;\ncounter-increment: none !important;\ncounter-reset: none !important;\ncursor: auto !important;\ndirection: ltr !important;\ndisplay: inline !important;\nempty-cells: show !important;\nfloat: none !important;\nfont-family: serif !important;\nfont-size: medium !important;\nfont-style: normal !important;\nfont-variant: normal !important;\nfont-weight: 400 !important;\nfont-stretch: normal !important;\nline-height: normal !important;\nheight: auto !important;\nhyphens: none !important;\nleft: auto !important;\nletter-spacing: normal !important;\nlist-style: disc outside none !important;\nmargin: 0 !important;\nmax-height: none !important;\nmax-width: none !important;\nmin-height: 0 !important;\nmin-width: 0 !important;\nopacity: 1 !important;\norphans: 2 !important;\noutline: medium none invert !important;\noverflow: visible !important;\noverflow-x: visible !important;\noverflow-y: visible !important;\npadding: 0 !important;\npage-break-after: auto !important;\npage-break-before: auto !important;\npage-break-inside: auto !important;\nperspective: none !important;\nperspective-origin: 50% 50% !important;\nposition: static !important;\nright: auto !important;\ntab-size: 8 !important;\ntable-layout: auto !important;\ntext-align: left !important;\ntext-align-last: auto !important;\ntext-decoration: none !important;\ntext-indent: 0 !important;\ntext-shadow: none !important;\ntext-transform: none !important;\ntop: auto !important;\ntransform: none !important;\ntransform-origin: 50% 50% 0 !important;\ntransform-style: flat !important;\ntransition: none 0s ease 0s !important;\nunicode-bidi: normal !important;\nvertical-align: baseline !important;\nvisibility: visible !important;\nwhite-space: normal !important;\nwidows: 2 !important;\nwidth: auto !important;\nword-spacing: normal !important;\nz-index: auto !important;\nall-initial !important;"}var f=n(35467),m=n(83720),g=n(33728),v=n(89574),y=n(7516),b=n(75675);const w={macos:{blink:!0,webkit:!0},windows:{blink:!0},ios:{webkit:!0},android:{},linux:{blink:!0},unknown:{}};let x=null,S=null,_=null,C=null;function E(){_&&(clearTimeout(_),_=null),C&&(clearTimeout(C),C=null),x&&x.parentNode&&(x.parentNode.removeChild(x),x=null),S&&S()}var k=n(82500),z=n(89055);function P(){return{type:k.TPz}}function A(){return{type:k.up7}}function D(){return{type:k.dLL}}function T(e){const t="number"==typeof e?e:null;return{type:k.Xnw,currentPage:t}}function I(){let{mode:e,excludeAnnotations:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(n,r)=>{e||(e=r().printMode);return(e===y.l.DOM?N:O)(n,r,t)}}let M=()=>{};async function N(e,t,n){e((0,f.y7)()),e(T(0)),e(P());const o=[];let i=t(),a=[];function c(){a.forEach((e=>{e()})),a=[]}M(),M=c;for(const{pageIndex:p,pageSize:h}of i.pages){if(!t().isPrinting)return M(),M=()=>{},void e(T(null));const[f,g]=u(h,(0,z.Po)(i),i.printQuality);try{await(i.annotationManager?.loadAnnotationsForPageIndex(p)),i=t();const c=i.pages.get(p);let u;if((0,b.V)(c&&i.backend),n)u=i.backend.corePDFBridge.renderTile(p,f,new s.rw({width:f.width,height:f.height}),!0,!0).promise;else{const{annotationIds:e}=c,t=e.map((e=>i.annotations.get(e))).filter(Boolean).filter((e=>(0,v.Z6)(e)&&(0,v.mH)(e)&&!(e instanceof s.dG||e instanceof s.tr&&i.commentThreads.has(e.id)))).toList(),n=i.formFields.filter((e=>e.annotationIds.some((e=>{const t=i.annotations.get(e);return!(!t||t.pageIndex!==p)})))),o=(0,m.UA)(n),a=t.reduce(((e,t)=>e.merge((0,v.Bv)(i.attachments,t))),(0,r.T5)()),l=i.digitalSignatures?.signatures?.filter((e=>n.some((t=>{let{name:n}=t;return n===e.signatureFormFQN}))));u=i.backend.corePDFBridge.renderTile(p,f,new s.rw({width:f.width,height:f.height}),!0,!0,{annotations:t,formFieldValues:o,attachments:a,signatures:l,formFields:n.toList()}).promise}let{element:y,release:w}=await u;if(a.push(w),"IMG"===y.nodeName){const e=y,t=document.createElement("canvas");t.width=f.width,t.height=f.height;const n=t.getContext("2d");(0,b.V)(n),n?.drawImage(e,0,0),y=t}const{renderPageCallback:x}=i;if("function"==typeof x){const e=y.getContext("2d");e?.scale(g,g),x(e,p,h)}const S=l.nr?h:d(h);y.style.cssText=`width: ${S.width}px !important;\nheight: ${S.height}px !important; display: none; filter: none; ${l.gm?"border: 1px solid transparent !important":""}`,o.push(y),e(T(p+1))}catch(e){throw c(),e}}try{(0,b.V)(document.body,"Printing requires a `<body>` tag in the main HTML layout.");const{pages:t}=i,n=function(e){let t;for(const[n,{pageSize:r}]of e.entries()){const e=r.width>r.height?"landscape":"portrait";if(0!==n){if(e!==t)return!0}else t=e}return!1}(t),r=p(document.body,o,t,n);M=()=>{c(),r()},await(h=()=>{if((0,g.dx)(),window.focus(),l.Qg){let e=!1;const t=()=>{e=!0,window.focus()},n=()=>{e=!1},r=()=>{e||(window.removeEventListener("focus",r),window.removeEventListener("beforeprint",t),window.removeEventListener("afterprint",n),M(),M=()=>{})};window.addEventListener("focus",r),window.addEventListener("beforeprint",t),window.addEventListener("afterprint",n)}window.print()},y=()=>{e((0,f.JN)()),e(A()),e(T(null))},new Promise((e=>{setTimeout((()=>{h(),y(),e()}))})))}catch(e){throw e}finally{l.Qg||(M(),M=()=>{})}var h,y}async function O(e,t,n){const r=t().backend;if((0,b.V)(r),!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.qU,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.Hi,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:navigator.plugins;const r=w[e].hasOwnProperty(t);let o="ios"===e;const i=/pdf/i;for(let e=0;e<n.length;e++)n[e].name.match(i)&&(o=!0);return r&&o}()||t().hasPassword)if("STANDALONE"===r.type&&"function"==typeof navigator.msSaveOrOpenBlob){const e=await r.exportPDF({flatten:!0,incremental:!1,includeComments:!1,saveForPrinting:!0,excludeAnnotations:n});navigator.msSaveOrOpenBlob(new Blob([e],{type:"application/pdf"}),"document.pdf")}else{const{promise:e}=r.getPDFURL({includeComments:!1,saveForPrinting:!0,excludeAnnotations:n});!function(e){const t=window.open(e,"_blank");t?(t.opener=null,t.focus()):(0,o.Rm)("PSPDFKit: cannot open the PDF document in another window. You browser is probably blocking the popup.")}(await e)}else{e(P());try{await function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.Hi,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise((async(r,o)=>{const i=12e4;E();const a=document.documentElement;(0,b.V)(a,"Could not access document.documentElement");const{promise:s,revoke:l}=e.generatePDFObjectURL({includeComments:!1,saveForPrinting:!0,excludeAnnotations:n});S=l;const c=await s;try{x=document.createElement("iframe"),x.setAttribute("src",c),x.setAttribute("aria-hidden","true"),(u=x).dataset.pspdfkitPrint="true",u.style.display="none",u.setAttribute("type","application/pdf"),x.onload=()=>{(0,b.V)(x,"iframe.onload called without element"),(0,b.V)(x instanceof HTMLIFrameElement,"element must be of type iframe");const e=x.contentWindow;if("webkit"===t){const t=setInterval((()=>{"about:blank"!==e?.location.href&&"complete"===e?.document.readyState&&(clearInterval(t),x?.focus(),e?.print(),r(),_=setTimeout(E,i))}),100);setTimeout((()=>{clearInterval(t),o("Print failed: the document is taking too long to prepare"),E()}),5e3)}else x.focus(),e?.print(),r(),_=setTimeout(E,i)},a.appendChild(x)}catch(e){o(e),E()}var u}))}(r,void 0,n),e(A())}catch(t){e(A())}}}},59663:(e,t,n)=>{"use strict";n.d(t,{g:()=>s});var r=n(85409),o=n(33075),i=n(83145),a=n(46952);function s(e,t){return async(n,i)=>{const{backend:a,features:s}=i();try{(0,r.V1)(a),a.cancelRequests(),await a.applyRedactionsAndReload(),await(0,o.SN)(n,i,{features:s,pageKeys:l(i())})}catch(e){return t(e)}i().eventEmitter.emit("document.change",[]),e()}}function l(e){const{pages:t,annotations:n}=e,r=n.filter((e=>e instanceof i.A)).map((e=>e.pageIndex)).toSet();return t.map((e=>r.includes(e.pageIndex)?(0,a.A)():e.pageKey))}},42633:(e,t,n)=>{"use strict";n.d(t,{DP:()=>l,M9:()=>d,VE:()=>c,XS:()=>u,_H:()=>i,iP:()=>p,md:()=>a,ow:()=>o,yK:()=>s});var r=n(82500);function o(e){return{type:r.Swp,term:e}}function i(){return{type:r.v9$}}function a(){return{type:r.xWZ}}function s(){return{type:r.vh9}}function l(){return{type:r.Msx}}function c(e){return{type:r.oSb,isLoading:e}}function u(e){return{type:r.hCl,results:e}}function d(e){return{type:r.cG6,state:e}}function p(e){return{type:r.WwK,provider:e}}},95171:(e,t,n)=>{"use strict";n.d(t,{$G:()=>S,BT:()=>N,Co:()=>T,F6:()=>E,J9:()=>A,Si:()=>O,TT:()=>I,Vc:()=>H,Vm:()=>P,WS:()=>D,Xd:()=>z,Zz:()=>R,_G:()=>M,kJ:()=>$,mm:()=>L,nb:()=>C,od:()=>_,pw:()=>V,wL:()=>j,xP:()=>F,yK:()=>B});var r=n(7737),o=n(49568),i=n(85409),a=n(25789),s=n(9627),l=n(76117),c=n(6329),u=n(89055),d=n(89574),p=n(41567),h=n(75439),f=n(24063),m=n(71453),g=n(82500),v=n(17032),y=n(1025),b=n(63226),w=n(37506),x=n(8593);const S=(e,t)=>n=>{n((0,p.tT)()),n(((e,t)=>({type:g.m$$,textRange:e,inlineTextMarkupToolbar:t}))(e,t))},_=()=>(e,t)=>{(0,c.LL)(t().frameWindow),e({type:g.pAl})},C=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.NZ)(),t=arguments.length>1?arguments[1]:void 0;return{type:g.gr7,newSelectedAnnotationsIds:e,annotationClass:t}},E=e=>(t,n)=>{const{annotations:r,selectedAnnotationIds:i}=n(),a=i.reduce(((e,t)=>{const n=r.get(t);return n?e.push(n):e}),(0,o.B8)());t(k(a)),t(C((0,o.NZ)(),e))},k=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,o.B8)(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,o.B8)(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,o.B8)();return(r,o)=>{const i=o().currentItemPreset;e.forEach((e=>{e&&r((0,h.eS)(e)),e&&!f.Ay[i]&&r((0,h.Kl)(e.id))})),t.forEach((e=>{r((0,h.Xs)(e)),i&&!f.Ay[i]&&r((0,h.L0)(e.id,i))})),n.forEach((e=>{r((0,h.B3)(e))}))}},z=e=>(t,n)=>{const r=n();if(!r.currentTextSelection)return t(E(e)),void t(_());const i=r.annotations.filter((e=>r.selectedAnnotationIds.has(e.id))).mapEntries((e=>{let[,t]=e;return[null!=t.pageIndex?t.pageIndex:r.viewportState.currentPageIndex,null!=t.pageIndex?t:t.set("pageIndex",r.viewportState.currentPageIndex)]})),a=(0,v.AD)(r,i,e),s=i.reduce(((e,t)=>a.find((e=>e.id===t.id))?e:e.push(t)),(0,o.B8)()),l=a.filter((e=>!r.selectedAnnotationIds.has(e.id))),c=a.filter((e=>r.selectedAnnotationIds.has(e.id)&&!e.equals(i.get(e.pageIndex))));t(k(s,l,c));const u=(0,o.NZ)(a.map((e=>e.id)));t(C(u,e))},P=()=>(e,t)=>{const n=t();n.selectedAnnotationIds.toSeq().map((e=>n.annotations.get(e))).filter(Boolean).filter((e=>e instanceof l.dh?!e.text.value||""===e.text.value:(e instanceof l.Si||e instanceof l.ug)&&(!e.points||e.points.size<=1))).forEach((t=>{e((0,h.eS)(t))}))},A=()=>(e,t)=>{(0,c.LL)(t().frameWindow),(0,r.vA)((()=>{e((0,p.tT)()),e(P()),e((0,h.ax)()),e({type:g.pAl}),e({type:g.GnU}),e((0,p.GO)()),e(K(null)),e((0,x.lO)(null))})),t().annotationManager?.autoSave(),t().isTextComparison&&(0,a.Yg)(t())},D=(e,t)=>(n,r)=>{const o=r(),a=o.annotations.filter(((t,n)=>e.includes(n))),s=(0,u.ru)(o),d=a.some((e=>e instanceof l.sb));(0,i.V1)(!d||s,"Widget annotations cannot be selected without the corresponding license feature nor without instant enabled.");const h=a.map((e=>e.id)).toSet();n((0,p.tT)()),(0,c.LL)(o.frameWindow);const f=h.find((e=>o.commentThreads.has(e)));if(f){const e=o.commentThreads.get(f);(0,i.V1)(null!=e);(0,b.aX)(e,o.comments)||n((0,p.t6)(f))}n({type:g.kh8,annotations:h,mode:t,selectedAnnotationShouldDrag:null}),n((0,p.GO)())},T=()=>({type:g.g1L}),I=(e,t)=>(n,r)=>{const{commentThreads:a,comments:s,annotationsGroups:l}=r();if(1===e.size){const r=l?.find((t=>{let{annotationsIds:n}=t;return n.has(e.first())}));if(r)return n(I(r.annotationsIds,t||null)),void n(K(r.groupKey))}e.forEach((e=>{if(a.has(e)){const t=a.get(e);(0,i.V1)(t);(0,b.aX)(t,s)||n((0,p.t6)(e))}})),n(((e,t)=>({type:g.kh8,annotations:(0,o.NZ)(e),mode:m.Q.SELECTED,selectedAnnotationShouldDrag:t}))(e,t)),n((0,p.GO)())},M=e=>({type:g.kh8,annotations:(0,o.NZ)([e]),mode:m.Q.EDITING});function N(){return{type:g.xjY}}const O=e=>({type:g.OQ1,id:e}),R=e=>({type:g.$kT,id:e}),j=e=>({type:g.OPR,id:e}),F=e=>({type:g.$zs,id:e}),B=e=>(t,n)=>{const{eventEmitter:r}=n();if(e){let t=!1;if(r.emit("annotationNote.hover",{preventDefault:()=>t=!0,annotationNote:e}),t)return}t({type:g.n_I,annotationNote:e})},L=e=>(t,n)=>{const{eventEmitter:r}=n();if(e){let t=!1;if(r.emit("annotationNote.press",{preventDefault:()=>t=!0,annotationNote:e}),t)return}t({type:g.zgv,annotationNote:e})},V=function(e,t){let{selectedAnnotationShouldDrag:n,preventDefault:i,stopPropagation:c,ignoreReadOnly:p,isAnnotationPressPrevented:f,clearSelection:m,longPress:g}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{selectedAnnotationShouldDrag:null,preventDefault:!1,stopPropagation:!1,ignoreReadOnly:!1,isAnnotationPressPrevented:void 0,clearSelection:!1,longPress:!1};return(v,b)=>{const x=b(),{selectedAnnotationIds:S,annotations:_,activeAnnotationNote:C,collapseSelectedNoteContent:E,interactionsDisabled:k,eventEmitter:z,formDesignMode:P,isMultiSelectionEnabled:D}=x,T=!!e&&(e instanceof l.s9||(e instanceof l.dG||e instanceof l.ax)&&e.isCommentThreadRoot);if(e?.locked&&!T)return;const M=S.size>1,N=t.shiftKey||s.LZ&&M;if(C&&v(L(null)),E&&v((0,h.ax)()),!p&&(k||e&&(!("action"in e)||!e.action)&&!e.additionalActions?.onPointerDown&&!e.isCommentThreadRoot&&(0,u.Qe)(e,x)))return;if(void 0===f&&(f=!!e&&(0,d.m5)({annotation:e,nativeEvent:t.nativeEvent,selected:!1},z)),f)return;if((i||t.hasOwnProperty("type")&&"keypress"===t.type)&&t.preventDefault(),c&&t.stopPropagation(),m&&v(A()),!e)return;if(N){const t=_.get(S.first());if(t?.pageIndex!==e.pageIndex)return}const O=S.has(e.id);if("action"in e&&e.action&&!g&&!O&&!N)return void v((0,y.Wy)(e));if("additionalActions"in e&&e.additionalActions?.onPointerDown)return void v((0,y.xO)(e,"onPointerDown"));const R=!(0,w.Gg)(x,e)&&(!(e instanceof l.sb)||P);if(!R)return;const j=x.annotationsGroups.find((t=>{let{annotationsIds:n}=t;return n.has(e.id)}));if(!O&&R&&!N&&!j)return(0,r.vA)((()=>{v(A()),v(I((0,o.NZ)([e.id]),n||null))})),void(x.isTextComparison&&(0,a.hh)(x,e.id));if(N&&D){if(O)return v(I(S.remove(e.id),n||null)),void v(K(null));if(j)return void(0,r.vA)((()=>{v(I(x.selectedAnnotationIds.merge(j.annotationsIds),n||null)),v(K(null))}));if(!O&&!j)return v(I(S.add(e.id),n||null)),void v(K(null))}if(!N){if(!O&&!j)return void(0,r.vA)((()=>{v(A()),v(I((0,o.NZ)([e.id]),n||null))}));O||!j||M||(0,r.vA)((()=>{v(I(j.annotationsIds,n||null)),v(K(j.groupKey))}))}}},K=e=>({type:g.Rql,groupId:e}),H=e=>({type:g.Xet,pullToRefreshNewState:e}),$=e=>({type:g.q6G,inlineTextSelectionToolbarItemsCallback:e})},92526:(e,t,n)=>{"use strict";n.d(t,{Ro:()=>y,Ux:()=>g,Vi:()=>f,WY:()=>m,XC:()=>b,hJ:()=>v});var r=n(49568),o=n(85409),i=n(82500),a=n(81309),s=n(83047),l=n(42152),c=n(64959),u=n(89574),d=n(94308),p=n(5217),h=n(75439);function f(e,t){let{signatureRect:n,signaturePageIndex:p}=t,{hash:h,attachment:f}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(t,m)=>{null===p&&(p=m().viewportState.currentPageIndex),(0,o.V1)("number"==typeof p,"Page index for a signature should be a number.");const g=m().pages.get(p);(0,o.V1)(g,`Cannot find page at index ${p}`);const v=g.pageSize;let y,b=e.withMutations((e=>{const t=(0,u.mN)(m());Object.keys(t).forEach((n=>{e.set(n,t[n])})),e.set("pageIndex",p),e.set("isSignature",!0)}));if(n){b=b.set("boundingBox",b.boundingBox.set("top",0).set("left",0)),b=(0,s.B7)(b,new l.A({width:n.width,height:n.height}),!0);const{boundingBox:e}=b,t=n.left+(n.width-e.width)/2,r=n.top+(n.height-e.height)/2;y=new c.A({x:t,y:r})}else if(!b.boundingBox.top&&!b.boundingBox.left){const{boundingBox:e}=b;y=new c.A({x:v.width/2-e.width/2,y:v.height/2-e.height/2})}y&&(b=(0,a.C)(b,y,v,new c.A));const w={annotations:(0,r.B8)([b]),reason:d.x.SELECT_END};m().eventEmitter.emit("annotations.willChange",w),t({type:i.oj5,signature:b}),m().annotationManager?.createObject(b,{attachments:h&&f?(0,r.T5)([[h,f]]):(0,r.T5)()}),m().annotationManager?.autoSave()}}function m(e,t){return(n,r)=>{const o=e.merge({id:null,name:null,pageIndex:0});t&&n({type:i.HEW,annotation:o}),r().eventEmitter.emit("inkSignatures.create",o),r().eventEmitter.emit("inkSignatures.change"),r().eventEmitter.emit("storedSignatures.create",o),r().eventEmitter.emit("storedSignatures.change")}}function g(e,t,n,r){let{dimensions:o,hash:i,attachment:a,file:s}=e,{signatureRect:l,signaturePageIndex:c}=r;return(e,r)=>{let d;e((0,h.iE)("image")),d=s instanceof File?(0,u.l3)(r(),o,i,s.type,s.name):(0,u.l3)(r(),o,i,"image/png"),d=d.set("isSignature",!0),e((0,p.c)({hash:i,attachment:a})),e(f(d,{signatureRect:l,signaturePageIndex:c},{hash:i,attachment:a})),t&&e(m(d,n))}}function v(e){return{type:i.NDB,annotations:e}}function y(e,t){return(n,r)=>{t&&n({type:i.lyT,annotation:e}),r().eventEmitter.emit("inkSignatures.delete",e),r().eventEmitter.emit("inkSignatures.change"),r().eventEmitter.emit("storedSignatures.delete",e),r().eventEmitter.emit("storedSignatures.change")}}function b(){return async(e,t)=>{const{populateStoredSignatures:n}=t().signatureState;e(v(await n()))}}},82142:(e,t,n)=>{"use strict";n.d(t,{H$:()=>o,gL:()=>i,oc:()=>a});var r=n(82500);const o=e=>({type:r.beK,toolbarItems:e}),i=e=>({type:r.oLR,annotationToolbarItemsCallback:e}),a=e=>({type:r.Df2,height:e})},91497:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var r=n(67136),o=n(96540),i=n(7737),a=n(76117),s=n(69371),l=n(88290),c=n(9627),u=n(9939),d=n(31428),p=n.n(d),h=n(69356),f=n.n(h),m=n(14478),g=n.n(m),v=n(90651),y=n(8593),b=n(98899),w=n(74848);const x=(0,c.JX)(),S="data:image/svg+xml;base64,"+globalThis.btoa(f()),_="data:image/svg+xml;base64,"+globalThis.btoa(g());class C extends o.Component{constructor(){super(...arguments),(0,r.A)(this,"shouldComponentUpdate",s.EF),(0,r.A)(this,"position",null),(0,r.A)(this,"rect",null),(0,r.A)(this,"state",{isDrawing:!1,isPenUser:!1,explicitScroll:!1,clientX:0,clientY:0,canAutoCloseShape:!1}),(0,r.A)(this,"_drawingAreaEl",null),(0,r.A)(this,"lastClickTime",null),(0,r.A)(this,"_drawingAreaRef",(e=>{this._drawingAreaEl=e,e&&c.HQ&&this._drawingAreaEl?.addEventListener("touchmove",u.wo)})),(0,r.A)(this,"onUnmount",(()=>{this._drawingAreaEl&&c.HQ&&this._drawingAreaEl?.removeEventListener("touchmove",u.wo),this._drawingAreaEl=null})),(0,r.A)(this,"_handlePointerDown",(e=>{let t=!0;const{x:n,y:r}=this.props.getRelativePosition(e.clientX,e.clientY);if(x&&this.props.canScrollWhileDrawing&&("pen"!==e.pointerType||this.state.isPenUser?"touch"===e.pointerType&&this.state.isPenUser&&(this.setState({explicitScroll:!0,clientX:n,clientY:r}),t=!1):this.setState({explicitScroll:!1,isPenUser:!0})),this.state.isDrawing)return void this._handlePointerUp();if(!e.isPrimary)return;if(!this._drawingAreaEl)return;this.rect=this._drawingAreaEl.getBoundingClientRect(),e.stopPropagation();const o=new a.bR({x:n,y:r}),i=this.position&&o.distance(this.position)<=10;this.position=o,this._buffer=[],this.setState({isDrawing:!0}),(this.props.currentAnnotation instanceof a.ug||this.props.currentAnnotation instanceof a.Si)&&this.props.dispatch?.((0,y.lO)(null));const{onDrawStart:s,onDoubleClick:l}=this.props,c=(new Date).getTime();if(this.lastClickTime&&l&&c-this.lastClickTime<500&&i)return l(this._transformPoint(o)),void(this.lastClickTime=null);this.lastClickTime=c,t&&s&&s(this._transformPoint(o),o)})),(0,r.A)(this,"_buffer",[]),(0,r.A)(this,"_throttleMove",E()),(0,r.A)(this,"_throttleUp",E()),(0,r.A)(this,"_handlePointerMove",(e=>{const{x:t,y:n}=this.props.getRelativePosition(e.clientX,e.clientY);if(this.state.explicitScroll){const e={x:t,y:n},r={x:this.state.clientX,y:this.state.clientY};return requestAnimationFrame((()=>{if(this.props.scrollElement){const t=this.props.scrollElement.scrollTop+(r.y-e.y),n=this.props.scrollElement.scrollLeft+(r.x-e.x);this.props.scrollElement.scrollTop=t,this.props.scrollElement.scrollLeft=n}})),void this.setState({clientX:e.x,clientY:e.y})}this._handleDrawLine(e),this._handleCursorMove(e)})),(0,r.A)(this,"_handleCursorMove",(e=>{const{x:t,y:n}=this.props.getRelativePosition(e.clientX,e.clientY);if(this.props.currentAnnotation instanceof a.ug||this.props.currentAnnotation instanceof a.Si){if(!this.props.defaultAutoCloseThreshold)return;const e=new a.bR({x:t,y:n}),r=this.props.currentAnnotation.points,o=r.last(),i=this._transformPoint(e);if(o&&i&&this.props.dispatch?.((0,y.lO)({lines:[{start:o,end:i}],pageIndex:this.props.currentAnnotation.pageIndex})),r&&r.size<3)return;const s=(0,v.RJ)(this.props.currentAnnotation,0,this.props.defaultAutoCloseThreshold,new a.bR({x:i.x,y:i.y}));-1!==s&&s!==r.size-1?(this.setState({canAutoCloseShape:!0}),this.props.dispatch?.((0,y.lO)({lines:[{start:o,end:r.get(s)}],pageIndex:this.props.currentAnnotation.pageIndex}))):this.setState({canAutoCloseShape:!1})}})),(0,r.A)(this,"_handlePointerUp",(e=>{e&&!e.isPrimary||(e&&e.stopPropagation(),this.setState({isDrawing:!1}),this.state.isPenUser&&"touch"==e?.pointerType?this.setState({explicitScroll:!1}):this._throttleUp((()=>{const{onDrawEnd:e}=this.props;this._drawingAreaEl&&(this.rect=this._drawingAreaEl.getBoundingClientRect(),this._buffer=[],this.position&&e&&e(this._transformPoint(this.position)))})))})),(0,r.A)(this,"_defaultTransformPoint",(e=>{if(!this.rect)return e;const t=this.props.size.width/this.rect.width,n=this.props.size.height/this.rect.height,r="number"==typeof this.rect.x?this.rect.x:this.rect.left,o="number"==typeof this.rect.y?this.rect.y:this.rect.top;return new a.LL({x:e.x-r,y:e.y-o}).scale(t,n)})),(0,r.A)(this,"_transformPoint",(e=>this._clipPointToContainerBounds((this.props.transformPoint||this._defaultTransformPoint)(new a.LL({x:e.x,y:e.y})))))}render(){return(0,w.jsx)(l.A,{onPointerDown:this._handlePointerDown,onRootPointerMove:this.state.isDrawing?this._handlePointerMove:this._handleCursorMove,onRootPointerUpCapture:this.state.isDrawing?this._handlePointerUp:void 0,interactionMode:this.props.interactionMode,children:(0,w.jsx)("div",{"data-testid":"drawcomponent",role:"application",children:(0,w.jsx)("div",{className:p().layer,style:(this.props.currentAnnotation instanceof a.ug||this.props.currentAnnotation instanceof a.Si)&&!c.nr?{cursor:this.state.canAutoCloseShape?`url(${_}) 6 6, auto`:`url(${S}) 6 6, auto`}:{},ref:this._drawingAreaRef})})})}_handleDrawLine(e){e.preventDefault(),e.stopPropagation();const{x:t,y:n}=this.props.getRelativePosition(e.clientX,e.clientY),r=new a.bR({x:t,y:n});if(r.equals(this.position))return;this.position=r;const{onDrawCoalesced:o}=this.props;if(o){const t=e.getCoalescedEvents();this._buffer=this._buffer.concat(t),this._throttleMove((()=>{const[e,t]=this._buffer.reduce(((e,t)=>{const{x:n,y:r}=this.props.getRelativePosition(t.clientX,t.clientY),o=new a.bR({x:n,y:r});return e[0].push(this._transformPoint(o)),e[1].push(o),e}),[[],[]]);this._buffer=[],o(e,t)}))}}_clipPointToContainerBounds(e){if(this._isPointWithinContainer(e))return e;const{size:t}=this.props;return e.x>t.width&&(e=e.set("x",t.width)),e.x<0&&(e=e.set("x",0)),e.y>t.height&&(e=e.set("y",t.height)),e.y<0&&(e=e.set("y",0)),e}_isPointWithinContainer(e){const{size:t}=this.props;return new a.rw({width:t.width,height:t.height}).isPointInside(e)}}function E(){let e=null;return t=>{e||requestAnimationFrame((()=>{const t=e;e=null,t?.()})),e=t}}const k=(0,i.Ng)((e=>({getRelativePosition:(t,n)=>(0,b.gP)({x:t,y:n,shadowRoot:e.shadowRoot,rootElement:e.rootElement,containerRect:e.containerRect})})),(e=>({dispatch:e})))(C)},92078:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(67136),o=n(85409),i=n(96540),a=n(32485),s=n.n(a),l=n(40411),c=n(9939),u=n(88549),d=n.n(u),p=n(74848);class h extends i.PureComponent{constructor(){var e;super(...arguments),e=this,(0,r.A)(this,"_cancelImagePromise",null),(0,r.A)(this,"_throttledFetchImage",(0,l.A)(this._fetchImage,"number"==typeof this.props.throttleTimeout?this.props.throttleTimeout:2e3,!0)),(0,r.A)(this,"imageRef",i.createRef()),(0,r.A)(this,"_replaceImage",(function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.imageRef.current?(e.imageRef.current.appendChild(t.element),setTimeout((()=>t.release()),500),e.imageRef.current&&e.imageRef.current.children.length>1&&e.imageRef.current.removeChild(e.imageRef.current.firstChild),e.props.onRenderFinished&&e.props.onRenderFinished(),n&&e._throttledFetchImage()):t.release()})),(0,r.A)(this,"_onImageAvailable",(function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{label:r,visible:i}=e.props,a=t.element;a&&e.imageRef.current&&a!==e.imageRef.current.firstChild&&(a.setAttribute("alt",r||""),i||a.setAttribute("role","presentation"),(0,c._i)(a).then((()=>requestAnimationFrame((()=>e.props.renderAsBackgroundImage?e._setBackgroundImage(t,n):e._replaceImage(t,n))))).catch((t=>{(0,o.z3)(t),e.props.onError&&e.props.onError(t)})))})),(0,r.A)(this,"_setBackgroundImage",(function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=t.element.src;e.imageRef.current&&(e.imageRef.current.style.backgroundImage=`url(${r})`,e.imageRef.current.style.backgroundSize="cover",e.imageRef.current.style.backgroundPosition="center",setTimeout((()=>t.release()),500),e.props.onRenderFinished&&e.props.onRenderFinished(),n&&e._throttledFetchImage())}))}componentDidMount(){this._throttledFetchImage()}refresh(){this._throttledFetchImage()}refreshSkippingThrottle(){this._fetchImage()}async _fetchImage(){let e;this._cancelOutstandingRequests();const{promise:t,isProvisional:n,cancel:r}=this.props.fetchImage();this._cancelImagePromise=r;try{e=await t,e?this._onImageAvailable(e,n):this.props.onError?.()}catch(e){(0,o.z3)(e),r(e),this.props.onError?.(e)}this._cancelImagePromise=null}_cancelOutstandingRequests(){this._cancelImagePromise&&this._cancelImagePromise()}componentWillUnmount(){this._cancelOutstandingRequests()}render(){const{className:e,rectStyle:t}=this.props;return(0,p.jsx)("div",{className:s()(d().root,e),style:t,ref:this.imageRef})}}},77868:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});n(96540);var r=n(74848);function o(e){let{src:t,...n}=e;return(0,r.jsx)("span",{...n,dangerouslySetInnerHTML:{__html:t},ref:n.nodeRef})}},41008:(e,t,n)=>{"use strict";n.d(t,{B:()=>c});n(96540);var r=n(74848);const o={strokeDasharray:100},i={...o,fill:"none"},a=e=>(0,r.jsx)("polygon",{points:"0.5,2 0.5,0.5 3.5,0.5 3.5,3.5 0.5,3.5 0.5,2",style:{...e,...o}}),s=e=>(0,r.jsx)("circle",{cx:"2",cy:"2",r:"1.5",style:{...e,...o}}),l=e=>(0,r.jsx)("line",{x1:"0",y1:"2",x2:"4",y2:"2",style:{...e,...i}}),c={none:{startElement:l,endElement:l,width:4},square:{startElement:a,endElement:a,width:3.5},circle:{startElement:s,endElement:s,width:3.5},diamond:{startElement:e=>(0,r.jsx)("polygon",{points:"3.5,2 2.25,3.25 1,2 2.25,0.75 3.5,2 4,2",style:{...e,...o}}),endElement:e=>(0,r.jsx)("polygon",{points:"0.75,2 2,0.75 3.25,2 2,3.25 0.75,2 0.25,2",style:{...e,...o}}),width:3.5},openArrow:{startElement:e=>(0,r.jsx)("polyline",{points:"4.25,0.5 1.25,2 4.25,3.5 1.25,2 4.75,2",style:{...e,...i}}),endElement:e=>(0,r.jsx)("polyline",{points:"0.25,0.5 3.25,2 0.25,3.5 3.25,2 -0.25,2",style:{...e,...i}}),width:3.75},closedArrow:{startElement:e=>(0,r.jsx)("polygon",{points:"3.75,2 3.75,0.75 1.25,2 3.75,3.25 3.75,2 4.75,2",style:{...e,...o}}),endElement:e=>(0,r.jsx)("polygon",{points:"0.75,2 0.75,0.75 3.25,2 0.75,3.25 0.75,2 -0.75,2",style:{...e,...o}}),width:3.75},butt:{startElement:e=>(0,r.jsx)("line",{x1:"3.75",y1:"0.5",x2:"3.75",y2:"3.5",style:{...e,...i}}),endElement:e=>(0,r.jsx)("line",{x1:"0.5",y1:"0.5",x2:"0.5",y2:"3.5",style:{...e,...i}}),width:.5},reverseOpenArrow:{startElement:e=>(0,r.jsx)("polyline",{points:"1,0.5 4,2 1,3.5",style:{...e,...i}}),endElement:e=>(0,r.jsx)("polyline",{points:"3.25,0.5 0.25,2 3.25,3.5",style:{...e,...i}}),width:3},reverseClosedArrow:{startElement:e=>(0,r.jsx)("polygon",{points:"4,2 1.5,3.25 1.5,0.75",style:{...e,...o}}),endElement:e=>(0,r.jsx)("polygon",{points:"0.25,2 2.75,3.25 2.75,0.75",style:{...e,...o}}),width:2.75},slash:{startElement:e=>(0,r.jsx)("polyline",{points:"3.25,0.5 2.25,3.75 2.85,2 3.75,2",style:{...e,...i}}),endElement:e=>(0,r.jsx)("polyline",{points:"1.85,0.5 0.85,3.75 1.25,2 0.35,2",style:{...e,...i}}),width:1.5}}},66421:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(96540),o=n(32485),i=n.n(o),a=n(46005),s=n.n(a),l=n(74848);function c(e){let{scale:t=1,rotate:n=0}=e;const[o,a]=r.useState(!1);r.useEffect((()=>{const e=setTimeout((()=>{a(!0)}),400);return()=>{clearTimeout(e)}}),[]);const c=`scale(${t})`,u={transform:n?`rotate(${n}deg) ${c}`:c,transformOrigin:"center center"};return(0,l.jsxs)("div",{style:u,className:i()("PSPDFKit-Loading-Indicator",s().loader,{[s().loaderShown]:o}),children:[(0,l.jsx)("div",{className:s().loaderDot}),(0,l.jsx)("div",{className:s().loaderDot}),(0,l.jsx)("div",{className:s().loaderDot})]})}},3681:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r=n(67136),o=n(7737),i=n(96540),a=n(69979),s=n(63939),l=n(6329),c=n(9627),u=n(25028),d=n(76943),p=n(76117),h=n(85409);const f=(0,n(17704).Wf)(),m={onPinchStart:"pinchstart",onPinchIn:"pinchin",onPinchOut:"pinchout",onPinchCancel:"pinchcancel",onPinchEnd:"pinchend",onSwipeLeft:"swipeleft",onSwipeRight:"swiperight",onDoubleTap:"doubletap"};function g(e,t,n){t&&Object.keys(t).filter((e=>e in m)).forEach((r=>{const o=m[r];!o||"function"!=typeof t[r]||n&&"function"==typeof n[r]&&n[r]===t[r]||e.off(o,t[r])})),n&&(n.enablePinch&&e.get("pinch").set({enable:!0,threshold:.3}),n.onDoubleTap&&e.get("doubletap").set({posThreshold:50}),Object.keys(n).filter((e=>e in m)).forEach((r=>{const o=m[r];!o||"function"!=typeof n[r]||t&&"function"==typeof n[r]&&n[r]===t[r]||e.on(o,n[r])})))}class v extends i.Component{constructor(){super(...arguments),(0,r.A)(this,"_handleRef",(e=>{e&&((0,h.V1)("string"==typeof e.nodeName,"TRC requires a basic HTML element as children. This looks like a custom react component."),this._refElement=e)}))}componentDidMount(){this.initializeHammer(),g(this._hammer,null,this.props)}initializeHammer(){this._hammer=new f(this._refElement,{touchAction:"pan-x pan-y"}),this._refElement.style.msTouchSelect="initial"}componentDidUpdate(e){this._hammer&&g(this._hammer,e,this.props)}componentWillUnmount(){g(this._hammer,this.props,null),this._hammer&&(this._hammer.stop(),this._hammer.destroy()),this._hammer=null}render(){const e=i.Children.only(this.props.children);return(0,h.V1)(!e.ref,"TRC requires the child element to not have a `ref` assigned. Consider inserting a new `<div>` in between."),i.cloneElement(e,{ref:this._handleRef})}}var y=n(15168),b=n(74963),w=n(74848);const x=!y.fS||{passive:!1,capture:!0};class S extends i.Component{constructor(){super(...arguments),(0,r.A)(this,"_trackpadRef",i.createRef()),(0,r.A)(this,"_hasWheelEventStarted",!1),(0,r.A)(this,"_currentWheelTimeout",null),(0,r.A)(this,"_lastScale",1),(0,r.A)(this,"_handleWheel",(e=>{const t=this.props.wheelZoomMode===b.O.WITH_CTRL&&e.ctrlKey||this.props.wheelZoomMode===b.O.ALWAYS,n=this.props.wheelZoomMode===b.O.DISABLED,r=this.props.enableAlwaysScrollToZoom;if(!t&&!r||n)return;e.preventDefault(),e.stopPropagation(),this._currentWheelTimeout&&clearTimeout(this._currentWheelTimeout),this._currentWheelTimeout=setTimeout((()=>{this.props.onPinchEnd(),this._hasWheelEventStarted=!1,this._lastScale=1}),250);const o=function(e,t){return{center:{x:e.clientX,y:e.clientY},scale:t-e.deltaY/120,pointerType:"mouse",preventDefault:e.preventDefault,srcEvent:e}}(e,this._lastScale);let i=1;i=o.scale>1?1.05*this._lastScale:.95*this._lastScale,o.scale=i,i*this.props.zoomLevel>this.props.minZoomLevel&&i*this.props.zoomLevel<this.props.maxZoomLevel&&(this._hasWheelEventStarted||(this.props.onPinchStart(o),this._hasWheelEventStarted=!0),this._lastScale=i,this.props.onPinch(o))})),(0,r.A)(this,"_handleGestureStart",(e=>{e.preventDefault(),this.props.onPinchStart(_(e))})),(0,r.A)(this,"_handleGestureChange",(e=>{e.preventDefault(),this.props.onPinch(_(e))})),(0,r.A)(this,"_handleGestureEnd",(e=>{e.preventDefault(),this.props.onPinchEnd(_(e))}))}componentDidMount(){const{current:e}=this._trackpadRef;if(e){const t=e.ownerDocument;t.addEventListener("wheel",this._handleWheel,x),"ios"!==c.qU&&(t.addEventListener("gesturestart",this._handleGestureStart),t.addEventListener("gesturechange",this._handleGestureChange),t.addEventListener("gestureend",this._handleGestureEnd))}}componentWillUnmount(){const{current:e}=this._trackpadRef;if(e){const t=e.ownerDocument;t.removeEventListener("wheel",this._handleWheel,x),"ios"!==c.qU&&(t.removeEventListener("gesturestart",this._handleGestureStart),t.removeEventListener("gesturechange",this._handleGestureChange),t.removeEventListener("gestureend",this._handleGestureEnd))}}render(){return(0,w.jsx)("div",{ref:this._trackpadRef,children:this.props.children})}}function _(e){return{center:{x:e.clientX,y:e.clientY},scale:e.scale,pointerType:"mouse",preventDefault:e.preventDefault,srcEvent:e}}class C extends i.Component{constructor(){super(),(0,r.A)(this,"_zoomLayerRef",i.createRef()),(0,r.A)(this,"_handleDoubleTap",(e=>{if("touch"!==e.pointerType)return;const{viewportState:t}=this.props,{viewportRect:n,zoomLevel:r}=t;this._startZooming();const o=new p.bR({x:e.center.x,y:e.center.y}).translate(n.getLocation().scale(-1)),i=this.props.viewportState.scrollMode===u.V.PER_SPREAD||this.props.viewportState.scrollMode===u.V.DISABLED?(0,a.qw)(t):(0,a.cb)(t),s=r>i?i:1.5*r,l=(0,a.Qp)(t,s,{zoomCenter:o});this.setState({nextViewportState:l,shouldAnimate:!0}),this._callEndZoomingAfterTransition(l)})),(0,r.A)(this,"_handlePinchStart",(e=>{const{viewportState:t}=this.props,{viewportRect:n}=t;this._startZooming(),this._touchZoomCenter=new p.bR({x:e.center.x,y:e.center.y}).translate(n.getLocation().scale(-1))})),(0,r.A)(this,"_handlePinch",(e=>{this._isZooming&&this.props.viewportState.zoomOptions.enableGestureZoom&&(this._lastPinchScale=e.scale,this.requestAnimationFrameId||(this.requestAnimationFrameId=window.requestAnimationFrame(this._renderNextFrame)),null!==this._pinchResetTimeoutId&&clearTimeout(this._pinchResetTimeoutId),this._pinchResetTimeoutId=setTimeout((()=>this._handlePinchEnd()),2e3))})),(0,r.A)(this,"_handlePinchEnd",(()=>{if(!this._isZooming)return;null!==this._pinchResetTimeoutId&&(clearTimeout(this._pinchResetTimeoutId),this._pinchResetTimeoutId=null);const{viewportState:e}=this.props,{zoomLevel:t}=e;if(!this._touchZoomCenter)return;this.requestAnimationFrameId&&(window.cancelAnimationFrame(this.requestAnimationFrameId),this.requestAnimationFrameId=null);const n=t*this._lastPinchScale,r=(0,a.Qp)(e,n,{zoomCenter:this._touchZoomCenter});this.state.nextViewportState&&(0,a.lD)(this.state.nextViewportState)?(this.setState({nextViewportState:r,shouldAnimate:!0}),this._callEndZoomingAfterTransition(r)):this._zoomComplete(r)})),(0,r.A)(this,"_renderNextFrame",(()=>{const{viewportState:e}=this.props,{zoomLevel:t}=e,n=t*this._lastPinchScale,r=(0,a.Qp)(e,n,{zoomCenter:this._touchZoomCenter,unbounded:!0});this.setState({nextViewportState:r}),this.requestAnimationFrameId=null})),(0,r.A)(this,"_zoomComplete",(e=>{(0,o.vA)((()=>{this.props.dispatch((0,d.CN)(e)),this._endZooming()}))})),this._touchZoomCenter=new p.bR,this._isZooming=!1,this.state={shouldAnimate:!1,nextViewportState:null},this.requestAnimationFrameId=null}render(){const{children:e,viewportState:t}=this.props,{nextViewportState:n}=this.state,r=(0,s.z1)(t);let o={transformOrigin:"0 0",width:r.width+t.viewportPadding.x,height:r.height+t.viewportPadding.y};if(n){const e=n.scrollPosition.scale(n.zoomLevel).translate(t.scrollPosition.scale(-t.zoomLevel)),r=(0,s.z1)(n).translate(e.scale(-1)),i=n.zoomLevel/t.zoomLevel;o={...o,transform:`translate(${r.left}px, ${r.top}px)\n                    scale(${i}, ${i})`,willChange:"transform",transition:this.state.shouldAnimate?"transform 250ms ease-in":""}}else o={...o,transform:`translate(${Math.ceil(r.left)}px, ${Math.ceil(r.top)}px)`};return(0,w.jsx)(S,{onPinchStart:this._handlePinchStart,onPinch:this._handlePinch,onPinchEnd:this._handlePinchEnd,zoomLevel:this.props.viewportState.zoomLevel,minZoomLevel:(0,a.m0)(this.props.viewportState),maxZoomLevel:(0,a.m9)(this.props.viewportState),enableAlwaysScrollToZoom:this.props.viewportState.enableAlwaysScrollToZoom,wheelZoomMode:this.props.viewportState.wheelZoomMode,children:(0,w.jsx)(v,{onPinchStart:this._handlePinchStart,onPinchIn:this._handlePinch,onPinchOut:this._handlePinch,onPinchEnd:this._handlePinchEnd,onPinchCancel:this._handlePinchEnd,onDoubleTap:this._handleDoubleTap,enablePinch:!0,children:(0,w.jsx)("div",{children:(0,w.jsx)("div",{ref:this._zoomLayerRef,style:o,className:"PSPDFKit-Zoom",children:e})})})})}_callEndZoomingAfterTransition(e){this._removeAnimationEventListener();const t=this._zoomComplete.bind(this,e);this._zoomCompleteFn=t,this._zoomLayerRef.current&&this._zoomLayerRef.current.addEventListener("transitionend",this._zoomCompleteFn),setTimeout((()=>{this._zoomCompleteFn&&t===this._zoomCompleteFn&&this._zoomCompleteFn()}),250)}_startZooming(){if(!this._isZooming&&(this._isZooming=!0,"gecko"===c.Hi&&"windows"===c.qU&&this._zoomLayerRef.current)){const{defaultView:e}=this._zoomLayerRef.current.ownerDocument;(0,l.LL)(e)}}_endZooming(){this._resetState()}_resetState(){this.setState({shouldAnimate:!1,nextViewportState:null}),this._lastPinchScale=1,this._touchZoomCenter=new p.bR,this._isZooming=!1,this._removeAnimationEventListener()}_removeAnimationEventListener(){this._zoomLayerRef.current&&this._zoomLayerRef.current.removeEventListener("transitionend",this._zoomCompleteFn),this._zoomCompleteFn=null}}},9926:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>X,getDocumentKeyForReferencePoints:()=>Y,messages:()=>J});var r,o,i,a,s,l,c,u,d=n(96540),p=n(2815),h=n(51467),f=n(59924),m=n(66421),g=n(45849),v=n(32485),y=n.n(v),b=n(7737),w=n(3681),x=n(91497),S=n(77868),_=n(50960),C=n(40807),E=n(55950),k=n(30235),z=n(76426),P=n(80069),A=n.n(P),D=n(55236),T=n(74848);const I=e=>{const{viewportState:t,backend:r,scrollElement:o,styles:i,currentDocumentKey:a,referencePoints:s,addReferencePoint:l,page:c,isAutoCompare:u,interactionMode:h,usingTouch:m}=e,v=m?{x:31.5,y:63}:{x:13,y:-4},{formatMessage:P}=(0,p.tz)(),I=(0,C.aq)(),[M,O]=d.useState(!1),R=d.useRef(null),j=(0,C.Kw)((e=>{m?(M||O(!0),R.current&&clearTimeout(R.current),R.current=setTimeout((()=>{R.current=null,I()&&O(!1)}),300)):(e(),O(!1))})),F=a!==f.w.result?a===f.w.documentA?s.slice(0,3):s.slice(3,6):[],B=s.length<6&&F.filter(Boolean).length<3&&!u&&h!==k.O.PAN&&(a===f.w.documentA&&s.length<3||a===f.w.documentB&&s.length>=3),L={width:c.pageSize.width*t.zoomLevel,height:c.pageSize.height*t.zoomLevel},V=d.useRef(null),K=y()({"PSPDFKit-Page":!0,[`PSPDFKit-Page-Rotation-${t.pagesRotation}-degree`]:!0,[i.page]:!0,[i["deg-"+t.pagesRotation]]:!0}),H=(0,C.iV)(),$=(0,b.d4)((e=>e.showToolbar))?D.e4:0,U=(0,C.Kw)((()=>{l(H(new _.LL({x:t.viewportRect.left+t.viewportRect.width/2+2,y:t.viewportRect.top+t.viewportRect.height/2+$})))})),W={inViewport:!0,page:c,backend:r,shouldPrerender:!0,zoomLevel:t.zoomLevel,rotation:t.pagesRotation,renderPageCallback:e.renderPageCallback,allowedTileScales:e.allowedTileScales,documentHandle:a,viewportRect:t.viewportRect,forceDetailView:!1,renderPagePreview:e.renderPagePreview,crispTiles:!0,inContentEditorMode:!1},q=(0,b.d4)((e=>e.scrollbarOffset)),G=F.map(((e,n)=>e?(0,T.jsx)("div",{className:y()({"PSPDFKit-DocumentComparison-ReferencePoint-Marker":!0,[i.referencePoint]:!0}),style:{left:e.x*t.zoomLevel-v.x+(m?q/2:0),top:e.y*t.zoomLevel-v.y},children:(0,T.jsx)(N,{usingTouch:m,className:i.comparisonPin,children:n+1})},`point_${n}`):null));return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)("div",{className:y()({[i.source]:!m,[i.sourceTouch]:!!m,"PSPDFKit-DocumentComparison-Source":!0,[`PSPDFKit-DocumentComparison-Source-${a}`]:!!a}),style:{cursor:B&&!m?`url('data:image/svg+xml,${A()}') 12 22, crosshair`:"auto"},children:[B&&m&&(0,T.jsx)(g.W,{children:(0,T.jsxs)("div",{className:i.crosshair,ref:V,children:[(0,T.jsx)("div",{className:y()(i.selectPoint,{[i.hidden]:M}),onClick:U,children:P(J.Comparison_selectPoint)}),(0,T.jsx)(S.A,{src:n(60652)})]})}),(0,T.jsx)(w.A,{dispatch:e.dispatch,viewportState:t,children:(0,T.jsxs)("section",{className:K,style:L,"data-page-index":c?c.pageIndex:"",children:[(0,T.jsx)(z.A,{...W}),G,m?null:(0,T.jsx)("div",{className:i.pointerLayer,children:B?(0,T.jsx)(x.A,{size:c.pageSize,onDrawEnd:l,transformPoint:H,interactionMode:h,scrollElement:o}):null})]})})]}),o&&!m?(0,T.jsx)(E.Q,{viewportState:t,scrollElement:o,onScroll:j,className:"PSPDFKit-DocumentComparison-Magnifier",pageIndex:c.pageIndex,pageRendererComponentProps:W,children:G}):null]})},M=e=>e?{width:"100",height:"100",viewBox:"-10 0 90 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"}:{width:"66",height:"66",viewBox:"-10 0 56 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},N=e=>{let{children:t,usingTouch:n,className:d}=e;return(0,T.jsx)("svg",{...M(n),className:d,children:n?(0,T.jsxs)("g",{stroke:"#f5281b",children:[r||(r=(0,T.jsx)("path",{d:"M44.0171 43.4142L72.3014 71.6985",strokeWidth:"4"})),o||(o=(0,T.jsx)("path",{d:"M12.9043 12.3015L41.1886 40.5858",strokeWidth:"4"})),i||(i=(0,T.jsx)("path",{d:"M72.3013 12.3015L44.017 40.5858",strokeWidth:"4"})),a||(a=(0,T.jsx)("path",{d:"M41.189 43.4142L12.9047 71.6985",strokeWidth:"4"})),(0,T.jsx)("text",{x:"-10",y:"82",fontSize:"28",fill:"#f5281b",dominantBaseline:"central",children:t})]}):(0,T.jsxs)("g",{stroke:"#f5281b",children:[s||(s=(0,T.jsx)("path",{d:"M26.0083 25.7072L40.1505 39.8493",strokeWidth:"1.99616"})),l||(l=(0,T.jsx)("path",{d:"M10.4521 10.1508L24.5943 24.2929",strokeWidth:"1.99616"})),c||(c=(0,T.jsx)("path",{d:"M40.1509 10.1508L26.0087 24.2929",strokeWidth:"1.99616"})),u||(u=(0,T.jsx)("path",{d:"M24.5952 25.7072L10.453 39.8493",strokeWidth:"1.99616"})),(0,T.jsx)("text",{x:"0",y:"44",fontSize:"14",fill:"#f5281b",dominantBaseline:"central",children:t})]})})};var O=n(41294);const R=e=>{const{addSource:t}=e,n=d.useCallback((e=>{e?.click&&e.click()}),[]),r=d.useCallback((e=>{if(e.target.files[0]){const n=new FileReader;n.onload=e=>{t(e.target?.result)},n.readAsArrayBuffer(e.target.files[0])}}),[t]);return(0,T.jsx)(O.s6,{tag:"div",children:(0,T.jsx)("input",{ref:n,"aria-label":"","aria-hidden":!0,type:"file",accept:"image/png, image/jpeg, image/tiff, application/pdf",onChange:r,tabIndex:-1})})};var j,F=n(14079),B=n(97837),L=n(76943),V=n(16792),K=n(83176),H=n(62322),$=n(5293);const U=e=>{const{styles:t,currentDocumentKey:n,referencePoints:r,addReferencePoint:o,settings:i,completionConfiguration:a,setDocumentSources:s,documentSources:l,backend:c,viewportState:u,interactionMode:p,dispatch:g,isAutoCompare:v,renderPagePreview:y,usingTouch:b}=e,w=(0,C.aq)(),[x,S]=d.useState(null),[E,k]=d.useState(!1),z=(0,C.Kw)((()=>{x&&g((0,L.CN)((0,h.kR)(u,x)))}));d.useEffect((()=>{z()}),[x,z]);const[P,A]=(0,C.eR)();d.useEffect((()=>{A(!1)}),[v,A]);const D=(0,C.Kw)((e=>{e&&!l[e]&&i[e].source!==F.O.USE_OPEN_DOCUMENT||async function(){if(E)return;let t;e!==f.w.result&&e?(x&&S(null),t=await c.openComparisonDocument(e)):(x&&S(null),t=P?await c.openComparisonDocument(f.w.result):await W(r,i,c),A(!0));const n=i[f.w.documentA].pageIndex||0,o=t.pages[n],a={matrix:o.matrix&&(0,H.j)(o.matrix),reverseMatrix:o.reverseMatrix&&(0,H.j)(o.reverseMatrix),untransformedRect:o.untransformedBBox&&(0,$.a)(o.untransformedBBox),transformedRect:o.transformedBBox&&(0,$.a)(o.transformedBBox)},s=new B.A({pageSize:new _.or(t.pages[n]),isPageSizeReal:!0,...t.pages[n],...a});w()&&S(s)}()})),M=d.useRef(null);d.useEffect((()=>{M.current!==n&&x&&S(null),M.current=n}),[n,x]),d.useEffect((()=>{x||E||D(n)}),[x,n,D,E,l]);const N=6===r.length||v;d.useEffect((()=>{N&&!v&&D(null)}),[D,N,v]),d.useEffect((()=>{!async function(){try{await a.start.promise,w()&&(k(!0),S(null))}catch(e){a.start.reject(e)}}()}),[a,w]),d.useEffect((()=>{E&&async function(){try{await c.cleanupDocumentComparison(),a.end.resolve()}catch(e){a.end.reject(e)}}()}),[E,c,a]);const O=d.useCallback((async e=>{e&&(await c.setComparisonDocument(n,e),w()&&s({...l,[n]:e}))}),[n,l,s,c,w]);return x?(0,T.jsx)(I,{backend:e.backend,renderPageCallback:e.renderPageCallback,allowedTileScales:e.allowedTileScales,viewportState:u,scrollElement:e.scrollElement,styles:t,dispatch:e.dispatch,viewportWidth:e.viewportWidth,currentDocumentKey:n,addReferencePoint:o,referencePoints:r,page:x,isAutoCompare:v,interactionMode:p,renderPagePreview:y,usingTouch:b}):N||l[n]||i[n].source!==F.O.USE_FILE_DIALOG?(0,T.jsx)("div",{className:t.documentComparisonPageLoading,children:j||(j=(0,T.jsx)(m.A,{scale:2}))}):(0,T.jsx)(R,{addSource:O})},W=async(e,t,n)=>{let r;r=e&&e.length?[[[e[3].x,e[3].y],[e[0].x,e[0].y]],[[e[4].x,e[4].y],[e[1].x,e[1].y]],[[e[5].x,e[5].y],[e[2].x,e[2].y]]]:h.$N;return await n.documentCompareAndOpen({documentA:{pageIndex:t.documentA.pageIndex||0,strokeColor:t.strokeColors?.documentA?(0,V.J)(t.strokeColors?.documentA):(0,V.J)(K.w3.strokeColors?.documentA)},documentB:{pageIndex:t.documentB.pageIndex||0,strokeColor:t.strokeColors?.documentB?(0,V.J)(t.strokeColors?.documentB):(0,V.J)(K.w3.strokeColors?.documentB)},options:{type:"path",points:r,blendMode:t.blendMode||"darken"}})},q=e=>{const{onHide:t,styles:r}=e,{formatMessage:o}=(0,p.tz)();return(0,T.jsx)("div",{className:r.container,children:(0,T.jsxs)("div",{className:r.wrapper,children:[(0,T.jsx)(S.A,{src:n(84346),className:r.icon,style:{color:"#5E5CEB"}}),(0,T.jsx)("div",{className:r.header,children:o(G.UserHint_title)}),(0,T.jsx)("div",{className:r.hint,children:o(G.UserHint_description)}),(0,T.jsx)("div",{className:r.hideButton,children:(0,T.jsx)(O.$n,{onClick:t,children:o(G.UserHint_dismissMessage)})})]})})},G=(0,p.YK)({UserHint_title:{id:"UserHint_Select",defaultMessage:"Selecting Points",description:"User hint Title. User should select points to compare documents."},UserHint_description:{id:"UserHint_description",defaultMessage:"Select 3 points on both documents for manual alignment. For best results, choose  points near corners of the document, and make sure to choose the points in the same  order on both documents.",description:"Main body of the user hint. Explains what to do to compare documents"},UserHint_dismissMessage:{id:"UserHint_dismissMessage",defaultMessage:"Dismiss Message",description:"Dismiss user hint message"}});const Z=(0,n(9627).CN)(),Y=e=>e.length<3?f.w.documentA:e.length<6?f.w.documentB:f.w.result,X=e=>{const[t,n]=d.useState(Z),{interactionMode:r,initialDocumentSources:o,settings:i,backend:a}=e,{styles:s}=e.CSS_HACK,l=(0,C.aq)(),[c,u]=(0,C.I_)(),[p,m]=(0,C.e2)(),[g]=(0,C.YU)(),[v,y]=d.useState(!0),b=(0,h.Ut)(p),w=(0,C.Kw)((e=>{e!==b&&m(e||f.w.result)})),x=d.useCallback((e=>{const t=[...c,e];u(t),w(Y(t))}),[c,w,u]),[S,_]=d.useState(null);return d.useEffect((()=>{!async function(){const[e,t]=await Promise.all([o[f.w.documentA],o[f.w.documentB]]);(e&&e.byteLength>0||i[f.w.documentA].source===F.O.USE_OPEN_DOCUMENT)&&await a.setComparisonDocument(f.w.documentA,e),(t&&t.byteLength>0||i[f.w.documentB].source===F.O.USE_OPEN_DOCUMENT)&&await a.setComparisonDocument(f.w.documentB,t),l()&&_({[f.w.documentA]:e,[f.w.documentB]:t,[f.w.result]:{source:null}})}()}),[o,a,i,l]),(0,T.jsxs)("div",{className:s.docComparison,onPointerDown:e=>{t&&"touch"!==e.pointerType?n(!1):t||"touch"!==e.pointerType||n(!0)},onPointerMove:e=>{t&&"touch"!==e.pointerType?n(!1):t||"touch"!==e.pointerType||n(!0)},children:[S?(0,T.jsx)(U,{backend:a,renderPageCallback:e.renderPageCallback,allowedTileScales:e.allowedTileScales,viewportState:e.viewportState,interactionMode:r,scrollElement:e.scrollElement,styles:s,dispatch:e.dispatch,settings:i,completionConfiguration:e.completionConfiguration,documentSources:S,setDocumentSources:_,viewportWidth:e.viewportWidth,currentDocumentKey:b,addReferencePoint:x,referencePoints:c,isAutoCompare:g,renderPagePreview:e.renderPagePreview,usingTouch:t}):null,!t&&!(6===c.length)&&!g&&v&&(0,T.jsx)(q,{styles:s.userHintStyles,onHide:()=>y(!1)})]})},J=(0,p.YK)({Comparison_documentOld:{id:"Comparison_documentOld",defaultMessage:"Old Document",description:"One of the documents to be compared."},Comparison_documentOldTouch:{id:"Comparison_documentOldTouch",defaultMessage:"Old",description:"The original document used in the comparison."},Comparison_documentNew:{id:"Comparison_documentNew",defaultMessage:"New Document",description:"The new document used in the comparison."},Comparison_documentNewTouch:{id:"Comparison_documentNewTouch",defaultMessage:"New",description:"The new document used in the comparison."},Comparison_result:{id:"Comparison_result",defaultMessage:"Comparison",description:"The compared document."},Comparison_resetButton:{id:"Comparison_resetButton",defaultMessage:"Reset",description:"Reset all placed alignment points."},Comparison_alignButton:{id:"Comparison_alignButton",defaultMessage:"Align Documents",description:"Start the manual document alignment process."},Comparison_alignButtonTouch:{id:"Comparison_alignButtonTouch",defaultMessage:"Align",description:"Start the manual document alignment process."},Comparison_selectPoint:{id:"Comparison_selectPoint",defaultMessage:"Select Point",description:"Select alignment point."}})},83176:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>w,w3:()=>g});var r=n(96540),o=n(66421),i=n(24159),a=n(14079),s=n(51467),l=n(59924),c=n(54977),u=n.n(c),d=n(47104),p=n.n(d),h=n(74848);const f={styles:{...u(),userHintStyles:p()}},m=r.lazy((()=>Promise.resolve().then(n.bind(n,9926)))),g={documentA:{source:a.O.USE_OPEN_DOCUMENT,pageIndex:0},documentB:{source:a.O.USE_FILE_DIALOG,pageIndex:0},strokeColors:{documentA:new i.A({r:245,g:40,b:27}),documentB:new i.A({r:49,g:193,b:255})},blendMode:"darken",autoCompare:!1},v=(0,h.jsx)("div",{className:u().documentComparisonPageLoading,"data-testid":"documentComparisonFallback",children:(0,h.jsx)(o.A,{scale:2})}),y=(e,t)=>({documentA:{...g.documentA,pageIndex:e?.documentA.source===a.O.USE_OPEN_DOCUMENT?t:0,...e?.documentA},documentB:{...g.documentB,pageIndex:e?.documentB.source===a.O.USE_OPEN_DOCUMENT?t:0,...e?.documentB},strokeColors:{...g.strokeColors,...e?.strokeColors},blendMode:e?.blendMode||g.blendMode,autoCompare:e.autoCompare}),b=e=>e!==a.O.USE_OPEN_DOCUMENT&&e!==a.O.USE_FILE_DIALOG?(0,s.T7)(e):null,w=e=>{const{backend:t,viewportState:n,interactionMode:o=null,configuration:i}=e,s=r.useMemo((()=>y(i,n.currentPageIndex)),[i,n.currentPageIndex]);r.useEffect((()=>{let e;s[l.w.documentA].source===a.O.USE_OPEN_DOCUMENT?e=l.w.documentA:s[l.w.documentB].source===a.O.USE_OPEN_DOCUMENT&&(e=l.w.documentB),t.persistOpenDocument(e)}),[t,s]);const c=r.useRef({[l.w.documentA]:b(s.documentA.source),[l.w.documentB]:b(s.documentB.source)});return(0,h.jsx)(r.Suspense,{fallback:v,children:(0,h.jsx)(m,{backend:e.backend,interactionMode:o,renderPageCallback:e.renderPageCallback,allowedTileScales:e.allowedTileScales,viewportState:n,scrollElement:e.scrollElement,CSS_HACK:f,viewportWidth:e.viewportWidth,dispatch:e.dispatch,settings:s,completionConfiguration:i.completion,initialDocumentSources:c.current,renderPagePreview:e.renderPagePreview})})}},51640:(e,t,n)=>{"use strict";n.d(t,{M:()=>s});n(96540);var r=n(41294),o=n(83137),i=n.n(o),a=n(74848);function s(e){return(0,a.jsx)(r.PY,{...e,styles:{label:i().label,input:i().input}})}},86918:(e,t,n)=>{"use strict";n.d(t,{q:()=>c});var r=n(96540),o=n(41294),i=n(77868),a=n(51655),s=n.n(a),l=n(74848);function c(e){let{title:t,children:a}=e;const[c,u]=r.useState(!1),d=(0,r.useCallback)((()=>u((e=>!e))),[]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.XA,{expanded:c,onPress:d,className:s().wrapper,children:(0,l.jsxs)("div",{className:s().controlContent,children:[(0,l.jsx)(i.A,{src:n(91576)(`./caret-${c?"down":"right"}.svg`),className:s().icon}),(0,l.jsx)("span",{children:t})]})}),(0,l.jsx)(o.lT,{expanded:c,children:(0,l.jsx)("div",{className:s().content,children:a})})]})}},57394:(e,t,n)=>{"use strict";n.d(t,{$n:()=>z,Ay:()=>D,q7:()=>P});var r=n(96540),o=n(2815),i=n(32485),a=n.n(i),s=n(97819),l=n(7737),c=n(93440),u=n(86918),d=n(77868),p=n(16870),h=n(60107),f=n(51640),m=n(13793),g=n(46395),v=n(51630),y=n(89574),b=n(11559),w=n.n(b),x=n(86601),S=n.n(x),_=n(1549),C=n.n(_),E=n(74848);function k(e){return A[e]||c.A[e]}const z=(e,t,n)=>r=>{let{btnComponentProps:o,selectedItem:i}=r;return(0,E.jsxs)(s.A,{is:"div",...o,className:a()("PSPDFKit-Input-Dropdown-Button",C().selectBox,w().selectBox,{[C().measurementDropdownText]:"measurement"===t}),style:{minWidth:"measurement"===t?"60px":"100px",columnGap:"measurement"===t?"8px":"",width:n?`${n}px`:""},children:[(0,E.jsx)("span",{children:i?.label?k(i.label)?e(k(i.label)):i.label:null}),(0,E.jsx)("div",{children:(0,v.A)({type:"caret-down",style:{width:12,height:12,flexBasis:12},className:a()(C().dropdownIcon)})})]})},P=(e,t)=>n=>{let{item:r,state:o,itemComponentProps:i,ref:l}=n;const c=r?.label,u=c?k(c):null,d=u?e(u):c;return(0,E.jsx)(s.A,{is:"div",className:a()(C().item,{[C().isSelected]:o?.includes("selected")||o?.includes("focused"),[C().measurementDropdownText]:"measurement"===t}),name:r?.value,...i,ref:l,children:(0,E.jsx)("span",{children:d||null})})};const A=(0,o.YK)({borderColor:{id:"borderColor",defaultMessage:"Border Color",description:"Form Creator popover style section border color label"},borderWidth:{id:"borderWidth",defaultMessage:"Border Width",description:"Form Creator popover style section border width label"},borderStyle:{id:"borderStyle",defaultMessage:"Border Style",description:"Form Creator popover style section border style label"},print:{id:"print",defaultMessage:"Print",description:"Form Creator popover style section print label"},solid:{id:"solid",defaultMessage:"Solid",description:"Form Creator popover style section solid border label"},dashed:{id:"dashed",defaultMessage:"Dashed",description:"Form Creator popover style section dashed border label"},beveled:{id:"beveled",defaultMessage:"Beveled",description:"Form Creator popover style section beveled border label"},inset:{id:"inset",defaultMessage:"Inset",description:"Form Creator popover style section inset border label"},underline:{id:"underline",defaultMessage:"Underline",description:"Form Creator popover style section unredline border label"}}),D=function(e){let{annotation:t,updateAnnotation:o,intl:i,frameWindow:a,label:s,pageSize:v}=e;const b=(0,l.d4)((e=>e.shadowRoot)),x=r.useCallback((e=>i.formatMessage(c.A.numberInPt,{arg0:e.toFixed(0)})),[i]),_=r.useCallback((e=>`${Math.round(e)}%`),[]),C=r.useCallback((e=>o({borderWidth:e})),[o]),D=r.useCallback((e=>{if(!v)return;const n=Number(e);if(90!==Math.abs(n-t.rotation)&&270!==Math.abs(n-t.rotation))o({rotation:n});else{const e=(0,y._w)(t,v),r=e.set("rotation",n);o({rotation:r.rotation,boundingBox:e.boundingBox})}}),[v,o,t]),T=r.useMemo((()=>[{label:"none",value:"none"},...Object.keys(g.k).map((e=>({label:e,value:e})))]),[]),I=T.find((e=>(t.borderStyle??"none")===e.value))??null,M=[{label:"0°",value:"0"},{label:"90°",value:"90"},{label:"180°",value:"180"},{label:"270°",value:"270"}];let N=t.rotation?M.find((e=>{let{value:n}=e;return Number(n)===t.rotation})):M[0];void 0===N&&(N=M[0]);const O=r.useCallback(z(i.formatMessage),[i.formatMessage]),R=r.useCallback(P(i.formatMessage),[i.formatMessage]);return(0,E.jsxs)(u.q,{title:s,children:[(0,E.jsxs)("div",{className:w().item,children:[(0,E.jsx)(d.A,{src:n(90312),className:w().itemIcon,role:"presentation"}),(0,E.jsx)("div",{className:w().itemLabel,children:i.formatMessage(c.A.fillColor)}),(0,E.jsx)(p.A,{record:t,onChange:o,styles:{...S(),colorSvg:w().colorSvg,colorItem:w().colorItem,controlWrapper:{...S().controlWrapper,width:"auto"}},accessibilityLabel:i.formatMessage(c.A.fillColor),caretDirection:"down",colorProperty:"backgroundColor",frameWindow:a,className:w().colorDropdown})]}),(0,E.jsxs)("div",{className:w().item,children:[(0,E.jsx)(d.A,{src:n(48823),className:w().itemIcon,role:"presentation"}),(0,E.jsx)("div",{className:w().itemLabel,children:i.formatMessage(A.borderColor)}),(0,E.jsx)(p.A,{record:t,onChange:o,styles:{...S(),colorSvg:w().colorSvg,colorItem:w().colorItem,controlWrapper:{...S().controlWrapper,width:"auto"}},accessibilityLabel:i.formatMessage(A.borderColor),caretDirection:"down",colorProperty:"borderColor",frameWindow:a,className:w().colorDropdown})]}),(0,E.jsxs)("div",{className:w().item,children:[(0,E.jsx)(d.A,{src:n(92019),className:w().itemIcon,role:"presentation"}),(0,E.jsx)("div",{className:w().itemLabel,children:i.formatMessage(A.borderStyle)}),(0,E.jsx)("div",{className:w().nativeDropdown,children:(0,E.jsx)("select",{"aria-label":i.formatMessage(A.borderStyle),className:"PSPDFKit-Input-Dropdown-Select",value:t.borderStyle||"",onChange:e=>{e.target.value!==T[0].value?void 0!==e.target.value&&o({borderStyle:e.target.value}):o({borderStyle:null})},children:T.map((e=>(0,E.jsx)("option",{value:e.value,disabled:e.disabled,children:e.label?i.formatMessage(k(e.label)):""},e.value)))})}),(0,E.jsx)(m.A,{items:T,value:I,accessibilityLabel:i.formatMessage(A.borderStyle),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:w().dropdownGroupComponent,menuClassName:w().dropdownGroupMenu,ButtonComponent:O,ItemComponent:R,onSelect:(e,t)=>{t.value!==T[0].value?void 0!==t.value&&o({borderStyle:t.value}):o({borderStyle:null})},frameWindow:a})]}),(0,E.jsxs)("div",{className:w().item,children:[(0,E.jsx)(d.A,{src:n(91024),className:w().itemIcon,role:"presentation"}),(0,E.jsx)("div",{className:w().itemLabel,children:i.formatMessage(A.borderWidth)}),(0,E.jsx)(h.A,{onChange:C,value:t.borderWidth||0,name:"borderWidth",caretDirection:"down",min:0,max:40,valueLabel:x,className:w().sliderDropdown,accessibilityLabel:i.formatMessage(A.borderWidth),shadowRoot:b})]}),(0,E.jsxs)("div",{className:w().item,children:[(0,E.jsx)(d.A,{src:n(78832),className:w().itemIcon,role:"presentation"}),(0,E.jsx)("div",{className:w().itemLabel,children:i.formatMessage(c.A.opacity)}),(0,E.jsx)(h.A,{onChange:e=>o({opacity:e/100}),value:100*t.opacity,name:"opacity",caretDirection:"down",valueLabel:_,className:w().sliderDropdown,accessibilityLabel:i.formatMessage(c.A.opacity),shadowRoot:b})]}),(0,E.jsxs)("div",{className:w().item,children:[(0,E.jsx)(d.A,{src:n(73898),className:w().itemIcon,role:"presentation"}),(0,E.jsx)("div",{className:w().itemLabel,children:i.formatMessage(c.A.rotation)}),(0,E.jsx)("div",{className:w().nativeDropdown,children:(0,E.jsx)("select",{"aria-label":i.formatMessage(c.A.rotation),className:"PSPDFKit-Input-Dropdown-Select",value:t.rotation||0,onChange:e=>{e.target.value&&D(e.target.value)},children:M.map((e=>(0,E.jsx)("option",{value:e.value,disabled:e.disabled,children:e.label},e.value)))})}),(0,E.jsx)(m.A,{items:M,value:N,accessibilityLabel:i.formatMessage(c.A.rotation),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:w().dropdownGroupComponent,menuClassName:w().dropdownGroupMenu,ButtonComponent:O,ItemComponent:R,onSelect:(e,t)=>{t.value&&D(t.value)},frameWindow:a})]}),(0,E.jsxs)("div",{className:w().item,children:[(0,E.jsx)(d.A,{src:n(31718),className:w().itemIcon,role:"presentation"}),(0,E.jsx)("div",{className:w().itemLabel,children:i.formatMessage(A.print)}),(0,E.jsx)(f.M,{value:!t.noPrint,onUpdate:e=>o({noPrint:!e}),accessibilityLabel:i.formatMessage(A.print)})]})]})}},81457:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(67136),o=n(96540),i=n(69371),a=n(76117),s=n(50652),l=n.n(s),c=n(74848);class u extends o.Component{constructor(){super(...arguments),(0,r.A)(this,"shouldComponentUpdate",i.EF),(0,r.A)(this,"_lastOrientationChange",0),(0,r.A)(this,"_handleResize",(()=>{const e=this._element&&this._element.getBoundingClientRect();if(!e)return;const t=Date.now()-this._lastOrientationChange<1e3;this.props.onResize(a.rw.fromClientRect(e),t)})),(0,r.A)(this,"_handleOrientationChange",(()=>{this._lastOrientationChange=Date.now()})),(0,r.A)(this,"_handleRef",(e=>{this._element=e,this.props.onRefUpdate?.(e?.contentDocument?.defaultView||null)}))}componentDidMount(){const e=this._getIFrameWindow();e?.addEventListener("resize",this._handleResize),e?.addEventListener("orientationchange",this._handleOrientationChange),this._handleResize()}componentWillUnmount(){const e=this._getIFrameWindow();e?.removeEventListener("resize",this._handleResize),e?.removeEventListener("orientationchange",this._handleOrientationChange)}_getIFrameWindow(){return this._element?.contentWindow}render(){return(0,c.jsx)("iframe",{ref:this._handleRef,className:l().root,inert:"","aria-hidden":!0,tabIndex:"-1"})}}},51630:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});n(96540);var r=n(32485),o=n.n(r),i=n(77868),a=n(52160),s=n.n(a),l=n(97028),c=n(74848);function u(e){const{icon:t,type:r,style:a=null}=e,u=o()(s().root,e.className,"PSPDFKit-Icon","PSPDFKit-Icon-"+(0,l.OI)(r));if(t)return/<svg/i.test(t)?(0,c.jsx)(i.A,{src:t,className:u,role:"presentation",style:a||void 0}):(0,c.jsx)("img",{src:t,role:"presentation",className:u,style:a||void 0});if("custom"===r)return null;let d;try{d=n(42854)(`./${r}.svg`)}catch(e){}return d?(0,c.jsx)(i.A,{src:d,className:u,"aria-hidden":"true",style:a||void 0}):null}},16870:(e,t,n)=>{"use strict";n.d(t,{A:()=>te});var r=n(67136),o=n(96540),i=n(76117),a=n(78729),s=n(83145),l=n(89574),c=n(97819),u=n(79308),d=n(85409),p=n(41294),h=n(32485),f=n.n(h),m=n(2815),g=n(28561),v=n.n(g),y=n(9083),b=n.n(y),w=n(1549),x=n.n(w),S=n(92862),_=n.n(S),C=n(71052),E=n.n(C),k=n(93440),z=n(13793),P=n(79938),A=n.n(P),D=n(9627),T=n(9939),I=n(51630),M=n(77868),N=n(24677),O=n(84809),R=n.n(O),j=n(74848);const F=o.memo((function(e){const{onCreateNewColor:t,onChange:n,disabled:r,isChoosingColor:a}=e,[s,l]=o.useState("#000000"),c={opacity:r?"40%":"100%",backgroundImage:a?"none":R().nativeColorInput.backgroundImage,backgroundColor:a?s:null,border:a?"1px solid var(--PSPDFKit-ColorDropdownPickerComponent-item-circle-border-stroke)":"none",width:a?"18px":"22px",height:a?"18px":"22px"};return(0,j.jsx)("label",{htmlFor:"input-color",children:(0,j.jsx)("div",{className:R().nativeColorInputWrapper,children:(0,j.jsx)(N.DebounceInput,{className:f()(R().nativeColorInput,"PSPDFKit-Custom-Color-Input"),style:c,type:"color",id:"input-color",debounceTimeout:200,value:s,onChange:e=>{const t=e.target.value;t&&(l(t),n(i.Q1.fromHex(t)))},onBlur:e=>{const n=e.target.value;n&&t(i.Q1.fromHex(n))},disabled:r})})})}));var B,L,V,K,H;const $=e=>{const t=e.colors??a.JY.COLOR_PRESETS,{formatMessage:n}=(0,m.tz)(),{removeTransparent:r=!1,customColorPresets:s=[],setCustomColorPresets:l,setStoredColors:c,lastToolbarActionUsedKeyboard:d=!1,opacity:p=1,innerRef:h,value:g,caretDirection:v,keepOpacity:y,frameWindow:b,accessibilityLabel:w,onChange:x,unavailableItemFallback:S={type:"label"},disabled:_=!1,styles:C,shouldShowCustomColorPicker:E=!1,isUsingCustomConfig:k=!1,menuClassName:P}=e,[A,T]=o.useState(),[I,M]=o.useState(),N=o.useRef(!1),O=o.useCallback((e=>{const n=[...t,...s].find((t=>(null!=t.color&&null!=e?.value?.color&&e.value.color?.equals(t.color))??(null==e?.value?.color&&null==t.color))),r=[...t,...s].find((e=>n?q(e)===q(n):null));x(r??null)}),[t,s,x]),R=o.useCallback((e=>{const t={color:e,localization:{id:`custom-${(0,u.v4)()}`,defaultMessage:"Custom",description:"Custom color"}},n=[...s,t];c?.(n),l&&(l(n),T(void 0)),g?.color?.equals(e)||x(t)}),[s,l,c,x,g]),B=o.useCallback((e=>{const n=s.filter((t=>t.localization.id!==e.localization.id));c?.(n),l&&(l(n),T(void 0)),e.color&&g?.color?.equals(e.color)&&x(t[0])}),[s,x,l,c,t,g]),L=o.useCallback((e=>{T(e);const t={color:e,localization:{id:`custom-${(0,u.v4)()}`,defaultMessage:"Custom",description:"Custom color"}};x(t)}),[x]),V=[...t,...s].filter((e=>!(r&&(null===e.color||e.color.transparent)))).map((e=>({label:e.localization.id,value:e,disabled:!1}))),K=X({caretDirection:v,colors:t,customColorPresets:s,colorItems:V,disabled:_,innerRef:h,keepOpacity:y,lastToolbarActionUsedKeyboard:d,opacity:p,unavailableItemFallback:S,styles:C,value:g,formatMessage:n,autoFocused:N}),H=J({colors:t,customColorPresets:s,isDeleteButtonVisible:I,setIsDeleteButtonVisible:M,formatMessage:n,handleChange:O,handleDeleteColor:B,keepOpacity:y,opacity:p,styles:C});return(0,j.jsx)("div",{className:C.controlWrapper,children:(0,j.jsx)("div",{className:C.control,children:(0,j.jsx)(z.A,{items:V,value:null!=g?V.find((e=>q(e.value)===q(g)))??null:null,discreteDropdown:!1,isActive:!1,caretDirection:v,className:`${e.className} ${C.colorSelect}`,menuClassName:f()(C.dropdownMenu,C.colorPickerDropdownMenu,P),ButtonComponent:K,ItemComponent:H,onSelect:(0,D.CN)()?void 0:(e,t)=>{O(t)},frameWindow:b,accessibilityLabel:w,maxCols:6,itemWidth:30,appendAfter:E?{node:U,index:k?t.length-1:t.length-(r?2:1)}:null,children:E&&(0,j.jsx)(F,{onCreateNewColor:R,onChange:L,disabled:s.length>=17,isChoosingColor:A instanceof i.Q1})})})})},U=()=>{const{formatMessage:e}=(0,m.tz)();return(0,j.jsx)("label",{style:{width:"100%",paddingTop:"10px",paddingBottom:"10px",paddingLeft:"5px"},children:e(k.A.custom)})};function W(e){let{onClick:t}=e;return(0,j.jsx)(c.A,{onClick:t,is:"button",className:f()(`PSPDFKit-AnnotationToolbar-Custom-Color-Delete-Button ${b().colorDeleteButton}`),children:B||(B=(0,j.jsx)(M.A,{src:A(),"aria-hidden":"true"}))})}function q(e){return null!=e?null!=e.color?e.color.toCSSValue():"none":"N/A"}function G(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return{stroke:"var(--PSPDFKit-ColorDropdownPickerComponent-item-circle-border-stroke)",fill:e?e.toCSSValue():"none",strokeWidth:1,fillOpacity:t?n:1}}const Z=()=>(0,j.jsxs)(o.Fragment,{children:[(0,j.jsx)("defs",{children:(0,j.jsxs)("pattern",{id:"PSPDFKit-Color-Background-Chessboard",width:"0.5",height:"0.5",patternContentUnits:"objectBoundingBox",children:[(0,j.jsx)("rect",{x:"0",y:"0",width:"0.25",height:"0.25",style:{fill:"rgba(0,0,0,.2)"}}),(0,j.jsx)("rect",{x:"0.25",y:"0.25",width:"0.25",height:"0.25",style:{fill:"rgba(0,0,0,.2)"}})]})}),(0,j.jsx)("circle",{cx:"12",cy:"12",r:"10",style:{fill:"url(#PSPDFKit-Color-Background-Chessboard)"}})]}),Y=()=>(0,j.jsx)("g",{transform:"translate(5 5)",children:(0,j.jsx)("line",{x1:"2",x2:"12",y1:"12",y2:"2",style:{stroke:"#F00",strokeWidth:2},strokeLinecap:"round"})}),X=e=>t=>{let{btnComponentProps:n,selectedItem:r}=t,o=!1;if(null!=r?.value?.color){const t=r.value?.color;o=Boolean(!e.colorItems.some((e=>e.value?.color?.equals(t))))}else o=!e.colorItems.some((e=>null==e.value?.color&&null==r?.value?.color||e.value?.color?.transparent));const i=[...e.colors,...e.customColorPresets].find((e=>r?q(e)===q(r.value):e.color?.transparent)),a=i?q(i):null,s=e.formatMessage(i?i.localization:{id:"transparent",defaultMessage:"Transparent",description:"Transparent"}),l=e.value,c=(!l||!i||"transparent"===i.localization.id||!e.keepOpacity&&e.opacity<1)&&(L||(L=(0,j.jsx)(Z,{})));return(0,j.jsxs)("button",{...n,className:f()("PSPDFKit-Input-Dropdown-Button","PSPDFKit-Input-Color-Dropdown",e.styles.colorSelectButton,{[_().isDisabled]:e.disabled,[e.styles.controlIsDisabled]:e.disabled}),ref:t=>{n.ref(t),"function"==typeof e.innerRef?e.innerRef(t):e.innerRef&&"object"==typeof e.innerRef&&"current"in e.innerRef&&(e.innerRef.current=t),e.innerRef&&t&&!e.autoFocused.current&&(t.focus(),e.autoFocused.current=!0,e.lastToolbarActionUsedKeyboard&&(t.classList.add(E().focusedFocusVisible),t.addEventListener("blur",T.Yf)))},name:"clickableBox",disabled:e.disabled,children:[o&&"label"===e.unavailableItemFallback.type?(0,j.jsx)("span",{children:e.unavailableItemFallback.label??"N/A"}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(p.s6,{tag:"div",children:s}),(0,j.jsxs)("svg",{viewBox:"0 0 24 24",className:e.styles.colorSvg,title:s,value:a,"aria-hidden":!0,children:[c,(i&&"transparent"===i.localization.id||!l)&&(V||(V=(0,j.jsx)(Y,{}))),(0,j.jsx)("circle",{cx:"12",cy:"12",r:"10",style:G(l?.color??null)})]},a)]}),(0,j.jsx)("div",{children:(0,I.A)({type:`caret-${e.caretDirection}`,style:{width:12,height:12,flexBasis:12},className:f()(x().dropdownIcon)})})]})},J=e=>t=>{let{item:n,state:r,itemComponentProps:o}=t;const i=[...e.colors,...e.customColorPresets].find((e=>null!=e.color&&null!=n?.value?.color?e.color.equals(n?.value.color):null==e.color&&null==n?.value?.color)),a=e.colors.some((e=>null!=e.color&&null!=n?.value?.color?e.color.equals(n.value.color):null==e.color&&null==n?.value?.color));(0,d.V1)(i,"Couldn't find matching color.");const s=q(i),l=a?e.formatMessage(i.localization):e.formatMessage(k.A.newColor),u=e.customColorPresets.find((e=>null!=e.color&&null!=n?.value?.color?e.color.equals(n.value.color):null==e.color&&null==n?.value?.color));let h,m=0;const g=("transparent"===i.localization.id||!e.keepOpacity&&e.opacity<1)&&(K||(K=(0,j.jsx)(Z,{})));return(0,j.jsxs)("div",{"data-testid":"color-swatch",className:b().colorItemContainer,children:[u&&(e.isDeleteButtonVisible===s||!(0,D.CN)())&&(0,j.jsx)(W,{onClick:()=>e.handleDeleteColor(u)}),(0,j.jsxs)(c.A,{is:"div",className:f()(v().root,_().root,{[x().isSelected]:r?.includes("selected")||r?.includes("focused")},x().item,e.styles.colorItem),name:n?.value?.localization.id??"",...o,onPointerDown:(0,D.CN)()?()=>{m=Date.now(),h=setTimeout((()=>{e.setIsDeleteButtonVisible(s)}),300)}:void 0,onPointerUp:(0,D.CN)()?(t=>()=>{Date.now()-m<300&&(window.clearTimeout(h),e.setIsDeleteButtonVisible(void 0),e.handleChange(t))})(n):void 0,children:[(0,j.jsx)(p.s6,{tag:"div",children:l}),(0,j.jsxs)("svg",{viewBox:"0 0 24 24",className:`PSPDFKit-Input-Dropdown-Item ${e.styles.colorSvg}`,title:l,value:s,"aria-hidden":"true",children:[g,"transparent"===i.localization.id&&(H||(H=(0,j.jsx)(Y,{}))),(0,j.jsx)("circle",{cx:"12",cy:"12",r:"10",style:G(i.color,e.keepOpacity)})]},s)]})]})},Q=o.memo($),ee=[i.Go,i.dh,i.Eo,s.A,i.ax,i.MU,i.ug,i.Si,i.Zx,i.sb];class te extends o.PureComponent{static getDerivedStateFromProps(e){if(e.annotationToolbarColorPresets){const t=e.annotationToolbarColorPresets({propertyName:(()=>{for(const[t,n]of l.S1.entries())if(n===e.colorProperty)return t})(),defaultAnnotationToolbarColorPresets:a.JY.COLOR_PRESETS});if(void 0!==t)return!1===t.showColorPicker?{hasColorPicker:t.showColorPicker,colors:t.presets,isUsingCustomConfig:!0}:{colors:t.presets,hasColorPicker:!0,isUsingCustomConfig:!0}}return e.colors?{colors:e.colors}:{colors:a.JY.COLOR_PRESETS}}constructor(e){super(e),(0,r.A)(this,"state",{colors:a.JY.COLOR_PRESETS,colorPresets:(0,l.C5)(this.props.colorProperty),creatingColor:void 0,hasColorPicker:!0,isDeleteButtonVisible:void 0,isUsingCustomConfig:!1}),(0,r.A)(this,"defaultBorderColor","#404040"),(0,r.A)(this,"_autoFocused",!1),(0,r.A)(this,"_onChange",(e=>{this.props.onChange({[this.props.colorProperty]:e?e.color:null})})),(0,r.A)(this,"showCustomPickerForAnnotation",(e=>ee.some((t=>e instanceof t)))),(0,r.A)(this,"_setStoredColors",(e=>localStorage.setItem(`persistedColors${this.props.colorProperty}`,JSON.stringify(e))))}render(){const{record:e}=this.props,t=this.state.hasColorPicker&&(!(e instanceof i.YH)||this.showCustomPickerForAnnotation(e)),n=this.props.record[this.props.colorProperty],r=this.state.colors.find((e=>!(null!=e.color&&!e.color.transparent||null!=n)||null!=e.color&&null!=n&&e.color.equals(n)))??{color:n,localization:k.A.color};return(0,j.jsx)(Q,{colors:this.state.colors,value:r,customColorPresets:this.state.colorPresets,setCustomColorPresets:e=>e?this.setState({colorPresets:e}):null,onChange:this._onChange,className:this.props.className,caretDirection:this.props.caretDirection,removeTransparent:this.props.removeTransparent,opacity:this.props.record.opacity,accessibilityLabel:this.props.accessibilityLabel,keepOpacity:this.props.keepOpacity,frameWindow:this.props.frameWindow,innerRef:this.props.innerRef,lastToolbarActionUsedKeyboard:this.props.lastToolbarActionUsedKeyboard,styles:this.props.styles,setStoredColors:this._setStoredColors,shouldShowCustomColorPicker:t,unavailableItemFallback:{type:"swatch"},isUsingCustomConfig:this.state.isUsingCustomConfig})}}(0,r.A)(te,"defaultProps",{className:"",removeTransparent:!1,lastToolbarActionUsedKeyboard:!1})},60107:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(67136),o=(n(85409),n(96540)),i=n(32485),a=n.n(i),s=n(41294),l=n(77868),c=n(69371),u=n(12497),d=n.n(u),p=n(74848);let h=0;class f extends o.Component{constructor(){super(...arguments),(0,r.A)(this,"inputRef",o.createRef()),(0,r.A)(this,"shouldComponentUpdate",c.EF),(0,r.A)(this,"_guid",h++),(0,r.A)(this,"triggerChange",(()=>{this.inputRef.current&&this.props.onChange(Number(this.inputRef.current.value))}))}render(){const{label:e,accessibilityLabel:t}=this.props;return(0,p.jsxs)("div",{className:`PSPDFKit-Input-Slider ${this.props.className} ${d().root}`,children:[this.props.label?(0,p.jsx)("label",{htmlFor:`${d().label}-${this._guid}`,className:d().label,children:this.props.label}):this.props.accessibilityLabel?(0,p.jsx)(s.s6,{tag:"label",htmlFor:`${d().label}-${this._guid}`,children:this.props.accessibilityLabel}):null,(0,p.jsx)("div",{className:d().input,children:(0,p.jsx)("input",{id:`${d().label}-${this._guid}`,type:"range",ref:this.inputRef,className:"PSPDFKit-Input-Slider-Input",min:this.props.min,max:this.props.max,step:this.props.step,value:this.props.value,onChange:this.triggerChange})}),!this.props.hideLabel&&(0,p.jsx)("label",{className:`PSPDFKit-Input-Slider-Value ${d().value}`,children:this.props.valueLabel(this.props.value)})]})}}(0,r.A)(f,"defaultProps",{min:0,max:100,step:1,valueLabel:e=>e.toString(),className:""});var m=n(6838),g=n.n(m);let v=0;class y extends o.Component{constructor(){super(...arguments),(0,r.A)(this,"controlRef",o.createRef()),(0,r.A)(this,"state",{isOpen:!1}),(0,r.A)(this,"_guid",v++),(0,r.A)(this,"_toggleItems",(()=>{this.state.isOpen?this._hideItems():this._showItems()})),(0,r.A)(this,"_handleKeyDown",(e=>{"ArrowDown"!==e.key||this.state.isOpen||this._toggleItems()})),(0,r.A)(this,"_handleBlur",(e=>{e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation();const t=this.controlRef.current,n=t?.contains(e.relatedTarget);this.state.isOpen&&!n&&this._hideItems()}))}_showItems(){this.setState({isOpen:!0})}_hideItems(){this.setState({isOpen:!1})}render(){const{label:e,accessibilityLabel:t,caretDirection:r}=this.props;const o=this.props.className?this.props.className:"",i=a()(g().root,this.state.isOpen&&g().show,o,"PSPDFKit-Input-Dropdown",this.state.isOpen&&"PSPDFKit-Input-Dropdown-open");return(0,p.jsxs)("div",{style:this.props.style,className:i,onBlur:this._handleBlur,ref:this.controlRef,tabIndex:-1,children:[(0,p.jsxs)("button",{className:`PSPDFKit-Input-Dropdown-Button ${g().button}`,onClick:this._toggleItems,onKeyDown:this._handleKeyDown,"aria-labelledby":`${g().srLabel}-${this._guid} ${g().value}-${this._guid}`,style:{height:32},ref:this.props.innerRef,"aria-expanded":this.state.isOpen,"aria-controls":`${g().dropdownItems}-${this._guid}`,type:"button",children:[(0,p.jsx)("span",{className:`PSPDFKit-Input-Dropdown-FlexContainer ${g().flexContainer}`,"aria-hidden":"true",children:(0,p.jsx)("span",{className:`PSPDFKit-Input-Slider-Value ${g().value}`,id:`${g().value}-${this._guid}`,children:this.props.valueLabel(this.props.value)})}),(0,p.jsx)(s.s6,{id:`${g().srLabel}-${this._guid}`,children:t||null}),(0,p.jsx)(l.A,{src:n("down"===r?62159:14016),className:g().toggle,"aria-hidden":"true"})]}),(0,p.jsx)("div",{className:a()("PSPDFKit-Input-Dropdown-Items",g().dropdownItems,g().dropdown,{[g().dropDownItemsUp]:"up"===this.props.caretDirection}),id:`${g().dropdownItems}-${this._guid}`,children:this.state.isOpen&&this._renderDropdownItems()})]})}_renderDropdownItems(){return(0,p.jsx)("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",width:"auto",padding:"5px 10px"},children:(0,p.jsx)(f,{...this.props,className:`${this.props.className} ${g().slider}`,hideLabel:!0})})}}(0,r.A)(y,"defaultProps",{min:0,max:100,step:1,valueLabel:e=>e.toString(),className:""})},55950:(e,t,n)=>{"use strict";n.d(t,{Q:()=>_});var r,o=n(96540),i=n(45849),a=n(32485),s=n.n(a),l=n(63939),c=n(79900),u=n(9627),d=n(40807),p=n(88290),h=n(76117),f=n(76426),m=n(63573),g=n(62741),v=n.n(g),y=n(74848);const b=u.nr&&(0,c.I)()>1,w=b?2:1,x=16/w;function S(e,t){const{zoomLevel:n}=e;return Math.round((0,m.kz)(e,(0,m.NZ)(e,t))*n)}const _=e=>{const{pageRendererComponentProps:t,contentState:n,pageIndex:a,viewportState:m,onScroll:g,className:_,scrollElement:C,label:E,cursorPosition:k,isMobile:z}=e,[{x:P,y:A},D]=o.useState({x:0,y:0}),[{scrollTop:T,scrollLeft:I},M]=o.useState({scrollLeft:C?.scrollLeft||0,scrollTop:(C?.scrollTop||0)-S(m,a)}),N=(0,d.Kw)((e=>{k||D({x:e.clientX,y:e.clientY})})),O=(0,d.aq)(),R=(0,d.Kw)((()=>{if(!C||!O())return;const e={scrollLeft:C.scrollLeft,scrollTop:C.scrollTop-S(m,a)};g?g((()=>M(e))):M(e)}));o.useEffect((()=>(C?.addEventListener("scroll",R,!1),()=>{C?.removeEventListener("scroll",R,!1)})),[R,C]);const j=z?136:174,F=m.scrollPosition.scale(m.zoomLevel).translate(m.scrollPosition.scale(-m.zoomLevel)),B=(0,l.z1)(m).translate(F.scale(-1)),L=(0,c.I)(),V=Math.floor(L*((k?.x||P)-B.left+I))/L-m.viewportRect.left,K=Math.floor(L*((k?.y||A)-B.top+T))/L-m.viewportRect.top,H=Math.floor(j/2-V),$=Math.floor(j/2-K),U=L/(w*x/L)+.5/w,W=w*x*.5*L,q=E||`${(m.zoomLevel*x*L/2).toFixed(1).replace(".0","")}x`;return(0,y.jsx)(p.A,{onRootPointerMove:N,children:(0,y.jsx)(i.W,{children:(0,y.jsxs)("div",{className:s()(v().magnifierContainer,{[v().magnifierContainerMobile]:z},_),children:[(0,y.jsxs)("div",{className:v().magnifier,style:{transformOrigin:`${V}px ${K}px`,transform:`scale(${x*L/2}) translate(-${U}px, -${U}px)`,left:H,top:$},children:[(0,y.jsx)(f.A,{...t,contentState:n,viewportRect:new h.rw({left:V,top:K,width:j,height:j}),forceDetailView:!0}),e.children]}),(0,y.jsxs)("div",{className:v().magnifierGridContainer,children:[(0,y.jsxs)("svg",{width:j,height:j,viewBox:`0 0 ${j*L} ${j*L}`,children:[(0,y.jsx)("defs",{children:(0,y.jsx)("pattern",{id:"grid",x:z?-3*L:L>1?-.5*L:0,y:z?-3*L:L>1?-.5*L:0,width:W,height:W,patternUnits:"userSpaceOnUse",children:(0,y.jsx)("polyline",{points:`${W-.5},0 ${W-.5},${W-.5} 0,${W-.5}`,className:v().magnifierGridStroke,strokeWidth:1,strokeLinejoin:"miter",strokeLinecap:"butt",shapeRendering:"crispEdges"})})}),(0,y.jsxs)("g",{transform:`translate(-${1+W/2},-${1+W/2})`,children:[r||(r=(0,y.jsx)("rect",{fill:"url(#grid)",x:"0",y:"0",width:"100%",height:"100%",strokeLinejoin:"miter",strokeLinecap:"butt",shapeRendering:"crispEdges"})),(0,y.jsx)("rect",{x:Math.floor(j*L/2)+L*(b||u.gm&&L>1?0:.5),y:Math.floor(j*L/2)+(b?1:0),width:W,height:W,className:v().magnifierCenterStroke,strokeWidth:1,strokeLinejoin:"miter",strokeLinecap:"butt",shapeRendering:"crispEdges"}),(0,y.jsx)("rect",{x:Math.floor(j*L/2)-1,y:Math.floor(j*L/2)-1,width:W+3,height:W+3,className:v().magnifierCenterOutlineStroke,strokeWidth:2,strokeLinejoin:"miter",strokeLinecap:"butt",shapeRendering:"crispEdges"})]})]}),(0,y.jsx)("div",{className:v().magnifierLabelBackground}),(0,y.jsx)("div",{className:v().magnifierLabelText,children:q})]})]})})})}},25507:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>Z,DZ:()=>Y,cD:()=>J});var r,o,i,a,s=n(96540),l=n(32485),c=n.n(l),u=n(2815),d=n(49568),p=n(41294),h=n(85409),f=n(7737),m=n(97819),g=n(67926),v=n(76156),y=n(30235),b=n(95171),w=n(8593),x=n(93440),S=n(67992),_=n(11559),C=n.n(_),E=n(1559),k=n(75439),z=n(77868),P=n(54694),A=n(44523),D=n(9627),T=n(13793),I=n(57394),M=n(94308),N=n(35014),O=n(65615),R=n.n(O),j=n(69309),F=n.n(j),B=n(43907),L=n.n(B),V=n(1549),K=n.n(V),H=n(27959),$=n(35467),U=n(63865),W=n(95272),q=n.n(W),G=n(74848);const Z=function(e){let{referenceRect:t,viewportState:r,isHidden:o,annotation:i,frameWindow:a,eventEmitter:l,setModalClosurePreventionError:m}=e;(0,h.V1)(i.measurementPrecision&&i.measurementScale);const{formatMessage:_}=(0,u.tz)(),D=(0,f.wA)(),O=i.getMeasurementDetails().value,j=(0,f.d4)((e=>e.backend)),B=(0,f.d4)((e=>e.measurementScales)),V=(0,f.d4)((e=>e.activeMeasurementScale)),[K,W]=(0,s.useState)(!1),[q,Z]=(0,s.useState)(!1),X=V&&!K?V.precision:i.measurementPrecision,[Q,ee]=(0,s.useState)((0,d.NZ)([])),[te,ne]=(0,s.useState)(O.toFixed(A.AK[X])),re=s.useMemo((()=>V&&!K?{unitFrom:V.scale.unitFrom,unitTo:V.scale.unitTo,fromValue:V.scale.fromValue,toValue:V.scale.toValue}:i.measurementScale),[V,i.measurementScale,K]),[oe,ie]=(0,s.useState)((0,v.AK)({scale:re,precision:X}).label),[ae,se]=(0,s.useState)(re?.fromValue.toString()),[le,ce]=(0,s.useState)(re?.toValue.toString()),[ue,de]=(0,s.useState)(!1),pe=(0,s.useCallback)((e=>{const t=i.merge(e),n={annotations:(0,d.B8)([t]),reason:M.x.PROPERTY_CHANGE};l.emit("annotations.willChange",n),D((0,k.g_)(t)),W(!0)}),[i,D,l]),he=s.useCallback((e=>{const t=(0,A.pZ)(i,e);pe({measurementScale:t}),se(t.fromValue.toString()),ce(t.toValue.toString())}),[i,pe]);(0,s.useEffect)((()=>{m({error:E.K.MEASUREMENT_ERROR,annotationId:i.id})}),[i.id]),(0,s.useEffect)((()=>{he(parseFloat(te||"1"))}),[te,re]),(0,s.useEffect)((()=>{D((0,$.bK)(X))}),[X]),(0,s.useEffect)((()=>{q&&oe||(ie((0,v.AK)({scale:re,precision:X}).label),ee(Q.delete("scaleName")));const e=B?.find((e=>{let{scale:t,precision:n}=e;return t.fromValue===Number(re?.fromValue)&&t.toValue===Number(re?.toValue)&&t.unitFrom===re?.unitFrom&&t.unitTo===re?.unitTo&&n===X}));ee(e?Q.add("duplicate"):Q.delete("duplicate"))}),[ae,le,te,re,X]);const fe="startPoint"in i&&i.startPoint,me="endPoint"in i&&i.endPoint;(0,s.useEffect)((()=>{ne(i.getMeasurementDetails().value.toFixed(A.AK[X]))}),[fe,me,X]);const ge=s.useCallback((0,I.$n)(_,"measurement"),[_]),ve=s.useCallback((0,I.q7)(_),[_]),ye=s.useCallback((()=>{const e={name:oe,scale:{fromValue:parseFloat(ae),toValue:parseFloat(le),unitFrom:re?.unitFrom,unitTo:re?.unitTo},precision:X};(0,f.vA)((()=>{D((0,w.XL)(e)),D((0,w.NJ)(e))})),"SERVER"===j?.type?(0,f.vA)((()=>{D((0,k.eS)(i)),D((0,b.J9)()),D((0,$.uT)(y.O.MEASUREMENT)),D((0,w.Qc)(!1)),D((0,g.eW)(!0))})):de(!0)}),[de,D,ae,X,re?.unitFrom,re?.unitTo,oe,le]),be="in"===i.measurementScale.unitTo||"ft"===i.measurementScale.unitTo||"yd"===i.measurementScale.unitTo?A.Cu:A.Cu.filter((e=>!e.label.includes("/"))),we=(0,s.useCallback)(((e,t)=>/^[0-9]$/.test(e)||"."===e&&t&&!t.includes(".")),[]);return ue?(0,G.jsx)(p.aF,{onEscape:()=>{(0,f.vA)((()=>{D((0,k.eS)(i)),D((0,b.J9)()),D((0,$.uT)(y.O.MEASUREMENT)),D((0,w.Qc)(!1))}))},background:"var(--PSPDFKit-MeasurementModalComponent-background-color)",className:L().calibrationSuccessModal,children:(0,G.jsxs)("div",{className:L().calibrationSuccessModalContainer,children:[(0,G.jsxs)("div",{className:L().calibrationSuccessRow,children:[(0,G.jsx)(z.A,{src:n(40452),className:C().itemIcon,role:"presentation",style:{color:"#628D06"}}),(0,G.jsx)("div",{onClick:()=>{(0,f.vA)((()=>{D((0,k.eS)(i)),D((0,b.J9)()),D((0,$.uT)(y.O.MEASUREMENT)),D((0,w.Qc)(!1))}))},children:(0,G.jsx)(z.A,{src:n(11899),className:C().itemIcon,role:"presentation",style:{cursor:"pointer"}})})]}),(0,G.jsx)("div",{className:c()(L().calibrationSuccessRow,L().calibrationSuccessTitle),children:(0,G.jsx)("p",{children:_(Y.calibrationScaleSuccess)})}),(0,G.jsx)("div",{className:L().calibrationSuccessRow,children:(0,G.jsx)("p",{children:_(Y.calibrationScaleSubtitle)})})]})}):o?null:(0,G.jsxs)(S.A,{referenceRect:t,viewportState:r,className:"PSPDFKit-Measurement-Popover",wrapperClassName:"PSPDFKit-Measurement-Editor",title:_(Y.calibrateScale),footer:(0,G.jsx)("div",{className:c()(L().footer,L().contentRow,L().spaceBetweenRow),children:(0,G.jsxs)(p.e2,{className:"PSPDFKit-Confirm-Dialog-Buttons",align:"end",children:[(0,G.jsx)(p.$n,{autoFocus:!0,onClick:()=>{(0,f.vA)((()=>{D((0,w.Qc)(!1)),D((0,k.eS)(i)),D((0,b.J9)()),D((0,$.uT)(y.O.MEASUREMENT))}))},className:c()("PSPDFKit-Confirm-Dialog-Button","PSPDFKit-Confirm-Dialog-Button-Cancel",L().button),children:_(x.A.delete)}),(0,G.jsx)(p.$n,{onClick:()=>ye(),primary:!0,disabled:Q.size>0,className:c()("PSPDFKit-Confirm-Dialog-Button","PSPDFKit-Confirm-Dialog-Button-Confirm",L().button),children:_(x.A.done)})]})}),children:[(0,G.jsx)("div",{className:F().calibration,children:(0,G.jsxs)("div",{className:F().calibrationTop,children:[(0,G.jsx)(z.A,{src:n(53504),className:C().itemIcon,role:"presentation"}),(0,G.jsx)("div",{className:C().itemLabel,children:_(Y.calibrateLength)}),(0,G.jsxs)("div",{className:F().calibrateRight,children:[(0,G.jsx)(p.ks,{type:"number",value:te,onKeyPress:e=>{we(e.key,te)||e.preventDefault()},onChange:e=>{if(ne(e.target.value),!function(e){const t=parseFloat(e);return!isNaN(t)&&isFinite(t)&&t>0}(e.target.value))return void ee(Q.add("calibrationValue"));ee(Q.delete("calibrationValue"));const t=parseFloat(e.target.value);he(t)},required:!0,style:{height:32,width:90,borderColor:Q.has("calibrationValue")?"#FF0000":void 0},className:c()(R().input,"PSPDFKit-Calibration-Input")}),(0,G.jsx)("div",{className:c()(C().nativeDropdown,F().nativeButton),children:(0,G.jsx)("select",{"aria-label":_(Y.calibrate),className:c()("PSPDFKit-Input-Dropdown-Select","PSPDFKit-Calibration-UnitTo"),value:A.zc.find((e=>e.value===re?.unitTo))?.value??i.measurementScale?.unitTo,onChange:e=>{pe({measurementScale:i.measurementScale?.set("unitTo",e.target.value)})},children:Object.keys(H._).map((e=>(0,G.jsx)("option",{value:H._[e],children:H._[e]},e)))})}),(0,G.jsx)(T.A,{items:A.zc,value:A.zc.find((e=>e.value===re?.unitTo))??null,accessibilityLabel:_(Y.calibrate),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:c()(C().dropdownGroupComponent,"PSPDFKit-Calibration-UnitTo"),menuClassName:C().dropdownGroupMenu,ButtonComponent:ge,ItemComponent:ve,onSelect:(e,t)=>{pe({measurementScale:i.measurementScale?.set("unitTo",t.value)})},frameWindow:a})]})]})}),(0,G.jsx)("span",{className:F().spacer}),(0,G.jsxs)("div",{className:F().scale,children:[(0,G.jsxs)("div",{className:F().scaleTop,children:[(0,G.jsx)(z.A,{src:n(62129),className:C().itemIcon,role:"presentation"}),(0,G.jsx)("div",{className:C().itemLabel,children:_(Y.measurementScale)})]}),(0,G.jsx)("div",{style:{width:"100%"},className:F().itemHeader,children:(0,G.jsx)(p.ks,{type:"text",value:oe,onChange:e=>{e.target.value?ee(Q.delete("scaleName")):ee(Q.add("scaleName")),ie(e.target.value),q||Z(!0)},required:!0,style:{height:32,width:"100%",borderColor:Q.has("scaleName")?"#FF0000":void 0},className:c()(R().input,"PSPDFKit-Calibration-Name")})}),(0,G.jsxs)("div",{className:F().scaleBottom,children:[(0,G.jsxs)("div",{children:[(0,G.jsx)(p.ks,{type:"number",value:ae,required:!0,disabled:!0,style:{height:32,width:90,borderColor:Q.has("fromValue")?"#FF0000":void 0,opacity:"var(--PSPDFKit-Button-isDisabled-opacity)"},className:c()(R().input,R().disabled)}),(0,G.jsx)("div",{className:c()(C().nativeDropdown,F().nativeButton),children:(0,G.jsx)("select",{"aria-label":_(Y.measurementScale),className:"PSPDFKit-Input-Dropdown-Select",value:i.measurementScale?.unitFrom||"",disabled:!0,children:Object.keys(N.b).map((e=>(0,G.jsx)("option",{value:N.b[e],children:N.b[e]},e)))})}),(0,G.jsx)(T.A,{items:A.ON,value:A.ON.find((e=>e.value===re?.unitFrom))??null,accessibilityLabel:_(Y.measurementScale),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:C().dropdownGroupComponent,menuClassName:C().dropdownGroupMenu,ButtonComponent:ge,ItemComponent:ve,disabled:!0,frameWindow:a})]}),":",(0,G.jsxs)("div",{children:[(0,G.jsx)(p.ks,{type:"number",value:le,required:!0,disabled:!0,style:{height:32,width:90,borderColor:Q.has("toValue")?"#FF0000":void 0,opacity:"var(--PSPDFKit-Button-isDisabled-opacity)"},className:c()(R().input,R().disabled)}),(0,G.jsx)("div",{className:c()(C().nativeDropdown,F().nativeButton),children:(0,G.jsx)("select",{"aria-label":_(Y.measurementScale),className:"PSPDFKit-Input-Dropdown-Select",value:i.measurementScale?.unitTo||"",disabled:!0,children:Object.keys(H._).map((e=>(0,G.jsx)("option",{value:H._[e],children:H._[e]},e)))})}),(0,G.jsx)(T.A,{items:A.zc,value:A.zc.find((e=>e.value===re?.unitTo))??null,accessibilityLabel:_(Y.measurementScale),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:C().dropdownGroupComponent,menuClassName:C().dropdownGroupMenu,ButtonComponent:ge,ItemComponent:ve,disabled:!0,frameWindow:a})]})]})]}),(0,G.jsx)("span",{className:F().spacer}),(0,G.jsxs)("div",{className:C().item,children:[(0,G.jsx)("div",{className:c()(C().itemLabel,F().itemLabel),children:_(Y.measurementPrecision)}),(0,G.jsx)("div",{className:c()(C().nativeDropdown,F().nativeButton),children:(0,G.jsx)("select",{style:{height:30},"aria-label":_(Y.measurementPrecision),className:c()("PSPDFKit-Input-Dropdown-Select","PSPDFKit-Calibration-Precision"),value:i.measurementPrecision||"",onChange:e=>{pe({measurementPrecision:e.target.value})},children:Object.keys(P.x).map(((e,t)=>(0,G.jsx)("option",{value:P.x[e],children:A.on[t]},e)))})}),(0,G.jsx)(T.A,{items:be,value:be.find((e=>e.value===i.measurementPrecision))??null,accessibilityLabel:_(Y.measurementPrecision),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:c()(C().dropdownGroupComponent,"PSPDFKit-Measurement-Popover-Precision-Dropdown","PSPDFKit-Calibration-Precision"),menuClassName:C().dropdownGroupMenu,ButtonComponent:ge,ItemComponent:J,onSelect:(e,t)=>{pe({measurementPrecision:t.value}),ne(O.toFixed(A.AK[t.value]).toString())},frameWindow:a})]}),Q.has("duplicate")&&(0,G.jsx)("p",{className:L().scaleError,children:_(U.D.scaleAlreadyAddedWarning)})]})},Y=(0,u.YK)({calibrationScaleSuccess:{id:"calibrationScaleSuccess",defaultMessage:"Scale has been successfully set",description:"Scale has been successfully set"},calibrationScaleSubtitle:{id:"calibrationScaleSubtitle",defaultMessage:"Start measuring by selecting one of the measurement tools.",description:"Start measuring by selecting one of the measurement tools."},perimeterMeasurementSettings:{id:"perimeterMeasurementSettings",defaultMessage:"Perimeter Measurement Settings",description:"Perimeter Measurement Settings"},polygonAreaMeasurementSettings:{id:"polygonAreaMeasurementSettings",defaultMessage:"Polygon Area Measurement Settings",description:"Polygon Area Measurement Settings"},rectangularAreaMeasurementSettings:{id:"rectangularAreaMeasurementSettings",defaultMessage:"Rectangle Area Measurement Settings",description:"Rectangle Area Measurement Settings"},ellipseAreaMeasurementSettings:{id:"ellipseAreaMeasurementSettings",defaultMessage:"Ellipse Area Measurement Settings",description:"Ellipse Area Measurement Settings"},calibrateLength:{id:"calibrateLength",defaultMessage:"Calibrate Length",description:"Calibrate"},measurementPrecision:{id:"measurementPrecision",defaultMessage:"Precision",description:"Precision"},measurementScale:{id:"measurementScale",defaultMessage:"Scale",description:"Scale"},calibrateScale:{id:"calibrateScale",defaultMessage:"Calibrate Scale",description:"Calibrate Scale"},calibrate:{id:"calibrate",defaultMessage:"Calibrate",description:"Calibrate"}});const X=e=>D.nr?(0,G.jsx)("span",{children:e.label}):"1/2"===e.label?r||(r=(0,G.jsx)("span",{children:"1⁄2 in"})):"1/4"===e.label?o||(o=(0,G.jsx)("span",{children:"1⁄4 in"})):"1/8"===e.label?i||(i=(0,G.jsx)("span",{children:"1⁄8 in"})):"1/16"===e.label?a||(a=(0,G.jsx)("span",{children:"1⁄16 in "})):(0,G.jsx)("span",{children:e.label}),J=e=>{let{item:t,state:n,itemComponentProps:r,ref:o}=e;return(0,G.jsxs)(m.A,{is:"div",className:c()(K().item,{[K().isSelected]:n?.includes("selected")||n?.includes("focused")},K().measurementDropdownText),name:t?.value,...r,ref:o,children:[n?.includes("selected")?(0,G.jsx)(z.A,{src:q(),className:F().icon}):(0,G.jsx)("span",{className:F().icon}),(0,G.jsx)(X,{label:t?.label})]})}},87515:(e,t,n)=>{"use strict";n.d(t,{A:()=>I,D:()=>M});var r=n(96540),o=n(2815),i=n(41294),a=n(32485),s=n.n(a),l=n(7737),c=n(35747),u=n(35224),d=n(75439),p=n(95171),h=n(35467),f=n(66200),m=n(63865),g=n(47608),v=n(93440),y=n(43907),b=n.n(y),w=n(51640),x=n(69309),S=n.n(x),_=n(27959),C=n(11559),E=n.n(C),k=n(13793),z=n(57394),P=n(54694),A=n(44523),D=n(8593),T=n(74848);const I=function(e){let{frameWindow:t}=e;const{formatMessage:n}=(0,o.tz)(),a=(0,l.d4)((e=>e.measurementScales)),y=(0,l.d4)((e=>e.secondaryMeasurementUnit)),[x,C]=r.useState(Boolean(y)),[I,N]=r.useState(y?.unitTo),[O,R]=r.useState(y?.precision),[j,F]=r.useState(!1),[B,L]=r.useState([]),[V,K]=r.useState(null),[H,$]=r.useState(null),[U,W]=r.useState(!1),q=(0,l.d4)((e=>{const{selectedAnnotationIds:t,annotations:n}=e;return t.map((e=>n.get(e)))})),G=(0,l.wA)(),Z=r.useCallback((0,z.$n)(n,"measurement"),[n]),Y=r.useCallback((0,z.q7)(n),[n]),X=r.useCallback((()=>{G((0,h.Sz)()),G((0,p.J9)()),G((0,d.iE)("measurement")),G((0,h.zB)())}),[G]),J=r.useCallback((e=>{if(j&&B&&a){const{deleted:t}=(0,A.b4)(a,B);if(t.filter((e=>{const t=H?.find((t=>t.prevScale===e));return!t})).length>0&&!e)return void W(!0);(0,l.vA)((()=>{G((0,D.nt)(B,H)),G((0,D.NJ)(V))}))}x&&I&&O&&G((0,D.yL)({unitTo:I,precision:O})),!y||I||O||G((0,D.yL)(null)),q.size>0&&(0,l.vA)((()=>{q.toList().forEach((e=>{const t=e.set("measurementScale",new u.A({fromValue:Number(V?.scale.fromValue),toValue:Number(V?.scale.toValue),unitFrom:V?.scale.unitFrom,unitTo:V?.scale.unitTo})).set("measurementPrecision",V?.precision);G((0,d.g_)(t))}))})),X()}),[V,j,G,H,a,X,B,y,I,O,x]),Q=r.useMemo((()=>!!I&&(0,A.dD)(I)),[I]);return U?(0,T.jsx)(f.B,{onConfirm:()=>{J(!0)},onCancel:()=>{W(!1)},accessibilityLabel:n(M.scaleAnnotationsDeleteWarning),accessibilityDescription:n(M.scaleAnnotationsDeleteWarning),children:(0,T.jsx)("p",{children:n(M.scaleAnnotationsDeleteWarning)})}):(0,T.jsxs)(g.A,{onEscape:X,background:"var(--PSPDFKit-MeasurementModalComponent-background-color)",className:s()(b().modal,"PSPDFKit-Modal-Measurement-Settings"),children:[(0,T.jsx)("h2",{className:s()(b().title,b().header,b().contentRow),children:n(M.setScale)}),(0,T.jsx)(m.A,{frameWindow:t,setAreValidScales:F,scalesSetter:L,activeScaleSetter:K,editedScalesSetter:$}),(0,T.jsx)("h2",{className:s()(b().contentRow,b().sectionTitle,b().spaceBetweenRow),children:n(M.secondaryUnits)}),(0,T.jsxs)("div",{className:s()(b().contentRow,b().spaceBetweenRow),children:[(0,T.jsx)("p",{children:n(M.displaySecondaryUnit)}),(0,T.jsx)(w.M,{value:x,onUpdate:()=>{x?(N(void 0),R(void 0)):(N(_._.INCHES),R(P.x.WHOLE)),C(!x)},accessibilityLabel:n(M.displaySecondaryUnit)})]}),x?(0,T.jsxs)("div",{className:"PSPDFKit-Secondary-Measurement",children:[(0,T.jsxs)("div",{className:s()(b().contentRow,b().spaceBetweenRow),children:[(0,T.jsx)("p",{children:n(M.unit)}),(0,T.jsx)("div",{className:s()(b().nativeDropdown,S().nativeButton),children:(0,T.jsx)("select",{style:{height:30},"aria-label":n(M.measurementScale),value:A.zc.find((e=>e.value===I))?.value||"",className:"PSPDFKit-Input-Dropdown-Select",onChange:e=>{N(e.target.value)},children:Object.keys(_._).map((e=>(0,T.jsx)("option",{value:_._[e],children:_._[e]},e)))})}),(0,T.jsx)(k.A,{items:A.zc,value:A.zc.find((e=>e.value===I))??null,accessibilityLabel:n(M.measurementScale),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:s()(b().dropdownGroupComponent,E().dropdownGroupComponent,"PSPDFKit-Secondary-Measurement-UnitTo"),menuClassName:E().dropdownGroupMenu,ButtonComponent:Z,ItemComponent:Y,onSelect:(e,t)=>{(0,A.dD)(t.value)&&(0,A.w4)(O)&&!Q&&R(void 0),N(t.value)},frameWindow:t})]}),(0,T.jsxs)("div",{className:s()(b().contentRow,b().spaceBetweenRow),children:[(0,T.jsx)("p",{children:n(M.measurementPrecision)}),(0,T.jsx)(c.A,{frameWindow:t,unit:I,onPrecisionChange:R,selectedPrecision:O,precisionDropdownClassname:"PSPDFKit-Secondary-Measurement-Precision",accessibilityLabel:n(M.measurementPrecision)})]})]}):null,(0,T.jsx)("div",{className:s()(b().footer,b().contentRow,b().spaceBetweenRow),children:(0,T.jsxs)(i.e2,{className:"PSPDFKit-Confirm-Dialog-Buttons",align:"end",children:[(0,T.jsx)(i.$n,{autoFocus:!0,onClick:X,className:s()("PSPDFKit-Confirm-Dialog-Button","PSPDFKit-Confirm-Dialog-Button-Cancel",b().button),children:n(v.A.cancel)}),(0,T.jsx)(i.$n,{onClick:()=>J(),primary:!0,disabled:x&&(!I||!O)||!j,className:s()("PSPDFKit-Confirm-Dialog-Button","PSPDFKit-Confirm-Dialog-Button-Confirm",b().button),children:n(v.A.done)})]})})]})},M=(0,o.YK)({distanceMeasurementSettings:{id:"distanceMeasurementSettings",defaultMessage:"Distance Measurement Settings",description:"Distance Measurement Settings"},perimeterMeasurementSettings:{id:"perimeterMeasurementSettings",defaultMessage:"Perimeter Measurement Settings",description:"Perimeter Measurement Settings"},polygonAreaMeasurementSettings:{id:"polygonAreaMeasurementSettings",defaultMessage:"Polygon Area Measurement Settings",description:"Polygon Area Measurement Settings"},rectangularAreaMeasurementSettings:{id:"rectangularAreaMeasurementSettings",defaultMessage:"Rectangle Area Measurement Settings",description:"Rectangle Area Measurement Settings"},ellipseAreaMeasurementSettings:{id:"ellipseAreaMeasurementSettings",defaultMessage:"Ellipse Area Measurement Settings",description:"Ellipse Area Measurement Settings"},measurementCalibrateLength:{id:"measurementCalibrateLength",defaultMessage:"Calibrate Length",description:"Calibrate"},measurementPrecision:{id:"measurementPrecision",defaultMessage:"Precision",description:"Precision"},measurementScale:{id:"measurementScale",defaultMessage:"Scale",description:"Measurement Scale"},setScale:{id:"setScale",defaultMessage:"Set Scale",description:"Set Scale"},unit:{id:"unit",defaultMessage:"Unit",description:"Unit"},secondaryUnits:{id:"secondaryUnits",defaultMessage:"Secondary Units",description:"Secondary Units"},displaySecondaryUnit:{id:"displaySecondaryUnit",defaultMessage:"Display Secondary Unit",description:"Display Secondary Unit"},scaleAnnotationsDeleteWarning:{id:"scaleAnnotationsDeleteWarning",defaultMessage:"Deleting the scale will also delete measurements using the scale.",description:"Message displayed in the scales deletion dialog"}})},35747:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var r=n(32485),o=n.n(r),i=n(96540),a=n(2815),s=n(57394),l=n(25507),c=n(69309),u=n.n(c),d=n(87515),p=n(43907),h=n.n(p),f=n(11559),m=n.n(f),g=n(13793),v=n(54694),y=n(44523),b=n(74848);const w=e=>{let{unit:t,frameWindow:n,selectedPrecision:r,onPrecisionChange:c,wrapperClass:p,precisionDropdownClassname:f,accessibilityLabel:w,index:x}=e;const{formatMessage:S}=(0,a.tz)(),_=(0,i.useMemo)((()=>!!t&&(0,y.dD)(t)),[t]),C=(0,i.useMemo)((()=>_?y.MF:y.Cu),[_]),E=i.useCallback((0,s.$n)(S,"measurement"),[S]);return(0,b.jsxs)("div",{className:p||void 0,children:[(0,b.jsx)("div",{className:o()(h().nativeDropdown,u().nativeButton),children:(0,b.jsx)("select",{style:{height:30},"aria-label":S(d.D.measurementPrecision),"data-testid":void 0!==x?`PSPDFKit-Scale-${x+1}-Precision`:"PSPDFKit-Scale-Precision",value:y.Cu.find((e=>e.value===r||e.label===r))?.value||"",className:o()("PSPDFKit-Input-Dropdown-Select","PSPDFKit-Measurement-Precision-Dropdown"),onChange:e=>{c(e.target.value)},children:Object.keys(v.x).filter((e=>_?!(0,y.w4)(v.x[e]):e)).map(((e,t)=>(0,b.jsx)("option",{value:v.x[e],children:y.on[t]},e)))})}),(0,b.jsx)(g.A,{items:C,value:C.find((e=>e.value===r||e.label===r))??null,accessibilityLabel:w,discreteDropdown:!1,isActive:!1,caretDirection:"down",className:o()("PSPDFKit-Input-Dropdown-Select",h().dropdownGroupComponent,"PSPDFKit-Measurement-Precision-Dropdown",f),"data-testid":void 0!==x?`PSPDFKit-Scale-${x+1}-Precision`:"PSPDFKit-Scale-Precision",menuClassName:m().dropdownGroupMenu,ButtonComponent:E,ItemComponent:l.cD,onSelect:(e,t)=>{c(t.value)},frameWindow:n})]})}},63865:(e,t,n)=>{"use strict";n.d(t,{A:()=>O,D:()=>N});var r=n(41294),o=n(32485),i=n.n(o),a=n(96540),s=n(2815),l=n(7737),c=n(35747),u=n(54694),d=n(57394),p=n(11559),h=n.n(p),f=n(65615),m=n.n(f),g=n(77868),v=n(25507),y=n(69309),b=n.n(y),w=n(93440),x=n(13793),S=n(35014),_=n(27959),C=n(44523),E=n(43907),k=n.n(E),z=n(74848);const P="duplicate",A="name",D="fromValue",T="toValue",I="precision";function M(e){const t=parseFloat(e);return!isNaN(t)&&isFinite(t)&&t>0}const N=(0,s.YK)({scaleSelector:{id:"scaleSelector",defaultMessage:"Scale {arg0}",description:"Scale checkbox selector for multiple scale selection accessibility"},scaleName:{id:"scaleName",defaultMessage:"Scale Name",description:"Scale Name"},scaleUnitFrom:{id:"scaleUnitFrom",defaultMessage:"Scale unit from",description:"Scale unit from"},scaleUnitTo:{id:"scaleUnitTo",defaultMessage:"Scale unit to",description:"Scale unit to"},addScale:{id:"addScale",defaultMessage:"Add scale",description:"Add scale"},scaleAlreadyAddedWarning:{id:"scaleAlreadyAddedWarning",defaultMessage:"Scale with these settings has already been defined. Please choose a different scale.",description:"Scale with these settings has already been defined. Please choose a different scale."}}),O=function(e){const{frameWindow:t,setAreValidScales:o,scalesSetter:p,activeScaleSetter:f,editedScalesSetter:y}=e,{formatMessage:E}=(0,s.tz)(),O=(0,l.d4)((e=>e.measurementScales)),R=(0,l.d4)((e=>e.activeMeasurementScale)),[j,F]=(0,a.useState)([]),[B,L]=(0,a.useState)(O),[V,K]=(0,a.useState)(R?O?.findIndex((e=>(0,C.tv)(e,R))):0),[H,$]=(0,a.useState)([]),[U,W]=(0,a.useState)([]);a.useEffect((()=>{const e=function(e,t){const n=[];return t.forEach((t=>{const r=e[t],o=[],i=r.scale.fromValue,a=r.scale.toValue,s=r.precision;M(i)||o.push(D),M(a)||o.push(T),s||o.push(I);const l=[];e.forEach(((e,n)=>{n!==t&&(l.push(n),r.name&&r.name===e.name&&!o.includes(A)&&o.push(A),(0,C.tv)(r,e)&&!o.includes(P)&&o.push(P))})),o.length>0&&n.push({index:t,fields:o,conflicts:l})})),n}(B,U);if(e.length>0){const t=e[e.length-1];F([t])}else F([]),W([]),p(B);o(0===e.length)}),[B,p,o]),a.useEffect((()=>{L(O)}),[O]),a.useEffect((()=>{const e=B?.find(((e,t)=>t===V));e&&f(e)}),[V,f,B]),a.useEffect((()=>{y(H)}),[H]);const q=(e,t,n)=>{L((r=>{const o=r?.map((e=>({...e,scale:{...e.scale}})));return"precision"===t?o[e][t]=n:o[e].scale="toValue"===t||"fromValue"===t?{...o[e].scale,[t]:Number(n)}:{...o[e].scale,[t]:n},o})),O?.find((t=>JSON.stringify(t)===JSON.stringify(B?.[e])))&&H&&!H.find((t=>t===e))&&$([...H,{index:e,prevScale:O[e]}]),U.includes(e)||W([...U,e])},G=a.useCallback((0,d.$n)(E,"measurement"),[E]),Z=a.useCallback((0,d.q7)(E),[E]);return(0,z.jsxs)("div",{className:k().scale,children:[B?.map(((e,o)=>{const a=e.name,s=e.scale,l=e.precision,u=s?.unitFrom,d=s?.unitTo,p=s?.fromValue,f=s?.toValue,y=j.find((e=>e.index===o)),M=y?.fields.includes(P),R=y?.fields.includes(A),F=y?.fields.includes(D),Y=y?.fields.includes(T),X=y?.fields.includes(I);return(0,z.jsxs)("div",{style:{marginBottom:"var(--PSPDFKit-spacing-6)"},children:[(0,z.jsxs)("div",{className:i()(k().scaleRow),style:M?{borderBottom:0}:{},"data-testid":`PSPDFKit-Scale-${o+1}`,children:[(0,z.jsx)("input",{type:"radio",checked:Boolean(V===o&&!M),value:o,id:E(N.scaleSelector,{arg0:o+1}),name:E(N.scaleSelector,{arg0:o+1}),onChange:e=>{e.target.checked&&K(o)},className:i()(k().activeScaleRadio,"PSPDFKit-Active-Scale-Radio-Input")},a),(0,z.jsxs)("div",{className:i()(k().scaleContent,k().scaleMiddleSection),children:[(0,z.jsx)("div",{className:i()(k().scaleRow,k().spaceBetweenRow,k().rowSeparator),children:(0,z.jsx)(r.ks,{type:"text",value:a,placeholder:E(N.scaleName),onChange:e=>{((e,t)=>{U.includes(e)||W([...U,e]),L((n=>{const r=n?.map((e=>({...e,scale:{...e.scale}})));return r[e].name=t,r})),O?.find((t=>JSON.stringify(t)===JSON.stringify(B?.[e])))&&H&&!H.find((t=>t===e))&&$([...H,{index:e,prevScale:O[e]}])})(o,e.target.value)},required:!0,style:{height:32,width:"100%",borderColor:R?"#FF0000":void 0},className:i()(m().input),maxLength:40})}),(0,z.jsxs)("div",{className:i()(k().scaleRow,k().rowSeparator),children:[(0,z.jsxs)("div",{className:k().scaleRowContent,children:[(0,z.jsx)(r.ks,{type:"number",value:""+p,onChange:e=>{q(o,"fromValue",e.target.value)},required:!0,style:{height:32,width:54,borderColor:F||M?"#FF0000":void 0},"data-testid":`PSPDFKit-Scale-${o+1}-FromValue`,className:i()(m().input)}),(0,z.jsx)("div",{className:i()(k().nativeDropdown,b().nativeButton),children:(0,z.jsx)("select",{style:{height:30},"aria-label":`${E(N.scaleUnitFrom)} ${o+1}`,className:i()("PSPDFKit-Input-Dropdown-Select"),"data-testid":`PSPDFKit-Scale-${o+1}-UnitFrom`,value:u||"",onChange:e=>{q(o,"unitFrom",e.target.value)},children:Object.keys(S.b).map((e=>(0,z.jsx)("option",{value:S.b[e],children:S.b[e]},e)))})}),(0,z.jsx)(x.A,{items:C.ON,value:C.ON.find((e=>e.value===u))??null,accessibilityLabel:`${E(N.scaleUnitFrom)} ${o+1}`,discreteDropdown:!1,isActive:!1,caretDirection:"down","data-testid":`PSPDFKit-Scale-${o+1}-UnitFrom`,className:i()(k().dropdownGroupComponent,h().dropdownGroupComponent),menuClassName:h().dropdownGroupMenu,ButtonComponent:G,ItemComponent:Z,onSelect:(e,t)=>{q(o,"unitFrom",t.value)},frameWindow:t})]}),"=",(0,z.jsxs)("div",{className:k().scaleRowContent,children:[(0,z.jsx)(r.ks,{type:"number",value:""+f,onChange:e=>{q(o,"toValue",e.target.value)},required:!0,style:{height:32,width:54,borderColor:Y||M?"#FF0000":void 0},"data-testid":`PSPDFKit-Scale-${o+1}-ToValue`,className:i()(m().input)}),(0,z.jsx)("div",{className:i()(k().nativeDropdown,b().nativeButton),children:(0,z.jsx)("select",{style:{height:30},"aria-label":`${E(N.scaleUnitFrom)} ${o+1}`,"data-testid":`PSPDFKit-Scale-${o+1}-UnitTo`,className:i()("PSPDFKit-Input-Dropdown-Select"),value:d||"",onChange:e=>{q(o,"unitTo",e.target.value)},children:Object.keys(_._).map((e=>(0,z.jsx)("option",{value:_._[e],children:_._[e]},e)))})}),(0,z.jsx)(x.A,{items:C.zc,value:C.zc.find((e=>e.value===d))??null,accessibilityLabel:`${E(N.scaleUnitFrom)} ${o+1}`,discreteDropdown:!1,isActive:!1,caretDirection:"down","data-testid":`PSPDFKit-Scale-${o+1}-UnitTo`,className:i()(k().dropdownGroupComponent,h().dropdownGroupComponent),menuClassName:h().dropdownGroupMenu,ButtonComponent:G,ItemComponent:Z,onSelect:(e,t)=>{q(o,"unitTo",t.value)},frameWindow:t})]})]}),(0,z.jsxs)("div",{className:i()(k().scaleRow,k().spaceBetweenRow,k().rowSeparator),children:[(0,z.jsx)("p",{className:h().itemLabel,children:E(v.DZ.measurementPrecision)}),(0,z.jsx)(c.A,{frameWindow:t,unit:d,onPrecisionChange:e=>q(o,"precision",e),selectedPrecision:l,wrapperClass:i()({[k().error]:X}),accessibilityLabel:`${v.DZ.measurementScale} ${E(v.DZ.measurementPrecision)} ${o+1}`,index:o})]})]}),(0,z.jsx)("div",{children:(0,z.jsx)(r.$n,{"data-testid":`PSPDFKit-Scale-${o+1}-RemoveScale`,className:i()(k().closeButton,"PSPDFKit-Measurement-Exit-Dialog-Close-Button"),onClick:()=>{(e=>{if(L((t=>{const n=t?.map((e=>({...e,scale:{...e.scale}})));return n.splice(e,1),n})),H){const t=H.filter((t=>t.index!==e)).map((e=>({...e,index:e.index-1})));$(t)}if(U){const t=U.filter((t=>t!==e)).map((e=>e-1));W(t)}K((e=>e?e-1:0))})(o)},"aria-label":E(w.A.close),disabled:1===B.length,style:{position:"relative",top:"7px"},children:(0,z.jsx)(g.A,{className:k().signatureValidationCloseIcon,src:n(95072)})})})]}),(M||R)&&(0,z.jsx)("p",{className:i()(k().scaleError),children:E(N.scaleAlreadyAddedWarning)})]},o)})),(0,z.jsxs)("div",{className:k().addNewScale,onClick:()=>{L((e=>{const t=e?.map((e=>({...e,scale:{...e.scale}})));return t.push({name:"",scale:{unitFrom:"cm",unitTo:"cm",fromValue:1,toValue:1},precision:u.x.WHOLE}),t})),W([...U,B?.length])},children:[(0,z.jsx)(g.A,{className:k().signatureValidationCloseIcon,src:n(5581),style:{color:"#4636E3"}}),(0,z.jsx)("u",{style:{color:"var(--color-blue600)"},children:E(N.addScale)})]})]})}},76156:(e,t,n)=>{"use strict";n.d(t,{AK:()=>j,Ay:()=>B});var r=n(32485),o=n.n(r),i=n(97819),a=n(53996),s=n.n(a),l=n(96540),c=n(2815),u=n(7737),d=n(95272),p=n.n(d),h=n(44523),f=n(87515),m=n(35224),g=n(30235),v=n(75439),y=n(8593),b=n(57394),w=n(1549),x=n.n(w),S=n(11559),_=n.n(S),C=n(69309),E=n.n(C),k=n(13793),z=n(35467),P=n(77868),A=n(86601),D=n.n(A),T=n(92592),I=n(43907),M=n.n(I),N=n(93440),O=n(74848);function R(e,t){const n=Math.round(e*t);return new(s())(n/t).toFraction(!0)}function j(e){if(!e)return{label:"",value:null};let t,n;const r=function(e){switch(e){case"whole":return"1";case"oneDp":return"0.1";case"twoDp":return"0.001";case"threeDp":case"fourDp":return"0.0001";default:return null}}(e.precision)||e.precision;if(["1","0.1","0.01","0.001","0.0001"].includes(r)){const o=function(e){switch(e){case"1":default:return 0;case"0.1":return 1;case"0.01":return 2;case"0.001":return 3;case"0.0001":return 4}}(r);t=Number(e.scale.fromValue).toFixed(o),n=Number(e.scale.toValue).toFixed(o)}else if(["1/2","1/4","1/8","1/16"].includes(r)){const o=Number(r.split("/")[1]);t=R(e.scale.fromValue,o),n=R(e.scale.toValue,o)}return{label:e.name||`${t} ${e.scale.unitFrom} : ${n} ${e.scale.unitTo}`,value:e}}const F=(0,c.YK)({unit:{id:"unit",defaultMessage:"Unit",description:"Unit"},scalesDropdown:{id:"scalesDropdown",defaultMessage:"Scales dropdown",description:"Scales dropdown"},editAddNewScale:{id:"editAddNewScale",defaultMessage:"Edit or add new scale",description:"Edit or add new scale"},useCalibrationTool:{id:"useCalibrationTool",defaultMessage:"Use calibration tool",description:"Use calibration tool"}}),B=function(e){let{frameWindow:t,selectedAnnotation:r,onAnnotationScaleUpdate:i,selectedAnnotations:a}=e;const s=(0,u.d4)((e=>e.measurementScales)),d=(0,u.d4)((e=>e.activeMeasurementScale)),p=(0,u.wA)(),{formatMessage:w}=(0,c.tz)(),S=l.useMemo((()=>function(e,t){if(t&&e)return e?.find((e=>{const n=e.precision===t.measurementPrecision,r=e.scale.fromValue===t.measurementScale?.fromValue,o=e.scale.toValue===t.measurementScale?.toValue,i=e.scale.unitFrom===t.measurementScale?.unitFrom,a=e.scale.unitTo===t.measurementScale?.unitTo;return n&&r&&o&&i&&a}))}(s,r)||d),[s,r,d]),C=l.useCallback((0,b.$n)(w,"measurement",200),[w]),A=l.useMemo((()=>!!a&&(0,h.hm)(a)),[a]),I=l.useMemo((()=>function(e,t,n){if(!e)return[];const r=e.map((e=>j(e)));return t?[...r,{label:n,value:n}]:r}(s,A,w(N.A.mixed))),[A,w,s]),R=l.useCallback((e=>{if(e.value!==w(N.A.mixed))if(r){const{value:t}=e,{precision:n,scale:r}=t,{fromValue:o,toValue:a,unitFrom:s,unitTo:l}=r;i?.({measurementPrecision:n,measurementScale:new m.A({fromValue:Number(o),toValue:Number(a),unitFrom:s,unitTo:l})})}else p((0,y.NJ)(e.value))}),[p,w,i,r]);if(!s)return null;if(!S)return(0,O.jsxs)("div",{className:D().warningButton,onClick:()=>p((0,z.bT)()),children:[(0,O.jsx)(P.A,{src:n(47059),role:"presentation",className:D().warningButtonIcon}),(0,O.jsx)("span",{className:D().radioButtonWarningLabel,children:w(f.D.setScale)})]});function B(){(0,u.vA)((()=>{p((0,y.Qc)(!0)),p((0,v.iE)("distance")),p((0,z.kJ)(T.A,g.O.DISTANCE))}))}return(0,O.jsxs)("div",{className:E().scaleDropdownContainer,children:[(0,O.jsx)("div",{className:o()(_().nativeDropdown,E().nativeButton),children:(0,O.jsxs)("select",{"aria-label":w(F.scalesDropdown),value:A?w(N.A.mixed):I.find((e=>JSON.stringify(e.value)===JSON.stringify(S)))?.label,className:o()("PSPDFKit-Input-Dropdown-Select","PSPDFKit-Scales-Dropdown"),onChange:e=>{const t=e.target.value;"editAddScale"===t?p((0,z.bT)()):"calibrationTool"===t?B():R(I.find((e=>e.label===t)))},children:[I?.map((e=>(0,O.jsx)("option",{value:e.label,children:e.label},e.label))),(0,O.jsxs)("option",{value:"editAddScale",children:[w(F.editAddNewScale),"..."]},w(F.editAddNewScale)),(0,O.jsxs)("option",{value:"calibrationTool",children:[w(F.useCalibrationTool),"..."]},w(F.useCalibrationTool))]})}),(0,O.jsxs)(k.A,{items:I,value:A?{label:w(N.A.mixed),value:w(N.A.mixed)}:I.find((e=>JSON.stringify(e.value)===JSON.stringify(S))),accessibilityLabel:w(F.scalesDropdown),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:o()(_().dropdownGroupComponent,"PSPDFKit-Measurement-Popover-Precision-Dropdown","PSPDFKit-Scales-Dropdown"),menuClassName:o()(_().dropdownGroupMenu,x().measurementDropdownText),ButtonComponent:C,ItemComponent:L,onSelect:(e,t)=>R(t),frameWindow:t,children:[(0,O.jsxs)("div",{className:M().scalesDropdownItem,onClick:()=>p((0,z.bT)()),children:[w(F.editAddNewScale),"..."]}),(0,O.jsxs)("div",{className:M().scalesDropdownItem,onClick:()=>{B()},children:[w(F.useCalibrationTool),"..."]})]})]})},L=e=>{let{item:t,state:n,itemComponentProps:r,ref:o}=e;return(0,O.jsx)(V,{item:t,state:n,itemComponentProps:r,ref:o})},V=l.forwardRef(((e,t)=>{let{item:n,state:r,itemComponentProps:a,width:s}=e;return(0,O.jsxs)(i.A,{is:"div",className:o()(x().item,M().item,{[x().isSelected]:r?.includes("selected")||r?.includes("focused")}),name:n?.value??n?.label,style:{width:s},ref:t,...a,children:[r?.includes("selected")?(0,O.jsx)(P.A,{src:p(),className:M().icon}):(0,O.jsx)("span",{className:M().icon}),n?.label]})}))},93440:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,e:()=>a});var r=n(2815),o=n(24159);const i=(0,r.YK)({color:{id:"color",defaultMessage:"Color",description:"Color"},fillColor:{id:"fillColor",defaultMessage:"Fill Color",description:"Background color"},newColor:{id:"newColor",defaultMessage:"New Color",description:"New Custom Color"},[o.A.BLACK.toCSSValue()]:{id:"black",defaultMessage:"Black",description:"Black, the color"},[o.A.WHITE.toCSSValue()]:{id:"white",defaultMessage:"White",description:"White, the color"},[o.A.BLUE.toCSSValue()]:{id:"blue",defaultMessage:"Blue",description:"Blue, the color"},[o.A.RED.toCSSValue()]:{id:"red",defaultMessage:"Red",description:"Red, the color"},[o.A.GREEN.toCSSValue()]:{id:"green",defaultMessage:"Green",description:"Green, the color"},[o.A.ORANGE.toCSSValue()]:{id:"orange",defaultMessage:"Orange",description:"Orange, the color"},[o.A.LIGHT_BLUE.toCSSValue()]:{id:"lightBlue",defaultMessage:"Light Blue",description:"Light Blue color"},[o.A.LIGHT_RED.toCSSValue()]:{id:"lightRed",defaultMessage:"Light Red",description:"Light Red color"},[o.A.LIGHT_GREEN.toCSSValue()]:{id:"lightGreen",defaultMessage:"Light Green",description:"Light Green color"},[o.A.LIGHT_YELLOW.toCSSValue()]:{id:"yellow",defaultMessage:"Yellow",description:"Yellow color"},opacity:{id:"opacity",defaultMessage:"Opacity",description:"Opacity"},thickness:{id:"thickness",defaultMessage:"Thickness",description:"Thickness of a line"},"linecaps-dasharray":{id:"linecaps-dasharray",defaultMessage:"Line Style",description:"Select line caps and dash pattern of lines"},linestyle:{id:"dasharray",defaultMessage:"Line style",description:"Select line style"},borderStyle:{id:"borderStyle",defaultMessage:"Border style",description:"Select border style"},borderColor:{id:"borderColor",defaultMessage:"Border color",description:"Select border color"},font:{id:"font",defaultMessage:"Font",description:"Font"},fontSize:{id:"fontSize",defaultMessage:"Font size",description:"Font size selection"},fonts:{id:"fonts",defaultMessage:"Fonts",description:"Fonts"},allFonts:{id:"allFonts",defaultMessage:"All Fonts",description:"Used when presenting a list of fonts"},fontFamilyUnsupported:{id:"fontFamilyUnsupported",defaultMessage:"{arg0} (not supported)",description:"Font family (type) is not supported"},alignment:{id:"alignment",defaultMessage:"Alignment",description:"Alignment (left, center, right, top, middle, bottom)"},alignmentRight:{id:"alignmentRight",defaultMessage:"Right",description:"Right alignment"},alignmentLeft:{id:"alignmentLeft",defaultMessage:"Left",description:"Left alignment"},alignmentCenter:{id:"alignmentCenter",defaultMessage:"center",description:"Center alignment"},verticalAlignment:{id:"verticalAlignment",defaultMessage:"Vertical Alignment",description:"Vertical Alignment (top, center, bottom)"},horizontalAlignment:{id:"horizontalAlignment",defaultMessage:"Horizontal Alignment",description:"Horizontal Alignment (left, center, right)"},size:{id:"size",defaultMessage:"Size",description:"Used to label sizes (eg. font)"},numberInPt:{id:"numberInPt",defaultMessage:"{arg0} pt",description:"A number in pt (points). eg. 10pt"},startLineCap:{id:"startLineCap",defaultMessage:"Line Start",description:'Start line cap marker. eg. "open arrow"'},strokeDashArray:{id:"strokeDashArray",defaultMessage:"Line Style",description:"Line Style"},endLineCap:{id:"endLineCap",defaultMessage:"Line End",description:'End line cap marker. eg. "open arrow"'},edit:{id:"edit",defaultMessage:"Edit",description:"Generic edit label"},save:{id:"save",defaultMessage:"Save",description:"Generic save label"},saveAs:{id:"saveAs",defaultMessage:"Save As...",description:'Generic "save as" label'},export:{id:"export",defaultMessage:"Export",description:'Generic "export" label'},delete:{id:"delete",defaultMessage:"Delete",description:"Generic delete label"},cancel:{id:"cancel",defaultMessage:"Cancel",description:"Cancel"},ok:{id:"ok",defaultMessage:"OK",description:"Ok, usually used to confirm an action"},close:{id:"close",defaultMessage:"Close",description:'Generic, usually to close something. "something" can be inferred from the context in which the message appears'},done:{id:"done",defaultMessage:"Done",description:'Generic "done" message. Usually used in a button.'},annotationsCount:{id:"annotationsCount",defaultMessage:"{arg0, plural,\n      =0 {{arg0} Annotations}\n      one {{arg0} Annotation}\n      two {{arg0} Annotations}\n      other {{arg0} Annotations}\n    }",description:"Amount of annotations."},annotations:{id:"annotations",defaultMessage:"Annotations",description:"PDF Annotations"},bookmark:{id:"bookmark",defaultMessage:"Bookmark",description:"PDF Bookmark"},bookmarks:{id:"bookmarks",defaultMessage:"Bookmarks",description:"PDF Bookmarks"},annotation:{id:"annotation",defaultMessage:"Annotation",description:"Annotation"},selectedAnnotation:{id:"selectedAnnotation",defaultMessage:"selected {arg0}",description:"Selected Annotation"},selectedAnnotationWithText:{id:"selectedAnnotationWithText",defaultMessage:"Selected {arg0} with {arg1} as content",description:"Selected Text or Note Annotation"},noteAnnotation:{id:"noteAnnotation",defaultMessage:"Note",description:"Text Note Annotation"},comment:{id:"comment",defaultMessage:"Comment",description:"Comment"},commentAction:{id:"commentAction",defaultMessage:"Comment",description:"Comment"},comments:{id:"comments",defaultMessage:"Comments",description:"Comments"},textAnnotation:{id:"textAnnotation",defaultMessage:"Text",description:"Free Text Annotation"},calloutAnnotation:{id:"calloutAnnotation",defaultMessage:"Callout",description:"Free Text Annotation (Callout)"},pen:{id:"pen",defaultMessage:"Drawing",description:"Ink Annotation used to do freehand drawing."},eraser:{id:"eraser",defaultMessage:"Ink Eraser",description:"Ink Eraser tool to remove ink annotations points by hand."},inkAnnotation:{id:"inkAnnotation",defaultMessage:"Drawing",description:"Ink Annotation used to do freehand drawing."},highlighterAnnotation:{id:"highlighterAnnotation",defaultMessage:"Freeform Highlight",description:"Ink Annotation used to highlight content."},highlightAnnotation:{id:"highlightAnnotation",defaultMessage:"Text Highlight",description:"Highlight Annotation used to select and mark text."},underlineAnnotation:{id:"underlineAnnotation",defaultMessage:"Underline",description:"Undeline Annotation used to select and mark text."},squiggleAnnotation:{id:"squiggleAnnotation",defaultMessage:"Squiggle",description:"Squiggle Annotation used to select and mark text."},strikeOutAnnotation:{id:"strikeOutAnnotation",defaultMessage:"Strikethrough",description:"StrikeOut Annotation used to select and mark text."},lineAnnotation:{id:"lineAnnotation",defaultMessage:"Line",description:"Shape Annotation used to draw straight lines."},arrowAnnotation:{id:"arrowAnnotation",defaultMessage:"Arrow",description:"Shape Annotation used to draw an arrow."},rectangleAnnotation:{id:"rectangleAnnotation",defaultMessage:"Rectangle",description:"Shape Annotation used to draw rectangles."},ellipseAnnotation:{id:"ellipseAnnotation",defaultMessage:"Ellipse",description:"Shape Annotation used to draw ellipses."},polygonAnnotation:{id:"polygonAnnotation",defaultMessage:"Polygon",description:"Shape Annotation used to draw polygons."},polylineAnnotation:{id:"polylineAnnotation",defaultMessage:"Polyline",description:"Shape Annotation used to draw polylines."},imageAnnotation:{id:"imageAnnotation",defaultMessage:"Image",description:"Image Annotation"},stampAnnotation:{id:"stampAnnotation",defaultMessage:"Stamp",description:"Stamp Annotation"},redactionAnnotation:{id:"redactionAnnotation",defaultMessage:"Redaction",description:"Redaction Annotation"},unknownAnnotation:{id:"unknownAnnotation",defaultMessage:"Unknown",description:"Unknown Annotation"},arrow:{id:"arrow",defaultMessage:"Line with arrow",description:"Shape Annotation used to draw straight lines with an arrow."},highlighter:{id:"highlighter",defaultMessage:"Freeform Highlight",description:"Ink Annotation used to highlight content with freehand drawing."},icon:{id:"icon",defaultMessage:"Icon",description:"Label for when users need to select an icon"},pageXofY:{id:"pageXofY",defaultMessage:"Page {arg0} of {arg1}",description:"Page indicator."},pageX:{id:"pageX",defaultMessage:"Page {arg0}",description:"Page number"},searchDocument:{id:"searchDocument",defaultMessage:"Search Document",description:"Search document (for text)"},sign:{id:"sign",defaultMessage:"Sign",description:"Label for a signature field"},signed:{id:"signed",defaultMessage:"Signed",description:"Label for a signed field"},signatures:{id:"signatures",defaultMessage:"Signatures",description:"Signatures title"},attachments:{id:"attachments",defaultMessage:"Attachments",description:"Attachment sidebar title"},blendMode:{id:"blendMode",defaultMessage:"Blend Mode",description:"Blend Mode"},linesCount:{id:"linesCount",defaultMessage:"{arg0, plural,\n      =0 {{arg0} Lines}\n      one {{arg0} Line}\n      two {{arg0} Lines}\n      other {{arg0} Lines}\n    }",description:"Amount of lines (for example in a ink annotation)."},filePath:{id:"filePath",defaultMessage:"File Path",description:"Location of a file or file name"},useAnExistingStampDesign:{id:"useAnExistingStampDesign",defaultMessage:"Use an existing stamp design",description:"Use an existing stamp design"},customStamp:{id:"customStamp",defaultMessage:"Custom Stamp",description:"Custom Stamp"},stampText:{id:"stampText",defaultMessage:"Stamp Text",description:"Stamp Text"},clear:{id:"clear",defaultMessage:"Clear",description:"Clear"},date:{id:"date",defaultMessage:"Date",description:"Date."},time:{id:"time",defaultMessage:"Time",description:"Time."},sidebar:{id:"sidebar",defaultMessage:"Sidebar",description:"Generic label for a sidebar"},gotoPageX:{id:"gotoPageX",defaultMessage:"Go to Page {arg0}",description:"Go to a page"},name:{id:"name",defaultMessage:"Name",description:"Name field usually."},chooseColor:{id:"chooseColor",defaultMessage:"Choose Color",description:"Choose color from the UI."},textHighlighter:{id:"textHighlighter",defaultMessage:"Text highlighter",description:"Highlighter tool used to highlight selected text."},undo:{id:"undo",defaultMessage:"Undo",description:"Undo last action."},redo:{id:"redo",defaultMessage:"Redo",description:"Redo last undone action."},showMore:{id:"showMore",defaultMessage:"Show More",description:"Show more"},showLess:{id:"showLess",defaultMessage:"Show Less",description:"Show Less"},nMoreComments:{id:"nMoreComments",defaultMessage:"{arg0, plural,\none {{arg0} more comment}\nother {{arg0} more comments}\n}",description:"n more comments"},documentEditor:{id:"documentEditor",defaultMessage:"Document Editor",description:"Document Editor toolbar label"},areaRedaction:{id:"areaRedaction",defaultMessage:"Area Redaction",description:"Area Redaction toolbar item label"},textRedaction:{id:"textRedaction",defaultMessage:"Text Redaction",description:"Text Redaction toolbar item label"},outlineColor:{id:"outlineColor",defaultMessage:"Outline Color",description:"Outline color"},overlayText:{id:"overlayText",defaultMessage:"Overlay text",description:"Overlay text"},insertOverlayText:{id:"overlayTextPlaceholder",defaultMessage:"Insert overlay text",description:"Overlay Text property placeholder"},repeatText:{id:"repeatText",defaultMessage:"Repeat text",description:"Repeat text placeholder"},preview:{id:"preview",defaultMessage:"Preview",description:"Preview"},markupToolbar:{id:"markupAnnotationToolbar",defaultMessage:"Markup annotation toolbar",description:"Label for the markup annotation toolbar popover"},documentViewport:{id:"documentViewport",defaultMessage:"document viewport",description:"Label for document viewport region"},top:{id:"top",defaultMessage:"Top",description:"Top"},bottom:{id:"bottom",defaultMessage:"Bottom",description:"Bottom"},resize:{id:"resize",defaultMessage:"Resize",description:"Resize action when an annotation is selected."},resizeHandleTop:{id:"resizeHandleTop",defaultMessage:"top",description:"One of the top resize handlers."},resizeHandleBottom:{id:"resizeHandleBottom",defaultMessage:"bottom",description:"One of the bottom resize handlers."},resizeHandleLeft:{id:"resizeHandleLeft",defaultMessage:"left",description:"One of the left resize handlers."},resizeHandleRight:{id:"resizeHandleRight",defaultMessage:"right",description:"One of the right resize handlers."},cropAll:{id:"cropAll",defaultMessage:"Crop All",description:"Crop all pages."},cropAllPages:{id:"cropAllPages",defaultMessage:"Crop All Pages",description:"Crop all pages."},cropCurrent:{id:"cropCurrent",defaultMessage:"Crop Current",description:"Crop current page."},cropCurrentPage:{id:"cropCurrentPage",defaultMessage:"Crop Current Page",description:"Crop current page."},documentCrop:{id:"documentCrop",defaultMessage:"Document Crop",description:"Crop document pages."},documentComparison:{id:"documentComparison",defaultMessage:"Document Comparison",description:"Compare two documents."},rotateCounterclockwise:{id:"rotateCounterclockwise",defaultMessage:"Rotate counterclockwise",description:"Label for the rotate counterclockwise button"},rotateClockwise:{id:"rotateClockwise",defaultMessage:"Rotate clockwise",description:"Label for the rotate clockwise button"},rotation:{id:"rotation",defaultMessage:"Rotate",description:"Label for the rotate button"},applyRedactions:{id:"applyRedactions",defaultMessage:"Apply Redactions",description:"Applies redactions to document"},cloudyRectangleAnnotation:{id:"cloudyRectangleAnnotation",defaultMessage:"Cloudy Rectangle",description:"Cloudy Rectangle"},dashedRectangleAnnotation:{id:"dashedRectangleAnnotation",defaultMessage:"Dashed Rectangle",description:"Dashed Rectangle"},cloudyEllipseAnnotation:{id:"cloudyEllipseAnnotation",defaultMessage:"Cloudy Ellipse",description:"Cloudy Ellipse"},dashedEllipseAnnotation:{id:"dashedEllipseAnnotation",defaultMessage:"Dashed Ellipse",description:"Dashed Ellipse"},cloudyPolygonAnnotation:{id:"cloudyPolygonAnnotation",defaultMessage:"Cloudy Polygon",description:"Cloudy Polygon"},dashedPolygonAnnotation:{id:"dashedPolygonAnnotation",defaultMessage:"Dashed Polygon",description:"Dashed Polygon"},cloudAnnotation:{id:"cloudAnnotation",defaultMessage:"Cloud",description:"Cloud Annotation"},addSignature:{id:"addSignature",defaultMessage:"Add Signature",description:"Add Signature"},storeSignature:{id:"storeSignature",defaultMessage:"Store Signature",description:"Store the signature that is in creation"},clearSignature:{id:"clearSignature",defaultMessage:"Clear Signature",description:"Clear the signature canvas"},button:{id:"button",defaultMessage:"Button Field",description:"Button Field"},textField:{id:"textField",defaultMessage:"Text Field",description:"Text Field"},radioField:{id:"radioField",defaultMessage:"Radio Field",description:"Radio Field"},checkboxField:{id:"checkboxField",defaultMessage:"Checkbox Field",description:"Checkbox Field"},comboBoxField:{id:"comboBoxField",defaultMessage:"Combo Box Field",description:"Combo Box Field"},listBoxField:{id:"listBoxField",defaultMessage:"List Box Field",description:"List Box Field"},signatureField:{id:"signatureField",defaultMessage:"Signature Field",description:"Signature Field"},dateField:{id:"dateField",defaultMessage:"Date Field",description:"Date Field"},formCreator:{id:"formCreator",defaultMessage:"Form Creator",description:"Create, edit or Delete widget annotations."},mediaAnnotation:{id:"mediaAnnotation",defaultMessage:"Media Annotation",description:"Media Annotation"},mediaFormatNotSupported:{id:"mediaFormatNotSupported",defaultMessage:"This browser does not support embedded medias.",description:"The browser does not support embedded medias"},contentEditor:{id:"contentEditor",defaultMessage:"Content Editor",description:"Content Editor"},saveAndClose:{id:"saveAndClose",defaultMessage:"Save & Close",description:"Save changes"},none:{id:"none",defaultMessage:"None",description:"Normal line"},linkAnnotation:{id:"linkAnnotation",defaultMessage:"Link",description:"Link Annotation"},measurement:{id:"measurement",defaultMessage:"Measurement",description:"Measurement"},Snapping:{id:"Snapping",defaultMessage:"Snapping",description:"Snapping"},distanceMeasurement:{id:"distanceMeasurement",defaultMessage:"Distance",description:"Measurement Annotation used to measure distance between 2 points"},multiAnnotationsSelection:{id:"multiAnnotationsSelection",defaultMessage:"Select Multiple Annotations",description:"Multiple annotations selection tool used to enable selection of multiple annotations."},rectangularAreaMeasurement:{id:"rectangularAreaMeasurement",defaultMessage:"Rectangle Area",description:"Measurement Annotation used to measure rectangle areas."},ellipseAreaMeasurement:{id:"ellipseAreaMeasurement",defaultMessage:"Ellipse Area",description:"Measurement Annotation used to measure elliptical areas."},polygonAreaMeasurement:{id:"polygonAreaMeasurement",defaultMessage:"Polygon Area",description:"Measurement Annotation used to measure polygon areas."},perimeterMeasurement:{id:"perimeterMeasurement",defaultMessage:"Perimeter",description:"Measure Annotation used to measure perimeter."},bold:{id:"bold",defaultMessage:"Bold",description:"Bold text"},italic:{id:"italic",defaultMessage:"Italic",description:"Italic text"},underline:{id:"underline",defaultMessage:"Underline",description:"Underline"},discard:{id:"discardChanges",defaultMessage:"Discard Changes",description:"Discard"},anonymous:{id:"anonymous",defaultMessage:"Anonymous",description:"Anonymous"},loading:{id:"loading",defaultMessage:"Loading...",description:"Shown while the document is being fetched"},group:{id:"group",defaultMessage:"Group",description:"Group annotations."},ungroup:{id:"ungroup",defaultMessage:"Ungroup",description:"Ungroup annotations."},mixedMeasurements:{id:"mixedMeasurements",defaultMessage:"Mixed Measurements",description:"Mixed Measurements"},mixed:{id:"mixed",defaultMessage:"Mixed",description:"Mixed"},back:{id:"back",defaultMessage:"Back",description:"back"},readOnlyAnnotationFlag:{id:"readOnly",defaultMessage:"Read-only",description:"this annotation is read only"},lockedContents:{id:"lockedContents",defaultMessage:"Locked Contents",description:"this annotation has its contents locked"},locked:{id:"locked",defaultMessage:"Locked",description:"this annotation is locked"},selectImage:{id:"selectImage",defaultMessage:"Select image",description:"Selects an image from the local file system"},layers:{id:"layers",defaultMessage:"Layers",description:"OCG layers sidebar header title"},noLayers:{id:"noLayers",defaultMessage:"No Layers",description:"Message shown when there are no OCG layers in the document"},custom:{id:"custom",defaultMessage:"Custom",description:"Custom"},documentAI:{id:"documentAI",defaultMessage:"Document AI",description:"Document AI"},iconRightPointer:{id:"iconRightPointer",defaultMessage:"Right Pointer",description:"Icon Right Pointer"},iconRightArrow:{id:"iconRightArrow",defaultMessage:"Right Arrow",description:"Icon Right Arrow"},iconCheck:{id:"iconCheck",defaultMessage:"Checkmark",description:"Icon Checkmark"},iconCircle:{id:"iconCircle",defaultMessage:"Circle",description:"Icon Circle"},iconCross:{id:"iconCross",defaultMessage:"Cross",description:"Icon Cross"},iconInsert:{id:"iconInsert",defaultMessage:"Insert Text",description:"Icon Insert Text"},iconNewParagraph:{id:"iconNewParagraph",defaultMessage:"New Paragraph",description:"Icon New Paragraph"},iconNote:{id:"iconNote",defaultMessage:"Text Note",description:"Icon Text Note"},iconComment:{id:"iconComment",defaultMessage:"Comment",description:"Icon Comment"},iconParagraph:{id:"iconParagraph",defaultMessage:"Paragraph",description:"Icon Paragraph"},iconHelp:{id:"iconHelp",defaultMessage:"Help",description:"Icon Help"},iconStar:{id:"iconStar",defaultMessage:"Star",description:"Icon Star"},iconKey:{id:"iconKey",defaultMessage:"Key",description:"Icon Key"},square:{id:"square",defaultMessage:"Square",description:"Square line cap"},circle:{id:"circle",defaultMessage:"Circle",description:"Circle line cap"},diamond:{id:"diamond",defaultMessage:"Diamond",description:"Diamond line cap"},openArrow:{id:"openArrow",defaultMessage:"Open Arrow",description:"Open arrow line cap"},closedArrow:{id:"closedArrow",defaultMessage:"Closed Arrow",description:"Closed arrow line cap"},butt:{id:"butt",defaultMessage:"Butt",description:"Butt line cap"},reverseOpenArrow:{id:"reverseOpenArrow",defaultMessage:"Reverse Open Arrow",description:"Reverse open arrow line cap"},reverseClosedArrow:{id:"reverseClosedArrow",defaultMessage:"Reverse Closed Arrow",description:"Reverse closed arrow line cap"},slash:{id:"slash",defaultMessage:"Slash",description:"Slash line cap"},solid:{id:"solid",defaultMessage:"Solid",description:"Solid line"},narrowDots:{id:"narrowDots",defaultMessage:"Narrow Dots",description:"Narrow dotted line"},wideDots:{id:"wideDots",defaultMessage:"Wide Dots",description:"Wide dotted line"},narrowDashes:{id:"narrowDashes",defaultMessage:"Narrow Dashes",description:"Narrow dashed line"},wideDashes:{id:"wideDashes",defaultMessage:"Wide Dashes",description:"Wide dashed line"},cloudy:{id:"cloudy",defaultMessage:"Cloudy border",description:"Cloudy border effect"},addTextBox:{id:"addTextBox",defaultMessage:"Add Text Box",description:"Label for the add text box button"}}),a=(0,r.YK)({numberValidationBadFormat:{id:"numberValidationBadFormat",defaultMessage:"The value entered does not match the format of the field [{arg0}]",description:"The number form field value format is wrong."},dateValidationBadFormat:{id:"dateValidationBadFormat",defaultMessage:"Invalid date/time: please ensure that the date/time exists. Field [{arg0}] should match format {arg1}",description:"The date form field value format is wrong."}})},66200:(e,t,n)=>{"use strict";n.d(t,{A:()=>f,B:()=>h});var r=n(41294),o=n(2815),i=(n(96540),n(32485)),a=n.n(i),s=n(93440),l=n(47608),c=n(40807),u=n(53455),d=n.n(u),p=n(74848);function h(e){let{backdropFixed:t=!0,onCancel:n,onConfirm:i,accessibilityLabel:u,accessibilityDescription:h,restoreOnClose:f,children:m}=e;const{formatMessage:g}=(0,o.tz)(),v=(0,c.Po)();return(0,p.jsxs)(l.A,{role:"alertdialog",onEscape:n,background:"rgba(0,0,0,.1)",className:"PSPDFKit-Confirm-Dialog",accessibilityLabel:u||"Confirm Dialog",accessibilityDescription:h,restoreOnClose:f,backdropFixed:t,visibleDimensions:v,children:[(0,p.jsx)(l.A.Section,{style:{paddingBottom:0},children:(0,p.jsx)("div",{className:`${d().content} PSPDFKit-Confirm-Dialog-Content`,children:m})}),(0,p.jsx)(l.A.Section,{children:(0,p.jsxs)(r.e2,{className:"PSPDFKit-Confirm-Dialog-Buttons",align:"end",children:[(0,p.jsx)(r.$n,{autoFocus:!0,onClick:n,className:a()("PSPDFKit-Confirm-Dialog-Button","PSPDFKit-Confirm-Dialog-Button-Cancel",d().button),children:g(s.A.cancel)}),(0,p.jsx)(r.$n,{onClick:i,primary:!0,className:a()("PSPDFKit-Confirm-Dialog-Button","PSPDFKit-Confirm-Dialog-Button-Confirm",d().button),children:g(s.A.delete)})]})})]})}const f=h},76426:(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var r=n(96540),o=n(66421),i=n(86885),a=n(76117),s=n(74848);function l(e){const{backend:t,onInitialRenderFinished:n,pageIndex:o,pageSize:l,pageKey:c,renderPageCallback:u,zoomLevel:d,scaleFactor:p}=e,h=r.useRef(!1),f=r.useCallback((function(){h.current||(h.current=!0,n&&n())}),[n]),m=r.useMemo((function(){return new a.rw({width:Math.ceil(l.width*p),height:Math.ceil(l.height*p)})}),[l,p]),g=e.inContentEditorMode||!1;return(0,s.jsx)("div",{style:{transform:`scale(${d/p})`,transformOrigin:"0 0"},className:"PSPDFKit-PageOverview-Tile",children:(0,s.jsx)(i.A,{backend:t,pageIndex:o,scaledPageSize:m,originalPageSize:l,onRenderFinished:f,rect:m,renderPageCallback:u,pageKey:c,hasInitialRenderFinished:h.current,inContentEditorMode:g})},c)}var c=n(90378),u=n(63939),d=n(50960),p=n(37361);function h(e){let{backend:t,viewportState:n,page:o,tileSize:a,tileOverlapping:l,scale:c,renderPageCallback:d,tilesRenderedCallback:h,contentState:m,crispTiles:g,inContentEditorMode:v,tilesClassName:y}=e;const{pageIndex:b,pageSize:w,pageKey:x}=o,[S,_]=function(e,t,n,o,i,a,s){const[l,c]=r.useState({}),d=r.useRef([]),h=r.useMemo((function(){return function(e,t,n,r,o,i,a){const{viewportRect:s}=e,l=(0,u.NJ)(e,o),c=s.apply(l).scale(a).round(),d=t.scale(a).ceil(),h={};f(h,c,d,n,r,i,a);const m=s.grow(Math.min(p.Yy,n)).apply(l).scale(a).round();return f(h,m,d,n,r,i,a)}(e,t,n,o,i,a,s)}),[i,a,t,s,o,n,e]);r.useLayoutEffect((function(){c((e=>function(e,t,n){const r={};for(const n of t)r[n]=e[n];for(const e in n)r[e]=n[e];return r}(e,d.current,h)))}),[h]);const m=r.useMemo((function(){return function(e){const t=[];for(const n in e){const r=e[n],{scale:o}=r;let i=t.find((function(e){return e[0]===o}));if(void 0===i){let e;for(i=[o,[]],e=0;e<t.length&&t[e][0]<o;e++);t.splice(e,0,i)}i[1].push(r)}return t}(l)}),[l]);return[m,function(e){if(!l.hasOwnProperty(e))return void 0;const t=Object.keys(l).length;d.current.length+1>=t?(d.current=Object.keys(h),c(h)):d.current.push(e)}]}(n,w,a,l,b,x,c);return(0,s.jsx)(r.Fragment,{children:S.map((e=>{let[r,a]=e;const l=w,c=l.scale(r).ceil();return(0,s.jsx)("div",{children:a.map((e=>(0,s.jsx)(i.A,{rect:e.rect,pageIndex:b,originalPageSize:l,scaledPageSize:c,backend:t,renderPageCallback:d,onRenderFinished:()=>{_(e.key),h()},pageKey:o.pageKey,crisp:g,inContentEditorMode:v,...m,tileScale:n.zoomLevel/r,tilesClassName:y},e.key)))},r)}))})}function f(e,t,n,r,o,i,a){for(let s=0;s<=n.height;s+=r){let l=r;if(s+l>n.height&&(l=Math.floor(n.height-s)),s+l<=t.top||s>=t.bottom||l<=0)s-=o;else{for(let c=0;c<=n.width;c+=r){let u=r;if(c+r>n.width&&(u=Math.floor(n.width-c)),c+u<=t.left||c>=t.right||u<=0){c-=o;continue}const p=`${i}-sw${n.width}-sh${n.height}-x${c}-y${s}-w${u}-h${l}`;e[p]={key:p,scale:a,rect:new d.rw({width:u,height:l,left:c,top:s})},c-=o}s-=o}}return e}const m=r.memo(h,(function(e,t){return e.page.pageKey===t.page.pageKey&&!(0,u.U0)(e.viewportState,t.viewportState)&&e.inContentEditorMode===t.inContentEditorMode}));const g=(0,c.F)((function(e){return{viewportState:e.viewportState,backend:e.backend,tileSize:"SERVER"===e.backend?.type?p.tE:p.vD,tileOverlapping:p.hY,renderPageCallback:e.renderPageCallback}}))(m);var v=n(79900),y=n(9627);var b=n(40807),w=n(31428),x=n.n(w);const S=function(e){const{inViewport:t,shouldPrerender:n,rotation:i,backend:a,zoomLevel:c,renderPageCallback:u,page:d,onInitialOverviewRenderFinished:p,allowedTileScales:h,forceDetailView:f,renderPagePreview:m,crispTiles:w=!1,inContentEditorMode:S,contentState:_}=e,[C,E]=r.useState(!m),k=r.useCallback((function(){E(!0),p&&p()}),[p]),z=(t||C||n)&&m&&d.isPageSizeReal,P=function(e,t,n){let r=(0,v.I)();const o=window.navigator,i=o?.connection?.saveData;"STANDALONE"===t.type&&y.LZ&&r>2&&(r=2),"SERVER"===t.type&&i&&(r=1);const a=e*r;return"all"===n?a:n.reduce(((e,t)=>e<a?t:e))}(c,a,h),A=r.useMemo((()=>d.pageSize.floor()),[d.pageSize]),D=r.useMemo((function(){const t=Math.min((0,v.I)(),2);return Math.min(e.viewportRect.width*t/A.width,1)}),[A.width,e.viewportRect.width]),[T,I]=r.useState(!1),M=(0,b.Kw)((()=>{T||m||I(!0)})),N=t&&d.isPageSizeReal&&(!m||P>1||f||c>D)?(0,s.jsx)("div",{style:{opacity:C?1:0},className:"PSPDFKit-PageTilesContainer",children:(0,s.jsx)(g,{contentState:_,page:d,scale:P,crispTiles:w,tilesRenderedCallback:M,inContentEditorMode:S,tilesClassName:"PSPDFKit-PageTile"},d.pageKey)}):null;return(0,s.jsxs)("div",{children:[(!C||!d.isPageSizeReal||!T&&!m)&&(0,s.jsx)("div",{className:`${x().layer} ${x().deadCenter}`,children:(0,s.jsx)(o.A,{scale:1.5,rotate:-i})}),z&&(0,s.jsx)(l,{backend:a,pageIndex:d.pageIndex,pageSize:A,pageKey:d.pageKey,onInitialRenderFinished:k,zoomLevel:c,scaleFactor:D,renderPageCallback:u,inContentEditorMode:S}),N]})}},86885:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(67136),o=n(96540),i=n(49568),a=n(32485),s=n.n(a),l=n(92078),c=n(77270),u=n(89574),d=n(9627),p=n(2861),h=n.n(p),f=n(74848);class m extends o.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"imageFetcherRef",o.createRef()),(0,r.A)(this,"_fetchImage",(()=>{const{backend:e,originalPageSize:t,scaledPageSize:n,pageIndex:r,rect:o,attachments:a,renderPageCallback:s,digitalSignatures:l}=this.props,d=(this.props.annotations||(0,i.B8)()).filter(u.WT),p=this.props.formFields||(0,i.B8)(),h=this.props.formFieldValues||(0,i.B8)(),f=l&&l.signatures||[],m=this.props.inContentEditorMode||!1;let g;if((d.size>0||h.size>0)&&(g={annotations:d,formFieldValues:h,formFields:p,attachments:a||(0,i.T5)(),signatures:f}),!n.width||!n.height)return{promise:Promise.resolve(null),cancel:()=>{}};const{cancel:v,promise:y}=e.corePDFBridge.renderTile(r,n,o,!1,!m,g);return(0,c.GJ)(y.then((e=>{let{element:i}=e;if("function"==typeof s){let a;if("IMG"===i.nodeName){const e=i,t=document.createElement("canvas");t.width=o.width,t.height=o.height,a=t.getContext("2d"),a?.drawImage(e,0,0),i=t}a||(a=i.getContext("2d")),a?.translate(-o.left,-o.top),a?.scale(n.width/t.width,n.height/t.height),s(a,r,t);const l=document.createElement("img");l.src=i.toDataURL(),e.element=l}return e})),v)}))}componentDidUpdate(e){const{annotations:t,formFieldValues:n}=this.props,{annotations:r,formFieldValues:o}=e;(null!=this.props.hasInitialRenderFinished&&!this.props.hasInitialRenderFinished||!this.props.scaledPageSize.equals(e.scaledPageSize)||!this.props.rect.equals(e.rect)||t&&t!==r&&!t.equals(r)||n&&n!==o&&!n.equals(o)||this.props.pageKey!==e.pageKey||this.props.inContentEditorMode!==e.inContentEditorMode)&&this.imageFetcherRef.current&&this.imageFetcherRef.current.refresh()}render(){const{onRenderFinished:e,rect:t,tileScale:n=1,crisp:r=!1,tilesClassName:o}=this.props,{width:i,height:a,left:c,top:u}=t,p={width:i*n,height:a*n,left:c*n,top:u*n,outline:null},m=s()({[h().tile]:!0,[h().tileChrome]:d.H8,[h().tileFirefox]:d.gm,[h().tileSafari]:d.nr,[h().crispTile]:r,...o?{[o]:!0}:null});return(0,f.jsx)(l.A,{fetchImage:this._fetchImage,className:m,rectStyle:p,onRenderFinished:e,visible:!1,ref:this.imageFetcherRef,renderAsBackgroundImage:this.props.renderAsBackgroundImage})}}},67992:(e,t,n)=>{"use strict";n.d(t,{A:()=>c,O:()=>u});n(96540);var r=n(32485),o=n.n(r),i=n(14150),a=n(41143),s=n.n(a),l=n(74848);function c(e){let{referenceRect:t,viewportState:n,isHidden:r,children:a,title:c,className:u,wrapperClassName:d,innerWrapperClassName:p,footerClassName:h,footer:f,centeredTitle:m}=e;return(0,l.jsx)(i.A,{referenceRect:t,viewportState:n,className:o()(s().popover,u,{[s().popoverHidden]:r}),children:(0,l.jsxs)("div",{className:o()(s().container,d),children:[(0,l.jsxs)("div",{className:o()(s().innerContainer,p),children:[(0,l.jsx)("h2",{className:o()(s().title,{[s().centeredTitle]:m}),children:c}),a&&(0,l.jsx)("div",{className:s().content,children:a}),f&&(0,l.jsx)("div",{className:o()(s().footer,h),children:f})]})," "]})})}function u(e){let{children:t,className:n,onClick:r}=e;return(0,l.jsx)("button",{className:o()(s().footerButton,n),onClick:r,children:t})}},14150:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(96540),o=n(32485),i=n.n(o),a=n(88290),s=n(81457),l=n(50960),c=n(97028),u=n(81162),d=n.n(u),p=n(74848);function h(e,t,n){let{top:r,right:o,bottom:i,left:a}=n,s=null,l=null;return e.isRectInside(t.setLocation(r))?(l=r,s="top"):e.isRectInside(t.setLocation(i))?(l=i,s="bottom"):e.isRectInside(t.setLocation(a))?(l=a,s="left"):e.isRectInside(t.setLocation(o))&&(l=o,s="right"),{direction:s,position:l}}function f(e){let{children:t,referenceRect:n,viewportRect:o,scroll:i=new l.bR,onPositionInfoChange:a,onPositionConflict:c,nodeRef:u}=e;const[d,f]=r.useState({position:null,direction:null}),[m,g]=r.useState(null);r.useLayoutEffect((()=>{if(!m)return;const e=o.translate(i);if(!e.isRectInside(n)&&!e.isRectOverlapping(n))return;const t=function(e){let{viewportRect:t,referenceRect:n,contentRect:r,scroll:o,onPositionConflict:i}=e,a=n.left+n.width/2-r.width/2;const s=new l.bR({x:a,y:n.top-r.height}),c=new l.bR({x:a,y:n.bottom});let u=n.top+n.height/2-r.height/2;const d=new l.bR({x:n.left-r.width,y:u}),p=new l.bR({x:n.right,y:u});let{position:f,direction:m}=h(t,r,{top:s,right:p,bottom:c,left:d});f||(a<t.left?a=t.left:a+r.width>t.width+t.left&&(a=t.width+t.left-r.width),u<t.top?u=t.top:u+r.height>t.height+t.top&&(u=t.height+t.top-r.height),({position:f,direction:m}=h(t,r,{top:s.set("x",a),right:p.set("y",u),bottom:c.set("x",a),left:d.set("y",u)}))),f||("function"==typeof i?({position:f,direction:m}=i({referenceRect:n,viewportRect:t,contentRect:r,scroll:o,attempts:{top:s,right:p,bottom:c,left:d}})):t.isRectOverlapping(n)&&(f=new l.bR({x:t.left+t.width/2-r.width/2,y:t.top+t.height/2-r.height/2}),m="center"));return{direction:m,position:f}}({viewportRect:e,referenceRect:n,contentRect:m,scroll:i,onPositionConflict:c});t.position&&f(t)}),[o,n,m,c,i]),r.useEffect((()=>{a&&a(d)}),[d,a]);const{direction:v}=d,y=d.position&&d.position.translate(o.getLocation().scale(-1)),b={position:"absolute",...y?{top:y.y,left:y.x}:{top:-1e5,left:-1e5},visibility:y?void 0:"hidden"},w=e=>{(e.height||e.width||e.top||e.left)&&g(e)};return"function"==typeof t?t({style:b,direction:v,onResize:w}):(0,p.jsxs)("div",{style:b,ref:u,children:[(0,p.jsx)(s.A,{onResize:w}),t]})}const m=function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()};function g(e){let{children:t,referenceRect:n,color:r,baseColor:o,className:u,arrowClassName:h,viewportState:g,onPositionInfoChange:v,arrowSize:y=5,customZIndex:b,nodeRef:w}=e;const{viewportRect:x,zoomLevel:S,scrollPosition:_}=g;return(0,p.jsx)(f,{referenceRect:n.grow(y),viewportRect:x,scroll:_.scale(S),onPositionInfoChange:v,nodeRef:w,children:e=>{let{style:f,direction:g,onResize:v}=e;const w=g&&(0,c.ZH)(g),S=g&&"center"!==g?function(e){let t,n,{referenceRect:r,viewportRect:o,size:i,direction:a}=e;switch("top"===a||"bottom"===a?n=r.left+r.width/2-i:t=r.top+r.height/2-i,a){case"top":t=r.top-i;break;case"bottom":t=r.top+r.height;break;case"left":n=r.left-i;break;case"right":n=r.left+r.width;break;default:throw new Error("invalid direction")}return new l.bR({y:t,x:n}).translate(o.getLocation().scale(-1))}({referenceRect:n,viewportRect:x,size:y,direction:g}):null,_={};let C;if(r){switch(g){case"top":_.color=r[r.length-1].toCSSValue();break;case"bottom":_.color=r[0].toCSSValue();break;default:_.color=r[Math.floor((r.length-1)/2)].toCSSValue()}const e=r.map(((e,t)=>`${e.toCSSValue()} ${100*t/(r.length-1)}%`)).join(", ");o&&(f={...f,backgroundColor:o.toCSSValue()},C={color:o.toCSSValue()}),f={...f,backgroundImage:`linear-gradient(to bottom, ${e})`,zIndex:b}}return(0,p.jsx)(a.A,{onPointerUp:m,children:(0,p.jsxs)("div",{className:u,children:[S&&(0,p.jsx)("span",{style:{...C,zIndex:b},children:(0,p.jsx)("div",{style:{position:"absolute",top:S.y,left:S.x,width:y,height:y,zIndex:b,..._},className:i()(d().arrow,h,w&&d()[`arrow${w}`],"PSPDFKit-Popover-Arrow",w&&"PSPDFKit-Popover-Arrow-"+w)})}),(0,p.jsxs)("div",{style:f,className:i()(d().root,"PSPDFKit-Popover",w&&"PSPDFKit-Popover-"+w),children:[t,(0,p.jsx)(s.A,{onResize:v})]})]})})}})}},45755:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});var r=n(85409),o=n(77788);const i=e=>t=>e(function(e){const t=e.nativeEvent||e;let n=!1,i=0,a=0;const s=t.shiftKey;let l=t.pointerType||"mouse";const c=(void 0!==e.touches||void 0!==e.changedTouches)&&void 0===e.width;c?(l="touch",n=1==t.touches.length||"touchend"===e.type,n&&t.changedTouches.length&&(i=t.changedTouches[0].clientX,a=t.changedTouches[0].clientY)):(n=e.isPrimary||(0,o.e)(e),i=e.clientX,a=e.clientY);let u={clientX:i,clientY:a,isPrimary:n,pointerType:l,shiftKey:s,metaKey:t.metaKey,ctrlKey:t.ctrlKey,getCoalescedEvents:"function"==typeof t.getCoalescedEvents?()=>{const e=t.getCoalescedEvents.call(t);return e.length?e:[u]}:()=>[u],stopPropagation:()=>{e.stopPropagation(),t.stopImmediatePropagation()},preventDefault:()=>{e.preventDefault()},get target(){const n=t.composedPath?.()[0];if(!n&&!e.target)throw new r.uE(`No valid target found for event ${t}.`);return n??e.target},nativeEvent:t,get buttons(){return c?(0,r.R8)("TouchEvent do not have the method buttons"):e.buttons}};return u}(t))},88290:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(67136),o=n(96540),i=n(85409),a=n(45755),s=n(15168),l=n(9627),c=n(74848);const u=s.fS?{passive:!1}:void 0,d=!s.fS||{passive:!1,capture:!0},p=1e3;let h=0,f=0;function m(e){return e?function(){if(h=Date.now(),!(Date.now()-f<p))return e(...arguments)}:e}function g(e){return e?function(){const t=Date.now();if(!(t-f<p||t-h<p))return e(...arguments)}:e}function v(e){return e?function(){return f=Date.now(),e(...arguments)}:e}function y(){}class b extends o.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"_attachedListeners",{touchstart:[null,null],touchmove:[null,null],touchend:[null,null],touchcancel:[null,null],mousedown:[null,null],mousemove:[null,null],mouseup:[null,null],mouseenter:[null,null],mouseleave:[null,null],pointerdown:[null,null],pointermove:[null,null],pointerup:[null,null],pointerenter:[null,null],pointerleave:[null,null],pointercancel:[null,null]}),(0,r.A)(this,"_handleRef",(e=>{this.props.onDOMElement&&this.props.onDOMElement(e),e&&((0,i.V1)("string"==typeof e.nodeName,"PRC requires a basic HTML element as children (so that we can find the proper `ownerDocument`)."),this._refDocument=e.ownerDocument)}))}componentDidMount(){this._updateRootListeners(this.props)}componentDidUpdate(){this._updateRootListeners(this.props)}componentWillUnmount(){this._removeAllRootListeners()}_updateListener(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=this._refDocument;let o=null,i=null;const s=this._attachedListeners[e][n?1:0];if(s&&([o,i]=s),i!==t&&(o&&(r.removeEventListener(e,o,n?d:u),this._attachedListeners[e][n?1:0]=null),"function"==typeof t)){const o=(0,a.Q)(t);r.addEventListener(e,o,n?d:u),this._attachedListeners[e][n?1:0]=[o,t]}}_removeAllRootListeners(){const e=this._refDocument;Object.entries(this._attachedListeners).forEach((t=>{let[n,r]=t;const[o,i]=r;o&&e.removeEventListener(n,o[0],u),i&&e.removeEventListener(n,i[0],d)}))}_updateRootListeners(e){Object.entries(e).forEach((e=>{let[t,n]=e;switch(t){case"onRootPointerDown":this._updateListener("touchstart",m(n)),this.disablePointerEvents||this._updateListener("pointerdown",v(n)),this._updateListener("mousedown",g(n));break;case"onRootPointerDownCapture":this._updateListener("touchstart",m(n),!0),this.disablePointerEvents||this._updateListener("pointerdown",v(n),!0),this._updateListener("mousedown",g(n),!0);break;case"onRootPointerMove":this._updateListener("touchmove",m(n)),this.disablePointerEvents||this._updateListener("pointermove",v(n)),this._updateListener("mousemove",g(n));break;case"onRootPointerMoveCapture":this._updateListener("touchmove",m(n),!0),this.disablePointerEvents||this._updateListener("pointermove",v(n),!0),this._updateListener("mousemove",g(n),!0);break;case"onRootPointerUp":this._updateListener("touchend",m(n)),this.disablePointerEvents||this._updateListener("pointerup",v(n)),this._updateListener("mouseup",g(n));break;case"onRootPointerEnter":this.disablePointerEvents||this._updateListener("pointerenter",v(n)),this._updateListener("mouseenter",g(n));break;case"onRootPointerLeave":this.disablePointerEvents||this._updateListener("pointerleave",v(n)),this._updateListener("mouseleave",g(n));break;case"onRootPointerUpCapture":this._updateListener("touchend",m(n),!0),this.disablePointerEvents||this._updateListener("pointerup",v(n),!0),this._updateListener("mouseup",g(n),!0);break;case"onRootPointerEnterCapture":this.disablePointerEvents||this._updateListener("pointerenter",v(n),!0),this._updateListener("mouseenter",g(n),!0);break;case"onRootPointerLeaveCapture":this.disablePointerEvents||this._updateListener("pointerleave",v(n),!0),this._updateListener("mouseleave",g(n),!0);break;case"onRootPointerCancel":this.disablePointerEvents||this._updateListener("pointercancel",v(n)),this._updateListener("touchcancel",m(n));break;case"onRootPointerCancelCapture":this.disablePointerEvents||this._updateListener("pointercancel",v(n),!0),this._updateListener("touchcancel",m(n),!0)}}))}render(){const e={};let t=!1;if(this.disablePointerEvents="INK"!==this.props.interactionMode&&(0,l.JX)(),Object.entries(this.props).forEach((n=>{let[r,o]=n;if("function"==typeof o)switch(r){case"onPointerDown":e.onTouchStart=m((0,a.Q)(o)),this.disablePointerEvents||(e.onPointerDown=v((0,a.Q)(o))),e.onMouseDown=g((0,a.Q)(o)),t=!0;break;case"onPointerDownCapture":e.onTouchStartCapture=m((0,a.Q)(o)),this.disablePointerEvents||(e.onPointerDownCapture=v((0,a.Q)(o))),e.onMouseDownCapture=g((0,a.Q)(o)),t=!0;break;case"onPointerMove":e.onTouchMove=m((0,a.Q)(o)),this.disablePointerEvents||(e.onPointerMove=v((0,a.Q)(o))),e.onMouseMove=g((0,a.Q)(o)),t=!0;break;case"onPointerMoveCapture":e.onTouchMoveCapture=m((0,a.Q)(o)),this.disablePointerEvents||(e.onPointerMoveCapture=v((0,a.Q)(o))),e.onMouseMoveCapture=g((0,a.Q)(o)),t=!0;break;case"onPointerUp":e.onTouchEnd=m((0,a.Q)(o)),this.disablePointerEvents||(e.onPointerUp=v((0,a.Q)(o))),e.onMouseUp=g((0,a.Q)(o)),t=!0;break;case"onPointerUpCapture":e.onTouchEndCapture=m((0,a.Q)(o)),this.disablePointerEvents||(e.onPointerUpCapture=v((0,a.Q)(o))),e.onMouseUpCapture=g((0,a.Q)(o)),t=!0;break;case"onPointerEnter":this.disablePointerEvents||(e.onPointerEnter=v((0,a.Q)(o))),e.onMouseEnter=g((0,a.Q)(o)),t=!0;break;case"onPointerEnterCapture":this.disablePointerEvents||(e.onPointerEnterCapture=v((0,a.Q)(o))),e.onMouseEnterCapture=g((0,a.Q)(o)),t=!0;break;case"onPointerLeave":this.disablePointerEvents||(e.onPointerLeave=v((0,a.Q)(o))),e.onMouseLeave=g((0,a.Q)(o)),t=!0;break;case"onPointerLeaveCapture":this.disablePointerEvents||(e.onPointerLeaveCapture=v((0,a.Q)(o))),e.onMouseLeaveCapture=g((0,a.Q)(o)),t=!0;break;case"onPointerCancel":this.disablePointerEvents||(e.onPointerCancel=v((0,a.Q)(o))),e.onTouchCancel=m((0,a.Q)(o)),t=!0;break;case"onPointerCancelCapture":this.disablePointerEvents||(e.onPointerCancelCapture=v((0,a.Q)(o))),e.onTouchCancelCapture=m((0,a.Q)(o)),t=!0;break;case"onRootPointerDown":case"onRootPointerDownCapture":e.onTouchStart=e.onTouchStart||y,this.disablePointerEvents||(e.onPointerDown=e.onPointerDown||y),e.onMouseDown=e.onMouseDown||y;break;case"onRootPointerMove":case"onRootPointerMoveCapture":e.onTouchMove=e.onTouchMove||y,this.disablePointerEvents||(e.onPointerMove=e.onPointerMove||y),e.onMouseMove=e.onMouseMove||y;break;case"onRootPointerUp":case"onRootPointerUpCapture":e.onTouchEnd=e.onTouchEnd||y,this.disablePointerEvents||(e.onPointerUp=e.onPointerUp||y),e.onMouseUp=e.onMouseUp||y;break;case"onRootPointerEnter":case"onRootPointerEnterCapture":this.disablePointerEvents||(e.onPointerEnter=e.onPointerEnter||y),e.onMouseEnter=e.onMouseEnter||y;break;case"onRootPointerLeave":case"onRootPointerLeaveCapture":this.disablePointerEvents||(e.onPointerLeave=e.onPointerLeave||y),e.onMouseLeave=e.onMouseLeave||y;break;case"onRootPointerCancel":case"onRootPointerCancelCapture":this.disablePointerEvents||(e.onPointerCancel=e.onPointerCancel||y),e.onTouchCancel=e.onTouchCancel||y}})),!t)return(0,c.jsx)("div",{ref:this._handleRef,...e,children:this.props.children});const n=o.Children.only(this.props.children);return e.ref=this._handleRef,(0,i.V1)(!n.ref,"PRC requires the child element to not have a `ref` assigned. Consider inserting a new `<div>` in between."),o.cloneElement(n,e)}}},13793:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var r=n(96540),o=n(32485),i=n.n(o),a=n(2815),s=n(75453),l=n(45849),c=n(72162),u=n(41294),d=n(49568),p=n(7737),h=n(98899),f=n(9627),m=n(51630),g=n(67136),v=n(74848);class y extends r.Component{constructor(){super(...arguments),(0,g.A)(this,"elRef",this.props.nodeRef||r.createRef()),(0,g.A)(this,"state",{styles:this._calculatePositionStyles()})}_calculatePositionStyles(){const{referenceElement:e,horizontalAlignment:t,isRTL:n}=this.props,{containerRect:r,offsets:o}=this.props,i=o?.top??0,a=this.elRef.current,s=e?e.getBoundingClientRect():null,l=a?a.getBoundingClientRect():null,c=this.elRef.current?.getRootNode(),u=c instanceof ShadowRoot?c.host.getBoundingClientRect():{top:0,left:0};let d=s?s.top+s.height-u.top:0;if(l&&s&&s.top+s.height+l.height>r.height+r.top&&(d=s.top-u.top>0?Math.max(0,s.top-l.height-u.top):s.top-u.top+s.height),!a||!s)return{top:d+i,left:"auto",right:"auto"};if(a.offsetWidth>r.width)return{top:d+i,left:0,right:0};const p=n?"right":"left",h=n?"left":"right";let f="left"===p?s.left-u.left:s.right-u.left;switch(t){case"center":f-=(a.offsetWidth-s.width)/2;break;case"end":f-=a.offsetWidth-s.width}return f<0?{top:d+i,[p]:0,[h]:"auto"}:f+a.offsetWidth>r.width?{top:d+i,[h]:0,[p]:"auto"}:"auto"===t&&f>r.width/2?{top:d+i,[p]:f-a.offsetWidth+s.width,[h]:"auto"}:{top:d+i,[p]:f,[h]:"auto"}}componentDidUpdate(e){(e.containerRect!==this.props.containerRect||this.props.measure&&!e.measure)&&this.setState({styles:this._calculatePositionStyles()})}componentDidMount(){this.setState({styles:this._calculatePositionStyles()})}render(){const{children:e}=this.props,t={position:"absolute",...this.state.styles};return"function"==typeof e?e({ref:this.elRef,style:t}):(0,v.jsx)("div",{ref:this.elRef,style:t,children:e})}}(0,g.A)(y,"defaultProps",{horizontalAlignment:"auto",measure:!0});const b=(0,p.Ng)((e=>({containerRect:e.containerRect})))(y);var w=n(37361),x=n(92862),S=n.n(x),_=n(1549),C=n.n(_),E=n(71052),k=n.n(E),z=n(47058);function P(e,t){var n;const{items:o,value:g,onSelect:y,children:x,appendAfter:_,menuPositionOffsets:E}=e,{formatMessage:P}=(0,a.tz)(),A=(0,p.d4)((e=>e.shadowRoot)),I=(0,p.d4)((e=>e.containerRect)),M=r.useRef(null),N=r.useCallback((e=>{let{selectedItem:t}=e;y&&y(M.current||(0,z.AT)("click"),t),M.current=null}),[y]),O=r.useRef(),R=r.useMemo((()=>o.find((e=>e.value===g?.value))),[o,g])??g,j=e.ItemComponent,F={root:i()("PSPDFKit-Input-Dropdown",e.isActive&&!e.disabled&&"PSPDFKit-Input-Dropdown-active","PSPDFKit-Toolbar-Dropdown",e.className,S().withDropdown,!e.isActive&&S().withDropdownIdle,e.disabled&&S().withDropdownDisabled,R&&"string"==typeof R.icon?R.icon:void 0),button:i()("PSPDFKit-Input-Dropdown-Button",S().dropdown,e.isActive&&!e.disabled&&S().isActive,{[S().discreteDropdown]:e.discreteDropdown,[S().isDisabled]:e.disabled}),menu:i()("PSPDFKit-Input-Dropdown-Items",C().root,e.menuClassName)},[B,L]=r.useState(!1),V=A?(0,h.Qn)(A,window):e.frameWindow,{getToggleButtonProps:K,getMenuProps:H,getItemProps:$,getLabelProps:U,isOpen:W,selectedItem:q,highlightedIndex:G,setHighlightedIndex:Z}=(0,s.WM)({...e.frameWindow?{...V?{environment:V}:null}:null,items:o,itemToString:D,selectedItem:R,onHighlightedIndexChange:e=>{switch(e.type){case s.WM.stateChangeTypes.MenuKeyDownArrowDown:case s.WM.stateChangeTypes.MenuKeyDownArrowUp:case s.WM.stateChangeTypes.MenuKeyDownEscape:case s.WM.stateChangeTypes.MenuKeyDownHome:case s.WM.stateChangeTypes.MenuKeyDownEnd:case s.WM.stateChangeTypes.MenuKeyDownEnter:case s.WM.stateChangeTypes.MenuKeyDownSpaceButton:case s.WM.stateChangeTypes.MenuKeyDownCharacter:case s.WM.stateChangeTypes.FunctionSetHighlightedIndex:!B&&L(!0);break;default:B&&L(!1)}},onSelectedItemChange:t=>{"menu"!==e.role&&N(t)},circularNavigation:!e.hasOwnProperty("circularNavigation")||e.circularNavigation,getA11yStatusMessage(){},getA11ySelectionMessage(){}}),Y=K({onKeyDown:e=>{let{nativeEvent:t,key:n}=e;"Enter"===n&&(M.current=t)},onClick:e=>{e.target.focus&&e.target.focus()},"aria-haspopup":"menu"===e.role?"true":"listbox"}),X=H({onKeyDown:t=>{if(t.keyCode===c.XS&&W&&!e.propagateEscPress)t.stopPropagation();else if((t.keyCode===c.E1||t.keyCode===c.u)&&G>-1&&"menu"===e.role&&W&&!o[G].disabled)M.current=t.nativeEvent,N({selectedItem:o[G]});else if(t.keyCode===c.Vn&&te>1)Z(0===G?o.length:G-1);else if(t.keyCode===c.gV&&te>1)Z(G===o.length-1?0:G+1);else if(t.keyCode===c.lK&&O.current){const e=O.current.querySelector(`#${Y.id}`);e&&e.focus()}}},{suppressRefError:!0}),J=U(),Q=e.ButtonComponent,ee="menu"===e.role?{role:void 0,"aria-labelledby":void 0,"aria-haspopup":void 0,"aria-expanded":void 0}:{},te=Math.min(o.length,e.maxCols||1),ne={display:"flex",flexDirection:te>1?"row":"column",flexWrap:"wrap",width:e.itemWidth?te*e.itemWidth:"auto",boxSizing:"content-box"},re=null!=e.icon?e.icon:{};return(0,v.jsxs)("div",{className:i()(W&&"PSPDFKit-Input-Dropdown-open",F.root),...ee,"data-testid":e["data-testid"],children:[(0,v.jsx)(u.s6,{tag:"div",children:(0,v.jsx)("span",{...J,children:e.accessibilityLabel})}),(0,v.jsx)("div",{ref:O,className:i()(S().wrapper,q?.className||"",{[S().disabledWrapper]:e.disabled,[S().isDisabled]:e.disabled}),children:Q?Q({btnComponentProps:Y,selectedItem:q,ref:t,caretDirection:e.caretDirection,disabled:e.disabled??!1,isOpen:W}):(0,v.jsxs)(v.Fragment,{children:[j({item:q,isSelectedItem:!0,state:null,ref:t}),(0,v.jsxs)("button",{...Y,...e.disabled?{onClick:null}:null,className:F.button,style:{minWidth:0},type:"button",children:[(0,v.jsx)(m.A,{type:`caret-${e.caretDirection}`,style:{width:12,height:"100%"},className:i()("PSPDFKit-Toolbar-Button-Icon",S().dropdownIcon,{[S().disabledDropdownIcon]:e.disabled}),...re}),(0,v.jsx)(u.s6,{tag:"div",children:(0,v.jsx)("span",{children:q?.label})})]})]})}),(0,v.jsx)(l.W,{children:(0,v.jsx)(b,{referenceElement:O.current,measure:W,offsets:E,children:t=>{let{ref:a,style:s}=t;const l="down"===e.caretDirection;let c;c=(e.frameWindow?e.frameWindow.innerWidth:A?I.width:O.current.ownerDocument.defaultView.innerWidth)>=w.DK?O.current.offsetWidth:"auto";const u=s.top,p={maxHeight:l&&"auto"!==u?I.height-O.current.offsetHeight-u+"px":void 0,overflowY:"auto"};return(0,v.jsx)("div",{ref:a,style:{minWidth:c,...s},children:(0,v.jsxs)("div",{...X,className:`${F.menu} ${i()({[C().hiddenMenu]:!W})}`,style:{...p,...ne},onMouseLeave:()=>Z(null),role:"menu"===e.role?"menu":"listbox","aria-labelledby":Y["aria-label"]?void 0:X["aria-labelledby"],"aria-label":Y["aria-label"],"aria-hidden":!W,children:[W&&o.map(((t,a)=>{const s=!!q&&(q.value||t.label)===(t.value||t.label),l=function(e,t,n){return t.indexOf(e)===n}(t,o,G);let c=(0,d.NZ)();t.disabled&&(c=c.add("disabled")),l&&(c=c.add("focused")),s&&(c=c.add("selected")),t.disabled||l||s||(c=c.add("default"));const u=i()("PSPDFKit-Input-Dropdown-Item",t.className||"",{"PSPDFKit-Input-Dropdown-Item-disabled":t.disabled,"PSPDFKit-Input-Dropdown-Item-focused":!t.disabled&&l,"PSPDFKit-Input-Dropdown-Item-selected":!t.disabled&&s,"PSPDFKit-Input-Dropdown-Item-default":!t.disabled&&!s&&!l,[k().focusVisible]:l&&B}),p=$({item:t,index:a,disabled:t.disabled??!1,onClick:n=>{let{nativeEvent:r}=n;t.disabled||(M.current=r,"menu"===e.role&&W&&N({selectedItem:t}))},..."menu"===e.role?{"aria-selected":void 0,role:void 0}:f.nr?{}:{"aria-selected":void 0,"aria-label":s?P(T.selectedItem,{arg0:t.label}):void 0}});return(0,v.jsxs)(r.Fragment,{children:[(0,v.jsx)("div",{className:u,children:j({item:t,isSelectedItem:!1,state:c,itemComponentProps:p})}),null!=_&&_?.index===a&&(n||(n=(0,v.jsx)(_.node,{})))]},`${D(t)}${a}`)})),x]})})}})})]})}const A=(0,r.memo)(r.forwardRef(P));function D(e){return e?.label?e?.label:(null!=e?.value&&"object"==typeof e.value&&"toString"in e.value&&"function"==typeof e.value.toString&&e.value.toString(),null!=e?.value&&"string"==typeof e.value?e.value:"N/A")}const T=(0,a.YK)({accessibilityLabelDropdownGroupToggle:{id:"accessibilityLabelDropdownGroupToggle",defaultMessage:"{arg0} tools, toggle menu",description:"Accessible label to announce the button to open and close a toolbar menu which contains tools like shapes or ink annotations buttons."},selectedItem:{id:"selectedItem",defaultMessage:"{arg0}, selected",description:"Label for selected item in a dropdown"}})},78729:(e,t,n)=>{"use strict";n.d(t,{JY:()=>h,Lm:()=>m,pN:()=>d});var r=n(38849),o=n(17796),i=n(24159),a=n(89398),s=n(84584),l=n(93440),c=n(45666),u=n(37361);const d=a.A.filter((e=>e.color!==i.A.DARK_BLUE)),p={MIN_TEXT_ANNOTATION_SIZE:5,MIN_INK_ANNOTATION_SIZE:16,MIN_SHAPE_ANNOTATION_SIZE:16,MIN_IMAGE_ANNOTATION_SIZE:5,MIN_STAMP_ANNOTATION_SIZE:15,MIN_WIDGET_ANNOTATION_SIZE:3,ENABLE_INK_SMOOTH_LINES:!0,INK_EPSILON_RANGE_OPTIMIZATION:10,SIGNATURE_SAVE_MODE:o.v.USING_UI,INITIAL_DESKTOP_SIDEBAR_WIDTH:300,IGNORE_DOCUMENT_PERMISSIONS:!1,SELECTION_OUTLINE_PADDING:function(e){return e.width>u.UM?10:13},RESIZE_ANCHOR_RADIUS:function(e){return e.width>u.UM?7:10},SELECTION_STROKE_WIDTH:2,TEXT_ANNOTATION_AUTOFIT_TEXT_ON_EXPORT:!0,TEXT_ANNOTATION_AUTOFIT_BOUNDING_BOX_ON_EDIT:!0,DISABLE_KEYBOARD_SHORTCUTS:!1,DEFAULT_INK_ERASER_CURSOR_WIDTH:12.5,COLOR_PRESETS:d,LINE_CAP_PRESETS:["none"].concat(c.b),LINE_WIDTH_PRESETS:null,HIGHLIGHT_COLOR_PRESETS:[i.A.LIGHT_YELLOW,i.A.LIGHT_BLUE,i.A.LIGHT_GREEN,i.A.LIGHT_RED].map((e=>({color:e,localization:l.A[e.toCSSValue()]}))),TEXT_MARKUP_COLOR_PRESETS:a.A.filter((e=>[i.A.BLACK,i.A.BLUE,i.A.RED,i.A.GREEN].includes(e.color))),NOTE_COLOR_PRESETS:s.p,PDF_JAVASCRIPT:!0,BREAKPOINT_MD_TOOLBAR:1070,BREAKPOINT_SM_TOOLBAR:768},h=Object.preventExtensions({...p}),f=(0,r.A)("Options"),m=e=>{for(const t in e)f(void 0!==p[t],`Option \`${t}\` is not available in the \`Options\` object`),f(typeof p[t]==typeof e[t],`Option \`${t}\` is of incorrect type \`${typeof e[t]}\`, should be \`${typeof p[t]}\``)}},82500:(e,t,n)=>{"use strict";n.d(t,{$1_:()=>d,$Yt:()=>yr,$eX:()=>Fr,$hc:()=>Y,$j9:()=>Wn,$kT:()=>Be,$uS:()=>Gt,$w5:()=>de,$zs:()=>ur,A39:()=>Hr,AN0:()=>ro,ASR:()=>z,AcT:()=>nr,Ajq:()=>zn,B0K:()=>Et,B3$:()=>$r,B5:()=>Pt,BmW:()=>Sr,C1Z:()=>bt,C7_:()=>T,CD4:()=>Z,CHH:()=>he,CdF:()=>Gr,Cj7:()=>pt,DIz:()=>kn,DSK:()=>ut,DTK:()=>Lt,Df2:()=>ze,ENJ:()=>_e,Ep5:()=>to,ErL:()=>fn,FCx:()=>Tt,FJm:()=>Yr,FKq:()=>ee,Fe8:()=>Ar,GFn:()=>B,GJD:()=>it,Get:()=>Mt,GnU:()=>Oe,Gro:()=>Me,Gsj:()=>An,H0A:()=>kr,HEW:()=>cn,H_3:()=>$,How:()=>ht,I9p:()=>jo,IMM:()=>po,J7t:()=>Zt,JFC:()=>ar,JMw:()=>In,Jgj:()=>Ce,K2b:()=>_n,K6V:()=>y,KaD:()=>At,LAB:()=>oo,LPR:()=>_r,LPm:()=>V,LvH:()=>Ye,M5B:()=>vr,MC9:()=>bn,MCf:()=>Ro,MPB:()=>Un,MTb:()=>To,MVW:()=>fo,Msx:()=>Ft,N00:()=>L,N6A:()=>xe,NDB:()=>un,NTB:()=>qr,NZW:()=>Ur,NjH:()=>A,O4b:()=>Bt,OPR:()=>cr,OQ1:()=>Fe,Ot4:()=>we,P5p:()=>U,PHl:()=>p,PMu:()=>hn,POx:()=>X,Ps5:()=>bo,Q5I:()=>sr,QRJ:()=>Ae,QVN:()=>W,QlR:()=>Nn,Qti:()=>j,Qvq:()=>Ir,RG9:()=>Kn,R_L:()=>vt,Rql:()=>Xr,Rv8:()=>Ct,S$q:()=>kt,SA4:()=>R,SB:()=>lt,SI:()=>Xe,SJ7:()=>Sn,Sb4:()=>So,SlF:()=>J,SmB:()=>go,SuH:()=>Se,SwZ:()=>so,Swp:()=>Nt,T7d:()=>ue,TBQ:()=>Dn,TN1:()=>Lr,TPz:()=>ne,TRW:()=>Yt,TTm:()=>w,TUU:()=>io,TV2:()=>nt,TVi:()=>uo,TY$:()=>ve,Td6:()=>Pn,TpM:()=>$n,TpQ:()=>_,UDq:()=>Xt,UWX:()=>fe,Uas:()=>b,UrP:()=>ae,UvZ:()=>an,V5X:()=>Bn,VGl:()=>Ne,VWe:()=>xo,Vat:()=>jr,VhV:()=>a,VmY:()=>Cn,Vrp:()=>st,WwK:()=>$t,XPU:()=>hr,XX9:()=>Fn,XZE:()=>ce,Xet:()=>eo,Xnw:()=>ie,Xpm:()=>Qt,Xt9:()=>O,Y8N:()=>on,YHd:()=>me,Z8:()=>F,ZN_:()=>Cr,ZSp:()=>yt,ZTP:()=>wr,ZkK:()=>h,Zkn:()=>Ut,Ztu:()=>r,_XN:()=>D,_YG:()=>i,_w:()=>ko,_z4:()=>_o,a6C:()=>tt,agm:()=>zt,av_:()=>H,bD6:()=>xn,bD_:()=>be,bQ9:()=>Or,bSs:()=>Do,bUk:()=>g,bYc:()=>_t,beK:()=>Pe,bjH:()=>Je,c5z:()=>pn,cG6:()=>Ht,cNc:()=>Tr,cX:()=>vo,cmb:()=>Ee,coD:()=>Ze,dBd:()=>Zn,dLL:()=>oe,dVR:()=>S,dnz:()=>wn,dqA:()=>lo,dv5:()=>gr,dwm:()=>fr,e$c:()=>C,e1v:()=>Wt,e7N:()=>Ie,eko:()=>f,evn:()=>ke,f5v:()=>Jt,fAM:()=>m,fPp:()=>rn,fjq:()=>u,fmV:()=>Ge,fnC:()=>o,g1L:()=>$e,gA3:()=>Nr,gKg:()=>yo,gr7:()=>vn,h0V:()=>er,h0k:()=>dt,h31:()=>te,h6f:()=>sn,hCl:()=>Kt,hEI:()=>zo,hIA:()=>N,hNe:()=>Co,hUH:()=>se,iGi:()=>Q,iMO:()=>x,iU1:()=>le,iZ4:()=>ct,ilz:()=>Br,iry:()=>v,jAd:()=>Qn,j_B:()=>Hn,jkd:()=>jn,jms:()=>Te,k0y:()=>Eo,k5x:()=>gt,kZs:()=>Mo,kh8:()=>Ke,kyl:()=>wo,l58:()=>q,lBj:()=>Rr,lfs:()=>Vn,loZ:()=>or,lp_:()=>yn,lxe:()=>lr,lyT:()=>dn,m$:()=>qe,m$$:()=>Re,m65:()=>no,mIs:()=>Dt,mND:()=>mo,mOc:()=>ye,mQT:()=>l,mS9:()=>Qr,mb6:()=>Gn,nN5:()=>Zr,nXN:()=>Qe,n_I:()=>Le,ngf:()=>en,njw:()=>mn,nkN:()=>Dr,o1d:()=>I,oFF:()=>G,oJw:()=>Kr,oLR:()=>dr,oSb:()=>Vt,oiE:()=>et,oj5:()=>ln,ovX:()=>pr,ozB:()=>Mn,pAl:()=>je,pmk:()=>M,psz:()=>Io,q$5:()=>wt,q3n:()=>xr,q6G:()=>mr,q7x:()=>Mr,qDC:()=>Jn,qNu:()=>Wr,qOc:()=>nn,qRc:()=>Rn,qU5:()=>br,qml:()=>On,qvB:()=>co,r9i:()=>mt,rJq:()=>s,re3:()=>c,rw4:()=>xt,sMs:()=>K,sWq:()=>ge,s_A:()=>ir,tEU:()=>tr,tII:()=>Ln,tJg:()=>Yn,tSE:()=>at,tTM:()=>rt,t_f:()=>Ao,tpQ:()=>qn,twv:()=>ao,u8m:()=>Ue,uO1:()=>We,uW3:()=>No,uWd:()=>ot,uby:()=>ft,ulm:()=>rr,uo5:()=>Po,uoR:()=>qt,up7:()=>re,ur2:()=>zr,v9$:()=>Ot,vSr:()=>k,vh9:()=>jt,vjD:()=>En,vjS:()=>Xn,vmd:()=>It,wY4:()=>Tn,wYS:()=>P,xQ8:()=>De,xWZ:()=>Rt,xjY:()=>He,xt3:()=>ho,yI7:()=>E,yT6:()=>Jr,ydo:()=>Vr,yiN:()=>St,ym1:()=>pe,yoE:()=>tn,zD7:()=>Oo,zRM:()=>Er,zgv:()=>Ve,zjV:()=>Pr,zvJ:()=>gn});const r="CONNECTING",o="DOWNLOADING_DOCUMENT",i="CONNECTED",a="CONNECTION_FAILED",s="SET_ANNOTATION_MANAGER",l="SET_BOOKMARK_MANAGER",c="SET_FORM_FIELD_VALUE_MANAGER",u="SET_FORM_FIELD_MANAGER",d="SET_COMMENT_MANAGER",p="SET_MENTIONABLE_USERS",h="SET_MAX_MENTION_SUGGESTIONS",f="SET_CHANGE_MANAGER",m="SET_HAS_FETCHED_INITIAL_RECORDS_FROM_INSTANT",g="SET_GROUP",v="SET_CLIENTS_UPDATE_CALLBACK",y="SET_TRANSFORM_CLIENT_TO_PAGE",b="FETCH_LINEARIZED_DOCUMENT_INITIAL_SUCCESS",w="FETCH_DOCUMENT_SUCCESS",x="FETCH_PAGES_SUCCESS",S="SET_BACKEND_PERMISSIONS",_="SCROLLED",C="JUMP_TO_RECT",E="JUMP_AND_ZOOM_TO_RECT",k="RESIZED",z="NEXT_PAGE",P="PREVIOUS_PAGE",A="SET_PAGE",D="SET_ZOOM_LEVEL",T="SET_ZOOM_STEP",I="SET_VIEWPORT_STATE",M="SET_SPREAD_SPACING",N="SET_PAGE_SPACING",O="SET_FIRST_PAGE_ALWAYS_SINGLE",R="SET_VIEWPORT_PADDING",j="ENABLE_PANNING",F="DISABLE_PANNING",B="ENABLE_PRINTING",L="DISABLE_PRINTING",V="ENABLE_EXPORT",K="DISABLE_EXPORT",H="ENABLE_READ_ONLY",$="DISABLE_READ_ONLY",U="SHOW_ANNOTATIONS",W="HIDE_ANNOTATIONS",q="SHOW_COMMENTS",G="HIDE_COMMENTS",Z="SHOW_ANNOTATION_NOTES",Y="HIDE_ANNOTATION_NOTES",X="SET_FEATURES",J="SET_SIDEBAR_MODE",Q="SET_SIDEBAR_PLACEMENT",ee="SET_SIDEBAR_OPTIONS",te="SET_SIGNATURE_FEATURE_AVAILABILITY",ne="START_PRINTING",re="END_PRINTING",oe="ABORT_PRINTING",ie="UPDATE_PRINT_LOADING_INDICATOR",ae="ZOOM_IN",se="ZOOM_OUT",le="ZOOM_TO_AUTO",ce="ZOOM_TO_FIT_TO_VIEWPORT",ue="ZOOM_TO_FIT_TO_WIDTH",de="SET_WHEEL_ZOOM_MODE",pe="SET_IS_LEGACY_ZOOM",he="SET_ZOOM_OPTIONS",fe="ROTATE",me="ENABLE_DEBUG_MODE",ge="SHOW_DEBUG_CONSOLE",ve="HIDE_DEBUG_CONSOLE",ye="SHOW_TOOLBAR",be="HIDE_TOOLBAR",we="ENABLE_ANNOTATION_TOOLBAR",xe="DISABLE_ANNOTATION_TOOLBAR",Se="SET_SCROLLBAR_OFFSET",_e="SET_LAYOUT_MODE",Ce="SET_SCROLL_MODE",Ee="SET_SCROLL_ELEMENT",ke="SET_ANNOTATION_CREATOR",ze="SET_ANNOTATION_TOOLBAR_HEIGHT",Pe="UPDATE_TOOLBAR_ITEMS",Ae="UPDATE_CURRENT_PRESET",De="SET_CURRENT_ITEM_PRESET",Te="UPDATE_ANNOTATION_PRESETS",Ie="ADD_ANNOTATION_PRESET_ID",Me="SET_CURRENT_ITEM_PRESET_FROM_ANNOTATION",Ne="REMOVE_ANNOTATION_PRESET_ID",Oe="DESELECT",Re="TEXT_SELECTED",je="TEXT_DESELECTED",Fe="SET_ANNOTATION_HOVER",Be="UNSET_ANNOTATION_HOVER",Le="SET_ANNOTATION_NOTE_HOVER",Ve="SET_ACTIVE_ANNOTATION_NOTE",Ke="SET_SELECTED_ANNOTATIONS",He="UNSET_SELECTED_ANNOTATION_SHOULD_DRAG",$e="SET_SELECTED_TEXT_ON_EDIT",Ue="FETCH_CONTENT_BLOCKS_SUCCESS",We="FETCH_PAGE_INFO_SUCCESS",qe="ENABLE_TEXT_HIGHLIGHTER_MODE",Ge="DISABLE_TEXT_HIGHLIGHTER_MODE",Ze="ENABLE_REDACT_TEXT_HIGHLIGHTER_MODE",Ye="DISABLE_REDACT_TEXT_HIGHLIGHTER_MODE",Xe="ENABLE_REDACT_SHAPE_RECTANGLE_MODE",Je="DISABLE_REDACT_SHAPE_RECTANGLE_MODE",Qe="ENABLE_INK_MODE",et="DISABLE_INK_MODE",tt="ENABLE_INK_ERASER_MODE",nt="DISABLE_INK_ERASER_MODE",rt="ENABLE_SIGNATURE_MODE",ot="DISABLE_SIGNATURE_MODE",it="ENABLE_SHAPE_MODE",at="DISABLE_SHAPE_MODE",st="ENABLE_NOTE_MODE",lt="DISABLE_NOTE_MODE",ct="ENABLE_TEXT_MODE",ut="DISABLE_TEXT_MODE",dt="ENABLE_STAMP_PICKER_MODE",pt="ENABLE_STAMP_CUSTOM_MODE",ht="DISABLE_STAMP_MODE",ft="ENABLE_INTERACTIONS",mt="DISABLE_INTERACTIONS",gt="SHOW_DOCUMENT_EDITOR",vt="HIDE_DOCUMENT_EDITOR",yt="ENABLE_MARQUEE_ZOOM",bt="DISABLE_MARQUEE_ZOOM",wt="SET_INTERACTION_MODE",xt="RESET_INTERACTION_MODE",St="CREATE_COMMENTS",_t="CREATE_COMMENT_DRAFT",Ct="UPDATE_COMMENTS",Et="DELETE_COMMENTS",kt="COMPUTE_COMMENT_MODE",zt="CREATE_ANNOTATIONS",Pt="CREATE_INK_ANNOTATION_ON_NEW_PAGE",At="CREATE_SHAPE_ANNOTATION_ON_NEW_PAGE",Dt="CREATE_REDACTION_ANNOTATION_ON_NEW_PAGE",Tt="UPDATE_ANNOTATIONS",It="DELETE_ANNOTATIONS",Mt="SET_ANNOTATIONS_TO_DELETE",Nt="SEARCH_FOR_TERM",Ot="FOCUS_NEXT_SEARCH_HIGHLIGHT",Rt="FOCUS_PREVIOUS_SEARCH_HIGHLIGHT",jt="SHOW_SEARCH",Ft="HIDE_SEARCH",Bt="FOCUS_SEARCH",Lt="BLUR_SEARCH",Vt="SET_SEARCH_IS_LOADING",Kt="SET_SEARCH_RESULTS",Ht="SET_SEARCH_STATE",$t="SET_SEARCH_PROVIDER",Ut="SET_FORM_JSON",Wt="CREATE_FORM_FIELD_VALUES",qt="SET_FORM_FIELD_VALUES",Gt="SET_FORMATTED_FORM_FIELD_VALUES",Zt="SET_EDITING_FORM_FIELD_VALUES",Yt="DELETE_FORM_FIELD_VALUES",Xt="CREATE_FORM_FIELDS",Jt="UPDATE_FORM_FIELDS",Qt="REPLACE_FORM_FIELD",en="DELETE_FORM_FIELDS",tn="DELETE_FORM_FIELDS_BY_IDS",nn="SET_DOCUMENT_OUTLINE",rn="TOGGLE_DOCUMENT_OUTLINE_ELEMENT",on="SET_CUSTOM_OVERLAY_ITEM",an="REMOVE_CUSTOM_OVERLAY_ITEM",sn="I18N_SET_LOCALE",ln="CREATE_SIGNATURE",cn="STORE_SIGNATURE",un="SET_STORED_SIGNATURES",dn="DELETE_STORED_SIGNATURE",pn="UPDATE_STAMP_ANNOTATION_TEMPLATES",hn="SHOW_PASSWORD_PROMPT",fn="SET_HAS_PASSWORD",mn="UNLOCKED_VIA_MODAL",gn="SET_ALLOWED_TILE_SCALES",vn="UPDATE_SELECTED_MARKUP_ANNOTATIONS",yn="SET_IS_EDITABLE_ANNOTATION",bn="SET_EDITABLE_ANNOTATION_TYPES",wn="SET_IS_EDITABLE_COMMENT",xn="SET_FORM_DESIGN_MODE",Sn="RESET_DOCUMENT_STATE",_n="SET_DOCUMENT_HANDLE",Cn="SET_DOCUMENT_HANDLE_OUTDATED",En="UPDATE_CUSTOM_RENDERERS",kn="ENABLE_COMMENT_MARKER",zn="DISABLE_COMMENT_MARKER",Pn="START_DIGITAL_SIGNATURE",An="END_DIGITAL_SIGNATURE",Dn="SET_SHOW_SIGNATURE_VALIDATION_STATUS_MODE",Tn="SET_DIGITAL_SIGNATURES",In="START_REDACTION",Mn="END_REDACTION",Nn="SET_PREVIEW_REDACTION_MODE",On="SET_COLLAPSE_SELECTED_NOTE_CONTENT",Rn="INVALIDATE_AP_STREAMS",jn="VALIDATE_AP_STREAMS",Fn="HISTORY_UPDATE_FROM_UNDO",Bn="HISTORY_UPDATE_FROM_REDO",Ln="SET_HISTORY_CHANGE_CONTEXT",Vn="HISTORY_IDS_MAP_ADD",Kn="CLEAR_HISTORY",Hn="REMOVE_ANNOTATION_FROM_HISTORY",$n="ENABLE_HISTORY",Un="DISABLE_HISTORY",Wn="UPDATE_DOCUMENT_EDITOR_FOOTER_ITEMS",qn="UPDATE_DOCUMENT_EDITOR_TOOLBAR_ITEMS",Gn="SET_EDITABLE_ANNOTATION_STATE",Zn="SET_A11Y_STATUS_MESSAGE",Yn="SET_LAST_TOOLBAR_ACTION_USED_KEYBOARD",Xn="ENABLE_DOCUMENT_CROP_MODE",Jn="DISABLE_DOCUMENT_CROP_MODE",Qn="SET_ON_ANNOTATION_RESIZE_START",er="SET_DOCUMENT_COMPARISON_STATE",tr="ENABLE_SCROLL_WHILE_DRAWING",nr="DISABLE_SCROLL_WHILE_DRAWING",rr="SET_REUSE_STATE",or="ENABLE_KEEP_SELECTED_TOOL",ir="DISABLE_KEEP_SELECTED_TOOL",ar="SET_INSTANCE",sr="SET_CUSTOM_UI_STORE",lr="SET_SIDEBAR_WIDTH",cr="SET_READ_ONLY_ANNOTATION_FOCUS",ur="UNSET_READ_ONLY_ANNOTATION_FOCUS",dr="SET_ANNOTATION_TOOLBAR_ITEMS_CALLBACK",pr="TOGGLE_CLIPBOARD_ACTIONS",hr="SET_ON_WIDGET_CREATION_START_CALLBACK",fr="SET_FORM_DESIGNER_LOCAL_WIDGET_ANNOTATION",mr="SET_INLINE_TOOLBAR_ITEMS_CALLBACK",gr="ADD_ANNOTATION_VARIANTS",vr="ENABLE_CONTENT_EDITOR",yr="DISABLE_CONTENT_EDITOR",br="CHANGE_CONTENT_EDITOR_SESSION_MODE",wr="ENABLE_LINK_MODE",xr="DISABLE_LINK_MODE",Sr="DISABLE_DRAWING_LINK_ANNOTATION_MODE",_r="SET_MEASUREMENT_SNAPPING",Cr="SET_MEASUREMENT_PRECISION",Er="SET_MEASUREMENT_SCALE",kr="SET_MEASUREMENT_VALUE_CONFIGURATION_CALLBACK",zr="SET_MEASUREMENT_SCALES",Pr="SET_MEASUREMENT_TOOL_STATE",Ar="SET_HINT_LINES",Dr="CONTENT_EDITOR/PAGE/LOADING",Tr="CONTENT_EDITOR/PAGE/LOADED",Ir="CONTENT_EDITOR/TEXT_BLOCK/INTERACTION/ACTIVE",Mr="CONTENT_EDITOR/TEXT_BLOCK/INTERACTION/TOGGLE",Nr="CONTENT_EDITOR/TEXT_BLOCK/INTERACTION/SELECT",Or="CONTENT_EDITOR/TEXT_BLOCK/CREATE",Rr="CONTENT_EDITOR/TEXT_BLOCK/UPDATE_INFO",jr="CONTENT_EDITOR/TEXT_BLOCK/SET_FORMAT",Fr="CONTENT_EDITOR_/TEXT_BLOCK/RESIZE",Br="CONTENT_EDITOR_/TEXT_BLOCK/MOVE",Lr="CONTENT_EDITOR/SAVING",Vr="CONTENT_EDITOR/SET_DIRTY",Kr="CONTENT_EDITOR/FACE_LIST/LOADING",Hr="CONTENT_EDITOR/FACE_LIST/SET",$r="CONTENT_EDITOR_SET_EXIT_DIALOG",Ur="CONTENT_EDITOR_SHOW_FONT_MISMATCH_TOOLTIP",Wr="CONTENT_EDITOR_HIDE_FONT_MISMATCH_TOOLTIP",qr="CONTENT_EDITOR_FONT_MISMATCH_TOOLTIP_ABORT_CONTROLLER",Gr="ENABLE_MULTI_ANNOTATIONS_SELECTION_MODE",Zr="DISABLE_MULTI_ANNOTATIONS_SELECTION_MODE",Yr="CREATE_ANNOTATION_GROUP",Xr="SET_SELECTED_GROUP",Jr="DELETE_ANNOTATION_GROUP",Qr="REMOVE_ANNOTATION_FROM_GROUP",eo="SET_PULL_TO_REFRESH_STATE",to="SET_RICH_EDITOR_REF",no="FOCUS_WIDGET_ANNOTATION",ro="SET_ON_COMMENT_CREATION_START_CALLBACK",oo="INVALIDATE_PAGE_KEYS",io="CONTENT_EDITOR_ACTIVE_TEXT_BLOCK_DELETE",ao="CHANGE_SCROLL_STATE",so="SET_CUSTOM_FONTS_READABLE_NAMES",lo="ENABLE_MEASUREMENT_MODE",co="DISABLE_MEASUREMENT_MODE",uo="SHOW_MEASUREMENT_SETTINGS",po="HIDE_MEASUREMENT_SETTINGS",ho="SHOW_ATTACHMENT_PREVIEW",fo="HIDE_ATTACHMENT_PREVIEW",mo="SET_EMBEDDED_FILES",go="SET_SECONDARY_MEASUREMENT_UNIT",vo="SET_ACTIVE_MEASUREMENT_SCALE",yo="SET_CALIBRATION_MODE",bo="UPDATE_PAGE_KEYS",wo="SET_DISABLE_POINT_SNAPPING",xo="SET_ENABLE_ALWAYS_SCROLL_TO_ZOOM",So="SET_FORCE_RENDER_WIDGETS_IN_ANNOTATIONS_ORDER",_o="SET_EVALUATION",Co="SELECT_IMPORT_ICON_IMAGE",Eo="SET_OCG_LAYERS",ko="SET_OCG_VISIBILITY",zo="SET_PRERENDERED_PAGE_SPREADS",Po="SET_PAGE_TAB_ORDER",Ao="SET_DOCUMENT_ASSISTANT_CONFIGURATION",Do="SET_SHOW_DOCUMENT_ASSISTANT",To="SET_DOCUMENT_ASSISTANT_ADDITIONAL_CONTEXT",Io="CONTENT_EDITOR_SET_PROMPT_DOCUMENT_DOWNLOAD",Mo="CONTENT_EDITOR_SET_PROMPT_CANNOT_SAVE_CHANGES",No="SET_IS_SERVER_MODE_DOWNLOADING_WASM",Oo="SET_IS_SERVER_MODE_DOWNLOADING_DOCUMENT",Ro="SET_HIGHLIGHT_STATE",jo="CROP_CHANGE"},37361:(e,t,n)=>{"use strict";n.d(t,{$V:()=>U,$_:()=>S,AN:()=>l,BX:()=>u,Bd:()=>y,Cy:()=>j,DK:()=>i,Dg:()=>N,FG:()=>d,Gz:()=>K,HI:()=>X,J0:()=>$,Jf:()=>T,LB:()=>Y,Mp:()=>s,Nn:()=>J,Pw:()=>V,R0:()=>Z,Ss:()=>q,TB:()=>c,UM:()=>a,Us:()=>x,V9:()=>h,W2:()=>g,Wp:()=>f,Xm:()=>p,YF:()=>W,Yy:()=>z,_M:()=>B,aD:()=>H,b4:()=>I,bL:()=>A,bg:()=>F,dO:()=>ee,dc:()=>O,eV:()=>o,gR:()=>_,hY:()=>P,jw:()=>M,lY:()=>G,mN:()=>w,oY:()=>r,pp:()=>Q,s$:()=>R,tE:()=>k,ti:()=>D,uo:()=>v,uy:()=>L,vD:()=>E,vq:()=>C,wZ:()=>m,z3:()=>b});const r=1200,o=1070,i=768,a=480,s=32768,l=18,c=50,u=a,d=a,p=320,h=250,f=.5,m=10,g=1.25,v=5,y=30,b=2,w=20,x=0,S=20,_=5,C=1,E=1536,k=512,z=512,P=5,A=1.25,D="PSPDFKit-Root",T="PSPDFKit-Shadow-Portal",I=36,M=20,N=5,O=0,R=1,j=96/72,F=5e3,B={LOW:75/72,MEDIUM:150/72,HIGH:300/72},L=2/3,V=595,K=842,H=50,$=96,U=300,W=1e3,q=4.25,G=2,Z=G*q,Y=10,X=16383,J=4,Q=250,ee={thumbnailMinSize:Q/2,thumbnailMaxSize:Q+1.5*Q,thumbnailDefaultSize:Q}},24063:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>h,Q4:()=>p,rM:()=>l});var r=n(49568),o=n(24159),i=n(51946),a=n(45666);const s={line:i.MU,rectangle:i.Zx,"cloudy-rectangle":i.Zx,"dashed-rectangle":i.Zx,ellipse:i.Go,"cloudy-ellipse":i.Go,"dashed-ellipse":i.Go,polygon:i.Si,"cloudy-polygon":i.Si,"dashed-polygon":i.Si,polyline:i.ug,ink:i.Eo,note:i.s9,text:i.dh,stamp:i.xY,image:i.vU,widget:i.sb,strikeout:i.sB,underline:i.Yi,squiggle:i.TI,highlight:i.ax,arrow:i.MU,highlighter:i.Eo,"text-highlighter":i.ax,"ink-signature":i.Eo,redaction:i.h5,"es-signature":i.Eo,perimeter:i.ug,distance:i.MU,"ellipse-area":i.Go,"rectangle-area":i.Zx,"polygon-area":i.Si},l={line:{},rectangle:{},ellipse:{},polygon:{},polyline:{},ink:{},note:{},text:{},stamp:{},image:{},widget:{},strikeout:{},underline:{},squiggle:{},highlight:{},redaction:{}},c={arrow:{lineCaps:{end:"openArrow"}},"cloudy-rectangle":{cloudyBorderIntensity:2},"dashed-rectangle":{strokeDashArray:[3,3]},"cloudy-ellipse":{cloudyBorderIntensity:2},"dashed-ellipse":{strokeDashArray:[3,3]},"cloudy-polygon":{cloudyBorderIntensity:2},"dashed-polygon":{strokeDashArray:[3,3]},highlighter:{strokeColor:o.A.LIGHT_YELLOW,lineWidth:30,blendMode:"multiply",opacity:1},"text-highlighter":{color:o.A.LIGHT_YELLOW,blendMode:"multiply",opacity:1},"ink-signature":{isSignature:!0},"es-signature":{isSignature:!0,strokeColor:o.A.BLACK},distance:{lineCaps:{start:a.$.butt,end:a.$.butt},strokeWidth:3,strokeColor:o.A.RED},perimeter:{lineCaps:{start:a.$.butt,end:a.$.openArrow},strokeWidth:3,strokeColor:o.A.RED},"ellipse-area":{strokeWidth:3,strokeColor:o.A.RED},"rectangle-area":{strokeWidth:3,strokeColor:o.A.RED},"polygon-area":{strokeWidth:3,strokeColor:o.A.RED}},u=["lines","points","startPoint","endPoint"],d=e=>Object.keys(e).filter((t=>!u.includes(t)&&null!=e[t])).reduce(((t,n)=>(t[n]=e[n],t)),{});for(const e in l){const t=s[e];Object.getPrototypeOf(t)===i.pP?l[e]=d({...i.pP.defaultValues,...t.defaultValues}):Object.getPrototypeOf(t)===i.tr?l[e]=d({...i.tr.defaultValues,...t.defaultValues}):l[e]=d(t.defaultValues)}for(const e in c){const t=s[e];Object.getPrototypeOf(t)===i.pP?c[e]=d({...i.pP.defaultValues,...t.defaultValues,...c[e]}):Object.getPrototypeOf(t)===i.tr?c[e]=d({...i.tr.defaultValues,...t.defaultValues,...c[e]}):c[e]=d({...t.defaultValues,...c[e]})}const p=(0,r.T5)([[i.ax,"highlight"],[i.Yi,"underline"],[i.TI,"squiggle"],[i.sB,"strikeout"]]),h=(0,r.T5)({...l,...c})},79595:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,X:()=>i});var r=n(49568),o=n(51946);const i=[o.Go,o.ax,o.vU,o.Eo,o.MU,o.s9,o.Si,o.ug,o.Zx,o.TI,o.xY,o.sB,o.dh,o.Yi,o.sb],a=(0,r.ss)(i)},29249:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,L:()=>o});var r=n(49568);const o=[{type:"cancel"},{type:"spacer"},{type:"selected-pages"},{type:"spacer"},{type:"save-as"},{type:"save"}],i=(0,r.ss)(o)},82747:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,B:()=>o});var r=n(49568);const o=[{type:"add"},{type:"remove"},{type:"duplicate"},{type:"rotate-left"},{type:"rotate-right"},{type:"move"},{type:"move-left"},{type:"move-right"},{type:"import-document"},{type:"extract-pages"},{type:"spacer"},{type:"undo"},{type:"redo"},{type:"select-all"},{type:"select-none"},{type:"zoom-out"},{type:"zoom-in"}],i=(0,r.ss)(o)},62362:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(51946);const o=Object.freeze([r.Go,r.ax,r.vU,r.Eo,r.MU,r.s9,r.Si,r.ug,r.Zx,r.h5,r.TI,r.xY,r.sB,r.dh,r.sb,r.Yi,r.dG,r.UL].filter(Boolean))},1257:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(24159);const o=new r.A({r:70,g:54,b:227}),i={color:r.A.BLUE,localization:{id:"blue",defaultMessage:"Blue",description:"Blue color"}},a=[{color:r.A.BLACK,localization:{id:"black",defaultMessage:"Black",description:"Black color"}},i,{color:o,localization:{id:"darkBlue",defaultMessage:"Dark blue",description:"Dark blue color"}}]},4033:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(30006);const o=Object.freeze([r.F.DRAW,r.F.IMAGE,r.F.TYPE])},88425:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(70631);const o=Object.freeze([new r.A({name:"Caveat"}),new r.A({name:"Pacifico"}),new r.A({name:"Marck Script"}),new r.A({name:"Meddon"})])},10455:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l});var r=n(51946),o=n(44439);const i=n(9627).LZ?396:240,a=new o.A({width:i,height:i/3,left:0,top:0}),s=new o.A({width:i,height:i,left:0,top:0}),l=Object.freeze([["Approved",a],["NotApproved",a],["Draft",a],["Final",a],["Completed",a],["Confidential",a],["ForPublicRelease",a],["NotForPublicRelease",a],["ForComment",a],["Void",a],["PreliminaryResults",a],["InformationOnly",a],["Rejected",s],["Accepted",s],["InitialHere",a],["SignHere",a],["Witness",a],["AsIs",a],["Departmental",a],["Experimental",a],["Expired",a],["Sold",a],["TopSecret",a],["Revised",a],["RejectedWithText",a]].map((e=>{let[t,n]=e;return new r.xY({stampType:t,boundingBox:n})})))},67867:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,n:()=>o});var r=n(49568);const o=[{type:"pager"},{type:"pan"},{type:"zoom-out"},{type:"zoom-in"},{type:"spacer"}],i=(0,r.ss)(o)},91109:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,l:()=>o});var r=n(49568);const o=[{type:"comparison-changes"},{type:"prev-change"},{type:"next-change"},{type:"scroll-lock"}],i=(0,r.ss)(o)},81199:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>o,TA:()=>i});const r=[{type:"sidebar-thumbnails"},{type:"sidebar-document-outline"},{type:"sidebar-annotations"},{type:"sidebar-bookmarks"},{type:"sidebar-signatures"},{type:"sidebar-attachments"},{type:"sidebar-layers"},{type:"pager"},{type:"multi-annotations-selection"},{type:"pan"},{type:"zoom-out"},{type:"zoom-in"},{type:"zoom-mode"},{type:"linearized-download-indicator"},{type:"spacer"},{type:"annotate"},{type:"ink"},{type:"highlighter"},{type:"text-highlighter"},{type:"ink-eraser"},{type:"signature"},{type:"image"},{type:"stamp"},{type:"note"},{type:"text"},{type:"callout"},{type:"line"},{type:"link"},{type:"arrow"},{type:"rectangle"},{type:"ellipse"},{type:"polygon"},{type:"cloudy-polygon"},{type:"polyline"},{type:"print"},{type:"document-editor"},{type:"document-crop"},{type:"search"},{type:"export-pdf"},{type:"debug"}],o=(0,n(49568).ss)(r),i=[...r.map((e=>e.type)),"layout-config","marquee-zoom","custom","responsive-group","comment","redact-text-highlighter","redact-rectangle","cloudy-rectangle","dashed-rectangle","cloudy-ellipse","dashed-ellipse","dashed-polygon","document-comparison","measure","undo","redo","form-creator","content-editor","distance","perimeter","rectangle-area","ellipse-area","polygon-area","ai-assistant"]},72776:(e,t,n)=>{"use strict";n.d(t,{M:()=>d});var r=n(58534),o=(n(96540),n(82047)),i=n(60416),a=n(95148),s=n(43556),l=n(26133),c=n(56540),u=n(74848);const d={[o.Rq.SignaturesList]:e=>({content:(0,u.jsx)(r.gc,{...e.props}),decorator:e=>(0,u.jsx)(r.Nx,{...e})}),[o.Rq.Bookmarks]:e=>({content:(0,u.jsx)(r._r,{...e.props}),decorator:e=>(0,u.jsx)(i.j,{...e})}),[o.Rq.CreateSignature]:e=>({content:(0,u.jsx)(r.nB,{...e.props}),decorator:e=>(0,u.jsx)(r.Y8,{...e})}),[o.Rq.StampsList]:e=>({content:(0,u.jsx)(r.pw,{...e.props}),decorator:e=>(0,u.jsx)(r.qT,{...e})}),[o.Rq.CreateStamp]:e=>({content:(0,u.jsx)(r.AV,{...e.props}),decorator:e=>(0,u.jsx)(r.lu,{...e})}),[o.Rq.ChatDialog]:e=>({content:(0,u.jsx)(r.H_,{...e.props}),decorator:e=>(0,u.jsx)(r.sr,{...e})}),[o.Rq.CommentThread]:e=>({content:(0,u.jsx)(r._h,{...e.props}),decorator:e=>(0,u.jsx)(r.f8,{...e})}),[o.Rq.PasswordDialog]:e=>({content:(0,u.jsx)(r.ug,{...e.props}),decorator:e=>(0,u.jsx)(r.hO,{...e})}),[o.Rq.DocumentEditor]:e=>({content:(0,u.jsx)(r.pu,{...e.props}),decorator:e=>(0,u.jsx)(r.k8,{...e})}),[o.Rq.PrimaryToolbar]:e=>({content:(0,u.jsx)(r.M7,{...e.props}),decorator:e=>e.content}),[o.Rq.SecondaryToolbar]:e=>({content:(0,u.jsx)(r.M7,{...e.props}),decorator:e=>e.content}),[o.Rq.Thumbnails]:e=>({content:(0,u.jsx)(r.q_,{...e.props}),decorator:e=>(0,u.jsx)(a.f,{...e})}),[o.Rq.Annotations]:e=>({content:(0,u.jsx)(r.rB,{...e.props}),decorator:e=>(0,u.jsx)(s.w,{...e})}),[o.Rq.DiffViewer]:e=>({content:(0,u.jsx)(r.Mh,{...e.props}),decorator:e=>(0,u.jsx)(l.z,{...e})}),[o.Rq.Outline]:e=>({content:(0,u.jsx)(r.Rc,{...e.props}),decorator:e=>(0,u.jsx)(c.Q,{...e})}),[o.Rq.Search]:e=>({content:(0,u.jsx)(r.vj,{...e.props}),decorator:e=>e.content})}},47608:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7737),o=n(41294);const i=(0,r.Ng)((function(e,t){let{restoreOnClose:n=!0}=t;const r=e.frameWindow?.document;return{restoreOnCloseElement:n?r?.hasFocus()?r.activeElement:document.activeElement:null}}))(o.aF)},89009:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});const r={START:"START",END:"END"}},5511:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});const r={IMMEDIATE:"IMMEDIATE",INTELLIGENT:"INTELLIGENT",DISABLED:"DISABLED"}},23660:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});const r={normal:"normal",multiply:"multiply",screen:"screen",overlay:"overlay",darken:"darken",lighten:"lighten",colorDodge:"colorDodge",colorBurn:"colorBurn",hardLight:"hardLight",softLight:"softLight",difference:"difference",exclusion:"exclusion"}},46395:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});const r={solid:"solid",dashed:"dashed",beveled:"beveled",inset:"inset",underline:"underline"}},45306:(e,t,n)=>{"use strict";n.d(t,{X:()=>r});const r={SIDEBAR:"SIDEBAR",PANE:"PANE"}},70778:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});const r={TEXT:"text"}},92314:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});const r={PASSWORD_REQUIRED:"PASSWORD_REQUIRED",CONNECTING:"CONNECTING",DOWNLOADING_DOCUMENT:"DOWNLOADING_DOCUMENT",CONNECTED:"CONNECTED",CONNECTION_FAILED:"CONNECTION_FAILED"}},59924:(e,t,n)=>{"use strict";n.d(t,{w:()=>r});const r={documentA:"documentA",documentB:"documentB",result:"result"}},14079:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});const r={USE_OPEN_DOCUMENT:"USE_OPEN_DOCUMENT",USE_FILE_DIALOG:"USE_FILE_DIALOG"}},46907:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,d:()=>o});var r=n(49568);const o={annotationsAndForms:"annotationsAndForms",assemble:"assemble",extract:"extract",extractAccessibility:"extractAccessibility",fillForms:"fillForms",modification:"modification",printHighQuality:"printHighQuality",printing:"printing"},i=Object.keys(o).reduce(((e,t)=>({...e,[t]:!0})),{});class a extends((0,r.mS)(i)){}},30006:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});const r={DRAW:"DRAW",IMAGE:"IMAGE",TYPE:"TYPE"}},3745:(e,t,n)=>{"use strict";n.d(t,{I:()=>r});const r={DEFAULT:"DEFAULT",EXTERNAL:"EXTERNAL",HISTORY:"HISTORY"}},61371:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});const r={POINT:"POINT",STROKE:"STROKE"}},30235:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});const r={TEXT_HIGHLIGHTER:"TEXT_HIGHLIGHTER",INK:"INK",INK_SIGNATURE:"INK_SIGNATURE",SIGNATURE:"SIGNATURE",STAMP_PICKER:"STAMP_PICKER",STAMP_CUSTOM:"STAMP_CUSTOM",SHAPE_LINE:"SHAPE_LINE",SHAPE_RECTANGLE:"SHAPE_RECTANGLE",SHAPE_ELLIPSE:"SHAPE_ELLIPSE",SHAPE_POLYGON:"SHAPE_POLYGON",SHAPE_POLYLINE:"SHAPE_POLYLINE",INK_ERASER:"INK_ERASER",NOTE:"NOTE",COMMENT_MARKER:"COMMENT_MARKER",TEXT:"TEXT",CALLOUT:"CALLOUT",PAN:"PAN",SEARCH:"SEARCH",DOCUMENT_EDITOR:"DOCUMENT_EDITOR",MARQUEE_ZOOM:"MARQUEE_ZOOM",REDACT_TEXT_HIGHLIGHTER:"REDACT_TEXT_HIGHLIGHTER",REDACT_SHAPE_RECTANGLE:"REDACT_SHAPE_RECTANGLE",DOCUMENT_CROP:"DOCUMENT_CROP",BUTTON_WIDGET:"BUTTON_WIDGET",TEXT_WIDGET:"TEXT_WIDGET",RADIO_BUTTON_WIDGET:"RADIO_BUTTON_WIDGET",CHECKBOX_WIDGET:"CHECKBOX_WIDGET",COMBO_BOX_WIDGET:"COMBO_BOX_WIDGET",LIST_BOX_WIDGET:"LIST_BOX_WIDGET",SIGNATURE_WIDGET:"SIGNATURE_WIDGET",DATE_WIDGET:"DATE_WIDGET",FORM_CREATOR:"FORM_CREATOR",LINK:"LINK",DISTANCE:"DISTANCE",PERIMETER:"PERIMETER",RECTANGLE_AREA:"RECTANGLE_AREA",ELLIPSE_AREA:"ELLIPSE_AREA",POLYGON_AREA:"POLYGON_AREA",CONTENT_EDITOR:"CONTENT_EDITOR",MULTI_ANNOTATIONS_SELECTION:"MULTI_ANNOTATIONS_SELECTION",MEASUREMENT:"MEASUREMENT",MEASUREMENT_SETTINGS:"MEASUREMENT_SETTINGS",ATTACHMENT_PREVIEW:"ATTACHMENT_PREVIEW"}},33091:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});const r={SINGLE:"SINGLE",DOUBLE:"DOUBLE",AUTO:"AUTO"}},64337:(e,t,n)=>{"use strict";n.d(t,{Y:()=>r});const r={ANNOTATION_EDITING:"annotation_editing",FORMS:"acro_forms",DIGITAL_SIGNATURES:"digital_signatures",DOCUMENT_COMPARISON:"comparison",DOCUMENT_EDITING:"document_editing",WEB_VIEWER:"web:viewer",WEB_ANNOTATION_EDITING:"web:annotation_editing",INSTANT:"instant",SERVER_OPT_OUT_ANALYTICS:"server:disable-analytics",UI:"user_interface",TEXT_SELECTION:"text_selection",ELECTRON:"web:electron",FORM_DESIGNER:"editable_forms",COMMENTS:"comments",REDACTIONS:"redaction",ELECTRONIC_SIGNATURES:"electronic_signatures",CONTENT_EDITING:"content_editing",MEASUREMENT_TOOLS:"measurement_tools",TEXT_COMPARISON:"text_comparison",IMAGE_DOCUMENT:"image_document",OCR:"ocr",PDF_A:"pdfa",COMPRESSION:"compression",IMAGE_CINVERSION:"image_conversion",LIBREOFFICE_WORD:"libreoffice_word",LINEARIZATION:"linearization",PDF_GENERATION:"pdf_generation"}},45666:(e,t,n)=>{"use strict";n.d(t,{$:()=>r,b:()=>o});const r={square:"square",circle:"circle",diamond:"diamond",openArrow:"openArrow",closedArrow:"closedArrow",butt:"butt",reverseOpenArrow:"reverseOpenArrow",reverseClosedArrow:"reverseClosedArrow",slash:"slash"},o=Object.values(r)},54694:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});const r={WHOLE:"whole",ONE:"oneDp",TWO:"twoDp",THREE:"threeDp",FOUR:"fourDp",HALVES:"1/2",QUARTERS:"1/4",EIGHTHS:"1/8",SIXTEENTHS:"1/16"}},35014:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});const r={INCHES:"in",MILLIMETERS:"mm",CENTIMETERS:"cm",POINTS:"pt"}},27959:(e,t,n)=>{"use strict";n.d(t,{_:()=>r});const r={INCHES:"in",MILLIMETERS:"mm",CENTIMETERS:"cm",POINTS:"pt",FEET:"ft",METERS:"m",YARDS:"yd",KILOMETERS:"km",MILES:"mi"}},1559:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});const r={FORM_DESIGNER_ERROR:"FORM_DESIGNER_ERROR",MEASUREMENT_ERROR:"MEASUREMENT_ERROR"}},8367:(e,t,n)=>{"use strict";n.d(t,{Qv:()=>r,ac:()=>o,ct:()=>i});const r={COMMENT:"COMMENT",RIGHT_POINTER:"RIGHT_POINTER",RIGHT_ARROW:"RIGHT_ARROW",CHECK:"CHECK",CIRCLE:"CIRCLE",CROSS:"CROSS",INSERT:"INSERT",NEW_PARAGRAPH:"NEW_PARAGRAPH",NOTE:"NOTE",PARAGRAPH:"PARAGRAPH",HELP:"HELP",STAR:"STAR",KEY:"KEY"},o={[r.COMMENT]:"comment",[r.RIGHT_POINTER]:"rightPointer",[r.RIGHT_ARROW]:"rightArrow",[r.CHECK]:"check",[r.CIRCLE]:"circle",[r.CROSS]:"cross",[r.INSERT]:"insert",[r.NEW_PARAGRAPH]:"newParagraph",[r.NOTE]:"note",[r.PARAGRAPH]:"paragraph",[r.HELP]:"help",[r.STAR]:"star",[r.KEY]:"key"},i=Object.keys(o).reduce(((e,t)=>(e[o[t]]=t,e)),{})},90820:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});const r={docx:"docx",xlsx:"xlsx",pptx:"pptx"}},20546:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});const r={PDFA_1A:"pdfa-1a",PDFA_1B:"pdfa-1b",PDFA_2A:"pdfa-2a",PDFA_2U:"pdfa-2u",PDFA_2B:"pdfa-2b",PDFA_3A:"pdfa-3a",PDFA_3U:"pdfa-3u",PDFA_3B:"pdfa-3b",PDFA_4:"pdfa-4",PDFA_4E:"pdfa-4e",PDFA_4F:"pdfa-4f"}},7516:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});const r={DOM:"DOM",EXPORT_PDF:"EXPORT_PDF"}},27634:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});const r={LOW:"LOW",MEDIUM:"MEDIUM",HIGH:"HIGH"}},87374:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});const r={smallerSize:"smallerSize",fasterProcessing:"fasterProcessing"}},68322:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});const r={SharePoint:"SharePoint",Salesforce:"Salesforce",Maui_Android:"Maui_Android",Maui_iOS:"Maui_iOS",Maui_MacCatalyst:"Maui_MacCatalyst",Maui_Windows:"Maui_Windows",FlutterForWeb:"FlutterForWeb",Electron:"Electron"}},30919:(e,t,n)=>{"use strict";n.d(t,{g:()=>r});let r=function(e){return e.NO="NO",e.VIA_VIEW_STATE="VIA_VIEW_STATE",e.VIA_BACKEND_PERMISSIONS="VIA_BACKEND_PERMISSIONS",e.LICENSE_RESTRICTED="LICENSE_RESTRICTED",e}({})},82047:(e,t,n)=>{"use strict";n.d(t,{M5:()=>c,N9:()=>u,Rq:()=>d});var r=n(58534),o=n(60416),i=n(95148),a=n(43556),s=n(26133),l=n(56540);const c={SignaturesList:r.gc,CreateSignature:r.nB,Bookmarks:r._r,StampsList:r.pw,CreateStamp:r.AV,ChatDialog:r.H_,DiffViewer:r.Mh,CommentThread:r._h,PrimaryToolbar:r.yg,SecondaryToolbar:r.Ur,PasswordDialog:r.ug,DocumentEditor:r.pu,Thumbnails:r.q_,Annotations:r.rB,Outline:r.Rc,Search:r.vj},u={SignaturesListDecorator:r.Nx,StampsListDecorator:r.qT,CreateStampDecorator:r.lu,CreateSignatureDecorator:r.Y8,BookmarksDecorator:o.j,ChatDialogDecorator:r.sr,CommentThreadDecorator:r.f8,PrimaryToolbarDecorator:e=>{let{content:t}=e;return t},SecondaryToolbarDecorator:e=>{let{content:t}=e;return t},PasswordDialogDecorator:r.hO,DocumentEditorDecorator:r.k8,ThumbnailsDecorator:i.f,AnnotationsDecorator:a.w,DiffViewerDecorator:s.z,OutlineDecorator:l.Q,SearchDecorator:e=>{let{content:t}=e;return t}},d=Object.fromEntries(Object.entries(c).map((e=>{let[t]=e;return[t,t]})))},81083:(e,t,n)=>{"use strict";n.d(t,{E:()=>r});const r={TOP:"TOP",BOTTOM:"BOTTOM",LEFT:"LEFT",RIGHT:"RIGHT",TOP_LEFT:"TOP_LEFT",TOP_RIGHT:"TOP_RIGHT",BOTTOM_RIGHT:"BOTTOM_RIGHT",BOTTOM_LEFT:"BOTTOM_LEFT"}},25028:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});const r={CONTINUOUS:"CONTINUOUS",PER_SPREAD:"PER_SPREAD",DISABLED:"DISABLED"}},69118:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});const r={CREDIT_CARD_NUMBER:"credit_card_number",DATE:"date",TIME:"time",EMAIL_ADDRESS:"email_address",INTERNATIONAL_PHONE_NUMBER:"international_phone_number",IP_V4:"ipv4",IP_V6:"ipv6",MAC_ADDRESS:"mac_address",NORTH_AMERICAN_PHONE_NUMBER:"north_american_phone_number",SOCIAL_SECURITY_NUMBER:"social_security_number",URL:"url",US_ZIP_CODE:"us_zip_code",VIN:"vin"}},37094:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});const r={TEXT:"text",PRESET:"preset",REGEX:"regex"}},71453:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});const r={SELECTED:"SELECTED",EDITING:"EDITING"}},26635:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});const r={IF_SIGNED:"IF_SIGNED",HAS_WARNINGS:"HAS_WARNINGS",HAS_ERRORS:"HAS_ERRORS",NEVER:"NEVER"}},21535:(e,t,n)=>{"use strict";n.d(t,{I:()=>r});const r={ANNOTATIONS:"ANNOTATIONS",BOOKMARKS:"BOOKMARKS",DOCUMENT_OUTLINE:"DOCUMENT_OUTLINE",THUMBNAILS:"THUMBNAILS",SIGNATURES:"SIGNATURES",LAYERS:"LAYERS",ATTACHMENTS:"ATTACHMENTS",CUSTOM:"CUSTOM"}},94045:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={START:"START",END:"END"}},495:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});const r={signatureOnly:"signatureOnly",signatureAndDescription:"signatureAndDescription",descriptionOnly:"descriptionOnly"}},85553:(e,t,n)=>{"use strict";n.d(t,{g:()=>r});const r={ELECTRONIC_SIGNATURES:"electronic_signatures",LEGACY_SIGNATURES:"legacy_signatures",NONE:"none"}},17796:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});const r={ALWAYS:"ALWAYS",NEVER:"NEVER",USING_UI:"USING_UI"}},9945:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});const r={LIGHT:"LIGHT",DARK:"DARK",AUTO:"AUTO"}},39168:(e,t,n)=>{"use strict";n.d(t,{h:()=>r});const r={TOP:"TOP",BOTTOM:"BOTTOM"}},13825:(e,t,n)=>{"use strict";n.d(t,{E:()=>r});const r={COMMENT_THREAD:"COMMENT_THREAD",ANNOTATIONS_SIDEBAR:"ANNOTATIONS_SIDEBAR"}},74963:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});const r={WITH_CTRL:"WITH_CTRL",ALWAYS:"ALWAYS",DISABLED:"DISABLED"}},96754:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});const r={AUTO:"AUTO",FIT_TO_WIDTH:"FIT_TO_WIDTH",FIT_TO_VIEWPORT:"FIT_TO_VIEWPORT",CUSTOM:"CUSTOM"}},63638:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>p,G2:()=>d,vy:()=>u});var r=n(38849),o=n(90243),i=n.n(o),a=n(23440),s=n(85410),l=n(14511);const c=(0,r.A)("I18n"),u=e=>{let t=e;return i().includes(t)||(t=(e=>e.split("-")[0])(t),c(i().includes(t),`The "${t}" locale is not supported. Available locales are: ${i().join(", ")}. You can also add "${t}" as a custom one with PSPDFKit.I18n.locales.push('${t}')`)),t};async function d(e){await(0,a.f)(e)}const p={locales:i(),messages:a.A,preloadLocalizationData:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof t.baseUrl&&(0,l.f4)(t.baseUrl);const r=(t.baseUrl?.endsWith("/")?t.baseUrl:`${t.baseUrl}/`)||(0,s.$_)(window.document);n.p=r;const o=u(e);await d(o)}}},90243:e=>{e.exports=["cs","cy","da","de","el","en-GB","en","es","fi","fr-CA","fr","hr","id","it","ja","ko","ms","nb-NO","nl","pl","pt-PT","pt","ru","sk","sl","sv","th","tr","uk","zh-Hans","zh-Hant"]},23440:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,f:()=>l});var r=n(38849),o=n(93900);const i=(0,r.A)("I18n"),a={},s=a;async function l(e){if(!(e in a))try{const t=await o.V[e]();a[e]=t.default}catch(t){i(!1,`Cannot find translations for "${e}". Please retry or add them manually to PSPDFKit.I18n.messages["${e}"]`)}return a[e]}},93900:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});const r={cs:()=>n.e(364).then(n.t.bind(n,59113,19)),cy:()=>n.e(590).then(n.t.bind(n,60647,19)),da:()=>n.e(751).then(n.t.bind(n,21424,19)),de:()=>n.e(931).then(n.t.bind(n,6060,19)),el:()=>n.e(341).then(n.t.bind(n,53482,19)),"en-GB":()=>n.e(351).then(n.t.bind(n,53010,19)),en:()=>Promise.resolve().then(n.t.bind(n,5496,19)),es:()=>n.e(866).then(n.t.bind(n,37503,19)),fi:()=>n.e(57).then(n.t.bind(n,50322,19)),"fr-CA":()=>n.e(15).then(n.t.bind(n,19506,19)),fr:()=>n.e(258).then(n.t.bind(n,46507,19)),hr:()=>n.e(928).then(n.t.bind(n,13753,19)),id:()=>n.e(529).then(n.t.bind(n,55782,19)),it:()=>n.e(969).then(n.t.bind(n,7638,19)),ja:()=>n.e(285).then(n.t.bind(n,41974,19)),ko:()=>n.e(576).then(n.t.bind(n,96765,19)),ms:()=>n.e(874).then(n.t.bind(n,36871,19)),"nb-NO":()=>n.e(234).then(n.t.bind(n,41533,19)),nl:()=>n.e(948).then(n.t.bind(n,7841,19)),pl:()=>n.e(870).then(n.t.bind(n,56339,19)),"pt-PT":()=>n.e(771).then(n.t.bind(n,90762,19)),pt:()=>n.e(262).then(n.t.bind(n,85403,19)),ru:()=>n.e(377).then(n.t.bind(n,95218,19)),sk:()=>n.e(556).then(n.t.bind(n,39681,19)),sl:()=>n.e(163).then(n.t.bind(n,75448,19)),sv:()=>n.e(758).then(n.t.bind(n,36514,19)),th:()=>n.e(902).then(n.t.bind(n,64955,19)),tr:()=>n.e(972).then(n.t.bind(n,61357,19)),uk:()=>n.e(930).then(n.t.bind(n,83575,19)),"zh-Hans":()=>n.e(225).then(n.t.bind(n,25988,19)),"zh-Hant":()=>n.e(630).then(n.t.bind(n,24645,19))}},46261:(e,t,n)=>{window&&(window.PSPDFKit=n(16315).default),e.exports=n(16315).default},38119:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});class r{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.events=e,this.listeners={}}on(e,t){if("function"!=typeof t)throw new TypeError("Listener must be a function");if(!this.supportsEvent(e))throw new TypeError(`Event '${e}' is not supported. Only supporting ${this.events.join(", ")}`);this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t)}off(e,t){if("function"!=typeof t)throw new TypeError("Listener must be a function");if(!this.supportsEvent(e))throw new TypeError(`Event '${e}' is not supported. Only supporting ${this.events.join(", ")}`);const n=this.listeners[e]||[];n.forEach(((e,r)=>{e===t&&n.splice(r,1)})),0===n.length&&delete this.listeners[e]}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(!this.supportsEvent(e))throw new TypeError(`Event '${e}' is not supported. Only supporting ${this.events.join(", ")}`);const o=this.listeners[e];void 0!==o&&o.forEach((e=>{e.call(null,...n)}))}supportsEvent(e){return 0===this.events.length||-1!==this.events.indexOf(e)}isListening(e){return e.some((e=>this.listeners[e]?.length>0))}}},18248:(e,t,n)=>{"use strict";n.d(t,{u:()=>c});var r=n(67136),o=n(49568),i=n(84445),a=n(5511),s=n(93386);class l{constructor(e,t){(0,r.A)(this,"localFormFieldsMapping",(0,o.T5)()),(0,r.A)(this,"onCreate",(e=>{this.localFormFieldsMapping=this.localFormFieldsMapping.set(e.id,e.name)})),(0,r.A)(this,"onUpdate",(e=>{this.onCreate(e)})),(0,r.A)(this,"onDelete",(e=>{this.localFormFieldsMapping=this.localFormFieldsMapping.delete(e.id)})),this.formFieldProvider=e,this.localFormFieldCallbacks=t}createBackendObject(e){return this.formFieldProvider.createFormField(e)}updateBackendObject(e){return this.formFieldProvider.updateFormField(e)}deleteBackendObject(e){return this.formFieldProvider.deleteFormField(e)}createStoreObjects(e){this.localFormFieldsMapping=this.localFormFieldsMapping.withMutations((t=>{e.forEach((e=>{t.set(e.id,e.name)}))})),this.localFormFieldCallbacks.createFormFields(e)}updateStoreObjects(e){this.localFormFieldsMapping=this.localFormFieldsMapping.withMutations((t=>{e.forEach((e=>{t.set(e.id,e.name)}))})),this.localFormFieldCallbacks.updateFormFields(e)}deleteStoreObjects(e){this.localFormFieldsMapping=this.localFormFieldsMapping.withMutations((t=>{e.forEach((e=>{t.delete(e)}))})),this.localFormFieldCallbacks.deleteFormFields(e)}validateObject(e){if(!e.name||"string"!=typeof e.name||!e.id||"string"!=typeof e.id)return!1;try{return(0,i.tf)(e),!0}catch(e){return!1}}getObjectById(e){const t=this.localFormFieldsMapping.get(e);return t?this.localFormFieldCallbacks.getFormFieldByName(t):null}getObjectId(e){return e.id}refresh(){this.localFormFieldCallbacks.refreshSignaturesInfo()}syncChanges(){return this.formFieldProvider.syncChanges()}}class c extends s.r{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.O.IMMEDIATE,o=arguments.length>3?arguments[3]:void 0;super(new l(e,t),n,o),(0,r.A)(this,"loadFormFields",(()=>{let e=null;return async()=>{e||(e=this.formFieldProvider.loadFormFields()),await e}})()),this.formFieldProvider=e}}},34609:(e,t,n)=>{"use strict";n.d(t,{I:()=>o,X:()=>i});var r=n(49568);function o(e){const t=e.defaultValues||{},n=e.prototype;n._defaultValues={...n._defaultValues||{},...t};const r=Object.keys(n._defaultValues);n._keys=r,n._indices={};for(let e=0;e<r.length;e++){const t=r[e];n._indices[t]=e}r.forEach((e=>{Object.defineProperty(n,e,{get(){return this.get(e)},set(t){this.set(e,t)}})}))}class i extends((0,r.mS)({})){constructor(e){super(e)}}},33728:(e,t,n)=>{"use strict";n.d(t,{jL:()=>d,Ay:()=>m,dx:()=>f});var r=n(67136),o=n(49568),i=n(79308),a=n(85409);function s(e,t){const n=t.record_rev,r=e.stagedRecordsChanges;if((0,a.V1)("number"==typeof n&&n>=0,"Tried to apply changes but the server responded with no `record_rev`"),(0,a.V1)(n>=e.localRecordsRev,"The server revision number is lower than the current one."),n<=e.localRecordsRev)return e;(0,a.V1)("number"==typeof t.previous_record_rev,"The payload must have a `previous_record_rev`"),(0,a.V1)(t.previous_record_rev>=e.localRecordsRev,"The payload's `previous_record_rev` is unknown to us, this means we missed out on changes.");let i=0;const s=e.requiredAttachmentIds;let l=(0,o.NZ)(),c=(0,o.B8)();const u=[],d=e.localRecordsContents.withMutations((e=>{let n;n={accepted:{created:t=>{let{id:n,permissions:o,group:s,isAnonymous:l}=t;(0,a.V1)(!e.has(n),"There's already a record with the newly created record id");const c=r.find((e=>e.id===n));if(!c)return;c.resolve(null);const{content:u}=c;e.set(n,{content:u,permissions:o,group:s,isAnonymous:l}),i++},updated:t=>{let{id:n,permissions:o,group:s,isAnonymous:l}=t;(0,a.V1)(e.has(n),"Tried to update a record that is not present");const c=r.find((e=>e.id===n));if(!c)return;c.resolve(!0);const{content:u}=c;e.set(n,{content:u,permissions:o,group:s,isAnonymous:l}),i++},deleted:t=>{(0,a.V1)(e.has(t),"Tried to delete a record that is not present");const n=r.find((e=>e.id===t));n&&(n.resolve(!0),e.delete(t),i++)}},rejected:(e,t)=>{let[n,o]=t;const d=r.find((e=>e.id===n));if(d)switch(i++,o){case"conflict":d.reject(new a.uE("The server rejected the change due to a conflict")),"created"!==e&&u.push(n);break;case"attachment_not_found":{const e=Object.keys(d.attachments),t=!s.intersect(e).isEmpty();if(d.attachments&&!t&&Object.keys(d.attachments).length>0){l=l.union(Object.keys(d.attachments)),c=c.push(d);break}}default:d.reject(new a.uE("The server rejected the change")),"created"!==e&&u.push(n)}},changes:{created:t=>{(0,a.V1)(!e.has(t.id),"The change set tried to add a record that is already present");const{content:n,permissions:r,group:o,isAnonymous:i}=t;e.set(t.id,{content:n,permissions:r,group:o,isAnonymous:i})},updated:t=>{(0,a.V1)(e.has(t.id),`The change set tried to update a record with id ${t.id} that was not present`);const{content:n,permissions:r,group:o,isAnonymous:i}=t;e.set(t.id,{content:n,permissions:r,group:o,isAnonymous:i}),u.push(t.id)},deleted:t=>{(0,a.V1)(e.has(t),`The change set you tried to delete a record with id ${t} that was not present`),e.delete(t),u.push(t)}}},t.accepted.created.forEach(n.accepted.created),t.accepted.updated.forEach(n.accepted.updated),t.accepted.deleted.forEach(n.accepted.deleted),["created","updated","deleted"].forEach((e=>{Object.entries(t.rejected[e]).forEach((t=>{let r=t[1];"conflict"!==r&&"attachment_not_found"!==r&&(r=null),n.rejected(e,[t[0],r])}))})),t.changes.created.forEach(n.changes.created),t.changes.updated.forEach(n.changes.updated),t.changes.deleted.forEach(n.changes.deleted)}));(0,a.V1)(i===r.size,"Some changes were not processed by the server");const p=function(e,t){const n=e.localRecordsChanges.filter((e=>"created"===e.type||!t.includes(e.id)||(e.reject(new a.uE("Request was cleared because a newer revision arrived.")),!1)));return e.set("localRecordsChanges",n)}(e,(0,o.B8)(u));return p.withMutations((e=>e.set("requiredAttachmentIds",l).update("localRecordsChanges",(e=>e.merge(c))).set("stagedRecordsChanges",(0,o.B8)()).set("localRecordsContents",d).set("localRecordsRev",n)))}class l{constructor(e,t){(0,r.A)(this,"_currentDelay",0),this._initialDelay=e,this._delayGrowthCap=t,this._currentDelay=e}schedule(e){const t=this._currentDelay;this.cancel(),t<this._delayGrowthCap&&(this._currentDelay+=1e3+Math.ceil(Math.random()*t)),this._timeout=setTimeout((()=>e()),t)}cancel(){this._timeout&&(clearTimeout(this._timeout),this._timeout=null)}reset(){this._currentDelay=this._initialDelay,this.cancel()}}var c=n(54781),u=n(6807);const d=3e4;let p=0;const h=new Set;function f(){h.forEach((e=>{e._currentRequest&&!e._currentRequestHasChanges&&(e._abortCurrentRequest(),setTimeout((()=>e.nextCycle().catch(console.log)),0))}))}class m{constructor(e){let{getState:t,setState:n,onChanges:o,onAcceptedRecords:i,longPollingTimeout:a=d,backoffTimer:s=new l(1e3,6e4),RequestClass:u=c.A}=e;(0,r.A)(this,"onDocumentHandleConflictCallback",(()=>{})),(0,r.A)(this,"_lastAbortedRequest",null),(0,r.A)(this,"_handleBeforeUnload",(()=>{this._abortCurrentRequest()})),this._currentRequestHasChanges=!1,this._isDestroyed=!1,this.getState=t,this.setState=n,this.onChangesCallback=o||(()=>{}),this.onAcceptedRecordsCallback=i||(()=>{}),this.RequestClass=u,this._longPollingTimeout=a,this._backoffTimer=s,window.addEventListener("beforeunload",this._handleBeforeUnload),h.add(this)}async nextCycle(){let e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._longPollingTimeout;if(this._isDestroyed)return;if(this._currentRequest&&this._currentRequestHasChanges)return(0,a.V1)(this._currentRequestPromise,"Expected to have request running but no one was ever made."),this._currentRequestPromise;this._currentRequest&&(this._abortCurrentRequest(),this._backoffTimer&&this._backoffTimer.cancel());const r=this.getState(),l=r.localRecordsChanges;this.setState(r.set("localRecordsChanges",(0,o.B8)()).set("stagedRecordsChanges",l));const c=this._createSyncRequest(),d=!l.isEmpty(),h=new Promise(((n,r)=>{e=n,t=r})),f=(0,i.v4)(),m={request_id:f,record_rev:r.localRecordsRev,changes:{created:l.filter((e=>"created"===e.type)).map((e=>{let{id:t,content:n,group:r,isAnonymous:o}=e;const i=n&&"isAnonymous"in n?n.isAnonymous:o;return{id:t,..."boolean"==typeof i&&{isAnonymous:i},...n&&{content:n},...r&&{group:r}}})).toJS(),updated:l.filter((e=>"updated"===e.type)).map((e=>{let{id:t,content:n,group:r,isAnonymous:o}=e;const i=n&&"isAnonymous"in n?n.isAnonymous:o;return{id:t,..."boolean"==typeof i&&{isAnonymous:i},...n&&{content:n},...r&&{group:r}}})).toJS(),deleted:l.filter((e=>"deleted"===e.type)).map((e=>e.id)).toJS()},timeout:d?0:n},g=r.requiredAttachmentIds.isEmpty()?m:function(e,t){const n=new FormData;return n.append("sync",JSON.stringify(e)),t.requiredAttachmentIds.forEach((e=>{n.append(e,t.localRecordsChanges.find((t=>t.attachments.hasOwnProperty(e)))?.attachments[e])})),n}(m,r);return c.request({method:"POST",data:g}).then((t=>{void 0!==t.request_id&&(0,a.V1)(t.request_id===f,"The response doesn't match the client request ID"),(0,a.V1)(c!==this._lastAbortedRequest,"A manually aborted request still managed to resolve."),(0,a.V1)(c===this._currentRequest,"Expected the resolved request to be the latest created request."),(0,a.V1)(!this._isDestroyed,"The instance is destroyed yet the request managed to resolve.");const n=this.getState(),r=s(n,{...t,previous_record_rev:n.localRecordsRev});this.setState(r),this._currentRequestHasChanges=!1,this._currentRequest=null,p-=1,e();try{t.record_rev>n.localRecordsRev&&(this.onAcceptedRecordsCallback(t.accepted),this.onChangesCallback(t.changes)),this._scheduleNextCycle(!1,(()=>!r.localRecordsChanges.isEmpty()))}catch(e){throw p+=1,e}})).catch((e=>{if("Outdated layer handle"===e.message&&!this._isDestroyed)return this.onDocumentHandleConflictCallback(),this.destroy(),t();c===this._lastAbortedRequest?t(new a.uE("A manually aborted request still managed to reject.")):c!==this._currentRequest?t(new a.uE("Expected the reject request to be the latest created request.")):this._isDestroyed?t(new a.uE("The instance is destroyed yet the request managed to reject.")):t(new a.uE("Pushing changes failed"+(e&&e.message?`: ${e.message}`:"")));const n=(0,u.e)({oldChanges:l,newChanges:this.getState().localRecordsChanges});this.setState(r.set("localRecordsChanges",n).set("stagedRecordsChanges",(0,o.B8)())),this._currentRequestHasChanges=!1,this._currentRequest=null,p-=1,this._scheduleNextCycle(!0)})),p+=1,p>3&&(0,a.R8)(`PSPDFKit: detected ${p} open sync requests. This might be due to multiple PSPDFKit for Web instances running in parallel, did you forget to \`unload\` any of them? Due to the browser limit of maximum number of default simultaneous persistent connections per server, this might cause subsequent requests to be queued and processed later which might result in a slowdown for your app.`),this._currentRequest=c,this._currentRequestHasChanges=d,this._currentRequestPromise=h,h}setOnDocumentHandleConflictCallback(e){this.onDocumentHandleConflictCallback=e}destroy(){this._abortCurrentRequest(),window.removeEventListener("beforeunload",this._handleBeforeUnload),this._isDestroyed=!0,h.delete(this)}log(e){(0,a.Rm)(e)}_scheduleNextCycle(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>!0;const n=()=>{this.nextCycle().catch(this.log)};e?this._backoffTimer.schedule(n):(this._backoffTimer.reset(),(this._longPollingTimeout>0||t())&&n())}_createSyncRequest(){const{serverURL:e,authPayload:t}=this.getState().requestInfo;return(0,a.V1)("string"==typeof e,"Cannot call request without serverURL"),(0,a.V1)(t&&"string"==typeof t.auth_token,"Cannot call request without authPayload"),new this.RequestClass(e,t.auth_token)}_abortCurrentRequest(){this._currentRequest&&(p-=1,this._lastAbortedRequest=this._currentRequest,this._currentRequest.abort(),this._currentRequest=null)}}},6807:(e,t,n)=>{"use strict";n.d(t,{e:()=>o});var r=n(85409);function o(){let{oldChanges:e,newChanges:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e;return t.forEach((e=>{n=function(){let{oldChanges:e,newChange:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t,o=e.filter((e=>{if(e.id===t.id){switch(t.type){case"updated":if("created"===e.type){n=i(e,t.set("type","created"));break}if("updated"===e.type){n=i(e,t);break}case"deleted":if("created"===e.type){e.resolve(),t.resolve(),n=null;break}if("updated"===e.type){n=i(e,t);break}default:e.reject(new r.uE("Request was cleared because a more recent update was queued."))}return!1}return!0}));n&&(o=o.push(n));return o}({oldChanges:n,newChange:e})})),n}function i(e,t){const n=e.resolve,r=t.resolve,o=e.reject,i=t.reject;return t.set("resolve",(e=>{n(e),r(e)})).set("reject",(e=>{o(e),i(e)}))}},47745:(e,t,n)=>{"use strict";n.d(t,{C:()=>i,d:()=>o});var r=n(85409);function o(e,t){let n;return n=e instanceof Error?e:new Error(e),Object.setPrototypeOf(n,o.prototype),n.reason=t,n}function i(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new o(n?`Some changes could not be ${t?"synced":"saved"} to backend: ${n}`:`Some changes could not be ${t?"synced":"saved"} to backend.`,e)}o.prototype=Object.create(r.uE.prototype,{name:{value:"PSPDFKitSaveError",enumerable:!1}})},78236:(e,t,n)=>{"use strict";n.d(t,{N:()=>o,n:()=>r});const r=1,o=2},57916:(e,t,n)=>{"use strict";n.d(t,{a:()=>s});var r=n(67136),o=n(49568),i=n(85409),a=n(50960);class s{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4?arguments[4]:void 0;if(this.examples=t,this.customStyles=n,this.document=a?a.ownerDocument:e,this.wrapper=e.createElement("div"),this.wrapper.setAttribute("aria-hidden","true"),this.wrapper.className=r,this._setStyles(this.wrapper,{...s.defaultWrapperStyles,...n}),t instanceof o.B8)t.forEach((t=>{const n="string"==typeof t?t:"",r=e.createElement("span");r.setAttribute("aria-hidden","true"),r.style.display="inline-block",r.style.whiteSpace="pre-wrap",r.innerText=n,this.wrapper.appendChild(r)}));else{const e="string"==typeof t?t:"";this.wrapper.innerHTML=e}const l=a||this.document.documentElement;(0,i.V1)(l,"documentElement must not be null"),l.appendChild(this.wrapper)}measure(){const e=a.rw.fromClientRect(this.wrapper.getBoundingClientRect()),t=e.getLocation().scale(-1);return this.examples instanceof o.B8?this.examples.map(((e,n)=>{const r=this.wrapper.childNodes[n];return a.rw.fromClientRect(r.getBoundingClientRect()).translate(t)})):(0,o.B8)([e.translate(t)])}remove(){this.wrapper.parentNode&&this.wrapper.parentNode.removeChild(this.wrapper),this.wrapper=null,this.examples=null}_setStyles(e,t){for(const n in t)e.style[n]=t[n]}}(0,r.A)(s,"defaultWrapperStyles",Object.freeze({maxWidth:"none",display:"inline-block",position:"absolute",height:"auto",width:"auto",margin:"0",padding:"0",whiteSpace:"nowrap",top:"-10000px",left:"-10000px",fontSize:"80px",fontWeight:"normal"}))},46692:(e,t,n)=>{"use strict";n.d(t,{Wd:()=>D,Z:()=>P,wf:()=>A});var r=n(85409),o=n(49568),i=n(7737),a=n(84997),s=n(51946),l=n(76117),c=n(83145),u=n(38849),d=n(53080),p=n(89574),h=n(75439),f=n(13217),m=n(14063),g=n(4939),v=n(42361),y=n(89055),b=n(36899),w=n(88140),x=n(46491),S=n(46395),_=n(39582),C=n(64337);const E=(0,u.A)("Annotations"),k="The API you're trying to use requires a annotation editing license. Annotation Editing is a component of Nutrient Web SDK and thus sold separately.\nhttps://pspdfkit.com/guides/web/current/annotations/introduction-to-annotations/",z="WidgetAnnotation can only be modified if you are using Standalone setup or with Instant turned on. If you are using server backed setup, make sure `instant` is set to `true` in configuration.",P="The API you're trying to use requires a measurement license. Measurement is a component of Nutrient Web SDK and sold separately.";class A extends g.i{constructor(e,t){super(t().annotationManager),this.dispatch=e,this.getState=t}async create(e,t){const n=this.getState(),o=e.map((e=>{T(n,e,"create");const o=e.id;if("string"==typeof o&&E(!n.annotations.has(o),`Annotation id (${o}) is already used.`),e instanceof s.sb&&t){D(n,e)||E(t.some((t=>t instanceof b.zB&&t.name===e.formFieldName)),`Widget orphan: The widget annotation can't be created because no form field was found with the name '${e.formFieldName}'. Please ensure that you create the corresponding form field together with the widget via instance.create([widget, formField]).`)}const{annotationCreatorName:i,annotationCreatorNameReadOnly:a}=n;if(e.creatorName&&e.creatorName!==i&&a)throw new r.uE("The annotation creator name is different from the one set on the JWT.");N(e);let l=e.withMutations((t=>{t.merge((0,p.mN)(n.set("currentItemPreset",null))),["name","id","creatorName","createdAt","updatedAt"].map((n=>e[n]&&t.set(n,e[n])))}));if(e instanceof s.sb&&e.group)throw new r.uE("If you want to define the `group` of this widget annotation, pass it to the corresponding form field instead. Widget annotations inherit the `group` from their form field.");if(l instanceof s.sb&&(l=l.delete("group")),e instanceof s.sb){const n=this.getState,o=t?.some((t=>t instanceof b.zB&&t.name===e.formFieldName));if(o&&!!D(n(),e))throw new r.uE(`The widget annotation can't be created because the form field it'll be created with has a duplicated form field name '${e.formFieldName}'. Please ensure the form field name is unique.`);setTimeout((()=>{E(l instanceof s.sb,"Expected widget annotation");null==D(n(),l)&&(this.dispatch((0,h.eS)(l)),(0,r.R8)(`Widget orphan: The widget annotation has been deleted because no form was field found with the name ${l.formFieldName} after 500ms. Please ensure that once instance.create() resolves, a corresponding form field is created with instance.create(). (See: https://www.nutrient.io/api/web/PSPDFKit.Instance.html#create)`))}),500)}return l=j(l),l}));return this.dispatch((0,h.Iy)(o.filter((e=>!(e instanceof Error))))),this.autoSave(),(0,_.U)(o)}async update(e){const t=this.getState(),n=e.map((e=>{T(t,e,"update"),E("string"==typeof e.id,"The annotation you passed to Instance.update() has no id.\nPlease use Instance.create() first to assign an id.");const n=t.annotations.get(e.id);E(n,"An annotation that does not exist was updated. This is probably caused by a sync conflict when Instant is enabled.\nThe update of this annotation was skipped."),E(t.backend),t.backend.isCollaborationPermissionsEnabled()||e.group===n.group&&e.isEditable===n.isEditable&&e.isDeletable===n.isDeletable&&e.canSetGroup===n.canSetGroup||(e=e.set("group",n.group).set("isEditable",n.isEditable).set("isDeletable",n.isDeletable).set("canSetGroup",n.canSetGroup),(0,r.R8)("`group`, `isEditable`, `isDeletable` and `canSetGroup` are only relevant when Collaboration Permissions are enabled in server backed setup. You do not have it enabled so these values are set to `undefined`."));if(!e.delete("group").equals(n.delete("group"))&&!(0,w.q2)(n,t))throw new r.uE("You don't have permission to update this annotation.");if(e instanceof s.sb&&e.group!==n.group)throw new r.uE("The `group` property of widget annotations is read only and can't be updated directly. If you want to do that you should update the `group` property of the connected form field and this annotation will inherit that `group`.");if(e.group!==n.group&&!(0,w.ox)(n,t))throw new r.uE("You don't have permission to update the `group` of this annotation.");if(e.isEditable!==n.isEditable||e.isDeletable!==n.isDeletable||e.canSetGroup!==n.canSetGroup)throw new r.uE("You can't update `isEditable`, `canSetGroup` or `isDeletable` since they are read only properties which depend on the `group` property.");if(e.creatorName!==n.creatorName&&t.annotationCreatorNameReadOnly)throw new r.uE("You can't change the creatorName of an annotation if it was already set on the JWT.");const o=(e=j(e)).set("updatedAt",new Date);return N(o),o}));return n.length>0&&(0,i.vA)((()=>{n.forEach((e=>{e instanceof Error||this.dispatch((0,h.g_)(e))})),this.autoSave()})),(0,_.U)(n)}async delete(e){const t=this.getState(),n=e.map((e=>{T(t,e,"delete");const n=t.annotations.get(e.id);if(E(n,`No annotation with id ${e.id} found.`),!(0,w.db)(n,t))throw new r.uE("You don't have permission to delete this annotation.");return e}));return n.length>0&&(0,i.vA)((()=>{n.forEach((e=>{e instanceof Error||this.dispatch((0,h.eS)(e))})),this.autoSave()})),(0,_.U)(n)}async ensureChangesSaved(e){E("string"==typeof e.id,"The annotation you passed to Instance.ensureChangesSaved() has no id.\nPlease use Instance.create() first to assign an id.");const{annotationManager:t}=this.getState();return E(t),await t.ensureObjectSaved(e)}async getObjectById(e){E("string"==typeof e,"The supplied id is not a valid id.");const{annotations:t,features:n}=this.getState();return(0,y.UX)(n)?t.get(e):null}}function D(e,t){let{annotations:n,formFields:r}=e;const o=n.get(t.id);let i=t.formFieldName;return null!=o&&null!=o.formFieldName&&(i=o.formFieldName),null!=i?r.get(i):null}function T(e,t,n){const{features:o}=e;if(!(0,y.UX)(o)){if(!(t instanceof l.Eo||t instanceof s.vU))throw new r.uE(`Annotations: ${k}`);if(!0===t.isSignature&&!o.includes(C.Y.ELECTRONIC_SIGNATURES))throw new r.uE("Annotations: The API you're trying to use requires either an electronic signatures or annotation editing license. Electronic Signatures and Annotation Editing are components of Nutrient Web SDK and thus sold separately.\nhttps://pspdfkit.com/guides/web/current/annotations/introduction-to-annotations/");if(!t.isSignature||!o.includes(C.Y.ELECTRONIC_SIGNATURES))throw new r.uE(`Annotations: ${k}`)}let i="";t.id&&(i=` with id "${t.id}"`),t instanceof s.sb&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{features:n}=e;E(n.includes(C.Y.FORM_DESIGNER),(t||"")+v.Pf),E((0,y.ah)(e.backend),z)}(e,`Tried to ${n} a widget annotation${i}. Widget annotations are part of forms. `),E(!(t instanceof c.A)||o.includes(C.Y.REDACTIONS),`Tried to ${n} a redaction annotation${i}. ${d.K}`),E(!(t instanceof l.pP&&t.isMeasurement())||o.includes(C.Y.MEASUREMENT_TOOLS),`Tried to ${n} a measurement annotation${i}. ${P}`)}function I(e){E(e instanceof l.rw,"`boundingBox` must be an instance of PSPDFKit.Geometry.Rect");for(const[t,n]of e)E("number"==typeof n,`invalid value \`${n}\` for \`boundingBox.${t}\``)}function M(e){E(e instanceof l.bR,"`startPoint` and `endPoint` must be instances of PSPDFKit.Geometry.Point");for(const[t,n]of e)E("number"==typeof n,`invalid value \`${n}\` for \`point.${t}\``)}function N(e){if(E(e instanceof s.YH,"Invalid annotation"),E("number"==typeof e.pageIndex,"`pageIndex` must be a number"),E("number"==typeof e.opacity,"`opacity` must be a number"),E("boolean"==typeof e.noView,"`noView` must be a boolean"),E("boolean"==typeof e.noPrint,"`noPrint` must be a boolean"),E("boolean"==typeof e.noZoom,"`noZoom` must be a boolean"),E("boolean"==typeof e.hidden,"`hidden` must be a boolean"),E(null==e.customData||(0,r.Qd)(e.customData)&&(0,r.Wj)(e.customData),"`customData` must be a serializable object"),I(e.boundingBox),"text"in e&&null!=e.text&&(E("object"==typeof e.text&&null!==e.text,"`text` is not an object with properties `format` and `value`"),E("plain"===e.text.format||"xhtml"===e.text.format,"Invalid text format"),E("string"==typeof e.text.value,"`text.value` must be a string")),e instanceof l.s9&&E("plain"===e.text.format,"Invalid text format. Only `plain` format is supported"),e instanceof s.sb){if(e.additionalActions)for(const[t,n]of Object.entries(e.additionalActions))E("onBlur"===t||"onFocus"===t||"onInput"===t||"onFormat"===t||"onChange"===t,`Invalid attribute ${t} in \`additionalActions\`. Supported attributes: \`onBlur\`, \`onFocus\`, \`onInput\`, \`onFormat\`, \`onChange\``),E(n instanceof x.e,`Invalid attribute type of ${t} in \`additionalActions\`. ${t} must be of type \`PSPDFKit.Actions.JavaScriptAction\``);E("string"==typeof e.formFieldName&&e.formFieldName.length>0,"Annotation attribute `formFieldName` must be of type `string` and larger than 0 characters")}if((e instanceof s.sb||e instanceof s.dh)&&(null!=e.isItalic&&E("boolean"==typeof e.isItalic,"Annotation attribute `isItalic` must be of type `boolean`"),null!=e.isBold&&E("boolean"==typeof e.isBold,"Annotation attribute `isBold` must be of type `boolean`"),null!=e.verticalAlign&&E("string"==typeof e.verticalAlign&&("top"===e.verticalAlign||"center"===e.verticalAlign||"bottom"===e.verticalAlign),"Annotation attribute `verticalAlign` must be of type `string` and either `top`, `center`, or `bottom`"),null!=e.horizontalAlign&&E("string"==typeof e.horizontalAlign&&("left"===e.horizontalAlign||"center"===e.horizontalAlign||"right"===e.horizontalAlign),"Annotation attribute `horizontalAlign` must be of type `string` and either `left`, `center`, or `right`"),null!=e.borderWidth&&E("number"==typeof e.borderWidth,"Annotation attribute `borderWidth` must be of type `number`"),null!=e.borderStyle&&E(e.borderStyle===S.k.solid||e.borderStyle===S.k.dashed||e.borderStyle===S.k.beveled||e.borderStyle===S.k.inset||e.borderStyle===S.k.underline,"Annotation attribute `borderStyle` must be one of `solid`, `dashed`, `beveled`, `inset`, `underline`"),null!=e.font&&E("string"==typeof e.font&&e.font.length>0,"Annotation attribute `font` must be of type `string` and larger than 0 characters."),null!=e.fontSize&&E("number"==typeof e.fontSize||"auto"===e.fontSize,"Annotation attribute `fontSize` must be of type `number` or the string `auto`")),["fillColor","backgroundColor","fontColor","color","borderColor","strokeColor"].forEach((t=>{e.has(t)&&null!==e.get(t)&&E(e.get(t)instanceof l.Q1,`\`${t}\` must be an instance of PSPDFKit.Color`)})),e.has("lines")&&(E("lines"in e&&e.lines instanceof o.B8,"lines must be an instance of PSPDFKit.Immutable.List"),e.lines.forEach(((e,t)=>{E(e instanceof o.B8,"line must be an instance of PSPDFKit.Immutable.List"),e.some(((e,n)=>{E(e instanceof f.A,`found an invalid DrawingPoint at index ${n} for line ${t}`)}))}))),e instanceof s.tr&&E(e.has("rects"),"Text markup annotations must have `rects`"),e instanceof s.xY&&E(m.qm[e.stampType],`Unknown stamp annotation stampType: \`${e.stampType}\``),e.has("rects")&&(E("rects"in e&&e.rects instanceof o.B8,"rects must be an instance of `PSPDFKit.Immutable.List`"),E(e.rects.size>0,"rects must be contain at least one rect"),e.rects.forEach(I)),e.has("startPoint")&&(E("startPoint"in e&&e.startPoint instanceof l.bR,"startPoint must be an instance of `PSPDFKit.Immutable.Point`"),M(e.startPoint)),e.has("endPoint")&&(E("endPoint"in e&&e.endPoint instanceof l.bR,"endPoint must be an instance of `PSPDFKit.Immutable.Point`"),M(e.endPoint)),e.has("rotation")){const t=e.rotation;e instanceof s.sb?E(0===t||90===t||180===t||270===t,"`rotation` must be of type `number` and one of 0, 90, 180, or 270."):(e instanceof s.dh||e instanceof s.xY||e instanceof s.vU)&&E(Math.abs(t)%1==0,"`rotation` must be an integer")}}function O(e){return e instanceof NodeList?e[0].nodeName.toLowerCase():e.nodeName.toLowerCase()}function R(e,t){t instanceof NodeList?t.forEach((t=>{e.appendChild(t.cloneNode(!0))})):e.appendChild(t)}function j(e){let t=e;if(e instanceof s.dh&&"xhtml"===e.text.format){let n,o,i;E(t instanceof s.dh,"Expected TextAnnotation");try{n=(new DOMParser).parseFromString(e.text.value,"text/html")}catch(e){throw new r.uE("TextAnnotation text value must be a valid xhtml string.")}if(n=n.firstChild,"parsererror"===n?.nodeName)throw new r.uE("TextAnnotation text value must contain a valid xhtml string.");n&&"#comment"===O(n)&&(n=n.nextSibling),n&&"html"===O(n)&&(n=n.firstChild),n&&"head"===O(n)&&(n=n.nextSibling),n&&"body"===O(n)&&(n=n.childNodes.length>1?n.childNodes:n.firstChild,o=document.createElement("div")),!n||"div"!==O(n)||"length"in n&&0!==n.length||(n=n.firstChild,o=document.createElement("div"));const l=n instanceof NodeList;n&&"p"!==O(n)?((0,r.R8)("TextAnnotation text value must be wrapped in <p> tags if the format is `xhtml`."),i=document.createElement("p"),R(i,n),o?o.appendChild(i):o=i):l&&o&&n?R(o,n):o=n,t=t.set("text",{format:"xhtml",value:a.A.sanitize(l?o.innerHTML:o.outerHTML)}),e.fontColor&&((0,r.R8)("A TextAnnotation with rich text also has a 'fontColor' property. If the rich text has an inline span element that sets the color, you can ignore this warning.\n\n      Example: <p><span style=\"color: #ff0000;\">your text</span></p>"),t=t.set("fontColor",null)),e.text.value||(t=t.set("text",{format:"xhtml",value:'<p><span style="color: #000000"></span></p>'}))}return t}},4939:(e,t,n)=>{"use strict";n.d(t,{i:()=>o});var r=n(85409);class o{constructor(e){this._objectManager=e}create(e,t){return Promise.reject(new r.uE("create() is not implemented"))}update(e,t){return Promise.reject(new r.uE("update() is not implemented"))}delete(e){return Promise.reject(new r.uE("delete() is not implemented"))}getObjectById(e){return Promise.resolve(null)}ensureChangesSaved(e){throw new r.uE("ensureChangesSaved() is not implemented")}hasUnsavedChanges(){return!!this._objectManager&&this._objectManager.hasUnsavedChanges()}manualSave(e){return this._objectManager?this._objectManager.manualSave(e):Promise.resolve()}autoSave(){this._objectManager&&this._objectManager.autoSave()}getEventEmitter(){return this._objectManager?this._objectManager.eventEmitter:null}lockSave(){return this._objectManager?this._objectManager.lockSave():()=>{}}}},42361:(e,t,n)=>{"use strict";n.d(t,{PC:()=>b,Pf:()=>w,W4:()=>z,fu:()=>C,rZ:()=>S,z8:()=>x});var r=n(6163),o=n(49568),i=n(85409),a=n(7737),s=n(38849),l=n(83720),c=n(89055),u=n(83877),d=n(60156),p=n(4939),h=n(88140),f=n(46491),m=n(39582),g=n(76117),v=n(36899),y=n(64337);const b="The API you're trying to use requires a forms license. Forms is a component of Nutrient Web SDK and thus sold separately.\nhttps://pspdfkit.com/guides/web/current/forms/introduction-to-forms/",w="The API you're trying to use requires a license that includes the Form Creator component on standalone mode or with PSPDFKit Instant. This is a separate component of Nutrient Web SDK and thus sold separately.\nhttps://pspdfkit.com/guides/web/current/forms/introduction-to-forms/",x="The API you're trying to use is only available when using the standalone mode or with PSPDFKit Instant.",S="The API you're trying to use is not available when `disableForms` is set to `true`.",_=(0,s.A)("Forms");class C extends p.i{constructor(e,t){super(t().formFieldManager),this.dispatch=e,this.getState=t}async create(e,t){const n=[],i=this.getState();E(i,"Tried to create a form field. ");const s=e.map((e=>{try{const o=e.id;"string"==typeof o&&_(!(0,l.aR)(i,o),`Form field id (${o}) is already used.`),k(e,i,t);let a="string"==typeof o?e:e.set("id",(0,r.Z0)());if(_(i.backend),_(i.formFieldValueManager),i.backend.isCollaborationPermissionsEnabled()&&!e.group&&i.group!==i.backend.getDefaultGroup()&&(a=a.set("group",i.group)),void 0!==e.value||void 0!==e.values){const t=new d.A({name:e.name,value:void 0!==e.value?e.value:e.values});n.push(t)}return a}catch(e){return e}}));return(0,a.vA)((()=>{s.forEach((e=>{e instanceof Error||(this.dispatch((0,u.iJ)(e)),this.autoSave())}))})),n.forEach((e=>{this.dispatch((0,u.$D)((0,o.B8)([e]))),_(i.formFieldValueManager),i.formFieldValueManager.createObject(e),i.formFieldValueManager.autoSave()})),(0,m.U)(s)}async update(e,t){const n=this.getState();_(n.formFieldValueManager);const r=e.map((e=>{try{E(n,"Tried to update a form field. "),_("string"==typeof e.id,"The form field you passed to Instance.update() has no id.\n      Please use Instance.create() first to assign an id."),k(e,n,t);const r=(0,l.aR)(n,e.id);_(r,"A form field that does not exist was updated. This is probably caused by a sync conflict when Instant is enabled.\nThe update of this form field was skipped."),_(n.backend),n.backend.isCollaborationPermissionsEnabled()||e.group===r.group&&e.isEditable===r.isEditable&&e.isDeletable===r.isDeletable&&e.canSetGroup===r.canSetGroup&&e.isFillable===r.isFillable||(e=e.set("group",r.group).set("isEditable",r.isEditable).set("isDeletable",r.isDeletable).set("canSetGroup",r.canSetGroup).set("isFillable",r.isFillable),(0,i.R8)("`group`, `isEditable`, `isDeletable`, `isFillable` and `canSetGroup` are only relevant when Collaboration Permissions are enabled in server backed setup. You do not have it enabled so these values are set to `undefined`."));if(!e.delete("group").equals(r.delete("group"))&&!(0,h.Nm)(r,n))throw new i.uE("You don't have permission to update this form field.");if(e.group!==r.group&&!(0,h.ox)(r,n))throw new i.uE("You don't have permission to update the `group` of this form field.");if(e.isEditable!==r.isEditable||e.isDeletable!==r.isDeletable||e.canSetGroup!==r.canSetGroup||e.isFillable!==r.isFillable)throw new i.uE("You can't update `isFillable`, `isEditable`, `canSetGroup` or `isDeletable` since they are read only properties which depend on the `group` property.");return e}catch(e){return e}}));return(0,a.vA)((()=>{r.forEach((e=>{e instanceof Error||(this.dispatch((0,u.rl)(e)),this.autoSave())}))})),(0,m.U)(r)}async delete(e){const t=this.getState();E(t,"Tried to delete a form field. ");const n=e.map((e=>{try{const n=(0,l.aR)(t,e.id);if(_(n,`There is no form field with id '${e.id}'`),_(t.formFieldValueManager),!(0,h.Y9)(n,t))throw new i.uE("You don't have permission to delete this form field.");return void 0===n.value&&void 0===n.values||(t.formFieldValueManager?.deleteObject(new d.A({name:n.name,value:void 0!==n.value?n.value:n.values})),t.formFieldValueManager.autoSave()),e}catch(e){return e}}));return(0,a.vA)((()=>{n.forEach((e=>{e instanceof Error||(this.dispatch((0,u.jE)(e)),this.autoSave())}))})),(0,m.U)(n)}async ensureChangesSaved(e){_("string"==typeof e.id,"The form field you passed to Instance.ensureSaved() has no id.\n Please use Instance.create() first to assign an id.");const{formFieldManager:t}=this.getState();return _(t),await t.ensureObjectSaved(e)}async getObjectById(e){return _("string"==typeof e,"The supplied id is not a valid id."),(0,l.aR)(this.getState(),e)}}function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{features:n,formsEnabled:r}=e;_(n.includes(y.Y.FORMS),(t||"")+b),_(r,(t||"")+S),_(n.includes(y.Y.FORM_DESIGNER),(t||"")+w),_((0,c.ah)(e.backend),x)}function k(e,t,n){if(e.additionalActions)for(const[t,n]of Object.entries(e.additionalActions))_("onCalculate"===t||"onChange"===t||"onFormat"===t||"onInput"===t,`Invalid attribute ${t} in \`additionalActions\`. Supported attributes: \`onCalculate\`, \`onChange\`, \`onFormat\`, \`onInput\``),_(n instanceof f.e,`Invalid attribute type of ${t} in \`additionalActions\`. ${t} must be of type \`PSPDFKit.Actions.JavaScriptAction\``);e.annotationIds&&(_(e.annotationIds instanceof o.B8,"Invalid form field `annotationIds` attribute. `annotationIds` must be of type `PSPDFKit.Immutable.List`"),_(e.annotationIds.every((e=>"string"==typeof e)),"Invalid form field `annotationIds` attribute. `annotationIds` should only contain string values."),e.annotationIds.forEach((e=>{!function(e,t,n){const r=e.get("annotations");if(!((t?.find((e=>e instanceof g.YH&&e.id===n))||r.get(n)||r.find((e=>e?.pdfObjectId?.toString()===n)))instanceof g.sb))throw new i.uE("Invalid form field `annotationIds` attribute. `annotationIds` should only contain references to widget annotations.")}(t,n,e)}))),null!=e.id&&_("string"==typeof e.id&&e.id.length>0,"Invalid form field `id` attribute. `id` must be of type `string` and larger than 0 characters."),null!=e.label&&_("string"==typeof e.label,"Invalid form field `label` attribute. `label` must be of type `string`"),_("string"==typeof e.name&&e.name.length>0,"Invalid form field `name` attribute. `name` must be of type `string` and larger than 0 characters."),null!=e.noExport&&_("boolean"==typeof e.noExport,"Invalid form field `noExport` attribute. `noExport` must be of type `boolean`"),null!=e.pdfObjectId&&_("number"==typeof e.pdfObjectId,"Invalid form field `pdfObjectId` attribute. `pdfObjectId` must be of type `number`"),null!=e.readOnly&&_("boolean"==typeof e.readOnly,"Invalid form field `readOnly` attribute. `readOnly` must be of type `boolean`"),null!=e.required&&_("boolean"==typeof e.required,"Invalid form field `required` attribute. `required` must be of type `boolean`")}function z(e,t){e instanceof v.uS?_("string"==typeof(t=t||""),`The type of action value for a TextFormField ${e.name} is ${typeof t}, but has to be a string`):e instanceof v.G_||e instanceof v.av?_(t instanceof o.B8,`The type of action value for the ${e instanceof v.G_?"ChoiceFormField":"CheckBoxFormField"} ${e.name} is ${typeof t}, but has to be a List of strings`):e instanceof v.Qk?_("string"==typeof t||null===t,`The type of action value for a RadioButtonFormField ${e.name} is ${typeof t}, but has to either be a string or null`):e instanceof v.$h||e instanceof v.Vw||_(!1,`Cannot set form field value for ${e.name}: unknown form field type`)}},28650:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});class r{constructor(e,t){this.element=e,this.release=t}}},93386:(e,t,n)=>{"use strict";n.d(t,{r:()=>x});var r=n(67136),o=n(49568),i=n(85409),a=n(5511);const s="CREATED",l="UPDATED",c="DELETED";var u=n(77270),d=n(38119),p=n(38849),h=n(6163);class f{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{};(0,r.A)(this,"_locks",(0,o.NZ)()),this._onUnlockCallback=e}lock(){const e=(0,h.Z0)();return this._locks=this._locks.add(e),()=>{this._locks=this._locks.remove(e),this._locks.isEmpty()&&this._onUnlockCallback()}}isLocked(){return!this._locks.isEmpty()}}var m=n(47745),g=n(69371);const v=(0,p.A)("SaveModeQueue");class y{constructor(e){let{autoSaveMode:t,flushCreateObject:n,flushUpdateObject:i,flushDeleteObject:s,validateObject:l,getObjectId:c,syncChanges:u=async()=>{}}=e;(0,r.A)(this,"eventEmitter",new d.A(["willSave","didSave","saveStateChange"])),(0,r.A)(this,"_modifications",(0,o.T5)()),(0,r.A)(this,"_inFlightModifications",(0,o.T5)()),(0,r.A)(this,"_savedObjects",(0,o.NZ)()),(0,r.A)(this,"_ensureSavedRequests",(0,o.T5)()),(0,r.A)(this,"_prevHasUnsavedObjects",!1),(0,r.A)(this,"_saveLock",new f((()=>{if(this._autoSaveMode===a.O.IMMEDIATE||!this._saveRequests.isEmpty()){const e=this._autoSaveMode===a.O.IMMEDIATE||this._saveRequests.some((e=>e.syncChanges)),t=this._saveRequests.some((e=>e.manualSave)),n=this._saveRequests;this._saveRequests=this._saveRequests.clear(),this._save(e,t).then((()=>{n.forEach((e=>{e.resolve()}))})).catch((e=>{n.forEach((t=>{t.reject(e)}))}))}}))),(0,r.A)(this,"_saveRequests",(0,o.B8)()),this._autoSaveMode=t,this._flushCreateObject=n,this._flushUpdateObject=i,this._flushDeleteObject=s,this._validateObject=l,this._getObjectId=c,this._syncChanges=u}lockSave(){return this._saveLock.lock()}assertSaveLocked(){v(this._saveLock.isLocked(),"This method can't be used without active save lock, use saveLock() to acquire the lock.")}createObject(e){this.assertSaveLocked();const t=this._getObjectId(e);this._setModificationsAndNotifyChange(this._modifications.set(t,{object:e,type:s}))}updateObject(e){this.assertSaveLocked();const t=this._getObjectId(e),n=this._modifications.get(t),r=n&&n.type===s&&!this._inFlightModifications.has(t);this._setModificationsAndNotifyChange(this._modifications.set(t,{object:e,type:r?s:l}))}deleteObject(e){this.assertSaveLocked();const t=this._getObjectId(e),n=this._modifications.get(t);n&&n.type===s?this._setModificationsAndNotifyChange(this._modifications.delete(t)):this._setModificationsAndNotifyChange(this._modifications.set(t,{object:e,type:c}))}enqueueInFlightModification(e){const t=this._getObjectId(e.object);return this._inFlightModifications.has(t)?this._inFlightModifications=this._inFlightModifications.updateIn([t],(0,g.C$)((t=>t.push(e)))):this._inFlightModifications=this._inFlightModifications.set(t,(0,o.B8)([e])),this._notifySaveStateChange(),()=>{this._inFlightModifications=this._inFlightModifications.updateIn([t],(0,g.C$)((t=>t.filter((t=>t!==e)))));const n=this._inFlightModifications.get(t);n&&0===n.size&&(this._inFlightModifications=this._inFlightModifications.delete(t)),this._notifySaveStateChange()}}clearQueueForObject(e){this._setModificationsAndNotifyChange(this._modifications.delete(e))}queuedObjectType(e){const t=this._inFlightModifications.get(e);if(t&&t.size>0)return t.last().type;{const t=this._modifications.get(e);return t?t.type:null}}hasUnsavedObjects(){return this._modifications.size>0||this._inFlightModifications.size>0}autoSave(){this._autoSaveMode===a.O.INTELLIGENT&&this.manualSave(!0).catch((()=>{}))}manualSave(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._save(e,!0)}_save(e,t){return new Promise(((n,r)=>{if(this._saveLock.isLocked())this._saveRequests=this._saveRequests.push({resolve:n,reject:r,syncChanges:e,manualSave:t});else{const a=this._modifications.filter((e=>{let{type:t}=e;return t!==c})).filter((e=>{let{object:t}=e;return!this._validateObject(t)}));t&&a.forEach((e=>{(0,i.R8)(`Can not save invalid object with ID: ${this._getObjectId(e.object)}.\n  Make sure to remove or update this object, before trying to save again.`)}));let d=(0,o.B8)();const p=this._modifications.filter(((e,t)=>!a.has(t))),h=p.map((e=>{let{object:t,type:n}=e;const r={object:t,type:n};let o;switch(d=d.push(this.enqueueInFlightModification(r)),n){case s:o=this._flushCreateObject(t);break;case l:o=this._flushUpdateObject(t);break;default:o=this._flushDeleteObject(t)}return o.then((()=>{this._markModificationAsSaved(r)})).catch((e=>{throw b(e),e}))})).valueSeq().toArray();if(this._setModificationsAndNotifyChange(a,!1),e&&h.length>0&&h.push(this._syncChanges().catch((e=>{throw b(e),e}))),this.eventEmitter.emit("willSave"),0===h.length)return this.eventEmitter.emit("didSave"),void n();let f;(0,u.AV)(h).catch((t=>{const n=p.toList(),r=e?t.pop():null,i=t.map(((e,t)=>{const r=n.get(t);if(e&&r)return{error:e,object:r.object,modificationType:r.type}})).filter(Boolean);throw f=(0,o.B8)(i),(0,m.C)(i,Boolean(r),r?r.message:null)})).finally((()=>{d.forEach((e=>{e()}));let e=p;f&&(e=e.withMutations((e=>{v(f),f.forEach((t=>{const n=this._getObjectId(t.object);e.remove(n)}))}))),this._resolveEnsureSavedRequests(e.map((e=>e.object)).valueSeq().toArray()),f&&this._rejectEnsureSavedRequests(f.toArray()),this.eventEmitter.emit("didSave")})).then((()=>{n()})).catch(r)}}))}markObjectsAsSaved(e){this._savedObjects=this._savedObjects.union(e)}isSaved(e){return this._savedObjects.has(e)&&null==this.queuedObjectType(e)}ensureObjectSaved(e){return new Promise(((t,n)=>{const r=this._getObjectId(e);this.isSaved(r)?t(e):this._ensureSavedRequests=this._ensureSavedRequests.withMutations((e=>{const i=e.get(r);i?e.set(r,i.push({resolve:t,reject:n})):e.set(r,(0,o.B8)([{resolve:t,reject:n}]))}))}))}_resolveEnsureSavedRequests(e){this._ensureSavedRequests=this._ensureSavedRequests.withMutations((t=>{e.forEach((e=>{const n=this._getObjectId(e),r=t.get(n);r&&this.isSaved(n)&&(r.forEach((t=>{let{resolve:n}=t;n(e)})),t.delete(n))}))}))}_rejectEnsureSavedRequests(e){this._ensureSavedRequests=this._ensureSavedRequests.withMutations((t=>{e.forEach((e=>{const n=this._getObjectId(e.object),r=t.get(n);r&&(r.forEach((t=>{let{reject:n}=t;n(e.error)})),t.delete(n))}))}))}_markModificationAsSaved(e){const t=this._getObjectId(e.object);switch(e.type){case"CREATED":case"UPDATED":this._savedObjects=this._savedObjects.add(t);break;case"DELETED":this._savedObjects=this._savedObjects.remove(t)}}_setModificationsAndNotifyChange(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._modifications=e,t&&this._notifySaveStateChange()}_notifySaveStateChange(){const e=this.hasUnsavedObjects();this._prevHasUnsavedObjects!==e&&(this._prevHasUnsavedObjects=e,this.eventEmitter.emit("saveStateChange",e))}}function b(e){(0,i.z3)(e)}var w=n(78236);class x{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.O.IMMEDIATE,n=arguments.length>2?arguments[2]:void 0;(0,r.A)(this,"eventEmitter",new d.A(this._getSupportedEvents())),(0,r.A)(this,"_createdObjects",(0,o.T5)()),(0,r.A)(this,"_updatedObjects",(0,o.T5)()),(0,r.A)(this,"_deletedObjects",(0,o.T5)()),(0,r.A)(this,"_crudEventsLock",new f((()=>{(this._createdObjects.size||this._updatedObjects.size||this._deletedObjects.size)&&this.eventEmitter.emit("change"),this._createdObjects.size&&(this.eventEmitter.emit("create",(0,o.B8)(this._createdObjects.values())),this._createdObjects=this._createdObjects.clear()),this._updatedObjects.size&&(this.eventEmitter.emit("update",(0,o.B8)(this._updatedObjects.values())),this._updatedObjects=this._updatedObjects.clear()),this._deletedObjects.size&&(this.eventEmitter.emit("delete",(0,o.B8)(this._deletedObjects.values())),this._deletedObjects=this._deletedObjects.clear())}))),this._callbacks=e,this._autoSaveMode=t,null!=n&&(this.eventEmitter=n),this._saveModeQueue=new y({autoSaveMode:t,flushCreateObject:async e=>{try{await this._callbacks.createBackendObject(e.object,e.additionalFields)}catch(t){throw this._callbacks.deleteStoreObjects((0,o.NZ)([e.id])),this.eventEmitter.emit("change"),this.eventEmitter.emit("delete",(0,o.B8)([e.object])),t}this._callbacks.refresh()},flushUpdateObject:async e=>{await this._callbacks.updateBackendObject(e.object,e.additionalFields),this._callbacks.refresh()},flushDeleteObject:async e=>{try{await this._callbacks.deleteBackendObject(e.object,e.additionalFields)}catch(t){throw this._callbacks.createStoreObjects((0,o.B8)([e.object])),this.eventEmitter.emit("change"),this.eventEmitter.emit("create",(0,o.B8)([e.object])),t}this._callbacks.refresh()},validateObject:e=>this._callbacks.validateObject(e.object),getObjectId:e=>e.id,syncChanges:()=>this._callbacks.syncChanges()}),this._saveModeQueue.eventEmitter.on("willSave",(()=>{this.eventEmitter.emit("change"),this.eventEmitter.emit("willSave")})),this._saveModeQueue.eventEmitter.on("didSave",(()=>{this.eventEmitter.emit("change"),this.eventEmitter.emit("didSave")})),this._saveModeQueue.eventEmitter.on("saveStateChange",(e=>this.eventEmitter.emit("saveStateChange",e)))}autoSave(){this._saveModeQueue.autoSave()}manualSave(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._saveModeQueue.manualSave(e).catch((e=>{throw(0,i.V1)(e instanceof m.d),e.reason&&(e.reason=e.reason.map((e=>({error:e.error,modificationType:e.modificationType,object:e.object.object})))),e}))}ensureObjectSaved(e){return this._saveModeQueue.ensureObjectSaved(this._createSaveQueueObject(this._callbacks.getObjectId(e),e)).then((e=>e.object))}hasUnsavedChanges(){return this._saveModeQueue.hasUnsavedObjects()}lockSave(){const e=this._crudEventsLock.lock(),t=this._saveModeQueue.lockSave();return()=>{t(),e()}}createObject(e,t){const n=this.lockSave();try{const n=this._callbacks.getObjectId(e);(0,i.V1)(n);const r=this._saveModeQueue.queuedObjectType(n),o=this._saveModeQueue.isSaved(n)||r===l;o||r===s?(this._callbacks.onUpdate&&this._callbacks.onUpdate(e,t),this._saveModeQueue.updateObject(this._createSaveQueueObject(n,e,t)),this._updatedObjects=this._updatedObjects.set(n,e)):(this._callbacks.onCreate&&this._callbacks.onCreate(e,t),this._saveModeQueue.createObject(this._createSaveQueueObject(n,e,t)),this._createdObjects=this._createdObjects.set(n,e))}finally{n()}}createObjects(e,t){const n=this.lockSave();try{e.forEach(((e,n)=>{const r=this._callbacks.getObjectId(e);(0,i.V1)(r);const o=this._saveModeQueue.queuedObjectType(r);this._saveModeQueue.isSaved(r)||o===l||o===s?(this._callbacks.onUpdate&&this._callbacks.onUpdate(e,t[n]),this._saveModeQueue.updateObject(this._createSaveQueueObject(r,e,t[n])),this._updatedObjects=this._updatedObjects.set(r,e)):(this._callbacks.onCreate&&this._callbacks.onCreate(e,t[n]),this._saveModeQueue.createObject(this._createSaveQueueObject(r,e,t[n])),this._createdObjects=this._createdObjects.set(r,e))}))}finally{n()}}updateObject(e,t){this.createObject(e,t)}deleteObject(e,t){const n=this.lockSave();try{const n=this._callbacks.getObjectId(e);(0,i.V1)(n);const r=this._saveModeQueue.queuedObjectType(n),o=this._saveModeQueue.isSaved(n)||r===l,a=r===s;this._callbacks.onDelete&&this._callbacks.onDelete(e,t),(o||a)&&this._saveModeQueue.deleteObject(this._createSaveQueueObject(n,e,t)),this._deletedObjects=this._deletedObjects.set(n,e)}finally{n()}}backendObjectsCreated(e,t,n){const r=t===w.n,o=e.map((e=>this._callbacks.getObjectId(e))).toArray();this._saveModeQueue.markObjectsAsSaved(o),this._callbacks.createStoreObjects(e,n),this.eventEmitter.emit("change"),this.eventEmitter.emit(r?"load":"create",e),o.forEach((e=>{this._saveModeQueue.clearQueueForObject(e)})),!r&&this._callbacks.refresh()}backendObjectsUpdated(e,t){this._callbacks.updateStoreObjects(e),t||(this.eventEmitter.emit("change"),this.eventEmitter.emit("update",e));e.map((e=>this._callbacks.getObjectId(e))).toArray().forEach((e=>{this._saveModeQueue.clearQueueForObject(e)})),this._callbacks.refresh()}backendObjectsDeleted(e){const t=e.map((e=>this._callbacks.getObjectById(e))).filter(Boolean).toList();this._callbacks.deleteStoreObjects(e),e.forEach((e=>{this._saveModeQueue.clearQueueForObject(e)})),this.eventEmitter.emit("change"),this.eventEmitter.emit("delete",t),this._callbacks.refresh()}_getSupportedEvents(){return["change","willSave","didSave","load","create","update","delete","saveStateChange"]}_createSaveQueueObject(e,t,n){return void 0===n?{id:e,object:t}:{id:e,object:t,additionalFields:n}}}},54781:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(14511),o=n(85410);class i{constructor(e,t){this.identifier=this.url=e,this.token=t,this.aborted=!1}request(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{method:"GET"};const{method:t,data:n=null}=e,i=new XMLHttpRequest;return i.open(t,this.url,!0),i.setRequestHeader("X-PSPDFKit-Token",this.token),i.setRequestHeader("PSPDFKit-Platform","web"),i.setRequestHeader("PSPDFKit-Version",(0,o._q)()),new Promise(((e,t)=>{i.onreadystatechange=()=>{this.aborted||4===i.readyState&&((0,r.Nk)(i.status)?e(JSON.parse(i.responseText)):t({message:i.responseText}))},this.httpRequest=i,i.send(n instanceof FormData?n:"object"==typeof n?JSON.stringify(n):void 0)}))}abort(){this.httpRequest&&(this.aborted=!0,this.httpRequest.abort(),this.httpRequest=null)}}},7842:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(67136),o=n(85409),i=n(6085),a=n(5293),s=n(78531);class l{constructor(e){this.annotation=e}toJSON(){return{id:this.annotation.id,name:this.annotation.name,subject:this.annotation.subject,v:l.VERSION,pdfObjectId:this.annotation.pdfObjectId,pageIndex:this.annotation.pageIndex,bbox:(0,a.w)(this.annotation.boundingBox),opacity:this.annotation.opacity,flags:this.serializeFlags(),action:this.annotation.action&&(0,i.Ix)(this.annotation.action),note:this.annotation.note,createdAt:this.annotation.createdAt.toISOString(),updatedAt:this.annotation.updatedAt.toISOString(),creatorName:this.annotation.creatorName,customData:this.annotation.customData,isCommentThreadRoot:this.annotation.isCommentThreadRoot,isAnonymous:this.annotation.isAnonymous,...this.annotation.blendMode&&"normal"!==this.annotation.blendMode?{blendMode:this.annotation.blendMode}:null,...this.annotation.APStreamCache?.cache||this.annotation.APStreamCache?.attach?{APStreamCache:this.annotation.APStreamCache}:null,...(0,s.km)(this.annotation)}}static fromJSON(e,t,n){(0,o.V1)(null==t.name||"string"==typeof t.name,"`name` must be of type `string`"),(0,o.V1)(t.v<=l.VERSION,"Version Unknown"),(0,o.V1)(void 0!==e&&"number"!=typeof e,"`id` must be of type `string`"),(0,o.V1)("object"==typeof t.bbox,"Missing `bbox` field"),(0,o.V1)("number"==typeof t.opacity,"Missing `opacity` field"),(0,o.V1)("number"==typeof t.pageIndex,"Missing `pageIndex` field"),(0,o.V1)(null==t.customData||(0,o.Qd)(t.customData),"`customData` must be an object"),(0,o.V1)("boolean"==typeof t.isCommentThreadRoot||void 0===t.isCommentThreadRoot,"`isCommentThreadRoot` should be a `undefined` or `boolean`"),(0,o.V1)("boolean"==typeof t.isAnonymous||void 0===t.isAnonymous,"`isAnonymous` should be a `undefined` or `boolean`"),(0,s.Tr)(n);const r=Array.isArray(t.flags)?t.flags:[];let c;try{c=t.action&&(0,i._8)(t.action)}catch(e){(0,o.R8)(`PDF Action not supported:\n\n${t.action}`)}return{id:e,name:t.name||null,subject:t.subject||null,pdfObjectId:t.pdfObjectId||null,pageIndex:t.pageIndex,opacity:t.opacity,boundingBox:(0,a.a)(t.bbox),noPrint:r.includes("noPrint"),noZoom:r.includes("noZoom"),noRotate:r.includes("noRotate"),noView:r.includes("noView"),hidden:r.includes("hidden"),locked:r.includes("locked"),lockedContents:r.includes("lockedContents"),readOnly:r.includes("readOnly"),action:c,note:t.note||null,createdAt:t.createdAt?new Date(t.createdAt):new Date,updatedAt:t.updatedAt?new Date(t.updatedAt):new Date,creatorName:t.creatorName||null,customData:t.customData||null,isCommentThreadRoot:!!t.isCommentThreadRoot,isAnonymous:!!t.isAnonymous,...l.blendModeObjectForAnnotation(t),...(0,s.ah)(n)}}static blendModeObjectForAnnotation(e){return e.blendMode?{blendMode:e.blendMode}:"pspdfkit/markup/highlight"===e.type?{blendMode:"normal"}:null}serializeFlags(){const e=[];return["noPrint","noZoom","noRotate","noView","hidden","locked","lockedContents","readOnly"].forEach((t=>{this.annotation[t]&&e.push(t)})),e.length?e:null}}(0,r.A)(l,"VERSION",2)},77765:(e,t,n)=>{"use strict";n.d(t,{A:()=>c,K:()=>l});var r=n(49568),o=n(7842),i=n(51946),a=n(5293),s=n(75675);const l={"pspdfkit/markup/highlight":i.ax,"pspdfkit/markup/squiggly":i.TI,"pspdfkit/markup/strikeout":i.sB,"pspdfkit/markup/underline":i.Yi,"pspdfkit/markup/redaction":i.h5};class c extends o.A{constructor(e){super(e)}toJSON(){return{...super.toJSON(),rects:this.annotation.rects.map((e=>(0,a.w)(e))).toJS()}}static fromJSON(e,t,n){return(0,s.V)("object"==typeof t.rects,"Missing `rects` field"),{...super.fromJSON(e,t,n),rects:(0,r.B8)(t.rects).map((e=>(0,a.a)(e)))}}}},82987:(e,t,n)=>{"use strict";n.d(t,{U:()=>a,r:()=>s});var r=n(85409),o=n(6085),i=n(30962);function a(e){return{id:e.id,v:1,pdfBookmarkId:e.pdfBookmarkId,type:"pspdfkit/bookmark",name:e.name,sortKey:e.sortKey,action:e.action&&(0,o.Ix)(e.action)}}function s(e,t){let n;(0,r.V1)(null==e||"string"==typeof e,"`id` must be null or of type `string`"),(0,r.V1)(null==t.name||"string"==typeof t.name,"`name` must be of type `string`"),(0,r.V1)(null==t.sortKey||"number"==typeof t.sortKey,"`sortKey` must be of type `number`"),(0,r.V1)("object"==typeof t.action,"Missing `action` field");try{n=(0,o._8)(t.action)}catch(e){(0,r.R8)(`PDF Action not supported:\n\n${t.action}`)}return new i.A({id:e,pdfBookmarkId:t.pdfBookmarkId||null,name:t.name,sortKey:t.sortKey,action:n})}},45374:(e,t,n)=>{"use strict";n.d(t,{_:()=>s,z:()=>a});var r=n(85409),o=n(76117),i=n(78531);function a(e,t){return{id:e.id,type:"pspdfkit/comment",v:2,rootId:t,pageIndex:e.pageIndex,pdfObjectId:e.pdfObjectId,creatorName:e.creatorName,createdAt:e.createdAt,updatedAt:e.updatedAt,text:e.text,customData:e.customData,isAnonymous:e.isAnonymous,...(0,i.km)(e)}}function s(e,t,n){return(0,r.V1)(2===t.v,"Unknown comment version"),(0,r.V1)("pspdfkit/comment"===t.type,"Invalid comment type"),(0,r.V1)("string"==typeof t.rootId||"number"==typeof t.rootId,"`rootId` must be of type `string` or `number`"),(0,r.V1)("number"==typeof t.pageIndex,"`pageIndex` must be of type `number`"),(0,r.V1)(null==t.pdfObjectId||"number"==typeof t.pdfObjectId,"`pdfObjectId` must be of type `number`"),(0,r.V1)(null==t.creatorName||"string"==typeof t.creatorName,"`creatorName` must be of type `string`"),(0,r.V1)("object"==typeof t.text,"`text` must be of type `object`"),(0,r.V1)("string"==typeof t.text.value,"`text.value` must be of type `string`"),(0,r.V1)("plain"===t.text.format||"xhtml"===t.text.format,"`text.format` must be `plain` or `xhtml`"),(0,r.V1)(null==t.customData||(0,r.Qd)(t.customData),"`customData` must be a JSON-serializable object"),(0,r.V1)(void 0===n?.isAnonymous||"boolean"==typeof n?.isAnonymous||null===n?.isAnonymous,"`isAnonymous` should be `undefined` or `boolean`."),(0,i.Tr)(n),new o.Mw({id:e,rootId:t.rootId.toString(),pageIndex:t.pageIndex,pdfObjectId:t.pdfObjectId,creatorName:t.creatorName,createdAt:t.createdAt?new Date(t.createdAt):new Date,updatedAt:t.updatedAt?new Date(t.updatedAt):new Date,text:t.text,customData:t.customData,isAnonymous:n?.isAnonymous,...(0,i.ah)(n)})}},47679:(e,t,n)=>{"use strict";n.d(t,{Bm:()=>r,Qp:()=>o,TJ:()=>i,jr:()=>a});const r=e=>e.toJS(),o=e=>e.toJS(),i=(e,t)=>{return{maxWidth:e.maxWidth,alignment:e.alignment,lineSpacingFactor:e.lineSpacingFactor,modificationsCharacterStyle:(n=t,n.toJS())};var n},a=e=>i(e.layout,e.modificationsCharacterStyle)},95248:(e,t,n)=>{"use strict";function r(e){return{type:e.type,options:{numberOfContextWords:e.options?.numberOfContextWords}}}function o(e){return{filePath:e.filePath,password:e.password,pageIndexes:e.pageIndexes,jwt:e.jwt}}n.d(t,{E:()=>o,c:()=>r})},12219:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(85409),o=n(16792),i=n(83145),a=n(26438),s=n(77765);class l extends s.A{constructor(e){super(e)}toJSON(){return{...super.toJSON(),type:"pspdfkit/markup/redaction",fillColor:this.annotation.fillColor&&(0,o.J)(this.annotation.fillColor),outlineColor:this.annotation.outlineColor&&(0,o.J)(this.annotation.outlineColor),overlayText:this.annotation.overlayText,repeatOverlayText:this.annotation.repeatOverlayText,rotation:this.annotation.rotation,color:this.annotation.color&&(0,o.J)(this.annotation.color)}}static fromJSON(e,t,n){(0,r.V1)("pspdfkit/markup/redaction"===t.type,"Wrong `type` field");const s="number"==typeof t.rotation?(0,a.hR)(t.rotation):0;return new i.A({...super.fromJSON(e,t,n),fillColor:t.fillColor?(0,o.p)(t.fillColor):i.A.defaultValues.fillColor,outlineColor:t.outlineColor?(0,o.p)(t.outlineColor):i.A.defaultValues.outlineColor,overlayText:t.overlayText??null,repeatOverlayText:t.repeatOverlayText??null,rotation:s,color:t.color?(0,o.p)(t.color):i.A.defaultValues.color})}}},10423:(e,t,n)=>{"use strict";n.d(t,{A:()=>d,d:()=>u});var r=n(49568),o=n(16792),i=n(7842),a=n(79489),s=n(75675),l=n(35224),c=n(54694);const u={1:"whole",.1:"oneDp",.01:"twoDp",.001:"threeDp",1e-4:"fourDp"};class d extends i.A{toJSON(){return{...super.toJSON(),strokeWidth:this.annotation.strokeWidth,strokeColor:this.annotation.strokeColor&&(0,o.J)(this.annotation.strokeColor),fillColor:this.annotation.fillColor&&(0,o.J)(this.annotation.fillColor),strokeDashArray:this.annotation.strokeDashArray,measurementPrecision:this.annotation.measurementPrecision,measurementScale:this.annotation.measurementScale&&(e=this.annotation.measurementScale,{unitFrom:e.unitFrom,unitTo:e.unitTo,from:e.fromValue,to:e.toValue})};var e}static fromJSON(e,t,n){return(0,s.V)("number"==typeof t.strokeWidth||"number"==typeof t.lineWidth,"Missing `strokeWidth` or deprecated `lineWidth` field"),t.measurementPrecision&&t.measurementPrecision&&Object.keys(u).includes(t.measurementPrecision)&&(t.measurementPrecision=u[t.measurementPrecision]??c.x.TWO),{...super.fromJSON(e,t,n),strokeWidth:null!=t.strokeWidth?t.strokeWidth:null!=t.lineWidth?t.lineWidth:null,strokeColor:null!=t.strokeColor?(0,o.p)(t.strokeColor):null,fillColor:t.fillColor?(0,o.p)(t.fillColor):null,strokeDashArray:t.strokeDashArray,measurementPrecision:t.measurementPrecision,measurementScale:t.measurementScale?p(t.measurementScale):null}}_pointsToJSON(){return this.annotation.points.map((e=>(0,a.s)(e))).toJS()}static _JSONToPoints(e){return(0,r.B8)(e.map((e=>(0,a.m)(e))))}static _JSONLinesToPoints(e){return(0,r.B8)(e.points[0].map(a.m))}}function p(e){return new l.A({unitFrom:e.unitFrom,unitTo:e.unitTo,fromValue:e.from,toValue:e.to})}},84230:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(85409),o=n(46395),i=n(16792),a=n(76117),s=n(7842),l=n(6085),c=n(97881),u=n(26438);class d extends s.A{constructor(e){super(e)}toJSON(){return{...super.toJSON(),type:"pspdfkit/widget",formFieldName:this.annotation.formFieldName,borderColor:this.annotation.borderColor&&(0,i.J)(this.annotation.borderColor),borderStyle:this.annotation.borderStyle,borderDashArray:this.annotation.borderDashArray,borderWidth:this.annotation.borderWidth,font:this.annotation.font,fontSize:this.annotation.fontSize,fontColor:this.annotation.fontColor&&(0,i.J)(this.annotation.fontColor),backgroundColor:this.annotation.backgroundColor&&(0,i.J)(this.annotation.backgroundColor),horizontalAlign:this.annotation.horizontalAlign,verticalAlign:this.annotation.verticalAlign,fontStyle:(0,c.ih)(this.annotation),rotation:this.annotation.rotation,additionalActions:this.annotation.additionalActions&&(0,l.Wg)(this.annotation.additionalActions),lineHeightFactor:this.annotation.lineHeightFactor}}static fromJSON(e,t,n){return(0,r.V1)("pspdfkit/widget"===t.type,"Wrong `type` field"),(0,r.V1)("string"==typeof t.formFieldName,"Wrong `formFieldName` field"),t.borderStyle&&((0,r.V1)("string"==typeof o.k[t.borderStyle],"Invalid value for `borderStyle`"),(0,r.V1)("number"==typeof t.borderWidth,"Missing `borderWidth` field")),t.horizontalAlign&&(0,r.V1)(["left","center","right"].includes(t.horizontalAlign),"Wrong `horizontalAlign` field"),t.verticalAlign&&(0,r.V1)(["top","center","bottom"].includes(t.verticalAlign),"Wrong `verticalAlign` field"),new a.sb({...super.fromJSON(e,t,n),formFieldName:t.formFieldName,borderColor:t.borderColor?(0,i.p)(t.borderColor):null,borderStyle:t.borderStyle&&o.k[t.borderStyle],borderDashArray:t.borderDashArray,borderWidth:t.borderWidth,fontColor:t.fontColor?(0,i.p)(t.fontColor):null,fontSize:t.fontSize,font:t.font||null,backgroundColor:t.backgroundColor?(0,i.p)(t.backgroundColor):null,horizontalAlign:t.horizontalAlign?t.horizontalAlign:null,verticalAlign:t.verticalAlign?t.verticalAlign:null,isBold:t.fontStyle&&t.fontStyle.includes("bold"),isItalic:t.fontStyle&&t.fontStyle.includes("italic"),rotation:"number"==typeof t.rotation?(0,u.Kr)(t.rotation):0,additionalActions:t.additionalActions?(0,l.N2)(t.additionalActions):null,lineHeightFactor:t.lineHeightFactor})}}},6085:(e,t,n)=>{"use strict";n.d(t,{Ix:()=>s,N2:()=>u,Wg:()=>d,_8:()=>l});var r=n(49568),o=n(85409),i=n(43420),a=n(95342);function s(e){return function e(t){const n={...t.subActions&&{subactions:t.subActions.map((t=>e(t))).toArray()}};if(t instanceof i.tt)return{type:"uri",uri:t.uri,...n};if(t instanceof i.ic)return{type:"goTo",pageIndex:t.pageIndex,...n};if(t instanceof i.yp)return{type:"goToEmbedded",newWindow:t.newWindow,relativePath:t.relativePath,targetType:t.targetType,...n};if(t instanceof i.sG)return{type:"goToRemote",relativePath:t.relativePath,namedDestination:t.namedDestination,...n};if(t instanceof i.$i)return{type:"hide",hide:t.hide,annotationReferences:t.annotationReferences.toJS(),...n};if(t instanceof i.ew)return{type:"javaScript",script:t.script,...n};if(t instanceof i.Ki)return{type:"launch",filePath:t.filePath,...n};if(t instanceof i.mm)return{type:"named",action:t.action,...n};if(t instanceof i.kV)return{type:"resetForm",fields:t.fields?.map((e=>({fieldName:e}))).toArray()||null,flags:t.includeExclude?"includeExclude":null,...n};if(t instanceof i.Dh)return{type:"submitForm",uri:t.uri,fields:t.fields?t.fields.toArray():null,flags:c(t),...n};throw new Error(`Unknown action type: ${t.constructor.name}`)}(e)}function l(e){return function e(t){let n=null;switch(t.subactions&&(n={subActions:(0,r.B8)(t.subactions.map((t=>e(t))))}),t.type){case"uri":return(0,o.V1)("string"==typeof t.uri,"URI action must have a `uri`"),new i.tt({uri:t.uri,...n});case"goTo":return(0,o.V1)("number"==typeof t.pageIndex,"Goto action must have a `pageIndex`"),new i.ic({pageIndex:t.pageIndex,...n});case"goToEmbedded":return(0,o.V1)("boolean"==typeof t.newWindow,"GoToEmbeddedAction must have `newWindow`"),(0,o.V1)("parent"===t.targetType||"child"===t.targetType,"GoToEmbeddedAction must have a valid `targetType`"),new i.yp({newWindow:t.newWindow,relativePath:t.relativePath||"",targetType:t.targetType||"",...n});case"goToRemote":return new i.sG({relativePath:t.relativePath||"",namedDestination:t.namedDestination||"",...n});case"hide":return(0,o.V1)(Array.isArray(t.annotationReferences),"HideAction must have `annotationReferences`"),new i.$i({hide:!!t.hide,annotationReferences:(0,r.B8)(t.annotationReferences),...n});case"javaScript":return new i.ew({script:t.script||"",...n});case"launch":return new i.Ki({filePath:t.filePath||"",...n});case"named":return new i.mm({action:t.action||"",...n});case"resetForm":{(0,o.V1)(t.fields instanceof Array||void 0===t.fields,"The value of the `fields` field of ResetForm Action has to be an array or undefined"),(0,o.V1)("string"==typeof t.flags||void 0===t.flags,"The value of the `flags` field of ResetForm Action has to be a string or undefined");const e="includeExclude"===t.flags;return new i.kV({fields:t.fields?(0,r.B8)(t.fields.map((e=>"fieldName"in e&&e.fieldName)).filter(Boolean)):void 0,includeExclude:e,...n})}case"submitForm":return(0,o.V1)("string"==typeof t.uri,"The value of the `uri` field of SubmitForm Action has to be a string"),(0,o.V1)(t.fields instanceof Array||void 0===t.fields,"The value of the `fields` field of SubmitForm Action has to be an array or undefined"),(0,o.V1)(t.flags instanceof Array||void 0===t.flags,"The value of the `flags` field of SubmitForm Action has to be a array or undefined"),t.flags||(t.flags=[]),new i.Dh({fields:t.fields?(0,r.B8)(t.fields):void 0,uri:t.uri,includeExclude:t.flags.includes("includeExclude"),includeNoValueFields:t.flags.includes("includeNoValueFields"),exportFormat:t.flags.includes("exportFormat"),getMethod:t.flags.includes("getMethod"),submitCoordinated:t.flags.includes("submitCoordinated"),xfdf:t.flags.includes("xfdf"),includeAppendSaves:t.flags.includes("includeAppendSaves"),includeAnnotations:t.flags.includes("includeAnnotations"),submitPDF:t.flags.includes("submitPDF"),canonicalFormat:t.flags.includes("canonicalFormat"),excludeNonUserAnnotations:t.flags.includes("excludeNonUserAnnotations"),excludeFKey:t.flags.includes("excludeFKey"),embedForm:t.flags.includes("embedForm"),...n});default:throw new Error(`Unknown action: ${t}`)}}(e)}function c(e){const t=[];return["includeExclude","includeNoValueFields","exportFormat","getMethod","submitCoordinated","xfdf","includeAppendSaves","includeAnnotations","submitPDF","canonicalFormat","excludeNonUserAnnotations","excludeFKey","embedForm"].forEach((n=>{e[n]&&t.push(n)})),t.length?t:null}function u(e){return(0,a.ZG)(e).reduce(((t,n)=>{const r=e[n];return r&&(t[n]=l(r)),t}),{})}function d(e){return(0,a.ZG)(e).reduce(((t,n)=>{const r=e[n];return r instanceof i.rc&&(t[n]=s(r)),t}),{})}},78531:(e,t,n)=>{"use strict";n.d(t,{Tr:()=>o,ah:()=>i,km:()=>a});var r=n(85409);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{group:t,permissions:n}=e;(0,r.V1)(void 0===t||"string"==typeof t||null===t,"`group` should be `undefined` or `string`."),(0,r.V1)(void 0===n||(0,r.Qd)(n),"`permissions` should be `undefined` or an `object`."),(0,r.Qd)(n)&&((0,r.V1)("boolean"==typeof n.edit,"`permissions.edit` should be `boolean`."),(0,r.V1)("boolean"==typeof n.delete,"`permissions.delete` should be `boolean`."),(0,r.V1)("boolean"==typeof n.setGroup,"`permissions.setGroup` should be `boolean`."),void 0!==n.fill&&(0,r.V1)("boolean"==typeof n.fill,"`permissions.fill` should be `boolean`."),void 0!==n.reply&&(0,r.V1)("boolean"==typeof n.reply,"`permissions.reply` should be `boolean`."))}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{group:t,permissions:n}=e;let o={group:t};return(0,r.Qd)(n)&&(o={...o,canSetGroup:n.setGroup,isEditable:n.edit,isDeletable:n.delete},"boolean"==typeof n.fill&&(o.isFillable=n.fill),"boolean"==typeof n.reply&&(o.canReply=n.reply)),o}function a(e){const t="boolean"==typeof e.isEditable&&"boolean"==typeof e.canSetGroup&&"boolean"==typeof e.isDeletable;let n={group:e.group};return t&&((0,r.V1)("boolean"==typeof e.isEditable),(0,r.V1)("boolean"==typeof e.isDeletable),(0,r.V1)("boolean"==typeof e.canSetGroup),n={...n,permissions:{edit:e.isEditable,delete:e.isDeletable,setGroup:e.canSetGroup}},"boolean"==typeof e.isFillable&&(n.permissions={...n.permissions,fill:e.isFillable}),"boolean"==typeof e.canReply&&(n.permissions={...n.permissions,reply:e.canReply})),n}},16792:(e,t,n)=>{"use strict";n.d(t,{J:()=>i,p:()=>a});var r=n(85409),o=n(76117);function i(e){return e.toHex()}function a(e){if((0,r.V1)(7===e.length||9===e.length,"Tried to deserialize color that does not have 7 or 9 characters"),"#00000000"===e)return o.Q1.TRANSPARENT;const t=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),i=parseInt(e.substring(5,7),16);return new o.Q1({r:t,g:n,b:i})}},6606:(e,t,n)=>{"use strict";n.d(t,{J:()=>a,x:()=>i});var r=n(85409),o=n(76117);function i(e){return[e.left,e.top,e.right,e.bottom]}function a(e){return(0,r.V1)(4===e.length,"Tried to deserialize inset that does not have 4 entries"),new o.Yy({left:e[0],top:e[1],right:e[2],bottom:e[3]})}},62322:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});var r=n(85409),o=n(50960);function i(e){return(0,r.V1)(6===e.length,"Tried to deserialize matrix that does not have 6 entries"),new o.XF({a:e[0],b:e[1],c:e[2],d:e[3],e:e[4],f:e[5]})}},79489:(e,t,n)=>{"use strict";n.d(t,{m:()=>a,s:()=>i});var r=n(85409),o=n(76117);function i(e){return[e.x,e.y]}function a(e){return(0,r.V1)(2===e.length,"Tried to deserialize point that does not have 2 entries"),new o.bR({x:e[0],y:e[1]})}},5293:(e,t,n)=>{"use strict";n.d(t,{a:()=>a,w:()=>i});var r=n(85409),o=n(76117);function i(e){return[e.left,e.top,e.width,e.height]}function a(e){return(0,r.V1)(4===e.length,"Tried to deserialize rect that does not have 4 entries"),new o.rw({left:e[0],top:e[1],width:e[2],height:e[3]})}},97881:(e,t,n)=>{"use strict";n.d(t,{L:()=>de,h8:()=>Z,XL:()=>J,mh:()=>Y,R5:()=>te,Fj:()=>_e,N5:()=>ne,ih:()=>be,fW:()=>me,Eh:()=>ge,LK:()=>ye,cy:()=>ce,UR:()=>ue,Tg:()=>ve,eq:()=>G,wG:()=>Q,ty:()=>we,T7:()=>X,cA:()=>ee,Um:()=>he,z8:()=>se,sZ:()=>oe,qN:()=>ie,Y6:()=>le,xz:()=>Se,Zt:()=>fe});var r=n(85409),o=n(49568),i=n(80018),a=n(76117),s=n(83145),l=n(83632),c=n(16792),u=n(79489),d=n(7842);class p extends d.A{constructor(e){super(e)}toJSON(){return{...super.toJSON(),type:"pspdfkit/ink",lines:this._linesToJSON(),lineWidth:this.annotation.lineWidth,strokeColor:this.annotation.strokeColor&&(0,c.J)(this.annotation.strokeColor),backgroundColor:this.annotation.backgroundColor&&(0,c.J)(this.annotation.backgroundColor),isDrawnNaturally:this.annotation.isDrawnNaturally,isSignature:this.annotation.isSignature}}static fromJSON(e,t,n){return(0,r.V1)("pspdfkit/ink"===t.type,"Wrong `type` field"),(0,r.V1)("object"==typeof t.lines,"Missing `lines` field"),(0,r.V1)("number"==typeof t.lineWidth,"Missing `lineWidth` field"),(0,r.V1)("boolean"==typeof t.isDrawnNaturally,"Missing `isDrawnNaturally` field"),new a.Eo({...super.fromJSON(e,t,n),lines:this._JSONToLines(t.lines),lineWidth:t.lineWidth,strokeColor:t.strokeColor?(0,c.p)(t.strokeColor):null,backgroundColor:t.backgroundColor?(0,c.p)(t.backgroundColor):null,isDrawnNaturally:t.isDrawnNaturally,isSignature:t.isSignature})}_linesToJSON(){return{points:this.annotation.lines.map((e=>e.map((e=>(0,u.s)(e))))).toJS(),intensities:this.annotation.lines.map((e=>e.map((e=>e.intensity)))).toJS()}}static _JSONToLines(e){return(0,o.B8)(e.points).map(((t,n)=>{const r=e.intensities[n];return(0,o.B8)(t).map(((e,t)=>{const n=r[t],o=(0,u.m)(e);return new a.LL({x:o.x,y:o.y,intensity:n})}))}))}}var h=n(10423),f=n(75675);class m extends h.A{toJSON(){return{...super.toJSON(),type:"pspdfkit/shape/line",startPoint:(0,u.s)(this.annotation.startPoint),endPoint:(0,u.s)(this.annotation.endPoint),lineCaps:this.annotation.lineCaps}}static fromJSON(e,t,n){return(0,f.V)("pspdfkit/shape/line"===t.type,"Wrong `type` field"),(0,f.V)("object"==typeof t.startPoint||"object"==typeof t.lines?.points[0][0],"Missing `startPoint` or deprecated `lines.points[0][0]` field"),(0,f.V)("object"==typeof t.endPoint||"object"==typeof t.lines?.points[0][1],"Missing `endPoint` or deprecated `lines.points[0][1]` field"),new a.MU({...super.fromJSON(e,t,n),startPoint:(0,u.m)(t.startPoint||t.lines?.points[0][0]),endPoint:(0,u.m)(t.endPoint||t.lines?.points[0][1]),lineCaps:t.lineCaps})}}var g=n(6606),v=n(5293);class y extends h.A{toJSON(){return{...super.toJSON(),type:"pspdfkit/shape/rectangle",cloudyBorderIntensity:this.annotation.cloudyBorderIntensity,cloudyBorderInset:this.annotation.cloudyBorderInset?(0,g.x)(this.annotation.cloudyBorderInset):null,measurementBBox:this.annotation.measurementBBox?(0,v.w)(this.annotation.measurementBBox):null}}static fromJSON(e,t,n){return(0,f.V)("pspdfkit/shape/rectangle"===t.type,"Wrong `type` field"),new a.Zx({...super.fromJSON(e,t,n),cloudyBorderIntensity:t.cloudyBorderIntensity,cloudyBorderInset:Array.isArray(t.cloudyBorderInset)?(0,g.J)(t.cloudyBorderInset):null,measurementBBox:t.measurementBBox?(0,v.a)(t.measurementBBox):null})}}class b extends h.A{toJSON(){return{...super.toJSON(),type:"pspdfkit/shape/ellipse",cloudyBorderIntensity:this.annotation.cloudyBorderIntensity,cloudyBorderInset:this.annotation.cloudyBorderInset?(0,g.x)(this.annotation.cloudyBorderInset):null,measurementBBox:this.annotation.measurementBBox?(0,v.w)(this.annotation.measurementBBox):null}}static fromJSON(e,t,n){return(0,r.V1)("pspdfkit/shape/ellipse"===t.type,"Wrong `type` field"),new a.Go({...super.fromJSON(e,t,n),cloudyBorderIntensity:t.cloudyBorderIntensity,cloudyBorderInset:Array.isArray(t.cloudyBorderInset)?(0,g.J)(t.cloudyBorderInset):null,measurementBBox:t.measurementBBox?(0,v.a)(t.measurementBBox):null})}}class w extends h.A{toJSON(){return{...super.toJSON(),type:"pspdfkit/shape/polygon",points:this._pointsToJSON(),cloudyBorderIntensity:this.annotation.cloudyBorderIntensity}}static fromJSON(e,t,n){return(0,r.V1)("pspdfkit/shape/polygon"===t.type,"Wrong `type` field"),new a.Si({...super.fromJSON(e,t,n),points:t.points?this._JSONToPoints(t.points):this._JSONLinesToPoints(t.lines),cloudyBorderIntensity:t.cloudyBorderIntensity})}}class x extends h.A{toJSON(){return{...super.toJSON(),type:"pspdfkit/shape/polyline",points:this._pointsToJSON(),lineCaps:this.annotation.lineCaps}}static fromJSON(e,t,n){return(0,r.V1)("pspdfkit/shape/polyline"===t.type,"Wrong `type` field"),new a.ug({...super.fromJSON(e,t,n),points:t.points?this._JSONToPoints(t.points):this._JSONLinesToPoints(t.lines),lineCaps:t.lineCaps})}}class S extends d.A{constructor(e){super(e)}toJSON(){return{...super.toJSON(),type:"pspdfkit/link",borderColor:this.annotation.borderColor?(0,c.J)(this.annotation.borderColor):null,borderWidth:this.annotation.borderWidth,borderStyle:this.annotation.borderStyle}}static fromJSON(e,t,n){return(0,r.V1)("pspdfkit/link"===t.type,"Wrong `type` field"),(0,r.V1)("object"==typeof t.action,"Missing `action` field"),new a.UL({...super.fromJSON(e,t,n),borderColor:t.borderColor?(0,c.p)(t.borderColor):null,borderWidth:t.borderWidth,borderStyle:t.borderStyle})}}var _=n(8367);class C extends d.A{constructor(e){super(e)}toJSON(){return(0,f.V)("object"==typeof this.annotation.text,"`text` must be an object"),(0,f.V)("plain"===this.annotation.text.format||"xhtml"===this.annotation.text.format,"Invalid `text.format` field"),(0,f.V)("string"==typeof this.annotation.text.value,"Missing `text.value` field"),"xhtml"===this.annotation.text.format&&(0,r.R8)("NoteAnnotationSerializer: `text.format` is set to `xhtml`, but this is not supported by PSPDFKit for Web. Falling back to `plain`."),{...super.toJSON(),type:"pspdfkit/note",text:this.annotation.text,icon:_.ac[this.annotation.icon]||this.annotation.icon,color:(0,c.J)(this.annotation.color)}}static fromJSON(e,t,n){(0,f.V)("pspdfkit/note"===t.type,"Wrong `type` field");const o={};if("string"==typeof t.icon){const e=_.ct[t.icon];o.icon=e||t.icon}return"string"==typeof t.color&&(o.color=(0,c.p)(t.color)),"object"==typeof t.text&&(o.text=t.text,"xhtml"===t.text?.format&&((0,r.R8)("NoteAnnotationSerializer: `text.format` is set to `xhtml`, but this is not supported by PSPDFKit for Web. Falling back to `plain`."),o.text.format="plain")),new a.s9({...super.fromJSON(e,t,n),...o})}}var E=n(46395),k=n(45666),z=n(26438);class P extends d.A{constructor(e){super(e)}toJSON(){return{...super.toJSON(),type:"pspdfkit/text",text:this.annotation.text,fontColor:this.annotation.fontColor&&(0,c.J)(this.annotation.fontColor),backgroundColor:this.annotation.backgroundColor&&(0,c.J)(this.annotation.backgroundColor),font:this.annotation.font,borderColor:this.annotation.borderColor&&(0,c.J)(this.annotation.borderColor),rotation:"number"==typeof this.annotation.rotation?(0,z.hR)(this.annotation.rotation):this.annotation.rotation,fontSize:this.annotation.fontSize,fontStyle:be(this.annotation)||[],horizontalAlign:this.annotation.horizontalAlign,verticalAlign:this.annotation.verticalAlign,callout:this._calloutToJSON(),borderStyle:this.annotation.borderStyle,borderWidth:this.annotation.borderWidth,isFitting:this.annotation.isFitting,lineHeightFactor:this.annotation.lineHeightFactor}}static fromJSON(e,t,n){(0,r.V1)("pspdfkit/text"===t.type,"Wrong `type` field"),(0,r.V1)("object"==typeof t.text,"Missing `text` field"),(0,r.V1)("string"==typeof t.text.format,"Missing `text.format` field"),(0,r.V1)("string"==typeof t.text.value,"Missing `text.value` field"),(0,r.V1)("string"==typeof t.font,"Missing `font` field"),t.borderStyle&&((0,r.V1)("string"==typeof E.k[t.borderStyle],"Invalid value for `borderStyle`"),(0,r.V1)("number"==typeof t.borderWidth,"Missing `borderWidth` field"));const o=t.fontStyle instanceof Array?t.fontStyle:[],i="number"==typeof t.rotation?(0,z.hR)(t.rotation):0;return new a.dh({...super.fromJSON(e,t,n),text:t.text,fontColor:t.fontColor?(0,c.p)(t.fontColor):null,backgroundColor:t.backgroundColor?(0,c.p)(t.backgroundColor):null,font:t.font,rotation:i,fontSize:null!=t.fontSize?t.fontSize:a.dh.defaultValues.fontSize,isBold:o.includes("bold"),isItalic:o.includes("italic"),horizontalAlign:t.horizontalAlign||"left",verticalAlign:t.verticalAlign||"top",callout:this._JSONToCallout(t.callout),borderStyle:t.borderStyle&&E.k[t.borderStyle],borderWidth:t.borderWidth,borderColor:t.borderColor?(0,c.p)(t.borderColor):null,isFitting:!!t.isFitting||null==t.fontSize,lineHeightFactor:t.lineHeightFactor})}_calloutToJSON(){const{callout:e}=this.annotation;return e?((0,r.V1)(e.start instanceof a.bR),(0,r.V1)(e.end instanceof a.bR),(0,r.V1)(!e.innerRectInset||e.innerRectInset instanceof a.Yy),{start:(0,u.s)(e.start),knee:e.knee&&(0,u.s)(e.knee),end:(0,u.s)(e.end),cap:e.cap,innerRectInset:e.innerRectInset&&(0,g.x)(e.innerRectInset)}):null}static _JSONToCallout(e){return e?((0,r.V1)("object"==typeof e.start,"Missing `callout.start` field"),(0,r.V1)("object"==typeof e.end,"Missing `callout.end` field"),(0,r.V1)(!e.cap||"string"==typeof k.$[e.cap],"Invalid value for `callout.cap`"),new a.Pq({start:(0,u.m)(e.start),knee:e.knee&&(0,u.m)(e.knee),end:(0,u.m)(e.end),cap:e.cap&&k.$[e.cap],innerRectInset:e.innerRectInset&&(0,g.J)(e.innerRectInset)})):null}}var A=n(77765);class D extends A.A{constructor(e){super(e)}toJSON(){return{...super.toJSON(),type:this.typeForAnnotation(),color:(0,c.J)(this.annotation.color)}}static fromJSON(e,t,n){(0,r.V1)(t.type.startsWith("pspdfkit/markup/"),"Wrong `type` field"),(0,r.V1)("string"==typeof t.color,"Missing `color` field");return new(0,A.K[t.type])({...super.fromJSON(e,t,n),color:(0,c.p)(t.color)})}typeForAnnotation(){const e=this.annotation.constructor;for(const t of Object.keys(A.K))if(e===A.K[t])return t;throw new Error("Unknown text markup annotation")}}class T extends d.A{constructor(e){super(e)}toJSON(){return{...super.toJSON(),type:"pspdfkit/unknown"}}static fromJSON(e,t,n){return new a.Ip(super.fromJSON(e,t,n))}}class I extends d.A{constructor(e){super(e)}toJSON(){return{...super.toJSON(),...{type:"pspdfkit/image",description:this.annotation.description,fileName:this.annotation.fileName,contentType:this.annotation.contentType,imageAttachmentId:this.annotation.imageAttachmentId,rotation:this.annotation.rotation,isSignature:this.annotation.isSignature,...this.annotation.xfdfAppearanceStream?{xfdfAppearanceStream:this.annotation.xfdfAppearanceStream}:null,...this.annotation.xfdfAppearanceStreamOriginalPageRotation?{xfdfAppearanceStreamOriginalPageRotation:this.annotation.xfdfAppearanceStreamOriginalPageRotation}:null}}}static fromJSON(e,t,n){(0,r.V1)("pspdfkit/image"===t.type,"Wrong `type` field");const o={};return"string"==typeof t.description&&(o.description=t.description),"string"==typeof t.fileName&&(o.fileName=t.fileName),"string"==typeof t.contentType&&(o.contentType=t.contentType),"string"==typeof t.imageAttachmentId&&(o.imageAttachmentId=t.imageAttachmentId),"boolean"==typeof t.isSignature&&(o.isSignature=t.isSignature),"string"==typeof t.xfdfAppearanceStream&&(o.xfdfAppearanceStream=t.xfdfAppearanceStream),"number"==typeof t.xfdfAppearanceStreamOriginalPageRotation&&(o.xfdfAppearanceStreamOriginalPageRotation=t.xfdfAppearanceStreamOriginalPageRotation),o.rotation="number"==typeof t.rotation?(0,z.hR)(t.rotation):0,new a.vU({...super.fromJSON(e,t,n),...o})}}var M=n(14063);class N extends d.A{constructor(e){super(e)}toJSON(){return{...super.toJSON(),...{type:"pspdfkit/stamp",stampType:this.annotation.stampType,title:this.annotation.title,color:this.annotation.color&&(0,c.J)(this.annotation.color),subtitle:this.annotation.subtitle,rotation:"number"==typeof this.annotation.rotation?(0,z.hR)(this.annotation.rotation):this.annotation.rotation,...this.annotation.xfdfAppearanceStream?{xfdfAppearanceStream:this.annotation.xfdfAppearanceStream}:null,...this.annotation.xfdfAppearanceStreamOriginalPageRotation?{xfdfAppearanceStreamOriginalPageRotation:this.annotation.xfdfAppearanceStreamOriginalPageRotation}:null}}}static fromJSON(e,t,n){(0,r.V1)("pspdfkit/stamp"===t.type,"Wrong `type` field");const o={};return M.qm[t.kind||t.stampType]&&(o.stampType=t.stampType||t.kind),"string"==typeof t.title&&(o.title=t.title),"string"!=typeof t.subTitle&&"string"!=typeof t.subtitle||(o.subtitle=t.subtitle||t.subTitle),"string"==typeof t.color&&(o.color=(0,c.p)(t.color)),"string"==typeof t.xfdfAppearanceStream&&(o.xfdfAppearanceStream=t.xfdfAppearanceStream),"number"==typeof t.xfdfAppearanceStreamOriginalPageRotation&&(o.xfdfAppearanceStreamOriginalPageRotation=t.xfdfAppearanceStreamOriginalPageRotation),o.rotation="number"==typeof t.rotation?(0,z.hR)(t.rotation):0,new a.xY({...super.fromJSON(e,t,n),...o})}}var O=n(84230);class R extends d.A{constructor(e){super(e)}toJSON(){return{...super.toJSON(),type:"pspdfkit/comment-marker"}}static fromJSON(e,t,n){return(0,r.V1)("pspdfkit/comment-marker"===t.type,"Wrong `type` field"),new a.dG(super.fromJSON(e,t,n))}}var j=n(12219);class F extends d.A{constructor(e){super(e)}toJSON(){return{...super.toJSON(),type:"pspdfkit/media",description:this.annotation.description,fileName:this.annotation.fileName,contentType:this.annotation.contentType,mediaAttachmentId:this.annotation.mediaAttachmentId}}static fromJSON(e,t,n){(0,r.V1)("pspdfkit/media"===t.type,"Wrong `type` field");const o={};return"string"==typeof t.description&&(o.description=t.description),"string"==typeof t.fileName&&(o.fileName=t.fileName),"string"==typeof t.contentType&&(o.contentType=t.contentType),"string"==typeof t.mediaAttachmentId&&(o.mediaAttachmentId=t.mediaAttachmentId),new l.A({...super.fromJSON(e,t,n),...o})}}var B=n(36899),L=n(29226),V=n(84445),K=n(6085),H=n(78531);var $=n(83647),U=n(27522),W=n(45374);const q=e=>{Object.keys(e).forEach((t=>{null==e[t]||e[t]instanceof Array&&0===e[t].length?delete e[t]:"object"!=typeof e[t]||e[t]instanceof Array||q(e[t])}))};function G(e){const t=new(function(e){switch(e){case a.Eo:return p;case a.MU:return m;case a.Zx:return y;case a.Go:return b;case a.Si:return w;case a.ug:return x;case a.UL:return S;case a.ax:case a.sB:case a.Yi:case a.TI:return D;case s.A:return j.A;case a.dh:return P;case a.s9:return C;case a.vU:return I;case a.xY:return N;case a.sb:return O.A;case a.dG:return R;case a.Ip:return T;case l.A:return F;default:throw new Error("Unsupported annotation type")}}(e.constructor))(e).toJSON();return q(t),t}function Z(e,t,n){return pe(t.type).fromJSON(e,t,n)}function Y(e,t,n){return function(e,t,n){(0,f.V)(1===t.v,"Version Unknown"),(0,f.V)("string"==typeof e,"`id` must be of type `string`"),(0,f.V)(null==t.name||"string"==typeof t.name,"`name` must be of type `string`"),(0,f.V)("string"==typeof t.type&&t.type.startsWith("pspdfkit/form-field/")&&3===t.type.split("/").length,`Invalid type for form field '${t.type}'`),(0,H.Tr)(n);const i=t.type.split("/")[2],a=t.flags?t.flags.reduce(((e,t)=>(e[t]=!0,e)),{}):{},s={id:e,pdfObjectId:t.pdfObjectId||null,name:t.name,annotationIds:(0,o.B8)(t.annotationIds),label:t.label,readOnly:a.readOnly,required:a.required,noExport:a.noExport,additionalActions:t.additionalActions?(0,K.N2)(t.additionalActions):null,...(0,H.ah)(n)};switch(t.type){case"pspdfkit/form-field/button":return new B.$h({...s,buttonLabel:t.buttonLabel});case"pspdfkit/form-field/checkbox":return new B.av({...s,defaultValues:(0,o.B8)(t.defaultValues),options:(0,o.B8)(t.options.map((e=>new L.A(e))))});case"pspdfkit/form-field/combobox":return new B.sh({...s,options:(0,o.B8)(t.options.map((e=>new L.A(e)))),multiSelect:t.multiSelect,commitOnChange:t.commitOnChange,defaultValues:(0,o.B8)(t.defaultValues),edit:t.edit,doNotSpellCheck:t.doNotSpellCheck});case"pspdfkit/form-field/listbox":return new B.O2({...s,options:(0,o.B8)(t.options.map((e=>new L.A(e)))),multiSelect:t.multiSelect,commitOnChange:t.commitOnChange,defaultValues:(0,o.B8)(t.defaultValues)});case"pspdfkit/form-field/radio":return new B.Qk({...s,noToggleToOff:t.noToggleToOff,radiosInUnison:t.radiosInUnison,defaultValue:t.defaultValue,options:(0,o.B8)(t.options.map((e=>new L.A(e))))});case"pspdfkit/form-field/text":return new B.uS({...s,defaultValue:t.defaultValue,password:t.password,maxLength:t.maxLength,doNotSpellCheck:t.doNotSpellCheck,doNotScroll:t.doNotScroll,multiLine:t.multiLine,comb:t.comb});case"pspdfkit/form-field/signature":return new B.Vw(s);default:throw new r.uE(`Form field type not deserializable: ${i}`)}}(e,t,n)}function X(e){return function(e){const t=V.A5.filter((t=>e[t])),n={id:e.id,v:1,pdfObjectId:e.pdfObjectId,name:e.name,annotationIds:e.annotationIds.toArray(),label:e.label,additionalActions:e.additionalActions&&(0,K.Wg)(e.additionalActions),...(0,H.km)(e),...t?.length&&{flags:t}};if(e instanceof B.$h)return{...n,type:"pspdfkit/form-field/button",buttonLabel:e.buttonLabel};if(e instanceof B.av)return{...n,type:"pspdfkit/form-field/checkbox",defaultValues:e.defaultValues.toArray(),options:e.options.toJS()};if(e instanceof B.sh)return{...n,type:"pspdfkit/form-field/combobox",options:e.options.toJS(),multiSelect:e.multiSelect,commitOnChange:e.commitOnChange,defaultValues:e.defaultValues.toArray(),edit:e.edit,doNotSpellCheck:e.doNotSpellCheck};if(e instanceof B.O2)return{...n,type:"pspdfkit/form-field/listbox",options:e.options.toJS(),multiSelect:e.multiSelect,commitOnChange:e.commitOnChange,defaultValues:e.defaultValues.toArray()};if(e instanceof B.Qk)return{...n,type:"pspdfkit/form-field/radio",options:e.options.toJS(),noToggleToOff:e.noToggleToOff,radiosInUnison:e.radiosInUnison,defaultValue:e.defaultValue};if(e instanceof B.uS)return{...n,type:"pspdfkit/form-field/text",password:e.password,maxLength:e.maxLength,doNotSpellcheck:e.doNotSpellCheck,doNotScroll:e.doNotScroll,multiLine:e.multiLine,comb:e.comb,defaultValue:e.defaultValue};if(e instanceof B.Vw)return{...n,type:"pspdfkit/form-field/signature"};throw new r.uE("Form field type not serializable")}(e)}function J(e,t,n){return(0,W._)(e,t,n)}function Q(e,t){return(0,W.z)(e,t)}function ee(e){const t=o.B8.isList(e.value)?e.value.toArray():null==e.value?void 0:e.value;return{v:1,type:"pspdfkit/form-field-value",name:e.name,value:t,...e.optionIndexes&&e.optionIndexes.size>=1?{optionIndexes:e.optionIndexes.toArray()}:null,..."boolean"==typeof e.isFitting&&{isFitting:e.isFitting}}}function te(e){(0,r.V1)("pspdfkit/form-field-value"===e.type,"Invalid `type` for form field value."),(0,r.V1)(1===e.v,"Invalid `version` for form field value."),(0,r.V1)("string"==typeof e.name,"Invalid `name` for form field value. Must be of type `string`."),(0,r.V1)(void 0===e.value||null===e.value||"string"==typeof e.value||Array.isArray(e.value),"Invalid `value` for form field value. Must be of type `undefined`, `null`, `string`, or `Array<string>`."),(0,r.V1)(void 0===e.optionIndexes||Array.isArray(e.optionIndexes)&&e.optionIndexes.every(Number.isInteger),"Invalid `optionIndexes` value for form field value. Must be an Array of integers."),(0,r.V1)(void 0===e?.isFitting||"boolean"==typeof e.isFitting,"Invalid `isFitting` value for form field value. Must be a boolean.");const t=e.value instanceof Array?(0,o.B8)(e.value):e.value,n=e.name;return new B.E2({name:n,value:t,...e.optionIndexes&&e.optionIndexes.length>=1?{optionIndexes:(0,o.B8)(e.optionIndexes)}:null,..."boolean"==typeof e.isFitting&&{isFitting:e.isFitting}})}function ne(e){if(!Object.values(U.J).includes(e.status))throw new r.uE("Invalid `status` for signatures info. Must be one of the `PSPDFKit.DocumentValidationStatus` values");if("string"!=typeof e.checkedAt)throw new r.uE("Invalid `checkedAt` for signatures info. Must be of type `string`.");if(void 0!==e.signatures&&!Array.isArray(e.signatures))throw new r.uE("Invalid `signatures` for signatures info. Must be of type `undefined` or `Array`.");if(!["undefined","boolean"].includes(typeof e.documentModifiedSinceSignature))throw new r.uE("Invalid `documentModifiedSinceSignature` for signatures info. Must be of type `undefined` or `boolean`.");const{checkedAt:t,signatures:n,documentModifiedSinceSignature:o}=e;return{status:U.J[e.status],checkedAt:new Date(t),...n?{signatures:re(n)}:null,..."boolean"==typeof o?{documentModifiedSinceSignature:o}:null}}function re(e){return e.map((e=>{if("pspdfkit/signature-info"!==e.type)throw new r.uE("Invalid `type` for signature info.");if(["signerName","creationDate","signatureReason","signatureLocation"].forEach((t=>{if(!["undefined","string"].includes(typeof e[t]))throw new r.uE(`Invalid \`${t}\` for signature info. Must be \`undefined\` or \`string\`.`)})),["isTrusted","isSelfSigned","isExpired","documentModifiedSinceSignature"].forEach((t=>{if(!["boolean"].includes(typeof e[t]))throw new r.uE(`Invalid \`${t}\` for signature info. Must be \`boolean\``)})),!["string"].includes(typeof e.signatureFormFQN))throw new r.uE("Invalid `signatureFormFQN` for signature info. Must be a `string`.");if(!Object.values($.Pb).includes(e.documentIntegrityStatus))throw new r.uE("Invalid `documentIntegrityStatus` for signature info. Must be one of the `PSPDFKit.DocumentIntegrityStatus` values");if(e.signatureType&&!Object.values($.BL).includes(e.signatureType))throw new r.uE(`Invalid \`signatureType\` for signature info: ${e.signatureType}. Must be 'cms' or 'cades' if present`);if(!Object.values($.k5).includes(e.certificateChainValidationStatus))throw new r.uE("Invalid `certificateChainValidationStatus` for signature info. Must be one of the `PSPDFKit.CertificateChainValidationStatus` values");if(!Object.values($.w1).includes(e.signatureValidationStatus))throw new r.uE("Invalid `signatureValidationStatus` for signature info. Must be one of the `PSPDFKit.SignatureValidationStatus` values");return{type:e.type,...e.signatureType?{signatureType:xe[e.signatureType]}:null,documentIntegrityStatus:$.Pb[e.documentIntegrityStatus],certificateChainValidationStatus:$.k5[e.certificateChainValidationStatus],signatureValidationStatus:$.w1[e.signatureValidationStatus],isTrusted:e.isTrusted,isSelfSigned:e.isSelfSigned,isExpired:e.isExpired,documentModifiedSinceSignature:e.documentModifiedSinceSignature,signerName:e.signerName,signatureReason:e.signatureReason,signatureLocation:e.signatureLocation,creationDate:e.creationDate?new Date(e.creationDate):void 0,signatureFormFQN:e.signatureFormFQN,PAdESSignatureLevel:e.PAdESSignatureLevel,validFrom:e.validFrom,validUntil:e.validUntil,timestampInfo:e.timestampInfo,ltv:e.ltv}}))}function oe(e){return{type:"pspdfkit/signature-metadata",...e}}function ie(e){return e?{type:"pspdfkit/signature-position",pageIndex:e.pageIndex,rect:(0,v.w)(e.boundingBox)}:null}function ae(e){return new Promise(((t,n)=>{if("function"==typeof e.arrayBuffer)t(e.arrayBuffer());else if(e instanceof window.Blob){const r=new FileReader;r.onloadend=()=>t(r.result),r.onerror=n,r.readAsArrayBuffer(e)}else n(new Error("The input is not a Blob or File."))}))}async function se(e){if(!e)return null;const{watermarkImage:t,graphicImage:n,...r}=e;let o,a,s,l;return t&&(o=await ae(t),a=t.type),n&&(s=await ae(n),l=n.type),{type:"pspdfkit/signature-appearance",...r,...o?{watermark:i.o4.fromUint8Array(new Uint8Array(o))}:{},...a?{watermarkContentType:a}:{},...s?{graphic:i.o4.fromUint8Array(new Uint8Array(s))}:{},...l?{graphicContentType:l}:{}}}function le(e){const{signatureType:t,certificates:n,...r}=e||{};return{type:"pspdfkit/signer-data-source",certificates:n||[],signatureType:Se[t||(n&&n.length>0?$.D7.CAdES:$.D7.CMS)]||$.BL.cms,...r}}function ce(e){return"string"==typeof e.type&&e.type.startsWith("pspdfkit/form-field/")}function ue(e){return"pspdfkit/form-field-value"===e.type}function de(e){return e.map((e=>e.data)).toJS()}const pe=e=>{switch(e){case"pspdfkit/ink":return p;case"pspdfkit/shape/line":return m;case"pspdfkit/shape/rectangle":return y;case"pspdfkit/shape/ellipse":return b;case"pspdfkit/shape/polygon":return w;case"pspdfkit/shape/polyline":return x;case"pspdfkit/link":return S;case"pspdfkit/markup/highlight":case"pspdfkit/markup/squiggly":case"pspdfkit/markup/strikeout":case"pspdfkit/markup/underline":return D;case"pspdfkit/markup/redaction":return j.A;case"pspdfkit/text":return P;case"pspdfkit/note":return C;case"pspdfkit/image":return I;case"pspdfkit/stamp":return N;case"pspdfkit/widget":return O.A;case"pspdfkit/comment-marker":return R;case"pspdfkit/media":return F;default:return T}};function he(e){const t=Object.entries(e).reduce(((e,t)=>{let[n,r]=t;switch(n){case"color":case"fontColor":case"strokeColor":case"backgroundColor":case"borderColor":case"fillColor":case"outlineColor":e[n]=r&&(0,c.J)(r);break;case"startPoint":case"endPoint":e[n]=r&&(0,u.s)(r);break;case"icon":e.icon=_.ac[r];break;case"points":e.points=r&&r.map((e=>(0,u.s)(e))).toJS();break;case"lines":e.lines=r&&{points:r.map((e=>e.map((e=>(0,u.s)(e))))).toJS(),intensities:r.map((e=>e.map((e=>e.intensity)))).toJS()};break;case"isBold":e.fontStyle=Array.isArray(e.fontStyle)?e.fontStyle.concat("bold"):["bold"];break;case"isItalic":e.fontStyle=Array.isArray(e.fontStyle)?e.fontStyle.concat("italic"):["italic"];break;case"callout":e.callout=r&&{start:(0,u.s)(r.start),knee:r.knee&&(0,u.s)(r.knee),end:(0,u.s)(r.end),cap:r.cap};break;case"boundingBox":e.bbox=r&&(0,v.w)(r);break;case"cloudyBorderInset":e.cloudyBorderInset=r&&(0,g.x)(r);break;case"strokeDashArray":case"borderDashArray":e.strokeDashArray=r;break;case"action":e.action=r&&(0,K.Ix)(r);break;case"createdAt":case"updatedAt":e[n]=r&&r.toISOString();break;case"noPrint":case"noZoom":case"noRotate":case"noView":case"hidden":!0===r&&(e.flags=Array.isArray(e.flags)?e.flags.concat(n):[n]);break;default:e[n]=r}return e}),{});return q(t),t}function fe(e){const t=Object.entries(e).reduce(((e,t)=>{let[n,r]=t;switch(n){case"color":case"fontColor":case"strokeColor":case"backgroundColor":case"borderColor":case"fillColor":case"outlineColor":e[n]=null!=r?(0,c.p)(r):null;break;case"startPoint":case"endPoint":e[n]=r&&(0,u.m)(r);break;case"icon":e.icon=_.ct[r];break;case"points":e.points=r&&(0,o.B8)(r.map((e=>(0,u.m)(e))));break;case"lines":e.lines=r&&(0,o.B8)(r.points).map(((e,t)=>{const n=r.intensities[t];return(0,o.B8)(e).map(((e,t)=>{const r=n[t],o=(0,u.m)(e);return new a.LL({x:o.x,y:o.y,intensity:r})}))}));break;case"fontStyle":e.isBold=r&&r.includes("bold"),e.isItalic=r&&r.includes("italic");break;case"callout":e.callout=r&&{start:(0,u.m)(r.start),knee:r.knee&&(0,u.m)(r.knee),end:(0,u.m)(r.end),cap:r.cap};break;case"bbox":e.boundingBox=r&&(0,v.a)(r);break;case"cloudyBorderInset":e.cloudyBorderInset=r&&(0,g.J)(r);break;case"strokeDashArray":e.strokeDashArray=r;break;case"action":e.action=r&&(0,K._8)(r);break;case"createdAt":case"updatedAt":e[n]=new Date(r);break;case"flags":r&&(e.noPrint=r.includes("noPrint"),e.noZoom=r.includes("noZoom"),e.noRotate=r.includes("noRotate"),e.noView=r.includes("noView"),e.hidden=r.includes("hidden"));break;default:e[n]=r}return e}),{});return q(t),t}function me(e){return"pspdfkit/bookmark"===e.type}function ge(e){return"pspdfkit/comment"===e.type}function ve(e){return"pspdfkit/signature-info"===e.type}function ye(e){return"pspdfkit/embedded-file"===e.type}function be(e){const t=[];return e.isBold&&t.push("bold"),e.isItalic&&t.push("italic"),t.length>0?t:null}function we(e){if("addPage"===e.type){if("afterPageIndex"in e&&"number"==typeof e.afterPageIndex)return{type:e.type,afterPageIndex:e.afterPageIndex,pageWidth:e.pageWidth,pageHeight:e.pageHeight,rotateBy:e.rotateBy,backgroundColor:e.backgroundColor.toCSSValue(),...e.insets&&{insets:(0,v.w)(e.insets)}};if("beforePageIndex"in e&&"number"==typeof e.beforePageIndex)return{type:e.type,beforePageIndex:e.beforePageIndex,pageWidth:e.pageWidth,pageHeight:e.pageHeight,rotateBy:e.rotateBy,backgroundColor:e.backgroundColor.toCSSValue(),...e.insets&&{insets:(0,v.w)(e.insets)}};throw new r.uE("The `addPage` operation is missing either the `afterPageIndex` or the `beforePageIndex` property")}return"cropPages"===e.type?{type:e.type,cropBox:(0,v.w)(e.cropBox),pageIndexes:e.pageIndexes}:"addPageMargins"===e.type?{type:e.type,margins:(0,g.x)(e.margins),pageIndexes:e.pageIndexes}:"flattenAnnotations"===e.type?{type:e.type,pageIndexes:e.pageIndexes,annotationIds:e.annotationIds,noteAnnotationOpacity:e.noteAnnotationOpacity,...e.noteAnnotationBackgroundColor?{noteAnnotationBackgroundColor:(0,c.J)(e.noteAnnotationBackgroundColor)}:null}:e}const xe={cms:"CMS",cades:"CAdES",documentTimestamp:"documentTimestamp"},Se={CMS:"cms",CAdES:"cades",documentTimestamp:"documentTimestamp"};function _e(e){return(0,o.B8)(e.map((e=>({c:e.c,rect:(0,v.a)(e.r)}))))}},82079:(e,t,n)=>{"use strict";n.d(t,{Uw:()=>Pz,Hr:()=>Lz,nf:()=>Bz,g$:()=>Mz,$4:()=>Nz,jU:()=>kz,NY:()=>Vz,Hh:()=>Iz,Sj:()=>vz,Ib:()=>Kz,o3:()=>Tz,Pm:()=>zz,lH:()=>gz});var r={};n.r(r),n.d(r,{Decoder:()=>cx,Encoder:()=>sx,PacketType:()=>ax,protocol:()=>ix});var o=n(41294),i=n(45849),a=n(49568),s=n(7737),l=n(85409),c=n(5338),u=n(96540),d=n(32485),p=n.n(d),h=n(63211),f=n(97444),m=n(29843),g=n.n(m),v=n(84387),y=n(67136),b=n(9627),w=n(98899);const x=(0,b.YQ)(17)&&(0,b.CN)();class S{constructor(){this.ranges=[],this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}getRangeAt(e){return this.ranges[e]}addRange(e){this.ranges.push(e)}removeAllRanges(){this.ranges=[]}setBaseAndExtent(e,t,n,r){const o=document.createRange();o.setStart(e,t),o.setEnd(n,r),this.removeAllRanges(),this.addRange(o),this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}isEmptySelection(){return 0===this.ranges.length}get isCollapsed(){return 0===this.ranges.length||1===this.ranges.length&&this.ranges[0].collapsed}collapse(e,t){const n=document.createRange();n.collapse(!0),n.setStart(e,t),n.setEnd(e,t),this.removeAllRanges(),this.addRange(n),this.anchorNode=e,this.anchorOffset=t,this.focusNode=e,this.focusOffset=t}extend(e,t){if(0===this.ranges.length)throw new Error("No ranges to extend");this.ranges[this.ranges.length-1].setEnd(e,t),this.focusNode=e,this.focusOffset=t}get rangeCount(){return this.ranges.length}toString(){return this.ranges.map((e=>e.toString())).join("")}}class _{constructor(e){(0,y.A)(this,"selection",new S),(0,y.A)(this,"isSelecting",!1),(0,y.A)(this,"useNativeSelection",!1),(0,y.A)(this,"touchStartPoint",null),(0,y.A)(this,"touchEndPoint",null),(0,y.A)(this,"touchTarget",null),(0,y.A)(this,"touchStartX",0),(0,y.A)(this,"touchStartY",0),(0,y.A)(this,"initialPoint",null),(0,y.A)(this,"currentPoint",null),(0,y.A)(this,"clickCount",0),(0,y.A)(this,"clickTimer",null),(0,y.A)(this,"processing",!1),this.useNativeSelection="getComposedRanges"in Selection.prototype,this.shadowRoot=e,this.boundHandleMouseDown=this.handleMouseDown.bind(this),this.boundHandleMouseMove=this.handleMouseMove.bind(this),this.boundHandleMouseUp=this.handleMouseUp.bind(this),this.boundSelectionChange=this.windowSelectionChange.bind(this),this.boundBeforeInput=this.handleBeforeInput.bind(this),this.boundHandleTouchStart=this.handleTouchStart.bind(this),this.boundHandleTouchEnd=this.handleTouchEnd.bind(this),this.useNativeSelection||this.setupEventListeners(),window.ShadowRoot.prototype.getSelection=()=>{const e=function(){let e=document.activeElement;for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}(),t=(0,w.ly)(e);if(!t&&this.useNativeSelection){const e=window.getSelection(),t=e?.getComposedRanges(this.shadowRoot),n=t[0];if(n){const e=new S;return e.addRange(n),e.setBaseAndExtent(n.startContainer,n.startOffset,n.endContainer,n.endOffset),e}}else if(t||!x&&e===document.body)return document.getSelection();return this.selection}}setupEventListeners(){this.shadowRoot.addEventListener("mousedown",this.boundHandleMouseDown),this.shadowRoot.addEventListener("mousemove",this.boundHandleMouseMove),document.addEventListener("mouseup",this.boundHandleMouseUp),this.shadowRoot.addEventListener("touchstart",this.boundHandleTouchStart),this.shadowRoot.addEventListener("touchend",this.boundHandleTouchEnd),window.addEventListener("selectionchange",this.boundSelectionChange,!0),window.addEventListener("beforeinput",this.boundBeforeInput,!0)}cleanupEventListeners(){this.useNativeSelection||(this.shadowRoot.removeEventListener("mousedown",this.boundHandleMouseDown),this.shadowRoot.removeEventListener("mousemove",this.boundHandleMouseMove),document.removeEventListener("mouseup",this.boundHandleMouseUp),this.shadowRoot.removeEventListener("touchstart",this.boundHandleTouchStart),this.shadowRoot.removeEventListener("touchend",this.boundHandleTouchEnd),window.removeEventListener("selectionchange",this.boundSelectionChange,!0),window.removeEventListener("beforeinput",this.boundBeforeInput,!0))}windowSelectionChange(){if(this.processing)return;this.processing=!0;const e=document.getSelection(),t=e?.toString();if(e&&t&&x){const n=(0,w.Fz)(e,t,this.touchTarget,this.touchStartX,this.touchStartY);n&&(this.selection.removeAllRanges(),this.selection.addRange(n))}this.processing=!1}handleBeforeInput(e){const t=e;if(this.processing){const e=t.getTargetRanges()[0],n=new Range;n.setStart(e.startContainer,e.startOffset),n.setEnd(e.endContainer,e.endOffset),this.selection.removeAllRanges(),this.selection.addRange(n),t.preventDefault(),t.stopImmediatePropagation()}}handleMouseDown(e){const t=e,n=e.composedPath()[0];return this.clickCount++,2===this.clickCount?(this.handleDoubleClick(t),void this.resetClickCountAfterDelay()):3===this.clickCount?(this.handleTripleClick(t),void(this.clickCount=0)):(1!==this.clickCount||this.selection.isEmptySelection()||this.selection.removeAllRanges(),this.setupInitialSelectionPoint({e:t,target:n}),void this.resetClickCountAfterDelay())}handleMouseMove(e){const t=e;if(!this.isSelecting)return;const n=t.composedPath()[0],r=(0,w.zG)(n,t.clientX,t.clientY);let o=0;if(r&&r.nodeType===Node.TEXT_NODE&&(o=(0,w.Ly)(r,t.clientX,t.clientY)),this.currentPoint={node:r,offset:o},this.initialPoint&&this.currentPoint){const{node:e,offset:t}=this.initialPoint,{node:n,offset:r}=this.currentPoint;e&&n&&this.updateSelection(e,t,n,r)}}handleMouseUp(){if(this.isSelecting=!1,setTimeout((()=>{1===this.clickCount&&(this.currentPoint||this.initialPoint&&null!==this.initialPoint.node||this.selection.removeAllRanges(),this.clickCount=0)}),400),this.initialPoint&&this.currentPoint){const e=this.initialPoint.node,t=this.currentPoint.node;if(e&&t){const e=(0,w.wg)(this.initialPoint,this.currentPoint);this.updateSelection(e.startNode,e.startOffset,e.endNode,e.endOffset)}}this.initialPoint=null,this.currentPoint=null}handleTouchStart(e){const t=e.touches[0];this.touchTarget=e.composedPath()[0],this.touchStartX=t.clientX,this.touchStartY=t.clientY}handleTouchEnd(e){const t=e.changedTouches[0],n=document.elementFromPoint(t.clientX,t.clientY),r=(0,w.zG)(n,t.clientX,t.clientY),o=r&&r.nodeType===Node.TEXT_NODE?(0,w.Ly)(r,t.clientX,t.clientY):0;if(this.touchEndPoint={node:r,offset:o},this.touchStartPoint&&this.touchEndPoint){const{node:e,offset:t}=this.touchStartPoint,{node:n,offset:r}=this.touchEndPoint;e&&n&&this.updateSelection(e,t,n,r)}this.touchStartPoint=null,this.touchEndPoint=null}setupInitialSelectionPoint(e){let{e:t,target:n}=e;const r=(0,w.zG)(n,t.clientX,t.clientY),o=r&&r.nodeType===Node.TEXT_NODE?(0,w.Ly)(r,t.clientX,t.clientY):0;this.initialPoint={node:r,offset:o},this.isSelecting=!0}resetClickCountAfterDelay(){clearTimeout(this.clickTimer),this.clickTimer=setTimeout((()=>{this.clickCount=0}),400)}handleDoubleClick(e){const t=e.composedPath()[0],n=(0,w.zG)(t,e.clientX,e.clientY);if(n&&n.nodeType===Node.TEXT_NODE){const t=(0,w.S7)(n,e.clientX,e.clientY);t&&(this.selection.removeAllRanges(),this.selection.addRange(t))}}handleTripleClick(e){clearTimeout(this.clickTimer),this.clickCount=0;const t=e.composedPath()[0],n=(0,w._M)(t);n&&(this.selection.removeAllRanges(),this.selection.addRange(n))}updateSelection(e,t,n,r){const o=new Range;o.setStart(e,t),o.setEnd(n,r),this.selection.removeAllRanges(),this.selection.addRange(o)}}var C=n(41204);function E(e){return(0,l.V1)(Array.isArray(e),"fontSubstitutions must be an array of FontSubstitution objects."),e.every((e=>"string"==typeof e?.pattern&&""!==e?.pattern.trim()&&"string"==typeof e?.target&&""!==e.target.trim()))}var k=n(30830),z=n(50960),P=n(76117),A=n(5511),D=n(77270),T=n(37433),I=n(44523),M=n(27959),N=n(35014),O=n(38849),R=n(29366);const j=(0,O.A)("MeasurementValueConfiguration");function F(e){let t=!1;e.forEach(((n,r)=>{var o;o=n,j((0,l.Qd)(o)&&!!o,"Expected item to be an object"),j((0,l.Qd)(o.scale)&&!!o.scale,"Expected scale to be an object"),j(void 0!==o.scale.unitFrom&&Object.values(N.b).includes(o.scale.unitFrom),`Scale ${o.name} does not have a valid 'unitFrom' value.`),j(void 0!==o.scale.unitTo&&Object.values(M._).includes(o.scale.unitTo),`Scale ${o.name} does not have a valid 'unitTo' value.`),j(void 0!==o.scale.fromValue&&(0,R.Et)(Number(o.scale.fromValue)),`Scale ${o.name} does not have a valid 'fromValue' value.`),j(void 0!==o.scale.toValue&&(0,R.Et)(Number(o.scale.toValue)),`Scale ${o.name} does not have a valid 'toValue' value.`),j("string"==typeof o.precision||void 0===o.precision,"`measurementValueConfiguration.measurementPrecision` must be a string.");for(let t=r+1;t<e.length;t++){const o=(0,I.tv)(n,e[t]);j(!o,`Scale ${n.name||`at index ${r}`} is a duplicate of ${e[t].name||`at index ${t}`}.`)}n.selected&&(j(!t,"Only one scale can be selected at a time. Please check your configuration."),t=!0)}))}var B=n(89574),L=n(30235),V=n(71453),K=n(18738),H=n(82500),$=n(69371);const U=new P.Uw,W={[H.agm]:(e,t)=>e.withMutations((e=>{t.annotations.forEach((t=>{(0,B.lC)(e,t)}))})),[H.B5]:(e,t)=>{const n=t.annotation.withMutations((n=>n.merge((0,B.mN)(e)).set("pageIndex",t.pageIndex)));return e.withMutations((e=>{e.set("selectedAnnotationIds",(0,a.NZ)([n.id])),e.set("interactionMode",L.O.INK),e.set("selectedAnnotationMode",V.Q.EDITING),(0,B.lC)(e,n)}))},[H.KaD]:(e,t)=>{const n=t.annotation.withMutations((n=>n.merge((0,B.mN)(e)).set("pageIndex",t.pageIndex)));return e.withMutations((e=>{e.set("selectedAnnotationIds",(0,a.NZ)([n.id])),e.set("interactionMode",(0,K.e8)(t.annotation.constructor)),e.set("selectedAnnotationMode",V.Q.EDITING),(0,B.lC)(e,n)}))},[H.mIs]:(e,t)=>{const n=t.annotation.withMutations((n=>n.merge((0,B.mN)(e)).set("pageIndex",t.pageIndex)));return e.withMutations((e=>{e.set("selectedAnnotationIds",(0,a.NZ)([n.id])),e.set("interactionMode",L.O.REDACT_SHAPE_RECTANGLE),e.set("selectedAnnotationMode",V.Q.EDITING),(0,B.lC)(e,n)}))},[H.QRJ]:(e,t)=>{let{attributes:n}=t;const{currentItemPreset:r}=e;return r?e.hasIn(["annotationPresets"],r)?e.mergeIn(["annotationPresets",r],n):e.setIn(["annotationPresets",r],n):e},[H.xQ8]:(e,t)=>{let{currentItemPreset:n}=t;return e.set("currentItemPreset",n)},[H.jms]:(e,t)=>{let{annotationPresets:n}=t;return e.set("annotationPresets",n)},[H.e7N]:(e,t)=>{let{annotationID:n,annotationPresetID:r}=t;return e.setIn(["annotationPresetIds",n],r)},[H.VGl]:(e,t)=>{let{annotationID:n}=t;return e.delete("annotationPresetIds",n)},[H.Gro]:(e,t)=>{let{annotationID:n}=t;const r=e.annotationPresetIds.has(n)?e.annotationPresetIds.get(n):(0,B.tE)(e,n);return e.set("currentItemPreset",r)},[H.FCx]:(e,t)=>e.withMutations((e=>{t.annotations.forEach((t=>{(0,B.rJ)(e,t)}))})),[H.vmd]:(e,t)=>e.withMutations((e=>{t.ids.forEach((t=>{(0,B.Xm)(e,t)}))})),[H.Get]:(e,t)=>{let{annotationsIDs:n}=t;return e.set("annotationsIdsToDelete",n)},[H.c5z]:(e,t)=>{let{stampAnnotationTemplates:n}=t;return e.set("stampAnnotationTemplates",n)},[H.qml]:(e,t)=>e.set("collapseSelectedNoteContent",t.value),[H.qRc]:(e,t)=>e.withMutations((e=>{t.ids.forEach(((t,n)=>{e.invalidAPStreams.get(t)||e.set("invalidAPStreams",e.invalidAPStreams.set(t,(0,a.NZ)()));const r=e.invalidAPStreams.get(t);r&&e.set("invalidAPStreams",e.invalidAPStreams.set(t,r.add(n)))}))})),[H.jkd]:(e,t)=>e.withMutations((e=>{t.ids.forEach(((t,n)=>{e.invalidAPStreams.get(t)&&e.deleteIn(["invalidAPStreams",t],n)}))})),[H.jAd]:(e,t)=>e.set("onAnnotationResizeStart",t.callback),[H.zjV]:(e,t)=>{let{measurementToolState:n}=t;return e.set("measurementToolState",n?{...e.measurementToolState,...n}:null)},[H.Fe8]:(e,t)=>{let{hintLines:n}=t;return e.set("hintLines",n)},[H.H0A]:(e,t)=>{let{configurationCallback:n}=t;return e.set("measurementValueConfiguration",n)},[H.ur2]:(e,t)=>{let{scales:n}=t;const r=e.measurementValueConfiguration?.(n)??n;r&&F(r);const o=e.activeMeasurementScale||r.find((e=>e.selected))||r[0];return e.withMutations((e=>{e.set("measurementScales",r),o&&e.set("activeMeasurementScale",o)}))},[H.SmB]:(e,t)=>e.set("secondaryMeasurementUnit",t.secondaryMeasurementUnit),[H.cX]:(e,t)=>e.set("activeMeasurementScale",t.activeMeasurementScale),[H.gKg]:(e,t)=>e.set("isCalibratingScale",t.isCalibratingScale),[H.dv5]:(e,t)=>e.withMutations((e=>{"down"===t.variant?e.updateIn(["APStreamVariantsDown"],(0,$.C$)((e=>e.concat(t.annotationObjectIds)))):"rollover"===t.variant&&e.updateIn(["APStreamVariantsRollover"],(0,$.C$)((e=>e.concat(t.annotationObjectIds))))})),[H.m65]:(e,t)=>e.set("widgetAnnotationToFocus",t.annotationId),[H.uo5]:(e,t)=>{const{annotations:n,formFields:r}=e,o=[],i=t.tabOrder.reduce(((e,i)=>{const a=n.find((e=>"number"==typeof e.pdfObjectId?i.pdfObjectId===e.pdfObjectId:i.id===e.id));let s;if(a instanceof P.sb){if(s=r.get(a.formFieldName),!s)return e;if(s instanceof P.Qk){if(o.includes(s.name))return e;const r=n.filter((e=>e instanceof P.sb&&e.formFieldName===s.name)),i=t.tabOrder.filter((e=>r.some((t=>"number"==typeof e.pdfObjectId?e.pdfObjectId===t.pdfObjectId:e.id===t.id)))).map((e=>e.id));return o.push(s.name),e.concat(i)}}return e.concat([a?.id])}),[]).filter(Boolean);return e.setIn(["pages",t.pageIndex,"tabOrder"],i)}};function q(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:U,t=arguments.length>1?arguments[1]:void 0;const n=W[t.type];return n?n(e,t):e}var G=n(5217),Z=n(63939),Y=n(83145),X=n(24063),J=n(62362),Q=n(37513),ee=n(94308),te=n(64337),ne=n(30919),re=n(40961),oe=n(74848);const ie=()=>()=>{};function ae(){const e=u.createContext(ie);class t extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"state",{instances:{}}),(0,y.A)(this,"refCreator",((e,t,n)=>r=>{this.setState((o=>{let{instances:i}=o;const a=i[e]||{node:null,portalTarget:document.createElement("div"),target:null};return n&&(a.portalTarget.className=n),a.portalTarget.parentNode!==r&&r&&r.appendChild(a.portalTarget),a.node===t&&a.target===r?null:{instances:Object.assign(i,{[e]:{...a,node:t,target:r}})}}),(()=>{if(null===r){null===this.state.instances[e].target&&this.setState((t=>{let{instances:n}=t;const{[e]:r,...o}=n;return{instances:o}}))}}))}))}render(){const t=Object.entries(this.state.instances).map((e=>{let[t,{node:n,portalTarget:r}]=e;return re.createPortal(void 0===n?null:n,r,t)}));return(0,oe.jsxs)(e.Provider,{value:this.refCreator,children:[this.props.children,t]})}}return{Provider:t,Reparent:function(t){let{id:n,children:r,className:o}=t;return(0,oe.jsx)(e.Consumer,{children:e=>(0,oe.jsx)("div",{ref:e(n,r,o)})})}}}const se=ae(),le=ae();ae();var ce=n(51946);function ue(e){let{append:t,node:n,children:r,rendererStyles:o,onDisappear:i}=e;const[a,s]=u.useState(null),l=u.useRef(i);return u.useLayoutEffect((()=>{if(a&&n&&n!==a.firstChild){for(;a.firstChild;)a.removeChild(a.firstChild);a.appendChild(n)}return()=>{const e=l.current;e&&e(n)}}),[n,a]),u.useLayoutEffect((()=>{l.current=i}),[i]),(0,oe.jsx)("div",{style:{position:"relative"},children:(0,oe.jsxs)(oe.Fragment,{children:[t?r:null,n&&(0,oe.jsx)("div",{ref:s,style:o})]})})}function de(e,t){return!e&&!t}const pe={node:"object",append:"boolean",noZoom:"boolean",onDisappear:"function"};const he=(0,s.Ng)((e=>({customRenderers:e.customRenderers})))((function(e){const{children:t,customRenderers:n,renderer:r,zoomLevel:o,notCSSScaled:i=!1}=e;if(!n||!n[r])return t;const a=u.Children.only(t),s=a.props,c=fe[r],d=n[r];(0,l.V1)(null!=d);const p=d(c(s));if(!p)return t;!function(e){(0,l.V1)(e.node,"Custom renderers must return an object with a node property.");for(const t in e)e.hasOwnProperty(t)&&((0,l.V1)(void 0!==pe[t],`Render configuration '${t}' property is not supported`),(0,l.V1)(typeof e[t]===pe[t],`Render configuration ${t} property has wrong '${typeof e[t]}' type, should be '${pe[t]}'`))}(p);const{node:h,append:f,noZoom:m=!1,onDisappear:g}=p,v=me[r];(0,l.V1)("boolean"==typeof m);const y={pointerEvents:f?"none":"all",...v?v(s,m,i,o):null};return(0,oe.jsx)(ue,{node:h,append:f,onDisappear:g,rendererStyles:y,children:a})})),fe={Annotation:e=>({annotation:e.annotation}),CommentAvatar:e=>({comment:e.comment})},me={Annotation:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(e&&e.annotation&&e.annotation.boundingBox){const{left:o,top:i,width:a,height:s}=e.annotation.boundingBox;return{position:"absolute",left:o*r,top:i*r,width:n?a*r:a,height:n?s*r:s,...de(t,n)?{transform:`scale(${r})`,transformOrigin:"0 0"}:null}}return{}},CommentAvatar:null};var ge=n(97819),ve=n(2815),ye=n(75675);class be extends u.PureComponent{render(){const{applyZoom:e,children:t,position:n,zoomLevel:r,noRotate:o,currentPagesRotation:i,disablePointerEvents:a,additionalStyle:s={},isMultiAnnotationsSelected:l}=this.props;(0,ye.V)(!o||"number"==typeof i);const c=(e?`scale(${r}) `:"")+(o?`rotate(-${String(i)}deg)`:""),u={top:n?n.y*r:null,left:n?n.x*r:null,position:"absolute",transform:c,transformOrigin:"0 0",pointerEvents:!0===a?"none":"auto",zIndex:l?2:"unset",...s};return(0,oe.jsx)("div",{style:u,className:this.props.className,children:t})}}var we=n(95171),xe=n(93440),Se=n(51630),_e=n(37361),Ce=n(83106),Ee=n.n(Ce);class ke extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"shouldComponentUpdate",$.EF),(0,y.A)(this,"_onPointerDownUp",(e=>{e.isPrimary&&(!this.props.isReadOnly&&e.preventDefault(),this._handlePress(e,"touch"!==e.pointerType?new P.bR({x:e.clientX,y:e.clientY}):null))})),(0,y.A)(this,"_handlePress",((e,t)=>{const n=()=>{this.props.dispatch((0,we.pw)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0,ignoreReadOnly:!0}))};b.LZ?window.setTimeout(n,5):n()})),(0,y.A)(this,"_handleClick",(e=>{"keypress"===e.type&&this._handlePress(e,null)}))}render(){const{annotation:e,zoomLevel:t,rotation:n,active:r,intl:{formatMessage:o}}=this.props,{width:i,height:a}=e.boundingBox,s=this.props.isReadOnly?{onPointerUp:this._onPointerDownUp}:{onPointerDown:this._onPointerDownUp},l=p()("PSPDFKit-Annotation","PSPDFKit-Comment-Marker-Annotation",r&&!this.props.isDisabled&&"PSPDFKit-Annotation-Selected",r&&!this.props.isDisabled&&"PSPDFKit-Comment-Marker-Annotation-Selected",Ee().annotation);return(0,oe.jsx)(be,{position:e.boundingBox.getLocation(),zoomLevel:t,currentPagesRotation:n,noRotate:!0,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected,children:(0,oe.jsx)(ge.A,{...s,onClick:this._handleClick,style:{width:_e.jw,height:_e.jw,transformOrigin:"top left",transform:`translate(${i*t/2-i/2}px, ${a*t/2-a/2}px)`},className:l,"data-annotation-id":e.id,"aria-controls":`CommentThread-${e.id}`,"aria-label":`${o(xe.A.annotation)}: ${o(xe.A.comment)}`,tabIndex:-1,children:(0,oe.jsx)(Se.A,{style:{width:_e.jw,height:_e.jw},className:p()(Ee().icon,r&&Ee().iconActive),type:"comment-indicator"})})})}}const ze=(0,ve.j4)(ke,{forwardRef:!0});var Pe,Ae=n(78625),De=n(92078),Te=n(77868),Ie=n(66421),Me=n(11899),Ne=n.n(Me),Oe=n(83720),Re=n(57892),je=n(26438),Fe=n(64104),Be=n.n(Fe);class Le extends u.PureComponent{constructor(){super(...arguments),(0,y.A)(this,"isAlive",!0),(0,y.A)(this,"_shouldShowIndicators",this.props.annotation instanceof P.vU||this.props.annotation instanceof P.UL||this.props.annotation instanceof P.xY||this.props.annotation instanceof P.Ip||this.props.formField instanceof P.Vw),(0,y.A)(this,"_imageFetcherRef",(e=>{e&&!this._fetchImageComponentInstance&&(this._fetchImageComponentInstance=e)})),(0,y.A)(this,"_fetchImageComponentInstance",null),(0,y.A)(this,"state",{loadingState:"LOADING",showLoadingIndicator:!1,renderedAnnotation:null}),(0,y.A)(this,"_fetchImage",(()=>{const{backend:e,attachment:t,zoomLevel:n,isDetachedAnnotation:r}=this.props;let o=this.props.annotation;r&&(o=o.update("boundingBox",(e=>e?.set("left",0).set("top",0)||null)));const i=this._lastZoomLevelUsed<n;return this._lastZoomLevelUsed=n,(0,Ae.pw)({backend:e,blob:t?.data,annotation:o,isDetachedAnnotation:Boolean(r),zoomLevel:n,variant:this.props.variant,hasZoomedIn:i})})),(0,y.A)(this,"_renderFinished",(()=>{this.isAlive&&(this.props.annotation instanceof P.xY&&this.setState({renderedAnnotation:this.props.annotation}),this._shouldShowIndicators&&this.setState({loadingState:"LOADED"}),this.props.onRenderFinished?.())})),(0,y.A)(this,"_showError",(()=>{this.isAlive&&(this.props.annotation instanceof P.xY||this.props.annotation instanceof P.vU||this.props.annotation instanceof P.Ip?this._shouldShowIndicators&&this.setState({loadingState:"ERROR"}):this.props.onError?.())})),(0,y.A)(this,"_showLoadingIndicator",(()=>{this.isAlive&&this._shouldShowIndicators&&this.setState((e=>({showLoadingIndicator:"LOADING"===e.loadingState})))}))}componentDidUpdate(e){!this.props.isDragging&&this.isAlive&&$e(e,this.props)&&(this._fetchImageComponentInstance&&this.props.annotation.rotation!==e.annotation.rotation?this._fetchImageComponentInstance.refreshSkippingThrottle():this._fetchImageComponentInstance&&this._fetchImageComponentInstance.refresh())}componentDidMount(){this._shouldShowIndicators&&setTimeout(this._showLoadingIndicator,_e.$V)}componentWillUnmount(){this.isAlive=!1;const{annotation:e,backend:t}=this.props;"imageAttachmentId"in e&&e.imageAttachmentId&&(t.attachmentsCache=t.attachmentsCache.delete((0,Ae.fu)(e)))}render(){const{annotation:e,attachment:t,formField:n,label:r,zoomLevel:i}=this.props,a=e instanceof P.xY&&this.state.renderedAnnotation?.opacity!==e.opacity,s={...Ve,...He({annotation:this.state.renderedAnnotation||e,attachment:t,zoomLevel:i}),...a?{opacity:e.opacity}:null},l=p()(Be().wrapper,"PSPDFKit-APStream-Wrapper",{[Be().loading]:this._shouldShowIndicators&&"LOADING"===this.state.loadingState&&this.state.showLoadingIndicator,[Be().error]:this._shouldShowIndicators&&"ERROR"===this.state.loadingState}),c=p()(e instanceof P.xY&&Be().stampAnnotation,e instanceof P.sb&&Be().widgetAnnotation,"PSPDFKit-APStream"),u=e instanceof P.xY||e instanceof P.vU||e instanceof P.Ip||e instanceof P.sb&&n instanceof P.Vw?null:0;return(0,oe.jsxs)("figure",{style:s,className:l,"data-name":n?.name,children:[(0,oe.jsx)(De.A,{className:c,fetchImage:this._fetchImage,label:r,visible:!0,onRenderFinished:this._renderFinished,onError:this._showError,throttleTimeout:u,rectStyle:Ke,ref:this._imageFetcherRef}),"description"in e&&e.description&&(0,oe.jsx)(o.s6,{tag:"figcaption",children:e.description}),this._shouldShowIndicators&&"LOADING"===this.state.loadingState&&this.state.showLoadingIndicator?(0,oe.jsx)("div",{className:Be().placeholder,children:Pe||(Pe=(0,oe.jsx)(Ie.A,{}))}):this._shouldShowIndicators&&"ERROR"===this.state.loadingState?(0,oe.jsx)("div",{className:Be().placeholder,children:(0,oe.jsx)(Te.A,{src:Ne(),className:Be().errorIcon})}):null]})}}const Ve={position:"relative",overflow:"hidden",margin:0,pointerEvents:"none",width:"100%",height:"100%"},Ke={pointerEvents:"none",width:"100%",height:"100%"};function He(e){let{annotation:t,attachment:n,zoomLevel:r}=e;if(t instanceof P.sb){return{position:"absolute",top:0,...90===(0,je.hR)(t.rotation)||270===(0,je.hR)(t.rotation)?{width:t.boundingBox.width*r,height:t.boundingBox.height*r}:null}}if(t instanceof P.UL)return{position:"absolute",top:0};if(t instanceof P.pP||t instanceof P.Eo)return{padding:b.LZ?_e.Bd:_e.uo};if(t instanceof P.xY&&(0,Re.Lz)(t)){const e=(0,Re.rK)(t);return{transformOrigin:"50% 50%",transform:`translate(${-((t.boundingBox.width-e.boundingBox.width)/2*r)}px, ${-((t.boundingBox.height-e.boundingBox.height)/2*r)}px) rotate(${String(t.rotation)}deg)`,width:t.boundingBox.width*r,height:t.boundingBox.height*r}}if(t instanceof P.dh&&(0,Re.Lz)(t)){const e=(0,Re.rK)(t);return{transformOrigin:"50% 50%",transform:`translate(${-((t.boundingBox.width-e.boundingBox.width)/2*r)}px, ${-((t.boundingBox.height-e.boundingBox.height)/2*r)}px) rotate(${String(t.rotation)}deg)`,width:t.boundingBox.width*r,height:t.boundingBox.height*r}}return t instanceof P.vU&&n&&t.opacity<1?{opacity:t.opacity}:t instanceof P.UL||t instanceof P.dh||t instanceof P.tr||t instanceof P.s9||t instanceof P.Ip||t instanceof P.vU||t instanceof P.xY?{}:void(0,l.GQ)(t.constructor)}function $e(e,t){return function(e,t){return!(0,B.yQ)(t.annotation,t.zoomLevel)&&t.zoomLevel>e.zoomLevel}(e,t)||(0,B.bN)(e.annotation,t.annotation)||(0,B.Mq)(e.formField,t.formField)||t.formField&&e.formField&&t.formField.formattedValue!==e.formField.formattedValue||!(0,Oe.Ny)(t.formField,e.formField)||e.variant!==t.variant||e.isDigitallySigned!==t.isDigitallySigned||"number"==typeof e.annotation.pdfObjectId&&"number"==typeof t.annotation.pdfObjectId&&e.annotation.pdfObjectId!==t.annotation.pdfObjectId}var Ue=n(88290),We=n(72254),qe=n.n(We);class Ge extends u.PureComponent{constructor(){super(...arguments),(0,y.A)(this,"_handlePointerDown",(e=>{e.isPrimary&&this.props.isSelectable&&this._handlePress(e,"touch"!==e.pointerType?new P.bR({x:e.clientX,y:e.clientY}):null)})),(0,y.A)(this,"_handlePress",((e,t)=>{this.props.dispatch((0,we.pw)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0}))})),(0,y.A)(this,"_handleClick",(e=>{"keypress"===e.type&&this._handlePress(e,null)})),(0,y.A)(this,"_handlePointerUp",(e=>{e.stopPropagation()}))}render(){const{annotation:e,attachment:t,backend:n,onRenderFinished:r,zoomLevel:o,isSelectable:i,isDisabled:a,isDragging:s,intl:{formatMessage:l}}=this.props,{boundingBox:c,id:u}=e,d={cursor:(0,B.Zr)(e,{isSelectable:i}),overflow:"hidden",width:c.width*o,height:c.height*o,display:"block",outline:this.props.isFocused?B.wp:null};return(0,oe.jsx)(se.Reparent,{id:`annotation-image-${u}`,children:(0,oe.jsx)(be,{position:c.getLocation(),zoomLevel:o,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected,children:(0,oe.jsx)(Ue.A,{onPointerUp:this._handlePointerUp,onPointerEnter:()=>{this.props.dispatch((0,we.Si)(e.id))},onPointerLeave:()=>{this.props.dispatch((0,we.Zz)(e.id))},children:(0,oe.jsx)(ge.A,{disabled:a,onPointerDown:this._handlePointerDown,onClick:this._handleClick,style:d,className:p()("PSPDFKit-Annotation PSPDFKit-Image-Annotation",{[qe().readOnlyOutline]:e.readOnly||e.locked}),"data-annotation-id":e.id,"aria-label":`${l(xe.A.annotation)}: ${l(xe.A.imageAnnotation)}`,tabIndex:-1,children:(0,oe.jsx)(Le,{annotation:e,attachment:t,backend:n,onRenderFinished:r,zoomLevel:o,label:l(xe.A.imageAnnotation),isDragging:s,onError:this.props.onError})})})})})}}const Ze=(0,ve.j4)(Ge,{forwardRef:!0});var Ye=n(83047),Xe=n(78729),Je=n(84937),Qe=n.n(Je);class et extends u.PureComponent{constructor(){super(...arguments),(0,y.A)(this,"precision",(0,Ye.Em)(this.props.zoomLevel)),(0,y.A)(this,"_handlePointerDown",(e=>{e.persist(),e.isPrimary&&(e.preventDefault(),this._handlePress(e,"touch"!==e.pointerType?new P.bR({x:e.clientX,y:e.clientY}):null))})),(0,y.A)(this,"_handlePress",((e,t)=>{this.precision=(0,Ye.Em)(this.props.zoomLevel),this.props.dispatch((0,we.pw)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0}))})),(0,y.A)(this,"_handlePointerUp",(e=>{e.stopPropagation()})),(0,y.A)(this,"el",null)}render(){const{annotation:e,intl:{formatMessage:t},isSelectable:n,pathDataFromFragments:r,backend:o,zoomLevel:i,isDragging:a=!1,shouldKeepRenderingAPStream:s=!1}=this.props,{boundingBox:l,blendMode:c}=e,u=l.grow(b.LZ?_e.Bd:_e.uo),d=(0,B.Zr)(e,{isSelectable:n}),h={...u.toJS(),cursor:d},f=c&&"normal"!==c?{mixBlendMode:(0,B.rX)(c),...b.nr?{transform:"translate3d(0,0,0)"}:null}:{};return(0,oe.jsx)("div",{style:f,children:(0,oe.jsx)(be,{zoomLevel:this.props.zoomLevel,applyZoom:!0,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected,children:(0,oe.jsx)(Ue.A,{onPointerEnter:()=>{this.props.dispatch((0,we.Si)(e.id))},onPointerLeave:()=>{this.props.dispatch((0,we.Zz)(e.id))},children:(0,oe.jsxs)(ge.A,{disabled:this.props.isDisabled,onPointerUp:s?this._handlePointerUp:void 0,className:p()(Qe().container,{[Qe().cursorNotAllowed]:e.readOnly||e.locked},"PSPDFKit-Ink-Annotation PSPDFKit-Annotation"),style:h,"data-annotation-id":e.id,"aria-label":`${t(xe.A.annotation)}: ${t(xe.A.inkAnnotation)}`,tabIndex:-1,children:[(0,oe.jsx)(nt,{annotation:e,onPointerDown:this._handlePointerDown,isSelectable:this.props.isSelectable,viewBox:u,pathDataFromFragments:r,renderInvisibleClickPath:s,precision:this.precision}),s&&o&&(0,oe.jsx)(se.Reparent,{id:`annotation-ink-${e.id}`,children:(0,oe.jsx)(Le,{annotation:e,backend:o,zoomLevel:i,label:t(xe.A.inkAnnotation),isDragging:a,onError:this.props.onError})})]})})})})}}const tt=(0,ve.j4)(et,{forwardRef:!0}),nt=function(e){let{annotation:t,isSelectable:n,viewBox:r,pathDataFromFragments:o=()=>null,onPointerDown:i,renderInvisibleClickPath:s=!1,precision:l=(0,Ye.Em)(1)}=e;const{ENABLE_INK_SMOOTH_LINES:c}=Xe.JY,d=u.useMemo((()=>c?e=>(0,Ye.Hj)(e,l):Ye.F0),[l,c]),h=u.useRef([]),f=u.useCallback(((e,n,r)=>o(t.id,n,r)||(0,Ye.bv)(e).map(d).flat()),[o,d,t]);h.current=u.useMemo((()=>{(t.lines.size!==h.current.length||t.lines.some(((e,t)=>e.size!==h.current[t].length)))&&(h.current=[]);const e=[];return t.lines.forEach((function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,a.B8)(),n=arguments.length>1?arguments[1]:void 0;e.push(f(t,n,h.current[n]))})),e}),[t,f]);const m=u.useMemo((()=>{const{strokeColor:e,lineWidth:r,lines:o}=t,a={stroke:e?.toCSSValue()||"transparent",strokeWidth:r,pointerEvents:"none"},l={strokeWidth:n?Math.max(b.LZ?_e.Bd:_e.uo,r):0},u=p()({[Qe().path]:!0,[Qe().selectable]:!t.readOnly&&!t.locked,"PSPDFKit-Smooth-Lines":c}),d=o.map(((e,t)=>{const r=(0,Ye.bV)(h.current[t]);return(0,oe.jsxs)("g",{children:[!s&&(0,oe.jsx)("path",{className:u,style:a,d:r,"data-testid":"ink-path"}),n&&(0,oe.jsx)("path",{onPointerDown:i,className:u,style:l,stroke:"transparent",d:r,"data-testid":"clickable-path"})]},t)}));return(0,oe.jsx)("g",{children:d})}),[t,n,i,c,s]),g=u.useMemo((()=>{const{backgroundColor:e,boundingBox:n}=t,r=p()({[Qe().rect]:!0,[Qe().selectable]:!!e}),o={fill:e?.toCSSValue()||"transparent"},{width:a,height:s,top:l,left:c}=n;return(0,oe.jsx)("rect",{onPointerDown:i,x:c,y:l,width:a,height:s,className:r,style:o})}),[i,t,s]),v=`${r.left} ${r.top} ${r.width} ${r.height}`,y={left:0,top:0,width:"100%",height:"100%",opacity:t.opacity,overflow:"hidden"};return(0,oe.jsxs)("svg",{viewBox:v,style:y,className:Qe().svg,focusable:!1,"data-testid":"ink-svg",children:[g,m]})};var rt=n(58433),ot=n.n(rt),it=n(43420);const at=u.memo((function(e){const{annotation:t,isDisabled:n,annotation:{boundingBox:r},zoomLevel:o,isFocused:i,shouldKeepRenderingAPStream:a,dispatch:s,backend:c,isDragging:d=!1,isMultiAnnotationsSelected:h=!1}=e,{formatMessage:f}=(0,ve.tz)(),m=p()(ot().annotationRect,"PSPDFKit-Link-Annotation","PSPDFKit-Annotation"),{borderColor:g,borderStyle:v,borderWidth:y,opacity:b}=t,w={width:r.width*o,height:r.height*o,outline:i?B.wp:null},x=(0,B.Zr)(t),S={width:r.width*o,height:r.height*o,borderWidth:y||0,borderColor:g?g.toCSSValue():"transparent",borderStyle:v||void 0,opacity:b,cursor:x},_=u.useMemo((()=>function(e){switch(e.action?.constructor||null){case it.tt:{const t=e.action;return(0,l.V1)("string"==typeof t.uri,"URIAction requires `uri`"),{type:"a",props:{href:t.uri,"aria-label":t.uri,title:e.note}}}case it.ic:{const t=e.action;(0,l.V1)("number"==typeof t.pageIndex,"GoToAction requires `pageIndex`");const n=`#page=${t.pageIndex}`;return{type:"a",props:{href:n,"aria-label":n,title:e.note}}}case it.kV:{const t=e.action;return(0,l.V1)("boolean"==typeof t.includeExclude,"ResetFormAction requires `includeExclude`"),{type:"button",props:{type:"reset","aria-label":`Reset${t.fields?t.fields.join(" "):""}`}}}case it.Dh:{const t=e.action;return(0,l.V1)("string"==typeof t.uri,"ResetFormAction requires `uri`"),(0,l.V1)("boolean"==typeof t.includeExclude,"ResetFormAction requires `includeExclude`"),{type:"button",props:{type:"submit","aria-label":`Submit to ${t.uri}`}}}default:return{type:"div",props:{}}}}(t)),[t]);return(0,oe.jsx)(be,{position:r.getLocation(),zoomLevel:o,disablePointerEvents:!0,isMultiAnnotationsSelected:h,children:(0,oe.jsxs)(ge.A,{disabled:n,className:p()(`PSPDFKit-${t.constructor.readableName}-Annotation PSPDFKit-Annotation`),style:w,onPointerUp:a?function(e){e.stopPropagation()}:void 0,"data-annotation-id":t.id,"aria-label":f(xe.A.linkAnnotation),onMouseEnter:()=>{s((0,we.Si)(t.id))},onMouseLeave:()=>{s((0,we.Zz)(t.id))},tabIndex:-1,children:[(0,oe.jsx)(_.type,{..._.props,className:m,style:S,"data-annotation-id":t.id,tabIndex:n?-1:0,"aria-disabled":n?"true":"false"}),a&&c&&(0,oe.jsx)(se.Reparent,{id:`annotation-link-${t.id}`,children:(0,oe.jsx)(Le,{annotation:t,backend:c,zoomLevel:o,label:f(xe.A.linkAnnotation),isDragging:d,onError:e.onError})})]})})}));const st=at;var lt=n(75439),ct=n(8367),ut=n(92661),dt=n.n(ut);class pt extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"shouldComponentUpdate",$.EF),(0,y.A)(this,"onClick",(()=>{this.props.dispatch((0,lt.ax)()),window.setTimeout((()=>{this.props.dispatch((0,we._G)(this.props.annotation.id))}),0)})),(0,y.A)(this,"_onPointerDownUp",(e=>{e.isPrimary&&(this.props.isReadOnly||e.preventDefault(),this._handlePress(e,"touch"!==e.pointerType?new P.bR({x:e.clientX,y:e.clientY}):null),this.props.isOpen||this.props.dispatch((0,we.Zz)(this.props.annotation.id)),e.stopPropagation())})),(0,y.A)(this,"_handlePress",((e,t)=>{this.props.dispatch((0,we.pw)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0,ignoreReadOnly:!0}))})),(0,y.A)(this,"_handleClick",(e=>{"keypress"===e.type&&this._handlePress(e,null)})),(0,y.A)(this,"_onMouseEnter",(()=>{this.props.dispatch((0,we.Si)(this.props.annotation.id))})),(0,y.A)(this,"_onMouseLeave",(()=>{this.props.dispatch((0,we.Zz)(this.props.annotation.id))}))}render(){const{intl:{formatMessage:e},backend:t,shouldKeepRenderingAPStream:r,isFocused:i,isSelectable:a}=this.props,s=!this.props.isOpen&&!this.props.isFullscreen&&!b.LZ,{annotation:l,zoomLevel:c,rotation:u}=this.props,{boundingBox:d,color:h,icon:f}=l,{width:m,height:g}=d,v=(0,B.Zr)(l,{isSelectable:a}),y={width:m,height:g,transformOrigin:"top left",transform:`translate(${m*c/2-m/2}px, ${g*c/2-g/2}px)`,color:h.toCSSValue(),opacity:l.opacity,outline:i?B.wp:null,cursor:v},w=ct.ac[f]||ct.ac[ct.Qv.COMMENT],x=(0,R.Ow)(w);let S;try{S=n(7915)(`./${w}.svg`)}catch(e){}const _=this.props.isReadOnly?{onPointerUp:this._onPointerDownUp}:{onPointerDown:this._onPointerDownUp},C=p()({"PSPDFKit-Annotation":!0,"PSPDFKit-Note-Annotation":!0,[`PSPDFKit-Note-Annotation-Icon-${x}`]:!0,[dt().annotation]:!0,[dt().noteIconInPage]:!0});return(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsx)(be,{position:d.getLocation(),zoomLevel:c,currentPagesRotation:u,noRotate:!0,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected,children:(0,oe.jsx)(ge.A,{..._,onClick:this._handleClick,disabled:this.props.isDisabled,style:y,className:C,onPointerEnter:s?this._onMouseEnter:void 0,onPointerLeave:s?this._onMouseLeave:void 0,"data-annotation-id":l.id,"aria-label":`${e(xe.A.annotation)}: ${e(xe.A.noteAnnotation)}`,"aria-controls":`NoteAnnotationContent-${l.id}`,tabIndex:-1,children:r?(0,oe.jsx)(se.Reparent,{id:`annotation-note-${l.id}`,children:(0,oe.jsx)(Le,{annotation:l,zoomLevel:c,backend:t,label:e(xe.A.noteAnnotation),onError:this.props.onError})}):S?(0,oe.jsx)(Te.A,{src:S,className:dt().icon,role:"presentation"}):w})}),!this.props.isOpen&&(0,oe.jsx)(o.s6,{id:`NoteAnnotationContent-${l.id}`})]})}}const ht=(0,ve.j4)(pt,{forwardRef:!0});const ft=(0,s.Ng)((function(e,t){let{annotation:n}=t;return{annotation:n,isFullscreen:e.viewportState.viewportRect.width<=_e.BX,rotation:e.viewportState.pagesRotation,isOpen:e.selectedAnnotationIds.has(n.id)&&"number"==typeof n.pageIndex}}),null,null,{forwardRef:!0})(ht),mt=ft;var gt=n(6163),vt=n(41008);const yt=e=>{let{lineCap:t,style:n,id:r,position:o,strokeWidth:i,capAtMaxStroke:a=!1}=e;const{markerScale:s,strokeScale:l}=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=5;if(e<K.WA)return{markerScale:25-(e-1)*n,strokeScale:1/(K.WA-e)};if(t&&e>K.Ai-2)return{markerScale:n,strokeScale:K.Ai};return{markerScale:n,strokeScale:1}}(i,a);return(0,oe.jsx)("marker",{id:r,style:n,markerWidth:s,markerHeight:s,refX:"start"===o?3.75:.5,refY:"2",orient:"auto",viewBox:"0 0 5 5",children:vt.B[t][`${o}Element`]({...n,strokeWidth:l})})};var bt=n(62348),wt=n.n(bt);const xt=e=>{let{isSelectable:t,onPointerDown:n,annotation:{strokeDashArray:r,strokeColor:o,strokeWidth:i,startPoint:s,endPoint:l,lineCaps:c,fillColor:u,pageIndex:d,id:h=(0,gt.Z0)(),locked:f,readOnly:m},renderInvisibleClickPath:g=!1}=e;if(null===d||0===i&&!g)return null;const v={stroke:o?.toCSSValue()||"transparent",strokeWidth:i,fill:"transparent"},y=p()({[wt().visible]:!0}),w=t?b.LZ?Math.max(_e.Bd,i):Math.max(_e.uo,i):0,x=p()({[wt().selectable]:!m&&!f}),S={stroke:o?.toCSSValue()||"transparent",pointerEvents:"none",fill:u?.toCSSValue()||"transparent",strokeWidth:1},_=`${h}-StartLineCap`,C=`${h}-EndLineCap`,E=(0,K.PZ)((0,a.B8)([s,l]),i,c||{}),k=E.first(),z=E.get(1),P={x1:void 0!==k?k.x:s.x,y1:void 0!==k?k.y:s.y,x2:void 0!==z?z.x:l.x,y2:void 0!==z?z.y:l.y},A=P.x1!==s.x||P.y1!==s.y,D=P.x2!==l.x||P.y2!==l.y,T=c&&A?`url(#${_})`:void 0,I=c&&D?`url(#${C})`:void 0;return(0,oe.jsxs)("g",{style:{strokeWidth:i},children:[(A||D)&&(0,oe.jsxs)("defs",{children:[c&&A&&c.start&&(0,oe.jsx)(yt,{style:S,lineCap:c.start,id:_,strokeWidth:i,position:"start"}),c&&D&&c.end&&(0,oe.jsx)(yt,{style:S,lineCap:c.end,id:C,strokeWidth:i,position:"end"})]}),!g&&(0,oe.jsx)("line",{className:y,style:v,x1:P.x1,y1:P.y1,x2:P.x2,y2:P.y2,strokeDasharray:r?r.map((e=>e*i)).join(","):"",markerStart:T,markerEnd:I,strokeLinecap:"butt"}),t&&(0,oe.jsx)("line",{onPointerDown:n,className:x,stroke:"transparent",style:{fill:"none",strokeWidth:w},x1:s.x,y1:s.y,x2:l.x,y2:l.y})]})},St=e=>{let{isSelectable:t,onPointerDown:n,annotation:r,renderInvisibleClickPath:o=!1}=e;const{strokeDashArray:i,strokeColor:a,strokeWidth:s,fillColor:l,pageIndex:c,boundingBox:d,cloudyBorderIntensity:h,cloudyBorderInset:f}=r,m=Number(h);if(null===c||0===s&&!l&&!o)return null;const{width:g,height:v,top:y,left:w}=d,x={stroke:a?.toCSSValue()||"transparent",strokeWidth:s,fill:l?.toCSSValue()||"transparent"},S=p()({[wt().visible]:!0,[wt().cloudy]:!!m,[wt().strokeDashArray]:!!i}),_=t?b.LZ?Math.max(_e.Bd,s):Math.max(_e.uo,s):0,C={fill:l&&!l.equals(P.Q1.TRANSPARENT)?"transparent":"none",strokeWidth:_},E=p()({[wt().selectable]:!r.readOnly&&!r.locked,[wt().cloudy]:!!m}),k=g>s?g-s:g/4,z=v>s?v-s:v/4,A=i?i.map((e=>e*s)).join(","):"",D=m>0,T=D?_t(m,f,d):"";return(0,oe.jsxs)(u.Fragment,{children:[!o&&(D?(0,oe.jsx)("path",{d:T,className:S,style:x,strokeDasharray:A}):(0,oe.jsx)("rect",{className:S,style:x,strokeDasharray:A,x:w+s/2,y:y+s/2,width:k,height:z})),t&&(D?(0,oe.jsx)("path",{onPointerDown:n,d:T,className:E,style:C,stroke:"transparent"}):(0,oe.jsx)("rect",{onPointerDown:n,className:E,stroke:"transparent",style:C,x:w+s/2,y:y+s/2,width:k,height:z}))]})},_t=(e,t,n)=>{const{left:r,top:o,width:i,height:a}=t instanceof P.Yy?P.Yy.applyToRect(t,n):n;return(0,K.uq)({points:[[r,o],[r+i,o],[r+i,o+a],[r,o+a]],intensity:e})},Ct=e=>{let{isSelectable:t,onPointerDown:n,annotation:r,renderInvisibleClickPath:o=!1}=e;const{strokeDashArray:i,strokeColor:a,strokeWidth:s,fillColor:l,pageIndex:c,boundingBox:d,cloudyBorderIntensity:h,cloudyBorderInset:f}=r,m=Number(h);if(null===c||0===s&&!l&&!o)return null;const{width:g,height:v,top:y,left:w}=d,x={stroke:a?.toCSSValue()||"transparent",strokeWidth:s,fill:l?.toCSSValue()||"transparent"},S=p()({[wt().visible]:!0,[wt().cloudy]:!!m,[wt().strokeDashArray]:!!i}),_=t?b.LZ?Math.max(_e.Bd,s):Math.max(_e.uo,s):0,C={fill:l&&!l.equals(P.Q1.TRANSPARENT)?"transparent":"none",strokeWidth:_},E=p()({[wt().selectable]:!r.readOnly&&!r.locked,[wt().cloudy]:!!m}),k=g>2*s?(g-s)/2:g/4,z=v>2*s?(v-s)/2:v/4,A=i?i.map((e=>e*s)).join(","):"",D=m>0,T=D?(0,K.y4)({boundingBox:d,cloudyBorderIntensity:m,cloudyBorderInset:f}):"";return(0,oe.jsxs)(u.Fragment,{children:[!o&&(D?(0,oe.jsx)("path",{className:S,style:x,strokeDasharray:A,d:T}):(0,oe.jsx)("ellipse",{className:S,style:x,strokeDasharray:A,cx:w+g/2,cy:y+v/2,rx:k,ry:z})),t&&(D?(0,oe.jsx)("path",{onPointerDown:n,className:E,style:C,d:T,stroke:"transparent"}):(0,oe.jsx)("ellipse",{onPointerDown:n,className:E,stroke:"transparent",style:C,cx:w+g/2,cy:y+v/2,rx:k,ry:z}))]})},Et=e=>{let{isSelectable:t,onPointerDown:n,annotation:r,renderInvisibleClickPath:o=!1}=e;const{strokeDashArray:i,strokeColor:a,strokeWidth:s,fillColor:l,pageIndex:c,points:d,cloudyBorderIntensity:h}=r,f=Number(h);if(null===c||0===d.size||0===s&&(!l||l.equals(P.Q1.TRANSPARENT))&&!o)return null;const m={stroke:a?a.toCSSValue():"transparent",strokeWidth:s,fill:l?.toCSSValue()||"transparent"},g=p()({[wt().visible]:!0,[wt().cloudy]:!!f,[wt().strokeDashArray]:!!i}),v=t?b.LZ?Math.max(_e.Bd,s):Math.max(_e.uo,s):0,y={fill:l&&!l.equals(P.Q1.TRANSPARENT)?"transparent":"none",strokeWidth:v},w=p()({[wt().selectable]:!r.readOnly&&!r.locked,[wt().cloudy]:!!f}),x=d.first();if(void 0===x)return null;const S=1===d.size||2===d.size?d.push(x):d,_=i?i.map((e=>e*s)).join(","):"",C=f>0&&S.size>2,E=C?kt({annotation:r,intensity:f}):`${S.map((e=>`${e.x},${e.y}`)).join(" ")}`;return(0,oe.jsxs)(u.Fragment,{children:[!o&&(C?(0,oe.jsx)("path",{className:g,style:m,strokeDasharray:_,d:E}):(0,oe.jsx)("polygon",{className:g,style:m,strokeDasharray:_,points:E})),t&&(C?(0,oe.jsx)("path",{onPointerDown:n,className:w,style:y,stroke:"transparent",d:E}):(0,oe.jsx)("polygon",{onPointerDown:n,className:w,stroke:"transparent",style:y,points:E}))]})},kt=e=>{let{intensity:t,annotation:n}=e;return(0,K.uq)({points:n.points.map((e=>[e.x,e.y])).toArray(),intensity:t})},zt=e=>{let{isSelectable:t,onPointerDown:n,annotation:{strokeDashArray:r,strokeColor:o,strokeWidth:i,lineCaps:a,fillColor:s,pageIndex:l,points:c,id:u=(0,gt.Z0)(),locked:d,readOnly:h},renderInvisibleClickPath:f=!1}=e;if(null===l||void 0===c||0===c.size||0===i&&!f)return null;const m=c.first(),g=c.last();if(!m||!g)return null;const v={stroke:o?.toCSSValue()||"transparent",strokeWidth:i,fill:"transparent"},y=p()({[wt().visible]:!0}),w=t?b.LZ?Math.max(_e.Bd,i):Math.max(_e.uo,i):0,x=p()({[wt().selectable]:!h&&!d}),S={stroke:o?.toCSSValue()||"transparent",pointerEvents:"none",fill:s?.toCSSValue()||"transparent",strokeWidth:1},_=`${u}-StartLineCap`,C=`${u}-EndLineCap`,E=1===c.size?` ${m.x},${m.y}`:"",k=(0,K.PZ)(c,i,a||{}),z=k.first(),P=k.last();if(!z||!P)return null;const A=a&&(z.x!==m.x||z.y!==m.y),D=a&&(P.x!==g.x||P.y!==g.y),T=`${k.map((e=>`${e.x},${e.y}`)).join(" ")}${E}`,I=a&&A?`url(#${_})`:void 0,M=a&&D?`url(#${C})`:void 0;return(0,oe.jsxs)("g",{style:{strokeWidth:i},children:[(A||D)&&(0,oe.jsxs)("defs",{children:[a&&A&&a.start&&(0,oe.jsx)(yt,{style:S,lineCap:a.start,strokeWidth:i,id:_,position:"start"}),a&&D&&a.end&&(0,oe.jsx)(yt,{style:S,lineCap:a.end,strokeWidth:i,id:C,position:"end"})]}),!f&&(0,oe.jsx)("polyline",{className:y,style:v,points:T,strokeDasharray:r?r.map((e=>e*i)).join(","):"",markerStart:I,markerEnd:M}),t&&(0,oe.jsx)("polyline",{onPointerDown:n,className:x,stroke:"transparent",style:{fill:"none",strokeWidth:w},points:T})]})},Pt=e=>{const{annotation:t,viewBox:n,isSelectable:r,onPointerDown:o,renderInvisibleClickPath:i=!1}=e,a=`${n.left} ${n.top} ${n.width} ${n.height}`,s={left:0,top:0,width:"100%",height:"100%",opacity:t.opacity,overflow:"hidden"},l=(e=>{switch(e){case P.MU:return xt;case P.Zx:return St;case P.Go:return Ct;case P.Si:return Et;case P.ug:return zt;default:throw new Error("Unexpected shape annotation type")}})(t.constructor);return(0,oe.jsx)("svg",{viewBox:a,style:s,className:wt().svg,focusable:!1,children:(0,oe.jsx)(l,{isSelectable:r,onPointerDown:o,annotation:t,renderInvisibleClickPath:i})})};var At=n(91497),Dt=n(35467);function Tt(e,t){return e.distance(t)>_e.gR}var It=n(8593),Mt=n(90651);function Nt(e){const{pageIndex:t,currentAnnotation:n,onAnnotationUpdate:r,keepSelectedTool:o,interactionMode:i,defaultAutoCloseThreshold:c,backend:d,disablePointSnapping:p=!1}=e,h=u.useRef(null),f=(0,s.d4)((e=>e.eventEmitter)),m=(0,s.wA)(),[g,v]=u.useState(!1),[y,b]=u.useState(null),w=u.useMemo((()=>(0,K.s3)(n.constructor)),[n.constructor]),x=u.useCallback((function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];m((0,lt.g_)(e)),t&&(m((0,Dt.NP)()),m((0,we.TT)((0,a.NZ)([e.id]),null)),m((0,lt.li)(e.id)),m((0,It.Al)(null)))}),[m]),S=u.useCallback((()=>{(n instanceof P.ug||n instanceof P.Si)&&x(n,!0)}),[n,x]),_=u.useCallback(((e,o)=>{(0,Mt.sC)(d,n,p)&&d.configureSnapper(t);let i=n;const s={annotations:(0,a.B8)([i]),reason:ee.x.DRAW_START};f.emit("annotations.willChange",s);const l=new P.bR({x:e.x,y:e.y});if(i instanceof P.MU)i=i.merge({startPoint:l,endPoint:l});else if(i instanceof P.Zx||i instanceof P.Go){h.current=l;const e=i.cloudyBorderIntensity*_e.Ss+i.strokeWidth/2;i=i.merge({boundingBox:new P.rw({left:l.x,top:l.y,width:0,height:0}),cloudyBorderInset:i.cloudyBorderIntensity?i.cloudyBorderInset||P.Yy.fromValue(e):null})}else if(i instanceof Y.A){h.current=l;const e=new P.rw({left:l.x,top:l.y,width:0,height:0});i=i.merge({boundingBox:e,rects:(0,a.B8)([e])})}else(i instanceof P.Si||i instanceof P.ug)&&(i=i.update("points",(e=>e.push(l))));i=i.set("boundingBox",w(i));const c=i.pageIndex;if(null===c)i=i.set("pageIndex",t);else if(c!==t){i=i.set("pageIndex",t);const e=i instanceof Y.A?lt.PY:lt.nO;m(e(i,t))}i instanceof P.Go||!("isMeasurement"in i)||!i.isMeasurement?.()||m((0,It.Al)({magnifierLabel:i.getMeasurementDetails().label,drawnAnnotationID:i.id,drawnAnnotationPageIndex:i.pageIndex,magnifierCursorPosition:o})),r(i)}),[n,m,f,t,r,w,d,p]),C=u.useCallback((async(e,t)=>{let o=n,i=e[e.length-1];const s=t[t.length-1];if((0,Mt.sC)(d,o,p)){const e=await d.getClosestSnapPoint(new P.bR({x:i.x,y:i.y}));i=i.set("x",e.x).set("y",e.y)}const u=new P.bR({x:i.x,y:i.y});if(o instanceof P.MU)o=o.set("endPoint",u);else if(o instanceof P.Zx||o instanceof P.Go){(0,l.V1)(null!=h.current);const e=h.current,t=new P.rw({left:Math.min(e.x,u.x),top:Math.min(e.y,u.y),width:Math.abs(u.x-e.x),height:Math.abs(u.y-e.y)});o=o.merge({boundingBox:t})}else if(o instanceof Y.A){(0,l.V1)(null!=h.current);const e=h.current,t=new P.rw({left:Math.min(e.x,u.x),top:Math.min(e.y,u.y),width:Math.abs(u.x-e.x),height:Math.abs(u.y-e.y)});o=o.merge({boundingBox:t,rects:(0,a.B8)([t])})}else if(o instanceof P.Si||o instanceof P.ug){const e=o.points.size-1;if(y&&Tt(y,u))v(!1),b(null);else if(!g){const t=(0,Mt.RJ)(o,e,c),n=-1!==t;o=Ot(o,u,n,t),n&&(x(o),v(!0),b(o.points.get(e)))}o.isMeasurement()&&"isMeasurement"in o&&m((0,It.Al)({magnifierLabel:o.getMeasurementDetails().label,drawnAnnotationID:o.id,drawnAnnotationPageIndex:o.pageIndex,magnifierCursorPosition:s}))}o=o.set("boundingBox",w(o)),r(o),o instanceof P.Go||o instanceof P.ug||o instanceof P.Si||!("isMeasurement"in o)||!o.isMeasurement?.()||m((0,It.Al)({magnifierLabel:o.getMeasurementDetails().label,magnifierCursorPosition:t[t.length-1]}))}),[n,w,r,y,g,c,x,m,d,p]),E=u.useCallback((()=>{let e=n;const{left:t,top:s,width:l,height:u}=e.boundingBox,d={annotations:(0,a.B8)([e]),reason:ee.x.DRAW_END};if(f.emit("annotations.willChange",d),e instanceof P.Go||!("isMeasurement"in e)||!e.isMeasurement?.()||m((0,It.Al)(null)),e instanceof P.MU)Tt(e.startPoint,e.endPoint)?(m((0,lt.g_)(e)),m((0,Dt.NP)()),m((0,we.TT)((0,a.NZ)([e.id]),null)),m((0,lt.li)(e.id)),o&&m((0,Dt.kJ)(e.constructor,i))):(e=e.merge({startPoint:new P.bR,endPoint:new P.bR,boundingBox:new P.rw}),r(e));else if(e instanceof P.Zx||e instanceof P.Go||e instanceof Y.A)if(Tt(new P.bR({x:t,y:s}),new P.bR({x:t+l,y:s+u})))m((0,lt.g_)(e)),m((0,we.TT)((0,a.NZ)([e.id]),null)),e instanceof Y.A||m((0,Dt.NP)()),m((0,lt.li)(e.id)),e instanceof Y.A&&o&&m((0,Dt.Gh)()),o&&e instanceof P.pP&&m((0,Dt.kJ)(e.constructor,i));else{const t=new P.rw;e=e instanceof Y.A?e.merge({boundingBox:t,rects:(0,a.B8)([t])}):e.merge({boundingBox:t}),r(e)}else if(e instanceof P.Si||e instanceof P.ug){const t=e.points.size-1,n=(0,Mt.RJ)(e,t,c),r=-1!==n,o=Ot(e,e.points.last(),r,n);r?x(o):m((0,lt.g_)(o))}else m((0,lt.g_)(e))}),[n,r,m,f,o,i,c,x]),k=(0,s.d4)((e=>(0,Z.Jn)(e,t))),z=u.useCallback((e=>e.apply(k)),[k]);return(0,oe.jsx)(At.A,{size:e.pageSize,onDrawStart:_,onDrawCoalesced:C,onDrawEnd:E,transformPoint:z,interactionMode:i,scrollElement:e.scrollElement,onDoubleClick:S,currentAnnotation:n,defaultAutoCloseThreshold:c})}const Ot=function(e,t){let n=arguments.length>3?arguments[3]:void 0;if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]){const t=e.get("points")?.get(n);return e.update("points",(e=>e.set(e.size-1,t)))}return e.update("points",(e=>e.set(e.size-1,t)))};function Rt(e){return{calculateBoundingBox:(0,K.s3)(e.shapeAnnotation.constructor),currentShapeAnnotation:e.shapeAnnotation,shapeAnnotationFromCurrentProps:e.shapeAnnotation}}class jt extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"state",{isDrawing:!1,...Rt(this.props)}),(0,y.A)(this,"_handleAnnotationUpdate",(e=>{this.setState({currentShapeAnnotation:e,isDrawing:!0})}))}static getDerivedStateFromProps(e,t){return(0,a.is)(t.shapeAnnotationFromCurrentProps,e.shapeAnnotation)||(0,a.is)(t.currentShapeAnnotation,e.shapeAnnotation)?null:Rt(e)}componentDidMount(){this.props.dispatch((0,Dt.y7)())}componentWillUnmount(){this.props.dispatch((0,Dt.JN)())}render(){const e=this.state.currentShapeAnnotation,{pageSize:t,viewportState:{zoomLevel:n}}=this.props,{boundingBox:r}=e,o=p()({[wt().canvas]:!0});return(0,oe.jsxs)("div",{className:o,children:[(0,oe.jsxs)(be,{zoomLevel:n,applyZoom:!0,children:[e.isMeasurement()&&this.state.isDrawing?(0,oe.jsx)("div",{className:"PSPDFKit-Measurement-Label",style:(0,I.T)(e),children:(0,oe.jsx)(Bt,{value:e.getMeasurementDetails().label})}):null,(0,oe.jsx)("div",{style:{...r.toJS(),position:"absolute"},children:(0,oe.jsx)(Pt,{isSelectable:!1,annotation:e,viewBox:r})})]}),(0,oe.jsx)(Nt,{pageSize:t,pageIndex:this.props.pageIndex,currentAnnotation:e,onAnnotationUpdate:this._handleAnnotationUpdate,keepSelectedTool:this.props.keepSelectedTool,interactionMode:this.props.interactionMode,scrollElement:this.props.scrollElement,defaultAutoCloseThreshold:this.props.defaultAutoCloseThreshold,backend:this.props.backend,disablePointSnapping:this.props.disablePointSnapping})]})}}const Ft=(0,s.Ng)(((e,t)=>{let{pageIndex:n}=t;return{viewportState:e.viewportState,clientToPageTransformation:(0,Z.Jn)(e,n),eventEmitter:e.eventEmitter,keepSelectedTool:e.keepSelectedTool,interactionMode:e.interactionMode,scrollElement:e.scrollElement,defaultAutoCloseThreshold:e.defaultAutoCloseThreshold}}))(jt),Bt=e=>{let{value:t,isSecondaryMeasurement:n}=e;if(n&&t.includes("/")){const e=t.split("/");return(0,oe.jsxs)("span",{children:["  (",(0,oe.jsxs)("span",{children:[e[0],(0,oe.jsx)(oe.Fragment,{children:"⁄"}),e[1]]}),")"]})}if(n&&!t.includes("/"))return(0,oe.jsxs)("span",{children:["  (",(0,oe.jsx)("span",{children:t}),")"]});if(!n&&t.includes("/")){const e=t.split("/");return(0,oe.jsxs)("span",{children:[e[0],(0,oe.jsx)(oe.Fragment,{children:"⁄"}),e[1],";"]})}return(0,oe.jsx)("span",{children:t})};class Lt extends u.PureComponent{constructor(){super(...arguments),(0,y.A)(this,"handlePointerDown",(e=>{e.isPrimary&&this.props.isSelectable&&(e.preventDefault(),this.handlePress(e,"touch"!==e.pointerType?new P.bR({x:e.clientX,y:e.clientY}):null))})),(0,y.A)(this,"handlePress",((e,t)=>{this.props.dispatch((0,we.pw)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0}))})),(0,y.A)(this,"handlePointerUp",(e=>{e.stopPropagation()}))}render(){const{annotation:e,intl:{formatMessage:t},zoomLevel:n,backend:r,isDragging:o,shouldKeepRenderingAPStream:i}=this.props,{boundingBox:a}=e;let s;s=!!((0,I.w6)(e)&&!e.measurementBBox&&(a.width<100||a.height<100)||e.isMeasurement()&&!i);const l=a.grow(b.LZ?_e.Bd:_e.uo),c={...l.toJS(),cursor:(0,B.Zr)(e)},u=e.constructor.readableName,d=u&&xe.A[`${u.charAt(0).toLowerCase()+u.slice(1)}Annotation`],h=(0,B.rX)(e.blendMode),f=h?{mixBlendMode:h}:{},m=e.isMeasurement()&&this.props.secondaryMeasurementUnit&&(0,I.JC)(e,this.props.secondaryMeasurementUnit);return(0,oe.jsxs)(be,{zoomLevel:n,additionalStyle:f,applyZoom:!0,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected,children:[e.isMeasurement()&&s&&(0,oe.jsxs)("div",{className:"PSPDFKit-Measurement-Label",style:(0,I.T)(e,!!m),children:[(0,oe.jsx)(Bt,{value:e.getMeasurementDetails().label}),m?(0,oe.jsx)(Bt,{value:m.label,isSecondaryMeasurement:!0}):null]}),(0,oe.jsx)(Ue.A,{onPointerEnter:()=>{this.props.dispatch((0,we.Si)(e.id))},onPointerLeave:()=>{this.props.dispatch((0,we.Zz)(e.id))},children:(0,oe.jsxs)(ge.A,{disabled:this.props.isDisabled,className:p()(wt().container,`PSPDFKit-${Vt(e)}-Annotation`,"PSPDFKit-Shape-Annotation","PSPDFKit-Annotation",{[wt().cursorNotAllowed]:e.readOnly||e.locked}),style:c,onPointerUp:i?this.handlePointerUp:void 0,"data-annotation-id":e.id,"aria-label":`${t(xe.A.annotation)}${u&&d?`: ${t(d)}`:""}`,tabIndex:-1,children:[(0,oe.jsx)(Pt,{annotation:e,onPointerDown:this.handlePointerDown,isSelectable:this.props.isSelectable,viewBox:l,renderInvisibleClickPath:i}),i&&(0,oe.jsx)(se.Reparent,{id:`annotation-shape-${e.id}`,children:(0,oe.jsx)(Le,{annotation:e,zoomLevel:n,backend:r,label:t(u&&d?d:xe.A.annotation),isDragging:o,onError:this.props.onError})})]})})]})}}function Vt(e){const t=e.constructor.readableName;return e.isMeasurement()?"Line"===t?"Distance":"Polyline"===t?"Perimeter":"Polygon"===t?"Polygon-Area":"Rectangle"===t?"Rectangle-Area":"Ellipse"===t?"Ellipse-Area":void 0:t}const Kt=(0,ve.j4)(Lt,{forwardRef:!0});class Ht extends u.PureComponent{constructor(){super(...arguments),(0,y.A)(this,"_handlePointerDown",(e=>{e.isPrimary&&this.props.isSelectable&&this._handlePress(e,"touch"!==e.pointerType?new P.bR({x:e.clientX,y:e.clientY}):null)})),(0,y.A)(this,"_handlePress",((e,t)=>{this.props.dispatch((0,we.pw)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0}))})),(0,y.A)(this,"_handleClick",(e=>{"keypress"===e.type&&this._handlePress(e,null)})),(0,y.A)(this,"_handlePointerUp",(e=>{e.stopPropagation()}))}render(){const{annotation:e,globalAnnotation:t,onRenderFinished:n,zoomLevel:r,backend:o,isSelectable:i,isDisabled:a,isDragging:s,isAutoSaveDisabled:l,cursor:c,intl:{formatMessage:u}}=this.props,{boundingBox:d,id:h}=e,f=(0,B.oG)(e,r),m=d.width*f,g=d.height*f,v={cursor:(0,B.Zr)(e,{isSelectable:i,cursor:c}),overflow:"hidden",width:m,height:g,display:"block",...(0,Re.Lz)(e)?{transformOrigin:"50% 50%",transform:`rotate(${String(-e.rotation)}deg)`}:null},y="STANDALONE"===o.type&&"number"!=typeof e.pdfObjectId&&l,b=y?t.set("id",null):t;return(0,oe.jsx)(se.Reparent,{id:`annotation-stamp-${h}`,children:(0,oe.jsx)(be,{position:d.getLocation(),zoomLevel:r,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected,children:(0,oe.jsx)(Ue.A,{onPointerUp:this._handlePointerUp,onPointerEnter:()=>{this.props.dispatch((0,we.Si)(e.id))},onPointerLeave:()=>{this.props.dispatch((0,we.Zz)(e.id))},children:(0,oe.jsx)(ge.A,{disabled:a,onPointerDown:this._handlePointerDown,onClick:this._handleClick,style:v,className:p()("PSPDFKit-Annotation PSPDFKit-Stamp-Annotation",{[qe().readOnlyOutline]:e.readOnly||e.locked}),"data-annotation-id":e.id,"aria-label":`${u(xe.A.annotation)}: ${u(xe.A.stampAnnotation)}`,tabIndex:-1,children:(0,oe.jsx)(Le,{annotation:b,zoomLevel:f,backend:o,onRenderFinished:n,label:u(xe.A.stampAnnotation),isDragging:s,isDetachedAnnotation:y,onError:this.props.onError})})})})})}}const $t=(0,ve.j4)(Ht,{forwardRef:!0});var Ut=n(84997),Wt=n(41811),qt=n(16192),Gt=n(17278),Zt=n.n(Gt),Yt=n(8521),Xt=n(97028);const Jt=u.forwardRef(((e,t)=>{let{annotation:{callout:n,borderWidth:r,borderStyle:o,boundingBox:i,borderColor:c,id:d,backgroundColor:p,verticalAlign:h,fontSize:f,font:m},annotation:g,children:v,isEditing:y}=e;const b=(0,s.wA)(),w=u.useRef(null),x=(0,s.d4)((e=>e.viewportState.zoomLevel));(0,l.V1)(n,"CalloutTextComponent: callout is undefined");const S=(0,u.useRef)(!0);(0,Yt.useGranularLayoutEffect)((()=>{if(S.current)S.current=!1;else{const e=w.current?.getBoundingClientRect();if(!e)return;const t=(0,Xt.TH)({annotation:g,rect:e,zoomLevel:x,callout:g.callout,text:g.text});t&&b((0,lt.g_)(g.merge(t)))}}),[f,m],[g,x]);const _=n.innerRectInset?.setScale(x),C={position:"absolute",borderWidth:r?r*x:void 0,borderStyle:o||void 0,borderColor:c?.toCSSValue()||void 0,backgroundColor:p?.toCSSValue()||void 0,left:_?.left,top:_?.top,right:void 0,bottom:void 0,padding:`${4*x}px ${2*x}px`,...y&&{fontSize:f*x,lineHeight:"normal",width:"max-content",height:"auto",outline:"1px solid rgba(60, 151, 254, 0.5)",outlineOffset:2}},E=`${d}-calloutLinecapId`,k=i.scale(x),z={stroke:c?.toCSSValue()||"black",pointerEvents:"none",strokeWidth:1,fill:"transparent"},A=(0,a.B8)([n.start,n.knee,n.end].filter(Boolean).map((e=>((0,l.V1)(e,"CalloutTextComponent: point is undefined"),function(e,t,n){return new P.bR({x:(e.x-t.left)*n,y:(e.y-t.top)*n})}(e,i,x))))),D=function(e,t){const n=Math.abs(1-t);return t>1?e*t-n:e*t+n}(r||1,x),T=(0,K.PZ)(A,r?r*x:1,{start:n.cap,end:null}).map((e=>`${e.x},${e.y}`)).join(" ");return(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsx)("svg",{style:{position:"absolute",inset:0,overflow:"visible"},width:k.width,height:k.height,stroke:c?.toCSSValue(),viewBox:`0 0 ${k.width} ${k.height}`,focusable:!1,children:(0,oe.jsxs)("g",{children:[n.cap&&(0,oe.jsx)("defs",{children:(0,oe.jsx)(yt,{lineCap:n.cap,style:z,strokeWidth:r||1,id:E,position:"start",capAtMaxStroke:!0})}),(0,oe.jsx)("polyline",{fill:"none",points:T,stroke:c?.toCSSValue()||"black",strokeWidth:D,markerStart:`url(#${E})`})]})}),(0,oe.jsx)("div",{style:C,ref:t,className:"Callout",children:(0,oe.jsx)("div",{style:{verticalAlign:"center"===h?"middle":h,display:"inline-block"},ref:w,children:v})})]})}));class Qt extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"shouldComponentUpdate",$.EF),(0,y.A)(this,"memoizedGetFittingFontSize",(0,Wt.A)(qt.ar)),(0,y.A)(this,"_lastFittingFontSize",this.props.isDragging?this.props.annotation.fontSize:this.memoizedGetFittingFontSize(this.props.annotation,(0,B.oG)(this.props.annotation,this.props.zoomLevel))),(0,y.A)(this,"onClick",(e=>{if("function"==typeof this.props.onClick){if(this.props.annotation.lockedContents)return;this.props.onClick(e)}window.setTimeout((()=>{this.props.dispatch((0,we._G)(this.props.annotation.id))}),0)})),(0,y.A)(this,"_handlePointerDown",(e=>{e.isPrimary&&this.props.isSelectable&&(e.preventDefault(),this._handlePress(e,"touch"!==e.pointerType?new P.bR({x:e.clientX,y:e.clientY}):null))})),(0,y.A)(this,"_handlePress",((e,t)=>{"function"==typeof this.props.onClick||this.props.annotation.locked?this.onClick(e):this.props.dispatch((0,we.pw)(this.props.annotation,e,{selectedAnnotationShouldDrag:t,stopPropagation:!0}))})),(0,y.A)(this,"_handlePointerUp",(e=>{e.stopPropagation()}))}componentDidUpdate(e){const{annotation:t,zoomLevel:n,isDragging:r,shouldKeepRenderingAPStream:o}=this.props;if(!r&&!o&&t.isFitting&&(n!==e.zoomLevel||t!==e.annotation)){const e=(0,B.oG)(t,n);this._lastFittingFontSize=this.memoizedGetFittingFontSize(t,e)}}render(){const{annotation:{boundingBox:e},annotation:t,globalAnnotation:n,zoomLevel:r,isDisabled:o,isSelectable:i,intl:{formatMessage:a},backend:s,isDragging:l,cursor:c,shouldKeepRenderingAPStream:u,isMultiAnnotationsSelected:d}=this.props,h=(0,B.oG)(t,r),f=(0,B.Zr)(t,{isSelectable:i,cursor:c}),{backgroundColor:m,...g}={...(0,qt.Nv)(t,h,u,t.isFitting?this._lastFittingFontSize:t.fontSize),cursor:f,...(0,Re.Lz)(t)&&u?{transformOrigin:"50% 50%",transform:`rotate(${String(-t.rotation)}deg)`}:null},v="xhtml"===t.text.format;let y;if(!u){const e=(0,qt.Wi)(t.text.value);y=v?(0,oe.jsx)("div",{dangerouslySetInnerHTML:{__html:t.text?.value}}):e?Ut.A.sanitize(e):"",v&&(g.color=void 0)}return(0,oe.jsx)(be,{position:e.getLocation(),zoomLevel:r,isMultiAnnotationsSelected:d,children:(0,oe.jsx)(Ue.A,{onPointerUp:u?this._handlePointerUp:void 0,onPointerEnter:()=>{this.props.dispatch((0,we.Si)(t.id))},onPointerLeave:()=>{this.props.dispatch((0,we.Zz)(t.id))},children:(0,oe.jsx)(ge.A,{disabled:o,onPointerDown:this._handlePointerDown,style:{...g,backgroundColor:(0,B.I2)(t)?void 0:m,overflow:(0,B.I2)(t)?"visible":"hidden"},className:p()(Zt().annotation,{[Zt().readOnlyOutline]:t.readOnly||t.locked},"PSPDFKit-Text-Annotation PSPDFKit-Annotation"),"data-annotation-id":t.id,"aria-label":`${a(xe.A.annotation)}: ${a(xe.A.textAnnotation)}`,tabIndex:-1,children:u?(0,oe.jsx)(se.Reparent,{id:`annotation-text-${t.id}`,children:(0,oe.jsx)(Le,{annotation:n,zoomLevel:h,backend:s,label:a(xe.A.textAnnotation),isDragging:l,onError:this.props.onError})}):t.callout?(0,oe.jsx)(Jt,{annotation:t,children:y}):y})})})}}const en=(0,ve.j4)(Qt,{forwardRef:!0});var tn=n(96277),nn=n(9776),rn=n.n(nn);function on(e){const{annotation:t,previewRedactionMode:n,zoomLevel:r,isSelectable:o}=e,{boundingBox:i}=t,[a,s]=u.useState(0),l=10*r,c=Math.round(1.75*r),d=Math.floor(Math.floor(l)+c);u.useLayoutEffect((()=>{if(n&&t.overlayText&&t.repeatOverlayText){const e=new tn.default(`${l}px Helvetica, sans-serif`),{width:n}=e.measureText(t.overlayText);s(n),e.clean()}}),[n,t.overlayText,t.repeatOverlayText,l,s]);const h=u.useMemo((()=>t.overlayText&&!t.repeatOverlayText?t.rects.sortBy({0:e=>[e.top,e.left],90:e=>[e.left,-e.top],180:e=>[-e.top,-e.left],270:e=>[-e.left,e.top]}[t.rotation||"0"],$.lj).first():null),[t.overlayText,t.repeatOverlayText,t.rects,t.rotation]),f=t.rects.map(((e,s)=>{const c=e.scale(r),{overlayText:u,textHeight:f}=function(e,t,n,r,o,i){let a=e.overlayText,s=r;if(t&&a&&e.repeatOverlayText&&n){const e=i.width/n,t=Math.max(1,Math.floor(i.height/r)),l=Math.ceil(e*t);s=r*t,s+o<=i.height&&(s+=o),a=a.repeat(l)}return{overlayText:a,textHeight:s}}(t,n,a,d,l,c),m={fontSize:l,lineHeight:`${d}px`,height:t.repeatOverlayText?f:"100%"};if((0,Re.Lz)(t)){const e=90===t.rotation||270===t.rotation;m.transformOrigin="50% 50%",m.transform=(e?`translate(${Math.round(c.width/2-c.height/2)}px, ${-Math.round(c.width/2-c.height/2)}px) `:"")+`rotate(${String(-t.rotation)}deg)`,e&&(m.width=c.height,m.height=c.width)}const g=(0,B.Zr)(t,{isSelectable:o}),v={top:(e.top-i.top)*r,left:(e.left-i.left)*r,width:c.width,height:c.height,cursor:g,backgroundColor:n?"white":void 0},y={width:c.width,height:c.height},b={...y,border:t.outlineColor instanceof P.Q1?`2px solid ${t.outlineColor.toCSSValue()}`:void 0,opacity:t.opacity},w={...y,border:0,color:t.color instanceof P.Q1?t.color.toCSSValue():void 0,backgroundColor:t.fillColor instanceof P.Q1?t.fillColor.toCSSValue():"black",opacity:t.opacity},x=p()({[rn().textContainer]:!0,[rn().selectable]:!0});return(0,oe.jsx)("div",{className:rn().rectContainer,style:v,children:(0,oe.jsx)("div",{className:x,style:n?w:b,children:n&&(t.repeatOverlayText||e.equals(h))&&(0,oe.jsx)("span",{className:rn().textSpan,style:m,children:u})})},s)}));return(0,oe.jsx)(u.Fragment,{children:f})}const an=function(e){const{isSelectable:t,dispatch:n,annotation:r,zoomLevel:o,active:i,isMultiAnnotationsSelected:a}=e,{boundingBox:l}=r,c=u.useCallback((e=>{n((0,we.pw)(r,e))}),[n,r]),d=(0,s.d4)((e=>e.previewRedactionMode)),h={width:l.width*o,height:l.height*o,cursor:t?"pointer":"auto"};return(0,oe.jsx)(be,{zoomLevel:e.zoomLevel,position:l.getLocation(),className:rn().wrapper,disablePointerEvents:!0,isMultiAnnotationsSelected:a,children:(0,oe.jsx)(Ue.A,{onPointerEnter:()=>{e.dispatch((0,we.Si)(r.id))},onPointerLeave:()=>{e.dispatch((0,we.Zz)(r.id))},children:(0,oe.jsxs)(ge.A,{is:"div",disabled:Boolean(e.isDisabled),className:p()(rn().container,"PSPDFKit-Redaction-Annotation PSPDFKit-Annotation",i&&!e.isDisabled&&"PSPDFKit-Annotation-Selected",i&&!e.isDisabled&&"PSPDFKit-Redaction-Annotation-Selected"),style:h,"data-annotation-id":r.id,onClick:c,tabIndex:-1,children:[e.active?(0,oe.jsx)("div",{className:rn().active}):null,(0,oe.jsx)(on,{annotation:r,previewRedactionMode:d,isSelectable:t,zoomLevel:o})]})})})};var sn,ln=n(63622),cn=n.n(ln);class un extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"shouldComponentUpdate",$.EF)}render(){const{color:e,markupStyle:t,zoomLevel:n,pageRotation:r}=this.props,o=(0,gt.Z0)(),i=0!==r?{transform:`rotate(${90*r}deg)`}:{};return(0,oe.jsxs)("svg",{className:cn().markup,style:t,focusable:!1,children:[(0,oe.jsx)("defs",{children:(0,oe.jsx)("pattern",{id:o,width:"8",height:"3",patternUnits:"userSpaceOnUse",fill:e instanceof P.Q1?e.toCSSValue():"transparent",style:i,children:sn||(sn=(0,oe.jsx)("path",{d:"M8 2.9C7.2 2.9 6.7 2.3 6.5 1.9 6.2 1.5 6.1 1.4 6 1.4 5.9 1.4 5.8 1.5 5.5 1.9 5.3 2.3 4.8 2.9 4 2.9 3.2 2.9 2.7 2.3 2.5 1.9 2.2 1.5 2.1 1.4 2 1.4 1.9 1.4 1.8 1.5 1.5 1.9 1.3 2.3 0.8 2.9 0 2.9L0 1.6C0.1 1.6 0.2 1.5 0.5 1.1 0.7 0.7 1.2 0.1 2 0.1 2.8 0.1 3.3 0.7 3.5 1.1 3.8 1.5 3.9 1.6 4 1.6 4.1 1.6 4.2 1.5 4.5 1.1 4.7 0.7 5.2 0.1 6 0.1 6.8 0.1 7.3 0.7 7.5 1.1 7.8 1.5 7.9 1.6 8 1.6L8 2.9 8 2.9Z"}))})}),(0,oe.jsx)("rect",{fill:`url(#${o})`,width:"100%",height:"100%",transform:`scale(${n<1?`1, ${n}`:`${n}`})`})]})}}class dn extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"shouldComponentUpdate",$.EF),(0,y.A)(this,"_handlePress",(e=>{this.props.dispatch((0,we.pw)(this.props.annotation,e))})),(0,y.A)(this,"_handleCommentIconPress",(e=>{this._handlePress(e),e.stopPropagation()}))}render(){const{active:e,annotation:t,zoomLevel:n,isSelectable:r,intl:{formatMessage:o},backend:i,shouldKeepRenderingAPStream:a,pageRotation:s}=this.props,c=t instanceof P.ax,u=(0,B.Zr)(t,{isSelectable:r}),{boundingBox:d}=t,h=t.rects.map(((r,o)=>{const i=p()({[cn().annotationRect]:!0,[cn()[t.constructor.className]]:!0}),a={top:(r.top-d.top)*n,left:(r.left-d.left)*n,width:r.width*n,height:r.height*n,opacity:t.opacity,cursor:u},l=function(e){let{annotation:t,rect:n,zoomLevel:r,pageRotation:o}=e;const i=(0,B.Zr)(t),a={width:n.width*r,height:n.height*r,backgroundColor:t.color instanceof P.Q1?t.color.toCSSValue():"transparent",cursor:i};if(t instanceof P.sB)switch(o){case 0:return{...a,height:Math.max(1,Math.floor(2*r)),marginTop:Math.max(1,Math.floor(-1*r))};case 1:return{...a,width:Math.max(1,Math.floor(2*r)),left:"auto",right:"50%",top:0,marginRight:Math.max(1,Math.floor(-1*r))};case 2:return{...a,height:Math.max(1,Math.floor(2*r)),top:"auto",bottom:"50%",marginBottom:Math.max(1,Math.floor(-1*r))};case 3:return{...a,width:Math.max(1,Math.floor(2*r)),right:"auto",left:"50%",top:0,marginLeft:Math.max(1,Math.floor(-1*r))}}else if(t instanceof P.Yi)switch(o){case 0:return{...a,marginTop:Math.max(1,Math.floor(2*r)),height:Math.max(1,Math.floor(2*r))};case 1:return{...a,marginRight:Math.max(1,Math.floor(2*r)),width:Math.max(1,Math.floor(2*r))};case 2:return{...a,marginBottom:Math.max(1,Math.floor(2*r)),height:Math.max(1,Math.floor(2*r)),top:0};case 3:return{...a,width:Math.max(1,Math.floor(2*r)),left:"auto",marginLeft:Math.max(1,Math.floor(2*r))}}else if(t instanceof P.TI)switch(o){case 0:return{...a,height:3*r,overflow:"hidden"};case 1:return{...a,width:3*r,overflow:"hidden"};case 2:return{...a,height:3*r,top:0,overflow:"hidden"};case 3:return{...a,width:3*r,left:"auto",overflow:"hidden"}}return a}({annotation:t,rect:r,zoomLevel:n,pageRotation:s}),h={backgroundColor:t.color instanceof P.Q1?t.color.toCSSValue():"transparent"};return(0,oe.jsxs)("div",{className:i,style:a,children:[e?(0,oe.jsx)("div",{className:p()({[cn().active]:!c}),style:h}):null,t instanceof P.TI?(0,oe.jsx)(un,{markupStyle:l,color:t.color,zoomLevel:n,pageRotation:s}):(0,oe.jsx)("div",{className:cn().markup,style:l})]},o)})).toArray(),f=(0,B.rX)(t.blendMode),m=f?{mixBlendMode:f}:void 0,g={width:d.width*n,height:d.height*n,cursor:u,...b.nr?null:m},v=function(e){switch(e.constructor){case P.ax:return"Highlight";case P.sB:return"StrikeOut";case P.Yi:return"Underline";case P.TI:return"Squiggle";default:throw new l.uE(`Unknown text markup annotation type of annotation: ${JSON.stringify(e.toJS())}`)}}(t),y=xe.A[`${v.charAt(0).toLowerCase()+v.slice(1)}Annotation`],w=p()(cn().annotation,"PSPDFKit-Annotation","PSPDFKit-Text-Markup-Annotation",`PSPDFKit-${v}-Annotation`,{[cn().activeTextMarkup]:e&&c,[cn().highlight]:c,"PSPDFKit-Text-Markup-Annotation-selected":e,"PSPDFKit-Text-Markup-Comment-Annotation":t.isCommentThreadRoot}),x={};return e&&(x["data-testid"]="selected annotation"),(0,oe.jsx)(be,{position:d.getLocation(),zoomLevel:n,disablePointerEvents:!t.readOnly,additionalStyle:b.nr?m:void 0,children:(0,oe.jsx)(Ue.A,{onPointerEnter:()=>{this.props.dispatch((0,we.Si)(t.id))},onPointerLeave:()=>{this.props.dispatch((0,we.Zz)(t.id))},children:(0,oe.jsx)(ge.A,{is:"div",style:g,className:w,onClick:this._handlePress,disabled:!!this.props.isDisabled,"data-annotation-id":t.id,"aria-label":`${o(xe.A.annotation)}: ${o(y)}`,...x,tabIndex:-1,children:(0,oe.jsxs)(oe.Fragment,{children:[a&&(0,oe.jsx)(Le,{annotation:t,zoomLevel:n,backend:i,label:o(y),onError:this.props.onError}),(!a||e)&&h]})})})})}}(0,y.A)(dn,"defaultProps",{active:!1});const pn=(0,ve.j4)(dn,{forwardRef:!0});var hn=n(31807),fn=n.n(hn);function mn(e){let{annotation:t,zoomLevel:n,isDisabled:r,backend:o,isFocused:i,isMultiAnnotationsSelected:a}=e;const s=u.useRef(null),{formatMessage:l}=(0,ve.tz)(),{boundingBox:c}=t,d={width:c.width*n,height:c.height*n};return u.useEffect((()=>{i&&s.current&&s.current.focus()}),[i]),(0,oe.jsx)(be,{position:c.getLocation(),zoomLevel:n,applyZoom:!0,isMultiAnnotationsSelected:a,children:(0,oe.jsx)(ge.A,{disabled:r,className:p()(fn().annotation,"PSPDFKit-Annotation-Unknown PSPDFKit-Annotation-Unsupported PSPDFKit-Annotation"),style:d,"data-annotation-id":t.id,"aria-label":l(xe.A.annotation),ref:s,tabIndex:-1,children:o&&(0,oe.jsx)(Le,{annotation:t,backend:o,zoomLevel:n,label:l(xe.A.annotation)})})})}var gn=n(89055),vn=n(90378),yn=n(75157),bn=n.n(yn),wn=n(30141),xn=n.n(wn);class Sn extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"shouldComponentUpdate",$.EF),(0,y.A)(this,"_inputRef",u.createRef()),(0,y.A)(this,"_handleClickAction",(e=>{this.props.dispatch((0,we.pw)(this.props.annotation,e))})),(0,y.A)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,y.A)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n,annotationToFocus:r}=this.props;r===n.id&&this.props.dispatch((0,lt.in)(null)),t&&t(n,e)}))}componentDidUpdate(e){const{annotationToFocus:t}=this.props,{annotationToFocus:n}=e;n!==t&&this.props.annotation.id===t&&this._inputRef.current?.focus()}render(){const{annotation:e,formField:{name:t,readOnly:n,buttonLabel:r,label:o},zoomLevel:i,formDesignMode:a,isRenderingAPStream:s,canFillFormFieldCP:l}=this.props,c="number"==typeof e.fontSize?e.fontSize:12,u={width:Math.ceil(e.boundingBox.width*i),height:Math.ceil(e.boundingBox.height*i),...s?{opacity:0}:{...(0,Oe.i8)(e,i),fontSize:Math.ceil(c*i),justifyContent:e.verticalAlign&&Cn[e.verticalAlign]||"center",alignItems:e.horizontalAlign&&En[e.horizontalAlign]||"center"}},d=l&&!n,h=!d||a,f=p()({[bn().widget]:!0,[bn().onFocus]:!0,[bn().readOnly]:!d,[bn().flexText]:!0,[xn().btn]:!h,[xn().btnFormDesigner]:a,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-Button":!0,"PSPDFKit-Annotation-Widget-read-only":!d});return(0,oe.jsx)("button",{ref:this._inputRef,className:f,disabled:h,name:t,type:_n(e),style:u,onClick:this._handleClickAction,onFocus:this._handleFocus,onBlur:this._handleBlur,children:r||o||""})}}function _n(e){const{action:t}=e;if(!t)return"button";switch(t.constructor){case it.kV:return"reset";case it.Dh:return"submit";default:return"button"}}const Cn={top:"flex-start",center:"center",bottom:"flex-end"},En={left:"flex-start",center:"center",right:"flex-end"};var kn=n(83877),zn=n(20985),Pn=n.n(zn);class An extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"shouldComponentUpdate",$.EF),(0,y.A)(this,"state",{checked:(0,Oe.WJ)(this.props.formField,this.props.annotation)}),(0,y.A)(this,"_inputRef",u.createRef()),(0,y.A)(this,"_onChange",(()=>{const{formField:e,annotation:t}=this.props,n=(0,Oe.nE)(e,t),r=this.state.checked?(0,a.B8)(["Off"]):(0,a.B8)([n]),o=(0,Oe.EA)(e,t,!this.state.checked);this.setState({checked:!this.state.checked}),this.props.dispatch((0,kn.mV)([{name:e.name,value:r,optionIndexes:o}]))})),(0,y.A)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t?.(n,e)})),(0,y.A)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n}=this.props;this.props.annotationToFocus===this.props.annotation.id&&this.props.dispatch((0,lt.in)(null)),t?.(n,e)}))}componentDidUpdate(e){this.props.formField.values.equals(e.formField.values)||this.setState({checked:(0,Oe.WJ)(this.props.formField,this.props.annotation)});const{annotationToFocus:t}=this.props,{annotationToFocus:n}=e;n!==t&&this.props.annotation.id===t&&this._inputRef.current?.focus()}render(){const{annotation:{id:e},annotation:t,zoomLevel:r,formField:o,formDesignMode:i,isRenderingAPStream:a,canFillFormFieldCP:s}=this.props,{readOnly:l}=o,c=(0,Oe.nE)(o,t),u={width:Math.ceil(t.boundingBox.width*r),height:Math.ceil(t.boundingBox.height*r),...a?{opacity:0}:(0,Oe.i8)(t,r)},d=s&&!l,h=p()({[Pn().readOnly]:!d,[Pn().input]:!0,[bn().widget]:!0,[bn().readOnly]:!d,"PSPDFKit-Annotation-Widget-CheckBox-Control":!0}),f=p()({[Pn().checkradio]:!0,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-CheckBox":!0,"PSPDFKit-Annotation-Widget-read-only":!d});return(0,oe.jsxs)("label",{style:u,className:f,children:[(0,oe.jsx)("input",{ref:this._inputRef,type:"checkbox",disabled:!d||i,name:o.name,value:c,checked:this.state.checked,onChange:this._onChange,onFocus:this._handleFocus,onBlur:this._handleBlur},e),(0,oe.jsx)("span",{className:h,style:{borderWidth:Math.max(1,r)}}),this.state.checked&&(0,oe.jsx)("span",{className:Pn().check,role:"presentation",children:(0,oe.jsx)(Te.A,{src:n(90672)})})]})}}var Dn=n(75453),Tn=n(28301),In=n(27946),Mn=n.n(In);class Nn extends u.PureComponent{constructor(){super(...arguments),(0,y.A)(this,"_inputRef",u.createRef()),(0,y.A)(this,"_memoizedCalculateFontSize",(0,Wt.A)(Tn.Vr)),(0,y.A)(this,"latestKeystrokeDiff",null),(0,y.A)(this,"_getInput",(e=>{if(e.isEmpty())return"";{const t=this.props.formField.options.find((t=>t.get("value")===e.first()));return t?t.label:e.first()||""}})),(0,y.A)(this,"state",{initialValue:this._getInput(this.props.formField.values),value:this._getInput(this.props.formField.values),values:this.props.formField.values,isOpen:!1,isFocused:!1,textSelected:!1}),(0,y.A)(this,"_getSelectedLabel",(()=>{const{options:e}=this.props.formField,t=this.state.values.first(),n=e.find((e=>e.value===t));return n&&n.label||t})),(0,y.A)(this,"_onChange",(e=>{const t=e.currentTarget,{value:n}=t,{backend:r,formField:o,annotation:i}=this.props;if(!(0,Oe.Q8)(r,i,o))return void this.setState({value:n,textSelected:!1});const{selectionStart:a,selectionEnd:s}=t,c=(0,R.lq)(this.state.initialValue,n,a);this.latestKeystrokeDiff=c;const u={change:c.change,value:c.prev,returnCode:!0,name:this.props.formField.name,selStart:a,selEnd:s};this.setState({value:n,textSelected:!1}),r.onKeystrokeEvent(u).then((e=>{if(c!==this.latestKeystrokeDiff||0===e.length)return;const n=e[0].object;if(!n.returnCode)return void this.setState({value:this.state.initialValue,textSelected:!1});const r=(0,R.ui)(c,n.change),o=e.slice(1);o.length&&this.props.dispatch((0,kn.f_)({changes:o})),this.setState({value:r,initialValue:r,textSelected:!1},(function(){n.selStart!==t.selectionStart&&(t.selectionStart=n.selStart),n.selEnd!==t.selectionEnd&&(t.selectionEnd=n.selEnd)}))})).catch(l.z3)})),(0,y.A)(this,"_onSelect",(e=>{if(!e){const e=this.state;return this.setState({values:e.values,isOpen:!1,value:e.value,textSelected:!1},(()=>{this.props.onOpenStateChange(this.state.isOpen)})),this.latestKeystrokeDiff=null,void(this._button&&this._button.focus())}const t=(0,a.B8)([e.value]);this.setState({values:t,isOpen:!1,value:e.label,textSelected:!1},(()=>{this.props.onOpenStateChange(this.state.isOpen)})),this.latestKeystrokeDiff=null,this.props.formField.commitOnChange&&(this.props.formField.values.equals(t)||this.props.dispatch((0,kn.mV)([{name:this.props.formField.name,value:t}],(e=>{e.some((e=>e.name===this.props.formField.name))&&this.setState({value:this.state.initialValue,textSelected:!1})})))),this._button&&this._button.focus()})),(0,y.A)(this,"_handleBlur",(e=>{e.persist();const{currentTarget:t}=e;this.props.dispatch((0,lt.in)(null)),this.latestKeystrokeDiff=null,setTimeout((()=>{const n=this.props.shadowRoot?this.props.shadowRoot.activeElement:this.props.frameWindow.document.activeElement;if(!t.contains(n)){const t=this._getInput(this.state.values);this.setState({isOpen:!1,isFocused:!1,value:t,initialValue:t},(()=>{this.props.onOpenStateChange(this.state.isOpen)})),this.props.formField.values.equals(this.state.values)||this.props.dispatch((0,kn.mV)([{name:this.props.formField.name,value:this.state.values}],(e=>{e.some((e=>e.name===this.props.formField.name))&&this.setState({value:this.state.initialValue,textSelected:!1})})));const{onBlur:n,annotation:r}=this.props;n&&n(r,e)}}),0)})),(0,y.A)(this,"calculateFilteredOptions",(()=>{const e=this.state.isOpen,{formField:{options:t,edit:n}}=this.props,r=e?t.toSeq().filter((e=>this.state.textSelected||!this.state.value||e.label.toLowerCase().includes(this.state.value.toLowerCase()))).toList():(0,a.B8)();return n?r.some((e=>this.state.value.includes(e.label)))?r:r.unshift(new P._B({label:this.state.value,value:this.state.value})):r})),(0,y.A)(this,"_renderComboBoxTop",((e,t,r,o)=>{const{name:i,readOnly:a}=this.props.formField,s=this.props.formDesignMode,l=this.props.canFillFormFieldCP&&!a,c=p()({[Mn().comboBoxTop]:!0,"PSPDFKit-Annotation-Widget-ComboBox-Button":!0,"PSPDFKit-Annotation-Widget-read-only":!l}),u=this._getSelectedLabel();return(0,oe.jsxs)("div",{className:c,onClick:this._openDropdownClick,ref:o,children:[(0,oe.jsx)("button",{"aria-controls":`PSPDFKit-dd-${this.props.formField.name}-menu`,"aria-expanded":r,"aria-haspopup":"true",tabIndex:r?-1:0,style:e,disabled:!l||s,className:Mn().valueBtn,onFocus:e=>{this.setState({isFocused:!0});const{onFocus:t,annotation:n}=this.props;t&&(e.persist(),t(n,e))},ref:e=>this._button=e,name:i,value:u,children:u}),(0,oe.jsx)("div",{"aria-hidden":!r,className:Mn().arrowBtn,...t,children:(0,oe.jsx)(Te.A,{src:n(62159)})})]})})),(0,y.A)(this,"_openDropdownClick",(()=>{this.props.formField.readOnly||this.props.formField.formDesignMode||!this.props.canFillFormFieldCP||this.setState((e=>{let{isOpen:t}=e;return{isOpen:!t}}),(()=>{this._inputRef.current&&(this._inputRef.current.select(),this.setState({textSelected:!0},(()=>{this.props.onOpenStateChange(this.state.isOpen)})))}))})),(0,y.A)(this,"_setContentElementRect",(e=>{this.props.handleComboxBoxRect(e)})),(0,y.A)(this,"_downShiftRenderFn",(e=>{let{getInputProps:t,getItemProps:n,getToggleButtonProps:r,isOpen:o,highlightedIndex:i}=e;const{annotation:{boundingBox:{width:a,height:s}},annotation:l,formField:{doNotSpellCheck:c,readOnly:u,required:d},formDesignMode:h,isRenderingAPStream:f,canFillFormFieldCP:m,viewportState:g}=this.props,{zoomLevel:v}=g,y=this.calculateFilteredOptions(),b=y.size>5?5:y.size,w={fontSize:10*v,padding:2*v,height:Math.ceil(20*v)},x=u||h||!m,S=t({ref:this._inputRef,value:this.state.value,onFocus:()=>this.setState({isOpen:!0},(()=>{this.props.onOpenStateChange(this.state.isOpen)})),spellCheck:!c,onChange:this._onChange}),_=r(),C=p()({[Mn().comboBox]:!0,[Mn().expanded]:o,[bn().widget]:!0,[bn().focusedWidget]:o||this.state.isFocused,[bn().readOnly]:x,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-ComboBox":!0,"PSPDFKit-Annotation-Widget-ComboBox-isOpen":o,"PSPDFKit-Annotation-Widget-Required":d}),E=Math.max(4,Math.min(.7*s,12))*v,k=90===l.rotation||270===l.rotation,z=this._memoizedCalculateFontSize(this._getSelectedLabel(),a,s,l.fontSize,!1,0,this._inputRef.current),{height:P,width:A,opacity:D,...T}={width:Math.ceil(l.boundingBox.width*v),height:Math.ceil(l.boundingBox.height*v),...f?{opacity:0}:(0,Oe.i8)(l,v,!1)},I={...(0,Oe.Wn)(l,v),borderWidth:Math.max(1,v),fontSize:E,opacity:D,[k?"height":"width"]:A,[k?"width":"height"]:P},M={...T,cursor:x?"default":"pointer",padding:`0 ${Tn.PC*v}px`,fontSize:z*v,[k?"width":"height"]:P,[k?"height":"width"]:A},N=p()({[Mn().menu]:!0,"PSPDFKit-Annotation-Widget-ComboBox-Menu":!0}),O=Math.ceil(20*b*v),R=Math.ceil(y.size*v);return(0,oe.jsx)("div",{className:C,style:{...I,...o?{position:"fixed"}:void 0},tabIndex:-1,onBlur:this._handleBlur,children:(0,oe.jsx)(On,{viewportRect:g.viewportRect,isVertical:90===l.rotation||270===l.rotation,setContentElementRect:this._setContentElementRect,children:e=>{let{referenceRef:t,contentRef:r,style:a}=e;return(0,oe.jsxs)(oe.Fragment,{children:[this._renderComboBoxTop(M,_,o,t),o&&(0,oe.jsxs)("div",{className:N,ref:r,style:a,children:[(0,oe.jsx)("input",{...S,className:p()(Mn().comboBoxInput,"PSPDFKit-Annotation-Widget-ComboBox-SearchInput"),style:{textAlign:"center"},tabIndex:-1,required:d}),(0,oe.jsx)("div",{className:p()(Mn().comboBoxList,"PSPDFKit-Annotation-Widget-ComboBox-List"),id:`PSPDFKit-dd-${this.props.formField.name}-menu`,children:y.isEmpty()?(0,oe.jsx)("div",{className:Mn().comboBoxListItem,style:w,children:"No results found"}):(0,oe.jsx)("div",{className:Mn().listContainer,style:{height:O},children:(0,oe.jsx)("div",{className:Mn().list,style:{height:R},children:y.map(((e,t)=>{const r=i===t;(0,ye.V)(e);const o=this.state.values.includes(e.get("value")),a=p()({[Mn().comboBoxListItem]:!0,[Mn().comboBoxListItemActive]:r,[Mn().comboBoxListItemSelected]:o});let s;return s=0===t&&this.props.formField.edit&&!this.props.formField.options.includes(e)?e.label.length?`Create "${e.label}"`:(0,oe.jsx)("span",{className:Mn().empty,children:"(empty)"}):e.label,(0,oe.jsx)("div",{className:p()(a,"PSPDFKit-Annotation-Widget-ComboBox-ListItem",{"PSPDFKit-Annotation-Widget-ComboBox-ListItem-Active":r,"PSPDFKit-Annotation-Widget-ComboBox-ListItem-Selected":o}),title:e.label,...n({key:e.value,index:t,item:e,style:w}),children:s})}))})})})]})]})}})})})),(0,y.A)(this,"_itemToString",(e=>e?e.label:""))}componentDidUpdate(e){this.props.formField.values!==e.formField.values&&this.setState({values:this.props.formField.values});const{annotationToFocus:t}=this.props,{annotationToFocus:n}=e;n!==t&&this.props.annotation.id===t&&this._openDropdownClick()}componentWillUnmount(){this.latestKeystrokeDiff=null}render(){const{frameWindow:e}=this.props;return(0,oe.jsx)(Dn.Ay,{environment:e,onSelect:this._onSelect,itemToString:this._itemToString,isOpen:this.state.isOpen,defaultHighlightedIndex:0,children:this._downShiftRenderFn})}}const On=function(e){const{children:t,viewportRect:n,isVertical:r,setContentElementRect:o}=e,[i,a]=u.useState(null),[s,l]=u.useState(null),[c,d]=u.useState(null),p=u.useCallback((()=>{const e=s?s.getBoundingClientRect():null,t=i?i.getBoundingClientRect():null,a=r?"left":"top",l=r?"width":"height";let c=e?e[l]:0;null!==t&&null!==e&&e[a]+e[l]+t[l]>n[l]&&0!==e[a]&&(c=-t[l]),o&&o(t),d({top:c})}),[i,s,n,r]);u.useLayoutEffect((()=>{p()}),[p]);return t({referenceRef:e=>l(e),contentRef:e=>a(e),style:{position:"absolute",...c,width:"100%",...s&&i?null:{opacity:0}}})};var Rn=n(18888),jn=n.n(Rn);class Fn extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"shouldComponentUpdate",$.EF),(0,y.A)(this,"state",{values:this.props.formField.values}),(0,y.A)(this,"_inputRef",u.createRef()),(0,y.A)(this,"_onChange",(e=>{const t=e.target.options,n=(0,a.G2)([...t]).filter((e=>e.selected)).map((e=>e.value)).toList();this.setState({values:n}),this.props.formField.commitOnChange&&(this.props.formField.values.equals(n)||this.props.dispatch((0,kn.mV)([{name:this.props.formField.name,value:n}])))})),(0,y.A)(this,"_onBlur",(e=>{this.props.annotationToFocus===this.props.annotation.id&&this.props.dispatch((0,lt.in)(null)),this.props.formField.values.equals(this.state.values)||this.props.dispatch((0,kn.mV)([{name:this.props.formField.name,value:this.state.values}]));const{onBlur:t,annotation:n}=this.props;t&&t(n,e)})),(0,y.A)(this,"_onFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)}))}componentDidUpdate(e){this.props.formField.values.equals(e.formField.values)||this.setState({values:this.props.formField.values});const{annotationToFocus:t}=this.props,{annotationToFocus:n}=e;n!==t&&this.props.annotation.id===t&&this._inputRef.current?.focus()}render(){const{annotation:e,formField:{options:t,name:n,multiSelect:r,readOnly:o,required:i},zoomLevel:a,formDesignMode:s,isRenderingAPStream:l,canFillFormFieldCP:c}=this.props,u=c&&!o,d={width:Math.ceil(e.boundingBox.width*a),height:Math.ceil(e.boundingBox.height*a),...l?{opacity:0}:{...(0,Oe.i8)(e,a),fontSize:Math.ceil(12*a),textAlign:e.horizontalAlign}},h=p()({[jn().listBox]:!0,[bn().widget]:!0,[bn().onFocus]:!0,[bn().readOnly]:!u,[jn().listBoxRotated]:!!e.rotation,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-ListBox":!0,"PSPDFKit-Annotation-Widget-read-only":!u,"PSPDFKit-Annotation-Widget-Required":i}),f=r?this.state.values.toArray():this.state.values.size>0?this.state.values.get(0):void 0;return(0,oe.jsx)("select",{ref:this._inputRef,disabled:!u||s,style:d,size:t.size,className:h,name:n,onChange:this._onChange,multiple:r,onBlur:this._onBlur,onFocus:this._onFocus,value:f,required:i,children:t.map((e=>(0,oe.jsx)("option",{value:e.value,children:e.label},e.value)))})}}var Bn=n(72162);class Ln extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"shouldComponentUpdate",$.EF),(0,y.A)(this,"state",{checked:(0,Oe.WJ)(this.props.formField,this.props.annotation)}),(0,y.A)(this,"_inputRef",u.createRef()),(0,y.A)(this,"handleChange",(()=>{const{dispatch:e,formField:t,annotation:n}=this.props;if(this.state.checked&&t.noToggleToOff)return;const r=(0,Oe.EA)(t,n,!this.state.checked);e((0,kn.mV)([{name:t.name,value:this.state.checked?null:(0,Oe.nE)(t,n),optionIndexes:r}])),this.setState((e=>{let{checked:t}=e;return{checked:!t}}))})),(0,y.A)(this,"uncheck",(e=>{const{formField:t,dispatch:n,annotation:r}=this.props;if(t.readOnly||t.noToggleToOff||!this.state.checked||"keydown"===e.type&&e.keyCode!==Bn.u)return;"keydown"===e.type&&e.preventDefault();const o=(0,Oe.EA)(t,r,!1);n((0,kn.mV)([{name:t.name,value:null,optionIndexes:o}]))})),(0,y.A)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,y.A)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n,annotationToFocus:r}=this.props;r===n.id&&this.props.dispatch((0,lt.in)(null)),t&&t(n,e)}))}static getDerivedStateFromProps(e,t){const n=(0,Oe.WJ)(e.formField,e.annotation);return t.checked!==n?{checked:n}:null}componentDidUpdate(e){const{annotationToFocus:t}=this.props,{annotationToFocus:n}=e;n!==t&&this.props.annotation.id===t&&this._inputRef.current?.focus()}render(){const{annotation:{id:e},annotation:t,zoomLevel:n,formField:r,formDesignMode:o,isRenderingAPStream:i,canFillFormFieldCP:a}=this.props,{checked:s}=this.state,{borderColor:l,borderWidth:c,borderStyle:u,height:d,width:h,opacity:f,backgroundColor:m,...g}={width:Math.ceil(t.boundingBox.width*n),height:Math.ceil(t.boundingBox.height*n),...i?{opacity:0}:(0,Oe.i8)(t,n,!1)},{transform:v,transformOrigin:y}=(0,Oe.i8)(t,n);let b={width:h,height:d,opacity:f};(0,Re.Lz)(t)&&(b={...b,transform:v,transformOrigin:y});const w=a&&!r.readOnly,x=p()({[Pn().input]:!0,[Pn().inputRadio]:!0,[bn().widget]:!0,[bn().readOnly]:!w,"PSPDFKit-Annotation-Widget-RadioButton-Control":!0}),S=p()({[Pn().checkradio]:!0,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-RadioButton":!0,"PSPDFKit-Annotation-Widget-read-only":!w});return(0,oe.jsxs)("label",{style:b,className:S,children:[(0,oe.jsx)("input",{ref:this._inputRef,type:"radio",name:r.name,disabled:!w||o,defaultChecked:s,value:(0,Oe.nE)(r,t),className:s?Pn().checked:null,onChange:w?this.handleChange:void 0,onClick:this.uncheck,onKeyDown:this.uncheck,onFocus:this._handleFocus,onBlur:this._handleBlur,style:g},e),(0,oe.jsx)("span",{className:x,style:{borderColor:l,borderWidth:null!=c?c:Math.max(1,n),borderStyle:u,backgroundColor:m}})]})}}var Vn=n(97107),Kn=n.n(Vn),Hn=n(85553);class $n extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"shouldComponentUpdate",$.EF),(0,y.A)(this,"state",{overlappingAnnotation:null}),(0,y.A)(this,"_focusableElement",null),(0,y.A)(this,"_onDOMElement",(e=>{this._focusableElement=e})),(0,y.A)(this,"_handlePress",(e=>{e.stopPropagation(),e.preventDefault();const t=this.props.features.includes(te.Y.ELECTRONIC_SIGNATURES)?"es-signature":"ink-signature",n=this.props.isAnnotationPressPrevented({annotation:this.props.annotation,nativeEvent:e.nativeEvent,selected:!1});if(!e.isPrimary||n||this.props.isDigitallySigned)return;const{overlappingAnnotation:r}=this.state;r?this.props.dispatch((0,we.pw)(r,e,{selectedAnnotationShouldDrag:"touch"!==e.pointerType?new P.bR({x:e.clientX,y:e.clientY}):null})):(this._focusableElement&&this._focusableElement.focus(),this.props.dispatch((0,lt.iE)(t)),this.props.dispatch((0,Dt.tJ)({signatureRect:this.props.annotation.boundingBox,signaturePageIndex:this.props.annotation.pageIndex,formFieldName:this.props.formField.name})))})),(0,y.A)(this,"_handleFocus",(e=>{const{onFocus:t,annotation:n}=this.props;t&&t(n,e)})),(0,y.A)(this,"_handleBlur",(e=>{const{onBlur:t,annotation:n,annotationToFocus:r}=this.props;r===n.id&&this.props.dispatch((0,lt.in)(null)),t&&t(n,e)})),(0,y.A)(this,"_handlePointerUp",(e=>{e.stopPropagation()}))}static getDerivedStateFromProps(e){const t=e.inkAnnotations.find((t=>t.boundingBox.isRectOverlapping(e.annotation.boundingBox)))||e.imageAnnotations.find((t=>t.boundingBox.isRectOverlapping(e.annotation.boundingBox)));return{overlappingAnnotation:t||null}}componentDidUpdate(e){const{annotationToFocus:t}=this.props,{annotationToFocus:n}=e;if(n!==t&&this.props.annotation.id===t&&!this.props.isDigitallySigned){const{overlappingAnnotation:e}=this.state,t=this.props.features.includes(te.Y.ELECTRONIC_SIGNATURES)?"es-signature":"ink-signature";e?this.props.dispatch((0,we.TT)((0,a.NZ)([e.id]),null)):(this._focusableElement&&this._focusableElement.focus(),this.props.dispatch((0,lt.iE)(t)),this.props.dispatch((0,Dt.tJ)({signatureRect:this.props.annotation.boundingBox,signaturePageIndex:this.props.annotation.pageIndex,formFieldName:this.props.formField.name})))}}render(){const{formatMessage:e}=this.props.intl,{annotation:t,annotation:{boundingBox:n,id:r},formField:{readOnly:i,name:a},zoomLevel:s,formDesignMode:l,isDigitallySigned:c,hasSignatureLicenseComponent:u,backend:d,isDragging:h,canFillFormFieldCP:f,signatureFeatureAvailability:m,isRenderingAPStream:g}=this.props,v=Math.ceil(n.height*s),y={...(0,Oe.i8)(t,s,!1),fontSize:(20<v?20:v)*s},b=f&&!i&&m!==Hn.g.NONE,w=p()({[bn().readOnly]:!b,[bn().widget]:!0,[bn().onFocus]:!0,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-Signature":!0,"PSPDFKit-Annotation-Widget-read-only":!b}),x=p()({[Kn().sign]:!0,[Kn().signReadOnly]:!b,"PSPDFKit-Annotation-Widget-Signature-Badge":!0}),S=(g||c)&&u&&(0,B.F)(n),_=p()({"PSPDFKit-Annotation-Widget":!0,"PSPDFKit-Annotation-Widget-Signature":!0,"PSPDFKit-Annotation-Widget-Signature-Signed":c}),C=(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsx)("span",{className:x,"aria-hidden":"true",children:e(xe.A.sign)}),(0,oe.jsx)(o.s6,{tag:"span",children:`${a}, ${e(xe.A.sign)}`})]});return S?(0,oe.jsx)(se.Reparent,{id:`annotation-signature-widget-${r}`,children:(0,oe.jsx)(Ue.A,{onPointerUp:this._handlePointerUp,onPointerDown:b?this._handlePress:void 0,onDOMElement:this._onDOMElement,children:(0,oe.jsxs)(ge.A,{onFocus:this._handleFocus,onBlur:this._handleBlur,style:{...y,cursor:b||!c?"pointer":"auto"},className:_,"data-annotation-id":t.id,"aria-label":`${e(xe.A.annotation)}: ${e(xe.A.sign)}`,is:"div",children:[(0,oe.jsx)(Le,{annotation:t,backend:d,zoomLevel:s,label:`${e(xe.A.signed)}`,isDragging:h,isDigitallySigned:c,onError:this.props.onError}),c||this.state.overlappingAnnotation?null:C]})})}):(0,B.F)(n)?(0,oe.jsx)(Ue.A,{onPointerDown:b?this._handlePress:void 0,onDOMElement:this._onDOMElement,children:(0,oe.jsx)("button",{className:w,"data-name":a,style:y,disabled:!b||l,onFocus:this._handleFocus,onBlur:this._handleBlur,children:this.state.overlappingAnnotation?(0,oe.jsxs)(o.s6,{tag:"span",children:[a,", ",e(xe.A.signed)]}):C})}):null}}const Un=(0,ve.j4)($n,{forwardRef:!0});var Wn=n(37506);const qn=(0,vn.F)((function(e,t){const{annotation:n}=t,r=n.pageIndex,o=e.pages.get(r),i=e.features,a=e.signatureFeatureAvailability;(0,ye.V)(o,"Cannot find page for widgetAnnotation with id ",n.id);const s=(0,B.T1)(e.annotations,o),l=s.filter((e=>e instanceof ce.Eo)).toList(),c=s.filter((e=>e instanceof ce.vU)).toList();return{isDigitallySigned:(0,Wn.Gg)(e,n),inkAnnotations:l,imageAnnotations:c,isAnnotationPressPrevented:t=>(0,B.m5)(t,e.eventEmitter),backend:e.backend,features:i,signatureFeatureAvailability:a,hasSignatureLicenseComponent:i.includes(te.Y.DIGITAL_SIGNATURES)||i.includes(te.Y.ELECTRONIC_SIGNATURES)}}))(Un),Gn=qn;var Zn=n(57916),Yn=n(9939),Xn=n(47058);const Jn=["m/d","m/d/yy","mm/dd/yy","mm/yy","d-mmm","d-mmm-yy","dd-mmm-yy","yy-mm-dd","mmm-yy","mmmm-yy","mmm d, yyyy","mmmm d, yyyy","m/d/yy h:MM tt","m/d/yy HH:MM"],Qn=["HH:MM","h:MM tt","HH:MM:ss","h:MM:ss tt"];function er(e,t){const{value:n,readOnly:r}=e.formField;return{initialValue:n,value:n,valueFromCurrentProps:n,readOnlyFromCurrentProps:r,isFocused:!!t&&t.isFocused,initialEditingValue:e.editingValue,editingValue:t?t.editingValue:e.editingValue,shouldRecalculateWhenOverflow:!1}}class tr extends u.PureComponent{constructor(){super(...arguments),(0,y.A)(this,"state",er(this.props)),(0,y.A)(this,"_usedHeight",0),(0,y.A)(this,"_latestKeystrokeDiff",null),(0,y.A)(this,"_memoizedGetTextareaUsedHeight",(0,Wt.A)(rr)),(0,y.A)(this,"_memoizedCalculateFontSize",(0,Wt.A)(Tn.Vr)),(0,y.A)(this,"_memoizedCalculateCombLetterSpacing",(0,Wt.A)(nr)),(0,y.A)(this,"_reusableRealmRemoveTimeout",null),(0,y.A)(this,"_reusableRealm",null),(0,y.A)(this,"_inputRef",u.createRef()),(0,y.A)(this,"_onChange",(()=>{const e=this._inputRef.current;(0,l.V1)(e);const{value:t}=e,{comb:n,doNotScroll:r,multiLine:o}=this.props.formField,i=t.length<this.state.value.length,{zoomLevel:a,annotation:{fontSize:s,lineHeightFactor:c}}=this.props;if(r&&!n&&!i){const n="auto"===s||null==s?Tn.Ss[0]:s,r=e.parentNode;(0,l.V1)(r);const i=e.cloneNode(!0),u=n*a-(o?0:parseFloat(i.style.paddingTop)+parseFloat(i.style.paddingBottom));i.style.fontSize=`${u}px`,i.style.borderWidth="0px",i.style.textAlign="left","TEXTAREA"===i.tagName?i.innerText=t:i.value=t;let d=!0;r.appendChild(i);try{if(o){const t=u*(c??1),n=parseFloat(e.style.height)/t<2,r=n?0:Math.min(.4*u*a,5*a);i.style.lineHeight=n?`${Math.min(u,t)}px`:`${Math.min(t,parseFloat(e.style.height)-r||0)}px`,i.style.paddingTop=`${r}px`,d=(0,Yn.RL)(i)}else d=(0,Yn.AJ)(i)}finally{r.removeChild(i)}if(d)return}const{backend:u,formField:d,annotation:p}=this.props;if(!(0,Oe.Q8)(u,p,d))return void this.setState({value:t});const{selectionStart:h}=e,f=(0,R.lq)("string"==typeof this.state.initialEditingValue?this.state.initialEditingValue:this.state.initialValue,t,h);this._latestKeystrokeDiff=f;const m={change:f.change,value:f.prev,returnCode:!0,name:this.props.formField.name,selStart:h,selEnd:f.endCursorPosition};this.setState({value:t,editingValue:t}),u.onKeystrokeEvent(m).then((t=>{if(f!==this._latestKeystrokeDiff||0===t.length)return;const n=t[0].object;if(!n.returnCode)return void this.setState({value:this.state.initialValue,editingValue:this.state.initialEditingValue});const r=(0,R.ui)(f,n.change),o=t.slice(1);o.length&&this.props.dispatch((0,kn.f_)({changes:o})),this.setState({value:r,initialValue:r,editingValue:r,initialEditingValue:r},(function(){n.selStart!==e.selectionStart&&(e.selectionStart=n.selStart),n.selEnd!==f.endCursorPosition&&(e.selectionEnd=n.selEnd)}))})).catch(l.z3)})),(0,y.A)(this,"_onFocus",(e=>{const t=this._inputRef.current;this.setState({isFocused:!0,shouldRecalculateWhenOverflow:!!t&&t.clientHeight<t.scrollHeight});const{onFocus:n}=this.props;n&&(e.persist(),n(this.props.annotation,e.nativeEvent))})),(0,y.A)(this,"_onBlur",(e=>{this.setState({isFocused:!1}),this.props.annotationToFocus===this.props.annotation.id&&this.props.dispatch((0,lt.in)(null)),this._latestKeystrokeDiff=null,this._commitChanges();const{onBlur:t}=this.props;t&&(e.persist(),t(this.props.annotation,e.nativeEvent))}))}static getDerivedStateFromProps(e,t){return t.valueFromCurrentProps!==e.formField.value||t.readOnlyFromCurrentProps!==e.formField.readOnly?er(e,t):null}componentWillUnmount(){this._latestKeystrokeDiff=null,this._commitChanges();const{onBlur:e,annotation:t}=this.props;e&&e(t,(0,Xn.BL)("blur"))}_commitChanges(){this.props.formField.value!==this.state.value&&this.props.dispatch((0,kn.mV)([{name:this.props.formField.name,value:this.state.value,...this.props.formField.multiLine&&{isFitting:(0,Tn.vS)(this.props.annotation,this.state.value,this.props.zoomLevel)}}],(e=>{e.some((e=>e.name===this.props.formField.name))&&this.setState({value:this.state.initialValue,editingValue:this.state.initialEditingValue})})))}_dateFormat(){const{annotation:e}=this.props,t=e.additionalActions?.onFormat?.script||this.props.formField.additionalActions?.onFormat?.script;if(!t)return null;const n=t.match(/(?<name>AFTime|AFDate)_(?<type>[FormatEx]*)\("*(?<argument>[0-9]+|[\w\d\s:\-/]*)"*\)/);if(!n)return null;const{argument:r,type:o,name:i}=n.groups;if("FormatEx"===o){const e=r.match(/[d|y|m]/);return"AFDate"===i&&e||"AFTime"===i&&!e?r:null}switch(i){case"AFDate":return Jn[r];case"AFTime":return Qn[r]}return null}_dateInputType(e){if(e){const t=e.match(/[d|y|m]/),n=e.match(/[H|h|M|t]/);if(t&&n)return"datetime-local";if(n)return"time"}return"date"}_getReusableRealm(){return this._reusableRealm?this._reusableRealm.window.document.body.innerHTML="":this._reusableRealm=(0,Yn.KU)(this.props.frameWindow),this._reusableRealmRemoveTimeout&&clearTimeout(this._reusableRealmRemoveTimeout),this._reusableRealmRemoveTimeout=setTimeout((()=>{this._reusableRealm&&this._reusableRealm.remove(),this._reusableRealm=null,this._reusableRealmRemoveTimeout=null}),200),(0,l.V1)(this._reusableRealm),this._reusableRealm}componentDidMount(){this.props.formField.multiLine&&!this.props.formField.password&&"number"!=typeof this.props.annotation.lineHeightFactor&&this.props.backend.getSuggestedLineHeightFactor(this.props.annotation).then((e=>{this.props.dispatch((0,lt.iN)((0,a.B8)([this.props.annotation.set("lineHeightFactor",e)])))})).catch(l.z3)}componentDidUpdate(e){e.annotationToFocus!==this.props.annotationToFocus&&this.props.annotationToFocus===this.props.annotation.id&&this._inputRef.current?.focus()}render(){const{annotation:{boundingBox:{width:e,height:t},lineHeightFactor:n},annotation:r,formField:{name:i,password:a,maxLength:s,doNotSpellCheck:l,doNotScroll:c,multiLine:u,readOnly:d,comb:h,required:f},zoomLevel:m,formDesignMode:g,formattedValue:v,frameWindow:y,isRenderingAPStream:b,canFillFormFieldCP:w}=this.props,x=function(e,t){return e.isFocused||null==t?e.isFocused&&null!=e.editingValue?e.editingValue:e.value:t}(this.state,v),S=this._memoizedCalculateFontSize(x,e,t,r.fontSize,u,r.borderWidth||0,this._inputRef.current),_={width:r.boundingBox.width*m,height:r.boundingBox.height*m,fontSize:S*m,...b?{opacity:0}:{...(0,Oe.i8)(r,m),overflow:c?"hidden":"auto",paddingTop:0,paddingBottom:0,paddingLeft:u?Tn.PC*m:0,paddingRight:u?Tn.PC*m:0}};if(r.horizontalAlign&&(_.textAlign=r.horizontalAlign),r.verticalAlign&&!u&&("bottom"===r.verticalAlign?_.paddingTop=_.height-_.fontSize-2*_.borderWidth:"top"===r.verticalAlign&&(_.paddingBottom=_.height-_.fontSize-2*_.borderWidth)),h&&"number"==typeof s&&!u){const t=this._memoizedCalculateCombLetterSpacing(S,e,s,y.document,this._inputRef.current)*m;_.fontFamily="monospace",_.letterSpacing=t,_.paddingLeft=t/2,_.paddingRight=0}const C=a?"password":"text",E=w&&!d,k=p()({[bn().readOnly]:!E,[bn().widget]:!0,[bn().combNoPaddingLeftOnFocus]:h&&s,[bn().onFocus]:!0,"PSPDFKit-Annotation-Widget PSPDFKit-Annotation-Widget-Text":!0,"PSPDFKit-Annotation-Widget-read-only":!E,"PSPDFKit-Annotation-Widget-Required":f}),z=!E||g;if(!a&&u){let e=Tn.$v*m;const t=_.height-_.fontSize;t-2*e<0&&(e=t>0?t/2:0);const o=Math.min(_.fontSize*(n??1),_.height),a=_.height/o<2?0:Math.min(.4*S*m,5*m),c={..._,resize:"none",paddingTop:a,paddingLeft:Tn.PC*m,paddingRight:Tn.PC*m,lineHeight:`${o}px`};if(r.verticalAlign&&"top"!==r.verticalAlign){this._usedHeight=this._memoizedGetTextareaUsedHeight(x||" ",r.boundingBox.width,m,S,this._getReusableRealm());const t=c.height-(this._usedHeight||c.fontSize);"bottom"===r.verticalAlign?c.paddingTop=c.height>this._usedHeight?t-e-2*c.borderWidth:0:"center"===r.verticalAlign&&(c.paddingTop=c.height>this._usedHeight?t/2-c.borderWidth:0,c.paddingBottom=c.height>this._usedHeight?t/2-e-c.borderWidth:0)}return(0,oe.jsx)("textarea",{ref:this._inputRef,className:k,name:i,readOnly:z,value:x,style:c,maxLength:s,spellCheck:!l,onChange:this._onChange,onBlur:this._onBlur,onFocus:this._onFocus,required:f})}const P=this._dateFormat(),A=this._dateInputType(P);return P&&A?(0,oe.jsx)(o.pe,{ref:this._inputRef,style:_,className:k,name:i,value:x,disabled:z,type:A,maxLength:s,format:P,onChange:this._onChange,onBlur:this._onBlur,onFocus:this._onFocus,required:f}):(0,oe.jsx)("input",{ref:this._inputRef,className:k,type:C,disabled:z,maxLength:s,name:i,value:x,style:_,spellCheck:!l,onChange:this._onChange,onBlur:this._onBlur,onFocus:this._onFocus,required:f})}}function nr(e,t,n,r,o){let i,s=e/2;try{i=new Zn.a(r,(0,a.B8)(["_"]),{fontSize:`${e}px`,width:`${t}px`,wordWrap:"break-word",whiteSpace:"pre-wrap",fontFamily:"monospace"},bn().widget,o&&o.parentNode);const n=i.measure().first();(0,l.V1)(n),s=n.width}finally{i&&i.remove()}const c=t/n-s;return Math.max(c,0)}function rr(e,t,n,r,o){let i;try{const a={width:`${Math.ceil(t*n)}px`,fontSize:r*n+"px",padding:`0 ${Tn.PC*n}px`,whiteSpace:"pre-wrap",overflowWrap:"break-word",maxWidth:t*n+"px",border:`${Math.max(1,n)}px solid transparent`,boxSizing:"border-box",display:"block",fontFamily:"Helvetica, sans-serif",margin:"0",outline:"0"};return i=new Zn.a(o.window.document,e,a),i.wrapper?i.wrapper.scrollHeight:0}finally{i&&i.remove()}}var or=n(1025);class ir extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"shouldComponentUpdate",$.EF),(0,y.A)(this,"state",{isFocused:!1,isComboboxOpen:!1,isRollover:!1,isDown:!1}),(0,y.A)(this,"_elementBoundingBox",null),(0,y.A)(this,"_pointerRecognizerRef",(e=>{this._pointerRecognizer=e})),(0,y.A)(this,"onFocus",((e,t)=>{const{onFocus:n,dispatch:r,annotation:{additionalActions:o,formFieldName:i}}=this.props;o&&o.onFocus&&r((0,or.K_)(o.onFocus.script,"onFocus",i)),n&&n(e,t),this.setState({isFocused:!0})})),(0,y.A)(this,"onBlur",((e,t)=>{const{onBlur:n,dispatch:r,annotation:{additionalActions:o,formFieldName:i}}=this.props;o&&o.onBlur&&r((0,or.K_)(o.onBlur.script,"onBlur",i)),n&&n(e,t),this.setState({isFocused:!1})})),(0,y.A)(this,"onPointerUp",(()=>{this.props.annotation.additionalActions?.onPointerUp&&this.props.dispatch((0,or.xO)(this.props.annotation,"onPointerUp")),this.state.isDown&&this.setState({isDown:!1})})),(0,y.A)(this,"onPointerEnter",(()=>{this._elementBoundingBox=this._pointerRecognizer?.getBoundingClientRect(),this.props.annotation.additionalActions?.onPointerEnter&&this.props.dispatch((0,or.xO)(this.props.annotation,"onPointerEnter")),this.props.hasRolloverVariantAPStream&&this.setState({isRollover:!0})})),(0,y.A)(this,"onPointerLeave",(()=>{this.props.annotation.additionalActions?.onPointerLeave&&this.props.dispatch((0,or.xO)(this.props.annotation,"onPointerLeave")),this.state.isRollover&&this.setState({isRollover:!1,isDown:!1})})),(0,y.A)(this,"onRootPointerMove",(e=>{this._elementBoundingBox&&this.state.isRollover&&(e.clientX<this._elementBoundingBox?.left||e.clientX>this._elementBoundingBox?.right||e.clientY<this._elementBoundingBox?.top||e.clientY>this._elementBoundingBox?.bottom)&&this.onPointerLeave()})),(0,y.A)(this,"handlePointerUp",(e=>{e.stopPropagation()})),(0,y.A)(this,"handleOpenStateChange",(e=>{this.setState({isComboboxOpen:e}),this.props.isComboBoxOpen&&this.props.isComboBoxOpen(e),e||this.props.handleComboBoxRect?.(null)})),(0,y.A)(this,"handleComboBoxRect",(e=>{this.props.handleComboBoxRect?.(e)})),(0,y.A)(this,"handlePointerDown",(e=>{if(e.isPrimary&&this.props.isSelectable&&this.props.hasDownVariantAPStream&&this.setState({isDown:!0}),!e.isPrimary||!this.props.isSelectable||this.props.formField instanceof P.$h&&!this.props.formDesignMode)return;const t={selectedAnnotationShouldDrag:"touch"!==e.pointerType?new P.bR({x:e.clientX,y:e.clientY}):null,stopPropagation:!0};this.props.dispatch((0,we.pw)(this.props.annotation,e,t))}))}renderWidgetComponent(e){const{formField:t,canFillFormFieldCP:n,frameWindow:r,shadowRoot:o}=this.props;(0,l.V1)(t),(0,l.V1)(r);const i={dispatch:this.props.dispatch,annotation:this.props.annotation,zoomLevel:this.props.zoomLevel,frameWindow:r,onFocus:this.onFocus,onBlur:this.onBlur,onPointerUp:e?this.handlePointerUp:void 0,formDesignMode:this.props.formDesignMode,backend:this.props.backend,formattedValue:this.props.formattedValue,editingValue:this.props.editingValue,isRenderingAPStream:e,canFillFormFieldCP:n,viewportState:this.props.viewportState,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected,annotationToFocus:this.props.annotationToFocus,shadowRoot:o,isFocused:this.state.isFocused};if(t instanceof P.uS)return(0,oe.jsx)(tr,{...i,formField:t});if(t instanceof P.O2)return(0,oe.jsx)(Fn,{...i,formField:t});if(t instanceof P.av)return(0,oe.jsx)(An,{...i,formField:t});if(t instanceof P.sh)return(0,oe.jsx)(Nn,{...i,handleComboxBoxRect:this.handleComboBoxRect,onOpenStateChange:this.handleOpenStateChange,formField:t});if(t instanceof P.Qk)return(0,oe.jsx)(Ln,{...i,formField:t});if(t instanceof P.$h)return(0,oe.jsx)(Sn,{...i,formField:t});if(t instanceof P.Vw)return(0,oe.jsx)(Gn,{...i,isDragging:this.props.isDragging,formField:t});throw new Error("Unsupported type for FormField.")}renderWidgetMaybeWithAPStream(){const{annotation:e,zoomLevel:t,backend:n,formField:r,isDragging:o,shouldKeepRenderingAPStream:i,intl:{formatMessage:a}}=this.props,s=i&&!this.state.isComboboxOpen&&(!this.state.isFocused||r instanceof P.av||r instanceof P.Qk||r instanceof P.$h),l=(0,B.rX)(e.blendMode),c=l?{mixBlendMode:l}:{};let u;return this.state.isRollover&&(u="rollover"),this.state.isDown&&(u="down"),(0,oe.jsxs)("div",{style:c,children:[this.renderWidgetComponent(s),!s||r instanceof P.Vw?null:(0,oe.jsx)(se.Reparent,{id:`annotation-widget-${e.id}`,className:Be().APStreamParent,children:(0,oe.jsx)(Le,{annotation:e,variant:u,zoomLevel:t,backend:n,formField:r,label:a(xe.A.annotation),isDragging:o})})]})}render(){const{annotation:{rotation:e,boundingBox:t,id:n},zoomLevel:r,formDesignMode:o,formField:i,isSelectable:a}=this.props;if(!i)return null;const s=90===(0,je.hR)(e)||270===(0,je.hR)(e);let l=sr,c=lr;s&&(l={...l,transformOrigin:"50% 50%",transform:(0,Oe.Lu)({width:Math.ceil(t.width*r),height:Math.ceil(t.height*r),rotation:(0,je.hR)(e)})},c={...c,transformOrigin:"50% 50%",transform:(0,Oe.Lu)({width:Math.ceil(t.width*r),height:Math.ceil(t.height*r),rotation:(0,je.hR)(e),reverse:!0})});const u=p()((i instanceof P.av||i instanceof P.Qk||i instanceof P.$h||i instanceof P.Vw)&&Be().focusWithinOutline,"PSPDFKit-Annotation");return(0,oe.jsx)(be,{position:t.getLocation(),zoomLevel:r,isMultiAnnotationsSelected:this.props.isMultiAnnotationsSelected,children:(0,oe.jsx)(Ue.A,{onPointerDown:this.handlePointerDown,onPointerUp:this.onPointerUp,onPointerEnter:this.onPointerEnter,onPointerLeave:this.onPointerLeave,onRootPointerMove:this.onRootPointerMove,onDOMElement:this._pointerRecognizerRef,children:o&&a?(0,oe.jsx)("div",{style:l,className:"PSPDFKit-Annotation","data-annotation-id":n,children:(0,oe.jsx)("div",{style:c,children:this.renderWidgetMaybeWithAPStream()})}):(0,oe.jsx)("div",{className:u,"data-annotation-id":n,children:this.renderWidgetMaybeWithAPStream()})})})}}const ar=(0,ve.j4)(ir,{forwardRef:!0}),sr={cursor:"pointer"},lr={pointerEvents:"none"};var cr=n(88140);const ur=(0,vn.F)((function(e,t){let{annotation:n}=t;const r=e.formFields.get(n.formFieldName),o=r&&e.formattedFormFieldValues.get(r.name),i=r&&e.editingFormFieldValues.get(r.name);return{annotation:n,formField:r?.set("readOnly",(0,gn.DI)(r,n,e))||null,frameWindow:e.frameWindow,formDesignMode:e.formDesignMode,backend:e.backend,formattedValue:o,editingValue:i,canFillFormFieldCP:!!r&&(0,cr.wS)(r,e),viewportState:e.viewportState,isViewStateReadOnly:ne.g.VIA_VIEW_STATE,hasDownVariantAPStream:!("number"!=typeof n.pdfObjectId||!e.APStreamVariantsDown.has(n.pdfObjectId)),hasRolloverVariantAPStream:!("number"!=typeof n.pdfObjectId||!e.APStreamVariantsRollover.has(n.pdfObjectId)),annotationToFocus:e.widgetAnnotationToFocus,shadowRoot:e.shadowRoot}}),{forwardRef:!0})(ar),dr=ur;var pr=n(87289),hr=n.n(pr),fr=n(43052);const mr=fr.GY;const gr=function(e){const{annotation:t,dispatch:n,zoomLevel:r,isAnnotationSelected:o,activeAnnotationNote:i,visible:a}=e,s=i&&i.parentAnnotation?.id===t.id,l=t.isCommentThreadRoot,c=u.useMemo((()=>s&&i?i:(0,fr.IZ)(t,l?24:mr,l?24:mr)),[t,s,l,i]),d=c.position,h=(l||t.note||s)&&function(e){return!(e instanceof ce.s9||e instanceof ce.dh||e instanceof ce.dG||e instanceof ce.sb||e instanceof ce.UL||function(e){return e.creatorName&&/AutoCAD SHX Text/i.test(e.creatorName)}(e))}(t),f=!b.LZ&&!l,{width:m,height:g}=c.boundingBox,v={width:m,height:g,transformOrigin:"top left",transform:`translate(${m*r/2-m/2}px, ${g*r/2-g/2}px)`,cursor:(0,B.Zr)(t,{isAnnotationNote:!0})},y=t.constructor.readableName,w=(0,B.Zr)(t);return(0,oe.jsx)(oe.Fragment,{children:h&&(0,oe.jsx)(be,{position:d,zoomLevel:r,children:(0,oe.jsx)(Ue.A,{onPointerUp:e=>{l?n((0,we.pw)(t,e)):(o||n((0,we.pw)(c.parentAnnotation,e)),n((0,we.mm)(c))),e&&e.stopPropagation()},children:(0,oe.jsx)("div",{className:p()({"PSPDFKit-Annotation-Note":!0,[hr().noteIndicator]:!0,[hr().noteIndicatorActive]:o||s,[`PSPDFKit-Annotation-Note-${y}Annotation`]:!!y}),onMouseEnter:f?e=>{n((0,we.yK)(c)),e&&e.stopPropagation()}:void 0,onMouseLeave:f?e=>{n((0,we.yK)(null)),e&&e.stopPropagation()}:void 0,style:{cursor:w},children:a?(0,oe.jsx)(Se.A,{style:v,className:p()(hr().icon,s&&hr().iconActive),type:l?"comment-indicator":"note-indicator"}):(0,oe.jsx)("div",{style:v})})})})})},vr=u.memo((function(e){const{annotation:t,annotation:{boundingBox:n},zoomLevel:r,backend:o,isMultiAnnotationsSelected:i}=e,{formatMessage:a}=(0,ve.tz)(),s={width:n.width*r,height:n.height*r},[c,d]=u.useState(void 0),[h,f]=u.useState(void 0);u.useEffect((()=>{o.cachedRenderAnnotation(t,void 0,s.width,s.height).promise.then((e=>{if(e?.element instanceof HTMLImageElement)return f(e.element.src)})).catch((e=>{throw new l.uE(`Could not render the media annotation: ${e.message}`)}))}),[t,o,s.width,s.height]),u.useEffect((()=>{o.getAttachment(t.mediaAttachmentId).then((e=>d(e))).catch((()=>{throw new l.uE("Could not get media attachment for "+t.id)}))}),[t.mediaAttachmentId,o,t.id]);const m=u.useMemo((()=>c?URL.createObjectURL(c):""),[c]);return u.useEffect((()=>function(){m&&URL.revokeObjectURL(m)}),[m]),m?(0,oe.jsx)(be,{position:n.getLocation(),zoomLevel:r,isMultiAnnotationsSelected:i,children:(0,oe.jsx)("div",{className:p()("PSPDFKit-MediaAnnotation","PSPDFKit-Annotation"),"data-annotation-id":t.id,children:(0,oe.jsx)("video",{src:m,controls:!0,width:s.width,height:s.height,poster:h,"aria-label":`${a(xe.A.annotation)}: ${a(xe.A.mediaAnnotation)} ${t.fileName}`,children:a(xe.A.mediaFormatNotSupported)})})}):null})),yr=vr;var br=n(40807);const wr=u.forwardRef((function(e,t){let{annotation:n,globalAnnotation:r,attachments:o,backend:i,dispatch:a,isAnnotationReadOnly:l,isDisabled:c,isHover:d,isFocused:p,onBlur:h,onFocus:f,pageSize:m,zoomLevel:g,rotation:v,pageRotation:y,isSelected:b,showAnnotationNotes:w,activeAnnotationNote:x,onClick:S,isResizing:_=!1,isModifying:C=!1,isDragging:E=!1,isRotating:k=!1,isAutoSaveDisabled:z,cursor:P,shouldRenderAPStream:A,isMultiAnnotationsSelected:D=!1,isComboBoxOpen:T,handleComboBoxRect:I}=e;const[M,N]=u.useState(!1),O=u.useCallback((()=>N(!0)),[]),R=(0,s.d4)((e=>"formFieldName"in n?e.formFields.get(n.formFieldName):void 0)),j=(0,s.d4)((e=>(0,Wn.Gg)(e,n))),F=(0,br.ZC)({annotation:n,formField:R,zoomLevel:g,isDigitallySignedWidget:j});u.useEffect((()=>{F&&$e({annotation:n,formField:R,zoomLevel:g,isDigitallySigned:j},F)&&N(!1)}),[n,R,g,j]);const L=l(n),V=!L,K=(0,s.d4)((e=>e.secondaryMeasurementUnit)),H=(0,u.useMemo)((()=>{const e={backend:i,dispatch:a,isDisabled:c,isSelectable:V,onBlur:h,onFocus:f,ref:t,zoomLevel:g,rotation:v,isDragging:E,isAutoSaveDisabled:z,shouldKeepRenderingAPStream:A&&!_&&!C&&!k&&!M,isFocused:p,isMultiAnnotationsSelected:D,cursor:P,isComboBoxOpen:T,handleComboBoxRect:I,onError:O};if(n instanceof ce.KR)return(0,oe.jsx)(yr,{...e,annotation:n});if(n instanceof ce.vU)return(0,oe.jsx)(Ze,{...e,attachment:n.imageAttachmentId?o.get(n.imageAttachmentId):null,annotation:n});if(n instanceof ce.Eo)return(0,oe.jsx)(tt,{...e,annotation:n});if(n instanceof ce.UL){const{ref:t,...r}=e;return(0,oe.jsx)(st,{...r,isHover:d,annotation:n})}return n instanceof ce.s9?(0,oe.jsx)(mt,{...e,isReadOnly:L,annotation:n}):n instanceof ce.pP?(0,oe.jsx)(Kt,{...e,annotation:n,secondaryMeasurementUnit:K}):n instanceof ce.xY?(0,oe.jsx)($t,{...e,annotation:n,globalAnnotation:r,isAutoSaveDisabled:z}):n instanceof ce.dh?(0,oe.jsx)(en,{...e,pageSize:m,onClick:S,annotation:n,globalAnnotation:r}):n instanceof ce.h5?(0,oe.jsx)(an,{...e,active:b,annotation:n}):n instanceof ce.tr?(0,oe.jsx)(pn,{...e,active:b,pageRotation:y,annotation:n}):n instanceof ce.Ip?(0,oe.jsx)(mn,{...e,annotation:n}):n instanceof ce.sb?(0,oe.jsx)(dr,{...e,annotation:n}):n instanceof ce.dG?(0,oe.jsx)(ze,{...e,isReadOnly:L,active:b,annotation:n}):void 0}),[n,o,i,P,a,r,I,M,z,T,c,E,p,d,C,D,L,_,k,V,b,h,S,O,f,y,m,t,v,K,A,g]);return(0,oe.jsx)(he,{zoomLevel:g,renderer:"Annotation",notCSSScaled:n instanceof ce.sb,children:(0,oe.jsxs)(Sr,{annotation:n,children:[H,w&&(0,B.Cx)(n)&&(0,oe.jsx)(gr,{dispatch:a,annotation:n,zoomLevel:g,isAnnotationSelected:b,activeAnnotationNote:x,visible:!0})]})},n.id)})),xr=wr;function Sr(e){let{children:t}=e;return(0,oe.jsx)("div",{children:t})}const _r=(0,s.Ng)(((e,t)=>{let{pageIndex:n}=t;return{viewportState:e.viewportState,transformClientToPage:function(t){return e.transformClientToPage(t,n)}}})),Cr=(0,s.Ng)((e=>({transformClientToPage:e.transformClientToPage})));var Er=n(41567),kr=n(70589),zr=n.n(kr);class Pr extends u.PureComponent{constructor(e){let t,n,r;if(super(e),(0,y.A)(this,"layerRef",u.createRef()),(0,y.A)(this,"_handlePointerUp",(e=>{if(!e.isPrimary)return;const t=this._getNormalizedMousePosition(e);if(!t)return;const n=this._fitRectInPage(new P.rw({left:t.x-this.sizes.width/2,top:t.y-this.sizes.height/2,width:this.sizes.width,height:this.sizes.height}),this.props.pageSize),r=this.props.annotation.set("pageIndex",this.props.pageIndex).set("boundingBox",n);e.stopPropagation(),r instanceof P.s9?this.props.dispatch((0,lt.g_)(r)):r instanceof P.dG&&(this.props.dispatch((0,lt.iN)((0,a.B8)([r]))),this.props.dispatch((0,Er.t6)(r.id)))})),e.annotation instanceof P.s9)t=n=r=_e.b4,this.cursor="context-menu";else{if(!(e.annotation instanceof P.dG))throw Error("Annotation type not supported.");t=n=r=_e.jw,this.cursor="context-menu"}this.sizes={width:t,height:n,minWidth:r}}_getNormalizedMousePosition(e){const{target:t}=e,{x:n,y:r}=this.props.getRelativePosition(e.clientX,e.clientY);if(this.layerRef.current){const{defaultView:e}=this.layerRef.current.ownerDocument;if(t instanceof e.HTMLDivElement)return this.props.transformClientToPage(new P.bR({x:n,y:r}),this.props.pageIndex)}}_fitRectInPage(e,t){const{width:n,height:r}=t,o=this.sizes.minWidth||this.sizes.width;return e.top+e.height>r&&(e=e.set("top",r-e.height)),e.left+o>n&&(e=e.set("left",n-o)),e}render(){return(0,oe.jsx)(Ue.A,{onPointerUp:this._handlePointerUp,children:(0,oe.jsx)("div",{"data-testid":"create-annotation-layer",children:(0,oe.jsx)("div",{className:zr().layer,style:{cursor:this.cursor||"auto"},ref:this.layerRef})})})}}const Ar=Cr(Pr);var Dr=n(89428),Tr=n.n(Dr);class Ir extends u.PureComponent{constructor(){super(...arguments),(0,y.A)(this,"state",{currentSelectableAnnotation:null}),(0,y.A)(this,"_handlePointerDownCapture",(e=>{this._pointerDownTime=Date.now();const t=this._transformToPagePoint(e);this._selectableAnnotation=this.findSelectableAnnotation(t);const n=(0,B.lF)(this.props.selectedAnnotations,this.props.zoomLevel);b.LZ&&this.props.isMultiAnnotationsSelected&&!n?.isPointInside(t)&&!this.checkAnnotationAtPoint(t)&&this.props.dispatch((0,we.J9)());const r=this._selectableAnnotation instanceof P.UL;r&&(this._selectedAnnotationOnDown=this.findSelectedAnnotationAtPoint(t)),this._isInterestedInUpCapture=r&&!this._selectedAnnotationOnDown,!this.props.isTextComparison&&e.metaKey||e.ctrlKey&&this.props.isMultiSelectionEnabled?(this.props.setMultiAnnsInitialEvent?.(e),this.props.dispatch((0,Dt.K)(!0))):this.props.setMultiAnnsInitialEvent?.(void 0)})),(0,y.A)(this,"_handlePointerUpCapture",(e=>{if(!this._selectableAnnotation||!this._isInterestedInUpCapture||!this.getSelection().isCollapsed)return;const t=Date.now()-this._pointerDownTime>300,n=this._selectableAnnotation,r=n instanceof P.UL;if(t&&!r)return void(this._selectableAnnotation=null);const o=n instanceof P.tr||r,i=!this._selectedAnnotationOnDown&&Boolean(this.findSelectedAnnotationAtPoint(this._transformToPagePoint(e)));this.props.dispatch((0,we.pw)(n,e,{preventDefault:o,stopPropagation:o,clearSelection:i,longPress:t&&r}))})),(0,y.A)(this,"_handlePointerUp",(e=>{if(!this.getSelection().isCollapsed||!this._selectableAnnotation||this._selectedAnnotationOnDown)return;const t=this._selectableAnnotation,n=t instanceof P.tr;this.props.dispatch((0,we.pw)(t,e,{preventDefault:n,stopPropagation:n}))})),(0,y.A)(this,"_handlePointerMove",(e=>{if("mouse"!==e.pointerType)return;const{currentSelectableAnnotation:t}=this.state,n=this._transformToPagePoint(e),r=this.findSelectableAnnotation(n);!(0,a.is)(r,t)&&(t&&this.props.hoverAnnotationIds.has(t.id)&&this.props.dispatch((0,we.Zz)(t.id)),!r||this.props.hoverAnnotationIds.has(r.id)||this.checkifHoverPointIsDefferedRegion(new P.bR({x:e.clientX,y:e.clientY}))||this.props.dispatch((0,we.Si)(r.id)),this.setState({currentSelectableAnnotation:r}))}))}checkifHoverPointIsDefferedRegion(e){if(this.props.hitCaptureDeferredRect&&this.props.hitCaptureDeferredRect.length>0)for(const t of this.props.hitCaptureDeferredRect){if(e.x>=t.left&&e.x<=t.right&&e.y>=t.top&&e.y<=t.bottom)return!0}return!1}_transformToPagePoint(e){const{x:t,y:n}=this.props.getRelativePosition(e.clientX,e.clientY);return this.props.transformClientToPage(new P.bR({x:t,y:n}),this.props.pageIndex)}_boundingBoxHitTest(e){const t=b.LZ?_e.Bd:_e.uo;return n=>n instanceof P.UL?n.boundingBox.isPointInside(e):n.boundingBox.grow(t).isPointInside(e)}_findSelectableLinkAnnotation(e){return this.props.selectableLinkAnnotations.filter(B.gf).findLast(this._boundingBoxHitTest(e))}_findSelectableTextMarkupAnnotation(e){return this.props.selectableTextMarkupAnnotations.filter(B.gf).findLast((t=>t.rects.find((t=>t.grow(b.LZ?_e.Bd:_e.uo).isPointInside(e)))))}findSelectableAnnotation(e){const t=this._findSelectableLinkAnnotation(e),n=this._findSelectableTextMarkupAnnotation(e);return t||n}findSelectedAnnotationAtPoint(e){return this.props.selectedAnnotations.findLast(this._boundingBoxHitTest(e))}checkAnnotationAtPoint(e){return this.props.currentPageAnnotations?.some((t=>t.boundingBox?.isPointInside(e)))??!1}getSelection(){return this.props.window.getSelection()}render(){const e=!!this.state.currentSelectableAnnotation,t=p()({[Tr().layer]:!0,[Tr().cursorText]:this.props.keepSelectedTool&&"TEXT"===this.props.interactionMode,[Tr().cursorPointer]:e,"PSPDFKit-CursorPointer":e});return(0,oe.jsx)(Ue.A,{onPointerMove:this._handlePointerMove,onPointerUp:this._handlePointerUp,onPointerDownCapture:this.props.isHitCaptureDeferred?void 0:this._handlePointerDownCapture,onPointerDown:this.props.isHitCaptureDeferred?this._handlePointerDownCapture:void 0,onPointerUpCapture:this._handlePointerUpCapture,children:(0,oe.jsx)("div",{className:t,children:this.props.children})})}}const Mr=Cr(Ir);var Nr=n(79900);class Or extends u.PureComponent{constructor(){super(...arguments),(0,y.A)(this,"precision",(0,Ye.Em)(this.props.zoomLevel)),(0,y.A)(this,"pointsToPathArray",Xe.JY.ENABLE_INK_SMOOTH_LINES?e=>(0,Ye.Hj)(e,this.precision):Ye.F0),(0,y.A)(this,"_pathDataFromFragments",((e,t,n)=>{if(!n||n.length<3)return null;const r=this.props.annotation.lines.get(t);return!r||r.size<n.length||r.size<4?null:r.size===n.length?n:[...n.slice(0,n.length-2),...this.pointsToPathArray(r.slice(n.length-2)).slice(1)]})),(0,y.A)(this,"_onDrawStart",(e=>{let{annotation:t,onDrawStart:n}=this.props;this.precision=(0,Ye.Em)(this.props.zoomLevel),t=t.update("lines",(t=>t.push((0,a.B8)([e,new P.LL({x:e.x,y:e.y,intensity:e.intensity})])))),t=t.set("boundingBox",(0,Ye.AJ)(t)),n(t)})),(0,y.A)(this,"_onDraw",(e=>{let{annotation:t,onDraw:n}=this.props,r=t.lines.last();(0,l.V1)(r),r=e.reduce(((e,t)=>(0,Ye.j$)(e,t,this.props.distanceBetweenPoints)?e.push(t):e),r.pop()).push(e[e.length-1]),t=t.setIn(["lines",this.props.annotation.lines.size-1],r),t=t.set("boundingBox",function(e,t){const{boundingBox:n,lineWidth:r}=e;let{left:o,top:i,width:a,height:s}=n,l=Math.floor(o),c=Math.floor(i),u=Math.ceil(o+a),d=Math.ceil(i+s);return t.forEach((e=>{l=Math.floor(Math.min(o,e.x-r/2)),c=Math.floor(Math.min(i,e.y-r/2)),u=Math.ceil(Math.max(o+a,e.x+r/2)),d=Math.ceil(Math.max(i+s,e.y+r/2)),o=l,i=c,a=u-l,s=d-c})),new P.rw({left:o,top:i,width:a,height:s})}(t,r)),n(t)})),(0,y.A)(this,"_onDrawEnd",(()=>{let{annotation:e,onDrawEnd:t}=this.props;const n=e.lines.last();if((0,l.V1)(n),n.size>1){const t=n.get(n.size-2);t&&0===n.last().distance(t)&&(e=e.updateIn(["lines",e.lines.size-1],(e=>e.pop())))}t(e)}))}render(){const{annotation:e,canvasSize:t,zoomLevel:n}=this.props,{boundingBox:r}=e;return(0,oe.jsxs)("div",{className:Qe().canvas,style:{cursor:this.props.cursor,mixBlendMode:(0,B.rX)(e.blendMode)},"data-testid":"ink-canvas-outer-div",children:[(0,oe.jsx)(be,{zoomLevel:n,applyZoom:!0,children:(0,oe.jsx)("div",{style:{position:"absolute",top:r.top,left:r.left,width:r.width,height:r.height},children:(0,oe.jsx)(nt,{isSelectable:!1,annotation:e,viewBox:r,pathDataFromFragments:this._pathDataFromFragments,precision:this.precision})})}),(0,oe.jsx)(At.A,{scrollElement:this.props.scrollElement,size:t,onDrawStart:this._onDrawStart,onDrawCoalesced:this._onDraw,onDrawEnd:this._onDrawEnd,transformPoint:this.props.transformPoint,interactionMode:this.props.interactionMode,canScrollWhileDrawing:this.props.canScrollWhileDrawing})]})}}(0,y.A)(Or,"defaultProps",{canvasSize:new P.or({width:300,height:200}),distanceBetweenPoints:0,cursor:"default",zoomLevel:1});const Rr=(0,Wt.A)(Ye.Fe);function jr(e){const t=e.inkAnnotation.lineWidth/2*e.viewportState.zoomLevel;return{currentInkAnnotation:e.inkAnnotation,cursor:Rr(t),zoomLevel:e.viewportState.zoomLevel,inkAnnotationFromCurrentProps:e.inkAnnotation}}class Fr extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"state",jr(this.props)),(0,y.A)(this,"lastEndDrawingTime",Date.now()),(0,y.A)(this,"_transformClientToPage",(e=>e.apply(this.props.clientToPageTransformation))),(0,y.A)(this,"_onDrawStart",(e=>{const t=e.pageIndex,n={annotations:(0,a.B8)([e]),reason:ee.x.DRAW_START};this.props.eventEmitter.emit("annotations.willChange",n),null===t?e=e.set("pageIndex",this.props.pageIndex):t!==this.props.pageIndex?(e=e.set("pageIndex",this.props.pageIndex),this.props.dispatch((0,lt.EH)(e,this.props.pageIndex))):(0,Ye.Gi)(e,this.props.pageSize,this.lastEndDrawingTime)||(e=(e=e.update("lines",(e=>(0,a.B8)([e.last()])))).set("boundingBox",(0,Ye.AJ)(e)),this.props.dispatch((0,lt.EH)(e,this.props.pageIndex))),this.setState({currentInkAnnotation:e})})),(0,y.A)(this,"_onDraw",(e=>{this.setState({currentInkAnnotation:e})})),(0,y.A)(this,"_onDrawEnd",(e=>{const t={annotations:(0,a.B8)([e]),reason:ee.x.DRAW_END};this.props.eventEmitter.emit("annotations.willChange",t),this.lastEndDrawingTime=Date.now(),this.setState({currentInkAnnotation:e},(()=>{this.state.currentInkAnnotation.lines.size&&this.props.dispatch((0,lt.g_)(this.state.currentInkAnnotation))}))}))}static getDerivedStateFromProps(e,t){return(0,a.is)(t.inkAnnotationFromCurrentProps,e.inkAnnotation)||(0,a.is)(t.currentInkAnnotation,e.inkAnnotation)&&e.viewportState.zoomLevel===t.zoomLevel?null:jr(e)}componentDidMount(){this.props.dispatch((0,Dt.y7)())}componentWillUnmount(){this.props.dispatch((0,Dt.JN)())}render(){const e=this.state.currentInkAnnotation,{pageSize:t}=this.props,{INK_EPSILON_RANGE_OPTIMIZATION:n}=Xe.JY;return(0,oe.jsx)(Or,{scrollElement:this.props.scrollElement,annotation:e,canvasSize:t,onDrawStart:this._onDrawStart,onDrawEnd:this._onDrawEnd,onDraw:this._onDraw,transformPoint:this._transformClientToPage,distanceBetweenPoints:n/(this.props.viewportState.zoomLevel*(0,Nr.I)()),cursor:this.state.cursor,zoomLevel:this.props.viewportState.zoomLevel,interactionMode:this.props.interactionMode,canScrollWhileDrawing:this.props.canScrollWhileDrawing})}}const Br=(0,s.Ng)(((e,t)=>{let{pageIndex:n}=t;return{viewportState:e.viewportState,clientToPageTransformation:(0,Z.Jn)(e,n),eventEmitter:e.eventEmitter,interactionMode:e.interactionMode,canScrollWhileDrawing:e.canScrollWhileDrawing}}))(Fr);var Lr=n(64959);const Vr=100;function Kr(e,t){const n=Math.floor(e.x/Vr);return Math.floor(e.y/Vr)*t+n}function Hr(e,t,n,r){const{lineWidth:o,id:i}=e,a=Math.ceil(r.width/Vr),s=t/2;return e.lines.forEach(((e,t)=>{e.forEach(((e,r)=>{if(null==e)return;const l=Math.floor(e.x/Vr),c=Math.floor(e.y/Vr),u={point:e,annotationId:i,lineIndex:t,pointIndex:r,strokeRadius:o/2},d=Math.ceil((s+u.strokeRadius)/Vr);for(let t=c-d;t<=c+d;t++)for(let r=l-d;r<=l+d;r++)if(r>-1&&t>-1){if(new Lr.A({x:r<l?(r+1)*Vr:r===l?e.x:r*Vr,y:t<c?(t+1)*Vr:t===c?e.y:t*Vr}).distance(e)<s+u.strokeRadius){const e=t*a+r;n[e]?n[e].push(u):n[e]=[u]}}}))})),n}function $r(e,t,n,r){return!(e.x+r<t.x-n||e.x-r>t.x+n||e.y+r<t.y-n||e.y-r>t.y+n)&&e.distance(t)<n+r}const Ur=(0,s.Ng)(((e,t)=>{let{pageIndex:n}=t;return{inkEraserCursorWidth:e.annotationPresets.get("ink")?.inkEraserWidth??Xe.JY.DEFAULT_INK_ERASER_CURSOR_WIDTH,zoomLevel:e.viewportState.zoomLevel,clientToPageTransformation:(0,Z.Jn)(e,n),scrollElement:e.scrollElement,interactionMode:e.interactionMode}}))((function(e){const{canvasSize:t=new P.or({width:300,height:200}),inkEraserCursorWidth:n,zoomLevel:r,dispatch:o,inkAnnotations:i,clientToPageTransformation:s}=e,l=u.useMemo((function(){return(0,Ye.Fe)(n/2*r)}),[n,r]),[c,d]=u.useState({localAnnotations:i,lastErasedPointsPaths:[]}),p=u.useRef(null),h=u.useCallback((e=>e.apply(s)),[s]);u.useEffect((()=>{p.current=i.reduce(((e,r)=>Hr(r,n,e,t)),[]),d({localAnnotations:i,lastErasedPointsPaths:[]})}),[i,n,t]);const f=u.useCallback((e=>{d(function(e,t,n,r,o,i){const a=Math.ceil(i.width/Vr),s={};return t.forEach((e=>{const t=Kr(e,a);r[t]&&r[t].forEach((t=>{t&&t.point&&$r(t.point,e,n/2,t.strokeRadius)&&(t.point=null,o.push([t.annotationId,t.lineIndex,t.pointIndex]),s[t.annotationId]=!0)}))})),{localAnnotations:e.map((e=>s[e.id]?e.withMutations((t=>{o.filter((t=>t[0]===e.id)).forEach((e=>{t.setIn(["lines",e[1],e[2]],null)}))})):e)),lastErasedPointsPaths:o}}(c.localAnnotations,Array.isArray(e)?e:[e],n,p.current,[],t))}),[c.localAnnotations,n,t]),m=u.useCallback((()=>{const e=function(e,t){return e.map(((e,n)=>e===t.get(n)?e:(e=e.withMutations((e=>{e.update("lines",(e=>e.reduce(((e,t)=>e.concat(t.reduce(((e,t)=>null==t?e.push((0,a.B8)()):e.update(-1,(e=>e.push(t)))),(0,a.B8)([(0,a.B8)()])).filter((e=>e.size>0)))),(0,a.B8)()).filter((e=>e.size>0))))}))).set("boundingBox",(0,Ye.AJ)(e))))}(c.localAnnotations,i);o((0,lt.nG)(e.filter((e=>e.lines&&e.lines.size>0)),e.filter((e=>!e.lines||0===e.lines.size)).map((e=>e.id))))}),[c.localAnnotations,o,i]);u.useEffect((()=>(o((0,Dt.y7)()),()=>{o((0,Dt.JN)())})),[o]);const g=u.useCallback(((e,t,n)=>{if(!n)return null;const{lastErasedPointsPaths:r,localAnnotations:o}=c;if(0===r.length)return n;const i=o?.find((t=>t.id===e))?.lines.get(t);return i&&i.size===n.length?r.reduce(((n,r)=>{if(function(e,t,n,r){return e[0]===n&&e[1]===r&&"M 0,0"!==t[e[2]]}(r,n,e,t)){n[r[2]]="M 0,0";const e=n[r[2]+1],t=i.get(r[2]+1);if(t&&Wr(e)){const e=n[r[2]+2];n[r[2]+1]=`${Wr(e)?"M":"L"} ${t.x},${t.y}`}const o=n[r[2]-1],a=i.get(r[2]-1),s=a?`L ${a.x},${a.y}`:"";if(Wr(o)){const e=n[r[2]-2];a&&qr(e)&&(n[r[2]-1]=s)}else a&&qr(o)&&(n[r[2]-1]=s);return n}return n}),n):null}),[c]);return(0,oe.jsxs)("div",{className:Qe().canvas,style:{cursor:l},children:[c.localAnnotations.map((e=>(0,oe.jsx)(tt,{dispatch:o,annotation:e,isSelectable:!1,isDisabled:!0,zoomLevel:r,pathDataFromFragments:g},e.id))),(0,oe.jsx)(At.A,{size:t,onDrawStart:f,onDrawCoalesced:f,onDrawEnd:m,transformPoint:h,interactionMode:e.interactionMode,scrollElement:e.scrollElement})]})}));function Wr(e){return"string"==typeof e&&e.startsWith("C")}function qr(e){return"string"==typeof e&&e.startsWith("M")}const Gr=(0,s.Ng)(((e,t)=>{let{pageIndex:n}=t;return{inkEraserCursorWidth:e.annotationPresets.get("ink")?.inkEraserWidth??Xe.JY.DEFAULT_INK_ERASER_CURSOR_WIDTH,zoomLevel:e.viewportState.zoomLevel,clientToPageTransformation:(0,Z.Jn)(e,n),scrollElement:e.scrollElement,interactionMode:e.interactionMode}}))((function(e){const{canvasSize:t=new P.or({width:300,height:200}),inkEraserCursorWidth:n,zoomLevel:r,dispatch:o,inkAnnotations:i,clientToPageTransformation:s}=e,l=u.useMemo((function(){return(0,Ye.Fe)(n/2*r)}),[n,r]),[c,d]=u.useState({localAnnotations:i,lastErasedLinesPaths:[]}),p=u.useRef(null),h=u.useCallback((e=>e.apply(s)),[s]);u.useEffect((()=>{p.current=i.reduce(((e,r)=>Hr(r,n,e,t)),[]),d({localAnnotations:i,lastErasedLinesPaths:[]})}),[i,n,t]);const f=u.useCallback((e=>{d(function(e,t,n,r,o,i){const s=Math.ceil(i.width/Vr),l={};return t.forEach((e=>{const t=Kr(e,s);r[t]&&r[t].forEach((t=>{t&&t.point&&$r(t.point,e,n/2,t.strokeRadius)&&(t.point=null,o.push([t.annotationId,t.lineIndex]),l[t.annotationId]=!0)}))})),{localAnnotations:e.map((e=>l[e.id]?e.withMutations((t=>{o.filter((t=>t[0]===e.id)).forEach((e=>{t.setIn(["lines",e[1]],(0,a.B8)([]))}))})):e)),lastErasedLinesPaths:o}}(c.localAnnotations,Array.isArray(e)?e:[e],n,p.current,[],t))}),[c.localAnnotations,n,t]),m=u.useCallback((()=>{const e=function(e,t){return e.map(((e,n)=>e===t.get(n)?e:(e=e.update("lines",(e=>e.filter(Boolean).filter((e=>e.size>0))))).set("boundingBox",(0,Ye.AJ)(e))))}(c.localAnnotations,i);o((0,lt.nG)(e.filter((e=>e.lines?.size>0)),e.filter((e=>!e.lines||0===e.lines.size)).map((e=>e.id))))}),[c.localAnnotations,o,i]);return u.useEffect((()=>(o((0,Dt.y7)()),()=>{o((0,Dt.JN)())})),[o]),(0,oe.jsxs)("div",{className:Qe().canvas,style:{cursor:l},children:[c.localAnnotations.map((e=>(0,oe.jsx)(tt,{dispatch:o,annotation:e,isSelectable:!1,isDisabled:!0,zoomLevel:r},e.id))),(0,oe.jsx)(At.A,{size:t,onDrawStart:f,onDrawCoalesced:f,onDrawEnd:m,transformPoint:h,interactionMode:e.interactionMode,scrollElement:e.scrollElement})]})}));class Zr extends u.Component{constructor(e){super(e),(0,y.A)(this,"_handledBlur",!1),(0,y.A)(this,"editor",u.createRef()),(0,y.A)(this,"shouldComponentUpdate",$.EF),(0,y.A)(this,"clearText",(()=>{const{current:e}=this.editor;if(!e)return"";e.innerText="",setTimeout((()=>{this.props.valueDidUpdate&&this.props.valueDidUpdate()}),0),this.focus()})),(0,y.A)(this,"focus",(()=>{const{current:e}=this.editor;e&&(e.focus(),setTimeout((()=>{const{current:e}=this.editor;e&&(this._handledBlur=!0,e.blur(),e.focus(),"webkit"===b.Hi&&this.setInitialSelection())}),0),this.setInitialSelection())})),(0,y.A)(this,"_createRangeAndSelect",(e=>{const{current:t}=this.editor;if(!t)return;const{ownerDocument:n,childNodes:r}=t,o=r[r.length-1];if(!o)return;if(void 0===n.createRange)return;const i=n.createRange();let a;a="gecko"===b.Hi?o.length-1:o.length,i.setStart(o,e?0:a),i.setEnd(o,a),this.setSelection(i)})),(0,y.A)(this,"_preventDeselect",(e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()})),(0,y.A)(this,"_handleKeyDown",(e=>{if(e.keyCode!==Bn.XS){if(e.keyCode===Bn.E1&&e.shiftKey)return this.props.onStopEditing(),void e.preventDefault();if(this.getPlainText().length>=this.props.maxLength)e.preventDefault();else if("blink"===b.Hi&&e.keyCode===Bn.E1){const{current:t}=this.editor;if(!t)return;const{defaultView:n}=t.ownerDocument;(0,l.V1)(n,"defaultView is null");const r=n.getSelection();if(r?.anchorNode&&"#text"===r?.anchorNode.nodeName){const t=Yr(r);if(r.anchorNode.parentNode?.normalize(),r.anchorNode&&"#text"===r.anchorNode.nodeName){const n=r.anchorOffset;"Range"===r.type&&r.deleteFromDocument();const o=r.anchorNode.nodeValue;(0,l.V1)(o,"currentText is null");const i=t&&o.replace(/\n/,"").length>0;r.anchorNode.nodeValue=o.substr(0,r.anchorOffset)+"\n"+(i?"\n":"")+o.substr(r.anchorOffset),r.collapse(r.anchorNode,n+1),e.preventDefault(),setTimeout((()=>{this.props.valueDidUpdate&&this.props.valueDidUpdate()}),0)}}}else if("gecko"===b.Hi&&e.keyCode===Bn.E1){const{current:t}=this.editor;if(!t)return;const{defaultView:n}=t.ownerDocument;(0,l.V1)(n,"defaultView is null");const r=n.getSelection();if(r?.anchorNode&&"#text"===r?.anchorNode.nodeName&&(function(e){let{anchorNode:t,anchorOffset:n}=e;return null!=t&&("#text"===t.nodeName&&(0===n||t.nodeValue.length>n&&"\n"===t.nodeValue.charAt(n-1))||"DIV"===t.nodeName&&t.hasChildNodes()&&t.childNodes.length>0&&"BR"===t.childNodes[0].nodeName)}(r)||Yr(r))){const t=Yr(r);if(r.anchorNode.parentNode?.normalize(),r.anchorNode&&"#text"===r.anchorNode.nodeName){const n=r.anchorOffset;"Range"===r.type&&r.deleteFromDocument();const o=r.anchorNode.nodeValue;(0,l.V1)(o,"currentText is null");const i=t&&o.replace(/\n/,"").length>0;r.anchorNode.nodeValue=o.substr(0,r.anchorOffset)+"\n"+(i?"\n":"")+o.substr(r.anchorOffset),r.collapse(r.anchorNode,n+1+(i?1:0)),e.preventDefault(),setTimeout((()=>{this.props.valueDidUpdate&&this.props.valueDidUpdate()}),0)}}}}else this.props.onEscape(e)})),(0,y.A)(this,"_handleInput",(()=>{const{current:e}=this.editor;if(e){if("gecko"===b.Hi){const{innerText:t}=e,n=t.charAt(t.length-1);if(" "===n){const t=e.childNodes[e.childNodes.length-1];t.nodeValue===n&&(t.nodeValue="\n")}}this.props.valueDidUpdate&&this.props.valueDidUpdate()}})),(0,y.A)(this,"_handlePaste",(e=>{if(!this.editor.current)return;const t=this.editor.current.ownerDocument;e.preventDefault();const n=e.clipboardData?.getData("text/plain");this.getPlainText().length+n.length>=this.props.maxLength||t.execCommand("insertText",!1,Ut.A.sanitize(e.clipboardData?.getData("text/plain")))})),(0,y.A)(this,"_handleDrop",(e=>{if(!this.editor.current)return;const t=this.editor.current.ownerDocument;if(e.preventDefault(),e.dataTransfer){const n=e.dataTransfer.getData("text/plain");if(this.getPlainText.length+n.length>=this.props.maxLength)return;t.execCommand("insertText",!1,n),this.props.valueDidUpdate&&this.props.valueDidUpdate()}})),(0,y.A)(this,"_handleScroll",(e=>{const{current:t}=this.editor;t&&(t.scrollTop=0,t.scrollLeft=0,e.stopPropagation(),e.preventDefault())})),(0,y.A)(this,"_handlePointerDown",(e=>{this.editor.current&&((0,Xn.b4)({event:e,element:this.editor.current})||this._handleBlur())})),(0,y.A)(this,"_handleBlur",(()=>{this._handledBlur||(this._handledBlur=!0,this.props.onBlur())})),(0,y.A)(this,"_handleFocus",(()=>{this._handledBlur=!1,this.props.onFocus&&this.props.onFocus()})),this.innerText=`${this.props.defaultValue}${"gecko"===b.Hi?"\n":""}`}componentDidMount(){this.editor.current&&(this.props.autoFocus||this.props.autoSelect)&&this.focus()}getElement(){return this.editor.current}getEditorBoundingClientRect(){const{current:e}=this.editor;return(0,l.V1)(e),P.rw.fromClientRect(e.getBoundingClientRect())}getPlainText(){const{current:e}=this.editor;return e?void 0===e.innerText?"":"blink"===b.Hi?function(e){let t=e.replace(/<div><br><\/div>/g,"\n");return t=t.replace(/<div>(.*?)<\/div>/g,((e,t)=>""===t.trim()?"\n":`\n${t}`)),t=t.replace(/<br\s*\/?>/g,"\n"),t=t.replace(/<[^>]*>/g,""),t=(new DOMParser).parseFromString(t,"text/html").documentElement.textContent||"",t.replace(/\s+$/,"")}(e.innerHTML):e.innerText.replace(/\n$/,""):""}setSelection(e){const{current:t}=this.editor;if(!t)return;const n=b.nr?t.getRootNode().getSelection?.():t.ownerDocument.getSelection();n?.removeAllRanges(),n?.addRange(e)}blur(){this.editor.current&&this.editor.current.blur()}setInitialSelection(){if(this.props.autoSelect)return void this.autoSelectText();const{lastMousePoint:e}=this.props;let t,n=!1;if(e){if(!this.editor.current)return;const{ownerDocument:r}=this.editor.current;t=(0,l.pQ)(e,r),n=!!t&&(t.commonAncestorContainer===this.editor.current||t.commonAncestorContainer.parentElement===this.editor.current)}t&&n?this.setSelection(t):this.moveFocusToEnd()}moveFocusToEnd(){this._createRangeAndSelect(!1)}autoSelectText(){this._createRangeAndSelect(!0)}render(){return(0,oe.jsxs)(u.Fragment,{children:[(0,oe.jsx)("div",{style:this.props.style,className:Zt().editor,onInput:this._handleInput,onBlur:this._handleBlur,onFocus:this._handleFocus,onMouseUp:this._preventDeselect,onPointerUp:this._preventDeselect,onKeyDown:this._handleKeyDown,onKeyUp:this._preventDeselect,onTouchStart:this._preventDeselect,onTouchEnd:this._preventDeselect,onPaste:this._handlePaste,onDrop:this._handleDrop,onScroll:this._handleScroll,ref:this.editor,contentEditable:!0,suppressContentEditableWarning:!0,spellCheck:"false","data-testid":"content-editable-component",children:Ut.A.sanitize(this.innerText)}),(0,oe.jsx)(Ue.A,{onRootPointerDownCapture:this._handlePointerDown})]})}}function Yr(e){return null!=e.anchorNode&&null==e.anchorNode.nextSibling&&("#text"===e.anchorNode.nodeName&&e.anchorOffset===e.anchorNode.nodeValue.length||"DIV"===e.anchorNode.nodeName&&e.anchorNode.hasChildNodes()&&e.anchorNode.childNodes.length>0&&"BR"===e.anchorNode.childNodes[0].nodeName)}(0,y.A)(Zr,"defaultProps",{autoFocus:!0,autoSelect:!1});var Xr=n(81083),Jr=n(4255),Qr=n.n(Jr),eo=n(81243);function to(e){let{x:t,y:n,direction:r,startResizing:o,endResizing:i,onFitToSide:a,viewportSize:s,title:l,cursor:c}=e;const u=(0,eo.vd)(Xr.E[r]),d=p()({[Qr().resizeAnchor]:!0,[Qr().nwseCursor]:r===Xr.E.TOP_LEFT||r===Xr.E.BOTTOM_RIGHT,[Qr().neswCursor]:r===Xr.E.TOP_RIGHT||r===Xr.E.BOTTOM_LEFT,[Qr().ewCursor]:r===Xr.E.LEFT||r===Xr.E.RIGHT,[Qr().nsCursor]:r===Xr.E.TOP||r===Xr.E.BOTTOM,"PSPDFKit-Resize-Anchor":!0,[`PSPDFKit-Resize-Anchor-${u}`]:!0}),{RESIZE_ANCHOR_RADIUS:h}=Xe.JY,f=h(s),m=c?{cursor:c}:void 0;return(0,oe.jsx)(Ue.A,{onPointerDown:o,onPointerUp:i,children:(0,oe.jsx)("circle",{cx:t,cy:n,r:f-_e.vq/2,strokeWidth:_e.vq,className:d,onDoubleClick:a,style:m,children:l?(0,oe.jsx)("title",{children:l}):null})})}function no(e){let{x:t,y:n,startModifying:r,endModifying:o,pointIndex:i,viewportSize:a,title:s,cursor:l}=e;const c=p()({[Qr().resizeAnchor]:!0}),{RESIZE_ANCHOR_RADIUS:u}=Xe.JY,d=u(a),h=l?{cursor:l}:void 0;return(0,oe.jsx)(Ue.A,{onPointerDown:r,onPointerUp:o,children:(0,oe.jsx)("circle",{cx:t,cy:n,r:d-_e.vq/2,strokeWidth:_e.vq,className:c,id:`pointIndex${i}`,style:h,title:s})})}function ro(e){let{width:t,startRotating:n,endRotating:r,viewportSize:o,rotationHandleLength:i,rotation:a=0,title:s}=e;const{RESIZE_ANCHOR_RADIUS:l,SELECTION_STROKE_WIDTH:c}=Xe.JY,u=p()({"PSPDFKit-Annotations-Rotation-Anchor":!0,[Qr().rotateAnchor]:!0}),d=l(o);return(0,oe.jsxs)("svg",{"data-testid":"rotation-handle-ui",className:p()(Qr().rotationHandleSvg,"PSPDFKit-Annotations-Rotation-Handle"),children:[(0,oe.jsx)("line",{className:p()(Qr().rotationLine,"PSPDFKit-Annotations-Rotation-Line"),x1:t/2,y1:0,x2:t/2,y2:i,style:{strokeWidth:c}}),(0,oe.jsx)(Ue.A,{onPointerDown:n,onPointerUp:r,children:(0,oe.jsx)("circle",{cx:t/2,cy:i,r:d-_e.vq/2,strokeWidth:_e.vq,className:u,style:{cursor:(0,Re._1)(a,"grab")},children:s?(0,oe.jsx)("title",{children:s}):null})})]})}var oo=n(21055);function io(e){const{formatMessage:t}=(0,ve.tz)(),n=(0,s.d4)((e=>e.selectedAnnotationIds)),r=(0,s.d4)((e=>e.isMultiSelectionEnabled));function o(n,r,o){const i=ao(o),a=ao(o+e.pagesRotation),s=`${t(xe.A.resize)}, ${so[a].split(",").map((e=>t(xe.A[`resizeHandle${e.trim()}`]))).join(", ")}`;return(0,oe.jsx)(to,{x:n,y:r,direction:a,title:s,startResizing:t=>{e.startResizing&&e.startResizing(t,i)},endResizing:lo,onFitToSide:()=>{e.onFitToSide&&e.onFitToSide(a)},viewportSize:e.viewportSize,cursor:e.cursor},o)}const{zoomLevel:i,annotation:a,annotationBoundingBox:l,viewportSize:c,customZIndex:d,cursor:h}=e,{RESIZE_ANCHOR_RADIUS:f,SELECTION_STROKE_WIDTH:m}=Xe.JY;let g=(0,oo.m)({annotation:a,zoomScaledBoundingBox:l.scale(i),viewportSize:c});const{containerLeftOffset:v,containerTopOffset:y}=(0,w.Wm)(e.rootElement,e.containerRect);(v||y)&&(g=g.setIn(["left"],g.left+v).setIn(["top"],g.top+y));const{SELECTION_OUTLINE_PADDING:x}=Xe.JY,S=x(c),_=f(c),C=a?(0,eo.M$)(a)+2*(0,oo.s)(c):0,E=Math.min(2*_,C),k=Math.max(g.width,E),z=Math.max(g.height,E),A=Math.max(_+m/2,m),D=2*A,T=Math.max(_,m/2),I=(0,B.kO)(a,l,i,c,A),M=p()({[Qr().selectionRect]:!0,[Qr().isDragging]:e.isDragging,"PSPDFKit-Selection-Outline-Rect":!0}),N=!a||(0,B.Kb)(a)?{strokeWidth:m,...h?{cursor:h}:null}:{stroke:"transparent",cursor:(0,B.Zr)(a,{cursor:h,isSelected:!0})},O=p()({[Qr().draggingRect]:!0,[Qr().isDragging]:e.isDragging,"PSPDFKit-Selection-Outline-Border":!0}),R=a?a.rotation:e.annotationRotation,j=35*(a?(0,B.oG)(a,i):i),F=u.useRef(g),L=a?(0,B.Zr)(a,{cursor:h,isSelected:!0}):void 0,V={left:g.left-A,top:g.top-A,width:k+D,height:z+D,overflow:"visible",...a||"number"!=typeof R||0===R?null:{transformOrigin:`${S+F.current.width/2}px ${S+F.current.height/2}px`},transform:"number"!=typeof R||0===R||a instanceof P.sb||a instanceof P.vU?void 0:`rotate(${-R}deg)`,zIndex:d??0,cursor:L},K=i*(f(c)-_e.vq/2),H={left:V.left+V.width/2-K,top:V.top+V.height,width:2*K,height:j+K,overflow:"visible",transformOrigin:`center -${V.height/2}px`,transform:"number"==typeof R&&0!==R?`rotate(${-R}deg)`:void 0};return(0,oe.jsxs)(u.Fragment,{children:[(0,oe.jsx)("svg",{style:V,className:Qr().svg,focusable:!1,children:a instanceof P.MU?(0,oe.jsx)("line",{className:M,x1:I[0].x,y1:I[0].y,x2:I[1].x,y2:I[1].y,style:{...N,strokeWidth:b.LZ?Math.max(_e.Bd,a.strokeWidth)*i:Math.max(_e.uo,a.strokeWidth)*i,pointerEvents:"all"}}):(0,oe.jsx)("rect",{className:M,style:N,x:A-m/2,y:A-m/2,width:k+m,height:z+m})}),e.children||null,(0,oe.jsxs)("svg",{style:V,className:Qr().svg,focusable:!1,children:[(0,oe.jsx)(Ue.A,{onPointerDown:function(t){const o=r&&n.size>1&&b.LZ,i=e.deselectAnnotation&&(t.shiftKey||o);e.isEditableCP&&2!==t.buttons&&(i&&e.deselectAnnotation?e.deselectAnnotation(t):(t.stopPropagation(),null!=e.startDragging&&e.startDragging(t)))},children:a instanceof P.MU?(0,oe.jsx)("line",{className:O,x1:I[0].x,y1:I[0].y,x2:I[1].x,y2:I[1].y,style:{...N,strokeWidth:b.LZ?Math.max(_e.Bd,a.strokeWidth)*i:Math.max(_e.uo,a.strokeWidth)*i,pointerEvents:"all"}}):(0,oe.jsx)("rect",{x:A-m/2,y:A-m/2,width:k+m,height:z+m,className:O,style:N})}),e.startResizing&&e.isResizable?[o(V.width/2,T,0),o(V.width-T,T,45),o(V.width-T,V.height/2,90),o(V.width-T,V.height-T,135),o(V.width/2,V.height-T,180),o(T,V.height-T,225),o(T,V.height/2,270),o(T,T,315)]:null,e.startModifying&&e.isModifiable?I.map(((t,n)=>function(t,n,r,o){return(0,oe.jsx)(no,{x:t,y:n,pointIndex:r,title:o,startModifying:t=>{e.startModifying&&e.startModifying(t,r)},endModifying:lo,viewportSize:e.viewportSize,cursor:e.cursor},`modifyAnchor${r}`)}(t.x,t.y,n,"Modify point"))):null]}),e.startRotating&&e.isRotatable?(0,oe.jsx)("svg",{style:H,className:Qr().svg,focusable:!1,children:(0,oe.jsx)(ro,{width:H.width,startRotating:t=>e.startRotating?.(t),endRotating:lo,viewportSize:e.viewportSize,rotationHandleLength:j,rotation:R,title:t(xe.A.rotation)},"rotateAnchor")}):null]})}function ao(e){switch((0,l.V1)(e%45==0,"Only multiples of 45° allowed."),e%360){case 0:return Xr.E.TOP;case 45:return Xr.E.TOP_RIGHT;case 90:return Xr.E.RIGHT;case 135:return Xr.E.BOTTOM_RIGHT;case 180:return Xr.E.BOTTOM;case 225:return Xr.E.BOTTOM_LEFT;case 270:return Xr.E.LEFT;case 315:return Xr.E.TOP_LEFT;default:throw new Error("Unsupported resize degrees")}}const so={[Xr.E.TOP]:"Top",[Xr.E.TOP_RIGHT]:"Top, Right",[Xr.E.RIGHT]:"Right",[Xr.E.BOTTOM_RIGHT]:"Bottom, Right",[Xr.E.BOTTOM]:"Bottom",[Xr.E.BOTTOM_LEFT]:"Bottom, Left",[Xr.E.LEFT]:"Left",[Xr.E.TOP_LEFT]:"Top, Left"};function lo(e){e.stopPropagation()}var co=n(23237);class uo extends u.PureComponent{constructor(e){super(e),(0,y.A)(this,"editorRef",u.createRef()),(0,y.A)(this,"richTextEditorRef",u.createRef()),(0,y.A)(this,"updateSelectionBoundingBox",(()=>{const e=this._getNormalizedEditorBoundingBox(),t=Xe.JY.TEXT_ANNOTATION_AUTOFIT_BOUNDING_BOX_ON_EDIT?e:this.state.selectionBoundingBox.set("left",e.left).set("top",e.top),n=this.props.annotation.set("boundingBox",t),r=(0,B.oG)(n,this.props.viewportState.zoomLevel);P.rw.areRectsCloserThan((0,Re.rK)(n).boundingBox,(0,Re.rK)(n.set("boundingBox",this.state.selectionBoundingBox)).boundingBox,r)||(this.setState({selectionBoundingBox:n.boundingBox}),this.props.onChange?.(n.boundingBox,this.getText()))})),(0,y.A)(this,"shouldCleanupAnnotation",(()=>!((0,B.I2)(this.props.annotation)||!(0,B.or)(this.props.annotation))&&("xhtml"===this.props.annotation.text.format?""===(0,Xt.lb)(this.state.richTextContent):""===this.getText().value))),(0,y.A)(this,"handleEscape",(()=>{this.props.dispatch((0,we.J9)()),this.props.onEditingDone()})),(0,y.A)(this,"handleBlur",(e=>{e?.isNativeBlurEvent&&this._triggerOnEditingDone(void 0,e?.isTextToolbarClicked,this.shouldCleanupAnnotation())})),(0,y.A)(this,"onStopEditing",(()=>{this._triggerOnEditingDone(!0)})),(0,y.A)(this,"onRichEditorInit",(e=>{this.props.dispatch((0,Dt.Vu)(e))}));const{annotation:t}=e;this.lastSavedAnnotation=t,this.initialOutlineBoundingBox=this.getInitialBoundingBox(t);let n=!1,r=(0,qt.Wi)(e.annotation.text?.value)||"";if(e.enableRichText(e.annotation)){if(n=!0,"plain"===e.annotation.text?.format){const t=e.annotation.fontColor?.toHex()||"",n=o.Dl.prepareHTML(e.annotation.text.value);r=o.Dl.setStyleOrToggleFormat(o.Dl.serialize(o.Dl.deserialize(n)),"fontColor",t)}}else"xhtml"===e.annotation.text?.format&&(r=o.Dl.getText(e.annotation.text?.value||""));this.state={selectionBoundingBox:this.initialOutlineBoundingBox,annotation:t,richTextContent:e.annotation.text?.value,useRichText:n,text:r}}getInitialBoundingBox(e){let t=e.boundingBox;return(0,B.F)(t)||(t=t.set("width",Xe.JY.MIN_TEXT_ANNOTATION_SIZE).set("height",e.fontSize)),t}componentDidUpdate(e){this.updateSelectionBoundingBox(),e&&!e.annotation.equals(this.props.annotation)&&(this.initialOutlineBoundingBox=this.getInitialBoundingBox(this.props.annotation),this.setState((t=>({...t,annotation:this.props.annotation,...t.useRichText&&this.props.annotation.text.value!==t.richTextContent&&this.props.annotation.text.value!==e.annotation.text.value?{richTextContent:this.props.annotation.text.value}:null}))))}_getNormalizedEditorBoundingBox(){const{current:e}=this.editorRef,{current:t}=this.richTextEditorRef;return t?this.props.transformClientToPage(P.rw.fromClientRect(ho(t))):e?this.props.transformClientToPage(P.rw.fromClientRect(ho(e.getElement()))):new P.rw}getText(){const{current:e}=this.editorRef;return e||this.state.useRichText?e?{value:e.getPlainText(),format:"plain"}:{value:this.state.richTextContent,format:"xhtml"}:{value:"",format:"plain"}}_triggerOnEditingDone(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{current:r}=this.editorRef,o=this.getText(),{annotation:i,onChange:a}=this.props,s=(0,B.oG)(i,this.props.viewportState.zoomLevel);if((0,B.I2)(i))return void a?.(this.state.selectionBoundingBox,o);if(!r&&!this.state.useRichText)return;let l=this.props.annotation.text?.value!==o.value?this.props.annotation.set("text",o).set("boundingBox",this.state.selectionBoundingBox):this.props.annotation;if("xhtml"===o.format&&this.props.annotation.fontColor?l=l.set("fontColor",null):"plain"!==o.format||this.props.annotation.fontColor||(l=l.set("fontColor",P.Q1.BLACK)),Xe.JY.TEXT_ANNOTATION_AUTOFIT_BOUNDING_BOX_ON_EDIT){const e=this._getNormalizedEditorBoundingBox(),t=l.boundingBox;!e.getSize().equals(t.getSize())&&(l=l.set("boundingBox",e)),(0,B.yQ)(l,this.props.viewportState.zoomLevel)&&(l=l.setIn(["boundingBox","width"],l.boundingBox.width*this.props.viewportState.zoomLevel).setIn(["boundingBox","height"],l.boundingBox.height*this.props.viewportState.zoomLevel)),l=(0,qt.fk)(l,s)}if(!this.lastSavedAnnotation.equals(l)){const{containerLeftOffset:r,containerTopOffset:o}=(0,w.Wm)(this.props.rootElement,this.props.containerRect),i=l.text.value!==this.lastSavedAnnotation.text.value;(r||o)&&((0,B.or)(l)||i)&&(l=l.setIn(["boundingBox","left"],l.boundingBox.left+r/s).setIn(["boundingBox","top"],l.boundingBox.top+o/s)),this.lastSavedAnnotation=l,this.props.onEditingDone((0,eo.sS)(l,this.props.annotation.boundingBox),e,t,n)}}componentWillUnmount(){this.shouldCleanupAnnotation()&&(this.props.dispatch((0,lt.Ud)((0,a.NZ)([this.props.annotation.id]))),this.props.dispatch((0,co.w7)(this.props.annotation.id)))}render(){const e=this.props.annotation,{zoomLevel:t}=this.props.viewportState,n=e.boundingBox,r=this.props.pageSize.width,i=this.props.pageSize.height,a=(0,B.oG)(e,t),s=(0,qt.Nv)(e.set("rotation",0),a,!1);let l,c;const d=Math.floor(n.left*t),p=Math.floor(n.top*t);switch(e.rotation){case 0:l=r*t-d,c=i*t-p;break;case 90:l=n.bottom*t,c=r*t-d;break;case 180:l=n.right*t,c=n.bottom*t;break;case 270:l=i*t-p,c=n.right*t}const h=(0,B.I2)(e),f={...!h&&{left:d,top:p},minWidth:Xe.JY.MIN_TEXT_ANNOTATION_SIZE*a,minHeight:e.fontSize*a,maxWidth:l,maxHeight:c},m=Xe.JY.TEXT_ANNOTATION_AUTOFIT_BOUNDING_BOX_ON_EDIT?f:{...s,...f};delete s.width,delete s.height,delete s.overflow;const g=Math.ceil(e.boundingBox.width*a),v=Math.ceil(e.boundingBox.height*a);switch(m.transformOrigin="0 0",e.rotation){case 90:m.transform=`translate(0, ${v}px) rotate(${-e.rotation}deg)`;break;case 180:m.transform=`translate(${g}px, ${v}px) rotate(${-e.rotation}deg)`;break;case 270:m.transform=`translate(${g}px, 0) rotate(${-e.rotation}deg)`;break;default:(0,Re.Lz)(e)&&(m.transformOrigin=`${t*this.initialOutlineBoundingBox.width/2}px ${t*this.initialOutlineBoundingBox.height/2}px`,m.transform=`rotate(${String(-e.rotation)}deg)`)}return this.state.useRichText||"xhtml"!==this.props.annotation.text?.format||(m.color=P.Q1.BLACK.toHex()),(0,oe.jsxs)(u.Fragment,{children:[!h&&(0,oe.jsx)(io,{zoomLevel:t,pagesRotation:this.props.viewportState.pagesRotation,annotationBoundingBox:this.state.selectionBoundingBox,annotationRotation:e.rotation,isResizable:!0,isModifiable:!1,isRotatable:!0,isEditableCP:!0,viewportSize:this.props.viewportState.viewportRect.getSize(),rootElement:this.props.rootElement,containerRect:this.props.containerRect}),(0,oe.jsx)("div",{style:{...s,...!this.state.useRichText&&{wordBreak:h?void 0:s.wordBreak,overflowWrap:h?"break-word":s.overflowWrap}},className:Zt().editorWrapper,children:this.state.useRichText?(0,oe.jsx)(o.so,{text:this.state.text,style:{...m,color:P.Q1.BLACK.toHex()},updateBoundingBox:this.updateSelectionBoundingBox,ref:this.richTextEditorRef,onValueChange:e=>{this.setState((t=>({...t,richTextContent:e})))},onBlurSave:this.handleBlur,onStopEditing:this.onStopEditing,onEscape:this.handleEscape,maxLength:_e.Mp,lastMousePoint:this.props.lastMousePoint,onEditorInit:this.onRichEditorInit,className:!h&&Zt().richEditor,autoFocus:!0,keepSelectedTool:this.props.keepSelectedTool,shadowRoot:this.props.shadowRoot}):(0,oe.jsx)(Zr,{style:{...m,position:h?"static":m.position},valueDidUpdate:this.updateSelectionBoundingBox,onBlur:()=>this.handleBlur({isNativeBlurEvent:!0}),onStopEditing:this.onStopEditing,onEscape:this.handleEscape,ref:this.editorRef,maxLength:_e.Mp,defaultValue:this.state.text,lastMousePoint:this.props.lastMousePoint,autoSelect:this.props.autoSelect})})]})}}(0,y.A)(uo,"defaultProps",{autoSelect:!1});const po=_r(uo);function ho(e){const t=e.cloneNode(!0);t.style.transform="none",t.style.visibility="hidden",t.style.pointerEvents="none",e.parentElement?.append(t);const n=t.getBoundingClientRect();return t.remove(),n}const fo=e=>{let{annotation:t,children:n}=e;const r=(0,s.d4)((e=>e.viewportState.zoomLevel)),o=(0,u.useRef)(null),i=(0,s.wA)(),a=t.boundingBox.scale(r),l=(0,u.useCallback)(((e,n)=>{const a=o.current?.getBoundingClientRect();if(!a)return;const{callout:s}=t,l=(0,Xt.TH)({rect:a,annotation:t,zoomLevel:r,text:n,callout:s});l&&i((0,lt.g_)(t.merge(l)))}),[t,r,i]),c=(0,u.useRef)(t);return c.current=t,(0,u.useEffect)((()=>()=>{("xhtml"===c.current.text.format?(0,Xt.lb)(c.current.text.value):c.current.text.value)||"xhtml"!==c.current.text.format||i((0,lt.eS)(c.current))}),[i]),(0,oe.jsx)("div",{style:{position:"absolute",left:a.left,top:a.top,minHeight:a.height,width:a.width},children:(0,oe.jsx)(Jt,{annotation:t,isEditing:!0,ref:o,children:n(l)})})};class mo extends u.PureComponent{constructor(){var e;super(...arguments),e=this,(0,y.A)(this,"_onEditingDone",(function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=t&&(0,Re.pE)(t),s={annotations:i?(0,a.B8)([i]):(0,a.B8)([]),reason:ee.x.TEXT_EDIT_END};e.props.eventEmitter.emit("annotations.willChange",s),i&&(o||e.props.dispatch((0,lt.g_)(i)),n&&e.props.dispatch((0,we.TT)((0,a.NZ)([e.props.annotation.id]),null)),e.props.keepSelectedTool&&!r&&e.props.dispatch((0,Dt.K3)()))}))}componentDidMount(){const e={annotations:(0,a.B8)([this.props.annotation]),reason:ee.x.TEXT_EDIT_START};this.props.eventEmitter.emit("annotations.willChange",e),this.props.dispatch((0,Dt.y7)())}componentWillUnmount(){this.props.dispatch((0,Dt.JN)())}render(){const{annotation:e,autoSelect:t,dispatch:n,pageSize:r,lastMousePoint:o,pageIndex:i,enableRichText:a}=this.props,s=s=>(0,oe.jsx)(po,{dispatch:n,annotation:(0,Re.rK)(e),lastMousePoint:o,pageSize:r,pageIndex:i,onEditingDone:this._onEditingDone,autoSelect:t,enableRichText:a,onChange:s,keepSelectedTool:this.props.keepSelectedTool,shadowRoot:this.props.shadowRoot,rootElement:this.props.rootElement,containerRect:this.props.containerRect});return(0,B.I2)(e)?(0,oe.jsx)(fo,{annotation:e,children:e=>s(e)}):s()}}(0,y.A)(mo,"defaultProps",{autoSelect:!1});class go extends u.Component{constructor(e){super(e),(0,y.A)(this,"shouldComponentUpdate",$.EF),(0,y.A)(this,"_handlePointerUp",(e=>{if(!e.isPrimary)return;const t=this._getNormalizedMousePosition(e);if(!t)return;const{pagesRotation:n}=this.props.viewportState,r=(0,B.yQ)(this.props.annotation,this.props.zoomLevel)?this.props.annotation.fontSize/this.props.zoomLevel:this.props.annotation.fontSize,o=new P.bR({x:t.x,y:Math.max(t.y-r/2,0)}),i=(0,qt.Fz)(o,n),s=this._fitRectInPage(i,this.props.pageSize);this.setState({bindPointerUpEvent:!1});let l=this.props.annotation.set("pageIndex",this.props.pageIndex).set("boundingBox",s).set("rotation",n);this.props.interactionMode===L.O.CALLOUT&&(l=function(e,t,n){const r=function(e,t){let n="top-right";const{width:r}=t;e.x+100>r&&(n=n.replace("right","left"));e.y-120<0&&(n=n.replace("top","bottom"));return n}(e,t),o=new P.bR({x:e.x,y:e.y}),i=new P.bR({x:r.includes("right")?e.x+vo:e.x-yo,y:r.includes("top")?e.y-vo:e.y+yo}),a=new P.bR({x:r.includes("right")?e.x+bo:e.x-bo,y:r.includes("top")?e.y-wo:e.y+wo}),s=new P.Yy({top:r.includes("top")?0:wo,right:r.includes("right")?0:xo,bottom:r.includes("top")?wo:0,left:r.includes("right")?xo:0}),l=new P.Pq({start:o,knee:i,end:a,innerRectInset:s,cap:"openArrow"}),c=new P.rw({top:r.includes("top")?e.y-100:e.y,left:r.includes("right")?e.x:e.x-85,width:85,height:100});return n.set("callout",l).set("boundingBox",c).set("borderWidth",n.borderWidth||2).set("borderStyle",n.borderStyle||"solid").set("borderColor",n.borderColor||P.Q1.BLACK)}(t,this.props.pageSize,l)),this.props.dispatch((0,lt.iN)((0,a.B8)([l]))),e.stopPropagation()})),this.state={bindPointerUpEvent:!0}}_getNormalizedMousePosition(e){const{target:t}=e;if("DIV"==t.tagName){const{x:t,y:n}=this.props.getRelativePosition(e.clientX,e.clientY);return this.props.transformClientToPage(new P.bR({x:t,y:n}))}}_fitRectInPage(e,t){const{width:n,height:r}=t,{MIN_TEXT_ANNOTATION_SIZE:o}=Xe.JY;return e.top+e.height>r&&(e=e.set("top",r-e.height)),e.left+o>n&&(e=e.set("left",n-o)),e}render(){const e=p()({[Zt().layer]:!0,"PSPDFKit-Text-Canvas":!0});return(0,oe.jsx)(Ue.A,{onPointerUpCapture:this.state.bindPointerUpEvent?this._handlePointerUp:void 0,children:(0,oe.jsx)("div",{className:e,style:{cursor:"text"}})})}}(0,y.A)(go,"defaultProps",{autoSelect:!1});const vo=50,yo=50,bo=50,wo=80,xo=42;const So=_r(go);var _o=n(81309);function Co(e,t,n,r,o,i,s,c,d){let p=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null,h=arguments.length>10?arguments[10]:void 0;const[f,m]=u.useState(!1),g=u.useRef(!1),v=u.useCallback((function(t){const o=t.composedPath()[0];if((0,l.V1)(o),!(0,Yn.kM)(o))switch(t.key){case"Enter":case" ":case"Spacebar":if((0,Yn.UN)(o)||(0,Yn.jU)(o))return;e(t),t.preventDefault();break;case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":{if((0,Yn.jU)(o))return;t.preventDefault();const e=t.shiftKey?10:1,l=(0,je.Kr)(Eo[t.key]-s),u=function(e){switch(e){case 0:return new z.bR({x:0,y:-1});case 90:return new z.bR({x:1,y:0});case 180:return new z.bR({x:0,y:1});case 270:return new z.bR({x:-1,y:0});default:throw Error()}}(l),p=0===l||270===l?new z.bR:new z.bR({x:n.boundingBox.width,y:n.boundingBox.height}),f=(0,_o.C)(n,u.scale(e),i,p,d,h);if(r(f),!g.current){const e={annotations:(0,a.B8)([n]),reason:ee.x.MOVE_START};c.emit("annotations.willChange",e),g.current=!0}m(!0)}}}),[e,s,n,i,d,r,c,h]),y=u.useCallback((function(e){const t=e.composedPath()[0];if((0,l.V1)(t),!(0,Yn.kM)(t)&&(("Spacebar"!==e.key&&" "!==e.key||!(0,Yn.UN)(t))&&e.preventDefault(),f&&o(n),g.current)){const e={annotations:(0,a.B8)([n]),reason:ee.x.MOVE_END};c.emit("annotations.willChange",e),g.current=!1}}),[f,o,n,c]);u.useLayoutEffect((function(){const e=p?p.ownerDocument:t.document;return e.addEventListener("keydown",v),e.addEventListener("keyup",y),function(){e.removeEventListener("keydown",v),e.removeEventListener("keyup",y)}}),[t.document,v,y,p])}const Eo={ArrowUp:0,ArrowRight:90,ArrowDown:180,ArrowLeft:270};var ko=n(6329);function zo(e){e.getSelection()?.isCollapsed||(0,ko.LL)(e)}const Po={isListening:!1,isDragging:!1,previousMousePosition:null,initialClickWithinAnnotation:null,translation:new P.bR,initialDragCompleted:!1};function Ao(e,t){const n=t;switch(n.type){case"start":{const{mousePosition:t,initialClickWithinAnnotation:r}=n;return{...e,isListening:!0,previousMousePosition:t,initialClickWithinAnnotation:r}}case"drag":{const{mousePosition:t,translation:r}=n;return{...e,isDragging:!0,previousMousePosition:t,translation:r}}case"scroll":return{...e,translation:n.translation};case"stop":return{...Po,initialDragCompleted:!0};default:throw(0,l.GQ)(n.type)}}function Do(e){return e.target?.classList.contains(Qr().selectionRect)}var To=n(15653);const Io={pointIndex:null,startingMousePosition:null,isListening:!1};function Mo(e,t,n){let r;return e instanceof P.MU?r=e[["startPoint","endPoint"][t]].apply(n):e instanceof P.ug&&(r=e.points.get(t).apply(n)),r}const No={startingMousePosition:null,startingResizeAnchor:null,isListening:!1};function Oo(e,t,n){const r=e.boundingBox.apply(t);let o;return n===Xr.E.TOP_LEFT?o=new P.bR({x:r.left,y:r.top}):n===Xr.E.TOP_RIGHT?o=new P.bR({x:r.left+r.width,y:r.top}):n===Xr.E.BOTTOM_LEFT?o=new P.bR({x:r.left,y:r.top+r.height}):n===Xr.E.BOTTOM_RIGHT&&(o=new P.bR({x:r.left+r.width,y:r.top+r.height})),o}const Ro=_r((function(e){const{annotation:t,globalAnnotation:n,viewportState:{zoomLevel:r,viewportRect:o,pagesRotation:i},children:c,isResizable:d,isModifiable:h,isRotatable:f,onFocus:m,onBlur:g,getScrollElement:v,transformClientToPage:y,window:b,interactionsDisabled:w,dispatch:x,selectedAnnotationShouldDrag:S,pageSize:_,isAnnotationPressPrevented:C,eventEmitter:E,restrictAnnotationToPageBounds:k,isEditableCP:A,shouldConstrainAspectRatio:D,setGlobalCursor:T,annotationDimensions:M,backend:N,disablePointSnapping:O}=e,R=(0,u.useRef)(!1),{formatMessage:j}=(0,ve.tz)(),F=u.useMemo((()=>{let e;return(0,I.w6)(t)&&t.measurementBBox?(e=t.set("boundingBox",t.measurementBBox),e):t}),[t]),[L,V]=(0,br.rI)(F),K=(0,s.d4)((e=>e.shadowRoot)),[H,$]=u.useState(null),[U,W]=function(e,t,n){const r=u.useRef(null),o=u.useCallback((function(e){const{current:t}=r;if(!t)return;const o="function"==typeof t.getWrappedInstance?t.getWrappedInstance():t;o&&"function"==typeof o.onClick&&!n&&o.onClick(e)}),[n]);return[o,r]}(0,0,R.current);(0,u.useEffect)((()=>{L&&E.emit("annotations.transform",{annotation:L})}),[L,E]);const q=u.useMemo((()=>(0,Z.zo)(e.viewportState,t.pageIndex)),[e.viewportState,t.pageIndex]),G=u.useMemo((()=>(0,B.hI)(L,r,i)),[L,r,i]),Y=u.useCallback((function(e){return e.scale(1/r).rotate(i)}),[r,i]),X=u.useCallback((e=>{$(e),T(e)}),[T]),J=u.useCallback((function(e){const t=(0,Re.pE)(e),n=(0,B.hI)(t,r,i);if(_&&k){if(!new P.rw({left:0,top:0,width:_.width,height:_.height}).isRectInside(n))return}x((0,lt.g_)(t))}),[x,_,k,r,i]),{isDragging:Q,cancelDrag:te,startDraggingWithEvent:ne,startDraggingAtPoint:re,dragListener:ie}=function(e){let{getScrollElement:t,transformClientToPage:n,transformedAnnotation:r,setTransformedAnnotation:o,setGlobalAnnotation:i,annotation:s,interactionsDisabled:c,dispatch:d,frameWindow:p,pageSize:h,onClick:f,transformDeltaFromClientToPage:m,eventEmitter:g,restrictAnnotationToPageBounds:v,isEditableCP:y,zoomLevel:b}=e;const[w,x]=u.useReducer(Ao,Po),{isListening:S,isDragging:_}=w,C=u.useCallback((function(){return new P.bR({x:t().scrollLeft,y:t().scrollTop})}),[t]);u.useEffect((()=>()=>{_&&c&&d((0,Dt.JN)())}),[d,c,_]);const E=u.useRef(null),k=u.useCallback((function(e){E.current=C();const t=n(e).translate(s.boundingBox.getLocation().scale(-1)),r=m(e);x({type:"start",mousePosition:r,initialClickWithinAnnotation:t})}),[C,n,m,s.boundingBox]),z=u.useCallback((function(e){e.isPrimary&&k(new P.bR({x:e.clientX,y:e.clientY}))}),[k]),A=u.useCallback((function(){x({type:"stop"}),zo(p),d((0,Dt.JN)())}),[p,d]),D=u.useCallback((function(e){if((_||Do(e))&&e.stopPropagation(),r.equals(s)?w.initialDragCompleted&&f(e):i(r),x({type:"stop"}),_){const e={annotations:(0,a.B8)([r]),reason:ee.x.MOVE_END};g.emit("annotations.willChange",e)}zo(p),d((0,Dt.JN)())}),[s,p,d,_,f,w.initialDragCompleted,r,g,i]),T=u.useCallback((function(e){if(e.stopPropagation(),e.preventDefault(),_&&0===e.buttons)return void D(e);const{previousMousePosition:t,initialClickWithinAnnotation:n,translation:r}=w;(0,l.V1)(t),(0,l.V1)(n);const i=m(new P.bR({x:e.clientX,y:e.clientY})),u=Tt(n,t);!c&&u&&d((0,Dt.y7)());const f=i.translate(t.scale(-1)),y=r.translate(f),S=(0,_o.C)(s,y,h,n,v,b),C=(0,I.w6)(S)?S.set("measurementBBox",S.boundingBox):S;if(o(C),x({type:"drag",mousePosition:i,translation:y}),zo(p),!_){const e={annotations:(0,a.B8)([s]),reason:ee.x.MOVE_START};g.emit("annotations.willChange",e)}}),[s,p,d,c,h,o,w,_,m,g,D,v,b]),M=u.useCallback((function(){const e=t();if(void 0===e.scrollTop||void 0===e.scrollLeft)return;const n=C(),r=E.current;(0,l.V1)(r);const i=m(n.translate(r.scale(-1))),a=w.translation.translate(i);let c=w.initialClickWithinAnnotation;c||(c=new P.bR);const u=(0,_o.C)(s,a,h,c,!1,b);o(u),x({type:"scroll",translation:a}),E.current=n,zo(p)}),[s,p,t,C,h,o,w.initialClickWithinAnnotation,w.translation,m,b]);(0,br.Uk)(S,t,M);const N=S&&(0,oe.jsx)(Ue.A,{onRootPointerDownCapture:D,onRootPointerMoveCapture:y&&!s.locked?T:void 0,onRootPointerUpCapture:D});return{isDragging:_,cancelDrag:A,startDraggingWithEvent:z,startDraggingAtPoint:k,dragListener:N}}({getScrollElement:v,transformClientToPage:y,transformedAnnotation:L,setTransformedAnnotation:V,setGlobalAnnotation:J,annotation:t,interactionsDisabled:w,dispatch:x,frameWindow:b,pageSize:_,onClick:U,transformDeltaFromClientToPage:Y,eventEmitter:E,restrictAnnotationToPageBounds:k,isEditableCP:A,zoomLevel:r}),{startResizing:ae,resizeListener:se,isResizing:le}=function(e){let{transformedAnnotation:t,setTransformedAnnotation:n,setGlobalAnnotation:r,annotation:o,dispatch:i,frameWindow:s,transformDeltaFromClientToPage:c,eventEmitter:d,pageSize:p,restrictAnnotationToPageBounds:h,shouldConstrainAspectRatio:f,annotationDimensions:m,clientTransformationMatrix:g,interactionsDisabled:v,backend:y,disablePointSnapping:b=!1}=e;const[w,x]=u.useState(No),[S,_]=u.useState(!1),C=u.useRef(void 0),E=u.useRef(null),k=u.useRef(!1);u.useEffect((()=>()=>{S&&v&&i((0,Dt.JN)())}),[i,v,S]);const z=u.useCallback((function(e,n){if(!e.isPrimary)return;(0,Mt.sC)(y,o,b)&&y.configureSnapper(o.pageIndex);const r=new P.bR({x:e.clientX,y:e.clientY}),s=c(r);x({startingMousePosition:s,startingResizeAnchor:n,isListening:!0}),_(!0);const u={annotations:(0,a.B8)([o]),reason:ee.x.RESIZE_START};d.emit("annotations.willChange",u),o instanceof P.Zx&&![Xr.E.TOP,Xr.E.RIGHT,Xr.E.BOTTOM,Xr.E.LEFT].includes(n)&&o.isMeasurement?.()&&((0,l.V1)(t instanceof P.Zx),i((0,It.Al)({magnifierLabel:t.getMeasurementDetails().label,drawnAnnotationID:t.id,drawnAnnotationPageIndex:t.pageIndex,magnifierCursorPosition:Oo(o,g,n)}))),i((0,Dt.y7)())}),[t,i,c,o,d,g,y,b]),A=u.useCallback((async function(e){e.preventDefault();const t=new P.bR({x:e.clientX,y:e.clientY});let r=c(t);if((0,Mt.sC)(y,o,b)){const e=await y.getClosestSnapPoint(new P.bR({x:r.x,y:r.y}));r=r.set("x",e.x).set("y",e.y)}const{startingMousePosition:a,startingResizeAnchor:u}=w;(0,l.V1)(a),(0,l.V1)(u);const d={annotation:o,resizeAnchor:u,isShiftPressed:e.shiftKey},v=E.current;null!==v&&v.annotation.id===d.annotation.id&&v.isShiftPressed===d.isShiftPressed&&v.resizeAnchor===d.resizeAnchor||(k.current=f(d),C.current=m(d)),E.current=d;const x=r.translate(a.scale(-1)),S=(0,eo.gn)(o,x,u,k.current,void 0,p,h,C.current),_=(0,I.w6)(S)?S.set("measurementBBox",S.boundingBox):S;n(_),zo(s),o instanceof P.Zx&&![Xr.E.TOP,Xr.E.RIGHT,Xr.E.BOTTOM,Xr.E.LEFT].includes(u)&&o.isMeasurement?.()&&((0,l.V1)(S instanceof P.Zx),i((0,It.Al)({magnifierLabel:S.getMeasurementDetails().label,magnifierCursorPosition:Oo(S,g,u)})))}),[i,o,s,n,g,f,w,c,p,h,C,y,m,b]),D=u.useCallback((function(e){e.stopPropagation(),_(!1),x(No),r(t),i((0,Dt.JN)()),zo(s);const n={annotations:(0,a.B8)([t]),reason:ee.x.RESIZE_END};d.emit("annotations.willChange",n),o instanceof P.Zx&&o.isMeasurement?.()&&i((0,It.Al)(null))}),[o,s,i,r,t,d]);return{startResizing:z,resizeListener:w.isListening&&(0,oe.jsx)(Ue.A,{onRootPointerMoveCapture:A,onRootPointerUpCapture:D}),isResizing:S}}({transformedAnnotation:L,setTransformedAnnotation:V,setGlobalAnnotation:J,annotation:t,dispatch:x,frameWindow:b,transformDeltaFromClientToPage:Y,eventEmitter:E,pageSize:_,restrictAnnotationToPageBounds:k,shouldConstrainAspectRatio:D,annotationDimensions:M,clientTransformationMatrix:q,interactionsDisabled:w,backend:N,disablePointSnapping:O}),{startRotating:ce,rotateListener:ue,isRotating:de}=function(e){let{transformedAnnotation:t,setTransformedAnnotation:n,setGlobalAnnotation:r,annotation:o,dispatch:i,frameWindow:s,transformClientToPage:l,eventEmitter:c,pageSize:d,restrictAnnotationToPageBounds:p,centerPoint:h,interactionsDisabled:f,setLocalAndGlobalCursor:m,zoomLevel:g}=e;const[v,y]=u.useState(!1),[b,w]=u.useState(!1);u.useEffect((()=>()=>{b&&f&&i((0,Dt.JN)())}),[i,f,b]);const x=u.useCallback((e=>{const t=new P.bR({x:e.clientX,y:e.clientY}),n=l(t),r=h.x-n.x,o=n.y-h.y,i=-Math.atan2(r,o);return Math.round(i*(180/Math.PI))}),[h,l]),S=u.useCallback((function(e){if(!e.isPrimary)return;y(!0),w(!0);const t={annotations:(0,a.B8)([o]),reason:ee.x.ROTATE_START};c.emit("annotations.willChange",t),i((0,Dt.y7)()),m((0,Re._1)(x(e),"grabbing"))}),[i,o,c,x,m]),_=u.useCallback((function(e){const r=x(e),o=(0,Re.zq)(t,r,d,p,g);n(o),zo(s),m((0,Re._1)(r,"grabbing"))}),[t,s,n,x,m,d,p,g]),C=u.useCallback((function(e){e.stopPropagation(),w(!1),y(!1);const t=x(e),n=(0,Re.zq)(o,t,d,p,g);r(n),i((0,Dt.JN)()),zo(s),m("");const l={annotations:(0,a.B8)([n]),reason:ee.x.ROTATE_END};c.emit("annotations.willChange",l)}),[s,i,r,o,x,c,d,p,m,g]);return{startRotating:S,rotateListener:v&&(0,oe.jsx)(Ue.A,{onRootPointerMoveCapture:_,onRootPointerUpCapture:C}),isRotating:b}}({transformedAnnotation:L,setTransformedAnnotation:V,setGlobalAnnotation:J,annotation:t,dispatch:x,frameWindow:b,transformClientToPage:y,eventEmitter:E,pageSize:_,restrictAnnotationToPageBounds:k,centerPoint:G.getCenter(),interactionsDisabled:w,setLocalAndGlobalCursor:X,zoomLevel:r}),pe=(0,br.pO)(t,_,r,x),{startModifying:he,modifyListener:fe,isModifying:me}=function(e){let{transformedAnnotation:t,setTransformedAnnotation:n,setGlobalAnnotation:r,annotation:o,dispatch:i,frameWindow:c,transformDeltaFromClientToPage:d,eventEmitter:p,clientTransformationMatrix:h,pageSize:f,restrictAnnotationToPageBounds:m,backend:g,disablePointSnapping:v=!1,zoomLevel:y}=e;const[b,w]=u.useState(Io),[x,S]=u.useState(!1),_=(0,s.d4)((e=>e.defaultAutoCloseThreshold)),C=u.useCallback((async function(e,t){if(!e.isPrimary)return;const n=new P.bR({x:e.clientX,y:e.clientY}),r=d(n);(0,Mt.sC)(g,o,v)&&await g.configureSnapper(o.pageIndex),w({pointIndex:t,startingMousePosition:r,isListening:!0}),S(!0);const s={annotations:(0,a.B8)([o]),reason:ee.x.RESIZE_START};p.emit("annotations.willChange",s),o instanceof P.pP&&o.isMeasurement?.()&&i((0,It.Al)({magnifierLabel:o.getMeasurementDetails().label,drawnAnnotationID:o.id,drawnAnnotationPageIndex:o.pageIndex,magnifierCursorPosition:Mo(o,t,h)})),i((0,Dt.y7)())}),[i,d,o,p,h,g,v]),E=u.useCallback((async function(e){e.preventDefault();const t=new P.bR({x:e.clientX,y:e.clientY}),r=d(t),{startingMousePosition:a,pointIndex:s}=b;(0,l.V1)(a),(0,l.V1)(null!==s);const u=r.translate(a.scale(-1));let p=(0,To.Sp)(o,u,s);if((0,l.V1)(p),(0,Mt.sC)(g,o,v)){let e=new P.bR({x:0,y:0});p instanceof P.MU?e=p.get(["startPoint","endPoint"][s]):(p instanceof P.ug||p instanceof P.Si)&&(e=p.points.get(s));const t=await g.getClosestSnapPoint(new P.bR({x:e.x,y:e.y}));e=e.set("x",t.x).set("y",t.y),p instanceof P.MU?p=p.set(["startPoint","endPoint"][s],e):(p instanceof P.ug||p instanceof P.Si)&&(p=p.set("points",p.points.set(s,e)))}if(p instanceof P.ug||p instanceof P.Si){const e=(0,Mt.RJ)(p,s,_);-1!==e&&(p=(0,Mt.oC)(p,s,e))}n(p),zo(c),"isMeasurement"in p&&p.isMeasurement?.()&&i((0,It.Al)({magnifierLabel:p.getMeasurementDetails().label,magnifierCursorPosition:Mo(p,s,h)}))}),[i,o,c,n,b,d,h,g,v,_]),k=u.useCallback((function(e){if(e.stopPropagation(),S(!1),w(Io),f&&m){const e=new z.rw({left:0,top:0,width:f.width,height:f.height}),t=(0,B.hI)(o,y);if(!e.isRectInside(t))return}r(t),i((0,Dt.JN)()),zo(c);const n={annotations:(0,a.B8)([t]),reason:ee.x.RESIZE_END};p.emit("annotations.willChange",n),"isMeasurement"in o&&o.isMeasurement?.()&&i((0,It.Al)(null))}),[o,c,i,t,p,r,f,m,y]);return{startModifying:C,modifyListener:b.isListening&&(0,oe.jsx)(Ue.A,{onRootPointerMoveCapture:E,onRootPointerUpCapture:k}),isModifying:x}}({transformedAnnotation:L,setTransformedAnnotation:V,setGlobalAnnotation:J,annotation:t,dispatch:x,frameWindow:b,transformDeltaFromClientToPage:Y,eventEmitter:E,clientTransformationMatrix:q,pageSize:_,restrictAnnotationToPageBounds:k,backend:N,disablePointSnapping:O,zoomLevel:r});(0,br.Rv)(S,x,re);const ge=function(e,t){return u.Children.map(e,(e=>u.cloneElement(e,{...t,isDisabled:!0})))}(c,{annotation:L,globalAnnotation:n,ref:W,isResizing:le,isModifying:me,isDragging:Q,isRotating:de,...H?{cursor:H}:null}),ye=u.useRef(null);ye.current=function(e){g&&g(t,e)};const be=(0,br.f3)(v);u.useEffect((function(){const{current:e}=be;return function(){if(e&&e===e?.ownerDocument.activeElement){const e=ye.current;e&&e((0,Xn.BL)("blur"))}}}),[]),u.useLayoutEffect((function(){Q&&te()}),[r,te]),Co(U,b,L,V,J,_,i,E,k,K,r);const Se=(0,B.lW)(L,j);return(0,oe.jsx)(Ue.A,{onPointerDownCapture:function(e){e.isPrimary&&(R.current=C({annotation:t,nativeEvent:e.nativeEvent,selected:!0},E),R.current||x((0,we.pw)(L,e,{selectedAnnotationShouldDrag:"touch"!==e.pointerType?new P.bR({x:e.clientX,y:e.clientY}):null,stopPropagation:!1,isAnnotationPressPrevented:!1})))},onPointerUp:jo,children:(0,oe.jsxs)("div",{style:{touchAction:"none"},role:"application",children:[(0,oe.jsx)(io,{zoomLevel:r,viewportSize:o.getSize(),startModifying:he,startResizing:ae,startDragging:ne,startRotating:ce,onFitToSide:pe,isDragging:Q,pagesRotation:i,annotation:L,isResizable:d&&A,isModifiable:h&&A,isRotatable:f&&A,isEditableCP:A,annotationBoundingBox:G,window:b,cursor:H,children:(0,oe.jsx)("div",{tabIndex:0,ref:be,role:"button","aria-label":L instanceof P.sb?j(xe.A.selectedAnnotation,{arg0:Se}):L instanceof P.dh||L instanceof P.s9?j(xe.A.selectedAnnotationWithText,{arg0:Se,arg1:L.text.value}):j(xe.A.selectedAnnotation,{arg0:Se}),"data-testid":"selected annotation",onFocus:function(e){m&&m(t,e)},onBlur:ye.current,className:p()("PSPDFKit-Annotation-Selected",L.constructor.readableName&&`PSPDFKit-${L.constructor.readableName}-Annotation-Selected`),children:ge})}),ie,se,fe,ue]})})}));function jo(e){e.stopPropagation()}const Fo=(0,s.Ng)((function(e,t){let{annotation:n}=t;return{interactionsDisabled:e.interactionsDisabled,selectedAnnotationShouldDrag:e.selectedAnnotationShouldDrag,isAnnotationPressPrevented:t=>(0,B.m5)(t,e.eventEmitter),eventEmitter:e.eventEmitter,restrictAnnotationToPageBounds:e.restrictAnnotationToPageBounds,isEditableCP:(0,cr.q2)(n,e),shouldConstrainAspectRatio:t=>(0,B.DV)(t,e),annotationDimensions:t=>(0,B.my)(t,e)}}))(Ro),Bo={isListening:!1,isDragging:!1,previousMousePosition:null,initialClickWithinAnnotation:null,translation:new P.bR,initialDragCompleted:!1};const Lo=_r((function(e){const{children:t,selectedAnnotations:n,selectedGlobalAnnotations:r,dispatch:o,viewportState:{zoomLevel:i,viewportRect:s,pagesRotation:c},isEditableCP:d,getScrollElement:h,transformClientToPage:f,window:m,interactionsDisabled:g,pageSize:v,eventEmitter:y,restrictAnnotationToPageBounds:b,selectedAnnotationShouldDrag:w,onFocus:x,onBlur:S}=e,{formatMessage:_}=(0,ve.tz)(),[C,E]=(0,br.rI)(n),k=(0,br.f3)(h),z=(0,B.lF)(C,i),A=u.useCallback((function(e){return e.scale(1/i).rotate(c)}),[i,c]),D=u.useCallback((function(e){const t=e.map((e=>{const t=(0,Re.pE)(e),n=(0,B.hI)(t,i,c);if(v&&b){if(!new P.rw({left:0,top:0,width:v.width,height:v.height}).isRectInside(n))return null}return t})).filter(Boolean);o((0,lt.nG)(t,(0,a.B8)()))}),[o,v,b,i,c]),{isDragging:T,cancelDrag:I,startDraggingWithEvent:M,startDraggingAtPoint:N,dragListener:O}=function(e){let{getScrollElement:t,transformClientToPage:n,transformedAnnotations:r,setTransformedAnnotations:o,setGlobalAnnotations:i,interactionsDisabled:a,dispatch:s,frameWindow:c,pageSize:d,transformDeltaFromClientToPage:p,eventEmitter:h,restrictAnnotationToPageBounds:f,isEditableCP:m,selectedAnnotationsBoundingBox:g,selectedAnnotations:v,zoomLevel:y}=e;const[b,w]=u.useReducer(Ao,Bo),{isListening:x,isDragging:S}=b,_=u.useCallback((function(){return new P.bR({x:t().scrollLeft,y:t().scrollTop})}),[t]);u.useEffect((()=>()=>{S&&a&&s((0,Dt.JN)())}),[s,a,S]);const C=u.useRef(null),E=u.useCallback((function(e){C.current=_();const t=n(e).translate(g.getLocation().scale(-1)),r=p(e);w({type:"start",mousePosition:r,initialClickWithinAnnotation:t})}),[_,n,p,g]),k=u.useCallback((function(e){e.isPrimary&&E(new P.bR({x:e.clientX,y:e.clientY}))}),[E]),z=u.useCallback((function(){w({type:"stop"}),zo(c),s((0,Dt.JN)())}),[c,s]),A=u.useCallback((function(e){if((S||Do(e))&&e.stopPropagation(),r&&S&&i(r),w({type:"stop"}),S){const e={annotations:r,reason:ee.x.MOVE_END};h.emit("annotations.willChange",e)}zo(c),s((0,Dt.JN)())}),[c,s,S,r,h,i]),D=u.useCallback((function(e){if(e.stopPropagation(),e.preventDefault(),S&&0===e.buttons)return void A(e);const{previousMousePosition:t,initialClickWithinAnnotation:n,translation:r}=b;(0,l.V1)(t),(0,l.V1)(n);const i=p(new P.bR({x:e.clientX,y:e.clientY})),u=Tt(n,t);!a&&u&&s((0,Dt.y7)());const m=i.translate(t.scale(-1)),g=r.translate(m),x=v.map((e=>(0,_o.C)(e,g,d,n,f,y)));if(function(e,t){return e.left<=0||e.top<=0||e.left+e.width>=t.width||e.top+e.height>=t.height}((0,B.lF)(x,y),d)||(o(x),w({type:"drag",mousePosition:i,translation:g})),zo(c),!S){const e={annotations:x,reason:ee.x.MOVE_START};h.emit("annotations.willChange",e)}}),[c,s,a,d,o,b,S,p,h,A,f,v,y]),T=u.useCallback((function(){const e=t();if(void 0===e.scrollTop||void 0===e.scrollLeft)return;const n=_(),r=C.current;(0,l.V1)(r);const i=p(n.translate(r.scale(-1))),a=b.translation.translate(i),s=b.initialClickWithinAnnotation||new P.bR,u=v.map((e=>(0,_o.C)(e,a,d,s,!1,y)));o(u),w({type:"scroll",translation:a}),C.current=n,zo(c)}),[c,t,_,d,o,b.initialClickWithinAnnotation,b.translation,p,v,y]);(0,br.Uk)(x,t,T);const I=x&&(0,oe.jsx)(Ue.A,{onRootPointerDownCapture:A,onRootPointerMoveCapture:m?D:void 0,onRootPointerUpCapture:A});return{isDragging:S,cancelDrag:z,startDraggingWithEvent:k,startDraggingAtPoint:E,dragListener:I}}({getScrollElement:h,transformClientToPage:f,transformedAnnotations:C,setTransformedAnnotations:E,setGlobalAnnotations:D,interactionsDisabled:g,dispatch:o,frameWindow:m,pageSize:v,transformDeltaFromClientToPage:A,eventEmitter:y,restrictAnnotationToPageBounds:b,isEditableCP:d,selectedAnnotationsBoundingBox:z,selectedAnnotations:n,zoomLevel:i}),R=u.Children.toArray(t).map((e=>u.isValidElement(e)?function(e,t){return u.cloneElement(e,{...t,isDisabled:!0})}(e,{annotation:C.find((t=>t.id===e.props?.annotation.id)),globalAnnotation:r.find((t=>t.id===e.props?.annotation.id)),isDragging:T}):e));(0,br.Rv)(w,o,N),u.useLayoutEffect((function(){T&&I()}),[i,I]);const j=u.useRef(null);j.current=function(e,t){S&&S(e,t)};const F=R.filter((e=>e&&"object"==typeof e&&"props"in e&&Boolean(e.props.annotation))).length>1;return(0,oe.jsx)(Ue.A,{onPointerDownCapture:function(e){e.isPrimary},onPointerUp:Vo,children:(0,oe.jsxs)("div",{style:{touchAction:"none",zIndex:1},children:[(0,oe.jsx)(io,{zoomLevel:i,viewportSize:s.getSize(),startDragging:M,isDragging:T,pagesRotation:c,isResizable:!1,isModifiable:!1,isEditableCP:d,annotationBoundingBox:z,isRotatable:!1,children:R.filter((e=>e&&"object"==typeof e&&"props"in e&&Boolean(e.props.annotation))).map(((e,t)=>{const n=e.props.annotation,r=(0,B.lW)(n,_);return(0,oe.jsx)(io,{zoomLevel:i,viewportSize:s.getSize(),startDragging:M,isDragging:T,pagesRotation:c,isResizable:!1,isModifiable:!1,isRotatable:!1,isEditableCP:d,annotationBoundingBox:(0,B.hI)(n,i,c),deselectAnnotation:e=>{o((0,we.pw)(n,e))},annotationRotation:n.rotation,customZIndex:2,children:(0,oe.jsx)("div",{tabIndex:t,"aria-label":n instanceof ce.sb?_(xe.A.selectedAnnotation,{arg0:r}):n instanceof ce.dh||n instanceof ce.s9?_(xe.A.selectedAnnotationWithText,{arg0:r,arg1:n.text.value}):_(xe.A.selectedAnnotation,{arg0:r}),ref:F?void 0:k,role:"button","data-testid":`selected annotation ${t}`,onFocus:e=>{return t=n,r=e,void(x&&x(t,r));var t,r},onBlur:e=>j.current?.(n,e),className:p()(`PSPDFKit-Annotation-Selected-${t}`,"PSPDFKit-Annotation-Selected",n.constructor.readableName&&`PSPDFKit-${n.constructor.readableName}-Annotation-Selected`),children:e})},n.id)}))}),O]})})}));function Vo(e){e.stopPropagation()}const Ko=(0,s.Ng)((function(e,t){let{annotation:n}=t;return{interactionsDisabled:e.interactionsDisabled,selectedAnnotationShouldDrag:e.selectedAnnotationShouldDrag,eventEmitter:e.eventEmitter,restrictAnnotationToPageBounds:e.restrictAnnotationToPageBounds,isEditableCP:(0,cr.q2)(n,e),shouldConstrainAspectRatio:t=>(0,B.DV)(t,e)}}))(Lo);function Ho(e){const[t,n]=u.useState(new Y.A),[r,o]=u.useState(new Y.A);(0,a.is)(t,e.redactionAnnotation)||(0,a.is)(r,e.redactionAnnotation)||(o(e.redactionAnnotation),n(e.redactionAnnotation));const{dispatch:i,pageSize:l,keepSelectedTool:c}=e;u.useEffect((()=>(i((0,Dt.y7)()),()=>{i((0,Dt.JN)())})),[i]);const{pageIndex:d}=e,h=(0,s.d4)((e=>e.viewportState.zoomLevel)),f=p()([rn().canvas],"PSPDFKit-Redaction-Canvas"),{boundingBox:m}=r,g=(0,s.d4)((e=>e.scrollElement));return(0,oe.jsxs)("div",{className:f,children:[(0,oe.jsx)(be,{zoomLevel:h,applyZoom:!0,children:(0,oe.jsx)("div",{style:{...m.toJS(),position:"absolute"},children:(0,oe.jsx)(on,{annotation:r,zoomLevel:1,previewRedactionMode:!1,isSelectable:!1})})}),(0,oe.jsx)(Nt,{pageSize:l,pageIndex:d,currentAnnotation:r,onAnnotationUpdate:o,keepSelectedTool:c,scrollElement:g})]})}var $o=n(61371),Uo=n(55794),Wo=n.n(Uo),qo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Go=function(){return Go=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Go.apply(this,arguments)},Zo={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Yo={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Xo={width:"20px",height:"20px",position:"absolute"},Jo={top:Go(Go({},Zo),{top:"-5px"}),right:Go(Go({},Yo),{left:void 0,right:"-5px"}),bottom:Go(Go({},Zo),{top:void 0,bottom:"-5px"}),left:Go(Go({},Yo),{left:"-5px"}),topRight:Go(Go({},Xo),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:Go(Go({},Xo),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:Go(Go({},Xo),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:Go(Go({},Xo),{left:"-10px",top:"-10px",cursor:"nw-resize"})},Qo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return qo(t,e),t.prototype.render=function(){return u.createElement("div",{className:this.props.className||"",style:Go(Go({position:"absolute",userSelect:"none"},Jo[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(u.PureComponent),ei=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ti=function(){return ti=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ti.apply(this,arguments)},ni={width:"auto",height:"auto"},ri=function(e,t,n){return Math.max(Math.min(e,n),t)},oi=function(e,t,n){var r=Math.round(e/t);return r*t+n*(r-1)},ii=function(e,t){return new RegExp(e,"i").test(t)},ai=function(e){return Boolean(e.touches&&e.touches.length)},si=function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,o){return Math.abs(r-e)<Math.abs(t[n]-e)?o:n}),0),o=Math.abs(t[r]-e);return 0===n||o<n?t[r]:e},li=function(e){return"auto"===(e=e.toString())||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},ci=function(e,t,n,r){if(e&&"string"==typeof e){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%"))return t*(Number(e.replace("%",""))/100);if(e.endsWith("vw"))return n*(Number(e.replace("vw",""))/100);if(e.endsWith("vh"))return r*(Number(e.replace("vh",""))/100)}return e},ui=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],di="__resizable_base__",pi=function(e){function t(t){var n,r,o,i,a=e.call(this,t)||this;return a.ratio=1,a.resizable=null,a.parentLeft=0,a.parentTop=0,a.resizableLeft=0,a.resizableRight=0,a.resizableTop=0,a.resizableBottom=0,a.targetLeft=0,a.targetTop=0,a.appendBase=function(){if(!a.resizable||!a.window)return null;var e=a.parentNode;if(!e)return null;var t=a.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0 0 100%",t.classList?t.classList.add(di):t.className+=di,e.appendChild(t),t},a.removeBase=function(e){var t=a.parentNode;t&&t.removeChild(e)},a.state={isResizing:!1,width:null!==(r=null===(n=a.propsSize)||void 0===n?void 0:n.width)&&void 0!==r?r:"auto",height:null!==(i=null===(o=a.propsSize)||void 0===o?void 0:o.height)&&void 0!==i?i:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},a.onResizeStart=a.onResizeStart.bind(a),a.onMouseMove=a.onMouseMove.bind(a),a.onMouseUp=a.onMouseUp.bind(a),a}return ei(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||ni},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=o}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){var n;if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&(null===(n=e.propsSize[t])||void 0===n?void 0:n.toString().endsWith("%"))){if(e.state[t].toString().endsWith("%"))return e.state[t].toString();var r=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/r[t]*100+"%"}return li(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?li(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?li(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,r,o=this.props.boundsByDirection,i=this.state.direction,a=o&&ii("left",i),s=o&&ii("top",i);if("parent"===this.props.bounds){var l=this.parentNode;l&&(n=a?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),r=s?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=a?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=a?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n,r=this.props.scale||1,o=(n=this.props.resizeRatio||1,Array.isArray(n)?n:[n,n]),i=o[0],a=o[1],s=this.state,l=s.direction,c=s.original,u=this.props,d=u.lockAspectRatio,p=u.lockAspectRatioExtraHeight,h=u.lockAspectRatioExtraWidth,f=c.width,m=c.height,g=p||0,v=h||0;return ii("right",l)&&(f=c.width+(e-c.x)*i/r,d&&(m=(f-v)/this.ratio+g)),ii("left",l)&&(f=c.width-(e-c.x)*i/r,d&&(m=(f-v)/this.ratio+g)),ii("bottom",l)&&(m=c.height+(t-c.y)*a/r,d&&(f=(m-g)*this.ratio+v)),ii("top",l)&&(m=c.height-(t-c.y)*a/r,d&&(f=(m-g)*this.ratio+v)),{newWidth:f,newHeight:m}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var o=this.props,i=o.lockAspectRatio,a=o.lockAspectRatioExtraHeight,s=o.lockAspectRatioExtraWidth,l=void 0===r.width?10:r.width,c=void 0===n.width||n.width<0?e:n.width,u=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,p=a||0,h=s||0;if(i){var f=(u-p)*this.ratio+h,m=(d-p)*this.ratio+h,g=(l-h)/this.ratio+p,v=(c-h)/this.ratio+p,y=Math.max(l,f),b=Math.min(c,m),w=Math.max(u,g),x=Math.min(d,v);e=ri(e,y,b),t=ri(t,w,x)}else e=ri(e,l,c),t=ri(t,u,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){var e=1/(this.props.scale||1);if("parent"===this.props.bounds){var t=this.parentNode;if(t){var n=t.getBoundingClientRect();this.parentLeft=n.left*e,this.parentTop=n.top*e}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var r=this.props.bounds.getBoundingClientRect();this.targetLeft=r.left*e,this.targetTop=r.top*e}if(this.resizable){var o=this.resizable.getBoundingClientRect(),i=o.left,a=o.top,s=o.right,l=o.bottom;this.resizableLeft=i*e,this.resizableRight=s*e,this.resizableTop=a*e,this.resizableBottom=l*e}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,o=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(r=e.nativeEvent.clientX,o=e.nativeEvent.clientY):e.nativeEvent&&ai(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,o=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var a=this.parentNode;if(a){var s=this.window.getComputedStyle(a).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",n=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:r,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:ti(ti({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},t.prototype.onMouseMove=function(e){var t=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&ai(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var n=this.props,r=n.maxWidth,o=n.maxHeight,i=n.minWidth,a=n.minHeight,s=ai(e)?e.touches[0].clientX:e.clientX,l=ai(e)?e.touches[0].clientY:e.clientY,c=this.state,u=c.direction,d=c.original,p=c.width,h=c.height,f=this.getParentSize(),m=function(e,t,n,r,o,i,a){return r=ci(r,e.width,t,n),o=ci(o,e.height,t,n),i=ci(i,e.width,t,n),a=ci(a,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===o?void 0:Number(o),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===a?void 0:Number(a)}}(f,this.window.innerWidth,this.window.innerHeight,r,o,i,a);r=m.maxWidth,o=m.maxHeight,i=m.minWidth,a=m.minHeight;var g=this.calculateNewSizeFromDirection(s,l),v=g.newHeight,y=g.newWidth,b=this.calculateNewMaxFromBoundary(r,o);this.props.snap&&this.props.snap.x&&(y=si(y,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(v=si(v,this.props.snap.y,this.props.snapGap));var w=this.calculateNewSizeFromAspectRatio(y,v,{width:b.maxWidth,height:b.maxHeight},{width:i,height:a});if(y=w.newWidth,v=w.newHeight,this.props.grid){var x=oi(y,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),S=oi(v,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),_=this.props.snapGap||0;y=0===_||Math.abs(x-y)<=_?x:y,v=0===_||Math.abs(S-v)<=_?S:v}var C={width:y-d.width,height:v-d.height};if(p&&"string"==typeof p)if(p.endsWith("%"))y=y/f.width*100+"%";else if(p.endsWith("vw")){y=y/this.window.innerWidth*100+"vw"}else if(p.endsWith("vh")){y=y/this.window.innerHeight*100+"vh"}if(h&&"string"==typeof h)if(h.endsWith("%"))v=v/f.height*100+"%";else if(h.endsWith("vw")){v=v/this.window.innerWidth*100+"vw"}else if(h.endsWith("vh")){v=v/this.window.innerHeight*100+"vh"}var E={width:this.createSizeForCssProperty(y,"width"),height:this.createSizeForCssProperty(v,"height")};"row"===this.flexDir?E.flexBasis=E.width:"column"===this.flexDir&&(E.flexBasis=E.height);var k=this.state.width!==E.width,z=this.state.height!==E.height,P=this.state.flexBasis!==E.flexBasis,A=k||z||P;A&&(0,re.flushSync)((function(){t.setState(E)})),this.props.onResize&&A&&this.props.onResize(e,u,this.resizable,C)}},t.prototype.onMouseUp=function(e){var t,n,r=this.state,o=r.isResizing,i=r.direction,a=r.original;if(o&&this.resizable){var s={width:this.size.width-a.width,height:this.size.height-a.height};this.props.onResizeStop&&this.props.onResizeStop(e,i,this.resizable,s),this.props.size&&this.setState({width:null!==(t=this.props.size.width)&&void 0!==t?t:"auto",height:null!==(n=this.props.size.height)&&void 0!==n?n:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:ti(ti({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){var t,n;this.setState({width:null!==(t=e.width)&&void 0!==t?t:"auto",height:null!==(n=e.height)&&void 0!==n?n:"auto"})},t.prototype.renderResizer=function(e){var t=this,n=this.props,r=n.enable,o=n.handleStyles,i=n.handleClasses,a=n.handleWrapperStyle,s=n.handleWrapperClass,l=n.handleComponent;if(!r)return null;var c=e.filter((function(e){return!1!==r[e]})).map((function(e){return!1!==r[e]?u.createElement(Qo,{key:e,direction:e,onResizeStart:t.onResizeStart,replaceStyles:o&&o[e],className:i&&i[e]},l&&l[e]?l[e]:null):null}));return u.createElement("div",{className:s,style:a},c)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==ui.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=ti(ti(ti({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var r=this.props.as||"div";return u.createElement(r,ti({style:n,className:this.props.className},t,{ref:function(t){t&&(e.resizable=t)}}),this.state.isResizing&&u.createElement("div",{style:this.state.backgroundStyle}),this.renderResizer(["topLeft","top","topRight","left"]),this.props.children,this.renderResizer(["right","bottomLeft","bottom","bottomRight"]))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(u.PureComponent),hi=function(e,t){return hi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},hi(e,t)};var fi=function(){return fi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fi.apply(this,arguments)};var mi={width:"auto",height:"auto",display:"inline-block",position:"absolute",top:0,left:0},gi=function(e){function t(t){var n=e.call(this,t)||this;return n.resizingPosition={x:0,y:0},n.offsetFromParent={left:0,top:0},n.resizableElement={current:null},n.originalPosition={x:0,y:0},n.state={resizing:!1,bounds:{top:0,right:0,bottom:0,left:0},maxWidth:t.maxWidth,maxHeight:t.maxHeight},n.onResizeStart=n.onResizeStart.bind(n),n.onResize=n.onResize.bind(n),n.onResizeStop=n.onResizeStop.bind(n),n.onDragStart=n.onDragStart.bind(n),n.onDrag=n.onDrag.bind(n),n.onDragStop=n.onDragStop.bind(n),n.getMaxSizesFromProps=n.getMaxSizesFromProps.bind(n),n}return function(e,t){function n(){this.constructor=e}hi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){this.updateOffsetFromParent();var e=this.offsetFromParent,t=e.left,n=e.top,r=this.getDraggablePosition(),o=r.x,i=r.y;this.draggable.setState({x:o-t,y:i-n}),this.forceUpdate()},t.prototype.getDraggablePosition=function(){var e=this.draggable.state;return{x:e.x,y:e.y}},t.prototype.getParent=function(){return this.resizable&&this.resizable.parentNode},t.prototype.getParentSize=function(){return this.resizable.getParentSize()},t.prototype.getMaxSizesFromProps=function(){return{maxWidth:void 0===this.props.maxWidth?Number.MAX_SAFE_INTEGER:this.props.maxWidth,maxHeight:void 0===this.props.maxHeight?Number.MAX_SAFE_INTEGER:this.props.maxHeight}},t.prototype.getSelfElement=function(){return this.resizable&&this.resizable.resizable},t.prototype.getOffsetHeight=function(e){var t=this.props.scale;switch(this.props.bounds){case"window":return window.innerHeight/t;case"body":return document.body.offsetHeight/t;default:return e.offsetHeight}},t.prototype.getOffsetWidth=function(e){var t=this.props.scale;switch(this.props.bounds){case"window":return window.innerWidth/t;case"body":return document.body.offsetWidth/t;default:return e.offsetWidth}},t.prototype.onDragStart=function(e,t){this.props.onDragStart&&this.props.onDragStart(e,t);var n=this.getDraggablePosition();if(this.originalPosition=n,this.props.bounds){var r,o=this.getParent(),i=this.props.scale;if("parent"===this.props.bounds)r=o;else{if("body"===this.props.bounds){var a=o.getBoundingClientRect(),s=a.left,l=a.top,c=document.body.getBoundingClientRect(),u=-(s-o.offsetLeft*i-c.left)/i,d=-(l-o.offsetTop*i-c.top)/i,p=(document.body.offsetWidth-this.resizable.size.width*i)/i+u,h=(document.body.offsetHeight-this.resizable.size.height*i)/i+d;return this.setState({bounds:{top:d,right:p,bottom:h,left:u}})}if("window"===this.props.bounds){if(!this.resizable)return;var f=o.getBoundingClientRect(),m=f.left,g=f.top,v=-(m-o.offsetLeft*i)/i,y=-(g-o.offsetTop*i)/i;p=(window.innerWidth-this.resizable.size.width*i)/i+v,h=(window.innerHeight-this.resizable.size.height*i)/i+y;return this.setState({bounds:{top:y,right:p,bottom:h,left:v}})}"string"==typeof this.props.bounds?r=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(r=this.props.bounds)}if(r instanceof HTMLElement&&o instanceof HTMLElement){var b=r.getBoundingClientRect(),w=b.left,x=b.top,S=o.getBoundingClientRect(),_=(w-S.left)/i,C=x-S.top;if(this.resizable){this.updateOffsetFromParent();var E=this.offsetFromParent;this.setState({bounds:{top:C-E.top,right:_+(r.offsetWidth-this.resizable.size.width)-E.left/i,bottom:C+(r.offsetHeight-this.resizable.size.height)-E.top,left:_-E.left/i}})}}}},t.prototype.onDrag=function(e,t){if(this.props.onDrag){var n=this.offsetFromParent,r=n.left,o=n.top;return this.props.dragAxis&&"both"!==this.props.dragAxis?"x"===this.props.dragAxis?this.props.onDrag(e,fi(fi({},t),{x:t.x+r,y:this.originalPosition.y+o,deltaY:0})):"y"===this.props.dragAxis?this.props.onDrag(e,fi(fi({},t),{x:this.originalPosition.x+r,y:t.y+o,deltaX:0})):void 0:this.props.onDrag(e,fi(fi({},t),{x:t.x+r,y:t.y+o}))}},t.prototype.onDragStop=function(e,t){if(this.props.onDragStop){var n=this.offsetFromParent,r=n.left,o=n.top;return this.props.dragAxis&&"both"!==this.props.dragAxis?"x"===this.props.dragAxis?this.props.onDragStop(e,fi(fi({},t),{x:t.x+r,y:this.originalPosition.y+o,deltaY:0})):"y"===this.props.dragAxis?this.props.onDragStop(e,fi(fi({},t),{x:this.originalPosition.x+r,y:t.y+o,deltaX:0})):void 0:this.props.onDragStop(e,fi(fi({},t),{x:t.x+r,y:t.y+o}))}},t.prototype.onResizeStart=function(e,t,n){e.stopPropagation(),this.setState({resizing:!0});var r=this.props.scale,o=this.offsetFromParent,i=this.getDraggablePosition();if(this.resizingPosition={x:i.x+o.left,y:i.y+o.top},this.originalPosition=i,this.props.bounds){var a=this.getParent(),s=void 0;"parent"===this.props.bounds?s=a:"body"===this.props.bounds?s=document.body:"window"===this.props.bounds?s=window:"string"==typeof this.props.bounds?s=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(s=this.props.bounds);var l=this.getSelfElement();if(l instanceof Element&&(s instanceof HTMLElement||s===window)&&a instanceof HTMLElement){var c=this.getMaxSizesFromProps(),u=c.maxWidth,d=c.maxHeight,p=this.getParentSize();if(u&&"string"==typeof u)if(u.endsWith("%")){var h=Number(u.replace("%",""))/100;u=p.width*h}else u.endsWith("px")&&(u=Number(u.replace("px","")));if(d&&"string"==typeof d)if(d.endsWith("%")){h=Number(d.replace("%",""))/100;d=p.height*h}else d.endsWith("px")&&(d=Number(d.replace("px","")));var f=l.getBoundingClientRect(),m=f.left,g=f.top,v="window"===this.props.bounds?{left:0,top:0}:s.getBoundingClientRect(),y=v.left,b=v.top,w=this.getOffsetWidth(s),x=this.getOffsetHeight(s),S=t.toLowerCase().endsWith("left"),_=t.toLowerCase().endsWith("right"),C=t.startsWith("top"),E=t.startsWith("bottom");if((S||C)&&this.resizable){var k=(m-y)/r+this.resizable.size.width;this.setState({maxWidth:k>Number(u)?u:k})}if(_||this.props.lockAspectRatio&&!S&&!C){k=w+(y-m)/r;this.setState({maxWidth:k>Number(u)?u:k})}if((C||S)&&this.resizable){k=(g-b)/r+this.resizable.size.height;this.setState({maxHeight:k>Number(d)?d:k})}if(E||this.props.lockAspectRatio&&!C&&!S){k=x+(b-g)/r;this.setState({maxHeight:k>Number(d)?d:k})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(e,t,n)},t.prototype.onResize=function(e,t,n,r){var o=this,i={x:this.originalPosition.x,y:this.originalPosition.y},a=-r.width,s=-r.height;["top","left","topLeft","bottomLeft","topRight"].includes(t)&&("bottomLeft"===t?i.x+=a:("topRight"===t||(i.x+=a),i.y+=s));var l=this.draggable.state;i.x===l.x&&i.y===l.y||(0,re.flushSync)((function(){o.draggable.setState(i)})),this.updateOffsetFromParent();var c=this.offsetFromParent,u=this.getDraggablePosition().x+c.left,d=this.getDraggablePosition().y+c.top;this.resizingPosition={x:u,y:d},this.props.onResize&&this.props.onResize(e,t,n,r,{x:u,y:d})},t.prototype.onResizeStop=function(e,t,n,r){this.setState({resizing:!1});var o=this.getMaxSizesFromProps(),i=o.maxWidth,a=o.maxHeight;this.setState({maxWidth:i,maxHeight:a}),this.props.onResizeStop&&this.props.onResizeStop(e,t,n,r,this.resizingPosition)},t.prototype.updateSize=function(e){this.resizable&&this.resizable.updateSize({width:e.width,height:e.height})},t.prototype.updatePosition=function(e){this.draggable.setState(e)},t.prototype.updateOffsetFromParent=function(){var e=this.props.scale,t=this.getParent(),n=this.getSelfElement();if(!t||null===n)return{top:0,left:0};var r=t.getBoundingClientRect(),o=r.left,i=r.top,a=n.getBoundingClientRect(),s=this.getDraggablePosition(),l=t.scrollLeft,c=t.scrollTop;this.offsetFromParent={left:a.left-o+l-s.x*e,top:a.top-i+c-s.y*e}},t.prototype.render=function(){var e=this,t=this.props,n=t.disableDragging,r=t.style,o=t.dragHandleClassName,i=t.position,a=t.onMouseDown,s=t.onMouseUp,l=t.dragAxis,c=t.dragGrid,d=t.bounds,p=t.enableUserSelectHack,h=t.cancel,f=t.children,m=(t.onResizeStart,t.onResize,t.onResizeStop,t.onDragStart,t.onDrag,t.onDragStop,t.resizeHandleStyles),g=t.resizeHandleClasses,v=t.resizeHandleComponent,y=t.enableResizing,b=t.resizeGrid,w=t.resizeHandleWrapperClass,x=t.resizeHandleWrapperStyle,S=t.scale,_=t.allowAnyClick,C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["disableDragging","style","dragHandleClassName","position","onMouseDown","onMouseUp","dragAxis","dragGrid","bounds","enableUserSelectHack","cancel","children","onResizeStart","onResize","onResizeStop","onDragStart","onDrag","onDragStop","resizeHandleStyles","resizeHandleClasses","resizeHandleComponent","enableResizing","resizeGrid","resizeHandleWrapperClass","resizeHandleWrapperStyle","scale","allowAnyClick"]),E=this.props.default?fi({},this.props.default):void 0;delete C.default;var k,z=n||o?{cursor:"auto"}:{cursor:"move"},P=fi(fi(fi({},mi),z),r),A=this.offsetFromParent,D=A.left,T=A.top;i&&(k={x:i.x-D,y:i.y-T});var I,M=this.state.resizing?void 0:k,N=this.state.resizing?"both":l;return(0,u.createElement)(Wo(),{ref:function(t){t&&(e.draggable=t)},handle:o?".".concat(o):void 0,defaultPosition:E,onMouseDown:a,onMouseUp:s,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:N,disabled:n,grid:c,bounds:d?this.state.bounds:void 0,position:M,enableUserSelectHack:p,cancel:h,scale:S,allowAnyClick:_,nodeRef:this.resizableElement},(0,u.createElement)(pi,fi({},C,{ref:function(t){t&&(e.resizable=t,e.resizableElement.current=t.resizable)},defaultSize:E,size:this.props.size,enable:"boolean"==typeof y?(I=y,{bottom:I,bottomLeft:I,bottomRight:I,left:I,right:I,top:I,topLeft:I,topRight:I}):y,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:P,minWidth:this.props.minWidth,minHeight:this.props.minHeight,maxWidth:this.state.resizing?this.state.maxWidth:this.props.maxWidth,maxHeight:this.state.resizing?this.state.maxHeight:this.props.maxHeight,grid:b,handleWrapperClass:w,handleWrapperStyle:x,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:m,handleClasses:g,handleComponent:v,scale:this.props.scale}),f))},t.defaultProps={maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,scale:1,onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},onDragStart:function(){},onDrag:function(){},onDragStop:function(){}},t}(u.PureComponent),vi=n(43609),yi=n.n(vi);function bi(e){const t={position:"absolute",backgroundColor:"rgba(0,0,0,0.2)"};return e?(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsx)("div",{style:{...t,left:0,top:0,bottom:0,width:e.left}}),(0,oe.jsx)("div",{style:{...t,left:e.left,top:0,right:0,height:e.top}}),(0,oe.jsx)("div",{style:{...t,left:e.left+e.width,top:e.top,right:0,bottom:0}}),(0,oe.jsx)("div",{style:{...t,left:e.left,top:e.top+e.height,bottom:0,width:e.width}})]}):null}const wi={top:p()(yi().handles,yi().handleTop,"PSPDFKit-Document-Crop-Resize-Anchor-Top"),right:p()(yi().handles,yi().handleRight,"PSPDFKit-Document-Crop-Resize-Anchor-Right"),bottom:p()(yi().handles,yi().handleBottom,"PSPDFKit-Document-Crop-Resize-Anchor-Bottom"),left:p()(yi().handles,yi().handleLeft,"PSPDFKit-Document-Crop-Resize-Anchor-Left"),topRight:p()(yi().handles,yi().handleTopRight,"PSPDFKit-Document-Crop-Resize-Anchor-Top-Right"),bottomRight:p()(yi().handles,yi().handleBottomRight,"PSPDFKit-Document-Crop-Resize-Anchor-Bottom-Right"),bottomLeft:p()(yi().handles,yi().handleBottomLeft,"PSPDFKit-Document-Crop-Resize-Anchor-Bottom-Left"),topLeft:p()(yi().handles,yi().handleTopLeft,"PSPDFKit-Document-Crop-Resize-Anchor-Top-Left")};function xi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.scale(1/t)}function Si(e){return"touches"in e?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:{clientX:e.clientX,clientY:e.clientY}}let _i=function(e){return e[e.NOT_CREATED=0]="NOT_CREATED",e[e.CREATING=1]="CREATING",e[e.CREATED=2]="CREATED",e}({});const Ci=e=>{let{page:t,onAreaChangeComplete:n,frameWindow:r,onAreaChangeStart:o,initialDraggingEvent:i}=e;const a=(0,s.d4)((e=>e.shadowRoot)),c=(0,s.d4)((e=>e.viewportState.zoomLevel)),[d,h]=(0,u.useState)(c),f=(0,u.useRef)(null),[m,g]=(0,u.useState)({left:0,top:0,height:0,width:0}),[v,y]=(0,u.useState)(!1),[b,w]=(0,u.useState)(null),[x,S]=(0,u.useState)(_i.NOT_CREATED),[_,C]=(0,u.useState)(!1),[E,k]=(0,u.useState)(void 0),[z,A]=(0,u.useState)(!1),D=(0,u.useRef)(null),T=(0,s.d4)((e=>e.scrollElement));(0,u.useEffect)((()=>{(0,Yn.sb)(T)&&(T.style.overflow=_?"hidden":"auto",a?a.host.ownerDocument.body.style.overscrollBehavior=_?"contain":"auto":r.document.body.style.overscrollBehavior=_?"contain":"auto")}),[r.document,_,a,T]),(0,u.useEffect)((()=>{function e(e){"Shift"===e.key&&A(!0)}function t(e){"Shift"===e.key&&A(!1)}const n=a||r.document;return n.addEventListener("keydown",e),n.addEventListener("keyup",t),()=>{n.removeEventListener("keydown",e),n.removeEventListener("keyup",t)}}),[r.document,a]),(0,u.useEffect)((()=>{if(E&&c!==d){const e=E.scale(c/d);k(e),h(c),x===_i.CREATING&&(S(_i.CREATED),n?.(xi(e,c)))}}),[d,c,E]);const I=(0,u.useCallback)(((e,t,n,r)=>{k((e=>{(0,l.V1)(e);let n=new P.rw({left:e.left,top:e.top,width:D.current?.width+r.width,height:D.current?.height+r.height});return e&&t.toLowerCase().includes("top")&&(n=n.set("top",e.top-(n.height-e.height))),e&&t.toLowerCase().includes("left")&&(n=n.set("left",e.left-(n.width-e.width))),n}))}),[k,t.pageSize,c,m]);function M(e){const t=e.composedPath().find((e=>e.classList?.contains("PSPDFKit-Page")));return t?parseInt(t.getAttribute("data-page-index"),10):null}const N=(0,br.Kw)((e=>{"touches"in e&&2===e.touches.length&&y(!0);const n=M(e);if(t.pageIndex!==n)return;e.stopImmediatePropagation(),(0,l.V1)(f.current);const r=f.current.getBoundingClientRect(),{clientY:o,clientX:i}=Si(e);g(r),w(new P.bR({x:i-r.left,y:o-r.top}))}));(0,u.useEffect)((()=>{i&&N(i)}),[i,N]);const O=(0,br.Kw)((e=>{if(!b||x===_i.CREATED)return;const{clientX:t,clientY:n}=Si(e);if(b.x!==t||b.y!==n){e.stopImmediatePropagation(),C(!0);const r=t-m.left,i=n-m.top,a=new P.rw({left:Math.max(0,Math.min(r,b.x)),top:Math.max(0,Math.min(i,b.y)),width:r<b.x?Math.min(b.x,b.x-r):Math.min(r-b.x,m.width-b.x),height:i<b.y?Math.min(b.y,b.y-i):Math.min(i-b.y,m.height-b.y)});k(a),S(_i.CREATING),x===_i.NOT_CREATED&&o?.(xi(a,c))}})),R=(0,br.Kw)((e=>{if(x===_i.CREATED)return;y(!1);const r=M(e);t.pageIndex===r&&e.stopImmediatePropagation(),C(!1),w(null),E?(n?.(xi(E,c)),S(_i.CREATED)):S(_i.NOT_CREATED)}));(0,u.useEffect)((()=>{const e=a||r.document;return e.addEventListener("pointerdown",N),e.addEventListener("pointermove",O),e.addEventListener("pointerup",R,{capture:!0}),e.addEventListener("touchstart",N),e.addEventListener("touchmove",O),e.addEventListener("touchend",R),()=>{e.removeEventListener("pointerdown",N),e.removeEventListener("pointermove",O),e.removeEventListener("pointerup",R,{capture:!0}),e.removeEventListener("touchstart",N),e.removeEventListener("touchmove",O),e.removeEventListener("touchend",R)}}),[N,O,R]);const j=E&&{x:E.left,y:E.top,width:E.width,height:E.height};return(0,oe.jsx)("div",{ref:f,className:yi().wrapper,onPointerUp:e=>e.stopPropagation(),role:"application",children:x!==_i.NOT_CREATED&&(0,oe.jsxs)(oe.Fragment,{children:[x===_i.CREATED&&bi(E),(0,oe.jsx)(gi,{default:j,size:E?{width:E.width,height:E.height}:void 0,position:j,onResizeStart:()=>{C(!0),(0,l.V1)(f.current&&E),o?.(xi(E,c)),g(f.current.getBoundingClientRect()),D.current=E},onResize:I,onResizeStop:()=>{C(!1),(0,l.V1)(E),n?.(xi(E,c)),D.current=null},onDragStart:()=>{(0,l.V1)(E),o?.(xi(E,c))},onDrag:(e,t)=>{if(v)return!1;k((e=>((0,l.V1)(e),e.merge({left:t.x,top:t.y}))))},onDragStop:()=>{(0,l.V1)(E),n?.(xi(E,c))},resizeHandleClasses:wi,bounds:"parent",cancel:`.${yi().handles}`,lockAspectRatio:z,children:(0,oe.jsx)("div",{style:E?{width:E.width,height:E.height}:void 0,className:p()(yi().cropBox,"PSPDFKit-Document-Crop-Box")})})]})})};function Ei(e){const{dispatch:t,linkAnnotation:n,pageIndex:r}=e;u.useEffect((()=>()=>{t((0,Dt.xg)())}),[]);const o=p()({[rn().canvas]:!0});return(0,oe.jsx)("div",{className:o,children:(0,oe.jsx)(Ci,{page:e.page,onAreaChangeComplete:function(e){const o=n.set("pageIndex",r).set("boundingBox",e);window.setTimeout((()=>{(0,s.vA)((()=>{t((0,lt.g_)(o)),t((0,Dt.E7)()),t((0,we.TT)((0,a.NZ)([o.id]),null)),t((0,lt.li)(o.id)),t((0,Dt.xg)())}))}),10)},frameWindow:e.window})})}var ki=n(33806),zi=n.n(ki);const Pi=e=>{let{onAreaChangeComplete:t,frameWindow:n,onAreaChangeStart:r,initialDraggingEvent:o}=e;const i=(0,s.wA)(),a=(0,s.d4)((e=>e.viewportState.zoomLevel)),c=(0,u.useRef)(null),[d,h]=(0,u.useState)({left:0,top:0,height:0,width:0}),[f,m]=(0,u.useState)(!1),[g,v]=(0,u.useState)(null),[y,b]=(0,u.useState)(_i.NOT_CREATED),[w,x]=(0,u.useState)(void 0),S=(0,br.Kw)((e=>{if(!(e.target&&c.current?.contains(e.target)||e===o))return;"touches"in e&&2===e.touches.length&&m(!0),i((0,we.Vc)(!0)),e.nativeEvent.stopImmediatePropagation(),(0,l.V1)(c.current);const t=c.current.getBoundingClientRect(),{clientY:r,clientX:a}=Si(e);h(t),v(new P.bR({x:a-t.left,y:r-t.top})),n.document.addEventListener("pointermove",_),n.document.addEventListener("pointerup",E,{capture:!0,once:!0}),n.document.addEventListener("touchmove",_),n.document.addEventListener("touchend",E,{capture:!0,once:!0})}));(0,u.useEffect)((()=>{o&&S(o)}),[o,S]);const _=(0,br.Kw)((e=>{if(!g||y===_i.CREATED)return;const{clientX:t,clientY:n}=Si(e);if(g.x!==t||g.y!==n){e.stopImmediatePropagation();const o=t-d.left,i=n-d.top,s=new P.rw({left:Math.max(0,Math.min(o,g.x)),top:Math.max(0,Math.min(i,g.y)),width:o<g.x?Math.min(g.x,g.x-o):Math.min(o-g.x,d.width-g.x),height:i<g.y?Math.min(g.y,g.y-i):Math.min(i-g.y,d.height-g.y)});x(s),b(_i.CREATING),y===_i.NOT_CREATED&&r?.(xi(s,a))}})),C=(0,br.aq)(),E=(0,br.Kw)((()=>{y!==_i.CREATED&&(m(!1),i((0,we.Vc)(!1)),v(null),w&&C()?(t?.(xi(w,a)),b(_i.CREATED)):b(_i.NOT_CREATED),n.document.removeEventListener("pointermove",_),n.document.removeEventListener("touchmove",_))})),k=w&&{x:w.left,y:w.top,width:w.width,height:w.height};return(0,oe.jsx)("div",{ref:c,className:zi().wrapper,onPointerUp:e=>e.stopPropagation(),role:"application",onPointerDown:S,onTouchStart:S,children:y!==_i.NOT_CREATED&&(0,oe.jsx)(gi,{position:k,onDragStart:()=>{(0,l.V1)(w),r?.(xi(w,a))},onDrag:(e,t)=>{if(f)return!1;x((e=>((0,l.V1)(e),e.merge({left:t.x,top:t.y}))))},onDragStop:()=>{(0,l.V1)(w),t?.(xi(w,a))},default:k,bounds:"parent",children:(0,oe.jsx)("div",{style:w?{width:w.width,height:w.height}:void 0,className:p()(zi().selectionBox,"PSPDFKit-Multiple-Selection-Box")})})})};function Ai(e){const t=(0,s.wA)(),n=(0,s.d4)((e=>e.annotations)),r=(0,s.d4)((e=>e.selectedAnnotationIds)),{pageIndex:o,window:i,initialDraggingEvent:l,multiAnnotationsUsingShortcut:c}=e;return b.LZ&&r.size>0?null:(0,oe.jsx)("div",{className:rn().canvas,children:(0,oe.jsx)(Pi,{onAreaChangeComplete:function(e){const r=n.filter((e=>e.pageIndex===o)).toArray(),l=[];r.forEach((t=>{let[n,r]=t;const o=r.boundingBox;e.isRectOverlapping(o)&&l.push(n)})),l.length?i.setTimeout((()=>{(0,s.vA)((()=>{b.LZ||t((0,we.J9)()),t((0,we.TT)((0,a.NZ)(l),null))}))}),b.nr?50:5):t((0,Dt.Vh)())},frameWindow:i,initialDraggingEvent:c?l:void 0})})}var Di=n(67748);const Ti=function(e){const{annotation:t,zoomLevel:n,isDisabled:r,isFocused:o,isSelected:i,onFocus:a,onBlur:l}=e,c=(0,ve.tz)(),{formatMessage:d}=c,p=(0,s.wA)(),h=u.useCallback((e=>{if(t instanceof ce.dh&&t.locked){if(t.lockedContents)return;setTimeout((()=>{p((0,we._G)(t.id))}),0)}else t instanceof ce.s9||t instanceof ce.dG?p((0,we.pw)(t,e,{selectedAnnotationShouldDrag:null,stopPropagation:!0,ignoreReadOnly:!0})):t instanceof ce.tr&&t.isCommentThreadRoot?p((0,we.pw)(t,e)):p((0,we.pw)(t,e,{selectedAnnotationShouldDrag:null,stopPropagation:!0}))}),[p,t]),f=u.useCallback((e=>{(0,B.s_)(t)&&(a?.(t,e),(0,B.oH)(t,e)&&p((0,we.wL)(t.id)))}),[p,a,t]),m=u.useCallback((e=>{l?.(t,e),(0,B.oH)(t,e)&&p((0,we.xP)(t.id))}),[p,l,t]);let g="";t instanceof ce.dG&&(g=`CommentThread-${t.id}`);const v=u.useRef(null),y=function(e,t){return t&&(e instanceof ce.xY||e instanceof ce.Eo||e instanceof ce.pP||e instanceof ce.dh||e instanceof ce.tr)}(t,o);u.useEffect((()=>{y&&v.current?.focus()}),[y]);const b=(0,br.ZC)(e),w=b?.isSelected,x=b?.isDisabled;u.useEffect((()=>{v.current&&v.current.ownerDocument.activeElement!==v.current&&void 0!==w&&void 0!==x&&(t instanceof ce.tr&&!w&&i?v.current?.focus():w&&!i&&r&&m((0,Xn.BL)("blur")))}),[t,m,i,r,w,x]);const S=(0,B.oG)(t,n),_={position:"absolute",top:t.boundingBox.top*n,left:t.boundingBox.left*n,width:t.boundingBox.width*S,height:t.boundingBox.height*S,pointerEvents:"none",...Ii(t,o)},C=u.useMemo((()=>function(e,t){if(e instanceof ce.dh){if("plain"===e.text.format)return e.text.value;if("xhtml"===e.text.format)return(new DOMParser).parseFromString(e.text.value,"text/html").body.textContent??void 0}if(e instanceof ce.s9)return e.text.value??void 0;if(e instanceof ce.xY)return(0,Di.AO)({annotation:e,intl:t})??void 0;return}(t,c)),[t,c]);return(0,oe.jsx)(ge.A,{disabled:r,onClick:h,onFocus:f,onBlur:m,"data-annotation-id":t.id,"aria-controls":g?`CommentThread-${t.id}`:void 0,"aria-label":`${d(xe.A.annotation)}: ${d((0,B.e3)(t))}. ${C??""}`,tabIndex:0,className:"PSPDFKit-Annotation-Keyboard-Navigable",style:_})};function Ii(e,t){return e instanceof ce.xY||e instanceof ce.dh?t?{outline:B.wp,outlineOffset:"10px"}:{}:(e instanceof ce.pP||e instanceof ce.tr)&&t?{outline:B.wp}:{}}function Mi(e,t){const n=Oi(e),r=Oi(t);return n>r?1:n<r?-1:0}function Ni(e,t){const n=Ri(e),r=Ri(t);return n>r?1:n<r?-1:0}function Oi(e){return e instanceof P.sb?3:e instanceof P.UL?2:e instanceof P.ax||e instanceof P.sB||e instanceof P.Yi||e instanceof P.TI?0:1}function Ri(e){return e.isSignature?3:e instanceof P.UL?2:e instanceof P.ax||e instanceof P.sB||e instanceof P.Yi||e instanceof P.TI?0:1}const ji=[L.O.SHAPE_LINE,L.O.SHAPE_RECTANGLE,L.O.SHAPE_ELLIPSE,L.O.SHAPE_POLYLINE,L.O.SHAPE_POLYGON],Fi=[L.O.DISTANCE,L.O.PERIMETER,L.O.RECTANGLE_AREA,L.O.ELLIPSE_AREA,L.O.POLYGON_AREA];var Bi=n(46952),Li=n(35224);const Vi=new Q.A,Ki={[H.YHd]:e=>e.set("debugMode",!0),[H.fAM]:e=>e.set("hasFetchedInitialRecordsFromInstant",!0),[H.ovX]:(e,t)=>{let{enabled:n}=t;return e.set("areClipboardActionsEnabled",n)},[H.bUk]:(e,t)=>{let{group:n}=t;return e.set("group",n)},[H.sWq]:e=>e.set("isDebugConsoleVisible",!0),[H.TY$]:e=>e.set("isDebugConsoleVisible",!1),[H.m$]:(e,t)=>{let{preset:n="text-highlighter"}=t;const r=new P.ax((0,B.mN)(e.set("currentItemPreset",n)));return e.withMutations((e=>{e.set("currentItemPreset",n),e.set("interactionMode",L.O.TEXT_HIGHLIGHTER),e.set("selectedAnnotationIds",(0,a.NZ)([r.id])),e.set("selectedAnnotationMode",V.Q.EDITING),n&&!(n in X.rM)&&e.setIn(["annotationPresetIds",r.id],n),e.setIn(["annotations",r.id],r)}))},[H.fmV]:e=>e.withMutations((t=>{t.set("currentItemPreset",null),t.set("interactionMode",null),e.interactionMode===L.O.TEXT_HIGHLIGHTER&&(0,B.Nc)(t),t.set("selectedAnnotationIds",(0,a.NZ)())})),[H.coD]:(e,t)=>{let{preset:n="redaction"}=t;const r=new Y.A((0,B.mN)(e.set("currentItemPreset",n)));return e.withMutations((e=>{e.set("currentItemPreset",n),e.set("interactionMode",L.O.REDACT_TEXT_HIGHLIGHTER),e.set("selectedAnnotationIds",(0,a.NZ)([r.id])),e.set("selectedAnnotationMode",V.Q.EDITING),n&&!(n in X.rM)&&e.setIn(["annotationPresetIds",r.id],n),e.setIn(["annotations",r.id],r)}))},[H.LvH]:e=>e.withMutations((t=>{t.set("currentItemPreset",null),t.set("interactionMode",null),e.interactionMode===L.O.REDACT_TEXT_HIGHLIGHTER&&(0,B.Nc)(t),t.set("selectedAnnotationIds",(0,a.NZ)())})),[H.Ep5]:(e,t)=>{let{editor:n}=t;return e.set("richTextEditorRef",n)},[H.dqA]:(e,t)=>{let{preset:n}=t;return e.withMutations((e=>{e.set("interactionMode",L.O.MEASUREMENT),void 0!==n&&e.set("currentItemPreset",n)}))},[H.qvB]:e=>e.set("interactionMode",null),[H.nXN]:(e,t)=>{let{preset:n}=t;const r=new P.Eo((0,B.mN)(e));return e.withMutations((t=>{t.set("interactionMode",L.O.INK),t.set("interactionsDisabled",!0),t.set("selectedAnnotationIds",(0,a.NZ)([r.id])),t.set("selectedAnnotationMode",V.Q.EDITING),void 0!==n&&t.set("currentItemPreset",n);const o=void 0!==n?n:e.currentItemPreset;o&&!X.rM[o]&&t.setIn(["annotationPresetIds",r.id],o),t.setIn(["annotations",r.id],r)}))},[H.oiE]:e=>e.set("interactionMode",null),[H.a6C]:e=>e.withMutations((e=>{e.set("interactionMode",L.O.INK_ERASER),e.set("selectedAnnotationIds",(0,a.NZ)()),e.set("interactionsDisabled",!0)})),[H.TV2]:e=>e.withMutations((e=>{e.set("interactionMode",null),e.set("interactionsDisabled",!1)})),[H.tTM]:(e,t)=>{let{signatureRect:n,signaturePageIndex:r,formFieldName:o}=t;null!==r&&(0,l.V1)("number"==typeof r&&r>=0&&r<e.totalPages,"pageIndex must be a number between 0 and "+(e.totalPages-1)),null!==o&&(0,l.V1)("string"==typeof o,"formFieldName must be a string");const i={annotations:(0,a.B8)([new P.Eo({isSignature:!0,pageIndex:r})]),reason:ee.x.SELECT_START};return e.eventEmitter.emit("annotations.willChange",i),e.withMutations((e=>{e.set("interactionMode",L.O.SIGNATURE),e.setIn(["signatureState","signatureRect"],n),e.setIn(["signatureState","signaturePageIndex"],r),e.setIn(["signatureState","formFieldName"],o)}))},[H.uWd]:e=>e.withMutations((e=>{e.set("widgetAnnotationToFocus",null),e.set("interactionMode",null),e.set("currentItemPreset",null),e.setIn(["signatureState","formFieldName"],null),e.setIn(["signatureState","signatureRect"],null),e.setIn(["signatureState","signaturePageIndex"],null)})),[H.h0k]:e=>{const t={annotations:(0,a.B8)([new P.xY({pageIndex:e.viewportState.currentPageIndex})]),reason:ee.x.SELECT_START};return e.eventEmitter.emit("annotations.willChange",t),e.withMutations((e=>{e.set("interactionMode",L.O.STAMP_PICKER),e.set("currentItemPreset",null)}))},[H.Cj7]:e=>e.withMutations((e=>{e.set("interactionMode",L.O.STAMP_CUSTOM),e.set("currentItemPreset",null)})),[H.How]:e=>e.withMutations((e=>{e.set("interactionMode",null)})),[H.GJD]:(e,t)=>{const n=Fi.includes(t.shapeInteractionMode),r=(0,B.mN)(e),{activeMeasurementScale:o,isCalibratingScale:i}=e;n&&(r.measurementScale=o?.scale?new Li.A({fromValue:Number(o.scale.fromValue),toValue:Number(o.scale.toValue),unitFrom:o.scale.unitFrom,unitTo:o.scale.unitTo}):e.measurementScale,r.measurementPrecision=o?.precision?o.precision:e.measurementPrecision,i&&(r.strokeColor=P.Q1.BLUE));const s=new t.shapeClass(r);return e.withMutations((n=>{n.set("interactionMode",t.shapeInteractionMode),n.set("interactionsDisabled",!0),n.set("selectedAnnotationIds",(0,a.NZ)([s.id])),n.set("selectedAnnotationMode",V.Q.EDITING),void 0!==t.preset&&n.set("currentItemPreset",t.preset);const r=void 0!==t.preset?t.preset:e.currentItemPreset;r&&!X.rM[r]&&n.setIn(["annotationPresetIds",s.id],r),n.setIn(["annotations",s.id],s)}))},[H.tSE]:e=>e.withMutations((e=>{e.set("interactionMode",null)})),[H.SI]:(e,t)=>{let{preset:n="redaction"}=t;const r=new Y.A((0,B.mN)(e.set("currentItemPreset",n)));return e.withMutations((e=>{e.set("currentItemPreset",n),e.set("interactionMode",L.O.REDACT_SHAPE_RECTANGLE),e.set("interactionsDisabled",!0),e.set("selectedAnnotationIds",(0,a.NZ)([r.id])),e.set("selectedAnnotationMode",V.Q.EDITING),n&&!(n in X.rM)&&e.setIn(["annotationPresetIds",r.id],n),e.setIn(["annotations",r.id],r)}))},[H.bjH]:e=>e.withMutations((t=>{t.set("interactionMode",null),t.set("currentItemPreset",null),e.interactionMode===L.O.REDACT_SHAPE_RECTANGLE&&(0,B.Nc)(t),t.set("selectedAnnotationIds",(0,a.NZ)())})),[H.Vrp]:(e,t)=>{const{annotation:n,preset:r}=t,o=n||new P.s9((0,B.mN)(e));return e.withMutations((t=>{t.set("interactionMode",L.O.NOTE),t.set("selectedAnnotationIds",(0,a.NZ)([o.id])),t.set("selectedAnnotationMode",V.Q.EDITING),void 0!==r&&t.set("currentItemPreset",r);const n=void 0!==r?r:e.currentItemPreset;n&&!X.rM[n]&&t.setIn(["annotationPresetIds",o.id],n),t.setIn(["annotations",o.id],o)}))},[H.SB]:e=>e.withMutations((e=>{e.set("interactionMode",null)})),[H.DIz]:(e,t)=>{const n=t.annotation?t.annotation:new P.dG((0,B.mN)(e));return e.withMutations((e=>{e.set("selectedAnnotationIds",(0,a.NZ)([n.id])),e.set("selectedAnnotationMode",V.Q.EDITING),e.setIn(["annotations",n.id],n),e.set("interactionMode",L.O.COMMENT_MARKER),e.set("currentItemPreset",null)}))},[H.Ajq]:e=>e.set("interactionMode",null),[H.iZ4]:(e,t)=>{const{annotation:n,preset:r}=t;let i=n;if(!i&&(i=new P.dh((0,B.mN)(e)),e.enableRichText(i))){const e=o.Dl.setStyleOrToggleFormat(i.text.value||"","fontColor",i.fontColor?.toHex()||"");i=i.set("fontColor",null).set("text",{format:"xhtml",value:e})}const s=i.id;return e.withMutations((n=>{n.set("interactionMode",t.isCallout?L.O.CALLOUT:L.O.TEXT),void 0!==r&&n.set("currentItemPreset",r);const o=void 0!==r?r:e.currentItemPreset;o&&!X.rM[o]&&n.setIn(["annotationPresetIds",s],o),n.setIn(["annotations",s],i),n.set("selectedAnnotationIds",(0,a.NZ)([s])),n.set("selectedAnnotationMode",V.Q.EDITING)}))},[H.DSK]:e=>e.withMutations((e=>{e.set("interactionMode",null)})),[H.vjS]:e=>e.withMutations((e=>{e.set("interactionMode",L.O.DOCUMENT_CROP),e.set("interactionsDisabled",!0),e.set("currentItemPreset",null)})),[H.qDC]:e=>e.withMutations((e=>{e.set("interactionMode",null),e.set("interactionsDisabled",!1),e.set("cropArea",null),e.set("cropPageIndex",null)})),[H.uby]:e=>e.set("interactionsDisabled",!1),[H.r9i]:e=>e.set("interactionsDisabled",!0),[H.mOc]:e=>e.set("showToolbar",!0),[H.bD_]:e=>e.set("showToolbar",!1),[H.Ot4]:e=>e.set("enableAnnotationToolbar",!0),[H.N6A]:e=>e.set("enableAnnotationToolbar",!1),[H.iry]:(e,t)=>e.set("clientsChangeCallback",t.callback),[H.K6V]:(e,t)=>e.set("transformClientToPage",t.transformClientToPage),[H.SuH]:(e,t)=>{const n=t.width>0?Math.abs(t.width-e.scrollbarOffset):-1*e.scrollbarOffset,r=(0,Z.xd)(e.viewportState,e.viewportState.viewportRect,!1,n);return e.merge({viewportState:r,scrollbarOffset:t.width})},[H.ENJ]:(e,t)=>{let{layoutMode:n}=t;return e.update("viewportState",(e=>(0,Z.A8)(e,n)))},[H.Jgj]:(e,t)=>{let{scrollMode:n}=t;return e.update("viewportState",(e=>(0,Z.r7)(e,n)))},[H.cmb]:(e,t)=>{let{scrollElement:n}=t;return e.set("scrollElement",n)},[H.pmk]:(e,t)=>{let{spreadSpacing:n}=t;return e.set("viewportState",(0,Z.tE)(e.viewportState,n))},[H.hIA]:(e,t)=>{let{pageSpacing:n}=t;return e.set("viewportState",(0,Z.xw)(e.viewportState,n))},[H.Xt9]:(e,t)=>{let{keepFirstSpreadAsSinglePage:n}=t;return e.set("viewportState",(0,Z.nx)(e.viewportState,n))},[H.SA4]:(e,t)=>{let{viewportPadding:n}=t;return e.set("viewportState",(0,Z.gK)(e.viewportState,n))},[H.GFn]:e=>e.set("printingEnabled",!0),[H.N00]:e=>e.set("printingEnabled",!1),[H.LPm]:e=>e.set("exportEnabled",!0),[H.sMs]:e=>e.set("exportEnabled",!1),[H.av_]:(e,t)=>{let{readOnlyEnabled:n}=t;return e.set("readOnlyEnabled",n)},[H.P5p]:e=>e.set("showAnnotations",!0),[H.QVN]:e=>e.set("showAnnotations",!1),[H.l58]:e=>e.set("showComments",!0),[H.oFF]:e=>e.set("showComments",!1),[H.CD4]:e=>e.set("showAnnotationNotes",!0),[H.$hc]:e=>e.set("showAnnotationNotes",!1),[H.H_3]:e=>((0,l.V1)(!e.backendPermissions.readOnly,"Can not disable read only mode."),e.set("readOnlyEnabled",ne.g.NO)),[H.POx]:(e,t)=>{let{features:n}=t;return(0,l.V1)(0===e.features.size,"Cannot alterate the supported features list after initialization."),n.includes(te.Y.FORMS)||(e=e.set("formsEnabled",!1)),(0,gn.UX)(n)||n.includes(te.Y.ELECTRONIC_SIGNATURES)||(e=(e=e.set("readOnlyEnabled",ne.g.LICENSE_RESTRICTED)).setIn(["backendPermissions","readOnly"],!0)),e.set("features",n)},[H.h31]:(e,t)=>{let{signatureFeatureAvailability:n}=t;return(0,l.V1)(!e.signatureFeatureAvailability,"Cannot alterate the signature feature availability after initialization."),e.set("signatureFeatureAvailability",n)},[H.SlF]:(e,t)=>{let{mode:n}=t;return e.set("sidebarMode",n)},[H.iGi]:(e,t)=>{let{placement:n}=t;return e.set("sidebarPlacement",n)},[H.FKq]:(e,t)=>{let{sidebarOptions:n}=t;return e.set("sidebarOptions",n)},[H.TBQ]:(e,t)=>{let{showSignatureValidationStatus:n}=t;return e.set("showSignatureValidationStatus",n)},[H.h6f]:(e,t)=>{let{locale:n}=t;return e.set("locale",n)},[H.evn]:(e,t)=>{let{annotationCreatorName:n,immutable:r}=t;return e.set("annotationCreatorName",n).set("annotationCreatorNameReadOnly",r)},[H.MC9]:(e,t)=>{let{editableAnnotationTypes:n}=t;return e.set("editableAnnotationTypes",n).set("isEditableAnnotation",null)},[H.lp_]:(e,t)=>{let{isEditableAnnotation:n}=t;return e.set("isEditableAnnotation",n).set("editableAnnotationTypes",(0,a.NZ)(J.A))},[H.mb6]:(e,t)=>{let{editableAnnotationTypes:n,isEditableAnnotation:r}=t;return e.set("isEditableAnnotation",r).set("editableAnnotationTypes",n)},[H.dnz]:(e,t)=>{let{isEditableComment:n}=t;return e.set("isEditableComment",n)},[H.bD6]:(e,t)=>{let{formDesignMode:n}=t;return e.withMutations((t=>{t.set("formDesignMode",n),!1===n&&t.set("selectedAnnotationIds",e.selectedAnnotationIds.filter((t=>e.annotations.get(t)&&!(e.annotations.get(t)instanceof P.sb))))}))},[H.k5x]:e=>e.set("interactionMode",L.O.DOCUMENT_EDITOR),[H.LPR]:(e,t)=>{let{measurementSnapping:n}=t;return e.set("measurementSnapping",n)},[H.ZN_]:(e,t)=>{let{measurementPrecision:n}=t;return e.set("measurementPrecision",n)},[H.zRM]:(e,t)=>{let{scale:n}=t;return e.set("measurementScale",n)},[H.R_L]:e=>e.set("interactionMode",null),[H.ZSp]:e=>e.set("interactionMode",L.O.MARQUEE_ZOOM),[H.q$5]:(e,t)=>{let{interactionMode:n}=t;return e.set("interactionMode",n)},[H.rw4]:e=>e.set("interactionMode",null),[H.C1Z]:e=>e.set("interactionMode",null),[H.vjD]:(e,t)=>e.set("customRenderers",t.customRenderers),[H.Td6]:e=>e.withMutations((e=>{e.set("isSigning",!0),e.set("interactionsDisabled",!0)})),[H.Gsj]:e=>e.withMutations((e=>{e.set("isSigning",!1),e.set("interactionsDisabled",!1)})),[H.JMw]:e=>e.withMutations((e=>{e.set("isApplyingRedactions",!0),e.set("interactionsDisabled",!0)})),[H.ozB]:e=>e.withMutations((e=>{e.set("isApplyingRedactions",!1),e.set("interactionsDisabled",!1)})),[H.QlR]:(e,t)=>{let{previewRedactionMode:n}=t;return e.set("previewRedactionMode",n)},[H.dBd]:(e,t)=>e.set("a11yStatusMessage",t.a11yStatusMessage),[H.tJg]:(e,t)=>{let{lastToolbarActionUsedKeyboard:n}=t;return e.set("lastToolbarActionUsedKeyboard",n)},[H.h0V]:(e,t)=>{let{documentComparisonState:n}=t;return e.set("documentComparisonState",n?{...e.documentComparisonState,...n}:null)},[H.tEU]:e=>e.set("canScrollWhileDrawing",!0),[H.AcT]:e=>e.set("canScrollWhileDrawing",!1),[H.loZ]:e=>e.set("keepSelectedTool",!0),[H.s_A]:e=>e.set("keepSelectedTool",!1),[H.kyl]:(e,t)=>{const n=e.viewportState.set("disablePointSnapping",t.disablePointSnapping);return e.set("viewportState",n)},[H.JFC]:(e,t)=>{let{instance:n}=t;return e.set("instance",n)},[H.Q5I]:(e,t)=>{let{customUIStore:n}=t;return e.set("customUIStore",n)},[H.ZTP]:e=>{const t=new P.UL((0,B.mN)(e)),n="link";return e.withMutations((e=>{e.set("linkAnnotationMode",!0),e.set("interactionMode",L.O.LINK),e.set("selectedAnnotationIds",(0,a.NZ)([t.id])),e.set("selectedAnnotationMode",V.Q.EDITING),e.setIn(["annotations",t.id],t),e.set("currentItemPreset",n);const r=n;r&&!X.rM[r]&&e.setIn(["annotationPresetIds",t.id],r)}))},[H.BmW]:e=>e.withMutations((e=>{e.set("linkAnnotationMode",!1)})),[H.CdF]:(e,t)=>{let{multiAnnotationsUsingShortcut:n}=t;return e.withMutations((t=>{e.isMultiSelectionEnabled&&(t.set("interactionMode",L.O.MULTI_ANNOTATIONS_SELECTION),t.set("selectedAnnotationIds",(0,a.NZ)()),t.set("selectedAnnotationMode",V.Q.SELECTED),t.set("multiAnnotationsUsingShortcut",n))}))},[H.nN5]:e=>e.withMutations((e=>{e.set("interactionMode",null),e.set("multiAnnotationsUsingShortcut",null)})),[H.TVi]:e=>e.set("interactionMode",L.O.MEASUREMENT_SETTINGS),[H.IMM]:e=>e.set("interactionMode",null),[H.FJm]:(e,t)=>{let{annotationsIds:n}=t;return e.withMutations((e=>{const{annotationsGroups:t,annotations:r}=e,o=r.find((e=>e.get("id")===n.first()))?.get("pageIndex");n.forEach((e=>{const t=r.find((t=>t.id===e));(0,l.V1)(t,`Annotation with id ${e} couldn't be found.`),(0,l.V1)(o===t.get("pageIndex"),"Annotations can't be grouped if they are not on the same page")}));const i=t.map((e=>{const t=e.annotationsIds;return e.annotationsIds=t.filter((e=>!n.includes(e))),e})).filter((e=>e.annotationsIds.size>0)),s=(0,Bi.A)();e.set("annotationsGroups",i.set(s,{groupKey:s,annotationsIds:(0,a.NZ)(n)})),e.set("selectedGroupId",s)}))},[H.Rql]:(e,t)=>{let{groupId:n}=t;return e.set("selectedGroupId",n)},[H.Xet]:(e,t)=>{let{pullToRefreshNewState:n}=t;return e.set("disablePullToRefresh",n)},[H.yT6]:(e,t)=>{let{groupId:n}=t;return n?e.withMutations((e=>{const{annotationsGroups:t}=e;e.set("annotationsGroups",t.delete(n)),e.set("selectedGroupId",null)})):e},[H.mS9]:(e,t)=>{let{annotationId:n,groupId:r}=t;return e.withMutations((e=>{const{annotationsGroups:t}=e,o=t.get(r);o&&(e.set("annotationsGroups",t.set(r,{groupKey:r,annotationsIds:o.annotationsIds.delete(n)})),e.set("selectedGroupId",null))}))},[H.SwZ]:(e,t)=>{let{customFontsReadableNames:n}=t;return e.set("customFontsReadableNames",n)},[H.VWe]:(e,t)=>{const n=e.viewportState.set("enableAlwaysScrollToZoom",t.enableAlwaysScrollToZoom);return e.set("viewportState",n)},[H.Sb4]:(e,t)=>{const n=e.viewportState.set("forceRenderWidgetsInAnnotationsOrder",t.forceRenderWidgetsInAnnotationsOrder);return e.set("viewportState",n)},[H._z4]:(e,t)=>e.set("evaluation",t.evaluation),[H.hEI]:(e,t)=>{const n=e.viewportState.set("prerenderedPageSpreads",t.prerenderedPageSpreads);return e.set("viewportState",n)},[H.xt3]:(e,t)=>e.withMutations((e=>{e.set("attachmentToPreview",t.attachment),e.set("interactionMode",L.O.ATTACHMENT_PREVIEW)})),[H.MVW]:e=>e.set("interactionMode",null),[H.t_f]:(e,t)=>e.setIn(["aiAssistant","configuration"],t.configuration),[H.bSs]:(e,t)=>e.setIn(["aiAssistant","show"],t.showAIAssistant),[H.MTb]:(e,t)=>t.currentTextSelection&&t.currentTextSelection.textRange?e.setIn(["aiAssistant","additionalContext"],{text:(0,ko.q4)(e,t.currentTextSelection),pageIndex:t.currentTextSelection.startPageIndex,boundingBox:(0,ko.Pm)(e,t.currentTextSelection.textRange,!0)}):e.setIn(["aiAssistant","additionalContext"],null),[H.uW3]:(e,t)=>e.set("isServerModeDownloadingWASM",t.isServerModeDownloadingWASM),[H.zD7]:(e,t)=>e.set("isServerModeDownloadingDocument",t.isServerModeDownloadingDocument)};function Hi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vi,t=arguments.length>1?arguments[1]:void 0;const n=Ki[t.type];return n?n(e,t):e}var $i=n(92314);const Ui=new P.Uw,Wi={[H.Ztu]:(e,t)=>e.set("connectionState",new P.KN({name:$i.D.CONNECTING,reason:t.reason,progress:t.progress})),[H.fnC]:e=>e.set("connectionState",new P.KN({name:$i.D.DOWNLOADING_DOCUMENT,reason:"Downloading...",progress:null})).set("wasLinearized",!0),[H._YG]:e=>e.set("connectionState",new P.KN({name:$i.D.CONNECTED})),[H.VhV]:(e,t)=>e.set("connectionState",new P.KN({name:$i.D.CONNECTION_FAILED,reason:t.reason})),[H.rJq]:(e,t)=>e.set("annotationManager",t.annotationManager),[H.mQT]:(e,t)=>e.set("bookmarkManager",t.bookmarkManager),[H.re3]:(e,t)=>e.set("formFieldValueManager",t.formFieldValueManager),[H.fjq]:(e,t)=>e.set("formFieldManager",t.formFieldManager),[H.$1_]:(e,t)=>e.set("commentManager",t.commentManager),[H.eko]:(e,t)=>e.set("changeManager",t.changeManager),[H.PMu]:(e,t)=>e.set("connectionState",new P.KN({name:$i.D.PASSWORD_REQUIRED})).set("resolvePassword",t.resolvePassword),[H.njw]:e=>e.set("isUnlockedViaModal",!0).set("resolvePassword",null),[H.ErL]:(e,t)=>e.set("hasPassword",t.hasPassword),[H.zvJ]:(e,t)=>e.set("allowedTileScales",t.allowedTileScales)};function qi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ui,t=arguments.length>1?arguments[1]:void 0;const n=Wi[t.type];return n?n(e,t):e}const Gi=new P.Uw,Zi={[H.Y8N]:(e,t)=>{const{item:n}=t;return(0,ye.V)(e.pages.get(n.pageIndex),`Trying to insert a CustomOverlayItem at pageIndex ${n.pageIndex}. But such a page does not exist.`),e.withMutations((e=>{e.updateIn(["pages",n.pageIndex,"customOverlayItemIds"],(0,$.C$)((e=>e.add(n.id)))).setIn(["customOverlayItems",n.id],n)}))},[H.UvZ]:(e,t)=>{const n=e.customOverlayItems.get(t.id);return(0,ye.V)(n,"CustomOverlayItem not found"),e.withMutations((e=>{e.deleteIn(["pages",n.pageIndex,"customOverlayItemIds",n.id]).deleteIn(["customOverlayItems",n.id])}))}};function Yi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gi,t=arguments.length>1?arguments[1]:void 0;const n=Zi[t.type];return n?n(e,t):e}const Xi=new P.Uw,Ji={[H.wY4]:(e,t)=>e.set("digitalSignatures",t.digitalSignatures)};function Qi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xi,t=arguments.length>1?arguments[1]:void 0;const n=Ji[t.type];return n?n(e,t):e}function ea(e,t){return e.map(((e,n)=>{let{title:r,children:o}=e;const i=`${t}${t?"-":""}${n+1}`;return{id:i,label:r,children:o.size?ea(o,i):void 0}})).toJS()}function ta(e,t,n){return t.reduce(((t,r,o)=>{let{isExpanded:i,children:a}=r;const s=`${n}${n?"-":""}${o+1}`;return(e.has(s)||i)&&t.add(s),a.size&&ta(t,a,s),t}),e)}const na=new Q.A,ra={[H.qOc]:(e,t)=>{let{outline:n}=t;return e.withMutations((e=>{e.setIn(["documentOutlineState","elements"],n),e.setIn(["documentOutlineState","expanded"],ta(new Set,n,""))}))},[H.fPp]:(e,t)=>{let{newState:n}=t;return e.setIn(["documentOutlineState","expanded"],n)}};function oa(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:na,t=arguments.length>1?arguments[1]:void 0;const n=ra[t.type];return n?n(e,t):e}var ia=n(63573),aa=n(17053),sa=n(69979),la=n(96754);const ca=new P.Uw,ua={[H.ASR]:e=>{const{viewportState:t}=e,n=(0,ia.NZ)(t,t.currentPageIndex),r=(0,ia.og)(t),o=n>=r-1?r-1:n+1,i=(0,ia.dD)(t,o)[0];return(0,l.V1)("number"==typeof i,"Can not find the next pageIndex."),e.withMutations((t=>{t.set("viewportState",(0,aa.X_)(e.viewportState,i)),t.set("hoverAnnotationIds",(0,a.NZ)())}))},[H.wYS]:e=>{const{viewportState:t}=e,n=(0,ia.NZ)(t,t.currentPageIndex),r=n<=0?0:n-1,o=(0,ia.dD)(t,r)[0];return(0,l.V1)("number"==typeof o,"Can not find the next pageIndex."),e.withMutations((n=>{n.set("viewportState",(0,aa.X_)(e.viewportState,o)),o!==t.currentPageIndex&&n.set("hoverAnnotationIds",(0,a.NZ)())}))},[H.NjH]:(e,t)=>{const{pageIndex:n}=t;return(0,l.V1)(n>=0&&n<e.totalPages,"pageIndex out of bounds"),e.withMutations((t=>{t.set("viewportState",(0,aa.X_)(e.viewportState,n)),n!==e.viewportState.currentPageIndex&&t.set("hoverAnnotationIds",(0,a.NZ)())}))},[H.TpQ]:(e,t)=>{const{scrollPosition:n,lastScrollUsingKeyboard:r=!1}=t;return e.set("viewportState",(0,aa.ZA)(e.viewportState,n).set("lastScrollUsingKeyboard",r))},[H.e$c]:(e,t)=>{let{pageIndex:n,rect:r}=t;return e.set("viewportState",(0,aa.YQ)(e.viewportState,n,r))},[H.yI7]:(e,t)=>{let{pageIndex:n,rect:r}=t;return e.set("viewportState",(0,aa.kw)(e.viewportState,n,r))},[H.vSr]:(e,t)=>{let{viewportRect:n,isTriggeredByOrientationChange:r}=t;const o=P.rw.fromClientRect(e.rootElement?.getBoundingClientRect()),i=(0,Z.xd)(e.viewportState,n,r,e.scrollbarOffset);return e.withMutations((e=>{e.set("containerRect",o),e.set("viewportState",i)}))},[H._XN]:(e,t)=>{let n=(0,sa.Qp)(e.viewportState,t.zoomLevel);return t.scrollPosition&&(n=n.set("scrollPosition",t.scrollPosition)),e.set("viewportState",n)},[H.C7_]:(e,t)=>{const n=e.viewportState.set("zoomStep",t.zoomStep);return e.set("viewportState",n)},[H.o1d]:(e,t)=>e.set("viewportState",t.viewportState),[H.UrP]:e=>e.set("viewportState",(0,sa.Qp)(e.viewportState,e.viewportState.zoomLevel*e.viewportState.zoomStep)),[H.hUH]:e=>e.set("viewportState",(0,sa.Qp)(e.viewportState,e.viewportState.zoomLevel/e.viewportState.zoomStep)),[H.iU1]:e=>e.set("viewportState",(0,sa.Qp)(e.viewportState,la.d.AUTO)),[H.XZE]:e=>e.set("viewportState",(0,sa.Qp)(e.viewportState,la.d.FIT_TO_VIEWPORT)),[H.T7d]:e=>e.set("viewportState",(0,sa.Qp)(e.viewportState,la.d.FIT_TO_WIDTH)),[H.$w5]:(e,t)=>{const n=e.viewportState.set("wheelZoomMode",t.wheelZoomMode);return e.set("viewportState",n)},[H.ym1]:(e,t)=>e.set("viewportState",e.viewportState.set("isLegacyZoom",t.isLegacyZoom)),[H.CHH]:(e,t)=>e.set("viewportState",e.viewportState.set("zoomOptions",t.zoomOptions)),[H.UWX]:(e,t)=>{let{degCW:n}=t;return e.update("viewportState",(e=>(0,je.e$)(e,n)))},[H.Qti]:e=>e.set("interactionMode",L.O.PAN),[H.Z8]:e=>e.set("interactionMode",null),[H.lxe]:(e,t)=>{let{width:n}=t;return e.set("sidebarWidth",n)},[H.twv]:(e,t)=>{let{shouldDisable:n}=t;return e.set("scrollDisabled",n)}};function da(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ca,t=arguments.length>1?arguments[1]:void 0;const n=ua[t.type];return n?n(e,t):e}var pa=n(46907),ha=n(25028),fa=n(32784),ma=n(45408),ga=n(62322),va=n(5293),ya=n(1886),ba=n.n(ya),wa=n(84318),xa=n(55236);const Sa=new P.Uw,_a={[H.iMO]:(e,t)=>{const n=e.pages.map((e=>e.pageKey)),r=e.pages.map((e=>e.contentBlocks)),o=e.pages.map((e=>e.textLineScales)),i=(0,a.B8)(t.payload).map((t=>{const i=new P.or({width:t.width,height:t.height}),s=n.get(t.pageIndex)||(0,Bi.A)(),l=r.get(t.pageIndex)||null,c=o.get(t.pageIndex),u=e.pages.get(t.pageIndex)?.annotationIds||(0,a.CD)();return new P.YW({...t,matrix:(0,ga.j)(t.matrix),reverseMatrix:(0,ga.j)(t.reverseMatrix),untransformedRect:(0,va.a)(t.untransformedBBox),transformedRect:(0,va.a)(t.transformedBBox),rawPdfBoxes:t.rawPdfBoxes,pageKey:s,pageSize:i,isPageSizeReal:!0,annotationIds:u,...!e.reuseState&&e.wasLinearized?{contentBlocks:l,textLineScales:c}:{}})})),s=i.map((e=>e.pageSize));return e.withMutations((e=>{const t=e.viewportState.set("pageSizes",s);e.set("pages",i),e.set("viewportState",t)}))},[H.uO1]:(e,t)=>{const n=e.pages.get(t.pageIndex),r=new P.or({width:t.pageInfo.width,height:t.pageInfo.height}),o=new P.YW({...t.pageInfo,pageIndex:t.pageIndex,matrix:(0,ga.j)(t.pageInfo.matrix),reverseMatrix:(0,ga.j)(t.pageInfo.reverseMatrix),untransformedRect:(0,va.a)(t.pageInfo.untransformedBBox),transformedRect:(0,va.a)(t.pageInfo.transformedBBox),rawPdfBoxes:t.pageInfo.rawPdfBoxes,pageKey:n?.pageKey||(0,Bi.A)(),pageSize:r,isPageSizeReal:!0,annotationIds:n?.annotationIds,contentBlocks:n?.contentBlocks,textLineScales:n?.textLineScales});return e.withMutations((e=>{const n=e.pages.set(t.pageIndex,o),r=n.map((e=>e.pageSize)),i=e.viewportState.set("pageSizes",r);e.set("pages",n),e.set("viewportState",i)}))},[H.TTm]:(e,t)=>{let n;n=e.wasLinearized&&e.pages.size==t.payload.pages.length?e.pages:(0,a.B8)(t.payload.pages).map((n=>{const r=e.pages.get(n.pageIndex),o=new P.or({width:n.width,height:n.height});return new P.YW({...n,pageIndex:n.pageIndex,matrix:(0,ga.j)(n.matrix),reverseMatrix:(0,ga.j)(n.reverseMatrix),untransformedRect:(0,va.a)(n.untransformedBBox),transformedRect:(0,va.a)(n.transformedBBox),rawPdfBoxes:n.rawPdfBoxes,pageKey:t.pageKeys?.get(n.pageIndex)||(0,Bi.A)(),pageSize:o,isPageSizeReal:!!e.arePageSizesLoaded,...!e.reuseState&&e.wasLinearized?{contentBlocks:r?.contentBlocks,textLineScales:r?.textLineScales}:{}})}));const r=n.map((e=>e.pageSize));return e.withMutations((o=>{let i=o.viewportState.set("pageSizes",r);if(o.set("pages",n),o.set("totalPages",n.size),o.set("documentPermissions",new pa.A(Xe.JY.IGNORE_DOCUMENT_PERMISSIONS?void 0:t.payload.permissions)),i.currentPageIndex>=n.size&&(i=i.set("currentPageIndex",0)),i.zoomMode===la.d.CUSTOM){const e=(0,sa.m0)(i),t=(0,sa.m9)(i);(i.zoomLevel<e||i.zoomLevel>t)&&(i=i.set("zoomMode",la.d.AUTO))}if(i=i.zoomMode===la.d.CUSTOM?i.merge({zoomLevel:(0,sa.eh)(i,i.zoomLevel)}):i.merge({zoomLevel:(0,sa.eh)(i,i.zoomMode)}),i.scrollMode===ha.V.PER_SPREAD&&(i=(0,Z.r7)(i.set("scrollMode",ha.V.CONTINUOUS),ha.V.PER_SPREAD)),i.scrollMode===ha.V.DISABLED&&(i=(0,Z.r7)(i.set("scrollMode",ha.V.CONTINUOUS),ha.V.DISABLED)),i.currentPageIndex>0&&!e.wasLinearized){if(0===i.viewportRect.width||0===i.viewportRect.height){let t=e.containerRect;e.showToolbar&&(t=t.set("top",xa.e4).set("height",t.height-xa.e4)),i=i.set("viewportRect",t)}i=(0,aa.X_)(i.set("currentPageIndex",0),i.currentPageIndex)}o.set("viewportState",i)}))},[H.u8m]:(e,t)=>{const n={},r=(0,a.T5)().withMutations((r=>{const o={};function i(t){t.textLines.forEach((t=>{if(!t.id)return;let r={};const i=(0,wa.lg)((0,wa.IP)(t.hints));i&&(r={fontFamily:i},n[t.id]=i),o[t.id]={measurement:new Zn.a(e.frameWindow?.document,(0,a.B8)([(0,fa.O6)((0,gn.Xm)(e),t)]),r,ba().line,e.shadowRoot),textLine:t}})),t.contentBlocks.forEach((e=>{i(e)}))}t.contentBlocks.forEach((e=>{i(e)}));for(const e in o){const{measurement:t,textLine:n}=o[e],i=t.measure().get(0);(0,ye.V)(i),r.set(parseInt(e),{scaleX:n.boundingBox.width/i.width,scaleY:n.boundingBox.height/i.height})}for(const e in o){const{measurement:t}=o[e];t.remove()}}));return e.setIn(["pages",t.pageIndex,"contentBlocks"],t.contentBlocks).setIn(["pages",t.pageIndex,"textLineScales"],r).setIn(["pages",t.pageIndex,"textElementFonts"],n)},[H.dVR]:(e,t)=>{let{backendPermissions:n}=t;return e.withMutations((e=>{n.readOnly&&e.set("readOnlyEnabled",ne.g.VIA_BACKEND_PERMISSIONS),n.downloadingAllowed||(e.set("exportEnabled",!1),e.set("printingEnabled",!1)),e.set("backendPermissions",n)}))},[H.SJ7]:e=>e.withMutations((e=>{e.set("annotations",(0,a.T5)()),e.set("attachments",(0,a.T5)()),e.set("formFields",(0,a.T5)()),e.set("currentTextSelection",null),e.set("interactionMode",null),e.set("selectedAnnotationIds",(0,a.NZ)()),e.set("selectedAnnotationShouldDrag",null),e.set("selectedAnnotationMode",null),e.set("activeAnnotationNote",null),e.set("interactionsDisabled",!1),e.set("annotationPresetIds",(0,a.T5)()),e.set("documentOutlineState",new P.bU),e.set("comments",(0,a.T5)()),e.set("commentThreads",(0,a.T5)()),e.set("invalidAPStreams",(0,a.T5)()),e.set("searchState",new ma.A)})),[H.K2b]:(e,t)=>e.set("documentHandle",t.documentHandle).set("isDocumentHandleOutdated",!1),[H.VmY]:(e,t)=>e.set("isDocumentHandleOutdated",t.isDocumentHandleOutdated),[H.ulm]:(e,t)=>e.set("reuseState",t.state?new Q._(t.state):null),[H.LAB]:(e,t)=>e.withMutations((e=>{t.pageIndexes.forEach((t=>{e.setIn(["pages",t,"pageKey"],(0,Bi.A)())}))})),[H.Ps5]:(e,t)=>e.withMutations((e=>{t.pageKeysForPages.forEach((t=>{e.setIn(["pages",t.pageIndex,"pageKey"],t.pageKey)}))})),[H.k0y]:(e,t)=>e.set("OCGLayers",t.OCGLayers),[H._w]:(e,t)=>e.set("visibleOCGLayers",t.visibleLayerIds),[H.mND]:(e,t)=>e.set("embeddedFiles",t.embeddedFiles),[H.I9p]:(e,t)=>e.set("cropArea",t.cropArea).set("cropPageIndex",t.cropPageIndex)};function Ca(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Sa,t=arguments.length>1?arguments[1]:void 0;const n=t.type===H.Uas,r=_a[n?H.TTm:t.type];return r?r(e,t):e}const Ea=new Q.A,ka={[H.TPz]:e=>e.set("isPrinting",!0),[H.up7]:e=>e.set("isPrinting",!1),[H.dLL]:e=>e.set("isPrinting",!1),[H.Xnw]:(e,t)=>{let{currentPage:n}=t;return e.set("printLoadingIndicatorProgress",n)}};function za(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ea,t=arguments.length>1?arguments[1]:void 0;const n=ka[t.type];return n?n(e,t):e}function Pa(e,t){const{focusedResultIndex:n}=e.searchState,r=e.searchState.results.size;if(r<=0)return e;let o=n+t;o<0&&(o+=r);const i=Math.abs(o%r),a=e.searchState.results.get(i);(0,ye.V)(a);const s=(0,aa.YQ)(e.viewportState,a.pageIndex,P.rw.union(a?.rectsOnPage));return e.setIn(["searchState","focusedResultIndex"],i).set("viewportState",s)}const Aa={[H.Swp]:(e,t)=>t.term.length>=e.searchState.minSearchQueryLength?e.setIn(["searchState","term"],t.term):e.setIn(["searchState","term"],t.term).setIn(["searchState","focusedResultIndex"],-1).setIn(["searchState","results"],(0,a.B8)()).setIn(["searchState","isLoading"],!1),[H.v9$]:e=>Pa(e,1),[H.xWZ]:e=>Pa(e,-1),[H.vh9]:e=>e.set("interactionMode",L.O.SEARCH).setIn(["searchState","isFocused"],!0),[H.Msx]:e=>e.set("interactionMode",null).mergeIn(["searchState"],{isFocused:!1,term:"",results:(0,a.B8)(),focusedResultIndex:-1}),[H.O4b]:e=>e.setIn(["searchState","isFocused"],!0),[H.DTK]:e=>e.setIn(["searchState","isFocused"],!1),[H.oSb]:(e,t)=>{let{isLoading:n}=t;return e.setIn(["searchState","isLoading"],n)},[H.hCl]:(e,t)=>{let{results:n}=t,r=e.viewportState,o=-1;if(-1!==e.searchState.focusedResultIndex){const t=e.searchState.results.get(e.searchState.focusedResultIndex);(0,ye.V)(t);const{pageIndex:r}=t,i=t.rectsOnPage.first();(0,ye.V)(i);const{top:a,left:s}=i;o=n.findIndex((e=>{const t=e.rectsOnPage.first();return(0,ye.V)(t),e.pageIndex===r&&t.top===a&&t.left===s}))}if(-1===o&&n.size>0){o=n.findIndex((t=>t.pageIndex>=e.viewportState.currentPageIndex)),-1===o&&(o=0);const t=n.get(o);(0,ye.V)(t),r=(0,aa.YQ)(e.viewportState,t.pageIndex,P.rw.union(t.rectsOnPage))}return e.setIn(["searchState","results"],n).setIn(["searchState","focusedResultIndex"],o).set("viewportState",r)},[H.cG6]:(e,t)=>{let{state:n}=t;return e.set("searchState",n)},[H.WwK]:(e,t)=>{let{provider:n}=t;return e.set("searchProvider",n)}};function Da(e,t){const n=Aa[t.type];return n?n(e,t):e}const Ta=new P.Uw,Ia={[H.m$$]:(e,t)=>{const n=t.textRange.startAndEndIds();if(!n)return e;const{startTextLineId:r,endTextLineId:o,startNestedContentBlockId:i,endNestedContentBlockId:s,startPageIndex:l,endPageIndex:c}=n,u=new P.U3({textRange:t.textRange,startTextLineId:r,endTextLineId:o,startNestedContentBlockId:i,endNestedContentBlockId:s,startPageIndex:l,endPageIndex:c}),d=e.withMutations((t=>{t.set("currentTextSelection",u),e.interactionMode!==L.O.TEXT_HIGHLIGHTER&&e.interactionMode!==L.O.REDACT_TEXT_HIGHLIGHTER&&t.set("selectedAnnotationIds",(0,a.NZ)())}));return(0,gn.W3)(P.tr,e)?d:d.withMutations((e=>{e.set("inlineTextMarkupToolbar",t.inlineTextMarkupToolbar)}))},[H.pAl]:e=>e.delete("currentTextSelection"),[H.GnU]:e=>e.withMutations((t=>{t.delete("selectedAnnotationMode"),t.set("currentItemPreset",null),e.interactionMode===L.O.TEXT_HIGHLIGHTER&&(0,B.Nc)(t),t.set("selectedAnnotationIds",(0,a.NZ)()),t.set("widgetAnnotationToFocus",null),t.set("interactionMode",e.interactionMode===L.O.PAN||e.interactionMode===L.O.FORM_CREATOR?e.interactionMode:null),t.set("selectedTextOnEdit",!1),t.set("activeAnnotationNote",null),e.interactionMode===L.O.DISTANCE&&e.isCalibratingScale&&t.set("isCalibratingScale",!1)})),[H.kh8]:(e,t)=>{let n=null;const r=t.annotations.filter((t=>{const r=e.annotations.get(t);return n=e.annotationPresetIds.get(t)||null,r&&(r instanceof P.s9||r.isCommentThreadRoot||!(0,gn.Qe)(r,e))}));return 0===r.size?e:e.withMutations((o=>{o.set("selectedAnnotationIds",r),o.set("currentItemPreset",n),o.set("selectedAnnotationMode",t.mode),o.set("selectedAnnotationShouldDrag",t.selectedAnnotationShouldDrag),o.delete("currentTextSelection"),b.LZ&&1===r.size&&e.interactionMode===L.O.MULTI_ANNOTATIONS_SELECTION&&o.set("interactionMode",null)}))},[H.xjY]:e=>e.set("selectedAnnotationShouldDrag",null),[H.g1L]:e=>e.set("selectedTextOnEdit",!0),[H.OPR]:(e,t)=>((0,l.V1)(e.annotations.has(t.id),"Annotation not found"),e.readOnlyEnabled?e.update("focusedAnnotationIds",(e=>e.add(t.id))):e),[H.$zs]:(e,t)=>((0,l.V1)(e.annotations.has(t.id),"Annotation not found"),e.readOnlyEnabled?e.update("focusedAnnotationIds",(e=>e.delete(t.id))):e),[H.OQ1]:(e,t)=>{(0,l.V1)(e.annotations.has(t.id),"Annotation not found");const n=e.annotations.get(t.id);return e.readOnlyEnabled===ne.g.NO||n instanceof P.s9?e.updateIn(["hoverAnnotationIds"],(e=>e.has(t.id)?e:e.add(t.id))):e},[H.$kT]:(e,t)=>{(0,l.V1)(e.annotations.has(t.id),"Annotation not found");const n=e.annotations.get(t.id);return e.readOnlyEnabled===ne.g.NO||n instanceof P.s9?e.updateIn(["hoverAnnotationIds"],(e=>e.has(t.id)?e.delete(t.id):e)):e},[H.n_I]:(e,t)=>{const n=t.annotationNote;return e.set("hoverAnnotationNote",n)},[H.zgv]:(e,t)=>e.set("activeAnnotationNote",t.annotationNote),[H.gr7]:(e,t)=>e.withMutations((n=>{if(t.newSelectedAnnotationsIds.size>0)n.set("selectedAnnotationIds",t.newSelectedAnnotationsIds);else{const r=1===e.selectedAnnotationIds.size&&e.annotations.get(e.selectedAnnotationIds.first());if(!r||null!=r.pageIndex){const r=new t.annotationClass((0,B.mN)(e));n.setIn(["annotations",r.id],r),n.set("selectedAnnotationIds",(0,a.NZ)([r.id])),null!=e.currentItemPreset&&n.setIn(["annotationPresetIds",r.id],e.currentItemPreset)}}})),[H.q6G]:(e,t)=>e.set("inlineTextSelectionToolbarItems",t.inlineTextSelectionToolbarItemsCallback)};function Ma(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ta,t=arguments.length>1?arguments[1]:void 0;const n=Ia[t.type];return n?n(e,t):e}const Na=new P.Uw,Oa={[H.oj5]:(e,t)=>{let{signature:n}=t;return e.withMutations((e=>{(0,B.lC)(e,n)}))},[H.HEW]:(e,t)=>{let{annotation:n}=t;return e.signatureState.formFieldName&&(0,l.V1)(!e.signatureState.formFieldsNotSavingSignatures.includes(e.signatureState.formFieldName),`Cannot save signature for the form field \`${e.signatureState.formFieldName}\` because this field is in formFieldsNotSavingSignatures`),e.updateIn(["signatureState","storedSignatures"],(0,$.C$)((e=>e.push(n))))},[H.NDB]:(e,t)=>{let{annotations:n}=t;return e.setIn(["signatureState","storedSignatures"],n)},[H.lyT]:(e,t)=>{let{annotation:n}=t;return e.updateIn(["signatureState","storedSignatures"],(0,$.C$)((e=>e.filter((e=>!e.equals(n))))))}};function Ra(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Na,t=arguments.length>1?arguments[1]:void 0;const n=Oa[t.type];return n?n(e,t):e}const ja=new P.Uw,Fa={[H.beK]:(e,t)=>e.set("toolbarItems",t.toolbarItems),[H.oLR]:(e,t)=>e.set("annotationToolbarItems",t.annotationToolbarItemsCallback),[H.Df2]:(e,t)=>e.set("annotationToolbarHeight",t.height)};function Ba(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ja,t=arguments.length>1?arguments[1]:void 0;const n=Fa[t.type];return n?n(e,t):e}const La=new P.Uw,Va={[H.Zkn]:(e,t)=>{let{formJSON:n}=t;(0,l.V1)("pspdfkit/form"==n.type,"Invalid type for form JSON."),(0,l.V1)(1==n.v,"Invalid version for form JSON."),(0,l.V1)(n.fields instanceof Array,"Invalid type for `fields` in form JSON.");const r=(0,Oe.im)(n.fields),o=(0,Oe.W5)(n.annotations);return e.withMutations((e=>{e.set("formFields",r),o.forEach((t=>{const{id:n}=t;e.setIn(["annotations",n],t),(0,l.V1)(e.pages.has(t.pageIndex),"Invalid `pageIndex` of widget annotation: "+t.pageIndex),e.updateIn(["pages",t.pageIndex,"annotationIds"],(0,$.C$)((e=>e.add(n))))}))}))},[H.UDq]:(e,t)=>e.withMutations((e=>{t.formFields.forEach((t=>{e.setIn(["formFields",t.name],t)}))})),[H.f5v]:(e,t)=>e.withMutations((n=>{t.formFields.forEach((t=>{const r=e.formFields.valueSeq().find((e=>e.id===t.id));(0,l.V1)(r,"Invalid form field ID: "+t.id);const o=r.name!==t.name;if(t instanceof P.Qk){const n=e.formFields.find((e=>e.name===t.name)),r=n?.annotationIds;if(r&&n.id!==t.id){let e=r,o=n.options;[...t.annotationIds].forEach(((n,r)=>{e.includes(n)||(e=e.push(n),o=o.push(t.options.get(r)))})),t=t.set("annotationIds",e).set("options",o)}}if(o){t.annotationIds.forEach((e=>{n.annotations.get(e)&&n.setIn(["annotations",e,"formFieldName"],t.name)})),n.deleteIn(["formFields",r.name])}n.setIn(["formFields",t.name],t),(0,Oe.Fv)(r,e,n)}))})),[H.Xpm]:(e,t)=>{const n=e.formFields.find((e=>e.id===t.formField.id));return e.withMutations((r=>{r.deleteIn(["formFields",n?.name]),r.setIn(["formFields",t.formField.name],t.formField),(0,Oe.Fv)(e.formFields.get(t.formField.name),e,r)}))},[H.ngf]:(e,t)=>e.withMutations((e=>{t.formFieldNames.forEach((t=>{e.formFields.get(t)&&e.deleteIn(["formFields",t])}))})),[H.yoE]:(e,t)=>e.withMutations((n=>{t.formFieldsIds.forEach((t=>{const r=(0,Oe.aR)(e,t);r&&n.deleteIn(["formFields",r.name])}))})),[H.e1v]:(e,t)=>e.withMutations((n=>{(0,Oe.zs)({state:e,mutableState:n,formFieldValues:t.formFieldValues,areFormFieldValuesNew:!0})})),[H.uoR]:(e,t)=>e.withMutations((n=>{(0,Oe.zs)({state:e,mutableState:n,formFieldValues:t.formFieldValues,areFormFieldValuesNew:!1})})),[H.$uS]:(e,t)=>{let{formattedFormFieldValues:n}=t;return e.set("formattedFormFieldValues",e.formattedFormFieldValues.merge(n))},[H.J7t]:(e,t)=>{let{editingFormFieldValues:n}=t;return e.set("editingFormFieldValues",e.editingFormFieldValues.merge(n))},[H.TRW]:(e,t)=>e.withMutations((n=>{t.formFieldValuesIds.forEach((t=>{const r=t.split("/")[1],o=e.formFields.get(r);o&&(o instanceof P.uS?n.setIn(["formFields",r,"value"],""):o instanceof P.Qk?n.setIn(["formFields",r,"value"],null):o instanceof P.G_||o instanceof P.av?n.setIn(["formFields",r,"values"],(0,a.B8)()):o instanceof P.$h||o instanceof P.Vw||(0,l.V1)(!1,`DELETE_FORM_FIELD_VALUE not implemented for ${r}`))}))})),[H.XPU]:(e,t)=>{let{onWidgetCreationStartCallback:n}=t;return e.set("onWidgetAnnotationCreationStart",n)},[H.dwm]:(e,t)=>{let{annotationId:n}=t;return e.set("formDesignerUnsavedWidgetAnnotation",n)},[H.hNe]:(e,t)=>{let{annotation:n}=t;return e.set("buttonToImportIconFor",n)}};function Ka(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:La,t=arguments.length>1?arguments[1]:void 0;const n=Va[t.type];return n?n(e,t):e}var Ha=n(63226);const $a=new P.Uw,Ua={[H.yiN]:(e,t)=>e.withMutations((e=>{t.comments.forEach((t=>{if((0,ye.V)(t.id&&!e.comments.has(t.id),`Comment with ID ${t.id} already exists.`),t.pageIndex<0||t.pageIndex>=e.pages.size)(0,l.R8)(`Tried to add a comment with ID ${t.id} with an out of bounds page index (${t.pageIndex}). This comment was skipped.`);else if(e.setIn(["comments",t.id],t),(0,ye.V)(t.rootId&&t.id),e.commentThreads.has(t.rootId)){const n=e.commentThreads.get(t.rootId);(0,ye.V)(n),e.setIn(["commentThreads",t.rootId],n.add(t.id).sortBy((t=>{const n=e.comments.get(t);(0,ye.V)(n);const r=n.createdAt.getTime();return[(0,Ha.Jm)(n)?1:0,r]}),$.lj))}else e.setIn(["commentThreads",t.rootId],(0,a.CD)([t.id]))}))})),[H.bYc]:(e,t)=>{const n=t.rootId,r=e.annotations.get(n),o=new Date;let i=new P.Mw({id:(0,Bi.A)(),rootId:n,creatorName:e.annotationCreatorName||null,createdAt:o,updatedAt:o,text:{format:"plain",value:""}});if(e.onCommentCreationStart){const t=e.onCommentCreationStart(i);(0,ye.V)(t instanceof P.Mw,"`onCommentCreationStart` should return an instance of `Comment`"),i=t}(0,ye.V)(e.backend),e.backend.isCollaborationPermissionsEnabled()&&e.group!==e.backend.getDefaultGroup()&&(i=i.set("group",e.group));return!(0,gn.kH)(i,e)&&r&&(0,cr.yF)(r,e)?e.withMutations((e=>{e.setIn(["comments",i.id],i),e.commentThreads.has(n)?e.updateIn(["commentThreads",n],(0,$.C$)((e=>e.add(i.id)))):e.setIn(["commentThreads",n],(0,a.CD)([i.id]))})):e.set("interactionMode",null)},[H.Rv8]:(e,t)=>e.withMutations((e=>{t.comments.forEach((t=>{(0,ye.V)(t.id&&e.comments.has(t.id),`Comment with missing ID ${t.id} not found and thus cannot be updated.`),e.setIn(["comments",t.id],t)}))})),[H.B0K]:(e,t)=>e.withMutations((e=>{t.ids.forEach((t=>{(0,ye.V)(e.comments.has(t),`Comment with ID ${t} not found, so it cannot be deleted.`);const n=e.comments.get(t);(0,ye.V)(null!=n,`Attempted to delete non-existent comment with ID ${t}`),(0,ye.V)(n.rootId);const r=e.commentThreads.get(n.rootId);if((0,ye.V)(null!=r,`Comment with ID ${t} has no corresponding thread with matching root ID ${n.rootId}`),(0,ye.V)(n.id&&r.has(n.id),`Comment with ID ${n.id} is missing from its thread.`),1===r.size)e.removeIn(["commentThreads",n.rootId]);else{const t=r.remove(n.id);if(e.setIn(["commentThreads",n.rootId],t),1===t.size){const r=e.comments.get(t.first());(0,ye.V)(null!=r),(0,Ha.Jm)(r)&&(e.removeIn(["commentThreads",n.rootId]),e.removeIn(["comments",r.id]))}}e.removeIn(["comments",t])}))})),[H.S$q]:e=>e.setIn(["viewportState","commentMode"],(0,Ha.Xu)(e)),[H.PHl]:(e,t)=>e.set("mentionableUsers",t.users),[H.ZkK]:(e,t)=>e.set("maxMentionSuggestions",t.maxSuggestions),[H.AN0]:(e,t)=>{let{onCommentCreationStartCallback:n}=t;return e.set("onCommentCreationStart",n)}};function Wa(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$a,t=arguments.length>1?arguments[1]:void 0;const n=Ua[t.type];return n?n(e,t):e}const qa=new P.Uw,Ga={[H.$j9]:(e,t)=>e.set("documentEditorFooterItems",t.documentEditorFooterItems),[H.tpQ]:(e,t)=>e.set("documentEditorToolbarItems",t.documentEditorToolbarItems)};function Za(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qa,t=arguments.length>1?arguments[1]:void 0;const n=Ga[t.type];return n?n(e,t):e}const Ya=new Q.A,Xa={[H.XX9]:(e,t)=>e.withMutations((n=>{n.set("redoActions",e.redoActions.push(t.nextRedoAction));const r=t.oldId;if(r){n.update("redoActions",(e=>e.map((e=>e.payload.id===t.oldId?{...e,payload:{...e.payload,id:t.nextRedoAction.payload.id}}:e))));const o=t.nextRedoAction.payload.pageIndex,i="number"==typeof o&&e.invalidAPStreams.has(o)?e.invalidAPStreams.get(o):null;i&&i.has(r)&&n.setIn(["invalidAPStreams",o],i.add(t.nextRedoAction.payload.id).delete(r))}n.set("undoActions",e.undoActions.pop())})),[H.V5X]:(e,t)=>e.withMutations((n=>{n.set("undoActions",e.undoActions.push(t.nextUndoAction));const r=t.oldId;if(r){n.update("undoActions",(e=>e.map((e=>e.payload.id===t.oldId?{...e,payload:{...e.payload,id:t.nextUndoAction.payload.id}}:e))));const o=t.nextUndoAction.payload.pageIndex,i="number"==typeof o&&e.invalidAPStreams.has(o)?e.invalidAPStreams.get(o):null;i&&i.has(r)&&n.setIn(["invalidAPStreams",o],i.add(t.nextUndoAction.payload.id).delete(r))}n.set("redoActions",e.redoActions.pop())})),[H.tII]:(e,t)=>e.set("historyChangeContext",t.historyChangeContext),[H.lfs]:(e,t)=>e.set("historyIdsMap",e.historyIdsMap.set(t.newId,t.oldId)),[H.j_B]:(e,t)=>{let{annotationId:n}=t;const r=e.historyIdsMap.findKey((e=>e===n));return e.withMutations((t=>{t.set("undoActions",e.undoActions.filter((e=>e.payload.id!==r))),t.set("redoActions",e.redoActions.filter((e=>e.payload.id!==r)))}))},[H.RG9]:e=>e.withMutations((t=>{t.set("undoActions",e.undoActions.clear()),t.set("redoActions",e.redoActions.clear()),t.set("historyIdsMap",e.historyIdsMap.clear())})),[H.TpM]:e=>e.set("isHistoryEnabled",!0),[H.MPB]:e=>e.set("isHistoryEnabled",!1)};function Ja(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ya,t=arguments.length>1?arguments[1]:void 0;const n=Xa[t.type];return n?n(e,t):e}var Qa=n(81235);const es=e=>new Qa.ZY(e),ts=e=>new Qa.rw({offset:es(e.offset),size:es(e.size)}),ns=e=>new Qa.z9(e),rs=e=>{let t=a.NZ.of();for(const n of e)t=t.add(ns(n));return t},os=e=>new Qa.h2({family:e.family,variants:rs(e.variants)}),is=e=>new Qa.oI({family:e.family,variant:ns(e.variant)}),as=e=>new Qa.AQ({faceRef:is(e.faceRef),size:e.size}),ss=e=>new Qa.Im(e),ls=e=>new Qa.aF({fontRef:as(e.fontRef),color:e.color,effects:ss(e.effects)}),cs=e=>new Qa.mo(e),us=e=>new Qa.Iy({family:e.family,faceMismatch:e.faceMismatch?cs(e.faceMismatch):null,bold:e.bold,italic:e.italic,xScale:e.xScale,skew:e.skew,color:e.color,size:e.size}),ds=e=>new Qa.Sy(e),ps=e=>new Qa.oR(e),hs=e=>new Qa.el({cluster:e.cluster,offset:es(e.offset),advance:es(e.advance),text:e.text,control:e.control,lastOfSegment:e.lastOfSegment,beginOfWord:e.beginOfWord,endOfWord:e.endOfWord}),fs=e=>new Qa.Wu({offset:es(e.offset),lineSpacing:ds(e.lineSpacing),elements:a.B8.of(...e.elements.map(hs))});var ms=n(43195);const gs=new Q.A,vs=(e,t)=>{let n=!1;const r=ts(t.contentRect);(0,a.is)(r,e.contentRect)||(e=e.set("contentRect",r)),(0,a.is)(t.version,e.version)||(e=e.set("version",t.version),n=!0);const o=(i=t.cursor,new Qa.bs({offset:es(i.offset),lineSpacing:ds(i.lineSpacing)}));var i;(0,a.is)(o,e.cursor)||(e=e.set("cursor",o),n=!0);const s=t.selection?(e=>new Qa.LN(e))(t.selection):null;(0,a.is)(s,e.selection)||(e=e.set("selection",s),n=!0);const l=(e=>new Qa.AU({lines:a.B8.of(...e.lines.map(fs))}))(t.layoutView);(0,a.is)(l,e.layoutView)||(e=e.set("layoutView",l));const c=(e=>new Qa.s3({selectionStyleInfo:e.selectionStyleInfo?us(e.selectionStyleInfo):null,modificationsCharacterStyle:e.modificationsCharacterStyle?ls(e.modificationsCharacterStyle):null,modificationsCharacterStyleFaceMismatch:e.modificationsCharacterStyleFaceMismatch?cs(e.modificationsCharacterStyleFaceMismatch):null}))(t.detectedStyle);if((0,a.is)(c,e.detectedStyle)||(e=e.set("detectedStyle",c)),c.modificationsCharacterStyle){let t=c.modificationsCharacterStyle;t=t.setIn(["effects"],new Qa.Im({})),n&&!(0,a.is)(t,e.modificationsCharacterStyle)&&(e=e.set("modificationsCharacterStyle",t))}return e},ys={[H.M5B]:(e,t)=>e.withMutations((e=>{const n=e.contentEditorSession.sessionId+1;e.set("contentEditorSession",new Qa.jL({sessionId:n,active:!0,contentEditor:t.contentEditor})).set("interactionMode",L.O.CONTENT_EDITOR)})),[H.$Yt]:e=>e.withMutations((e=>{e.setIn(["contentEditorSession","active"],!1).setIn(["contentEditorSession","contentEditor"],null).set("interactionMode",null)})),[H.nkN]:(e,t)=>e.withMutations((e=>{(0,ye.V)(!e.contentEditorSession.pageStates.has(t.pageIndex)),e.setIn(["contentEditorSession","pageStates",t.pageIndex],new Qa.H5({loading:!0}))})),[H.cNc]:(e,t)=>e.withMutations((e=>{(0,ye.V)(e.contentEditorSession.pageStates.get(t.pageIndex)?.loading);let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,ye.V)(n);const r=t.initialTextBlocks.map((e=>{const t=e.textBlock,n=es(t.anchor),r=ps(t.globalEffects),o=new Qa.PE({maxWidth:t.maxWidth,alignment:t.alignment,lineSpacingFactor:t.lineSpacingFactor}),i=new Qa.Gg({id:e.id,initialAnchor:n,initialGlobalEffects:r,initialLayout:o,anchor:n,globalEffects:r,layout:o,modificationsCharacterStyle:ls(t.modificationsCharacterStyle)});return vs(i,e.updateInfo)})),o=a.B8.of(...r);n=n.set("textBlocks",o),n=n.set("initialTextBlocks",o),n=n.set("loading",!1),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n)})),[H.Qvq]:(e,t)=>e.withMutations((e=>{e.setIn(["contentEditorSession","textBlockInteractionState"],new Qa.Eu({pageIndex:t.pageIndex,textBlockId:t.textBlockId,state:Qa.mS.Active}))})),[H.q7x]:e=>e.withMutations((e=>{const t=e.contentEditorSession.textBlockInteractionState;if(t.state===Qa.mS.Active){let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,ye.V)(n),n=n.set("textBlocks",n.textBlocks.filter((e=>!(e.justCreated&&0===e.contentRect.size.x))).map((e=>e.id===t.textBlockId&&e.justCreated?e=e.set("justCreated",!1).set("layout",e.layout.set("maxWidth",Math.max(e.contentRect.size.x,10))):e))),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n)}e.setIn(["contentEditorSession","textBlockInteractionState"],e.contentEditorSession.textBlockInteractionState.state===Qa.mS.Active?e.contentEditorSession.textBlockInteractionState.set("state",Qa.mS.Selected):new Qa.Eu)})),[H.lBj]:(e,t)=>e.withMutations((e=>{let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,ye.V)(n),n=((e,t,n)=>{const r=e.textBlocks.map((e=>e.id!=t?e:vs(e,n)));return e.set("textBlocks",r)})(n,t.textBlockId,t.updateInfo),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n)})),[H.oJw]:e=>e.withMutations((e=>{e.setIn(["contentEditorSession","availableFaces","loading"],!0)})),[H.A39]:(e,t)=>e.withMutations((e=>{const n=(r=t.faceList,a.B8.of(...r.map(os)));var r;e.setIn(["contentEditorSession","availableFaces"],new Qa.e5({faceList:n,loading:!1}))})),[H.TN1]:(e,t)=>e.withMutations((e=>{e.setIn(["contentEditorSession","saving"],t.isSaving)})),[H.ydo]:e=>e.withMutations((e=>{e.setIn(["contentEditorSession","dirty"],!0)})),[H.B3$]:(e,t)=>e.set("showExitContentEditorDialog",t.isVisible),[H.NZW]:(e,t)=>e.set("contentEditorSession",e.contentEditorSession.set("fontMismatchTooltip",new Qa.Ho({fontFace:t.fontFace,rect:t.tooltipRect}))),[H.qNu]:e=>e.set("contentEditorSession",e.contentEditorSession.set("fontMismatchTooltip",null)),[H.NTB]:(e,t)=>e.contentEditorSession.fontMismatchTooltip?e.setIn(["contentEditorSession","fontMismatchTooltip","dismissAbortController"],t.abortController):e,[H.Vat]:(e,t)=>e.withMutations((e=>{let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,ye.V)(n),n=n.set("textBlocks",n.textBlocks.map((e=>{if(e.id!=t.textBlockId)return e;let n=e.modificationsCharacterStyle;return t.faceRef&&!(0,a.is)(t.faceRef,n.fontRef.faceRef)&&(n=n.setIn(["fontRef","faceRef"],t.faceRef)),t.size&&!(0,a.is)(t.size,n.fontRef.size)&&(n=n.setIn(["fontRef","size"],t.size)),t.color&&!(0,a.is)(t.color,n.color)&&(n=n.set("color",t.color)),e=e.set("modificationsCharacterStyle",n)}))),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n)})),[H.$eX]:(e,t)=>e.withMutations((e=>{e.contentEditorSession.dirty||e.setIn(["contentEditorSession","dirty"],!0);let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,ye.V)(n),n=n.set("textBlocks",n.textBlocks.map((e=>{if(e.id!=t.textBlockId)return e;const{fixpointValue:n,newWidth:r}=t,{layout:o,globalEffects:i,anchor:a}=e;(0,ye.V)(o.maxWidth);const s=(0,ms.FP)(o.alignment,i,n,r-o.maxWidth);return e=(e=e.set("anchor",new Qa.ZY({x:a.x+s.x,y:a.y+s.y}))).setIn(["layout","maxWidth"],r)}))),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n)})),[H.ilz]:(e,t)=>e.withMutations((e=>{let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,ye.V)(n),e.contentEditorSession.dirty||e.setIn(["contentEditorSession","dirty"],!0),t.isKeyboardMove||e.contentEditorSession.textBlockInteractionState.state===Qa.mS.Moving||e.setIn(["contentEditorSession","textBlockInteractionState"],new Qa.Eu({state:Qa.mS.Moving,pageIndex:t.pageIndex,textBlockId:t.textBlockId})),n=n.set("textBlocks",n.textBlocks.map((e=>e.id!=t.textBlockId?e:e=e.set("anchor",new Qa.ZY({x:t.anchor.x,y:t.anchor.y}))))),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n)})),[H.gA3]:(e,t)=>e.withMutations((e=>{e.setIn(["contentEditorSession","textBlockInteractionState"],new Qa.Eu({pageIndex:t.pageIndex,textBlockId:t.textBlockId,state:Qa.mS.Selected}))})),[H.TUU]:(e,t)=>e.withMutations((e=>{e.setIn(["contentEditorSession","textBlockInteractionState"],new Qa.Eu);let n=e.contentEditorSession.pageStates.get(t.pageIndex);(0,ye.V)(n),n=n.set("textBlocks",n.textBlocks.filter((e=>e.id!==t.textBlockId))),e.setIn(["contentEditorSession","pageStates",t.pageIndex],n),e.setIn(["contentEditorSession","mode"],Qa.g3.Edit)})),[H.qU5]:(e,t)=>e.withMutations((e=>{e.setIn(["contentEditorSession","mode"],t.mode)})),[H.bQ9]:(e,t)=>e.withMutations((e=>{let n=e.contentEditorSession.pageStates.get(t.pageIndex);const r=e.pages.get(t.pageIndex)?.pageSize?.width;(0,ye.V)(n),(0,ye.V)(r);const{pageIndex:o,initialTextBlock:i}=t,a=i.textBlock,s=ps(a.globalEffects),l=new Qa.PE({maxWidth:r-t.anchor.x,alignment:a.alignment,lineSpacingFactor:a.lineSpacingFactor});let c=new Qa.Gg({id:i.id,initialAnchor:t.anchor,initialGlobalEffects:s,initialLayout:l,anchor:t.anchor,globalEffects:s,layout:l,justCreated:!0,modificationsCharacterStyle:ls(a.modificationsCharacterStyle)});return c=vs(c,i.updateInfo),n=n.set("textBlocks",n.textBlocks.push(c)),e.setIn(["contentEditorSession","pageStates",o],n).setIn(["contentEditorSession","mode"],Qa.g3.Edit).setIn(["contentEditorSession","textBlockInteractionState"],new Qa.Eu({pageIndex:o,textBlockId:i.id,state:Qa.mS.Active}))})),[H.psz]:(e,t)=>e.set("promptContentEditorDocumentDownload",t.promptContentEditorDocumentDownload),[H.kZs]:(e,t)=>e.set("promptContentEditorCannotSaveChanges",t.promptContentEditorCannotSaveChanges)};function bs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gs,t=arguments.length>1?arguments[1]:void 0;const n=ys[t.type];return n?n(e,t):e}const ws={[H.MCf]:(e,t)=>{let{state:n}=t;return e.set("highlightState",n)}};function xs(e,t){const n=ws[t.type];return n?n(e,t):e}function Ss(e,t){return[q,G.A,Hi,qi,Yi,Qi,oa,da,Ca,za,Da,xs,Ma,Ra,Ba,Ka,Wa,Za,Ja,bs].reduce(((e,n)=>n(e,t)),e)}function _s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,T.U1)({reducer:Ss,preloadedState:new Q.A(e),middleware:e=>e({serializableCheck:!1,immutableCheck:!1})})}var Cs=n(18835),Es=n(97881),ks=n(33075),zs=n(53253);async function Ps(e){let t,{backend:n,dispatch:r,getState:o,maxPasswordRetries:i,password:s,formFieldValuesJSON:c,customFonts:u,stylesheetPromise:d}=e;await d;try{let e=!1;const{features:d,signatureFeatureAvailability:p,hasPassword:h,minSearchQueryLength:f,allowedTileScales:m,creatorName:g,defaultGroup:v,evaluation:y,linearizedLoading:b,password:w,documentResponse:x}=await async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=null,i=0;for(;!o;){try{o=await n(e)}catch(n){const o=i<t;if("INVALID_PASSWORD"!==n.message||!o)throw n;e=await r()}i++}if(!o)throw new l.uE("Exceeded the maximum amount of password retries.");return o}(s,i,(t=>n.load({password:t,progressCallback:(t,n)=>{e||r((0,Cs.jI)(t,n))},isPDFJavaScriptEnabled:Xe.JY.PDF_JAVASCRIPT})),(()=>(e=!0,new Promise((e=>r((0,Cs.j)(e)))))));if(b){(0,l.V1)(x,"Document response must be provided when linearizedLoading is true"),r((0,zs.S9)(x)),r((0,Cs.WP)());try{await n.waitUntilFullyLoaded(w),r((0,Cs.aW)())}catch(e){return void r((0,Cs.Up)(e.message))}}const{frameWindow:S}=o();let _=(0,a.NZ)();if(u&&S){const e=await n.getAvailableFontFaces(u);for(const t of u){const n=e.find((e=>e.name===t.name)),r=n?.readableName||t.name;S.document.fonts.add(new FontFace((0,qt.gh)(r),await t.data.arrayBuffer())),_=_.add(r)}_.size>0&&r((0,Dt.wG)(_))}const C=b?o().pages.map((e=>e.pageKey)):void 0;await(0,ks.SN)(r,o,{attemptedUnlockViaModal:e,features:d,signatureFeatureAvailability:p,hasPassword:h,minSearchQueryLength:f,allowedTileScales:m,evaluation:y,pageKeys:C});const{annotations:E,isAPStreamRendered:k,formFields:z}=o();n.isUsingInstantProvider()&&r((0,Dt.yT)()),n.isCollaborationPermissionsEnabled()&&r((0,Dt.sI)(v));const P=await n.runPDFFormattingScriptsFromWidgets(E,z,k);if(P.length){const{formFieldManager:e}=o();let n,i;null!==e&&await e.loadFormFields(),t=new Promise(((e,t)=>{n=e,i=t})),r((0,kn.f_)({changes:P,resolve:n,reject:i}))}if("STANDALONE"===n.type&&Xe.JY.PDF_JAVASCRIPT&&c&&r((0,kn.Ek)((0,a.B8)(c.map(Es.R5)))),"STANDALONE"===n.type){const e=await n.getOCGs(),t=await n.getOCGVisibilityState();r((0,zs.ew)(e)),r((0,zs.Sz)(t.visibleLayerIds))}const A=await n.getEmbeddedFiles();r((0,zs.Ok)(A)),r((0,Cs.aW)()),g&&r((0,Dt.x4)(g,!0))}catch(e){(0,l.z3)("An error occurred while initializing PSPDFKit for Web.\n\n    Please contact our customer support, if you're having troubles setting up Nutrient Web SDK or Document Engine: https://www.nutrient.io/guides/web/troubleshoot/");const t=e instanceof l.uE?e:new l.uE(e);throw-1!==t.message.indexOf("File not in PDF format or corrupted")?r((0,Cs.Up)(t.message)):r((0,Cs.Up)()),t}return t}var As=n(63638),Ds=n(17704),Ts=n(87374),Is=n(7516),Ms=n(27634),Ns=n(42633),Os=n(84192);const Rs=[10,20,50,100,200,500];class js{constructor(e,t){(0,y.A)(this,"_activeSearches",[]),this.getState=e,this.dispatch=t,this.term="",this._debouncedSearchRequest=(0,Os.h)(this._searchRequest,_e.V9)}cancelSearch(){this._cancelSearchRequests(),this.searchTerm(""),this.dispatch((0,Ns.DP)())}clearSearch(){this._cancelSearchRequests(),this.searchTerm(""),this.dispatch((0,Ns.XS)((0,a.B8)()))}searchTerm(e){if("pspdfkit:info"===e.toLowerCase()||"pspdf:info"===e.toLowerCase()){const e="PSPDFKit for Web 1.1.0 (https://pspdfkit.com/web)";return(0,l.S7)(e),void this._cancelSearchRequests()}if("pspdfkit:debug"===e.toLowerCase()||"pspdf:debug"===e.toLowerCase())return this.dispatch((0,Dt.gY)()),void this._cancelSearchRequests();const t=this.getState();if(e.length<t.searchState.minSearchQueryLength)return this.term="",void this._cancelSearchRequests();this.dispatch((0,Ns.VE)(!0)),this.term=e,this._debouncedSearchRequest()}async _searchRequest(){if(""===this.term)return;this._cancelSearchRequests();const e=this.getState();(0,l.V1)(e.backend);let t=e.totalPages,n=0;t="STANDALONE"===e.backend.type?5:Rs[n];const r=e.viewportState.currentPageIndex;this._activeSearches.push(!0);const o=this._activeSearches.length-1;let i=(0,a.B8)();for(const a of[0,1]){let s,l;for(0===a?(s=r,l=e.totalPages-s):(s=0,l=r);l>0;){"SERVER"===e.backend.type&&(t=Rs[n],n+=n>=Rs.length-1?0:1);let r=t;l<1.5*t&&(r=l);const a=await e.backend.search(this.term,s,r,!1);if(i=i.concat(a),!this._activeSearches[o])return;this.dispatch((0,Ns.XS)(i)),l-=r,s+=r}}this.dispatch((0,Ns.VE)(!1))}_cancelSearchRequests(e){for(const t of this._activeSearches.keys())null!=e&&t===e||(this._activeSearches[t]=!1)}}var Fs=n(72084),Bs=n(16692),Ls=n(88051),Vs=n(75838),Ks=n(72320),Hs=n(8972),$s=n(53793),Us=n(50259),Ws=n(22372),qs=n(70631);function Gs(){return Gs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gs.apply(this,arguments)}function Zs(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Ys(e,t){return Ys=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ys(e,t)}function Xs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ys(e,t)}n(5556);function Js(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const Qs=!1;const el=u.createContext(null);var tl=function(e){return e.scrollTop},nl="unmounted",rl="exited",ol="entering",il="entered",al="exiting",sl=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=rl,r.appearStatus=ol):o=il:o=t.unmountOnExit||t.mountOnEnter?nl:rl,r.state={status:o},r.nextCallback=null,r}Xs(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===nl?{status:rl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==ol&&n!==il&&(t=ol):n!==ol&&n!==il||(t=al)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ol){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:re.findDOMNode(this);n&&tl(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rl&&this.setState({status:nl})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[re.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Qs?this.safeSetState({status:il},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:ol},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:il},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:re.findDOMNode(this);t&&!Qs?(this.props.onExit(r),this.safeSetState({status:al},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:rl},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:rl},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:re.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===nl)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Zs(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return u.createElement(el.Provider,{value:null},"function"==typeof n?n(e,r):u.cloneElement(u.Children.only(n),r))},t}(u.Component);function ll(){}sl.contextType=el,sl.propTypes={},sl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ll,onEntering:ll,onEntered:ll,onExit:ll,onExiting:ll,onExited:ll},sl.UNMOUNTED=nl,sl.EXITED=rl,sl.ENTERING=ol,sl.ENTERED=il,sl.EXITING=al;const cl=sl;var ul=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Js(n.className,r):n.setAttribute("class",Js(n.className&&n.className.baseVal||"",r)));var n,r}))},dl=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}Xs(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&tl(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&ul(e,r),o&&ul(e,o),i&&ul(e,i)},n.render=function(){var e=this.props,t=(e.classNames,Zs(e,["classNames"]));return u.createElement(cl,Gs({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(u.Component);dl.defaultProps={classNames:""},dl.propTypes={};const pl=dl;function hl(e,t){var n=Object.create(null);return e&&u.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,u.isValidElement)(e)?t(e):e}(e)})),n}function fl(e,t,n){return null!=n[t]?n[t]:e.props[t]}function ml(e,t,n){var r=hl(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if((0,u.isValidElement)(a)){var s=i in t,l=i in r,c=t[i],d=(0,u.isValidElement)(c)&&!c.props.in;!l||s&&!d?l||!s||d?l&&s&&(0,u.isValidElement)(c)&&(o[i]=(0,u.cloneElement)(a,{onExited:n.bind(null,a),in:c.props.in,exit:fl(a,"exit",e),enter:fl(a,"enter",e)})):o[i]=(0,u.cloneElement)(a,{in:!1}):o[i]=(0,u.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:fl(a,"exit",e),enter:fl(a,"enter",e)})}})),o}var gl=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},vl=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Xs(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,hl(n.children,(function(e){return(0,u.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:fl(e,"appear",n),enter:fl(e,"enter",n),exit:fl(e,"exit",n)})}))):ml(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=hl(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Gs({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Zs(e,["component","childFactory"]),o=this.state.contextValue,i=gl(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?u.createElement(el.Provider,{value:o},i):u.createElement(el.Provider,{value:o},u.createElement(t,r,i))},t}(u.Component);vl.propTypes={},vl.defaultProps={component:"div",childFactory:function(e){return e}};const yl=vl;var bl=n(37555),wl=n(74111),xl=n(82047),Sl=n(16019);function _l(e){let{items:t,pages:n,selectedKey:r,onSelectionChange:o,onBookmarkAdd:i,onBookmarkDelete:a,onBookmarkUpdate:l,bookmarksHandle:c,onRenderBookmarkItem:d,onMobileModeChange:p}=e;const{formatMessage:h}=(0,ve.tz)(),f=(0,s.d4)((e=>e.ui[xl.Rq.Bookmarks])),m=(0,s.d4)((e=>e.instance)),g=h(xe.A.bookmark),v=u.useMemo((()=>t?.toArray().map((e=>{const t=e.action;return{id:e.id,label:e.name??g,pageNumber:t.pageIndex+1,pageLabel:n.get(t.pageIndex)?.pageLabel}}))??[]),[t,g,n]),y=(0,u.useMemo)((()=>({bookmarks:v,"aria-label":h(xe.A.bookmarks),selectedKey:r,onSelectionChange:o,onBookmarkAdd:i,onBookmarkDelete:a,onBookmarkUpdate:l,bookmarksHandle:c,onRenderBookmarkItem:d,onMobileModeChange:p})),[v,r,o,i,a,l,c,d,h,p]);return(0,Sl.Q)(xl.Rq.Bookmarks,f,y,m)}var Cl;class El{constructor(e){(0,y.A)(this,"subscribe",(e=>{let t=function(){};const n=()=>{const t=this._bookmarkManager.getBookmarks();return t.then((t=>{this._bookmarks=t,e(t)})),t};return n().then((()=>{this._bookmarkManager.eventEmitter.on("change",n),t=()=>{this._bookmarkManager.eventEmitter.off("change",n)}})),()=>t()})),(0,y.A)(this,"getSnapshot",(()=>this._bookmarks)),(0,l.V1)(e,"BookmarkManager is required"),this._bookmarkManager=e}}function kl(e){const{pages:t,currentPageIndex:n,bookmarkManager:r,closeOnPress:i}=e,[l]=u.useState((()=>new El(r))),c=u.useSyncExternalStore(l.subscribe,l.getSnapshot),[d,h]=u.useState(null);u.useEffect((()=>{d?.focus()}),[d]);const[f,m]=u.useState("read"),[g,v]=u.useState(null),y=(0,s.wA)(),{formatMessage:b}=(0,ve.tz)(),[w,x]=u.useState(null),S=u.useRef(null),_=(0,bl.lb)();u.useEffect((()=>{if("edit"!==f&&w&&c){(c.get(w)?.action).pageIndex!==n&&x(null)}}),[n,w,c,f]);const C=u.useCallback((e=>{if(e&&c){x(e);const t=c.get(e);t&&y((0,or.DX)(t.action)),i&&"read"===f&&y((0,Dt.hP)())}else x(null)}),[c,y,i,f]),E=u.useCallback((async e=>{await r.ensureObjectSaved(e),S.current?.setFocusedKey(e.id)}),[r,S]),k=u.useCallback((e=>{const t=new P.Xh({action:new P.ic({pageIndex:n}),name:e||void 0,id:(0,wl.z)()});r.createObject(t),r.autoSave(),v(b(Pl.bookmarkCreated)),"keyboard"===_&&E(t)}),[n,r,b,_,E]),z=u.useCallback((e=>{if(e&&c){const t=c.get(e);t&&(r.deleteObject(t),r.autoSave(),v(b(Pl.bookmarkDeleted)))}}),[c,r,b]),A=u.useCallback(((e,t)=>{if(e&&c){const n=c.get(e);if(n){const e=n.set("name",t);r.updateObject(e),r.autoSave(),v(b(Pl.bookmarkEdited))}}}),[c,r,b]),D=c?(0,a.B8)(zl(c)):c,T=(0,br.d3)(d,D),I={className:p()(!D&&"PSPDFKit-Sidebar-Loading",D&&0===D.size&&"PSPDFKit-Sidebar-Empty","PSPDFKit-Sidebar-Bookmarks","_1yep5z6lo"),ref:h,style:{width:e.width},role:"region","aria-label":b(xe.A.bookmarks)},M=(0,br.jU)(T,(e=>e.id),(e=>D?.find((t=>t.id===e))?.delete("sortKey"))),N=u.useMemo((()=>M?(e,t)=>{if(e){const n=new P.Xh({action:new P.ic({pageIndex:t.pageNumber-1}),name:t.label,id:t.id});M(e,n)}}:void 0),[M]);return D?(0,oe.jsxs)("div",{...I,children:[(0,oe.jsx)(_l,{items:D,pages:t,selectedKey:w,onSelectionChange:C,onBookmarkAdd:k,onBookmarkDelete:z,onBookmarkUpdate:A,bookmarksHandle:S,onRenderBookmarkItem:N,onMobileModeChange:m}),(0,oe.jsx)(o.s6,{announce:"polite",children:g})]}):(0,oe.jsxs)("div",{...I,tabIndex:0,children:[(0,oe.jsx)(o.s6,{"aria-live":"polite",children:b(Pl.loadingBookmarks)}),Cl||(Cl=(0,oe.jsx)(Ie.A,{}))]})}const zl=(0,Wt.A)((e=>e.valueSeq().toArray().sort(((e,t)=>{const n=e.action.pageIndex,r=t.action.pageIndex,o=!isNaN(n),i=!isNaN(r);return o&&i?n===r?0:n<r?-1:1:o?-1:i?1:e.name&&t.name?e.name<t.name?-1:1:0})))),Pl=(0,ve.YK)({bookmarkCreated:{id:"bookmarkCreated",defaultMessage:"Created Bookmark",description:"A11Y announces when a bookmark is created"},bookmarkEdited:{id:"bookmarkEdited",defaultMessage:"Edited Bookmark",description:"A11Y announces when a bookmark is edited"},bookmarkDeleted:{id:"bookmarkDeleted",defaultMessage:"Deleted Bookmark",description:"A11Y announces when a bookmark is deleted"},loadingBookmarks:{id:"loadingBookmarks",defaultMessage:"Loading Bookmarks",description:"When bookmarks are loading"}});var Al=n(35295),Dl=n(58534),Tl=n(65221);const Il=e=>{let{onCancel:t,...n}=e;const r=(0,Tl.Bi)(),o=(0,s.d4)((e=>e.ui[xl.Rq.DocumentEditor])),i=(0,s.d4)((e=>e.instance)),a={titleId:r,onCancel:t,...n},l=(0,u.useMemo)((()=>({dialogProps:{size:"lg","aria-labelledby":r,style:{maxWidth:"70vw",overflow:"hidden"}},modalProps:{onOpenChange:t}})),[r,t]);return(0,Sl.Q)(xl.Rq.DocumentEditor,o,a,i,l)};var Ml;const Nl=e=>{const{styles:t,movePreview:n}=e;return(0,oe.jsx)("div",{className:p()(t.importedDocument,{[t.importedDocumentMovePreview]:n}),style:{width:e.width,height:e.height},children:Ml||(Ml=(0,oe.jsx)(Al.Vx3,{role:"presentation",size:20}))})};function Ol(e,t,n){return Math.min(n,Math.max(t,e))}const Rl=(0,ve.YK)({newPage:{id:"newPage",defaultMessage:"New Page",description:"Add new page"},removePage:{id:"removePage",defaultMessage:"Remove Page",description:"Remove page"},duplicatePage:{id:"duplicatePage",defaultMessage:"Duplicate Page",description:"Duplicate page"},rotatePageLeft:{id:"rotatePageLeft",defaultMessage:"Rotate Page Left",description:"Rotate Page Left"},rotatePageRight:{id:"rotatePageRight",defaultMessage:"Rotate Page Right",description:"Rotate Page Right"},mergeDocument:{id:"mergeDocument",defaultMessage:"Merge Document",description:"Merge Document"},extractPages:{id:"extractPages",defaultMessage:"Extract Pages",description:"Extract Pages"},selectAll:{id:"selectAll",defaultMessage:"Select All",description:"Select All Pages"},selectNone:{id:"selectNone",defaultMessage:"Select None",description:"Deselect All Pages"},openMoveDialog:{id:"openMoveDialog",defaultMessage:"Move…",description:"Open dialog for moving pages to specific location in the document"},move:{id:"move",defaultMessage:"Move",description:"Move pages to specific location in the document"},moveBefore:{id:"moveBefore",defaultMessage:"Move Before",description:"Move page before previous one"},moveAfter:{id:"moveAfter",defaultMessage:"Move After",description:"Move page after next one"},documentMergedHere:{id:"documentMergedHere",defaultMessage:"Document will be merged here",description:"Placeholder for the imported document"},pagesSelected:{id:"pagesSelected",defaultMessage:"{arg0, plural,\n      =0 {{arg0} Pages}\n      one {{arg0} Page}\n      two {{arg0} Pages}\n      other {{arg0} Pages}\n    }",description:"Number of pages selected."},insertAfterPage:{id:"insertAfterPage",defaultMessage:"Insert after page",description:"Move selected pages after designated page index."},docEditorMoveBeginningHint:{id:"docEditorMoveBeginningHint",defaultMessage:"Type “0” to move selected pages to the beginning of the document.",description:"Instructions for how to move pages to the beginning of the document when using the Move button in the Document Editor."},zoomIn:{id:"zoomIn",defaultMessage:"Zoom In",description:"Zoom in the document"},zoomOut:{id:"zoomOut",defaultMessage:"Zoom Out",description:"Zoom out the document"}}),jl="SET_OPERATIONS",Fl="PUSH_OPERATION",Bl="SET_SELECTED_INDEXES",Ll="SET_UNDO_DEPTH",Vl="SET_IS_COMMITTING",Kl="SET_THUMBNAIL_WIDTH",Hl="SET_DISABLE_ZOOM_FLAG",$l="SET_MOVE_TARGET",Ul=e=>({type:Bl,payload:e}),Wl=e=>({type:Ll,payload:e}),ql=e=>({type:Vl,payload:e}),Gl=e=>({type:Kl,payload:e}),Zl=e=>({type:Hl,payload:e}),Yl=e=>({type:$l,payload:e}),Xl="disable-zoom-in",Jl="disable-zoom-out",Ql=e=>{let{pages:t,editorPages:n,backend:r,frameWindow:o,undoDepth:i,documentEditorDispatch:s,setOperations:c,undidOperations:d,selectedIndexes:p}=e;const h=(0,u.useCallback)((e=>{c(d.push(e)),s(Wl(0))}),[d,s,c]),f=(0,u.useCallback)((()=>{h({type:"removePages",pageIndexes:[...p]}),s(Ul((0,a.NZ)()))}),[s,h,p]),m=(0,u.useCallback)((()=>{const e=t.get(0),n=e?e.pageSize:dc,r={type:"addPage",backgroundColor:P.Q1.WHITE,pageWidth:n.width,pageHeight:n.height,rotateBy:0,...1===p.size?{afterPageIndex:[...p][0]}:{beforePageIndex:0}};h(r),s(Ul((0,a.NZ)()))}),[t,p,h,s]),g=(0,u.useCallback)((()=>{h({type:"duplicatePages",pageIndexes:[...p]}),s(Ul((0,a.NZ)()))}),[s,h,p]),v=(0,u.useCallback)((()=>{h({type:"rotatePages",pageIndexes:[...p],rotateBy:270})}),[h,p]),y=(0,u.useCallback)((()=>{h({type:"rotatePages",pageIndexes:[...p],rotateBy:90})}),[h,p]),b=(0,u.useCallback)(((e,t)=>{const n=null!=t?t:p,r=e-1;h({type:"movePages",pageIndexes:[...n],...0===e?{beforePageIndex:0}:{afterPageIndex:r}});let o=(0,a.NZ)(),i=0===e?0:r+1;n.forEach((e=>{e<i&&--i}));const l=Array.from(n);for(let e=0;e<l.length;e++)o=o.add(i+e);s(Ul(o))}),[p,h,s]),w=(0,u.useCallback)((()=>{s(Ul(n.keySeq().toSet()))}),[s,n]),x=(0,u.useCallback)((async()=>{s(ql(!0)),(0,l.V1)(null!==r);try{const e=await r.exportPDFWithOperations(d.flatten().toArray().map(Es.ty).concat([{type:"keepPages",pageIndexes:[...p].map((e=>Number(e)))}]));(0,l.V1)(null!==o),(0,Yn.bc)(e,o)}catch(e){throw e}finally{s(ql(!1))}}),[s,r,d,p,o]),S=(0,u.useCallback)((()=>{s(Ul((0,a.NZ)()))}),[s]),_=(0,u.useCallback)(((e,t)=>{const n=null!=t?t:p;return!(n.includes(e-1)||0===e&&n.includes(0)||n.sort().first()===e)}),[p]),C=(0,u.useCallback)(((e,t)=>{const n=(0,a.NZ)(e);_(t,n)&&b(t,n)}),[b,_]),E=(0,u.useCallback)((e=>{const{oldIndexes:t,newIndex:n}=function(e){const{keys:t,target:n}=e,r=Array.from(t).map((e=>parseInt(e,10))),o=parseInt(n.key,10);let i;return"before"===n.dropPosition?i=o:"after"===n.dropPosition&&(i=o+1),{oldIndexes:r,newIndex:i}}(e);"number"==typeof n&&C(t,n)}),[C]),k=(0,u.useCallback)((()=>{if(0===p.size||p.has(0))return;const e=Array.from(p).sort(((e,t)=>e-t)),t=e.map((e=>({type:"movePages",pageIndexes:[e],beforePageIndex:e-1})));h((0,a.B8)(t)),s(Ul((0,a.NZ)(e.map((e=>e-1)))))}),[p,h,s]),z=(0,u.useCallback)((()=>{if(0===p.size||p.has(n.size-1))return;const e=Array.from(p).sort(((e,t)=>t-e));h({type:"movePages",pageIndexes:e,afterPageIndex:e[0]+1}),s(Ul((0,a.NZ)(e.map((e=>e+1)))))}),[p,n.size,h,s]),A=(0,u.useCallback)((async()=>{const e={};1===p.size?e.afterPageIndex=[...p][0]:e.beforePageIndex=0;const t=document.createElement("input");t.type="file",t.accept="application/pdf",t.setAttribute("multiple",""),t.onclick=e=>{(0,l.V1)(e.target instanceof HTMLInputElement),e.target.value=""},t.onchange=t=>{if((0,l.V1)(t.target instanceof HTMLInputElement),0===t.target.files?.length)return;let n=d;for(const r of t.target.files){if("string"!=typeof r.name||0===r.name.length)return;if("application/pdf"!==r.type)return void(0,l.S7)("The uploaded file must be a PDF.");r.arrayBuffer().then((t=>{n=n.push({type:"importDocument",treatImportedDocumentAsOnePage:!0,document:new File([t],r.name,{type:r.type,lastModified:r.lastModified}),...e}),c(n),s(Wl(0)),s(Ul((0,a.NZ)()))})).catch((e=>{throw new l.uE(`Could not read the imported file: ${e.message}`)}))}},t.click()}),[s,p,c,d]),D=(0,u.useCallback)((()=>{s(Ul((0,a.NZ)())),s(Wl(i+1))}),[s,i]),T=(0,u.useCallback)((()=>{s(Ul((0,a.NZ)())),s(Wl(i-1))}),[s,i]);return{pushOperation:h,handleRemoveClick:f,handleAddClick:m,handleDuplicateClick:g,handleRotateLeftClick:v,handleRotateRightClick:y,movePagesTo:b,handleSelectAllClick:w,handleExtractPagesClick:x,handleSelectNoneClick:S,handleReorder:E,handleMoveLeftClick:k,handleMoveRightClick:z,handleImportClick:A,handleUndoClick:D,handleRedoClick:T}};function ec(e,t){switch(t.type){case jl:return{...e,operations:t.payload};case Fl:return{...e,operations:e.operations.push(t.payload),undoDepth:0};case Bl:return{...e,selectedIndexes:t.payload};case Ll:return{...e,undoDepth:t.payload};case Vl:return{...e,isCommitting:t.payload};case Kl:return{...e,thumbnailWidth:t.payload};case Hl:return{...e,disableZoomFlag:t.payload};case $l:return{...e,moveTarget:t.payload};default:return e}}function tc(e){return{operations:(0,a.B8)(),selectedIndexes:(0,a.NZ)(),undoDepth:0,isCommitting:!1,thumbnailWidth:Ol(e.documentEditorConfig.thumbnailDefaultSize,e.documentEditorConfig.thumbnailMinSize,e.documentEditorConfig.thumbnailMaxSize),disableZoomFlag:"",moveTarget:void 0}}var nc=n(67926),rc=n(74847),oc=n.n(rc),ic=n(86885),ac=n(2861),sc=n.n(ac);function lc(e,t,n,r){const{width:o,height:i}=e,a=Math.min(n/o,n/i),s=Math.min(r/o,r/i),l=Math.ceil(o*s*(0,Nr.I)()),c=Math.ceil(i*s*(0,Nr.I)()),u=Math.floor(o*a),d=Math.floor(i*a);let p=u,h=d;90!==t&&270!==t||(p=d,h=u);let f=0,m=0;return 90===t?f=p:180===t?(f=p,m=h):270===t&&(m=h),{ratio:a,tileRatio:s,tileWidth:l,tileHeight:c,containerWidth:u,containerHeight:d,rotatedWidth:p,rotatedHeight:h,translationX:f,translationY:m}}const cc=(0,vn.F)((function(e,t){const{page:n}=t,{backend:r,annotations:o,attachments:i,formFields:s,showAnnotations:l,renderPageCallback:c}=e,u=l?(0,B.T1)(o,n):void 0,d=l?(0,Oe.uk)(s,n):void 0,p=l&&d?(0,Oe.UA)(d.reduce(((e,t)=>e.set(t.name,t)),(0,a.T5)())):void 0;return{annotations:u,formFields:d,formFieldValues:p,attachments:l?i:void 0,backend:r,renderPageCallback:c,digitalSignatures:e.digitalSignatures}}))((function(e){const{page:{pageSize:t,pageIndex:n,pageKey:r},size:o,maxSize:i,backend:a,annotations:s,attachments:l,formFields:c,formFieldValues:d,renderPageCallback:p,digitalSignatures:h,pageRef:f}=e,m=e.rotation||0,{ratio:g,tileRatio:v,tileWidth:y,tileHeight:b,rotatedWidth:w,rotatedHeight:x,translationX:S,translationY:_}=lc(t,m,o,i),C=u.useMemo((function(){return new z.or({width:y,height:b})}),[b,y]),E=u.useMemo((function(){return new z.rw({width:y,height:b})}),[b,y]),k={width:w,height:x,transform:`\n      translateX(${S}px)\n      translateY(${_}px)\n      rotate(${m}deg)\n      scale(${g/v/(0,Nr.I)()})\n    `,transformOrigin:"top left"};return(0,oe.jsxs)("div",{style:k,ref:f,children:[(0,oe.jsx)("div",{className:sc().tilePlaceholder,style:{width:y,height:b}}),(0,oe.jsx)(ic.A,{backend:a,pageIndex:n,originalPageSize:t,scaledPageSize:C,rect:E,annotations:s,attachments:l,formFields:c,formFieldValues:d,renderPageCallback:p,digitalSignatures:h,pageKey:r,renderAsBackgroundImage:!0})]})})),uc=cc,dc=new P.or({width:_e.Pw,height:_e.Gz}),pc=(0,T.Mz)([e=>e.documentEditorFooterItems],(e=>e.toJS())),hc=(0,T.Mz)([e=>e.documentEditorToolbarItems],(e=>e.toJS())),fc=e=>{const t=(0,s.d4)((e=>e.pages)),n=(0,s.d4)((e=>e.backend)),r=(0,s.d4)((e=>e.frameWindow)),o=(0,s.d4)(pc,s.bN),i=(0,s.d4)(hc,s.bN),c=(0,s.d4)((e=>e.documentEditorConfig)),d=(0,s.d4)((e=>e.viewportState.zoomStep)),{formatMessage:h}=(0,ve.tz)(),[f,m]=(0,u.useReducer)(ec,{documentEditorConfig:c},tc),{thumbnailWidth:g,disableZoomFlag:y,isCommitting:b,undoDepth:w,selectedIndexes:x,moveTarget:S}=f,_=(0,s.wA)(),{handleZoomIn:C,handleZoomOut:E,handleResetZoom:k}=(e=>{let{dispatch:t,documentEditorConfig:n,thumbnailWidth:r,zoomStep:o,disableZoomFlag:i}=e;return{handleZoomIn:(0,u.useCallback)((()=>{const{thumbnailMaxSize:e}=n;if(i!==Xl){const n=r*o;t(n<e?{type:Hl,payload:""}:{type:Hl,payload:Xl}),t({type:Kl,payload:n})}}),[i,t,n,r,o]),handleZoomOut:(0,u.useCallback)((()=>{const{thumbnailMinSize:e}=n;if(i!==Jl){let n=r/o;n<e?(t(Zl(Jl)),n=e):t(Zl("")),t(Gl(n))}}),[i,t,n,r,o]),handleResetZoom:(0,u.useCallback)((()=>{const{thumbnailDefaultSize:e,thumbnailMinSize:r,thumbnailMaxSize:o}=n;t(Gl(Ol(e,r,o))),t(Zl(""))}),[t,n])}})({dispatch:m,documentEditorConfig:c,thumbnailWidth:g,zoomStep:d,disableZoomFlag:y}),[z,A]=(0,u.useState)((0,a.B8)()),D=z.slice(0,z.size-w),T=(0,u.useMemo)((()=>((e,t,n)=>{const r=t.flatten();let o=e.map((e=>({type:"page",page:e,rotation:0,label:e.pageLabel})));const i=e=>{if("page"!==e.type)return 1;const t=e.dupeOf||e.label;let n=0;for(const e of o)"page"===e.type&&e.dupeOf===t&&"number"==typeof e.dupeNumber&&e.dupeNumber>n&&(n=e.dupeNumber);return n+1};let a=0;for(const e of r)switch(e.type){case"addPage":{let t;"afterPageIndex"in e&&"number"==typeof e.afterPageIndex?t=e.afterPageIndex+1:"beforePageIndex"in e&&"number"==typeof e.beforePageIndex?t=e.beforePageIndex:(0,l.GQ)(e),++a,o=o.insert(t,{type:"newPage",label:`${n(Rl.newPage)} ${a}`,rotation:0,size:new P.or({width:e.pageWidth,height:e.pageHeight})});break}case"removePages":{const t=e.pageIndexes.map((e=>o.get(e)));for(const e of t){(0,l.V1)(null!=e);const t=o.indexOf(e);o=o.delete(t)}break}case"rotatePages":for(const t of e.pageIndexes){const n=o.get(t);let r;(0,l.V1)(n),(0,l.V1)("page"===n.type||"newPage"===n.type,"Rotation is not allowed on imported documents");const i=n.rotation;r=90===e.rotateBy?270===i?0:i+e.rotateBy:90===i?0:180===i?90:270===i?180:i+e.rotateBy,(0,l.V1)(0===r||90===r||180===r||270===r);const a={...n,rotation:r};o=o.set(t,a)}break;case"duplicatePages":{const t=e.pageIndexes.map((e=>o.get(e)));for(const e of t){(0,l.V1)(null!=e),(0,l.V1)("page"===e.type);const t=i(e),n=e.dupeOf||e.label,r=o.indexOf(e);o=o.insert(r+1,Object.assign({},e,{label:`${n} (${t})`,dupeOf:n,dupeNumber:t}))}break}case"movePages":{const t=e.pageIndexes;if(1===t.length){const n=t[0];let r;"afterPageIndex"in e&&"number"==typeof e.afterPageIndex?r=e.afterPageIndex+1:"beforePageIndex"in e&&"number"==typeof e.beforePageIndex?r=e.beforePageIndex:(0,l.GQ)(e);const i=o.get(n);(0,l.V1)(null!=i);const a=o.get(r),s=o.size;o=o.delete(n),r===s?o=o.push(i):0===r?o=o.unshift(i):((0,l.V1)(null!=a),o=o.insert(o.indexOf(a),i))}else{const n=t.slice().sort();if("beforePageIndex"in e&&"number"==typeof e.beforePageIndex){(0,l.V1)(0===e.beforePageIndex);const t=n.map((e=>o.get(e))).reverse();for(const e of t)(0,l.V1)(e),o=o.delete(o.indexOf(e)),o=o.unshift(e)}else if("afterPageIndex"in e&&"number"==typeof e.afterPageIndex){const t=o.get(e.afterPageIndex);(0,l.V1)(null!=t);const r=n.map((e=>o.get(e))).reverse();for(const e of r)(0,l.V1)(e),o=o.delete(o.indexOf(e)),o=o.insert(o.indexOf(t)+1,e)}else(0,l.GQ)(e)}break}case"importDocument":{let t,n;"beforePageIndex"in e&&"number"==typeof e.beforePageIndex?t=e.beforePageIndex:((0,l.V1)("afterPageIndex"in e&&"number"==typeof e.afterPageIndex),t=e.afterPageIndex+1),"string"!=typeof e.document&&"name"in e.document?((0,l.V1)("string"==typeof e.document.name),n=e.document.name):n=e.document,o=o.insert(t,{type:"importedDocument",label:n});break}}return o})(t,z.slice(0,z.size-w),h)),[t,z,w,h]),I=0!==x.size&&x.size!==T.size&&!b,M=0!==x.size&&![...x].includes(0),N=0!==x.size&&![...x].includes(T.size-1),O=w<z.size,R=w>0,j=x.size<T.size&&!b,F=0!==x.size&&!b,B=x.size>0&&x.size!==T.size&&!b,L=x.size>0&&void 0===[...x].find((e=>{const t=T.get(e);return null!=t&&("page"!==t.type&&"newPage"!==t.type)})),V=x.size>0&&void 0===[...x].find((e=>{const t=T.get(e);return null!=t&&"page"!==t.type})),K=(0,u.useMemo)((()=>x.map(String)),[x]),H=(0,u.useCallback)((e=>{let t;t="all"===e?T.keySeq().toSet():(0,a.NZ)(Array.from(e).map(Number)),m(Ul(t))}),[T,m]),{handleRemoveClick:$,handleAddClick:U,handleDuplicateClick:W,handleRotateLeftClick:q,handleRotateRightClick:G,movePagesTo:Z,handleSelectAllClick:Y,handleExtractPagesClick:X,handleSelectNoneClick:J,handleReorder:Q,handleMoveLeftClick:ee,handleMoveRightClick:te,handleImportClick:ne,handleUndoClick:re,handleRedoClick:ie}=Ql({pages:t,editorPages:T,backend:n,frameWindow:r,undoDepth:w,documentEditorDispatch:m,setOperations:A,undidOperations:D,selectedIndexes:x}),ae=(0,u.useCallback)((e=>{if(null!=document.activeElement&&"INPUT"===document.activeElement.tagName)return;const t=e.key.toLowerCase(),n=e.metaKey||e.ctrlKey,r=n&&!e.shiftKey&&!e.altKey,o=e.altKey&&!n&&!e.shiftKey,i=!n&&!e.shiftKey&&!e.altKey;if(e.altKey&&e.shiftKey&&!n&&"arrowleft"===t)q();else if(e.altKey&&e.shiftKey&&!n&&"arrowright"===t)G();else if(o&&"arrowleft"===t)ee();else if(o&&"arrowright"===t)te();else if(n&&e.shiftKey&&!e.altKey&&"z"===t)ie();else if(r&&"z"===t)re();else if(r&&"a"===t)Y();else if(r&&"d"===t)J();else if(!r||"="!==t&&"+"!==t)if(r&&"-"===t)E();else if(r&&"0"===t)k();else if(i&&"n"===t)U();else if(i&&"d"===t)$();else if(i&&"c"===t)W();else if(i&&"l"===t)q();else if(i&&"r"===t)G();else{if(!i||"i"!==t)return;ne()}else C();e.preventDefault()}),[U,W,ne,ee,te,ie,$,k,q,G,Y,J,re,C,E]),se=(0,u.useMemo)((()=>{const e="PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",t="PSPDFKit-Toolbar-Button-disabled PSPDFKit-Tool-Button-disabled";return{add:{type:"ActionButton",props:{iconStart:Al.Wy4,label:h(Rl.newPage),size:"md",variant:"toolbar",onPress:U,className:e}},remove:{type:"ActionButton",props:{className:B?e:`${e} ${t}`,iconStart:Al.tpl,label:h(Rl.removePage),size:"md",variant:"toolbar",onPress:$,isDisabled:!B}},duplicate:{type:"ActionButton",props:{className:p()(e,!V&&t),iconStart:Al.wQ8,label:h(Rl.duplicatePage),size:"md",variant:"toolbar",onPress:W,isDisabled:!V}},"rotate-left":{type:"ActionButton",props:{className:p()(e,!L&&t),iconStart:Al.HTp,label:h(Rl.rotatePageLeft),size:"md",variant:"toolbar",onPress:q,isDisabled:!L}},"rotate-right":{type:"ActionButton",props:{className:p()(e,!L&&t),iconStart:Al.h8W,label:h(Rl.rotatePageRight),size:"md",variant:"toolbar",onPress:G,isDisabled:!L}},move:{type:"Popover",props:{className:e,popoverTriggerProps:{children:(0,oe.jsx)(v.ActionButton,{iconStart:Al.ot,variant:"toolbar",label:h(Rl.move),size:"md",isDisabled:!I},"move")},popoverContentProps:{children:(0,oe.jsx)(v.Dialog,{variant:"ghost",size:"content","aria-label":h(Rl.move),className:"PSPDFKit-DocumentEditor-MoveDialog",children:(0,oe.jsx)(Dl.hY,{inputLabel:h(Rl.insertAfterPage),description:h(Rl.docEditorMoveBeginningHint),onMove:()=>{if(S){const e=Math.min(Number(S),T.size);Z(e)}},onChange:e=>{m(Yl(e))}})})}}},"move-left":{type:"ActionButton",props:{className:p()(e,!M&&t),iconStart:Al.dtV,label:h(Rl.moveBefore),size:"md",variant:"toolbar",onPress:ee,isDisabled:!M}},"move-right":{type:"ActionButton",props:{className:p()(e,!N&&t),iconStart:Al.UoP,label:h(Rl.moveAfter),size:"md",variant:"toolbar",onPress:te,isDisabled:!N}},"import-document":{type:"ActionButton",props:{className:e,iconStart:Al.s5B,label:h(Rl.mergeDocument),size:"md",variant:"toolbar",onPress:ne}},"extract-pages":{type:"ActionButton",props:{className:p()(e,0!==x.size&&t),iconStart:Al.QSY,label:h(Rl.extractPages),size:"md",variant:"toolbar",onPress:X,isDisabled:0===x.size}},undo:{type:"ActionButton",props:{className:p()(e,!O&&t),iconStart:Al.ejX,label:h(xe.A.undo),size:"md",variant:"toolbar",onPress:re,isDisabled:!O}},redo:{type:"ActionButton",props:{className:p()(e,!R&&t),iconStart:Al.UfX,label:h(xe.A.redo),size:"md",variant:"toolbar",onPress:ie,isDisabled:!R}},"select-all":{type:"ActionButton",props:{className:p()(e,!j&&t),iconStart:Al.nhX,label:h(Rl.selectAll),size:"md",variant:"toolbar",onPress:Y,isDisabled:!j}},"select-none":{type:"ActionButton",props:{className:p()(e,!F&&t),iconStart:Al.C8f,label:h(Rl.selectNone),size:"md",variant:"toolbar",onPress:J,isDisabled:!F}},"zoom-out":{type:"ActionButton",props:{className:p()(e,y===Jl&&t),iconStart:Al.LoD,label:h(Rl.zoomOut),size:"md",variant:"toolbar",onPress:E,isDisabled:y===Jl}},"zoom-in":{type:"ActionButton",props:{className:p()(e,y===Xl&&t),iconStart:Al.ADv,label:h(Rl.zoomIn),size:"md",variant:"toolbar",onPress:C,isDisabled:y===Xl}}}}),[V,I,M,N,R,B,L,j,F,O,y,T.size,h,U,W,X,ne,ee,te,ie,$,q,G,Y,J,re,C,E,Z,S,x.size]),le=(0,u.useCallback)((()=>{m(ql(!0)),_((0,nc._p)(D.flatten().toArray(),(()=>{m(ql(!1))}),(e=>{throw m(ql(!1)),e})))}),[_,D]),ce=(0,u.useCallback)((async()=>{m(ql(!0));try{(0,l.V1)(null!==n);const e=await n.exportPDFWithOperations(D.flatten().toArray().map(Es.ty));(0,l.V1)(null!==r),(0,Yn.bc)(e,r)}catch(e){throw e}finally{m(ql(!1))}}),[n,D,r]),ue=(0,u.useMemo)((()=>h(Rl.pagesSelected,{arg0:x.size})),[h,x.size]),de=u.useMemo((()=>({cancel:{name:"cancel",type:"ActionButton",props:{"data-block-id":"cancel",size:"md",label:h(xe.A.cancel),className:"PSPDFKit-DocumentEditor-CancelButton",variant:"secondary",onPress:e.onCancel}},spacer:{type:"spacer"},"selected-pages":{name:"selected-pages",type:"TagGroup",props:{ariaLabel:ue,className:"PSPDFKit-DocumentEditor-PagesSelectedIndicator",items:[{id:ue,label:ue}]}},"save-as":{name:"saveAs",type:"ActionButton",props:{"data-block-id":"save-as",size:"md",label:h(xe.A.saveAs),className:"PSPDFKit-DocumentEditor-SaveAsButton",style:{marginInline:8},variant:"secondary",onPress:ce}},save:{name:"save",type:"ActionButton",props:{"data-block-id":"save",size:"md",label:h(xe.A.save),className:"PSPDFKit-DocumentEditor-SaveButton",variant:"primary",onPress:le}}})),[h,ce,le,ue,e.onCancel]),pe=(0,u.useCallback)(((e,t,n)=>{const r=T.get(e);let o;switch((0,l.V1)(null!=r),r.type){case"page":o=(0,oe.jsx)(uc,{page:r.page,size:t,maxSize:n,rotation:r.rotation,renderAsBackgroundImage:!0},`page-${r.label}`);break;case"importedDocument":{const{containerWidth:e,containerHeight:i}=lc(dc,0,t,n);o=(0,oe.jsx)(Nl,{width:e,height:i,styles:oc(),formatMessage:h},`importedDoc-${r.label}`);break}case"newPage":{const{rotatedWidth:e,rotatedHeight:i}=lc(r.size,r.rotation,t,n);o=(0,oe.jsx)("div",{style:{width:e,height:i}},`newPage-${r.label}`);break}default:o=(0,oe.jsx)(oe.Fragment,{})}return{item:o,label:r.label,props:"page"===r.type?{"data-original-page-index":r.page.pageIndex}:{},rotation:"importedDocument"!==r.type?r?.rotation:0}}),[T,h]),he=(e=>{let{documentEditorToolbarItems:t,builtInToolbarItems:n,operations:r,selectedIndexes:o,documentEditorDispatch:i,setOperations:s}=e;return(0,u.useMemo)((()=>t.flatMap(((e,c)=>{const u=(()=>{if("custom"===e.type||e.node){const t=e.node?.textContent||e.title||e.id;let n;if(e.onPress){const t={setOperations:(e,t)=>{const n=e(r);if(!a.B8.isList(n))throw new l.uE("The setOperations callback must return an Immutable List of DocumentOperation objects.");s(n),t&&i(Ul((0,a.NZ)()))},getSelectedPageIndexes:()=>[...o]};n=async n=>{i(ql(!0));try{await(e.onPress?.(n,t,e.id))}catch(n){throw n}finally{i(ql(!1))}}}return{name:e.id,type:"ActionButton",props:{...e,onPress:n,label:t}}}const t=n[e.type];return{...t,name:e.type,props:{...t?t.props:{},...e}}})();return c<t.length-1?[u,{type:"separator"}]:[u]}))),[t,n,r,o,i,s])})({documentEditorToolbarItems:i,builtInToolbarItems:se,operations:z,selectedIndexes:x,documentEditorDispatch:m,setOperations:A}),fe=(e=>{let{documentEditorFooterItems:t,builtInFooterItems:n,operations:r,selectedIndexes:o,documentEditorDispatch:i,setOperations:s}=e;return(0,u.useMemo)((()=>t.map((e=>{if("custom"===e.type||e.node){const t=e.node?.textContent||e.title||e.id;let n;if(e.onPress){const t={setOperations:(e,t)=>{const n=e(r);if(!a.B8.isList(n))throw new l.uE("The setOperations callback must return an Immutable List of DocumentOperation objects.");s(n),t&&i(Ul((0,a.NZ)()))},getSelectedPageIndexes:()=>[...o]};n=async n=>{i(ql(!0));try{e.onPress?.(n,t,e.id)}catch(n){throw n}finally{i(ql(!1))}}}return{name:e.id,type:"ActionButton",props:{...e,onPress:n,label:t}}}const t=n[e.type];return{...t,name:e.type,props:{...t?t.props:{},...e}}}))),[t,n,r,o,i,s])})({documentEditorFooterItems:o,builtInFooterItems:de,operations:z,selectedIndexes:x,documentEditorDispatch:m,setOperations:A}),me=(0,u.useMemo)((()=>T.map(((e,t)=>({id:t.toString(),src:"",alt:e.label,label:e.label}))).toArray()),[T]),ge=(0,u.useCallback)((e=>{const{id:t}=e,n=pe(Number(t),g,c.thumbnailMaxSize);return(0,oe.jsx)("div",{className:p()("PSPDFKit-DocumentEditor-Thumbnails-Page-Image","PSPDFKit-DocumentEditor-Page"),children:n.item})}),[c.thumbnailMaxSize,pe,g]),ye=(0,u.useCallback)((e=>{const{id:t}=e,n=T.get(Number(t));(0,l.V1)(null!=n);const r="newPage"===n.type,o="importedDocument"===n.type,i=r||o,a=i?dc:n.page?.pageSize,s=o?0:n.rotation,{rotatedWidth:c,rotatedHeight:u}=lc(a,i?0:n.page?.rotation,g,g),d=90===s||270===s;return{width:d?u:c,height:d?c:u}}),[T,g]);return(0,oe.jsx)(Il,{items:me,toolbarItems:he,footerItems:fe,selectedKeys:K,onSelectionChange:H,imageDimensions:ye,imageContainerStyle:{width:g},onReorder:Q,onKeyDown:ae,renderImage:ge,className:p()("PSPDFKit-DocumentEditor",oc().imageGalleryContent),imageContainerClassName:p()("PSPDFKit-DocumentEditor-Thumbnails-Page"),...e})};var mc=n(25507);const gc=(0,u.createContext)((()=>{throw new Error}));var vc=n(76943),yc=n(21535),bc=n(94045),wc=n(17796),xc=n(39168),Sc=n(82142),_c=n(81457),Cc=n(3322);const Ec={[L.O.INK]:["ink","highlighter"],[L.O.SHAPE_LINE]:["line","arrow"],[L.O.INK_ERASER]:"ink-eraser",[L.O.TEXT_HIGHLIGHTER]:"text-highlighter",[L.O.SHAPE_RECTANGLE]:["rectangle","cloudy-rectangle","dashed-rectangle"],[L.O.SHAPE_ELLIPSE]:["ellipse","cloudy-ellipse","dashed-ellipse"],[L.O.SHAPE_POLYGON]:["polygon","cloudy-polygon","dashed-polygon"],[L.O.SHAPE_POLYLINE]:"polyline",[L.O.NOTE]:"note",[L.O.TEXT]:"text",[L.O.CALLOUT]:"callout",[L.O.LINK]:"link",[L.O.MEASUREMENT]:"measurement",[L.O.CONTENT_EDITOR]:"content-editor"};function kc(e){return e.find((e=>"delete"===e.type))?.icon}function zc(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}var Pc=n(86601),Ac=n.n(Pc);function Dc(e){return{desktop:["stroke-color","fill-color","opacity","line-width",e?"linecaps-dasharray":"line-style","spacer","annotation-note","delete"],mobile:["delete","annotation-note","spacer","stroke-color","fill-color","opacity","line-width",e?"linecaps-dasharray":"line-style"]}}const Tc=a.ss({[ce.Eo.readableName]:{desktop:["stroke-color","fill-color","opacity","line-width","blend-mode","spacer","annotation-note","delete"],mobile:["delete","annotation-note","spacer","stroke-color","fill-color","opacity","line-width","blend-mode"]},[ce.Zx.readableName]:Dc(!1),[ce.Go.readableName]:Dc(!1),[ce.MU.readableName]:Dc(!0),[ce.ug.readableName]:Dc(!0),[ce.Si.readableName]:Dc(!1),[ce.tr.readableName]:{desktop:["color","opacity","blend-mode","spacer","annotation-note","delete"],mobile:["delete","annotation-note","spacer","color","opacity","blend-mode"]},[ce.vU.readableName]:{desktop:["opacity","counterclockwise-rotation","clockwise-rotation","spacer","annotation-note","delete"],mobile:["delete","annotation-note","spacer","opacity","counterclockwise-rotation","clockwise-rotation"]},[ce.xY.readableName]:{desktop:["opacity","spacer","annotation-note","delete"],mobile:["delete","annotation-note","spacer","opacity"]},[ce.sb.readableName]:{desktop:["opacity","counterclockwise-rotation","clockwise-rotation","spacer","annotation-note","delete"],mobile:["delete","counterclockwise-rotation","clockwise-rotation","annotation-note","spacer","opacity"]},[ce.dh.readableName]:{desktop:["color","background-color","border-color","opacity","font","spacer","delete"],mobile:["delete","spacer","color","background-color","border-color","opacity","font"]},[Y.A.readableName]:{desktop:["fill-color","overlay","outline-color","opacity","spacer","annotation-note","delete","apply-redactions"],mobile:["delete","apply-redactions","annotation-note","spacer","fill-color","overlay","outline-color","opacity"]},[ce.s9.readableName]:{desktop:["color","note-icon","spacer","delete"],mobile:["delete","spacer","color","note-icon"]},[ce.UL.readableName]:{desktop:["stroke-color","opacity","line-width","spacer","annotation-note","delete","line-style"],mobile:["delete","annotation-note","spacer","stroke-color","opacity","line-width","line-style"]},Measurement:{desktop:["back","measurementType","measurementScale","stroke-color","opacity","line-width","snapping","spacer","annotation-note","delete"],mobile:["back","measurementType","measurementScale","delete","annotation-note","spacer","stroke-color","opacity","line-width","snapping"]},[L.O.INK_ERASER]:{desktop:["line-width"],mobile:["spacer","line-width"]},[L.O.DOCUMENT_CROP]:{desktop:["crop-current","crop-all","spacer","close"],mobile:["close","spacer","crop-current","crop-all"]},[L.O.CONTENT_EDITOR]:{desktop:["add-text-box","text-color","font","spacer","delete","cancel-save"],mobile:["add-text-box","text-color","font","spacer","delete","cancel-save"]},[L.O.FORM_CREATOR]:{mobile:["form-button","form-text","form-radio","form-checkbox","form-combobox","form-listbox","form-signature","form-date","separator-end-enforce"],desktop:["form-button","form-text","form-radio","form-checkbox","form-combobox","form-listbox","form-signature","form-date","separator-end-enforce"]},[L.O.BUTTON_WIDGET]:{mobile:["form-button","form-text","form-radio","form-checkbox","form-combobox","form-listbox","form-signature","form-date","separator-end-enforce"],desktop:["form-button","form-text","form-radio","form-checkbox","form-combobox","form-listbox","form-signature","form-date","separator-end-enforce"]},[L.O.CHECKBOX_WIDGET]:{mobile:["form-button","form-text","form-radio","form-checkbox","form-combobox","form-listbox","form-signature","form-date","separator-end-enforce"],desktop:["form-button","form-text","form-radio","form-checkbox","form-combobox","form-listbox","form-signature","form-date","separator-end-enforce"]},[L.O.COMBO_BOX_WIDGET]:{mobile:["form-button","form-text","form-radio","form-checkbox","form-combobox","form-listbox","form-signature","form-date","separator-end-enforce"],desktop:["form-button","form-text","form-radio","form-checkbox","form-combobox","form-listbox","form-signature","form-date","separator-end-enforce"]},[L.O.LIST_BOX_WIDGET]:{mobile:["form-button","form-text","form-radio","form-checkbox","form-combobox","form-listbox","form-signature","form-date","separator-end-enforce"],desktop:["form-button","form-text","form-radio","form-checkbox","form-combobox","form-listbox","form-signature","form-date","separator-end-enforce"]},[L.O.RADIO_BUTTON_WIDGET]:{mobile:["form-button","form-text","form-radio","form-checkbox","form-combobox","form-listbox","form-signature","form-date","separator-end-enforce"],desktop:["form-button","form-text","form-radio","form-checkbox","form-combobox","form-listbox","form-signature","form-date","separator-end-enforce"]},[L.O.SIGNATURE_WIDGET]:{mobile:["form-button","form-text","form-radio","form-checkbox","form-combobox","form-listbox","form-signature","form-date","separator-end-enforce"],desktop:["form-button","form-text","form-radio","form-checkbox","form-combobox","form-listbox","form-signature","form-date","separator-end-enforce"]},[L.O.TEXT_WIDGET]:{mobile:["form-button","form-text","form-radio","form-checkbox","form-combobox","form-listbox","form-signature","form-date","separator-end-enforce"],desktop:["form-button","form-text","form-radio","form-checkbox","form-combobox","form-listbox","form-signature","form-date","separator-end-enforce"]},[L.O.DATE_WIDGET]:{mobile:["form-button","form-text","form-radio","form-checkbox","form-combobox","form-listbox","form-signature","form-date","separator-end-enforce"],desktop:["form-button","form-text","form-radio","form-checkbox","form-combobox","form-listbox","form-signature","form-date","separator-end-enforce"]}}),Ic=(0,O.A)("AnnotationToolbarItem");function Mc(e,t){const n=Tc.get(t);Ic(n,"There are no built-in annotation toolbar items for this annotation type");const r=new Set([...n.get("mobile")?.toJS()??[],...n.get("desktop")?.toJS()??[]]);Ic((0,l.Qd)(e)&&!!e,"Expected item to be an object"),e.icon&&"custom"!==e.type?Ic((0,R.Kg)(e.icon),"Expected icon to be a string"):e.icon&&Ic((0,R.Kg)(e.icon)||e.icon instanceof Node,"Expected icon to be a string or a Node");const{icon:o,...i}=e;(0,Ls.t)({...i,type:"custom"}),Ic("type"in e&&(0,R.Kg)(e.type)&&[...r,"spacer","custom"].includes(e.type),`Expected item.type to one of ${[...r,"spacer","custom"].join(", ")}`),"custom"===e.type&&(Ic("id"in e&&(0,R.Kg)(e.id),"Expected item.id to be a string"),Ic("node"in e||"icon"in e,"Expected item to have either a `node` or `icon` property for custom element"))}var Nc=n(28561),Oc=n.n(Nc);const Rc=u.memo(u.forwardRef((function(e,t){const{type:n,selected:r,disabled:o,onPress:i,icon:a,role:s,title:l,doNotAutoFocusOnFirstItem:c=!1}=e,d=u.useRef(!1),h=u.useCallback((function(e){e.preventDefault(),!o&&i&&i(e.nativeEvent,d.current)}),[i,o]),f=u.useCallback((function(){d.current=!0}),[]),m=u.useCallback((function(){d.current=!1}),[]),g=(0,Se.A)({icon:a,type:n,className:p()(void 0!==e.children&&Oc().withLabel,"PSPDFKit-Tool-Button-Icon",e.iconClassName)}),v=e.children||(g?null:l),y=p()(Oc().root,r&&Oc().isActive,o&&Oc().isDisabled,"string"==typeof e.className&&e.className,"PSPDFKit-Tool-Button",r&&"PSPDFKit-Tool-Button-active",o&&"PSPDFKit-Tool-Button-disabled");u.useEffect((()=>{!e.presentational&&t&&t.current&&!c&&t.current.focus()}),[e.presentational,t,c]);const b=(0,oe.jsxs)("button",{className:y,title:l,"aria-label":l,disabled:o,onClick:i?h:void 0,onKeyDown:i?f:void 0,onPointerUp:i?m:void 0,"aria-pressed":"annotate"!==n&&"responsive-group"!==n&&void 0!==r?r:void 0,...e.itemComponentProps,role:s||(e.itemComponentProps?e.itemComponentProps.role:void 0),type:"button",ref:t,children:[g,null!=v&&(0,oe.jsx)("span",{children:v})]});return e.presentational?(0,oe.jsx)("div",{children:(0,oe.jsx)("div",{className:y,title:l,"aria-hidden":"true",role:"presentation",children:g})}):e.disabled?(0,oe.jsx)("div",{className:p()({[Oc().disabledWrapper]:e.disabled}),children:b}):b})));var jc=n(92862),Fc=n.n(jc);const Bc=u.forwardRef((function(e,t){const{selected:n,disabled:r}=e,o=p()(Fc().root,n&&Fc().isActive,r&&Fc().isDisabled,"string"==typeof e.className&&e.className,"PSPDFKit-Toolbar-Button",n&&"PSPDFKit-Toolbar-Button-active",r&&"PSPDFKit-Toolbar-Button-disabled");return(0,oe.jsx)(Rc,{...e,className:o,iconClassName:"PSPDFKit-Toolbar-Button-Icon",ref:t,itemComponentProps:e.itemComponentProps})}));var Lc=n(75401),Vc=n.n(Lc);const Kc=u.memo(u.forwardRef((function(e,t){const{node:n,title:r,selected:o,disabled:i}=e,a=u.useRef();u.useImperativeHandle(t,(()=>({focus:()=>{n instanceof n.ownerDocument.defaultView.HTMLElement&&n.focus()}}))),u.useLayoutEffect((()=>{const e=a&&a.current;e&&(e.innerHTML="",e.appendChild(n))}),[n]);const s=p()("PSPDFKit-Tool-Node",{"PSPDFKit-Tool-Node-active":o,"PSPDFKit-Tool-Node-disabled":i},e.className,Vc().root,{[Vc().disabled]:i,[Vc().annotationToolbar]:"annotationToolbar"===e.variant}),l=e.onPress?t=>{let{nativeEvent:n}=t;e.onPress&&e.onPress(n)}:void 0;return(0,oe.jsx)("div",{onClick:l,className:s,title:r,"aria-label":r,tabIndex:i?-1:void 0,"aria-disabled":!!i||void 0,...e.itemComponentProps,ref:a})}))),Hc=u.forwardRef((function(e,t){const{selected:n,disabled:r}=e,o=p()("string"==typeof e.className&&e.className,"PSPDFKit-Toolbar-Node",n&&"PSPDFKit-Toolbar-Node-active",r&&"PSPDFKit-Toolbar-Node-disabled");return(0,oe.jsx)(Kc,{...e,className:o,ref:t,itemComponentProps:e.itemComponentProps})}));var $c=n(18891),Uc=n.n($c);const Wc=(0,ve.j4)((function(e){let{children:t,onClose:n,isPrimary:r,position:o,intl:i,accessibilityLabel:a,onEntered:s,className:l}=e;const{formatMessage:c}=i,d=u.Children.count(t)>0,h=u.useRef(null);return(0,oe.jsx)(yl,{children:d&&(0,oe.jsx)(pl,{timeout:{enter:window["PSPDFKit-disable-animations"]?0:150,exit:window["PSPDFKit-disable-animations"]?0:120},classNames:{enter:Uc().slideRightEnter,enterActive:Uc().slideRightEnterActive,enterDone:Uc().slideRightEnterDone,exit:Uc().slideRightExit,exitActive:Uc().slideRightExitActive},onEntered:s,nodeRef:h,children:(0,oe.jsxs)("div",{className:p()({[Uc().responsiveGroup]:!0,[Uc().primary]:r,[Uc().secondary]:!r,[Uc().stickToBottom]:"bottom"===o,"PSPDFKit-Toolbar-Responsive-Group":!0},l),role:"dialog","aria-label":a,ref:h,children:[(0,oe.jsx)(Bc,{type:"custom",title:c(xe.A.close),className:Uc().button,onPress:n,children:(0,oe.jsx)("div",{className:Uc().animatedArrow})}),(0,oe.jsx)("div",{style:{flex:1}}),(0,oe.jsx)("div",{className:Uc().items,children:t})]})})})}));function qc(e){return"custom"===e.type}function Gc(e){return qc(e)?`custom-${e.id}`:e.group}const Zc=e=>"icon"in e?"string"==typeof e.icon?/<svg/i.test(e.icon)?(0,oe.jsx)(Te.A,{className:Ac().customIconSvg,src:e.icon,role:"presentation"}):(0,oe.jsx)("img",{alt:e.title,src:e.icon,role:"presentation"}):e.icon instanceof Node?(0,oe.jsx)(Hc,{node:e.icon,className:e.iconClassName,onPress:t=>e.onIconPress?.(t,e.id),title:e.title,disabled:e.disabled},e.id):void 0:null,Yc=e=>{let{annotationToolbarItems:t,builtInItems:n,btnFocusRefIfFocusedItem:r,onGroupExpansion:o,builtInToolbarProps:i={},expandedGroup:a,hasDesktopLayout:s,onGroupTransitionEnded:l,position:c,typeMap:d}=e;const h=(0,u.useMemo)((()=>t.every((e=>{if(qc(e))return!1;if("spacer"===e.type)return!0;{const t=n.find((t=>t.type===e.type));return!!t?.hidden}}))),[n,t]),f=a?n.find((e=>Gc(e)===a))||t.filter(qc).find((e=>Gc(e)===a)):void 0,m=(0,u.useMemo)((()=>((e,t,n)=>{if(n)return e.map((e=>{const n=!qc(e)&&t.find((t=>t.type===e.type));return{...e,...n&&{group:n.group,node:n.node,title:e.title||n.title,onPress:(t,r)=>{n.onPress?.(t.nativeEvent,e.id),e.onPress?.(t.nativeEvent,r)},disabled:n.disabled&&e.disabled,className:p()(n.className,e.className)}}})).find((e=>n===Gc(e)))})(t,n,a)),[t,a,n]);if(m)return(0,oe.jsx)("div",{className:Ac().right,children:(0,oe.jsx)(Wc,{onClose:()=>o(null),isPrimary:!1,position:c,onEntered:l,accessibilityLabel:m?m.title:void 0,className:Ac().expanded,children:(0,Yn.sb)(m.node)?(0,oe.jsx)(Hc,{node:m.node,className:m.className,onPress:m.onPress,title:m.title,disabled:m.disabled}):(0,oe.jsx)("div",{className:m.className,onClick:e=>m.onPress?.(e.nativeEvent,m.id),title:m.title,children:m.node})})});if(h)return null;const g=t.find((e=>"spacer"!==e.type&&!n.find((t=>t.type===e.type))?.hidden));return(0,oe.jsx)("form",{className:Ac().form,onSubmit:Yn.wo,children:t.map(((e,t)=>{if("spacer"===e.type)return(0,oe.jsx)("div",{className:p()("PSPDFKit-Annotation-Toolbar-Spacer",e.className),style:{display:"flex",flex:1},onClick:t=>e.onPress?.(t.nativeEvent,e.id)},e.type);const l=n.find((t=>t.type===e.type)),c=g?.id===e.id&&g?.type===e.type;if(qc(e)){const n="node"in e&&!!e.node&&(0,oe.jsx)("div",{role:"button",ref:r(Gc(e),f,0===t&&!a),children:(0,oe.jsx)(Hc,{node:e.node,className:e.className,onPress:t=>e.onPress?.(t,e.id),title:e.title,disabled:e.disabled,variant:"annotationToolbar"})},e.id),i="icon"in e&&!!e.icon&&(0,oe.jsx)("div",{role:"button",className:p()(Ac().button,Fc().root,Oc().root,`${e.className}-Icon`),onClick:t=>{"custom"===e.type&&e.node&&o(`custom-${e.id}`),e.onPress?.(t,e.id)},ref:r(Gc(e),f,c&&!a),title:e.title,children:Zc(e)},e.id);return s?n||i:i||n}if(!l||l.hidden)return null;const h=d?.[e.type]||e.type,m="function"==typeof i?i(l):i;return l.group?(0,oe.jsxs)(u.Fragment,{children:[(0,oe.jsxs)("div",{className:p()(l.className,{[Ac().disableEditing]:l.disabled}),children:[(0,oe.jsx)(Bc,{type:h,icon:e.icon,title:e.title||l.title,onPress:t=>{o(l.group||null),s?e.onPress?.(t,e.id):e.onIconPress?.(t,e.id)},...m,className:p()(m.className,e.className),ref:r(Gc(l),f,c&&!a)}),l.node]}),!l.hideSeparator&&(0,oe.jsx)("div",{className:Ac().separator})]},l.type):(0,oe.jsx)("div",{className:p()(l.className,{[Ac().disableEditing]:l.disabled},e.className),onClick:t=>{e.onPress?.(t.nativeEvent,e.id)},title:e.title||l.title,children:l.node},l.type)}))})},Xc=u.memo((function(e){const{formatMessage:t}=e.intl,n=[{node:(0,oe.jsx)(Bc,{type:"widget_ccw",title:t(xe.A.rotateCounterclockwise),className:`PSPDFKit-Widget-Annotation-Toolbar-Button-Rotate PSPDFKit-Widget-Annotation-Toolbar-Button-Rotate-Counterclockwise ${Ac().button} ${Ac().rotateButton}`,onPress:()=>{e.selectedAnnotationPageSize&&e.updateAnnotation((0,B._w)(e.annotation,e.selectedAnnotationPageSize,B.Y5.COUNTERCLOCKWISE))}}),type:"counterclockwise-rotation",disabled:!e.canEditAnnotationCP},{node:(0,oe.jsx)(Bc,{type:"widget_cw",title:t(xe.A.rotateClockwise),className:`PSPDFKit-Widget-Annotation-Toolbar-Button-Rotate PSPDFKit-Widget-Toolbar-Button-Rotate-Clockwise ${Ac().button} ${Ac().rotateButton}`,onPress:()=>{e.selectedAnnotationPageSize&&e.updateAnnotation((0,B._w)(e.annotation,e.selectedAnnotationPageSize,B.Y5.CLOCKWISE))}}),type:"clockwise-rotation",disabled:!e.canEditAnnotationCP},{node:(0,oe.jsx)(Bc,{type:"delete",icon:kc(e.annotationToolbarItems),title:t(xe.A.delete),className:p()("PSPDFKit-Widget-Annotation-Toolbar-Button-Delete",Ac().button,Ac().deleteButton,{[Ac().disabledButton]:!e.canDeleteSelectedAnnotationCP}),onPress:e.canDeleteSelectedAnnotationCP?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===e.annotation.pageIndex}];return(0,oe.jsx)("div",{className:`PSPDFKit-Widget-Annotation-Toolbar ${Ac().content}`,children:(0,oe.jsx)(Yc,{annotationToolbarItems:e.annotationToolbarItems,builtInItems:n,btnFocusRefIfFocusedItem:e.btnFocusRefIfFocusedItem,onGroupExpansion:e.onGroupExpansion,hasDesktopLayout:e.hasDesktopLayout,expandedGroup:e.expandedGroup,onGroupTransitionEnded:e.onGroupTransitionEnded,position:e.position})})}));var Jc=n(77153),Qc=n(76156),eu=n(16870),tu=n(60107);const nu=u.forwardRef(((e,t)=>{const n=(0,s.d4)((e=>e.shadowRoot));let r=[],o=!1;Array.isArray(Xe.JY.LINE_WIDTH_PRESETS)&&(r=Xe.JY.LINE_WIDTH_PRESETS,o=!0);let i=!1,a=!1;e.annotation instanceof P.Eo&&(i=!0),e.annotation instanceof P.UL&&(a=!0);const{intl:{formatMessage:l},styles:c,annotation:u,type:d,caretDirection:h}=e,f=d?`PSPDFKit-${d}-Annotation-Toolbar-StrokeWidth`:"",m=p()("PSPDFKit-Annotation-Toolbar-StrokeWidth",d&&f);let g=1,v=40,y=i?u.lineWidth:a?u.borderWidth:u.strokeWidth;return o&&(g=0,v=r.length-1,y=r.indexOf(y)),(0,oe.jsx)("div",{className:c.controlWrapper,children:(0,oe.jsx)("div",{className:c.control,children:(0,oe.jsx)(tu.A,{name:"lineWidth",accessibilityLabel:e.accessibilityLabel||l(xe.A.size),className:m,value:y,valueLabel:t=>{let n=t;if(o){if(-1===t)return"N/A";n=r[t]}return e.intl.formatMessage(xe.A.numberInPt,{arg0:n.toFixed(0)})},min:g,max:v,step:1,onChange:t=>{let n=t;if(o&&(n=r[t]),i)return e.updateAnnotation({lineWidth:n});if(a)return e.updateAnnotation({borderWidth:n});if(e.annotation instanceof P.Zx||e.annotation instanceof P.Go){const t=n/2-e.annotation.strokeWidth/2,r=e.annotation.cloudyBorderInset?new P.Yy({left:e.annotation.cloudyBorderInset.left+t,top:e.annotation.cloudyBorderInset.top+t,right:e.annotation.cloudyBorderInset.right+t,bottom:e.annotation.cloudyBorderInset.bottom+t}):null;return e.updateAnnotation({strokeWidth:n,boundingBox:(0,K.s3)(e.annotation.constructor)(e.annotation.set("strokeWidth",n)),...r?{cloudyBorderInset:r}:null})}return e.updateAnnotation({strokeWidth:n,boundingBox:(0,K.s3)(e.annotation.constructor)(e.annotation.set("strokeWidth",n))})},caretDirection:h,innerRef:t,shadowRoot:n})})})})),ru=nu;class ou extends u.PureComponent{constructor(){super(...arguments),(0,y.A)(this,"updateAnnotation",(e=>this.props.updateAnnotation({opacity:e/100}))),(0,y.A)(this,"valueLabel",(e=>`${Math.round(e)}%`))}render(){const{intl:{formatMessage:e},styles:t,annotation:n,type:r,caretDirection:o}=this.props,i=r?`PSPDFKit-${r}-Annotation-Toolbar-Opacity`:"",a=p()("PSPDFKit-Annotation-Toolbar-Opacity",r&&i);return(0,oe.jsx)("div",{className:t.controlWrapper,children:(0,oe.jsx)("div",{className:t.control,children:(0,oe.jsx)(tu.A,{name:"opacity",accessibilityLabel:e(xe.A.opacity),className:a,value:100*n.opacity,valueLabel:this.valueLabel,min:10,max:100,step:1,onChange:this.updateAnnotation,caretDirection:o,innerRef:this.props.innerRef,shadowRoot:this.props.shadowRoot})})})}}const iu={StrokeWidthComponent:ru,OpacityComponent:ou};var au=n(96936),su=n.n(au);const lu=function(e){const{intl:t,position:n,annotation:r,expandedGroup:o,btnFocusRefIfFocusedItem:i,annotationToolbarItems:a,hasDesktopLayout:l,btnFocusRefIfFocusedGroup:c,lastToolbarActionUsedKeyboard:d,canDeleteSelectedAnnotationCP:h,selectedAnnotations:f}=e,m=(0,s.wA)(),g=(0,s.d4)((e=>e.shadowRoot)),v=(0,s.d4)((e=>e.secondaryMeasurementUnit)),y=u.useMemo((()=>e.selectedAnnotations&&e.selectedAnnotations.size>1),[e.selectedAnnotations]),b=u.useMemo((()=>!!f&&(0,I.p9)(f)),[f]),w=u.useMemo((()=>(0,I.pq)(r)),[r]),x=(0,br.Kw)((t=>{const{annotation:n,canEditAnnotationCP:r}=e;if(r){if(t.strokeWidth){if(y&&f){const r=[];return f.forEach((e=>{r.push({boundingBox:e.boundingBox.grow((t.strokeWidth-n.strokeWidth)/2),strokeWidth:t.strokeWidth})})),void e.updateAnnotation(r)}t.boundingBox=n.boundingBox.grow((t.strokeWidth-n.strokeWidth)/2)}e.updateAnnotation(t)}})),S=r instanceof P.Zx||r instanceof P.Go?e.updateAnnotation:x,_=r instanceof P.MU||r instanceof P.ug,{formatMessage:C}=t,E={updateAnnotation:S,annotation:r,styles:Ac(),intl:t,caretDirection:"bottom"===n?"up":"down"},k=I.Kh.find((e=>e.title===w)),z=u.useMemo((()=>(0,I.JC)(r,v)),[r,v]),A=[{node:(0,oe.jsx)(Bc,{type:"back",title:C(xe.A.back),className:p()(`PSPDFKit-${w}-Annotation-Toolbar-Button-Back`,Ac().button,Ac().measurementBackButton),onPress:()=>{(0,s.vA)((()=>{m((0,we.J9)()),m((0,lt.iE)("measurement")),m((0,Dt.zB)())}))}}),type:"back"},{node:b?(0,oe.jsx)(Rc,{type:"measure",title:C(xe.A.mixedMeasurements),className:p()(k.className,su().measurementValue,Ac().measurementToolbarButton,"PSPDFKit-Annotation-Toolbar-Measurement"),children:r&&r?.note?(0,oe.jsx)(oe.Fragment,{children:C(xe.A.mixedMeasurements)}):null},C(xe.A.mixedMeasurements)):(0,oe.jsx)(Rc,{type:k.icon,title:C(xe.A[k.localeKey]),className:p()(k.className,su().measurementValue,Ac().measurementToolbarButton,"PSPDFKit-Annotation-Toolbar-Measurement"),children:r&&r?.note?y?(0,oe.jsx)(oe.Fragment,{children:k.title}):(0,oe.jsxs)(oe.Fragment,{children:[k.title,":"," ",(0,oe.jsxs)("b",{children:[r.note,z?` (${z.label})`:""]})]}):null},k.interactionMode),title:C(xe.A[k.localeKey]),type:"measurementType",className:p()(Ac().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-MeasurementType")},{node:(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsx)(Rc,{type:"scale",title:C(mc.DZ.measurementScale),className:p()(Ac().measurementToolbarButton)},"scale"),(0,oe.jsx)(Qc.Ay,{frameWindow:e.frameWindow,selectedAnnotation:r,onAnnotationScaleUpdate:e.updateAnnotation,selectedAnnotations:e.selectedAnnotations})]}),title:C(mc.DZ.measurementScale),type:"measurementScale",className:p()(Ac().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-MeasurementScale")},{node:(0,oe.jsx)(eu.A,{...E,record:e.annotation,colorProperty:"strokeColor",onChange:e.updateAnnotation,className:`PSPDFKit-${w}-Annotation-Toolbar-Stroke-Color`,frameWindow:e.frameWindow,accessibilityLabel:C(xe.A.color),innerRef:c("color",!o),lastToolbarActionUsedKeyboard:d,annotationToolbarColorPresets:e.annotationToolbarColorPresets}),title:C(xe.A.color),group:"color",type:"stroke-color",disabled:!e.canEditAnnotationCP,className:p()(Ac().formGroup,"PSPDFKit-Toolbox",{"PSPDFKit-Toolbox-BorderColor":!_,"PSPDFKit-Toolbox-StrokeColor":_})},{node:(0,oe.jsx)(iu.OpacityComponent,{...E,type:w,innerRef:c("opacity"),shadowRoot:g}),title:C(xe.A.opacity),group:"opacity",type:"opacity",disabled:!e.canEditAnnotationCP,className:p()(Ac().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity")},{node:(0,oe.jsx)(iu.StrokeWidthComponent,{...E,type:w,accessibilityLabel:C(xe.A.thickness),ref:c("line-width")}),title:C(xe.A.thickness),group:"line-width",type:"line-width",disabled:!e.canEditAnnotationCP,className:p()(Ac().formGroup,"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineWidth")},{node:(0,oe.jsx)(Bc,{type:"delete",icon:kc(a),title:C(xe.A.delete),className:p()(`PSPDFKit-${w}-Annotation-Toolbar-Button-Delete`,Ac().button,Ac().deleteButton,{[Ac().disabledButton]:!h}),onPress:h?()=>e.deleteAnnotation():()=>{}}),type:"delete",hidden:null===e.annotation.pageIndex||!!o}],D={className:Ac().button,presentational:e.hasDesktopLayout,disabled:!!o},T={"line-style":"linestyle"};return r instanceof P.MU||r instanceof P.ug||(T["stroke-color"]="border-color"),(0,oe.jsx)("div",{className:p()(`PSPDFKit-${w}-Annotation-Toolbar`,Ac().content,Ac().measurementToolbar),children:(0,oe.jsx)(Yc,{annotationToolbarItems:a,builtInItems:A,btnFocusRefIfFocusedItem:i,onGroupExpansion:e.onGroupExpansion,builtInToolbarProps:D,hasDesktopLayout:l,expandedGroup:o,onGroupTransitionEnded:e.onGroupTransitionEnded,position:n,typeMap:T})})};function cu(){const{formatMessage:e}=(0,v.useI18n)(),t=(0,s.d4)((e=>e.selectedAnnotationIds.size>0?e.annotations.get(e.selectedAnnotationIds.first()):null)),n=(0,s.d4)((e=>e.annotations)),r=(0,s.d4)((e=>e.selectedAnnotationIds)),o=(0,s.d4)((e=>e.selectedAnnotationMode===V.Q.EDITING)),i=(0,s.d4)((e=>e.annotationToolbarColorPresets)),l=(0,s.d4)((e=>e.showAnnotationNotes)),c=(0,s.d4)((e=>t&&e.annotationPresetIds.get(t.id))),d=(0,u.useMemo)((()=>r.map((e=>n.get(e)))),[r,n]),p=(0,s.d4)((e=>e.eventEmitter)),h=(0,s.wA)(),f=(0,s.d4)((e=>e.activeAnnotationNote)),m=(0,u.useCallback)((()=>{const e=d&&d?.size>1;t&&!e?h((0,lt.n9)((0,a.NZ)([t.id]))):e&&d&&h((0,lt.n9)(d.map((e=>e?.id))))}),[t,d,h]),g=(0,u.useCallback)((()=>Boolean(f&&t&&t instanceof P.s9)),[f,t]),y=(0,u.useCallback)((()=>{h((0,we.mm)(null))}),[h]),b=(0,u.useCallback)((()=>{t&&(h((0,lt.g_)(t.delete("note"))),y())}),[h,t,y]),w=(0,u.useCallback)((()=>{if(g())y();else if(t){const e=(0,fr.IZ)(t);h((0,we.mm)(e))}}),[g,t,y,h]),x=(0,s.d4)((e=>t&&(0,cr.db)(t,e))),S=(0,s.d4)((e=>t&&(0,cr.q2)(t,e))),_=(0,u.useCallback)(((e,t,n)=>{if(!e||!S)return;e=e.merge(t);const r={annotations:(0,a.B8)([e]),reason:ee.x.PROPERTY_CHANGE};p.emit("annotations.willChange",r),n&&h((0,lt.iE)(n));const{text:o,...i}=t;h((0,lt.M)(i)),h((0,lt.g_)(e))}),[S,p,h]),C=(0,u.useCallback)(((e,n)=>{t&&_(t,e,n)}),[t,_]),E=(0,u.useCallback)(((e,t)=>{d&&d?.size>1&&(0,s.vA)((()=>{d?.toList().forEach(((n,r)=>{n&&(Array.isArray(e)?_(n,e[r],t):_(n,e,t))}))}))}),[d,_]),k=(0,u.useCallback)((t=>{const n=i?.({propertyName:(()=>{for(const[e,n]of B.S1.entries())if(n===t)return e})(),defaultAnnotationToolbarColorPresets:Xe.JY.COLOR_PRESETS})??{presets:Xe.JY.COLOR_PRESETS};return{...n,presets:n.presets.map((t=>((0,ye.V)(t.color,"Preset color is null"),{color:t.color.toHex(),label:e(t.localization)})))}}),[i,e]),z=(0,u.useMemo)((()=>{const e=k("strokeColor");return{...e,presets:e.presets.filter((e=>"#00000000"!==e.color))}}),[k]),A=(0,u.useMemo)((()=>{const e=k("backgroundColor");return{...e,presets:e.presets.filter((e=>"#00000000"!==e.color))}}),[k]),D=(0,u.useMemo)((()=>{const e=k("fillColor");return t instanceof Jc.A?e:{...e,presets:e.presets.filter((e=>"#00000000"!==e.color))}}),[k]),T=(0,u.useMemo)((()=>{const e=k("fontColor");return{...e,presets:e.presets.filter((e=>"#00000000"!==e.color))}}),[k]),I=(0,u.useMemo)((()=>{const e=k("borderColor");return{...e,presets:e.presets.filter((e=>"#00000000"!==e.color))}}),[k]),M=(0,u.useMemo)((()=>{const e=k("outlineColor");return{...e,presets:e.presets.filter((e=>"#00000000"!==e.color))}}),[k]),N=(0,s.d4)(gn.p9),O=(0,s.d4)((e=>"number"==typeof t?.pageIndex?e.pages.get(t.pageIndex):null)),R=O&&O.pageSize;return{selectedAnnotation:t,selectedAnnotationPage:O,selectedAnnotationPageSize:R,deleteAnnotation:m,closeAnnotationNote:y,deleteAnnotationNote:b,onAnnotationNotePress:w,canDeleteSelectedAnnotationCP:x,canEditAnnotationCP:S,isAnnotationNoteActive:g(),hasAnnotationNote:Boolean(t?.note),updateAnnotation:d&&d?.size>1?E:C,isEditing:o,showAnnotationNotes:l,strokeColorDropdownConfig:z,backgroundColorDropdownConfig:A,fillColorDropdownConfig:D,fontColorDropdownConfig:T,borderColorDropdownConfig:I,outlineColorDropdownConfig:M,variantAnnotationPresetID:c,areOnlyElectronicSignaturesEnable:N}}var uu=n(90128),du=n.n(uu),pu=n(91842),hu=n(20576),fu=n(40027),mu=n(33091),gu=n(20329);const vu=`page-layout-${crypto.getRandomValues(new Uint32Array(20))}`,yu=`transition-label-${crypto.getRandomValues(new Uint32Array(20))}`,bu=`page-rotation-${crypto.getRandomValues(new Uint32Array(20))}`,wu=e=>{let{formatMessage:t,layoutMode:n,dispatch:r,scrollMode:o,isDisabled:i}=e;const a=(e,t)=>{let{isSelected:n,isDisabled:r}=t;(0,fu.V1)(e.value&&"icon"in e.value&&e.value.icon,"Item value is required.");return(0,gu.Y)(v.ToggleIconButton,{"aria-label":e.textValue,icon:e.value.icon,isSelected:n,isDisabled:r,size:"sm",variant:"primary"}).toReactElement()},s=[{id:mu.S.SINGLE,label:t(xu.pageModeSingle),icon:Al.zf_},{id:mu.S.DOUBLE,label:t(xu.pageModeDouble),icon:Al.opr},{id:mu.S.AUTO,label:t(xu.pageModeAutomatic),icon:Al.tM$}],l=[{id:ha.V.CONTINUOUS,label:t(xu.pageTransitionContinuous),icon:Al.M$J},{id:ha.V.PER_SPREAD,label:t(xu.pageTransitionJump),icon:Al.zf_}],c=[{id:"-90",label:t(xu.pageRotationLeft),icon:Al.HTp},{id:"90",label:t(xu.pageRotationRight),icon:Al.h8W}];return(0,gu.FD)(v.Popover,{type:"dialog",children:[(0,gu.Y)(v.PopoverTrigger,{children:(0,gu.Y)(v.Tooltip,{text:t(xu.pageLayout),variant:"inverse",size:"sm",includeArrow:!1,placement:"bottom start",children:(0,gu.Y)(v.ActionIconButton,{size:"lg",variant:"toolbar","aria-label":t(xu.pageLayout),icon:Al.Zes,className:"PSPDFKit-Toolbar-Button-Layout-Config",isDisabled:i})})}),(0,gu.Y)(v.PopoverContent,{placement:"bottom start",children:(0,gu.Y)(v.Dialog,{size:"content",className:(0,hu.UV)({paddingY:"sm"}),style:{minWidth:215},children:(0,gu.FD)(Tl.n1,{autoFocus:!0,children:[(0,gu.FD)(v.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:"sm",paddingLeft:"lg",paddingRight:"sm",children:[(0,gu.Y)(v.Text,{type:"label",size:"sm",id:vu,children:t(xu.pageMode)}),(0,gu.Y)(v.ActionGroup,{tooltipProps:{isDisabled:!0},"aria-labelledby":vu,items:s,selectionMode:"single",selectedKeys:[n],onSelectionChange:e=>{e instanceof Set&&!e.size||r((0,Dt.A8)([...e][0]))},renderActionItem:a})]}),(0,gu.FD)(v.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:"sm",paddingLeft:"lg",paddingRight:"sm",children:[(0,gu.Y)(v.Text,{type:"label",size:"sm",id:yu,children:t(xu.pageTransition)}),(0,gu.Y)(v.ActionGroup,{tooltipProps:{isDisabled:!0},"aria-labelledby":yu,items:l,selectionMode:"single",selectedKeys:[o],onSelectionChange:e=>{e instanceof Set&&!e.size||r((0,Dt.r7)([...e][0]))},renderActionItem:a})]}),(0,gu.FD)(v.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:"sm",paddingLeft:"lg",paddingRight:"sm",children:[(0,gu.Y)(v.Text,{type:"label",size:"sm",id:bu,children:t(xu.pageRotation)}),(0,gu.Y)(v.ActionGroup,{tooltipProps:{isDisabled:!0},"aria-labelledby":bu,items:c,onAction:e=>{r((0,vc.e$)(parseInt(e,10)))},renderActionItem:a})]})]})})})]},"page-layout-popover")},xu=(0,ve.YK)({pageLayout:{id:"pageLayout",defaultMessage:"Page Layout"},pageMode:{id:"pageMode",defaultMessage:"Page Mode"},pageModeSingle:{id:"pageModeSingle",defaultMessage:"Single"},pageModeDouble:{id:"pageModeDouble",defaultMessage:"Double",description:"Double page mode"},pageModeAutomatic:{id:"pageModeAutomatic",defaultMessage:"Automatic"},pageTransition:{id:"pageTransition",defaultMessage:"Page Transition"},pageTransitionContinuous:{id:"pageTransitionContinuous",defaultMessage:"Continuous"},pageTransitionJump:{id:"pageTransitionJump",defaultMessage:"Jump"},pageRotation:{id:"pageRotation",defaultMessage:"Page Rotation"},pageRotationLeft:{id:"pageRotationLeft",defaultMessage:"Rotate Left"},pageRotationRight:{id:"pageRotationRight",defaultMessage:"Rotate Right"}});var Su=n(86977);const{createToggleIconButtonToolbarItem:_u,createActionIconButtonToolbarItem:Cu,createBlockToolbarItem:Eu}=Dl.XD;var ku=n(23660),zu=n(62252);function Pu(e){let{items:t,className:n,onEscape:r}=e;const o=(0,s.d4)((e=>e.toolbarPlacement)),i=(0,s.wA)(),l=(0,s.d4)((e=>e.ui?.[xl.Rq.PrimaryToolbar])),c=(0,s.d4)((e=>e.instance)),{processedItems:d,expanded:p,setExpanded:h}=function(e){let{items:t}=e;const{selectedAnnotation:n}=cu(),r=(0,s.d4)((e=>e.containerRect.width)),o=(0,s.d4)((e=>e.annotationToolbarItems)),i=(0,s.d4)((e=>e.interactionMode)),l=i&&Tc.has(i),c=r>_e.eV,d=(0,u.useMemo)((()=>{if(!n&&!l||n&&!Tc.get(th(n)))return(0,a.B8)();const e=!n||(0,Oe.$_)(i)?i:th(n),t=e?Tc.get(e)?.get(c?"desktop":"mobile")?.map((e=>({type:e}))):null;if((0,fu.V1)(t,`No default toolbar items found for ${n?"annotation type":"interaction mode"}: ${e}`),o){const r=o(n,{hasDesktopLayout:c,defaultAnnotationToolbarItems:t.toJS()});if(r&&e)return r.forEach((t=>{Mc(t,e)})),(0,a.B8)(r)}return t}),[o,n,c]),{itemsStore:p,mobileItems:h}=(0,u.useMemo)((()=>{const e=(0,zu.mZ)(d,t),n=Object.fromEntries(Object.entries(e).filter((e=>{let[,t]=e;return!t.isHidden})).map((e=>{let[t,n]=e;return[t,n.toolbarItem]})));return{itemsStore:n,mobileItems:Object.keys(n)}}),[d,t]),{items:f,setExpanded:m,expanded:g}=Dl.XD.useResponsiveToolbarItems({itemsStore:p,mobileItems:h,emulateMobileBehaviourInTablet:!0});return(0,u.useMemo)((()=>({processedItems:f,setExpanded:m,expanded:g})),[f,m,g])}({items:t}),f=(0,s.d4)((e=>e.selectedAnnotationIds.size>0?e.annotations.get(e.selectedAnnotationIds.first()):null)),m=(0,u.useMemo)((()=>({name:"secondary-toolbar","aria-label":"Secondary Toolbar",type:"secondary",autoFocus:null===f?.pageIndex||!f,items:d,style:{...o===xc.h.TOP?{borderBottom:`1px solid ${hu.G6.color.border.medium}`}:{borderTop:`1px solid ${hu.G6.color.border.medium}`},zIndex:3},className:n,onEscape:()=>{h(null),p||i((0,we.J9)()),r?.()}})),[f,d,o,n,h,p,r,i]);return(0,Sl.Q)(xl.Rq.SecondaryToolbar,l,m,c)}const{createToggleIconButtonToolbarItem:Au,createActionIconButtonToolbarItem:Du}=Dl.XD;function Tu(){const{formatMessage:e}=(0,v.useI18n)(),t=(0,s.d4)((e=>e.keepSelectedTool)),n=(0,s.d4)((e=>e.interactionMode)),r=t&&n===L.O.TEXT,{selectedAnnotation:o,hasAnnotationNote:i,isAnnotationNoteActive:a,canEditAnnotationCP:l,onAnnotationNotePress:c,showAnnotationNotes:d,isEditing:p,deleteAnnotation:h,canDeleteSelectedAnnotationCP:f}=cu();(0,fu.V1)(o);const m=(0,s.d4)((e=>(0,gn.Qe)(o,e)||o.locked)),g=(0,u.useMemo)((()=>{if(o instanceof ce.Eo)return!(null!=o?.pageIndex&&!p);if(o instanceof ce.dh)return r||null===o.pageIndex;if(o instanceof ce.s9){const e=null!==o.pageIndex&&!m;return t&&n===L.O.NOTE||!e}return o instanceof ce.pP||o instanceof ce.h5||t?null===o.pageIndex:n===L.O.CONTENT_EDITOR}),[t,o,p,r,m,n]),y=!d||p||o instanceof ce.UL,b=(0,u.useMemo)((()=>o instanceof ce.Eo?"Ink-Annotation-Toolbar":o instanceof ce.tr?"Text-Markup-Annotation-Toolbar":o instanceof ce.xY?"Stamp-Annotation-Toolbar":o instanceof ce.dh?"Text-Annotation-Toolbar":o instanceof ce.UL?"Link-Annotation-Toolbar":o instanceof ce.s9?"Note-Annotation-Toolbar":o instanceof ce.vU?"Image-Annotation-Toolbar":o instanceof ce.pP?"Shape-Annotation-Toolbar":o instanceof ce.h5?"Redaction-Annotation-Toolbar":""),[o,n]);return(0,u.useMemo)((()=>({"annotation-note":{toolbarItem:Au("annotation-note",{className:`PSPDFKit-${b}-Annotation-Note`,"aria-label":e(xe.A.noteAnnotation),icon:i||a?Al.ncu:Al.sB7,isDisabled:!l,isSelected:a,onPress:c}),isHidden:y},delete:{toolbarItem:Du("delete",{className:`PSPDFKit-${b}-Button-Delete`,"aria-label":e(xe.A.delete),icon:Al.ucK,onPress:h,isDisabled:!f}),isHidden:g}})),[e,i,a,l,c,y,h,f,g,b])}const{createIconColorInputToolbarItem:Iu,createIconSliderToolbarItem:Mu,createIconSelectToolbarItem:Nu}=Dl.XD;function Ou(){const{formatMessage:e}=(0,v.useI18n)(),t=(0,s.wA)(),{canEditAnnotationCP:n,selectedAnnotation:r,updateAnnotation:o,isEditing:i,strokeColorDropdownConfig:a,backgroundColorDropdownConfig:l}=cu(),c=(0,u.useCallback)((e=>{if(!n)return;const a=r?.lines.size;if(a&&a>0&&i){const{boundingBox:n,...r}=e;t((0,lt.M)(r)),t((0,Dt.nB)())}else e.lineWidth&&a&&a>0&&(e.boundingBox=r?.boundingBox.grow((e.lineWidth-r.lineWidth)/2)),o(e)}),[n,t,i,r?.boundingBox,r?.lineWidth,r?.lines.size,o]),d=Tu(),p=(0,u.useMemo)((()=>({"stroke-color":{toolbarItem:Iu("stroke-color",{className:"PSPDFKit-Ink-Annotation-Toolbar-Stroke-Color PSPDFKit-Toolbox PSPDFKit-Toolbox-StrokeColor",allowAlpha:!1,"aria-label":e(xe.A.color),icon:Al.hRt,value:r?.strokeColor?.toHex()||null,presets:a.presets,includePicker:a.showColorPicker,pickerMode:"lazy",onChangeEnd:e=>{c({strokeColor:e?new P.Q1({r:e.getChannelValue("red"),g:e.getChannelValue("green"),b:e.getChannelValue("blue")}):null})}})},"fill-color":{toolbarItem:Iu("fill-color",{className:"PSPDFKit-Ink-Annotation-Toolbar-Fill-Color PSPDFKit-Toolbox PSPDFKit-Toolbox-FillColor",allowAlpha:!1,"aria-label":e(xe.A.fillColor),icon:Al.s8N,value:r?.backgroundColor?.toHex()||null,includePicker:l.showColorPicker,presets:l.presets,allowRemoval:!0,pickerMode:"lazy",onChangeEnd:e=>{c({backgroundColor:e?new P.Q1({r:e.getChannelValue("red"),g:e.getChannelValue("green"),b:e.getChannelValue("blue"),transparent:0===e.getChannelValue("alpha")}):null})}})},opacity:{toolbarItem:Mu("opacity",{className:"PSPDFKit-Ink-Annotation-Toolbar-Opacity PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity","aria-label":e(xe.A.opacity),icon:Al.FNe,minValue:.1,maxValue:1,step:.01,formatValue:e=>`${Math.round(100*e)}%`,value:r?.opacity??1,onChange:e=>{c({opacity:e})},numberFormatOptions:{style:"percent"}})},"line-width":{toolbarItem:Mu("line-width",{className:"PSPDFKit-Ink-Annotation-Toolbar-Line-Width PSPDFKit-Toolbox PSPDFKit-Toolbox-LineWidth","aria-label":e(xe.A.thickness),icon:Al.QBs,formatValue:e=>`${e} pt`,minValue:1,maxValue:40,onChange:e=>{c({lineWidth:e})},value:Math.round(r?.lineWidth??1)})},"blend-mode":{toolbarItem:Nu("blend-mode",{className:"PSPDFKit-Ink-Annotation-Toolbar-Blend-Mode PSPDFKit-Toolbox PSPDFKit-Toolbox-BlendMode PSPDFKit-Input-Dropdown-Select","aria-label":e(xe.A.blendMode),icon:Al.MK5,items:Object.keys(ku.N).map((e=>({label:du()(e),id:e}))),defaultSelectedKey:r?.blendMode??ku.N.normal,isDisabled:!n,onSelectionChange:e=>{c({blendMode:e})}})},...d})),[c,l.presets,l.showColorPicker,n,e,r?.backgroundColor,r?.blendMode,r?.lineWidth,r?.opacity,r?.strokeColor,d,a.presets,a.showColorPicker]);return(0,oe.jsx)(Pu,{items:p,className:"PSPDFKit-Ink-Annotation-Toolbar"})}var Ru;function ju(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Fu(e,t,n=10){const r=Math.pow(n,t);return Math.round(e*r)/r}Ru={"ar-AE":{alpha:"ألفا",black:"أسود",blue:"أزرق","blue purple":"أرجواني مزرق",brightness:"السطوع",brown:"بني","brown yellow":"أصفر بني",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"سماوي","cyan blue":"أزرق سماوي",dark:"داكن",gray:"رمادي",grayish:"مائل للرمادي",green:"أخضر","green cyan":"سماوي مخضر",hue:"درجة اللون",light:"فاتح",lightness:"الإضاءة",magenta:"أرجواني","magenta pink":"أرجواني وردي",orange:"برتقالي","orange yellow":"أصفر برتقالي",pale:"باهت",pink:"وردي","pink red":"أحمر وردي",purple:"أرجواني","purple magenta":"بنفسجي",red:"أحمر","red orange":"برتقالي محمر",saturation:"التشبع",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} شفاف`,"very dark":"داكن جدًا","very light":"فاتح جدًا",vibrant:"ساطع",white:"أبيض",yellow:"أصفر","yellow green":"أخضر مصفر"},"bg-BG":{alpha:"Алфа",black:"черно",blue:"Синьо","blue purple":"синьо лилаво",brightness:"Яркост",brown:"кафяво","brown yellow":"кафяво жълто",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"циан","cyan blue":"циан синьо",dark:"тъмно",gray:"сиво",grayish:"сивкав",green:"Зелено","green cyan":"зелен циан",hue:"Оттенък",light:"светло",lightness:"Лекота",magenta:"магента","magenta pink":"магента розово",orange:"оранжево","orange yellow":"оранжево жълто",pale:"бледо",pink:"розово","pink red":"розово червено",purple:"лилаво","purple magenta":"лилаво магента",red:"Червено","red orange":"червен портокал",saturation:"Наситеност",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} прозрачен`,"very dark":"много тъмно","very light":"много светло",vibrant:" ярко",white:"бяло",yellow:"жълто","yellow green":"жълто зелен"},"cs-CZ":{alpha:"Alfa",black:"černá",blue:"Modrá","blue purple":"modrofialová",brightness:"Jas",brown:"hnědá","brown yellow":"hnědožlutá",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"tyrkysová","cyan blue":"tyrkysovomodrá",dark:"tmavá",gray:"šedá",grayish:"našedlá",green:"Zelená","green cyan":"zelenotyrkysová",hue:"Odstín",light:"světlá",lightness:"Světlost",magenta:"purpurová","magenta pink":"purpurově růžová",orange:"oranžová","orange yellow":"oranžovožlutá",pale:"bledá",pink:"růžová","pink red":"růžovočervená",purple:"fialová","purple magenta":"fialově purpurová",red:"Červená","red orange":"červenooranžová",saturation:"Sytost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} průhledné`,"very dark":"velmi tmavá","very light":"velmi světlá",vibrant:"zářivá",white:"bílá",yellow:"žlutá","yellow green":"žlutozelená"},"da-DK":{alpha:"Alfa",black:"sort",blue:"Blå","blue purple":"blålilla",brightness:"Lysstyrke",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyan blå",dark:"mørk",gray:"grå",grayish:"grålig",green:"Grøn","green cyan":"grøn cyan",hue:"Tone",light:"lys",lightness:"Lyshed",magenta:"magenta","magenta pink":"magenta pink",orange:"orange","orange yellow":"orangegul",pale:"bleg",pink:"lyserød","pink red":"lyserødlig rød",purple:"lilla","purple magenta":"lilla magenta",red:"Rød","red orange":"rødorange",saturation:"Farvemætning",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} gennemsigtig`,"very dark":"meget mørk","very light":"meget lys",vibrant:"klar",white:"hvid",yellow:"gul","yellow green":"gulgrøn"},"de-DE":{alpha:"Alpha",black:"Schwarz",blue:"Blau","blue purple":"Blaulila",brightness:"Helligkeit",brown:"Braun","brown yellow":"Braungelb",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"Cyan","cyan blue":"Cyanblau",dark:"dunkles",gray:"Grau",grayish:"gräuliches",green:"Grün","green cyan":"Grüncyan",hue:"Farbton",light:"helles",lightness:"Leuchtkraft",magenta:"Magenta","magenta pink":"Magentarosa",orange:"Orange","orange yellow":"Orangegelb",pale:"blasses",pink:"Rosa","pink red":"Rosarot",purple:"Lila","purple magenta":"Lilamagenta",red:"Rot","red orange":"Rotorange",saturation:"Sättigung",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, zu ${e.percentTransparent} transparent`,"very dark":"sehr dunkles","very light":"sehr helles",vibrant:"lebhaftes",white:"Weiß",yellow:"Gelb","yellow green":"Gelbgrün"},"el-GR":{alpha:"Άλφα",black:"μαύρο",blue:"Μπλε","blue purple":"μπλε μωβ",brightness:"Φωτεινότητα",brown:"καφέ","brown yellow":"καφέ κίτρινο",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"κυανό","cyan blue":"κυανό μπλε",dark:"σκούρο",gray:"γκρι",grayish:"γκριζωπό",green:"Πράσινο","green cyan":"πράσινο κυανό",hue:"Τόνος",light:"ανοιχτό",lightness:"Φωτεινότητα",magenta:"ματζέντα","magenta pink":"ματζέντα ροζ",orange:"πορτοκαλί","orange yellow":"πορτοκαλί κίτρινο",pale:"ανοιχτό",pink:"ροζ","pink red":"ροζ κόκκινο",purple:"μωβ","purple magenta":"μωβ ματζέντα",red:"Κόκκινο","red orange":"κόκκινο πορτοκαλί",saturation:"Κορεσμός",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} διαφανές`,"very dark":"πολύ σκούρο","very light":"πολύ ανοιχτό",vibrant:"έντονο",white:"λευκό",yellow:"κίτρινο","yellow green":"κίτρινο πράσινο"},"en-US":{hue:"Hue",saturation:"Saturation",lightness:"Lightness",brightness:"Brightness",red:"Red",green:"Green",blue:"Blue",alpha:"Alpha",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"very dark",dark:"dark",light:"light","very light":"very light",pale:"pale",grayish:"grayish",vibrant:"vibrant",black:"black",white:"white",gray:"gray",pink:"pink","pink red":"pink red","red orange":"red orange",brown:"brown",orange:"orange","orange yellow":"orange yellow","brown yellow":"brown yellow",yellow:"yellow","yellow green":"yellow green","green cyan":"green cyan",cyan:"cyan","cyan blue":"cyan blue","blue purple":"blue purple",purple:"purple","purple magenta":"purple magenta",magenta:"magenta","magenta pink":"magenta pink"},"es-ES":{alpha:"Alpha",black:"negro",blue:"Azul","blue purple":"púrpura azulado",brightness:"Brillo",brown:"marrón","brown yellow":"amarillo amarronado",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cian","cyan blue":"azul cian",dark:"oscuro",gray:"gris",grayish:"grisáceo",green:"Verde","green cyan":"cian verdoso",hue:"Tono",light:"claro",lightness:"Luminosidad",magenta:"magenta","magenta pink":"rosa magenta",orange:"naranja","orange yellow":"amarillo anaranjado",pale:"pálido",pink:"rosa","pink red":"rojo rosado",purple:"morado","purple magenta":"magenta violáceo",red:"Rojo","red orange":"naranja rojizo",saturation:"Saturación",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":"muy oscuro","very light":"muy claro",vibrant:"intenso",white:"blanco",yellow:"amarillo","yellow green":"verde amarillento"},"et-EE":{alpha:"Alfa",black:"must",blue:"Sinine","blue purple":"sinakaslilla",brightness:"Heledus",brown:"pruun","brown yellow":"pruunikaskollane",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"tsüaan","cyan blue":"tsüaansinine",dark:"tume",gray:"hall",grayish:"hallikas",green:"Roheline","green cyan":"tsüaanroheline",hue:"Värv",light:"valgus",lightness:"Valgus",magenta:"magentapunane","magenta pink":"magentaroosa",orange:"oranž","orange yellow":"oranžikaskollane",pale:"kahvatu",pink:"roosa","pink red":"vaarikapunane",purple:"lilla","purple magenta":"purpurne magenta",red:"Punane","red orange":"punakasoranž",saturation:"Küllastus",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} läbipaistev`,"very dark":"väga tume","very light":"väga hele",vibrant:"ere",white:"valge",yellow:"kollane","yellow green":"kollakasroheline"},"fi-FI":{alpha:"Alpha",black:"musta",blue:"Sininen","blue purple":"sinivioletti",brightness:"Kirkkaus",brown:"ruskea","brown yellow":"ruskeankeltainen",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"syaani","cyan blue":"syaaninsininen",dark:"tumma",gray:"harmaa",grayish:"harmahtava",green:"Vihreä","green cyan":"vihreänsyaani",hue:"Sävy",light:"vaalea",lightness:"Valomäärä",magenta:"magenta","magenta pink":"magentapinkki",orange:"oranssi","orange yellow":"oranssinkeltainen",pale:"vaalea",pink:"pinkki","pink red":"vaaleanpunainen",purple:"violetti","purple magenta":"violettimagenta",red:"Punainen","red orange":"punaoranssi",saturation:"Värikylläisyys",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} läpinäkyvä`,"very dark":"hyvin tumma","very light":"erittäin vaalea",vibrant:"eloisa",white:"valkea",yellow:"keltainen","yellow green":"keltavihreä"},"fr-FR":{alpha:"Alpha",black:"Noir",blue:"Bleu","blue purple":"Violet bleu",brightness:"Luminosité",brown:"Brun","brown yellow":"Jaune brun",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"Cyan","cyan blue":"Bleu cyan",dark:"Sombre",gray:"Gris",grayish:"Grisâtre",green:"Vert","green cyan":"Cyan vert",hue:"Teinte",light:"Clair",lightness:"Luminosité",magenta:"Magenta","magenta pink":"Rose magenta",orange:"Orange","orange yellow":"Jaune orangé",pale:"Pâle",pink:"Rose","pink red":"Rouge rosé",purple:"Violet","purple magenta":"Magenta violet",red:"Rouge","red orange":"Orange rouge",saturation:"Saturation",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"Très sombre","very light":"Très clair",vibrant:"Vif",white:"Blanc",yellow:"Jaune","yellow green":"Vert jaune"},"he-IL":{alpha:"אלפא",black:"שחור",blue:"כחול","blue purple":"כחול סגול",brightness:"בהירות",brown:"חום","brown yellow":"חום צהוב",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"טורקיז","cyan blue":"כחול ציאן",dark:"כהה",gray:"אפור",grayish:"אפרפר",green:"ירוק","green cyan":"ציאן ירוק",hue:"גוון",light:"אור",lightness:"כמות אור",magenta:"מג'נטה","magenta pink":"ורוד מג'נטה",orange:"כתום","orange yellow":"כתום צהוב",pale:"חיוור",pink:"ורוד","pink red":"ורוד אדום",purple:"סגול","purple magenta":"מג'נטה סגול",red:"אדום","red orange":"כתום אדום",saturation:"רוויה",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} שקוף`,"very dark":"כהה מאוד","very light":"בהיר מאוד",vibrant:"תוסס",white:"לבן",yellow:"צהוב","yellow green":"צהוב ירוק"},"hr-HR":{alpha:"Alfa",black:"crno",blue:"Plava","blue purple":"plavo ljubičasta",brightness:"Svjetlina",brown:"smeđa","brown yellow":"smeđe žuta",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cijan","cyan blue":"cijan plava",dark:"tamno",gray:"siva",grayish:"sivkasto",green:"Zelena","green cyan":"zelena cijan",hue:"Nijansa",light:"svjetlo",lightness:"Osvijetljenost",magenta:"magenta","magenta pink":"magentno ružičasta",orange:"narančasta","orange yellow":"narančasto žuta",pale:"blijeda",pink:"ružičasta","pink red":"ružičasto crvena",purple:"ljubičasta","purple magenta":"ljubičasta magenta",red:"Crvena","red orange":"crveno narančasta",saturation:"Zasićenost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozirnosti`,"very dark":"jako tamna","very light":"vrlo svijetlo",vibrant:"vibrantna",white:"bijela",yellow:"žuto","yellow green":"žuto zelena"},"hu-HU":{alpha:"Alfa",black:"fekete",blue:"Kék","blue purple":"kék lila",brightness:"Fényesség",brown:"barna","brown yellow":"barna sárga",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciánkék","cyan blue":"ciánkék",dark:"sötét",gray:"szürke",grayish:"szürkés",green:"Zöld","green cyan":"zöld ciánkék",hue:"Színárnyalat",light:"világos",lightness:"Világosság",magenta:"bíbor","magenta pink":"bíbor rózsaszín",orange:"narancs","orange yellow":"narancssárga",pale:"halvány",pink:"rózsaszín","pink red":"rózsaszín piros",purple:"lila","purple magenta":"lila bíbor",red:"Piros","red orange":"piros narancs",saturation:"Telítettség",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} átlátszó`,"very dark":"nagyon sötét","very light":"nagyon világos",vibrant:"élénk",white:"fehér",yellow:"sárga","yellow green":"sárga zöld"},"it-IT":{alpha:"Alfa",black:"nero",blue:"Blu","blue purple":"blu viola",brightness:"Luminosità",brown:"marrone","brown yellow":"giallo bruno",colorName:e=>`${e.hue} ${e.chroma} ${e.lightness}`,cyan:"ciano","cyan blue":"blu ciano",dark:"scuro",gray:"grigio",grayish:"grigiastro",green:"Verde","green cyan":"verde ciano",hue:"Tonalità",light:"chiaro",lightness:"Luminosità",magenta:"magenta","magenta pink":"rosa magenta",orange:"arancio","orange yellow":"giallo arancio",pale:"tenue",pink:"rosa","pink red":"rosa rosso",purple:"viola","purple magenta":"viola magenta",red:"Rosso","red orange":"rosso arancio",saturation:"Saturazione",transparentColorName:e=>`${e.hue} ${e.chroma} ${e.lightness}, trasparenza ${e.percentTransparent}`,"very dark":"molto scuro","very light":"molto chiaro",vibrant:"vivace",white:"bianco",yellow:"giallo","yellow green":"giallo verde"},"ja-JP":{alpha:"アルファ",black:"ブラック",blue:"青","blue purple":"ブルーパープル",brightness:"明るさ",brown:"ブラウン","brown yellow":"ブラウンイエロー",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"シアン","cyan blue":"シアンブルー",dark:"ダーク",gray:"グレー",grayish:"グレイッシュ",green:"緑","green cyan":"グリーンシアン",hue:"色相",light:"ライト",lightness:"明度",magenta:"マゼンタ","magenta pink":"マゼンタピンク",orange:"オレンジ","orange yellow":"オレンジイエロー",pale:"ペール",pink:"ピンク","pink red":"ピンクレッド",purple:"パープル","purple magenta":"パープルマゼンタ",red:"赤","red orange":"レッドオレンジ",saturation:"彩度",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} 透明`,"very dark":"最も暗い","very light":"ベリーライト",vibrant:"鮮やか",white:"ホワイト",yellow:"イエロー","yellow green":"イエローグリーン"},"ko-KR":{alpha:"알파",black:"검은색",blue:"파랑","blue purple":"청자색",brightness:"명도",brown:"갈색","brown yellow":"황갈색",colorName:e=>`${e.lightness}, ${e.chroma}, ${e.hue}`,cyan:"청록색","cyan blue":"청록색",dark:"다크",gray:"회색",grayish:"회갈색",green:"초록","green cyan":"청록색",hue:"색조",light:"라이트",lightness:"밝기",magenta:"자홍색","magenta pink":"마젠타 핑크",orange:"주황색","orange yellow":"불그스름한 노랑",pale:"흙색",pink:"분홍색","pink red":"핑크 레드",purple:"자주색","purple magenta":"보라빛 자홍색",red:"빨강","red orange":"붉은 주황색",saturation:"채도",transparentColorName:e=>`${e.lightness}, ${e.chroma}, ${e.hue}, ${e.percentTransparent} 투명도`,"very dark":"매우 어두운","very light":"매우 연함",vibrant:"강렬한",white:"흰색",yellow:"노란색","yellow green":"연두색"},"lt-LT":{alpha:"Alfa",black:"juoda",blue:"Mėlyna","blue purple":"melsvai violetinė",brightness:"Ryškumas",brown:"ruda","brown yellow":"rusvai geltona",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"žalsvai mėlyna","cyan blue":"žalsvai mėlyna",dark:"tamsi",gray:"pilka",grayish:"pilkšva",green:"Žalia","green cyan":"žalsvai mėlyna",hue:"Atspalvis",light:"šviesi",lightness:"Šviesumas",magenta:"rausvai raudona","magenta pink":"purpurinė",orange:"oranžinė","orange yellow":"oranžinio atspalvio geltona",pale:"blyški",pink:"rožinė","pink red":"rožinė raudona",purple:"violetinė","purple magenta":"purpurinė rausvai raudona",red:"Raudona","red orange":"rausvai oranžinė",saturation:"Įsotinimas",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} skaidri`,"very dark":"labai tamsi","very light":"labai šviesi",vibrant:"ryški",white:"balta",yellow:"geltona","yellow green":"gelsvai žalia"},"lv-LV":{alpha:"Alfa",black:"melns",blue:"Zila","blue purple":"zili violets",brightness:"Spilgtums",brown:"brūns","brown yellow":"brūni dzeltens",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciāns","cyan blue":"ciāna zils",dark:"tumšs",gray:"pelēks",grayish:"pelēcīgs",green:"Zaļa","green cyan":"zaļš ciāns",hue:"Nokrāsa",light:"gaišs",lightness:"Gaišums",magenta:"fuksiju","magenta pink":"fuksiju rozā",orange:"oranžs","orange yellow":"oranži dzeltens",pale:"bāls",pink:"rozā","pink red":"rozīgi sarkans",purple:"violets","purple magenta":"violets fuksiju",red:"Sarkana","red orange":"sarkanīgi oranžs",saturation:"Piesātinājums",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} caurspīdīgs`,"very dark":"ļoti tumšs","very light":"ļoti gaišs",vibrant:"košs",white:"balts",yellow:"dzeltens","yellow green":"dzelteni zaļš"},"nb-NO":{alpha:"Alfa",black:"svart",blue:"Blå","blue purple":"blålilla",brightness:"Lysstyrke",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyanblå",dark:"mørk",gray:"grå",grayish:"gråaktig",green:"Grønn","green cyan":"grønncyan",hue:"Fargetone",light:"lys",lightness:"Lyshet",magenta:"magenta","magenta pink":"magentarosa",orange:"oransje","orange yellow":"oransjegul",pale:"blek",pink:"rosa","pink red":"rosarød",purple:"lilla","purple magenta":"lillamagenta",red:"Rød","red orange":"rødoransje",saturation:"Metning",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} gjennomsiktig`,"very dark":"svært mørk","very light":"svært lys",vibrant:"levende",white:"hvit",yellow:"gul","yellow green":"gulgrønn"},"nl-NL":{alpha:"Alfa",black:"zwart",blue:"Blauw","blue purple":"paarsblauw",brightness:"Helderheid",brown:"bruin","brown yellow":"bruingeel",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyaan","cyan blue":"cyaanblauw",dark:"donker",gray:"grijs",grayish:"grijsachtig",green:"Groen","green cyan":"cyaangroen",hue:"Kleurtoon",light:"licht",lightness:"Lichtsterkte",magenta:"magenta","magenta pink":"magentaroze",orange:"oranje","orange yellow":"oranjegeel",pale:"bleek",pink:"roze","pink red":"rozerood",purple:"paars","purple magenta":"magentapaars",red:"Rood","red orange":"roodoranje",saturation:"Verzadiging",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparant`,"very dark":"heel donker","very light":"heel licht",vibrant:"levendig",white:"wit",yellow:"geel","yellow green":"geelgroen"},"pl-PL":{alpha:"Alfa",black:"czarny",blue:"Niebieski","blue purple":"niebiesko-fioletowy",brightness:"Jasność",brown:"brązowy","brown yellow":"brązowo-żółty",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyjanowy","cyan blue":"cyjanowo-niebieski",dark:"ciemny",gray:"szary",grayish:"szarawy",green:"Zielony","green cyan":"zielono-cyjanowy",hue:"Odcień",light:"jasny",lightness:"Jaskrawość",magenta:"purpurowy","magenta pink":"purpurowo-różowy",orange:"pomarańczowy","orange yellow":"pomarańczowo-żółty",pale:"blady",pink:"różowy","pink red":"różowo-czerwony",purple:"fioletowy","purple magenta":"fioletowo-purpurowy",red:"Czerwony","red orange":"czerwono-pomarańczowy",saturation:"Nasycenie",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} przezroczystości`,"very dark":"bardzo ciemny","very light":"bardzo jasny",vibrant:"intensywny",white:"biały",yellow:"żółty","yellow green":"żółto-zielony"},"pt-BR":{alpha:"Alfa",black:"preto",blue:"Azul","blue purple":"roxo azulado",brightness:"Brilho",brown:"marrom","brown yellow":"marrom amarelado",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciano","cyan blue":"azul-ciano",dark:"escuro",gray:"cinza",grayish:"acinzentado",green:"Verde","green cyan":"verde-ciano",hue:"Matiz",light:"claro",lightness:"Luminosidade",magenta:"magenta","magenta pink":"rosa-magenta",orange:"laranja","orange yellow":"amarelo alaranjado",pale:"pálido",pink:"rosa","pink red":"rosa avermelhado",purple:"roxo","purple magenta":"roxo-magenta",red:"Vermelho","red orange":"laranja avermelhado",saturation:"Saturação",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":"muito escuro","very light":"muito claro",vibrant:"vibrante",white:"branco",yellow:"amarelo","yellow green":"verde amarelado"},"pt-PT":{alpha:"Alfa",black:"preto",blue:"Azul","blue purple":"azul-púrpura",brightness:"Luminosidade",brown:"castanho","brown yellow":"amarelo-castanho",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"ciano","cyan blue":"azul-ciano",dark:"escuro",gray:"cinzento",grayish:"acinzentado",green:"Verde","green cyan":"verde-ciano",hue:"Tonalidade",light:"claro",lightness:"Claridade",magenta:"magenta","magenta pink":"rosa-magenta",orange:"laranja","orange yellow":"amarelo-laranja",pale:"pálido",pink:"cor-de-rosa","pink red":"vermelho-rosa",purple:"púrpura","purple magenta":"púrpura-magenta",red:"Vermelho","red orange":"laranja-vermelho",saturation:"Saturação",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparente`,"very dark":"muito escuro","very light":"muito claro",vibrant:"vibrante",white:"branco",yellow:"amarelo","yellow green":"verde-amarelo"},"ro-RO":{alpha:"Alfa",black:"negru",blue:"Albastru","blue purple":"albastru-violet",brightness:"Luminozitate",brown:"maro","brown yellow":"galben maro",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"bleu","cyan blue":"albastru-bleu",dark:"închis",gray:"gri",grayish:"cenușiu",green:"Verde","green cyan":"verde bleu",hue:"Nuanță",light:"deschis",lightness:"Luminozitate",magenta:"fucsia","magenta pink":"roz-fucsia",orange:"portocaliu","orange yellow":"galben-portocaliu",pale:"pal",pink:"roz","pink red":"roz-roșu",purple:"violet","purple magenta":"violet-fucsia",red:"Roșu","red orange":"portocaliu-roșu",saturation:"Saturație",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} transparent`,"very dark":"foarte închis","very light":"foarte deschis",vibrant:"plin de viață",white:"alb",yellow:"galben","yellow green":"galben-verde"},"ru-RU":{alpha:"Альфа",black:"черный",blue:"Синий","blue purple":"сине-фиолетовый",brightness:"Яркость",brown:"коричневый","brown yellow":"коричнево-желтый",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"голубой","cyan blue":"цвет морской волны",dark:"темный",gray:"серый",grayish:"сероватый",green:"Зеленый","green cyan":"сине-зеленый",hue:"Оттенок",light:"светлый",lightness:"Освещенность",magenta:"пурпурный","magenta pink":"пурпурно-розовый",orange:"оранжевый","orange yellow":"оранжево-желтый",pale:"бледный",pink:"розовый","pink red":"розово-красный",purple:"фиолетовый","purple magenta":"фиолетово-пурпурный",red:"Красный","red orange":"красно-оранжевый",saturation:"Насыщенность",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, прозрачный на ${e.percentTransparent}`,"very dark":"очень темный","very light":"очень светлый",vibrant:"яркий",white:"белый",yellow:"желтый","yellow green":"желто-зеленый"},"sk-SK":{alpha:"Alfa",black:"čierna",blue:"Modrá","blue purple":"modrofialová",brightness:"Jas",brown:"hnedá","brown yellow":"hnedožltá",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"azúrová","cyan blue":"azúrová modrá",dark:"tmavá",gray:"sivá",grayish:"sivastá",green:"Zelená","green cyan":"zelená azúrová",hue:"Odtieň",light:"svetlá",lightness:"Svetlosť",magenta:"purpurová","magenta pink":"ružová purpurová",orange:"oranžová","orange yellow":"oranžovožltá",pale:"bledá",pink:"ružová","pink red":"ružovočervená",purple:"fialová","purple magenta":"fialová purpurová",red:"Červená","red orange":"červenooranžová",saturation:"Sýtosť",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} priehľadná`,"very dark":"veľmi tmavá","very light":"veľmi svetlá",vibrant:"energická",white:"biela",yellow:"žltá","yellow green":"žltozelená"},"sl-SI":{alpha:"Alfa",black:"črna",blue:"Modra","blue purple":"modro vijolična",brightness:"Svetlost",brown:"rjava","brown yellow":"rjavo rumena",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cian","cyan blue":"cian modra",dark:"temna",gray:"siva",grayish:"sivkasta",green:"Zelena","green cyan":"zelena cian",hue:"Barva",light:"svetla",lightness:"Lahkost",magenta:"škrlatna","magenta pink":"škrlatno roza",orange:"oranžna","orange yellow":"oranžno rumena",pale:"bleda",pink:"roza","pink red":"roza rdeča",purple:"vijolična","purple magenta":"vijolično škrlatna",red:"Rdeča","red orange":"rdeče oranžna",saturation:"Nasičenost",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozorna`,"very dark":"zelo temna","very light":"zelo svetla",vibrant:"živahna",white:"bela",yellow:"rumena","yellow green":"rumeno zelena"},"sr-SP":{alpha:"Alfa",black:"crno",blue:"Plava","blue purple":"plavoljubičasta",brightness:"Osvetljenost",brown:"smeđa","brown yellow":"smeđežuta",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cijan","cyan blue":"cijan plava",dark:"tamno",gray:"siva",grayish:"sivkasta",green:"Zelena","green cyan":"zeleno cijan",hue:"Nijansa",light:"svetla",lightness:"Osvetljenje",magenta:"purpurnocrvena","magenta pink":"magenta ružičasta",orange:"narandžasta","orange yellow":"narandžastožuta",pale:"bledo",pink:"ružičasta","pink red":"ružičastocrvena",purple:"ljubičasta","purple magenta":"ljubičasta magenta",red:"Crvena","red orange":"crvenonarandžasta",saturation:"Zasićenje",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} prozirna`,"very dark":"veoma tamno","very light":"vrlo svetlo",vibrant:"živopisna",white:"bela",yellow:"žuto","yellow green":"žutozelena"},"sv-SE":{alpha:"Alfa",black:"svart",blue:"Blått","blue purple":"blålila",brightness:"Ljusstyrka",brown:"brun","brown yellow":"brungul",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"cyan","cyan blue":"cyanblå",dark:"mörk",gray:"grå",grayish:"gråaktig",green:"Grönt","green cyan":"grön cyan",hue:"Nyans",light:"ljus",lightness:"Ljushet",magenta:"magenta","magenta pink":"magentarosa",orange:"orange","orange yellow":"orangegul",pale:"blek",pink:"rosa","pink red":"rosaröd",purple:"lila","purple magenta":"lila magenta",red:"Rött","red orange":"rödorange",saturation:"Mättnad",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} genomskinlig`,"very dark":"mycket mörk","very light":"mycket ljus",vibrant:"livfull",white:"vit",yellow:"gul","yellow green":"gulgrön"},"tr-TR":{alpha:"Alfa",black:"siyah",blue:"Mavi","blue purple":"mavi mor",brightness:"Parlaklık",brown:"kahverengi","brown yellow":"kahverengi sarı",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"camgöbeği","cyan blue":"camgöbeği mavi",dark:"koyu",gray:"gri",grayish:"grimsi",green:"Yeşil","green cyan":"yeşil camgöbeği",hue:"Ton",light:"açık",lightness:"Canlılık",magenta:"eflatun","magenta pink":"eflatun pembe",orange:"turuncu","orange yellow":"turuncu sarı",pale:"solgun",pink:"pembe","pink red":"pembe kırmızı",purple:"mor","purple magenta":"mor eflatun",red:"Kırmızı","red orange":"kırmızı portakal",saturation:"Doygunluk",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} saydam`,"very dark":"çok koyu","very light":"çok açık",vibrant:"canlı",white:"beyaz",yellow:"sarı","yellow green":"sarı yeşil"},"uk-UA":{alpha:"Альфа",black:"чорний",blue:"Синій","blue purple":"синьо-фіолетовий",brightness:"Яскравість",brown:"коричневий","brown yellow":"коричнево-жовтий",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"блакитний","cyan blue":"синьо-блакитний",dark:"темний",gray:"сірий",grayish:"сіруватий",green:"Зелений","green cyan":"зелено-блакитний",hue:"Тон",light:"світлий",lightness:"Освітленість",magenta:"пурпуровий","magenta pink":"пурпурово-рожевий",orange:"помаранчевий","orange yellow":"помаранчево-жовтий",pale:"блідий",pink:"рожевий","pink red":"рожево-червоний",purple:"фіолетовий","purple magenta":"фіолетово-пурпуровий",red:"Червоний","red orange":"червоно-помаранчевий",saturation:"Насиченість",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, прозорий на ${e.percentTransparent}`,"very dark":"дуже темний","very light":"дуже світлий",vibrant:"яскравий",white:"білий",yellow:"жовтий","yellow green":"жовто-зелений"},"zh-CN":{alpha:"Alpha",black:"黑色",blue:"蓝色","blue purple":"蓝紫色",brightness:"亮度",brown:"棕色的","brown yellow":"棕黄色",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"蓝绿色","cyan blue":"青蓝色",dark:"深色",gray:"灰色",grayish:"浅灰色的",green:"绿色","green cyan":"绿青色",hue:"色相",light:"浅色",lightness:"明亮度",magenta:"紫红色","magenta pink":"紫粉色",orange:"橙色","orange yellow":"橙黄色",pale:"苍白的",pink:"粉色","pink red":"粉红色",purple:"紫色","purple magenta":"紫洋红色",red:"红色","red orange":"红橙色",saturation:"饱和度",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} 透明`,"very dark":"很暗","very light":"很浅",vibrant:"生机勃勃",white:"白色",yellow:"黄色","yellow green":"黄色/绿色"},"zh-TW":{alpha:"Alpha",black:"黑",blue:"藍色","blue purple":"藍紫",brightness:"亮度",brown:"棕","brown yellow":"棕黃",colorName:e=>`${e.lightness} ${e.chroma} ${e.hue}`,cyan:"青","cyan blue":"青藍",dark:"暗",gray:"灰",grayish:"偏灰",green:"綠色","green cyan":"青綠",hue:"色相",light:"淺",lightness:"明亮",magenta:"洋紅","magenta pink":"淺洋紅",orange:"橙","orange yellow":"橙黃",pale:"淡",pink:"粉紅","pink red":"粉紅",purple:"紫","purple magenta":"紫洋紅",red:"紅色","red orange":"橙紅",saturation:"飽和度",transparentColorName:e=>`${e.lightness} ${e.chroma} ${e.hue}, ${e.percentTransparent} 透明`,"very dark":"很暗","very light":"很淺",vibrant:"鮮豔",white:"白",yellow:"黃","yellow green":"黃綠"}};const Bu=Symbol.for("react-aria.i18n.locale"),Lu=Symbol.for("react-aria.i18n.strings");let Vu;class Ku{getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw new Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,n="en-US"){if(t[e])return t[e];let r=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);if(t[r])return t[r];for(let e in t)if(e.startsWith(r+"-"))return t[e];return t[n]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("undefined"==typeof window)return null;let t=window[Bu];if(void 0===Vu){let e=window[Lu];if(!e)return null;Vu={};for(let n in e)Vu[n]=new Ku({[t]:e[n]},t)}let n=null==Vu?void 0:Vu[e];if(!n)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter((([,e])=>e))),this.defaultLocale=t}}const Hu=new Map,$u=new Map;class Uu{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let r=t["="+e];if(r)return"function"==typeof r?r():r;let o=this.locale+":"+n,i=Hu.get(o);return i||(i=new Intl.PluralRules(this.locale,{type:n}),Hu.set(o,i)),r=t[i.select(e)]||t.other,"function"==typeof r?r():r}number(e){let t=$u.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),$u.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return"function"==typeof n?n():n}constructor(e,t){this.locale=e,this.strings=t}}let Wu=new Map,qu=!1;try{qu="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch(e){}let Gu=!1;try{Gu="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch(e){}const Zu={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Yu{format(e){let t="";if(t=qu||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,n){if("auto"===t)return e.format(n);if("never"===t)return e.format(Math.abs(n));{let r=!1;if("always"===t?r=n>0||Object.is(n,0):"exceptZero"===t&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let t=e.format(-n),r=e.format(n),o=t.replace(r,"").replace(/\u200e|\u061C/,"");return 1!==[...o].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(r,"!!!").replace(o,"+").replace("!!!",r)}return e.format(n)}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!Gu){var n;let{unit:e,unitDisplay:r="short",locale:o}=this.resolvedOptions();if(!e)return t;let i=null===(n=Zu[e])||void 0===n?void 0:n[r];t+=i[o]||i.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...r.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return qu||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),Gu||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:n}=t;n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`);if("unit"===t.style&&!Gu){var r;let{unit:e,unitDisplay:n="short"}=t;if(!e)throw new Error('unit option must be provided with style: "unit"');if(!(null===(r=Zu[e])||void 0===r?void 0:r[n]))throw new Error(`Unsupported unit ${e} with unitDisplay = ${n}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(Wu.has(o))return Wu.get(o);let i=new Intl.NumberFormat(e,t);return Wu.set(o,i),i}(e,t),this.options=t}}new Map;new Set(["decimal","fraction","integer","minusSign","plusSign","group"]);let Xu=new Ku(function(e){return e&&e.__esModule?e.default:e}(Ru));function Ju(e){let t=nd.parse(e)||od.parse(e)||ad.parse(e);if(t)return t;throw new Error("Invalid color value: "+e)}function Qu(e){return 360===e?e:(e%360+360)%360}const ed=[[0,"pink"],[15,"red"],[48,"orange"],[94,"yellow"],[135,"green"],[175,"cyan"],[264,"blue"],[284,"purple"],[320,"magenta"],[349,"pink"]];class td{toHexInt(){return this.toFormat("rgb").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}withChannelValue(e,t){if(e in this){let n=this.clone();return n[e]=t,n}throw new Error("Unsupported color channel: "+e)}getChannelName(e,t){return(Ku.getGlobalDictionaryForPackage("@react-stately/color")||Xu).getStringForLocale(e,t)}getColorSpaceAxes(e){let{xChannel:t,yChannel:n}=e,r=t||this.getColorChannels().find((e=>e!==n)),o=n||this.getColorChannels().find((e=>e!==r)),i=this.getColorChannels().find((e=>e!==r&&e!==o));return{xChannel:r,yChannel:o,zChannel:i}}getColorName(e){let t,[n,r,o]=sd(this),i=Ku.getGlobalDictionaryForPackage("@react-stately/color")||Xu;if(n>.999)return i.getStringForLocale("white",e);if(n<.001)return i.getStringForLocale("black",e);[t,n]=this.getOklchHue(n,r,o,e);let a="",s="";r<=.1&&r>=.001?s=n>=.7?"pale":"grayish":r>=.15&&(s="vibrant"),n<.3?a="very dark":n<.55?a="dark":n<.7||(a=n<.85?"light":"very light"),s&&(s=i.getStringForLocale(s,e)),a&&(a=i.getStringForLocale(a,e));let l=this.getChannelValue("alpha"),c=new Uu(e,i);if(l<1){let n=new Yu(e,{style:"percent"}).format(1-l);return c.format("transparentColorName",{lightness:a,chroma:s,hue:t,percentTransparent:n}).replace(/\s+/g," ").trim()}return c.format("colorName",{lightness:a,chroma:s,hue:t}).replace(/\s+/g," ").trim()}getOklchHue(e,t,n,r){let o=Ku.getGlobalDictionaryForPackage("@react-stately/color")||Xu;if(t<.001)return[o.getStringForLocale("gray",r),e];for(let t=0;t<ed.length;t++){let[i,a]=ed[t],[s,l]=ed[t+1]||[360,"pink"];if(n>=i&&n<s){return"orange"===a&&(e<.68?a="brown":e=e-.68+.55),n>i+(s-i)/2&&a!==l?a=`${a} ${l}`:"yellow"===a&&e<.85&&(a="yellow green"),[o.getStringForLocale(a,r).toLocaleLowerCase(r),e]}}throw new Error("Unexpected hue")}getHueName(e){let[t,n,r]=sd(this),[o]=this.getOklchHue(t,n,r,e);return o}}class nd extends td{static parse(e){let t=[];if(/^#[\da-f]+$/i.test(e)&&[4,5,7,9].includes(e.length)){const n=(e.length<6?e.replace(/[^#]/gi,"$&$&"):e).slice(1).split("");for(;n.length>0;)t.push(parseInt(n.splice(0,2).join(""),16));t[3]=void 0!==t[3]?t[3]/255:void 0}const n=e.match(/^rgba?\((.*)\)$/);var r;if((null==n?void 0:n[1])&&(t=n[1].split(",").map((e=>Number(e.trim()))),t=t.map(((e,t)=>ju(null!=e?e:0,0,t<3?255:1)))),void 0!==t[0]&&void 0!==t[1]&&void 0!==t[2])return t.length<3?void 0:new nd(t[0],t[1],t[2],null!==(r=t[3])&&void 0!==r?r:1)}toString(e="css"){switch(e){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(255*this.alpha).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hex":case"hexa":case"rgb":case"rgba":return this;case"hsb":case"hsba":return this.toHSB();case"hsl":case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+e)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const e=this.red/255,t=this.green/255,n=this.blue/255,r=Math.min(e,t,n),o=Math.max(e,t,n),i=o-r,a=0===o?0:i/o;let s=0;if(0!==i){switch(o){case e:s=(t-n)/i+(t<n?6:0);break;case t:s=(n-e)/i+2;break;case n:s=(e-t)/i+4}s/=6}return new od(Fu(360*s,2),Fu(100*a,2),Fu(100*o,2),this.alpha)}toHSL(){const e=this.red/255,t=this.green/255,n=this.blue/255,r=Math.min(e,t,n),o=Math.max(e,t,n),i=(o+r)/2,a=o-r;let s,l;if(0===a)s=l=0;else{switch(l=a/(i<.5?o+r:2-o-r),o){case e:s=(t-n)/a+(t<n?6:0);break;case t:s=(n-e)/a+2;break;default:s=(e-t)/a+4}s/=6}return new ad(Fu(360*s,2),Fu(100*l,2),Fu(100*i,2),this.alpha)}clone(){return new nd(this.red,this.green,this.blue,this.alpha)}getChannelRange(e){switch(e){case"red":case"green":case"blue":return{minValue:0,maxValue:255,step:1,pageSize:17};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+e)}}getChannelFormatOptions(e){switch(e){case"red":case"green":case"blue":return{style:"decimal"};case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return new Yu(t,n).format(r)}getColorSpace(){return"rgb"}getColorChannels(){return nd.colorChannels}constructor(e,t,n,r){super(),this.red=e,this.green=t,this.blue=n,this.alpha=r}}nd.colorChannels=["red","green","blue"];const rd=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/;class od extends td{static parse(e){let t;if(t=e.match(rd)){var n;const[e,r,o,i]=(null!==(n=t[1])&&void 0!==n?n:t[2]).split(",").map((e=>Number(e.trim().replace("%",""))));return new od(Qu(e),ju(r,0,100),ju(o,0,100),ju(null!=i?i:1,0,1))}}toString(e="css"){switch(e){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${Fu(this.saturation,2)}%, ${Fu(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${Fu(this.saturation,2)}%, ${Fu(this.brightness,2)}%, ${this.alpha})`;default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsb":case"hsba":return this;case"hsl":case"hsla":return this.toHSL();case"rgb":case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+e)}}toHSL(){let e=this.saturation/100,t=this.brightness/100,n=t*(1-e/2);return e=0===n||1===n?0:(t-n)/Math.min(n,1-n),new ad(Fu(this.hue,2),Fu(100*e,2),Fu(100*n,2),this.alpha)}toRGB(){let e=this.hue,t=this.saturation/100,n=this.brightness/100,r=(r,o=(r+e/60)%6)=>n-t*n*Math.max(Math.min(o,4-o,1),0);return new nd(Math.round(255*r(5)),Math.round(255*r(3)),Math.round(255*r(1)),this.alpha)}clone(){return new od(this.hue,this.saturation,this.brightness,this.alpha)}getChannelRange(e){switch(e){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+e)}}getChannelFormatOptions(e){switch(e){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return"saturation"!==e&&"brightness"!==e||(r/=100),new Yu(t,n).format(r)}getColorSpace(){return"hsb"}getColorChannels(){return od.colorChannels}constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.brightness=n,this.alpha=r}}od.colorChannels=["hue","saturation","brightness"];const id=/hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/;class ad extends td{static parse(e){let t;if(t=e.match(id)){var n;const[e,r,o,i]=(null!==(n=t[1])&&void 0!==n?n:t[2]).split(",").map((e=>Number(e.trim().replace("%",""))));return new ad(Qu(e),ju(r,0,100),ju(o,0,100),ju(null!=i?i:1,0,1))}}toString(e="css"){switch(e){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${Fu(this.saturation,2)}%, ${Fu(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${Fu(this.saturation,2)}%, ${Fu(this.lightness,2)}%, ${this.alpha})`;default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsl":case"hsla":return this;case"hsb":case"hsba":return this.toHSB();case"rgb":case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+e)}}toHSB(){let e=this.saturation/100,t=this.lightness/100,n=t+e*Math.min(t,1-t);return e=0===n?0:2*(1-t/n),new od(Fu(this.hue,2),Fu(100*e,2),Fu(100*n,2),this.alpha)}toRGB(){let e=this.hue,t=this.saturation/100,n=this.lightness/100,r=t*Math.min(n,1-n),o=(t,o=(t+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return new nd(Math.round(255*o(0)),Math.round(255*o(8)),Math.round(255*o(4)),this.alpha)}clone(){return new ad(this.hue,this.saturation,this.lightness,this.alpha)}getChannelRange(e){switch(e){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+e)}}getChannelFormatOptions(e){switch(e){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let n=this.getChannelFormatOptions(e),r=this.getChannelValue(e);return"saturation"!==e&&"lightness"!==e||(r/=100),new Yu(t,n).format(r)}getColorSpace(){return"hsl"}getColorChannels(){return ad.colorChannels}constructor(e,t,n,r){super(),this.hue=e,this.saturation=t,this.lightness=n,this.alpha=r}}function sd(e){let t=e.toFormat("rgb"),n=t.getChannelValue("red")/255,r=t.getChannelValue("green")/255,o=t.getChannelValue("blue")/255;[n,r,o]=function(e,t,n){return[ld(e),ld(t),ld(n)]}(n,r,o);let[i,a,s]=function(e,t,n){return cd([506752/1228815,87881/245763,12673/70218,87098/409605,175762/245763,12673/175545,7918/409605,87881/737289,1001167/1053270],e,t,n)}(n,r,o),[l,c,u]=function(e,t,n){const r=[.819022437996703,.3619062600528904,-.1288737815209879,.0329836539323885,.9292868615863434,.0361446663506424,.0481771893596242,.2642395317527308,.6335478284694309],o=[.210454268309314,.7936177747023054,-.0040720430116193,1.9779985324311684,-2.42859224204858,.450593709617411,.0259040424655478,.7827717124575296,-.8086757549230774];let[i,a,s]=cd(r,e,t,n);return cd(o,Math.cbrt(i),Math.cbrt(a),Math.cbrt(s))}(i,a,s);return function(e,t,n){var r=180*Math.atan2(n,t)/Math.PI;return[e,Math.sqrt(t**2+n**2),r>=0?r:r+360]}(l,c,u)}function ld(e){let t=e<0?-1:1,n=Math.abs(e);return n<=.04045?e/12.92:t*Math.pow((n+.055)/1.055,2.4)}function cd(e,t,n,r){return[e[0]*t+e[1]*n+e[2]*r,e[3]*t+e[4]*n+e[5]*r,e[6]*t+e[7]*n+e[8]*r]}ad.colorChannels=["hue","saturation","lightness"];Ju("#ffffff");Ju("hsl(0, 100%, 50%)");const ud={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0};(0,u.createContext)({}),Date.now();const dd=Ju("#000000"),pd=Ju("#FFFFFF");dd.toHexInt(),pd.toHexInt();const{createActionGroupToolbarItem:hd,createColorSwatchPickerToolbarItem:fd}=Dl.XD;function md(){const{formatMessage:e}=(0,v.useI18n)(),{canEditAnnotationCP:t,selectedAnnotation:n,updateAnnotation:r}=cu(),o=(0,br.Kw)((e=>{t&&n&&r(e)})),i=(0,s.d4)((e=>e.frameWindow));(0,fu.V1)(i&&n);const a=Tu(),l=(0,u.useMemo)((()=>{const r=t=>e(xe.A[`icon${(0,Xt.ZH)(ct.ac[t])}`]);return{color:{toolbarItem:fd("color",{items:Xe.JY.NOTE_COLOR_PRESETS.map((t=>({label:e(t.localization.id),color:t.color?.toCSSValue()||"transparent"}))),className:"PSPDFKit-Note-Annotation-Toolbar-Color PSPDFKit-Toolbox PSPDFKit-Toolbox-FillColor","aria-label":e(xe.A.color),icon:Al.s8N,isDisabled:!t,value:n.color.toCSSValue(),shouldFocusWrap:!0,onChange:e=>e&&o({color:P.Q1.fromHex(Ju(e).toString("hex"))})})},"note-icon":{toolbarItem:hd("note-icon",{className:(0,fu.xW)("PSPDFKit-Note-Annotation-Toolbar-Icons","PSPDFKit-Toolbox","PSPDFKit-Toolbox-NoteIcon"),"aria-label":e(xe.A.icon),items:gd.map((e=>({id:e.name,label:r(e.name),icon:e.icon,isSelected:n.icon===e.name}))),renderActionItem:(e,t)=>{let{isDisabled:n,isSelected:r}=t;const o=gd.find((t=>t.name===e.value?.id))?.icon;return(0,fu.V1)(o),(0,oe.jsx)(v.ActionIconButton,{variant:"tertiary",icon:o,"aria-label":e.textValue,size:"sm",isDisabled:n,className:(0,fu.xW)("PSPDFKit-Tool-Button",r&&Ac().selectedNoteIcon,`PSPDFKit-Note-Annotation-Icon-${(0,R.Ow)(ct.ac[e.value?.id])}`,"BaselineUI-ActionGroup-Item")})},orientation:"horizontal",isDisabled:!t,selectionMode:"single",tooltipProps:e=>({text:r(e.id)}),icon:Al.ncu,selectedKeys:[n.icon],onSelectionChange:e=>o({icon:e.currentKey})})},...a}}),[t,e,n,o,a]);return(0,oe.jsx)(Pu,{items:l,className:"PSPDFKit-Note-Annotation-Toolbar"})}const gd=[{name:ct.Qv.COMMENT,icon:Al.EZ},{name:ct.Qv.RIGHT_POINTER,icon:Al.tir},{name:ct.Qv.RIGHT_ARROW,icon:Al.hKI},{name:ct.Qv.CHECK,icon:Al.ezM},{name:ct.Qv.CIRCLE,icon:Al.aoJ},{name:ct.Qv.CROSS,icon:Al.On1},{name:ct.Qv.INSERT,icon:Al.J9T},{name:ct.Qv.NEW_PARAGRAPH,icon:Al.SIH},{name:ct.Qv.NOTE,icon:Al.S2b},{name:ct.Qv.PARAGRAPH,icon:Al.d6Y},{name:ct.Qv.HELP,icon:Al.bA4},{name:ct.Qv.STAR,icon:Al.O_E},{name:ct.Qv.KEY,icon:Al.JAm}];var vd=n(71761),yd=n(55026);const bd=new P.Q1({r:.5,g:.5,b:.5});const{createIconColorInputToolbarItem:wd,createIconSliderToolbarItem:xd,createIconSelectToolbarItem:Sd,createComboBoxToolbarItem:_d,createActionGroupToolbarItem:Cd}=Dl.XD;function Ed(){const{formatMessage:e}=(0,v.useI18n)(),{canEditAnnotationCP:t,selectedAnnotation:n,updateAnnotation:r,fontColorDropdownConfig:i,backgroundColorDropdownConfig:a,borderColorDropdownConfig:l}=cu(),c=(0,s.d4)((e=>n?e.pages.get(n.pageIndex)?.pageSize:null)),d=(0,s.d4)((e=>e.interactionMode)),p=(0,s.d4)((e=>e.viewportState.zoomLevel)),h=(0,s.d4)((e=>e.shadowRoot)),f=(0,s.d4)((e=>e.richTextEditorRef)),m=(0,s.d4)((e=>e.customFontsReadableNames)),g=(0,br.Kw)((e=>{if(!t||!n)return;let o=n.merge(e);if((0,B.I2)(o))r(e);else if(c&&(e.fontSize||e.font||e.text&&"xhtml"===e.text.format)){const{rotation:t}=n;let i=(0,Re.rK)(o);const a=i.boundingBox.getCenter();i=(0,qt.VN)(i.set("rotation",0),c,p,h),i=(0,qt.fk)(i,p);const s=new P.bR({x:i.boundingBox.getCenter().x-a.x,y:i.boundingBox.getCenter().y-a.y}),l=s.rotate(t),u=new P.bR({x:l.x-s.x,y:l.y-s.y});i=i.update("boundingBox",(e=>e?.translate(u))),o=(0,Re.pE)(i.set("rotation",t)),r({...e,isFitting:o.isFitting,boundingBox:o.boundingBox})}else{const{isFitting:t}=(0,qt.fk)((0,Re.rK)(o).set("rotation",0),p);r({...e,isFitting:t})}f&&vd.rL.focus(f)})),y=(0,s.d4)((e=>e.frameWindow));(0,fu.V1)(y&&n);const b="xhtml"===n?.text.format,{updateAnnotationOrEditorText:w,selectedIsUnderline:x,selectedIsBold:S,selectedIsItalic:_,activeTextStyle:C}=function(e){let{editor:t,frameWindow:n,updateAnnotation:r,text:i,isRichText:a}=e;const[s,l]=(0,u.useState)(null),[c,d]=(0,u.useState)(!1),[p,h]=(0,u.useState)(!1),[f,m]=(0,u.useState)(!1),g=(0,u.useCallback)((()=>{t&&(d(o.Dl.isMarkActive(t,"bold")),h(o.Dl.isMarkActive(t,"italic")),m(o.Dl.isMarkActive(t,"underline")))}),[t]),v=(0,u.useCallback)((()=>{if(!t||!a)return;const e=(0,Xt.jG)(o.Dl.getSelectedNodesColor(t,"fontColor")),n=(0,Xt.jG)(o.Dl.getSelectedNodesColor(t,"backgroundColor"));l({fontColor:e?P.Q1.fromHex(e):bd,backgroundColor:n?P.Q1.fromHex(n):null}),g()}),[t,g,a]);t&&(t.onSelectionChange=v,t.onValueChange=()=>{g(),v()}),(0,u.useEffect)((()=>{if(a&&t)return n.document?.addEventListener("keydown",e),()=>{n.document?.removeEventListener("keydown",e)};function e(e){t&&(!e.ctrlKey&&!e.metaKey||"u"!==e.key&&"i"!==e.key&&"b"!==e.key||g())}}),[t,n,a,g]);const y=(0,u.useCallback)((e=>{const a=new Map(Object.entries(e)),s=a.has("fontColor")||a.has("backgroundColor"),c=a.has("bold")||a.has("italic")||a.has("underline");if(s){const a=e.fontColor?"fontColor":"backgroundColor";if(o.Dl.isRangeSelected(t))o.Dl.applyStyle(t,a,e[a]&&!e[a]?.equals(P.Q1.TRANSPARENT)?e[a].toHex():null),r({text:{format:"xhtml",value:o.Dl.serialize(t?.children[0])}}),l((t=>({...t,[a]:e[a]}))),n.getSelection()?.removeAllRanges();else if("fontColor"===a){const t=o.Dl.setStyleOrToggleFormat(i,a,e[a].toHex());r({text:{format:"xhtml",value:t},fontColor:e.fontColor})}else l({backgroundColor:e.backgroundColor}),r(e)}else if(c){const n=Object.keys(e)[0];if(t&&o.Dl.isRangeSelected(t)){switch(o.Dl.toggleMark(t,n),n){case"bold":d(e.bold);break;case"italic":h(e.italic);break;case"underline":m(e.underline)}r({text:{format:"xhtml",value:o.Dl.serialize(t?.children[0])}})}else{const e=o.Dl.setStyleOrToggleFormat(i,n);r({text:{format:"xhtml",value:e}})}}else r(e)}),[r,i,t,n]);return(0,u.useMemo)((()=>{if(a){if(t)return{activeTextStyle:s,updateAnnotationOrEditorText:y,selectedIsBold:c,selectedIsItalic:p,selectedIsUnderline:f};{const{fontColor:e,isUnderlined:t,isItalic:n,isBold:r}=o.Dl.getComputedStyleAll(i);return{activeTextStyle:{fontColor:e?P.Q1.fromHex(e):void 0,backgroundColor:s?.backgroundColor},updateAnnotationOrEditorText:y,selectedIsBold:r,selectedIsItalic:n,selectedIsUnderline:t}}}return{updateAnnotationOrEditorText:r}}),[a,t,s,r,i,c,p,f,y])}({editor:f,frameWindow:y,updateAnnotation:g,text:n?.text?.value||"",isRichText:b}),E=Math.round(n.fontSize),{fontFamilyItems:k,unsupportedFontIds:z}=(0,u.useMemo)((()=>{(0,fu.V1)(n,"selectedAnnotation is required");const t=wa.iL.toArray().map((e=>({label:e,id:e}))),r=t.concat(m.toArray().map((e=>({label:e,id:e}))).filter((e=>!t.some((t=>t.id===e.id))))),o=[];if(!wa.iL.has(n.font)&&!m.has(n.font)&&""!==n.font.trim()){const t=e(xe.A.fontFamilyUnsupported,{arg0:n.font});r.push({label:t,id:t}),o.push(t)}return{fontFamilyItems:r,unsupportedFontIds:o}}),[m,e,n]),A=(0,u.useMemo)((()=>(-1===P.dh.fontSizePresets.indexOf(E)?P.dh.fontSizePresets.concat(E).sort(((e,t)=>e-t)):P.dh.fontSizePresets).map((e=>({label:e?.toString(10),id:e?.toString()})))),[E]),D=(0,u.useMemo)((()=>Sd("font-family",{icon:Al.TL,className:"PSPDFKit-Text-Annotation-Toolbar-Font-Family",items:k,"aria-label":e(xe.A.font),optionStyle:e=>({fontFamily:e.id}),selectedKey:n.font,onSelectionChange:e=>{g({font:e})},isDisabled:!t,disabledKeys:z})),[t,k,e,n.font,g,z]),T=(0,u.useRef)(!1),I=u.useRef(null),M=(0,u.useRef)(!1),N=(0,u.useMemo)((()=>_d("font-size",{items:A,className:"PSPDFKit-Text-Annotation-Toolbar-Font-Size",allowsCustomValue:!0,inputType:"number",defaultInputValue:E.toString(),onInputSubmit:e=>{e&&(T.current||M.current||w({fontSize:parseInt(e,10)}))},selectedKey:A.find((e=>e.id===E.toString()))?.id||null,onOpenChange:e=>{M.current=e},onSelectionChange:e=>{e&&(T.current=!0,I.current&&clearTimeout(I.current),I.current=setTimeout((()=>{T.current=!1}),1e3),w({fontSize:parseInt(e,10)}))},variant:"ghost",isDisabled:!t,"aria-label":e(xe.A.fontSize)})),[A,E,t,e,w]),O=(0,u.useMemo)((()=>[{id:"bold",icon:yd.$o,label:e(xe.A.bold)},{id:"italic",icon:yd.yO,label:e(xe.A.italic)},{id:"underline",icon:yd.qp,label:e(xe.A.underline)}]),[e]),R=(0,u.useMemo)((()=>[...S?["bold"]:[],..._?["italic"]:[],...x?["underline"]:[]]),[S,_,x]),j=(0,u.useMemo)((()=>Cd("font-formatting",{items:O,tooltipProps:{isDisabled:!1},selectionMode:"multiple",selectedKeys:R,className:"PSPDFKit-Text-Annotation-Toolbar-Inline-Style",onSelectionChange:e=>{var t,n,r;w((t=[...e],n=R,r=O.map((e=>e.id)),Object.fromEntries(r.filter((e=>t.includes(e)&&!n.includes(e)||!t.includes(e)&&n.includes(e))).map((e=>[e,t.includes(e)])))))},isDisabled:!t})),[t,R,O,w]),F=(0,u.useMemo)((()=>Cd("font-horizontal-alignment",{items:[{id:"left",icon:yd.VN,label:e(xe.A.alignmentLeft)},{id:"center",icon:yd.L0,label:e(xe.A.alignmentCenter)},{id:"right",icon:yd.Ui,label:e(xe.A.alignmentRight)}],className:"PSPDFKit-Text-Annotation-Toolbar-Alignment",tooltipProps:{isDisabled:!1},selectedKeys:[n.horizontalAlign],selectionMode:"single",onSelectionChange:e=>{w({horizontalAlign:[...e][0]})}})),[e,n.horizontalAlign,w]),V=(0,u.useMemo)((()=>Cd("font-vertical-alignment",{items:[{id:"top",icon:yd.mi,label:e(xe.A.top)},{id:"center",icon:yd.oq,label:e(xe.A.alignmentCenter)},{id:"bottom",icon:yd.uY,label:e(xe.A.bottom)}],tooltipProps:{isDisabled:!1},className:"PSPDFKit-Text-Annotation-Toolbar-Vertical-Alignment",selectedKeys:[n?.verticalAlign],selectionMode:"single",onSelectionChange:e=>{w({verticalAlign:[...e][0]})}})),[e,n.verticalAlign,w]),K=Tu(),H=(0,u.useMemo)((()=>({color:{toolbarItem:wd("color",{className:"PSPDFKit-Text-Annotation-Toolbar-Font-Color PSPDFKit-Toolbox PSPDFKit-Toolbox-TextColor","aria-label":e(zd.fontColor),icon:Al.gvh,value:kd(b?C?.fontColor:n.fontColor),allowAlpha:!1,pickerMode:"lazy",includePicker:i.showColorPicker,presets:i.presets,isDisabled:!t,onChangeEnd:e=>w({fontColor:e?new P.Q1({r:e.getChannelValue("red"),g:e.getChannelValue("green"),b:e.getChannelValue("blue")}):null})})},"background-color":{toolbarItem:wd("background-color",{className:"PSPDFKit-Text-Annotation-Toolbar-Background-Color PSPDFKit-Toolbox PSPDFKit-Toolbox-BackgroundColor ","aria-label":e(xe.A.fillColor),icon:Al.s8N,value:kd(b&&f?C?.backgroundColor:n.backgroundColor),allowAlpha:!1,allowRemoval:!0,pickerMode:"lazy",includePicker:a.showColorPicker,presets:a.presets,isDisabled:!t,onChangeEnd:e=>{w({backgroundColor:e?new P.Q1({r:e.getChannelValue("red"),g:e.getChannelValue("green"),b:e.getChannelValue("blue")}):null})}})},"border-color":{toolbarItem:wd("border-color",{className:"PSPDFKit-Text-Annotation-Toolbar-Border-Color","aria-label":e(xe.A.borderColor),icon:Al.hRt,value:kd(n.borderColor),allowAlpha:!1,allowRemoval:!0,pickerMode:"lazy",includePicker:l.showColorPicker,presets:l.presets,isDisabled:!t,onChange:e=>{r({borderColor:e?new P.Q1({r:e.getChannelValue("red"),g:e.getChannelValue("green"),b:e.getChannelValue("blue")}):null})}}),isHidden:!(d===L.O.CALLOUT||(0,B.I2)(n))},opacity:{toolbarItem:xd("opacity",{className:"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity",icon:Al.FNe,minValue:.1,maxValue:1,step:.01,formatValue:e=>`${Math.round(100*e)}%`,value:n.opacity??1,"aria-label":e(xe.A.opacity),isDisabled:!t,onChange:e=>g({opacity:e}),numberFormatOptions:{style:"percent"}})},font:{toolbarItem:{name:"font",icon:Al.TL,"aria-label":e(xe.A.font),children:b?[D,N,j,F,V]:[D,N,F,V]}},...K})),[C,a.presets,l.presets,t,D,N,i.presets,j,F,V,e,b,n,K,g,a.showColorPicker,l.showColorPicker,i.showColorPicker,d,f,r,w]);return(0,oe.jsx)(Pu,{items:H,className:"PSPDFKit-Text-Annotation-Toolbar"})}function kd(e){return e?Ju(`rgba(${e.r}, ${e.g}, ${e.b}, ${e.transparent?0:1})`):null}const zd=(0,v.defineMessages)({fontColor:{id:"fontColor",defaultMessage:"Font Color"}});var Pd=n(46395);const{createIconSliderToolbarItem:Ad,createIconColorInputToolbarItem:Dd}=Dl.XD;function Td(){const{formatMessage:e}=(0,v.useI18n)(),{selectedAnnotation:t,canEditAnnotationCP:n,updateAnnotation:r,strokeColorDropdownConfig:o}=cu(),i=!!t&&(0,B.oZ)(t),a=(0,u.useCallback)((e=>{if(!t)return;const n=function(e,t){return!t.borderStyle&&("number"==typeof e.borderWidth||e.borderColor instanceof P.Q1)?{...e,borderStyle:Pd.k.solid}:e}(e,t);r(n)}),[r,t]),s=Tu(),l=(0,u.useMemo)((()=>({"stroke-color":{toolbarItem:Dd("stroke-color",{className:"PSPDFKit-Link-Annotation-Toolbar-BorderColor PSPDFKit-Toolbox PSPDFKit-Toolbox-BorderColor",allowAlpha:!1,allowRemoval:!0,"aria-label":e(xe.A.borderColor),icon:Al.hRt,value:t?.borderColor?.toHex()??null,presets:o.presets,includePicker:o.showColorPicker,pickerMode:"lazy",onChangeEnd:e=>{a({borderColor:e?new P.Q1({r:e.getChannelValue("red"),g:e.getChannelValue("green"),b:e.getChannelValue("blue")}):null})}}),isHidden:i},opacity:{toolbarItem:Ad("opacity",{className:"PSPDFKit-Link-Annotation-Toolbar-Opacity PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity PSPDFKit-Annotation-Toolbar-Opacity","aria-label":e(xe.A.opacity),icon:Al.FNe,minValue:.1,maxValue:1,step:.01,formatValue:e=>`${Math.round(100*e)}%`,value:t?.opacity??1,onChange:e=>{a({opacity:e})},numberFormatOptions:{style:"percent"},isDisabled:!n}),isHidden:i},"line-width":{toolbarItem:Ad("line-width",{className:"PSPDFKit-Link-Annotation-Toolbar-Line-Width PSPDFKit-Toolbox PSPDFKit-Toolbox-LineWidth","aria-label":e(xe.A.thickness),icon:Al.QBs,formatValue:e=>`${e} pt`,minValue:1,maxValue:40,onChange:e=>{a({borderWidth:e})},value:Math.round(t?.borderWidth??0),includeNumberInput:!0}),isHidden:i},...s})),[e,i,a,t,n,o.presets,o.showColorPicker,s]);return(0,oe.jsx)(Pu,{items:l,className:"PSPDFKit-Link-Annotation-Toolbar"})}var Id=n(2543),Md=n(24159);const{createColorSwatchPickerToolbarItem:Nd,createIconSliderToolbarItem:Od,createIconSelectToolbarItem:Rd}=Dl.XD,jd=Xe.JY.TEXT_MARKUP_COLOR_PRESETS,Fd=Xe.JY.HIGHLIGHT_COLOR_PRESETS;function Bd(){const{formatMessage:e}=(0,v.useI18n)(),t=(0,s.wA)(),{selectedAnnotation:n,canEditAnnotationCP:r,updateAnnotation:o,isEditing:i,variantAnnotationPresetID:a}=cu(),l=(0,u.useCallback)((e=>{if(r&&n)if(n.rects.size>0&&i)t((0,lt.M)(e)),t((0,Dt.D8)()),t((0,we.od)());else{const t=a||X.Q4.get(n.constructor);o(e,t)}}),[r,n,i,o,a,t]),c=Tu(),d=(0,u.useMemo)((()=>{const t=t=>({color:(t.color??Md.A.TRANSPARENT).toHex(),label:e(t.localization)});return n instanceof P.ax?Fd.map(t):jd.map(t)}),[e,n]),p=(0,u.useMemo)((()=>({color:{toolbarItem:Nd("color",{className:"PSPDFKit-Text-Markup-Annotation-Toolbar-Color PSPDFKit-Toolbox PSPDFKit-Toolbox-Color","aria-label":e(xe.A.color),icon:Al.hRt,items:d,value:n?.color.toHex(),isDisabled:!r,onChange:e=>{e&&l({color:Md.A.fromHex(e)})},tooltip:{offset:10}})},opacity:{toolbarItem:Od("opacity",{className:"PSPDFKit-Text-Markup-Annotation-Toolbar-Opacity PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity","aria-label":e(xe.A.opacity),icon:Al.FNe,minValue:.1,maxValue:1,step:.01,formatValue:e=>`${Math.round(100*e)}%`,value:n?.opacity??1,onChange:e=>{l({opacity:e})},numberFormatOptions:{style:"percent"},isDisabled:!r})},"blend-mode":{toolbarItem:Rd("blend-mode",{className:"PSPDFKit-Text-Markup-Annotation-Toolbar-Blend-Mode PSPDFKit-Toolbox PSPDFKit-Toolbox-BlendMode PSPDFKit-Input-Dropdown-Select","aria-label":e(xe.A.blendMode),icon:Al.MK5,items:Object.keys(ku.N).map((e=>({label:(0,Id.startCase)(e),id:e}))),selectedKey:n?.blendMode??ku.N.normal,isDisabled:!r,onSelectionChange:e=>{l({blendMode:e})}})},...c})),[r,n,l,e,c,d]);return(0,oe.jsx)(Pu,{items:p,className:"PSPDFKit-Text-Markup-Annotation-Toolbar"})}const{createIconSliderToolbarItem:Ld,createActionIconButtonToolbarItem:Vd}=Dl.XD;function Kd(){const{formatMessage:e}=(0,v.useI18n)(),{selectedAnnotation:t,canEditAnnotationCP:n,updateAnnotation:r,selectedAnnotationPageSize:o,areOnlyElectronicSignaturesEnable:i}=cu(),a=(0,u.useCallback)((e=>{r(e,"image")}),[r]),s=(0,u.useCallback)((e=>{t&&o&&r((0,B._w)(t,o,e))}),[r,t,o]),l=Tu(),c=(0,u.useMemo)((()=>({opacity:{toolbarItem:Ld("opacity",{className:"PSPDFKit-Image-Annotation-Toolbar-Opacity PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity PSPDFKit-Annotation-Toolbar-Opacity","aria-label":e(xe.A.opacity),icon:Al.FNe,minValue:.1,maxValue:1,step:.01,formatValue:e=>`${Math.round(100*e)}%`,value:t?.opacity??1,onChange:e=>{a({opacity:e})},numberFormatOptions:{style:"percent"},isDisabled:!n})},"counterclockwise-rotation":{toolbarItem:Vd("counterclockwise-rotation",{icon:Al.HTp,"aria-label":e(xe.A.rotateCounterclockwise),className:"PSPDFKit-Image-Annotation-Toolbar-Button-Rotate PSPDFKit-Image-Annotation-Toolbar-Button-Rotate-Counterclockwise PSPDFKit-Toolbox",isDisabled:!n,onPress:()=>s(B.Y5.COUNTERCLOCKWISE)}),isHidden:i},"clockwise-rotation":{toolbarItem:Vd("clockwise-rotation",{icon:Al.h8W,"aria-label":e(xe.A.rotateClockwise),className:"PSPDFKit-Image-Annotation-Toolbar-Button-Rotate PSPDFKit-Image-Annotation-Toolbar-Button-Rotate-Clockwise PSPDFKit-Toolbox",isDisabled:!n,onPress:()=>s(B.Y5.CLOCKWISE)}),isHidden:i},...l})),[e,t,n,a,s,i,l]);return(0,oe.jsx)(Pu,{items:c,className:"PSPDFKit-Image-Annotation-Toolbar"})}var Hd=n(6833);const $d=e=>{let{formatMessage:t,selectedAnnotation:n,updateAnnotation:r,className:o,isExpanded:i,setIsExpanded:a,device:s}=e;const l=Hd.A.find((e=>Array.isArray(e.dashArray)&&2===e.dashArray.length&&e.dashArray[0]===n.strokeDashArray?.[0]&&e.dashArray[1]===n.strokeDashArray?.[1]))?.id||"solid",c=(0,K.s3)(n.constructor),u=e=>{const t="strokeDashArray"in e?e.strokeDashArray:n.strokeDashArray,o="lineCaps"in e?e.lineCaps:n.lineCaps,i="lineCaps"in e?c(n.set("lineCaps",o||null)):n.boundingBox;return r({...e,strokeDashArray:t,lineCaps:o,boundingBox:i})},d=(0,gu.FD)(gu.FK,{children:[(0,gu.Y)(v.Tooltip,{text:t(xe.A.startLineCap),variant:"inverse",size:"sm",offset:0,includeArrow:!1,children:(0,gu.Y)(v.Select,{variant:"ghost",items:Xe.JY.LINE_CAP_PRESETS.map((e=>({id:e,label:" ",description:t(xe.A[e]),icon:n=>Ud.startCap[e]({...n,"aria-label":t(xe.A[e])})}))),"aria-label":t(xe.A.startLineCap),onSelectionChange:e=>u({lineCaps:{start:"none"===e?null:e,end:n.lineCaps?.end}}),selectedKey:n.lineCaps?.start||"none",className:(0,fu.xW)("PSPDFKit-Annotation-Toolbar-StartLineCap","PSPDFKit-Toolbar-DropdownGroup","PSPDFKit-Toolbar-DropdownGroup-Toolbar")})},"startLineCap"),(0,gu.Y)(v.Tooltip,{text:t(xe.A.strokeDashArray),variant:"inverse",size:"sm",offset:0,includeArrow:!1,children:(0,gu.Y)(v.Select,{variant:"ghost",items:Hd.A.map((e=>({id:e.id,label:" ",description:t(xe.A[e.id]),className:`PSPDFKit-DashArray-${e.id.replace(" ","")}`,icon:n=>Wd[e.id]({...n,"aria-label":t(xe.A[e.id])})}))),"aria-label":t(xe.A.strokeDashArray),onSelectionChange:e=>u({strokeDashArray:Hd.A.find((t=>t.id===e))?.dashArray||null}),selectedKey:l,className:(0,fu.xW)("PSPDFKit-Annotation-Toolbar-DashArray","PSPDFKit-Toolbar-DropdownGroup","PSPDFKit-Toolbar-DropdownGroup-Toolbar")})},"strokeDashArray"),(0,gu.Y)(v.Tooltip,{text:t(xe.A.endLineCap),variant:"inverse",size:"sm",offset:0,includeArrow:!1,children:(0,gu.Y)(v.Select,{variant:"ghost",items:Xe.JY.LINE_CAP_PRESETS.map((e=>({id:e,label:" ",description:t(xe.A[e]),icon:n=>Ud.endCap[e]({...n,"aria-label":t(xe.A[e])})}))),"aria-label":t(xe.A.endLineCap),onSelectionChange:e=>u({lineCaps:{start:n.lineCaps?.start,end:"none"===e?null:e}}),selectedKey:n.lineCaps?.end||"none",className:(0,fu.xW)("PSPDFKit-Annotation-Toolbar-EndLineCap","PSPDFKit-Toolbar-DropdownGroup","PSPDFKit-Toolbar-DropdownGroup-Toolbar")})},"endLineCap")]});return"desktop"===s?(0,gu.FD)(v.Box,{gap:"md",justifyContent:"space-between",paddingX:"md",display:"flex",flexDirection:"row",alignItems:"center",className:(0,fu.xW)(o),onKeyPress:e=>{i&&"Escape"===e.key&&a(!1)},children:[(0,gu.Y)(v.Box,{width:"full",display:"flex",flexDirection:"row",alignItems:"center",children:(0,gu.Y)(Al.txu,{size:24,className:(0,hu.UV)({color:"icon.primary"})})}),d]}):i?(0,gu.FD)(gu.FK,{children:[(0,gu.Y)(v.ActionIconButton,{icon:Al.JJd,onPress:()=>{a(!1)},"aria-label":t(xe.A.close)}),(0,gu.Y)(v.Separator,{variant:"primary",orientation:"vertical",style:{height:"auto",minHeight:48}},"separator-1"),(0,gu.Y)(v.Box,{display:"flex",flex:1,className:Ac().customExpandedSpacer,"data-spacer":"true"},"spacer-1"),(0,gu.Y)(v.Box,{gap:"lg",justifyContent:"space-between",paddingX:"lg",display:"flex",flexDirection:"row",alignItems:"center",className:(0,fu.xW)(o),onKeyPress:e=>{i&&"Escape"===e.key&&a(!1)},children:d})]}):(0,gu.Y)(v.ActionIconButton,{icon:Al.txu,size:"md",className:(0,fu.xW)(o,(0,hu.UV)({color:"icon.primary"})),variant:"toolbar","aria-label":t(xe.A["linecaps-dasharray"]),onPress:()=>{!i&&a(!0)}})},Ud={startCap:{none:Al._7R,square:Al.p7S,circle:Al.Ka$,diamond:Al._zw,openArrow:Al.X4r,closedArrow:Al.fSs,butt:Al._r7,reverseOpenArrow:Al.$rc,reverseClosedArrow:Al.$nR,slash:Al.F9E},endCap:{none:Al._7R,square:Al.CiG,circle:Al.FfM,diamond:Al.HM_,openArrow:Al.aRD,closedArrow:Al.m9h,butt:Al.dsd,reverseOpenArrow:Al.SE,reverseClosedArrow:Al.umB,slash:Al.cGI}},Wd={solid:Al.I8e,narrowDots:Al.Gjr,wideDots:Al.P1p,narrowDashes:Al.Pjw,wideDashes:Al.PyK},{createIconColorInputToolbarItem:qd,createIconSelectToolbarItem:Gd,createIconSliderToolbarItem:Zd,createBlockToolbarItem:Yd}=Dl.XD;function Xd(){const{formatMessage:e}=(0,v.useI18n)(),t=(0,v.useDevice)(),{canEditAnnotationCP:n,selectedAnnotation:r,updateAnnotation:o,strokeColorDropdownConfig:i,fillColorDropdownConfig:a}=cu(),l=(0,br.Kw)((e=>{n&&r&&("number"==typeof e.strokeWidth&&(e.boundingBox=r.boundingBox.grow((e.strokeWidth-r.strokeWidth)/2)),o(e))})),c=(0,s.d4)((e=>e.frameWindow));(0,fu.V1)(c&&r);const d=Tu(),[p,h]=u.useState(null),f=th(r),m=(0,u.useMemo)((()=>{const o={"stroke-color":{toolbarItem:qd("stroke-color",{className:(0,fu.xW)(`PSPDFKit-${f}-Annotation-Toolbar-Stroke-Color`,"PSPDFKit-Toolbox",{"PSPDFKit-Toolbox-BorderColor":!(0,K.sI)(r),"PSPDFKit-Toolbox-StrokeColor":(0,K.sI)(r)}),"aria-label":e(xe.A.color),icon:Al.hRt,allowAlpha:!1,includePicker:i.showColorPicker,pickerMode:"lazy",isDisabled:!n,value:r.strokeColor?.toHex()||null,presets:i?.presets,onChangeEnd:e=>l({strokeColor:e?P.Q1.fromHex(e?.toString("hex")):null})})},"fill-color":{toolbarItem:qd("fill-color",{className:(0,fu.xW)(`PSPDFKit-${f}-Annotation-Toolbar-Fill-Color`,"PSPDFKit-Toolbox","PSPDFKit-Toolbox-FillColor"),"aria-label":e(xe.A.fillColor),icon:Al.s8N,allowAlpha:!0,includePicker:a.showColorPicker,pickerMode:"lazy",isDisabled:!n,value:r.fillColor?.toHex()||null,presets:a?.presets,onChangeEnd:e=>l({fillColor:e?P.Q1.fromHex(e?.toString("hexa")):null})})},opacity:{toolbarItem:Zd("opacity",{className:"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity",icon:Al.FNe,minValue:.1,maxValue:1,step:.01,formatValue:e=>`${Math.round(100*e)}%`,value:r.opacity??1,"aria-label":e(xe.A.opacity),isDisabled:!n,onChange:e=>l({opacity:e}),numberFormatOptions:{style:"percent"}})},"line-width":{toolbarItem:Zd("line-width",{icon:Al.QBs,"aria-label":e(xe.A.thickness),className:"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineWidth",value:r.strokeWidth,minValue:1,maxValue:40,formatValue:e=>`${e} pt`,includeNumberInput:!0,onChange:e=>l({strokeWidth:e})})}},s=Hd.A.map((t=>({id:t.id,label:" ",description:xe.A[t.id].description,className:`PSPDFKit-DashArray-${t.id.replace(" ","")}`,icon:n=>Jd[t.id]({...n,"aria-label":e(xe.A[t.id])})}))).concat([{id:"cloudy",label:" ",description:xe.A.cloudy.description,className:"PSPDFKit-DashArray-Cloudy",icon:t=>(0,Al.ZiK)({...t,"aria-label":e(xe.A.cloudy)})}]),c=(0,K.s3)(r.constructor),u=((0,B.ml)(r)&&r.cloudyBorderIntensity?s.find((e=>"cloudy"===e.id))?.id:(0,B.ml)(r)&&Hd.A.find((e=>Array.isArray(e.dashArray)&&2===e.dashArray.length&&e.dashArray[0]===r.strokeDashArray?.[0]&&e.dashArray[1]===r.strokeDashArray?.[1]))?.id)||"solid",m=(0,K.Cr)(r)?{"line-style":{toolbarItem:Gd("line-style",{variant:"ghost",items:s,"aria-label":e(xe.A.strokeDashArray),selectedKey:u,icon:Al.HNp,onSelectionChange:e=>{const t="cloudy"===e?_e.lY:0,n=Hd.A.find((t=>t.id===e)),o=(0,K.Xz)(r,t,c);return l({strokeDashArray:(0,B.ml)(r)&&n&&Array.isArray(n.dashArray)&&2===n.dashArray.length?n.dashArray:null,cloudyBorderIntensity:t,cloudyBorderInset:t?P.Yy.fromValue(_e.R0+r.strokeWidth/2):r.cloudyBorderInset,boundingBox:o})},className:"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineStyle"})}}:null,g=(0,K.sI)(r)?{"linecaps-dasharray":{toolbarItem:Yd("linecaps-dasharray",$d({formatMessage:e,updateAnnotation:l,selectedAnnotation:r,className:"PSPDFKit-Toolbox PSPDFKit-Toolbox-LineCaps-DashArray",isExpanded:"linecaps-dasharray"===p,setIsExpanded:e=>{h(e?"linecaps-dasharray":null)},device:t}))}}:null;return"linecaps-dasharray"===p?{...g}:{...o,...m,...g,...d}}),[t,n,r,l,d,e,p,f,i.showColorPicker,i.presets,a.showColorPicker,a.presets]);return(0,oe.jsx)(Pu,{items:m,className:(0,fu.xW)("PSPDFKit-Shape-Annotation-Toolbar",`PSPDFKit-${f}-Annotation-Toolbar`)})}const Jd={solid:Al.I8e,narrowDots:Al.Gjr,wideDots:Al.P1p,narrowDashes:Al.Pjw,wideDashes:Al.PyK},{createIconSliderToolbarItem:Qd}=Dl.XD;function ep(){const{formatMessage:e}=(0,v.useI18n)(),{selectedAnnotation:t,canEditAnnotationCP:n,updateAnnotation:r}=cu(),o=(0,u.useCallback)((e=>{r(e,"stamp")}),[r]),i=Tu(),a=(0,u.useMemo)((()=>({opacity:{toolbarItem:Qd("opacity",{className:"PSPDFKit-Stamp-Annotation-Toolbar-Opacity PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity PSPDFKit-Annotation-Toolbar-Opacity","aria-label":e(xe.A.opacity),icon:Al.FNe,minValue:.1,maxValue:1,step:.01,formatValue:e=>`${Math.round(100*e)}%`,value:t?.opacity??1,onChange:e=>{o({opacity:e})},numberFormatOptions:{style:"percent"},isDisabled:!n})},...i})),[n,e,t,i,o]);return(0,oe.jsx)(Pu,{items:a,className:"PSPDFKit-Stamp-Annotation-Toolbar"})}const{createIconSliderToolbarItem:tp}=Dl.XD;function np(){const{formatMessage:e}=(0,v.useI18n)(),t=(0,s.wA)(),n=(0,s.d4)((e=>e.annotationPresets.get("ink")?.inkEraserWidth??Xe.JY.DEFAULT_INK_ERASER_CURSOR_WIDTH)),r=u.useCallback((e=>{e!==n&&t((0,lt.M)({inkEraserWidth:e}))}),[t,n]),o=(0,u.useMemo)((()=>({"line-width":{toolbarItem:tp("line-width",{icon:Al.QBs,"aria-label":e(xe.A.thickness),value:n,minValue:1,maxValue:40,onChange:r,includeNumberInput:!0,step:1,className:(0,fu.xW)("PSPDFKit-Ink-Eraser-Toolbar-Line-Width","PSPDFKit-Toolbox","PSPDFKit-Toolbox-LineWidth"),formatValue:t=>e(xe.A.numberInPt,{arg0:t.toFixed(0)})})}})),[r,e,n]);return(0,oe.jsx)(Pu,{items:o,className:(0,fu.xW)("PSPDFKit-Annotation-Toolbar","PSPDFKit-Ink-Eraser-Toolbar")})}const{createActionButtonToolbarItem:rp,createActionIconButtonToolbarItem:op}=Dl.XD;function ip(){const{formatMessage:e}=(0,v.useI18n)(),t=(0,s.wA)(),n=u.useCallback((e=>{t((0,nc.Hp)(e))}),[t]),r=u.useCallback((()=>{t((0,Dt.lH)())}),[t]),o=(0,s.d4)((e=>null!==e.cropArea&&"number"==typeof e.cropPageIndex)),i=u.useCallback((e=>{"Enter"===e.key?o&&n(!1):"Escape"===e.key&&r(),t((0,Dt.lH)())}),[t,o,n,r]),a=(0,v.useDevice)(),l=(0,u.useMemo)((()=>({"crop-current":{toolbarItem:rp("crop-current",{iconStart:Al.wNc,label:e(xe.A.cropCurrentPage),variant:"toolbar",size:"lg",onPress:o?()=>n(!1):void 0,isDisabled:!o,onKeyDown:i})},"crop-all":{toolbarItem:rp("crop-all",{iconStart:Al.kYz,label:e(xe.A.cropAllPages),variant:"toolbar",size:"lg",onPress:o?()=>n(!0):void 0,isDisabled:!o,onKeyDown:i})},close:{toolbarItem:"desktop"===a?rp("close",{label:e(xe.A.cancel),variant:"secondary",size:"sm",onPress:r,onKeyDown:r,className:Ac().cancelButton}):op("close",{icon:Al.uv5,"aria-label":e(xe.A.cancel),variant:"toolbar",size:"lg",onPress:r,onKeyDown:r})}})),[a,e,o,n,r,i]);return(0,oe.jsx)(Pu,{items:l,className:(0,fu.xW)("PSPDFKit-Annotation-Toolbar","PSPDFKit-Document-Crop-Toolbar")})}var ap=n(58341);const sp={on(e,t){document.addEventListener(e,(e=>t(e.detail)))},dispatch(e,t){document.dispatchEvent(new CustomEvent(e,{detail:t}))},remove(e,t){document.removeEventListener(e,t)}},lp=e=>{let{isSessionDirty:t,dispatch:n,formatMessage:r}=e;return(0,oe.jsxs)(v.Box,{display:"flex",paddingX:"md",gap:"md",children:[(0,oe.jsx)(v.ActionButton,{label:r(xe.A.cancel),variant:"secondary",size:"sm",onPress:()=>n(ap.hi)},"cancel"),(0,oe.jsx)(v.ActionButton,{label:r(xe.A.saveAndClose),variant:"primary",size:"sm",isDisabled:!t,onPress:()=>n(ap.aU)},"saveAndClose")]})},{createActionIconButtonToolbarItem:cp,createActionGroupToolbarItem:up,createBlockToolbarItem:dp,createComboBoxToolbarItem:pp,createIconColorInputToolbarItem:hp,createIconSelectToolbarItem:fp,createToggleIconButtonToolbarItem:mp}=Dl.XD;function gp(){const e=(0,s.d4)((e=>e.frameWindow)),t=(0,s.d4)((e=>e.contentEditorSession.mode===Qa.g3.Create)),n=(0,s.wA)(),r=(0,s.d4)((e=>e.contentEditorSession.availableFaces)),o=(0,s.d4)((e=>{const{textBlockInteractionState:t}=e.contentEditorSession;return!t||t.state!==Qa.mS.Active&&t.state!==Qa.mS.Selected?null:(0,Qa.kE)(t.pageIndex,t.textBlockId)(e)}),s.bN),i=(0,s.d4)((e=>e.contentEditorSession.textBlockInteractionState.state)),a=(0,s.d4)((e=>e.contentEditorSession.dirty)),l=null===o||i!==Qa.mS.Active;u.useEffect((()=>{r.faceList||r.loading||n(ap.iK)}),[r.faceList,r.loading,n]);const c=(0,u.useMemo)((()=>(r.faceList?.toArray()||[new Qa.h2({family:""})]).map((e=>({label:e.family,id:e.family})))),[r.faceList]),d=u.useCallback((e=>{let{modification:t,preventFocusShift:r=!1}=e;const[[o,i]]=Object.entries(t);switch(o){case"fontSize":n((0,ap.oi)({size:i})),r||sp.dispatch("content-editing:re-focus",null);break;case"font":n((0,ap.oi)({family:i})),r||sp.dispatch("content-editing:re-focus",null);break;case"bold":n((0,ap.oi)({bold:i})),r||sp.dispatch("content-editing:re-focus",null);break;case"italic":n((0,ap.oi)({italic:i})),r||sp.dispatch("content-editing:re-focus",null)}}),[n]),p=u.useCallback((()=>n((0,ap.CY)(t?Qa.g3.Edit:Qa.g3.Create))),[n,t]),h=u.useCallback((()=>{n((0,ap.CY)(Qa.g3.Delete))}),[n]),f=o?(0,ms.bG)(o):null,m=f?.family??void 0,g=f?.size??void 0,y=f?.bold,b=f?.italic;let w=null;if(null!=f?.color){const e=f.color;w=Xe.JY.COLOR_PRESETS.find((t=>t.color?.equals(e)))??{color:e,localization:xe.A.color}}const x=Boolean(o?.detectedStyle.selectionStyleInfo&&null==w),{formatMessage:S}=(0,v.useI18n)(),{fontColorDropdownConfig:_}=cu();(0,fu.V1)(e);const C=(0,u.useMemo)((()=>fp("font-family",{icon:Al.TL,className:"PSPDFKit-Content-Editing-Toolbar-Font-Family PSPDFKit-Content-Editing-Toolbar-Font-Family-Menu",items:c,"aria-label":S(xe.A.font),optionStyle:e=>({fontFamily:e.id}),selectedKey:m,onSelectionChange:e=>{d({modification:{font:e}})},isDisabled:l})),[S,m,d,c,l]),E=ms.ex.find((e=>e===g))?.toString()||null,[k,z]=u.useState(!1),A=g?.toString();u.useEffect((()=>(z(!0),()=>{z(!1)})),[A]);const D=(0,u.useMemo)((()=>pp("font-size",{items:ms.ex.map((e=>({label:e?.toString(10),id:e?.toString()}))),className:"PSPDFKit-Content-Editing-Toolbar-Font-Size PSPDFKit-Content-Editing-Toolbar-Font-Size-Menu",allowsCustomValue:!0,inputType:"number",selectedKey:E,inputValue:g?.toString(),onValueChange:e=>{if(!k)if("number"==typeof e.value){const t=parseInt(e.value,10);isNaN(t)||d({modification:{fontSize:t},preventFocusShift:!0})}else"string"==typeof e.key&&d({modification:{fontSize:parseInt(e.key,10)}})},onInputChange:e=>{d({modification:{fontSize:parseInt(e,10)}})},onSelectionChange:e=>{e&&E!==e&&d({modification:{fontSize:parseInt(e,10)}})},variant:"ghost",isDisabled:l,"aria-label":S(xe.A.fontSize)})),[g,S,k,d,l,E]),T=(0,u.useMemo)((()=>[{id:"bold",icon:yd.$o,label:S(xe.A.bold)},{id:"italic",icon:yd.yO,label:S(xe.A.italic)}]),[S]),I=(0,u.useMemo)((()=>[...y?["bold"]:[],...b?["italic"]:[]]),[y,b]),M=(0,v.useDevice)(),N=(0,u.useMemo)((()=>up("font-formatting",{items:T,tooltipProps:{isDisabled:!1},selectionMode:"multiple",selectedKeys:I,className:"PSPDFKit-Content-Editing-Toolbar-Inline-Style",onSelectionChange:e=>{d({modification:yp({selection:e,isBold:y,isItalic:b})})},isDisabled:l})),[I,T,d,y,b,l]),O=(0,u.useMemo)((()=>({"add-text-box":{toolbarItem:mp("add-text-box",{icon:Al.bvJ,"aria-label":S(xe.A.addTextBox),onChange:p,isSelected:t,tooltip:{crossOffset:4,offset:-4},className:"PSPDFKit-Content-Editing-Toolbar-Add-Text-Box PSPDFKit-Toolbox PSPDFKit-Toolbox-Add-Text"})},"text-color":{toolbarItem:hp("text-color",{className:(0,fu.xW)("PSPDFKit-Toolbox","PSPDFKit-Toolbox-TextColor","PSPDFKit-Content-Editing-Toolbar-Font-Color","PSPDFKit-Content-Editing-Toolbar-Font-Color-Menu"),"aria-label":S(xe.A.color),icon:Al.gvh,value:vp(w?.color??(x?null:Xe.JY.COLOR_PRESETS.find((e=>e.color===P.Q1.BLACK))??null)?.color)||null,allowAlpha:!1,pickerMode:"lazy",includePicker:_.showColorPicker,presets:_.presets,isDisabled:l,onChangeEnd:e=>{e&&n((0,ap.oi)({color:e?.toString("hex")})),sp.dispatch("content-editing:re-focus",null)}})},font:{toolbarItem:{name:"font",icon:Al.TL,"aria-label":S(xe.A.font),isDisabled:l,children:[C,D,N]}},delete:{toolbarItem:cp("delete",{className:"PSPDFKit-Content-Editing-Button-Delete","aria-label":S(xe.A.delete),icon:Al.ucK,onPress:h,isDisabled:!o})},"cancel-save":{toolbarItem:"desktop"===M?dp("cancel-save",lp({formatMessage:S,dispatch:n,isSessionDirty:a})):cp("cancel-save",{icon:Al.uv5,"aria-label":S(xe.A.cancel),variant:"toolbar",size:"lg",onPress:()=>{n(a?(0,ap.Lm)(!0):ap.hi)}})}})),[M,C,D,w,n,_.presets,_.showColorPicker,N,S,p,h,t,a,x,l,o]);return(0,oe.jsx)(Pu,{items:O,className:(0,fu.xW)("PSPDFKit-Annotation-Toolbar","PSPDFKit-Content-Editing-Toolbar")})}function vp(e){return e?Ju(`rgba(${e.r}, ${e.g}, ${e.b}, ${e.transparent?0:1})`):null}function yp(e){let{selection:t,isBold:n,isItalic:r}=e;return("all"===t?{bold:n,italic:r}:{bold:t.has("bold")===n,italic:t.has("italic")===r}).bold?{italic:!r}:{bold:!n}}const bp=[{name:"form-button",interactionMode:L.O.BUTTON_WIDGET,icon:Al.Kf,title:"Create Button Widget",className:"PSPDFKit-Form-Creator-Toolbar-ButtonWidget"},{name:"form-text",interactionMode:L.O.TEXT_WIDGET,icon:Al.fRg,title:"Create Text Widget",className:"PSPDFKit-Form-Creator-Toolbar-TextWidget"},{name:"form-radio",interactionMode:L.O.RADIO_BUTTON_WIDGET,icon:Al.J7y,title:"Create Radio Widget",className:"PSPDFKit-Form-Creator-Toolbar-RadioWidget"},{name:"form-checkbox",interactionMode:L.O.CHECKBOX_WIDGET,icon:Al.RMb,title:"Create Checkbox Widget",className:"PSPDFKit-Form-Creator-Toolbar-CheckboxWidget"},{name:"form-combobox",interactionMode:L.O.COMBO_BOX_WIDGET,icon:Al.P$r,title:"Create Combobox widget",className:"PSPDFKit-Form-Creator-Toolbar-ComboboxWidget"},{name:"form-listbox",interactionMode:L.O.LIST_BOX_WIDGET,icon:Al.Tzz,title:"Create List Box Widget",className:"PSPDFKit-Form-Creator-Toolbar-ListBoxWidget"},{name:"form-signature",interactionMode:L.O.SIGNATURE_WIDGET,icon:Al._xz,title:"Create Signature Widget",className:"PSPDFKit-Form-Creator-Toolbar-SignatureWidget"},{name:"form-date",interactionMode:L.O.DATE_WIDGET,icon:Al.Yw6,title:"Create Date Widget",className:"PSPDFKit-Form-Creator-Toolbar-DateWidget"}],{createBlockToolbarItem:wp,createToggleIconButtonToolbarItem:xp}=Dl.XD;function Sp(){const e=(0,s.d4)((e=>e.frameWindow)),t=(0,s.wA)();(0,fu.V1)(e);const n=(0,s.d4)((e=>e.interactionMode)),r=(0,u.useCallback)((function(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=bp.find((t=>t.name===e));return(0,fu.V1)(o),{toolbarItem:xp(e,{className:"PSPDFKit-Form-Creator-Toolbar-Widget","aria-label":o.title,id:o.interactionMode,icon:e=>o.icon({...e,width:24,height:24,size:24}),isSelected:n===o.interactionMode,variant:"toolbar",size:"lg",tooltip:{crossOffset:r?4:0},onChange:()=>{o.interactionMode===n?t((0,kn.SM)()):(t((0,Dt._e)(!1)),t((0,Dt.uT)(o.interactionMode)))}})}}),[t,n]),o=(0,u.useMemo)((()=>({"form-button":r("form-button",!0),"form-text":r("form-text"),"form-radio":r("form-radio"),"form-checkbox":r("form-checkbox"),"form-combobox":r("form-combobox"),"form-listbox":r("form-listbox"),"form-signature":r("form-signature"),"form-date":r("form-date"),"separator-end-enforce":{toolbarItem:wp("separator-end-enforce",(0,oe.jsx)(oe.Fragment,{}))}})),[r]);return(0,oe.jsx)(Pu,{items:o,className:(0,fu.xW)("PSPDFKit-Annotation-Toolbar","PSPDFKit-Form-Creator-Toolbar"),onEscape:()=>{t((0,Dt._e)(!1)),t((0,kn.Lg)())}})}var _p=n(59663);const Cp=e=>{let{canEditAnnotationCP:t,formatMessage:n,fontColorDropdownConfig:r,selectedAnnotation:o,updateAnnotation:i,isExpanded:a,setIsExpanded:s,device:l,className:c}=e;const u=(0,gu.FD)(gu.FK,{children:[(0,gu.Y)(v.IconColorInput,{className:(0,fu.xW)("PSPDFKit-Redaction-Annotation-Toolbar-Overlay-Color","PSPDFKit-Redaction-Annotation-Toolbar-Color","PSPDFKit-Toolbox","PSPDFKit-Toolbox-Overlay-Color",(0,hu.UV)({paddingX:"none"})),"aria-label":n(xe.A.color),allowAlpha:!0,includePicker:r.showColorPicker,pickerMode:"lazy",isDisabled:!t,value:o.color?.toHex(),presets:r.presets,icon:Al.uWd,onChangeEnd:e=>{i({color:e?Md.A.fromHex(e.toString("hexa")):void 0})}},"overlay-color"),(0,gu.Y)(v.TextInput,{className:(0,fu.xW)("PSPDFKit-Redaction-Annotation-Toolbar-Overlay-Text","PSPDFKit-Toolbox","PSPDFKit-Toolbox-Overlay-Text"),"aria-label":n(xe.A.overlayText),value:o.overlayText||"",placeholder:n(xe.A.insertOverlayText),isDisabled:!t,style:{width:"auto"},onChange:e=>{i({overlayText:e})}},"overlay-text"),(0,gu.Y)(v.Checkbox,{className:(0,fu.xW)("PSPDFKit-Redaction-Annotation-Toolbar-Overlay-Repeat","PSPDFKit-Toolbox","PSPDFKit-Toolbox-OverlayRepeat"),"aria-label":n(xe.A.repeatText),isDisabled:!t,isSelected:Boolean(o.repeatOverlayText),label:n(xe.A.repeatText),value:String(o.repeatOverlayText),onChange:e=>i({repeatOverlayText:e})},"overlay-repeat")]});return"desktop"===l?(0,gu.Y)(v.Box,{gap:"lg",justifyContent:"space-between",paddingX:"lg",display:"flex",flexDirection:"row",alignItems:"center",className:c,onKeyPress:e=>{a&&"Escape"===e.key&&s(!1)},children:u},"overlay"):a?(0,gu.FD)(gu.FK,{children:[(0,gu.Y)(v.ActionIconButton,{icon:Al.JJd,onPress:()=>{s(!1)},"aria-label":n(xe.A.close)},"overlay-button"),(0,gu.Y)(v.Separator,{variant:"primary",orientation:"vertical",style:{height:"auto",minHeight:48}},"separator-1"),(0,gu.Y)(v.Box,{display:"flex",flex:1,className:Ac().customExpandedSpacer,"data-spacer":"true"},"spacer-1"),(0,gu.Y)(v.Box,{gap:"lg",justifyContent:"space-between",paddingX:"lg",display:"flex",flexDirection:"row",alignItems:"center",className:c,onKeyPress:e=>{a&&"Escape"===e.key&&s(!1)},children:u},"overlay")]}):(0,gu.Y)(v.ActionIconButton,{icon:Al.uWd,size:"md",className:(0,fu.xW)(c,(0,hu.UV)({color:"icon.primary"})),variant:"toolbar","aria-label":n(xe.A.overlayText),onPress:()=>{!a&&s(!0)}},"overlay-button")},{createActionButtonToolbarItem:Ep,createBlockToolbarItem:kp,createIconColorInputToolbarItem:zp,createIconSliderToolbarItem:Pp}=Dl.XD;function Ap(){const{formatMessage:e}=(0,v.useI18n)(),{canEditAnnotationCP:t,selectedAnnotation:n,updateAnnotation:r,fontColorDropdownConfig:o,fillColorDropdownConfig:i,outlineColorDropdownConfig:a}=cu(),l=(0,s.d4)((e=>e.selectedAnnotationMode===V.Q.EDITING)),c=(0,s.d4)((e=>e.keepSelectedTool)),d=(0,s.wA)(),p=(0,u.useCallback)((e=>{t&&((0,fu.V1)(n),n.rects.size>0&&l?(d((0,lt.M)(e)),d((0,Dt.eW)()),d((0,we.od)())):r(e,"redaction"))}),[t,d,l,n,r]),h=(0,s.d4)((e=>e.frameWindow));(0,fu.V1)(h&&n);const f=(0,u.useCallback)((()=>(d((0,Dt.l8)()),new Promise(((e,t)=>(d((0,_p.g)((()=>{d((0,Dt.gp)()),e()}),(e=>{d((0,Dt.gp)()),t(e)}))),e))))),[d]),m=Tu(),g=(0,v.useDevice)(),[y,b]=u.useState(null),w=(0,u.useMemo)((()=>({overlay:{toolbarItem:kp("overlay",Cp({canEditAnnotationCP:t,className:(0,fu.xW)("PSPDFKit-Toolbox","PSPDFKit-Toolbox-Overlay"),fontColorDropdownConfig:o,formatMessage:e,device:g,selectedAnnotation:n,updateAnnotation:p,isExpanded:"overlay"===y,setIsExpanded:e=>{b(e?"overlay":null)}}))}})),[t,g,y,o,n,p]),x=(0,u.useMemo)((()=>"overlay"===y?w:{"fill-color":{toolbarItem:zp("fill-color",{className:(0,fu.xW)("PSPDFKit-Redaction-Annotation-Toolbar-Fill-Color","PSPDFKit-Toolbox","PSPDFKit-Toolbox-FillColor"),"aria-label":e(xe.A.fillColor),icon:Al.s8N,allowAlpha:!0,includePicker:i.showColorPicker,pickerMode:"lazy",isDisabled:!t,value:n.fillColor?.toHex()||null,presets:i?.presets,onChangeEnd:e=>p({fillColor:e?P.Q1.fromHex(e?.toString("hexa")):null})})},...w,"outline-color":{toolbarItem:zp("outline-color",{className:(0,fu.xW)("PSPDFKit-Redaction-Annotation-Toolbar-Outline-Color","PSPDFKit-Toolbox","PSPDFKit-Toolbox-Outline-Color"),"aria-label":e(xe.A.outlineColor),icon:Al.hRt,allowAlpha:!0,includePicker:a.showColorPicker,pickerMode:"lazy",isDisabled:!t,value:n.outlineColor?.toHex()||null,presets:a?.presets,onChangeEnd:e=>p({outlineColor:e?P.Q1.fromHex(e?.toString("hexa")):null})})},opacity:{toolbarItem:Pp("opacity",{className:"PSPDFKit-Toolbox PSPDFKit-Toolbox-Opacity",icon:Al.FNe,minValue:.1,maxValue:1,step:.01,formatValue:e=>`${Math.round(100*e)}%`,value:n.opacity??1,"aria-label":e(xe.A.opacity),isDisabled:!t,onChange:e=>p({opacity:e}),numberFormatOptions:{style:"percent"}})},...m,"apply-redactions":{toolbarItem:Ep("apply-redactions",{label:e(xe.A.applyRedactions),variant:"primary",size:"sm",isDisabled:!t,className:(0,fu.xW)("PSPDFKit-Redaction-Annotation-Toolbar-Button-Apply-Redactions",(0,hu.UV)({marginX:"md"})),onPress:()=>f()}),isHidden:null===n.pageIndex||c}}),[f,t,y,i,e,a,n,m,p,c]);return(0,oe.jsx)(Pu,{items:x,className:"PSPDFKit-Redaction-Annotation-Toolbar"})}var Dp,Tp,Ip,Mp,Np,Op,Rp,jp,Fp,Bp,Lp,Vp,Kp,Hp,$p,Up,Wp,qp,Gp,Zp,Yp,Xp;function Jp(){const{selectedAnnotation:e}=cu(),t=(0,s.d4)((e=>e.interactionMode));return e instanceof ce.Eo?Dp||(Dp=(0,oe.jsx)(Ou,{})):e instanceof ce.xY?Tp||(Tp=(0,oe.jsx)(ep,{})):e instanceof ce.dh?Ip||(Ip=(0,oe.jsx)(Ed,{})):e instanceof ce.UL?Mp||(Mp=(0,oe.jsx)(Td,{})):e instanceof ce.h5?Np||(Np=(0,oe.jsx)(Ap,{})):e instanceof ce.tr?Op||(Op=(0,oe.jsx)(Bd,{})):e instanceof ce.vU?Rp||(Rp=(0,oe.jsx)(Kd,{})):e instanceof ce.s9?jp||(jp=(0,oe.jsx)(md,{})):e instanceof ce.pP&&!e.isMeasurement()?Fp||(Fp=(0,oe.jsx)(Xd,{})):t===L.O.INK_ERASER?Bp||(Bp=(0,oe.jsx)(np,{})):t===L.O.DOCUMENT_CROP?Lp||(Lp=(0,oe.jsx)(ip,{})):t===L.O.CONTENT_EDITOR?Vp||(Vp=(0,oe.jsx)(gp,{})):(0,Oe.$_)(t)?Kp||(Kp=(0,oe.jsx)(Sp,{})):null}class Qp extends u.PureComponent{constructor(){super(...arguments),(0,y.A)(this,"state",{showConfirmDelete:!1,expandedGroup:null,transitionFinished:!1,prevActiveGroup:null}),(0,y.A)(this,"focusRef",u.createRef()),(0,y.A)(this,"deleteAnnotation",(()=>{const e=this.props.annotation,t=this.props.selectedAnnotations&&this.props.selectedAnnotations?.size>1;e&&!t?this.props.dispatch((0,lt.n9)((0,a.NZ)([e.id]))):t&&this.props.selectedAnnotations&&this.props.dispatch((0,lt.n9)(this.props.selectedAnnotations.map((e=>e.id))))})),(0,y.A)(this,"handleEntered",(()=>{this.setState({transitionFinished:!0})})),(0,y.A)(this,"handleGroupExpansion",(e=>{e?this.setState({prevActiveGroup:e,expandedGroup:e}):this.setState({expandedGroup:e,transitionFinished:!1})})),(0,y.A)(this,"_handleKeyPress",(e=>{e.keyCode===Bn.XS&&this.state.expandedGroup&&this.handleGroupExpansion()})),(0,y.A)(this,"updateAnnotation",((e,t,n)=>{if(!e||!this.props.canEditAnnotationCP)return;e=e.merge(t);const r={annotations:(0,a.B8)([e]),reason:ee.x.PROPERTY_CHANGE};this.props.eventEmitter.emit("annotations.willChange",r),n&&this.props.dispatch((0,lt.iE)(n));const{text:o,...i}=t;this.props.dispatch((0,lt.M)(i)),this.props.dispatch((0,lt.g_)(e))})),(0,y.A)(this,"updateSingleAnnotation",((e,t)=>{const n=this.props.annotation;this.updateAnnotation(n,e,t)})),(0,y.A)(this,"updateAnnotations",((e,t)=>{const{selectedAnnotations:n}=this.props;n&&n?.size>1&&(0,s.vA)((()=>{this.props.selectedAnnotations?.toList().forEach(((n,r)=>{Array.isArray(e)?this.updateAnnotation(n,e[r],t):this.updateAnnotation(n,e,t)}))}))})),(0,y.A)(this,"onAnnotationNotePress",(()=>{const e=this.props.annotation;if(this.isActiveAnnotationNote())this.closeAnnotationNote();else if(e){const t=(0,fr.IZ)(e);this.props.dispatch((0,we.mm)(t))}})),(0,y.A)(this,"deleteAnnotationNote",(()=>{const e=this.props.annotation;e&&(this.props.dispatch((0,lt.g_)(e.delete("note"))),this.closeAnnotationNote())})),(0,y.A)(this,"closeAnnotationNote",(()=>{this.props.dispatch((0,we.mm)(null))})),(0,y.A)(this,"_handleResize",(e=>{this.props.dispatch((0,Sc.oc)(e.height))}))}isActiveAnnotationNote(){const{activeAnnotationNote:e,annotation:t}=this.props;return Boolean(e&&t&&e.parentAnnotation?.id===t.id)}defaultToolbarItems(){const{annotation:e,annotationToolbarItems:t,hasDesktopLayout:n}=this.props;if((0,l.V1)(e),!Tc.get(th(e)))return(0,a.B8)();const r=Tc.get(th(e))?.get(n?"desktop":"mobile")?.map((e=>({type:e})));if((0,l.V1)(r,`No default toolbar items found for annotation type: ${th(e)}`),t){const o=t(e,{hasDesktopLayout:n,defaultAnnotationToolbarItems:r.toJS()});if(o)return o.forEach((t=>{Mc(t,th(e))})),(0,a.B8)(o)}return r}renderContent(){var e=this;const{annotation:t,position:n,frameWindow:r,intl:o,showAnnotationNotes:i,canEditAnnotationCP:a,canDeleteSelectedAnnotationCP:s,lastToolbarActionUsedKeyboard:c,interactionMode:u,annotationToolbarColorPresets:d,isCalibratingScale:p}=this.props;if(!t)return null;const h={deleteAnnotation:this.deleteAnnotation,updateAnnotation:this.props.selectedAnnotations&&this.props.selectedAnnotations?.size>1?this.updateAnnotations:this.updateSingleAnnotation,intl:o,position:n,onGroupTransitionEnded:this.handleEntered,onGroupExpansion:this.handleGroupExpansion,expandedGroup:this.state.expandedGroup,btnFocusRefIfFocusedGroup:function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(e,t){return t===e}(t,e.state.expandedGroup)||n&&null!==u&&e.props.hasDesktopLayout?e.focusRef:void 0},btnFocusRefIfFocusedItem:function(t,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(e,t,n){return n===e&&!t}(t,n,e.state.prevActiveGroup)||r&&null!==u&&!e.props.hasDesktopLayout?e.focusRef:void 0},frameWindow:r,canEditAnnotationCP:a,canDeleteSelectedAnnotationCP:s,annotation:t,lastToolbarActionUsedKeyboard:c,annotationToolbarColorPresets:d,annotationToolbarItems:this.defaultToolbarItems(),hasDesktopLayout:this.props.hasDesktopLayout,customFontsReadableNames:this.props.customFontsReadableNames,nodeRef:this.props.nodeRef,isTextComparison:this.props.isTextComparison},f={onAnnotationNotePress:this.onAnnotationNotePress,showAnnotationNotes:i&&!t.isCommentThreadRoot,hasAnnotationNote:Boolean(t.note),isAnnotationNoteActive:this.isActiveAnnotationNote()};return t instanceof Y.A?Hp||(Hp=(0,oe.jsx)(Jp,{})):t instanceof P.UL?$p||($p=(0,oe.jsx)(Jp,{})):t instanceof P.tr?Up||(Up=(0,oe.jsx)(Jp,{})):t instanceof P.Eo?Wp||(Wp=(0,oe.jsx)(Jp,{})):t instanceof Jc.A?t.isMeasurement()?p?null:(0,oe.jsx)(lu,{...h,...f,annotation:t,dispatch:this.props.dispatch,isEditing:this.props.selectedAnnotationMode===V.Q.EDITING,selectedAnnotations:this.props.selectedAnnotations}):qp||(qp=(0,oe.jsx)(Jp,{})):t instanceof P.dh?Gp||(Gp=(0,oe.jsx)(Jp,{})):t instanceof P.s9?Zp||(Zp=(0,oe.jsx)(Jp,{})):t instanceof P.vU?Yp||(Yp=(0,oe.jsx)(Jp,{})):t instanceof P.xY?Xp||(Xp=(0,oe.jsx)(Jp,{})):t instanceof P.sb?(0,oe.jsx)(Xc,{...h,annotation:t,selectedAnnotationPageSize:this.props.selectedAnnotationPageSize}):t instanceof P.dG?null:void(0,l.V1)(!1,"Annotation type not handled")}componentDidUpdate(e,t){const n=this.state.expandedGroup&&this.state.transitionFinished&&!t.transitionFinished,r=!this.state.expandedGroup&&t.expandedGroup&&this.state.prevActiveGroup;(n||r)&&this.focusRef.current&&this.focusRef.current.focus()}render(){return(0,oe.jsxs)("div",{className:p()("PSPDFKit-Annotation-Toolbar",Ac().root,{[Ac().stickToBottom]:"bottom"===this.props.position}),onKeyDown:this._handleKeyPress,ref:this.props.nodeRef,children:[(0,oe.jsx)(_c.A,{onResize:this._handleResize}),this.renderContent()]})}}const eh=(0,ve.j4)(Qp);function th(e){return"isMeasurement"in e&&e.isMeasurement?.()?"Measurement":"readableName"in e.constructor&&"string"==typeof e.constructor.readableName&&Tc.has(e.constructor.readableName)?e.constructor.readableName:e instanceof P.tr?P.tr.readableName:e instanceof P.sb?P.sb.readableName:""}var nh=n(3624),rh=n.n(nh);const oh=(0,s.Ng)((e=>({connectionFailureReason:e.connectionFailureReason})),(()=>({})))((e=>(0,oe.jsx)("div",{className:`PSPDFKit-Error ${rh().root}`,children:(0,oe.jsxs)("div",{className:`PSPDFKit-Error-Box ${rh().box}`,children:[(0,oe.jsx)("div",{className:rh().error,children:(0,oe.jsx)(Te.A,{src:n(11899),className:rh().icon})}),(0,oe.jsx)("div",{className:`PSPDFKit-Error-Message ${rh().errorMessage}`,children:(0,oe.jsx)("p",{children:null!=e.connectionFailureReason?e.connectionFailureReason:(0,oe.jsxs)(oe.Fragment,{children:["An error occurred while loading the document. Try"," ",(0,oe.jsx)("a",{href:"#",onClick:()=>window.location.reload(),children:"reloading the page"}),"."]})})})]})})));var ih=n(13178),ah=n.n(ih);function sh(){const e=(0,s.d4)((e=>e.ui[xl.Rq.PasswordDialog])),t=(0,s.d4)((e=>e.resolvePassword)),n=(0,s.d4)((e=>e.isUnlockedViaModal)),r=(0,s.d4)((e=>e.instance)),{formatMessage:o}=(0,ve.tz)(),i=(0,v.useIsFirstRender)(),[a,l]=(0,u.useState)(""),[c,d]=(0,u.useState)(!1),[p,h]=(0,u.useState)(!1);(0,u.useEffect)((()=>{i||!t||n||(h(!1),d(!0))}),[t,n]);const f=(0,u.useCallback)((()=>{h(!0),t?.(a)}),[t,a]),m=(0,u.useMemo)((()=>({autoFocus:!0,placeholder:o(lh.password),"aria-label":o(lh.password),onInput:e=>{l(e.target.value)},validationState:c?"error":"valid",errorMessage:c?o(lh.incorrectPassword):void 0,type:"password",onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),f())}})),[o,l,f,c]),g=(0,u.useMemo)((()=>({className:"PSPDFKit-Password-Dialog",showCloseButton:!1,title:o(lh.passwordRequired),message:o(lh.unlockDocumentDescription),icon:Al.fYD,iconColor:hu.G6.color.support.info.medium,primaryActionLabel:o(lh.unlock),onPrimaryAction:f,textInputProps:m,isPrimaryActionDisabled:p})),[f,o,m,p]);return(0,Sl.Q)(xl.Rq.PasswordDialog,e,g,r)}const lh=(0,ve.YK)({password:{id:"password",defaultMessage:"Password",description:"Text on a label"},passwordRequired:{id:"passwordRequired",defaultMessage:"Password Required",description:"Title of the modal to indicate a password is required"},unlockDocumentDescription:{id:"unlockDocumentDescription",defaultMessage:"You have to unlock this document to view it. Please enter the password in the field below.",description:"Label of the password prompt"},incorrectPassword:{id:"incorrectPassword",defaultMessage:"The password you entered isn't correct. Please try again.",description:"Error message when an incorrect password was entered"},unlock:{id:"unlock",defaultMessage:"Unlock",description:"Button to unlock a password protected PDF"}});var ch,uh;class dh extends u.Component{render(){const{children:e,intl:t}=this.props,{formatMessage:n}=t,{name:r,progress:i,reason:a}=this.props.connectionState;switch(r){case $i.D.CONNECTING:{const e=a?ph[a]??a:null,t=e?n(e):"";return(0,oe.jsx)("div",{className:ah().loader,children:(0,oe.jsx)(o.ke,{message:t,progress:i??0})})}case $i.D.CONNECTION_FAILED:return ch||(ch=(0,oe.jsx)(oh,{}));case $i.D.PASSWORD_REQUIRED:return uh||(uh=(0,oe.jsx)(sh,{}));default:return void 0===e?null:e}}}const ph=(0,ve.YK)({loading:{id:"loading",defaultMessage:"Loading...",description:"Shown while the document is being fetched"}}),hh=(0,ve.j4)(dh);const fh=(0,vn.F)((function(e,t){let{page:n}=t;const r=!!e.reuseState;return{backend:e.backend,hoverAnnotationIds:e.hoverAnnotationIds,interactionMode:e.interactionMode,selectedAnnotationIds:e.selectedAnnotationIds,activeAnnotationNote:e.activeAnnotationNote,selectedTextOnEdit:e.selectedTextOnEdit,showAnnotations:e.showAnnotations,window:e.frameWindow,zoomLevel:e.viewportState.zoomLevel,rotation:e.viewportState.pagesRotation,onFocusAnnotation:gh(e.eventEmitter),onBlurAnnotation:vh(e.eventEmitter),formDesignMode:e.formDesignMode,isReloadingDocument:r,attachments:e.attachments,selectedAnnotationMode:e.selectedAnnotationMode,showComments:(0,Ha.ai)(e),showAnnotationNotes:e.showAnnotationNotes,eventEmitter:e.eventEmitter,isAPStreamRendered:e.isAPStreamRendered,pageInvalidAPStreams:e.invalidAPStreams.get(n.pageIndex),keepSelectedTool:e.keepSelectedTool,scrollElement:e.scrollElement,focusedAnnotationIds:e.focusedAnnotationIds,inkEraserMode:e.inkEraserMode,enableRichText:e.enableRichText,multiAnnotationsUsingShortcut:e.multiAnnotationsUsingShortcut,isMultiSelectionEnabled:e.isMultiSelectionEnabled,comments:e.comments,isAutoSaveDisabled:e.autoSaveMode===A.O.DISABLED,rootElement:e.rootElement,containerRect:e.containerRect,forceRenderWidgetsInAnnotationsOrder:e.viewportState.forceRenderWidgetsInAnnotationsOrder,disablePointSnapping:e.viewportState.disablePointSnapping}}))((function(e){const{isReloadingDocument:t,showAnnotations:n,zoomLevel:r,rotation:o,attachments:i,backend:c,dispatch:d,hoverAnnotationIds:p,page:h,getScrollElement:f,onFocusAnnotation:m,onBlurAnnotation:g,formDesignMode:v,selectedTextOnEdit:y,selectedAnnotationIds:b,activeAnnotationNote:w,interactionMode:x,window:S,selectedAnnotationMode:_,children:C,showComments:E,showAnnotationNotes:k,eventEmitter:z,isAPStreamRendered:A,pageInvalidAPStreams:D=(0,a.NZ)(),keepSelectedTool:T,focusedAnnotationIds:I,inkEraserMode:M,enableRichText:N,multiAnnotationsUsingShortcut:O,setGlobalCursor:R,isMultiSelectionEnabled:j,comments:F,isAutoSaveDisabled:H,getRelativePosition:$,rootElement:U,containerRect:W,disablePointSnapping:q,forceRenderWidgetsInAnnotationsOrder:G}=e,Z=(0,s.d4)((e=>e.annotations)),{formFields:X,features:J,backendPermissions:Q,isEditableAnnotation:ee,editableAnnotationTypes:te,documentPermissions:ne,readOnlyEnabled:re,isTextComparison:ie,shadowRoot:ae}=(0,s.d4)((e=>({formFields:e.formFields,features:e.features,backendPermissions:e.backendPermissions,isEditableAnnotation:e.isEditableAnnotation,editableAnnotationTypes:e.editableAnnotationTypes,documentPermissions:e.documentPermissions,readOnlyEnabled:e.readOnlyEnabled,isTextComparison:e.isTextComparison,shadowRoot:e.shadowRoot})),s.bN),le=(0,u.useCallback)((e=>(0,cr.q2)(e,{backend:c})),[c]),ce=(0,u.useCallback)((e=>(0,cr.db)(e,{backend:c})),[c]);(0,l.V1)(D);const ue=(0,u.useMemo)((()=>{const e=(0,B.T1)(Z,h);return G?e.sort(Ni):e.sort(Mi)}),[Z,h,G]),de=(0,u.useCallback)((e=>(0,gn.Qe)(e,{backend:c,formFields:X,features:J,backendPermissions:Q,isEditableAnnotation:ee,editableAnnotationTypes:te,documentPermissions:ne,readOnlyEnabled:re,annotations:Z})),[c,X,J,Q,ee,te,ne,re,Z]),{pageSize:pe,pageIndex:he}=h,fe=u.useCallback((e=>e instanceof P.dG?!!F.some((t=>t.rootId===e.id))&&E:!(e instanceof P.tr&&e.isCommentThreadRoot)||E),[E,F]),[me,ge]=u.useState(null),[ve,ye]=u.useState(void 0),[be,we]=u.useState(!1),[xe,Se]=u.useState(Array()),_e=u.useCallback((function(e){"number"==typeof e.clientX&&"number"==typeof e.clientY&&ge(new P.bR({x:e.clientX,y:e.clientY}))}),[]),Ce=b.size>0,Ee=(0,u.useMemo)((()=>ue.filter((e=>e instanceof P.tr&&(e.isCommentThreadRoot||!de(e))))),[de,ue]),ke=u.useMemo((()=>ue.filter((e=>e instanceof P.UL))),[ue]),ze=u.useMemo((()=>ue.filter((e=>e instanceof P.Eo))),[ue]),Pe=(0,br.Kw)((e=>e instanceof P.Eo&&(0,B.gf)(e)&&!de(e)&&le(e)&&ce(e))),Ae=u.useMemo((()=>ze.filter(Pe)),[ze,Pe]),De=(0,u.useCallback)((e=>!(x===L.O.INK_ERASER&&Pe(e))),[x,Pe]),Te=(0,u.useCallback)((e=>{const t=b.has(e.id);return e instanceof Y.A?t&&x!==L.O.REDACT_TEXT_HIGHLIGHTER:t}),[x,b]),Ie=(0,u.useCallback)((e=>{Se(e?[...xe,e]:[])}),[xe,Se]),Me=(0,u.useCallback)((e=>e instanceof P.sb&&Te(e)&&v),[v,Te]),{selectedAnnotations:Ne,editingAnnotation:Oe}=(0,u.useMemo)((()=>{let e=(0,a.B8)(),t=null;switch(_){case V.Q.SELECTED:e=ue.filter((e=>b.has(e.id)));break;case V.Q.EDITING:t=b.map((e=>{const t=Z.get(e);return(0,l.V1)(t),t})).first(),(t instanceof P.s9||t instanceof P.dG)&&t.pageIndex===h.pageIndex&&(e=(0,a.B8)([t]))}return{selectedAnnotations:e,editingAnnotation:t}}),[ue,b,_,Z,h.pageIndex]),je=Oe instanceof P.Eo?Oe:null,Fe=Oe instanceof P.pP?Oe:null,Be=Oe instanceof P.dh&&null===Oe.pageIndex?Oe:null,Le=Oe instanceof P.dh&&Oe.pageIndex===he?Oe:null,Ve=Oe instanceof P.s9&&null===Oe.pageIndex?Oe:null,Ke=Oe instanceof P.dG&&null===Oe.pageIndex?Oe:null,He=Oe instanceof Y.A&&null===Oe.pageIndex?Oe:null,$e=Oe instanceof P.UL&&null===Oe.pageIndex?Oe:null,[Ue,We]=u.useState(!1),qe=u.useRef(!1),Ge=(0,u.useCallback)((e=>(Ue&&(0,B.nH)(e)||"number"==typeof e.buttonIconUpdatedAt)&&!D?.has(e.id)&&(0,B.F)(e.boundingBox)&&A(e)),[Ue,A,D]),Ze=u.useRef(r),Ye=u.useRef(he),Xe=(0,br.aq)();u.useEffect((()=>{if(t)return void(qe.current=!1);(r>Ze.current||Ye.current!==he)&&(qe.current=!1,Ye.current=he),Ze.current=r;const e=ue.filter((e=>!D?.has(e.id)&&(0,B.nH)(e)&&(0,B.F)(e.boundingBox)&&A(e)));e.size>0&&!qe.current&&(qe.current=!0,c.renderPageAnnotations(he,e,r*(0,Nr.I)()).then((()=>{Xe()&&We(!0)})))}),[he,r,A,c,D,ue,We,Ue,t,Xe]),u.useEffect((()=>{Ue&&c.clearPageAPStreams(he,D)}),[Ue,c,he,D]),u.useEffect((()=>{if(Ue)return()=>{c.clearAllPageAPStreams(he)}}),[c,he,Ue]);const Je=(0,br.ZC)({zoomLevel:r}),Qe=!!Je?.zoomLevel&&Je.zoomLevel<r;u.useEffect((()=>{Qe&&c.clearAllPageAPStreams(he)}));const et=M===$o.y.POINT?Ur:Gr,tt=Ne.filter((e=>fe(e)&&(0,B.gf)(e)&&(0,B.bu)(e)&&(!de(e)||e instanceof P.s9)&&(!(e instanceof P.dG)||null==Oe))),nt=tt.size>1,{filteredAnnotations:rt,signatureAnnotations:ot}=(0,u.useMemo)((()=>{const e=ue.filter((e=>fe(e)&&(0,B.gf)(e)&&De(e)&&(!Te(e)||!(0,B.bu)(e)||de(e)||e instanceof P.dG&&Oe&&Oe.equals(e))&&!Me(e))),t=e.filter((e=>(0,B.oZ)(e)));return{filteredAnnotations:e.filter((e=>!(0,B.oZ)(e))),signatureAnnotations:t}}),[De,ue,Oe,fe,de,Te,Me]);return(0,oe.jsxs)(se.Provider,{children:[(0,oe.jsxs)(Mr,{getRelativePosition:$,dispatch:d,selectableTextMarkupAnnotations:Ee,selectableLinkAnnotations:ke,hoverAnnotationIds:p,zoomLevel:r,window:S,pageIndex:he,selectedAnnotations:Ne,keepSelectedTool:T,interactionMode:x,setMultiAnnsInitialEvent:ye,isMultiSelectionEnabled:j,isHitCaptureDeferred:be,hitCaptureDeferredRect:xe,currentPageAnnotations:ue,isMultiAnnotationsSelected:nt,isTextComparison:ie,children:[C,n?(0,oe.jsxs)("div",{children:[rt.map((e=>e instanceof P.sb?null:(0,oe.jsx)(xr,{annotation:(0,Re.rK)(e),globalAnnotation:e,attachments:i,backend:c,dispatch:d,isAnnotationReadOnly:de,isDisabled:Ce&&!Te(e),isHover:p.has(e.id),isSelected:Te(e),activeAnnotationNote:w,showAnnotationNotes:k,onBlur:g,onFocus:m,pageSize:pe,zoomLevel:r,rotation:o,pageRotation:h.rotation,shouldRenderAPStream:Ge(e),isFocused:I.has(e.id),isMultiAnnotationsSelected:nt,isComboBoxOpen:we,handleComboBoxRect:Ie,isAutoSaveDisabled:H},e.id))),rt.sort(((e,t)=>{if(!h.tabOrder||"string"!=typeof e.id||"string"!=typeof t.id)return 0;const n=h.tabOrder.indexOf(e.id),r=h.tabOrder.indexOf(t.id);return-1===n&&-1===r?0:-1===n?1:-1===r?-1:n-r})).map((e=>e instanceof P.sb?(0,oe.jsx)(xr,{annotation:(0,Re.rK)(e),globalAnnotation:e,attachments:i,backend:c,dispatch:d,isAnnotationReadOnly:de,isDisabled:Ce&&!Te(e),isHover:p.has(e.id),isSelected:Te(e),activeAnnotationNote:w,showAnnotationNotes:k,onBlur:g,onFocus:m,pageSize:pe,zoomLevel:r,rotation:o,pageRotation:h.rotation,shouldRenderAPStream:Ge(e),isFocused:I.has(e.id),isMultiAnnotationsSelected:nt,isComboBoxOpen:we,handleComboBoxRect:Ie,isAutoSaveDisabled:H},e.id):(0,oe.jsx)(Ti,{annotation:e,isDisabled:Ce&&!Te(e),zoomLevel:r,onBlur:g,onFocus:m,isFocused:I.has(e.id),isSelected:Te(e)},e.id))),ot.map((e=>(0,oe.jsx)(xr,{annotation:(0,Re.rK)(e),globalAnnotation:e,attachments:i,backend:c,dispatch:d,isAnnotationReadOnly:de,isDisabled:Ce&&!Te(e),isHover:p.has(e.id),isSelected:Te(e),activeAnnotationNote:w,showAnnotationNotes:k,onBlur:g,onFocus:m,pageSize:pe,zoomLevel:r,rotation:o,pageRotation:h.rotation,shouldRenderAPStream:Ge(e),isFocused:I.has(e.id),isMultiAnnotationsSelected:nt,isComboBoxOpen:we,handleComboBoxRect:Ie,isAutoSaveDisabled:H},e.id))),nt&&(0,oe.jsx)(u.Fragment,{children:(0,oe.jsx)(Ko,{dispatch:d,pageIndex:he,pageSize:pe,window:S,getScrollElement:f,selectedAnnotations:tt.map((e=>(0,Re.rK)(e))),selectedGlobalAnnotations:tt,children:tt.map((e=>(0,oe.jsx)(xr,{annotation:(0,Re.rK)(e),globalAnnotation:e,attachments:i,backend:c,dispatch:d,isAnnotationReadOnly:de,isDisabled:!1,isHover:p.has(e.id),isSelected:!0,activeAnnotationNote:w,showAnnotationNotes:k,onBlur:g,onFocus:m,pageSize:pe,zoomLevel:r,rotation:o,pageRotation:h.rotation,onClick:e instanceof P.dh?_e:void 0,shouldRenderAPStream:Ge(e),isFocused:!1,isComboBoxOpen:we,handleComboBoxRect:Ie,isAutoSaveDisabled:H},e.id)))})},"multi-annotations-selection"),!nt&&tt.map((e=>(0,oe.jsxs)(u.Fragment,{children:[(0,oe.jsx)(Fo,{pageIndex:he,pageSize:pe,annotation:(0,Re.rK)(e),globalAnnotation:e,window:S,getScrollElement:f,onFocus:m,onBlur:g,isResizable:(0,B.BU)(e),isModifiable:(0,B.o4)(e),isRotatable:(0,B.KQ)(e),setGlobalCursor:R,backend:c,disablePointSnapping:q,isAnnotationLocked:e.locked,children:(0,oe.jsx)(xr,{annotation:(0,Re.rK)(e),globalAnnotation:e,attachments:i,backend:c,dispatch:d,isAnnotationReadOnly:de,isDisabled:!1,isHover:p.has(e.id),isSelected:!0,isFocused:!1,activeAnnotationNote:w,showAnnotationNotes:k,onBlur:g,onFocus:m,pageSize:pe,zoomLevel:r,rotation:o,pageRotation:h.rotation,onClick:e instanceof P.dh?_e:void 0,shouldRenderAPStream:Ge(e),isComboBoxOpen:we,handleComboBoxRect:Ie,isAutoSaveDisabled:H})}),k&&(0,B.Cx)(e)&&(0,oe.jsx)(gr,{dispatch:d,annotation:e,zoomLevel:r,isAnnotationSelected:!0,activeAnnotationNote:w,visible:!1})]},e.id)))]}):null]}),x===L.O.INK&&null!==je&&(0,B.gf)(je)?(0,oe.jsx)(Br,{dispatch:d,pageSize:pe,pageIndex:he,inkAnnotation:je.pageIndex===he?je:je.delete("lines").delete("boundingBox"),scrollElement:e.scrollElement}):null,x===L.O.INK_ERASER&&ze.size>0?(0,oe.jsx)(et,{inkAnnotations:Ae,canvasSize:pe,pageIndex:he}):null,Fe&&[...ji,...Fi].includes(x)&&(0,B.gf)(Fe)?(0,oe.jsx)(Ft,{dispatch:d,pageSize:pe,pageIndex:he,shapeAnnotation:Fe.pageIndex===he?Fe:(0,K.YC)(Fe),isAnnotationMeasurement:[...Fi].includes(x),backend:c,disablePointSnapping:q}):null,x!==L.O.TEXT&&x!==L.O.CALLOUT||!Be?null:(0,oe.jsx)(So,{annotation:Be,interactionMode:x,dispatch:d,pageSize:pe,pageIndex:he,autoSelect:y,eventEmitter:z,zoomLevel:r,getRelativePosition:$}),Le&&(0,B.gf)(Le)?(0,oe.jsx)(mo,{dispatch:d,annotation:Le,pageIndex:he,pageSize:pe,autoSelect:y,lastMousePoint:null===me?void 0:me,eventEmitter:z,keepSelectedTool:T,enableRichText:N,shadowRoot:ae,rootElement:U,containerRect:W}):null,(Ve||Ke)&&(0,oe.jsx)(Ar,{dispatch:d,annotation:Ve||Ke,pageSize:pe,pageIndex:he,zoomLevel:r,getRelativePosition:$}),He&&x===L.O.REDACT_SHAPE_RECTANGLE&&(0,B.gf)(He)?(0,oe.jsx)(Ho,{dispatch:d,pageSize:pe,pageIndex:he,redactionAnnotation:He.pageIndex===he?He:He.delete("boundingBox"),keepSelectedTool:T}):null,x===L.O.LINK&&$e?(0,oe.jsx)(Ei,{dispatch:d,linkAnnotation:$e,page:e.page,window:e.window,pageIndex:he,keepSelectedTool:T}):null,x===L.O.MULTI_ANNOTATIONS_SELECTION?(0,oe.jsx)(Ai,{window:e.window,pageIndex:he,initialDraggingEvent:ve,multiAnnotationsUsingShortcut:O}):null]})})),mh=fh,gh=(0,Wt.A)((e=>(t,n)=>{e.emit("annotations.focus",{annotation:t,nativeEvent:void 0!==n.nativeEvent?n.nativeEvent:n})})),vh=(0,Wt.A)((e=>(t,n)=>{e.emit("annotations.blur",{annotation:t,nativeEvent:void 0!==n.nativeEvent?n.nativeEvent:n})}));var yh=n(31428),bh=n.n(yh);const wh=["keyup","selectionchange","touchend","mouseup","pointerup"];class xh extends u.PureComponent{constructor(){super(...arguments),(0,y.A)(this,"_hostElement",u.createRef()),(0,y.A)(this,"_onAppearInvoked",!1),(0,y.A)(this,"_preventTextSelection",(e=>{const t=this._hostElement.current;if(!t)return;const n=t.ownerDocument.defaultView.getSelection()||{},{anchorNode:r,extentNode:o,focusNode:i,isCollapsed:a}=n;if(r&&t.contains(r)||o&&t.contains(o)||i&&t.contains(i)){if(a)return;e.stopPropagation(),e.stopImmediatePropagation()}}))}_appendNode(){const e=this._hostElement.current;if(!e)return;const{node:t,onAppear:n}=this.props.item;e.innerHTML="",e.appendChild(t),"function"!=typeof n||this._onAppearInvoked||(this._onAppearInvoked=!0,n())}componentDidMount(){const e=this._hostElement.current;if(e){const t=e.ownerDocument;wh.forEach((e=>{t.addEventListener(e,this._preventTextSelection,!0)}))}this._appendNode()}componentDidUpdate(e){this.props.item.node!==e.item.node&&this._appendNode()}componentWillUnmount(){const e=this._hostElement.current;if(!e)return;const t=e.ownerDocument;wh.forEach((e=>{t.removeEventListener(e,this._preventTextSelection,!0)})),this._onAppearInvoked=!1;const{onDisappear:n}=this.props.item;"function"==typeof n&&n()}render(){const{containerLeftOffset:e,containerTopOffset:t}=this.props.containerScrollOffset,n=new z.bR({x:e,y:t}).scale(1/this.props.zoomLevel).translate(this.props.item.position);return(0,oe.jsx)(be,{applyZoom:!this.props.item.disableAutoZoom,position:n,noRotate:this.props.item.noRotate,currentPagesRotation:this.props.rotation,zoomLevel:this.props.zoomLevel,children:(0,oe.jsx)("div",{className:bh().selectable,ref:this._hostElement})})}}var Sh=n(76426);class _h extends u.PureComponent{constructor(){super(...arguments),(0,y.A)(this,"_handlePointerUp",(e=>{const{transformClientToPage:t,onEmit:n,pageIndex:r}=this.props;n(e,t(new z.bR({x:e.clientX,y:e.clientY}),r))}))}render(){return(0,oe.jsx)(Ue.A,{onPointerUp:this._handlePointerUp,children:u.createElement(this.props.element,{className:this.props.className},this.props.children)})}}const Ch=Cr(_h);var Eh=n(79260),kh=n.n(Eh);function zh(e){return{type:H.MCf,state:e}}var Ph=n(32574);const Ah=e=>{let{rect:t,zoomLevel:n,className:r}=e;const o=(0,u.useMemo)((()=>({top:Math.floor(t.top*n),left:Math.floor(t.left*n),width:Math.ceil(t.width*n),height:Math.ceil(t.height*n)})),[t,n]);return(0,oe.jsx)("div",{style:o,className:r})};let Dh=function(e){return e.PULSE="pulse",e}({});const Th=e=>{let{rectsOnPage:t,zoomLevel:n,focused:r,highlightDuration:o=0,animation:i}=e;const a=function(e){const[t,n]=(0,u.useState)(!0),r=(0,u.useRef)(null);return(0,u.useEffect)((()=>(e>0&&(r.current=setTimeout((()=>{n(!1)}),1e3*e)),()=>{r.current&&clearTimeout(r.current)})),[e]),t}(o);!function(e,t){const n=(0,s.wA)();(0,u.useEffect)((()=>{let r=null;return!e&&t>0&&(r=setTimeout((()=>{n(zh(Ph.B))}),300)),()=>{r&&clearTimeout(r)}}),[e,t,n])}(a,o);const l=(0,u.useMemo)((()=>p()(kh().highlight,{[kh().focused]:r,[kh()["fade-out"]]:!a,[kh().pulse]:i===Dh.PULSE&&a,"PSPDFKit-Highlight":!0,"PSPDFKit-Highlight-focused":r})),[r,a,i]),c=(0,u.useMemo)((()=>t.map(((e,t)=>(0,oe.jsx)(Ah,{rect:e,zoomLevel:n,className:l},t)))),[t,n,l]);return(0,oe.jsx)("div",{"data-testid":"Highlight","aria-live":"polite",children:c})},Ih=u.memo(Th);function Mh(e){let{focused:t,searchResult:n,zoomLevel:r}=e;return(0,oe.jsxs)("div",{"data-testid":"SearchHighlight","aria-live":"polite",children:[t?(0,oe.jsxs)(o.s6,{announce:"polite",children:["Search Result: ",n.previewText]}):null,(0,oe.jsx)(Ih,{focused:t,rectsOnPage:n.rectsOnPage,zoomLevel:r})]})}var Nh=n(44660),Oh=n.n(Nh);const Rh=(0,s.Ng)((function(e,t){const{searchState:n}=e;return{searchResults:n.results.filter((e=>e.pageIndex===t.pageIndex)),focusedResult:n.results.get(n.focusedResultIndex)}}))((function(e){let{searchResults:t,focusedResult:n,zoomLevel:r}=e;return(0,oe.jsx)("div",{className:Oh().layer,"data-testid":"SearchHighlightLayer",children:t.map(((e,t)=>(0,oe.jsx)(Mh,{focused:e===n,searchResult:e,zoomLevel:r},t)))})})),jh=e=>{let{textLine:t,eventEmitter:n,enableTextSelection:r,scaling:o,vertical:i,isTextCopyingAllowed:a,isPanModeEnabled:c,contentBlockId:d,pageIndex:h,parentBoundingBoxes:f,fontFamily:m}=e;const g=u.useCallback(((e,r)=>{const o={textLine:t,point:r,nativeEvent:e.nativeEvent};n.emit("textLine.press",o)}),[n,t]),v=(0,s.wA)(),y=u.useCallback((()=>{v((0,we.od)())}),[]),w=p()({[ba().line]:!0,[ba().lineTextCursor]:!c,[ba().debug]:!1,[ba().enableTextSelection]:r,"PSPDFKit-Text":!0,[ba().vertical]:!!i,[ba().selectableText]:!0}),{left:x,top:S}=f.reduce(((e,t)=>({left:e.left-t.left,top:e.top-t.top})),{left:t.boundingBox.left,top:t.boundingBox.top}),_={left:x,top:S,transform:o&&o.scaleX>0&&o.scaleY>0?`scale(${o.scaleX}, ${o.scaleY})`:"",fontFamily:m},C=(0,u.useMemo)((()=>(0,fa.O6)(a,t)),[a,t]),E=(0,s.d4)((e=>{let{pages:n,annotations:r}=e;const o=n?.get(h);(0,l.V1)(o);const i=o.annotationIds.find((e=>{const n=r?.get(e);return n instanceof P.UL&&n.boundingBox.isRectInside(t.boundingBox)}));return i?r?.get(i):void 0}));return(0,oe.jsxs)(Ch,{pageIndex:h,className:p()({[ba().lineSelection]:!0}),onEmit:g,element:"span",children:[!b.gm&&!b.H8&&(0,oe.jsx)("span",{className:p()({[ba().linePadding]:!0,[ba().preventUserSelect]:b.nr}),style:{top:S,left:x-20,transform:"none"},onClick:b.nr?y:void 0}),(0,oe.jsx)("span",{className:w,style:_,"data-contentblock-id":d,"data-textline-id":t.id,"data-page-index":h,...E&&E.note?{title:E.note}:void 0,children:C},t.id||void 0)]})},Fh=u.memo(jh);var Bh=n(25508),Lh=n(92726),Vh=n.n(Lh);function Kh(e){const{contentElement:t,pageIndex:n,contentBlockId:r,alt:o,parentBoundingBoxes:i}=e,{boundingBox:a}=t,{left:s,top:l}=i.reduce(((e,t)=>({left:e.left-t.left,top:e.top-t.top})),{left:a.left,top:a.top}),c={top:l,left:s,width:a.width,height:a.height};return"image"===t.elementType?(0,oe.jsx)("img",{src:Ae.Uu,alt:o,title:o,style:c,"data-contentblock-id":r,"data-contentelement-id":t.id,"data-page-index":n,className:Vh().element,onDragStart:()=>!1}):(0,oe.jsx)("span",{style:c,"data-contentblock-id":r,"data-contentelement-id":t.id,"data-page-index":n,title:o})}var Hh=n(37271),$h=n.n(Hh);const Uh=function e(t){const{vertical:n,contentBlock:r,textLineScales:o,textElementFonts:i,areBlockTypeChildrenAllowed:a,parentBoundingBoxes:s,nestedContentBlockId:l}=t;let c="span";const u=r.contentTreeElementMetadata?.pdfua_type,d={role:void 0,style:void 0,title:void 0};let p=t.parentBoundingBoxes;if(d.style=b.gm?{}:{...l?null:{zIndex:-1}},r.boundingBox&&(0,fa.pH)(u)){const e=s.reduce(((e,t)=>({left:e.left-t.left,top:e.top-t.top})),{left:r.boundingBox.left,top:r.boundingBox.top}),t={left:e.left,top:e.top,width:r.boundingBox.width,height:r.boundingBox.height};d.style={...t,position:"absolute"},p=p.push(new P.rw(t))}return u&&u in Bh.O&&(c=a?Bh.O[u]:"span",0===r.contentElements.size&&0===r.textLines.size&&r.contentTreeElementMetadata?.alt&&(d.title=r.contentTreeElementMetadata?.alt),"span"===c&&Bh.L[u]&&(d.role=Bh.L[u]),d.style={...d.style,...(0,fa.cE)(c)}),(0,oe.jsxs)(c,{className:r.boundingBox&&"Figure"===u?$h().blockContainer:void 0,...d,children:[r.contentBlocks.map((s=>(0,oe.jsx)(e,{dispatch:t.dispatch,enableTextSelection:t.enableTextSelection,pageIndex:t.pageIndex,textLineScales:o,textElementFonts:i,contentBlock:s,nestedContentBlockId:(l??"")+r.id+".",vertical:n,eventEmitter:t.eventEmitter,isTextCopyingAllowed:t.isTextCopyingAllowed,isPanModeEnabled:t.isPanModeEnabled,areBlockTypeChildrenAllowed:a&&r.allowsBlockTypeChildren,parentBoundingBoxes:p},s.id))),o&&o.size>0&&r.textLines.map((e=>(0,oe.jsx)(Fh,{enableTextSelection:t.enableTextSelection,pageIndex:t.pageIndex,scaling:o&&o.get(e.id),textLine:e,fontFamily:i&&e.id?i[e.id]:void 0,contentBlockId:(l??"")+r.id,vertical:n,eventEmitter:t.eventEmitter,isTextCopyingAllowed:t.isTextCopyingAllowed,isPanModeEnabled:t.isPanModeEnabled,parentBoundingBoxes:p},e.id))),r.contentElements.map((e=>(0,oe.jsx)(Kh,{pageIndex:t.pageIndex,contentBlockId:(l??"")+r.id,contentElement:e,alt:r.contentTreeElementMetadata?.alt,parentBoundingBoxes:p},e.id)))]})};var Wh;class qh extends u.PureComponent{constructor(){super(...arguments),(0,y.A)(this,"layerRef",u.createRef()),(0,y.A)(this,"state",{needsTextSelectionOverlay:"gecko"===b.Hi,overlayHeight:0}),(0,y.A)(this,"handleMouseDown",(e=>{if(this.state.needsTextSelectionOverlay&&this.layerRef.current){const t=this.layerRef.current.getBoundingClientRect();if(e.clientY){const n=Math.max(0,e.clientY-t.top);this.setState({overlayHeight:n/this.props.zoomLevel})}}})),(0,y.A)(this,"handleMouseUp",(()=>{this.state.needsTextSelectionOverlay&&this.setState({overlayHeight:0})}))}render(){const{enableTextSelection:e,zoomLevel:t,rotation:n,eventEmitter:r,contentBlocks:o,pageIndex:i,textLineScales:s,textElementFonts:l,pageSize:c}=this.props;return(0,oe.jsxs)("div",{className:p()(ba().layer,{[ba().panModeEnabledInWindows]:this.props.isPanModeEnabled&&"windows"===b.qU},"PSPDFKit-Content-Layer"),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,style:{transform:`scale(${t})`,transformOrigin:"0 0"},ref:this.layerRef,role:"webkit"===b.Hi?"text":void 0,children:[Wh||(Wh=(0,oe.jsx)("div",{})),o?.map((t=>(0,oe.jsx)(Uh,{dispatch:this.props.dispatch,enableTextSelection:e,pageIndex:i,textLineScales:s,textElementFonts:l,contentBlock:t,vertical:90===n||270===n,eventEmitter:r,isTextCopyingAllowed:this.props.isTextCopyingAllowed,isPanModeEnabled:this.props.isPanModeEnabled,nestedContentBlockId:"",areBlockTypeChildrenAllowed:!0,parentBoundingBoxes:(0,a.B8)([new z.rw(c)])},t.id))),this.state.needsTextSelectionOverlay&&this.state.overlayHeight>0?(0,oe.jsx)("div",{className:ba().overlay,style:{top:this.state.overlayHeight}}):null]})}}var Gh=n(20774),Zh=n.n(Gh);const Yh={rect:null,startingPoint:null};const Xh=(0,s.Ng)((function(e,t){let{pageIndex:n}=t;return{clientToPageTransformation:(0,Z.Jn)(e,n),zoomLevel:e.viewportState.zoomLevel,interactionMode:e.interactionMode}}))((function(e){const{dispatch:t,pageSize:n,clientToPageTransformation:r,pageIndex:o,zoomLevel:i}=e,[a,s]=u.useState(Yh),l=u.useCallback((e=>e.apply(r)),[r]);u.useEffect((function(){return t((0,Dt.y7)()),function(){t((0,Dt.JN)())}}),[t]);const{rect:c}=a;return(0,oe.jsxs)("div",{className:Zh().canvas,children:[null!==c?(0,oe.jsxs)("svg",{className:Zh().svg,style:{left:c.left*i,top:c.top*i,width:c.width*i,height:c.height*i},focusable:!1,children:[(0,oe.jsx)("rect",{className:Zh().rect,height:c.height*i,width:c.width*i,x:0,y:0}),(0,oe.jsx)("rect",{className:Zh().rectStrokeBetween,height:c.height*i,width:c.width*i,x:0,y:0})]}):null,(0,oe.jsx)(At.A,{size:n,onDrawStart:function(e){s((t=>({...t,startingPoint:e})))},onDrawCoalesced:function(e){const{startingPoint:t}=a;(0,ye.V)(t);const n=e[e.length-1];s((e=>({...e,rect:Jh(t,n)})))},onDrawEnd:function(){const{rect:e}=a,n=5/i;null===e||e.width<n&&e.height<n||t((0,vc.kw)(o,e)),s(Yh)},transformPoint:l,interactionMode:e.interactionMode,scrollElement:e.scrollElement})]})}));function Jh(e,t){const n=Math.min(e.x,t.x),r=Math.min(e.y,t.y),o=Math.max(e.x,t.x),i=Math.max(e.y,t.y);return new P.rw({left:n,top:r,width:o-n,height:i-r})}var Qh=n(21856),ef=n.n(Qh);function tf(e){let{frameWindow:t,pageRef:r,interactionMode:o,onCreate:i,pageIndex:a,intl:c,getRelativePosition:d}=e;const[h,f]=(0,u.useState)([0,0]),[m,g]=(0,u.useState)((0,b.CN)()),v=(0,s.d4)((e=>e.shadowRoot));return(0,u.useEffect)((()=>{if((0,b.CN)())return;function e(e){const{x:t,y:n,xOffset:o,yOffset:i}=d(e.clientX,e.clientY),s=e.target.closest(".PSPDFKit-Page");if(!s)return void g(!1);const c=s.getAttribute("data-page-index");if((0,l.V1)("string"==typeof c,"Page number is not a string"),+c===a){g(!0),(0,l.V1)(r.current);const{left:e,top:a}=r.current.getBoundingClientRect();f([t-(e+o),n-(a+i)])}else g(!1)}const n=v||t;return n.addEventListener("mousemove",e),()=>{(0,b.CN)()||n.removeEventListener("mousemove",e)}}),[r,t,a,v,d]),m?(0,oe.jsx)("div",{className:p()({[ef().wrapper]:(0,b.CN)()},"PSPDFKit-Form-Creator-Guides"),onPointerUp:i,role:"application",children:!(0,b.CN)()&&(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsx)("div",{className:ef().hGuide,style:{transform:`translate(0, ${h[1]}px)`}}),(0,oe.jsx)("div",{className:ef().vGuide,style:{transform:`translate(${h[0]}px,0)`}}),(0,oe.jsxs)("div",{className:p()({[ef().buttonWidget]:o===L.O.BUTTON_WIDGET,[ef().textWidget]:o===L.O.TEXT_WIDGET,[ef().radioWidget]:o===L.O.RADIO_BUTTON_WIDGET,[ef().checkboxWidget]:o===L.O.CHECKBOX_WIDGET,[ef().signWidget]:o===L.O.SIGNATURE_WIDGET,[ef().listBoxWidget]:o===L.O.LIST_BOX_WIDGET,[ef().comboBoxWidget]:o===L.O.COMBO_BOX_WIDGET,[ef().dateWidget]:o===L.O.DATE_WIDGET}),style:{transform:`translate(${h[0]}px,${h[1]}px)`},children:[(0,oe.jsx)("div",{children:c.formatMessage(xe.A.sign)}),(0,oe.jsx)(Te.A,{src:n(62159)})]})]})}):null}var nf=n(47679);const rf=e=>{const{page:t,textBlockId:n,anchor:r,zoomLevel:o,textBlockState:i,isActive:a,contentEditor:s}=e,c=u.useRef(null),d=u.useRef({offset:{x:0,y:0},size:{x:-1,y:-1}}),p=u.useCallback((0,Os.A)(((e,t)=>((0,l.V1)(s),s.renderTextBlock(n,e,t))),20),[]),h=i.layout,f=i.globalEffects,m=i.modificationsCharacterStyle;u.useEffect((()=>{!async function(){const e=(0,nf.TJ)(h,m),n=(0,Nr.I)(),i=await p({pixelAnchor:{x:r.x*o*n,y:r.y*o*n},globalEffects:(0,nf.Qp)(f),pixelPageSize:{x:t.pageSize.width*o*n,y:t.pageSize.height*o*n},pixelViewport:{offset:{x:0,y:0},size:{x:t.pageSize.width*o*n,y:t.pageSize.height*o*n}},cursor:null,selection:a?{color:"#b5d7ff"}:null},e),s=i.displayRect,l=c.current;if(!l)return;const u=d.current;u.offset.x!=s.offset.x&&(l.style.left=s.offset.x/n+"px"),u.offset.y!=s.offset.y&&(l.style.top=s.offset.y/n+"px"),u.size.x!=s.size.x&&(l.style.width=s.size.x/(b.nr?1:n)+"px",l.width=s.size.x),u.size.y!=s.size.y&&(l.style.height=s.size.y/(b.nr?1:n)+"px",l.height=s.size.y);const g=l.getContext("2d");if(g){if(g.clearRect(0,0,s.size.x,s.size.y),s.size.x&&s.size.y){const e=new ImageData(new Uint8ClampedArray(i.imageBuffer),s.size.x,s.size.y);g.putImageData(e,0,0)}d.current=s}}()}));const g=b.nr?{transformOrigin:"top left",transform:`scale(${1/devicePixelRatio})`}:{};return(0,oe.jsx)("canvas",{ref:c,style:{position:"absolute",left:0,top:0,...g}})},of=u.memo(rf);var af=n(3602),sf=n.n(af),lf=n(40411);const cf=(0,ve.YK)({fontMismatch:{id:"ceFontMismatch",defaultMessage:"The {arg0} font isn’t available or can’t be used to edit content in this document. Added or changed content will revert to a default font.",description:"Message to show when there is a mismatch"},toggleFontMismatchTooltip:{id:"ceToggleFontMismatchTooltip",defaultMessage:"Toggle font mismatch tooltip",description:"Message to show for the button that displays the font mismatch tooltip"},deleteTextBlockConfirmMessage:{id:"deleteTextBlockConfirmMessage",defaultMessage:"Are you sure you want to delete this text box?",description:"Message for the delete text block confirm dialog"},deleteTextBlockConfirmAccessibilityLabel:{id:"deleteTextBlockConfirmAccessibilityLabel",defaultMessage:"Confirm text box deletion",description:"Accessibility label for the delete text block confirm dialog"},deleteTextBlockConfirmAccessibilityDescription:{id:"deleteTextBlockConfirmAccessibilityDescription",defaultMessage:"Dialog allowing the user to confirm or cancel deleting the text box",description:"Accessibility description for the delete annotation confirm dialog"},ceDownloadRequiredTitle:{id:"ContentEditing_DownloadRequiredTitle",defaultMessage:"Download Required",description:"Title for the Download Required dialog"},ceDownloadRequiredMessage:{id:"ContentEditing_DownloadRequiredMessage",defaultMessage:"To enable content editing directly in your browser, your document needs to be downloaded.",description:"Text content for the Download Required dialog"},ceDownloadRequiredButton:{id:"ContentEditing_DownloadRequiredButton",defaultMessage:"Download Document",description:"Button text for the Download Required dialog"},ceCannotSaveChangesTitle:{id:"ContentEditing_CannotSaveChangesTitle",defaultMessage:"Cannot Save Changes",description:"Title for the Cannot Save Changes dialog"},ceCannotSaveChangesMessage:{id:"ContentEditing_CannotSaveChangesMessage",defaultMessage:"This file was edited by another user at the same time and their changes have already been uploaded. Your edits cannot be saved. Review your edits and try again if necessary, or exit without saving any changes.",description:"Text content for the Cannot Save Changes dialog"},ceCannotSaveChangesButton:{id:"ContentEditing_CannotSaveChangesButton",defaultMessage:"Discard",description:"Button text for the Cannot Save Changes primary button"},ceCannotSaveChangesReviewButton:{id:"ContentEditing_CannotSaveChangesReviewButton",defaultMessage:"Review",description:"Button text for the Cannot Save Changes primary cancel button"},ceDownloadingDocument:{id:"ContentEditing_DownloadingDocument",defaultMessage:"Preparing document for editing...",description:"Message displayed when the document is being downloaded for Server-backed content editing."},ceSaving:{id:"ContentEditing_Saving",defaultMessage:"Saving the document...",description:"Message displayed when the content edited document is being saved."}});function uf(e){let{faceMismatch:t,relativePixelContentRect:r,textBlockState:i,zoomLevel:a,anchor:l,geometricStyleAttributes:c,positionAttributes:d}=e;const{formatMessage:p}=(0,ve.tz)(),h=(0,s.wA)(),{contentRect:f,globalEffects:m,layout:g}=i,v=u.useMemo((()=>{const e=z.XF.IDENTITY.rotateRad(m.rotation).scale(1,m.flipY?-1:1),t=r.offset.x+c.width,n=new P.bR({x:t+5*a,y:r.offset.y}).apply(e),o=n.x+l.x*a+(m.rotation<0?r.offset.x:0),i=n.y+l.y*a+(m.rotation<0?r.offset.y:0);return new P.bR({x:o,y:i})}),[c.width,a,m.flipY,m.rotation,l.x,l.y,r.offset.x,r.offset.y]),y={...d,position:"fixed",left:v.x,top:v.y,width:Math.max(12,Math.round(16*a)),height:Math.max(12,Math.round(16*a)),zIndex:3};return(0,oe.jsxs)("button",{style:y,className:sf().tooltipButton,onClick:e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),e.preventDefault()},onPointerDown:e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),e.preventDefault()},onPointerOver:()=>{const e=r.offset.x+f.size.x,n=r.offset.y,o=new P.bR({x:e,y:n}),i=z.XF.IDENTITY.rotateRad(m.rotation).scale(1,m.flipY?-1:1),s=o.apply(i);h((0,ap.Az)(new P.rw({left:l.x+(g.maxWidth??s.x),top:v.y/a,width:16,height:16}),t))},onPointerLeave:()=>{if(!b.LZ){const e=new AbortController;h((0,ap.xe)(e)),h((0,ap.le)(e.signal))}},children:[(0,oe.jsx)(Te.A,{src:n(23597),className:sf().tooltipSVG}),(0,oe.jsx)(o.s6,{children:p(cf.toggleFontMismatchTooltip)})]})}const df=e=>{const{page:{pageSize:t,pageIndex:n},textBlockId:r,anchor:o,zoomLevel:i,textBlockState:a,isActive:l,frameWindow:c}=e,d=(0,s.wA)(),h=a.contentRect,f=a.globalEffects,m=a.detectedStyle,g=a.cursor,v=u.useRef(!1),[y,w]=u.useState(!1),x=u.useRef(!1),S=(0,s.d4)((e=>(0,Qa.yQ)(n,r)(e))),_=(0,s.d4)((e=>(0,Qa.JW)(n,r)(e)));u.useEffect((()=>{if(!l){const e=new AbortController;d((0,ap.xe)(e)),d((0,ap.le)(e.signal))}}),[l,d]);const C=u.useRef(null),E=u.useMemo((()=>l?null!=m.selectionStyleInfo?.faceMismatch?m.selectionStyleInfo.faceMismatch.unavailableFaceName:m.modificationsCharacterStyleFaceMismatch?.unavailableFaceName??null:null),[m.selectionStyleInfo?.faceMismatch,m.modificationsCharacterStyleFaceMismatch?.unavailableFaceName,l]),k=u.useRef(null),z=u.useRef(null),A=e=>{(0,ye.V)(e.currentTarget);return new P.bR({x:(e.nativeEvent.offsetX??0)/i+h.offset.x,y:(e.nativeEvent.offsetY??0)/i+h.offset.y})},D=()=>(0,nf.TJ)(a.layout,a.modificationsCharacterStyle),T=function(e){let{textAreaRef:t,textBlockId:n,pageIndex:r,makeExternalState:o}=e;const i=u.useRef(!1),a=(0,s.wA)(),l=e=>{t.current&&e?.length&&a((0,ap.J4)(r,n,null,e,o()))},c=b.m0||b.HQ;return{onChange:e=>{i.current||l("insertLineBreak"===e.nativeEvent.inputType?"\n":e.nativeEvent.data)},onCompositionStart:()=>{c||(i.current=!0)},onCompositionEnd:e=>{c||(i.current=!1,l(e.data))}}}({textAreaRef:C,textBlockId:r,pageIndex:n,makeExternalState:D}),I=function(e){let{textBlockState:t,textBlockId:n,pageIndex:r,makeExternalState:o}=e;const i=(0,s.wA)();return{onCopy:e=>{e.preventDefault(),t.selection&&e.clipboardData.setData("text/plain",t.selection.text)},onCut:e=>{e.preventDefault(),t.selection&&(e.clipboardData.setData("text/plain",t.selection.text),i((0,ap.J4)(r,n,null,"",o())))},onPaste:e=>{e.preventDefault();const t=e.clipboardData.getData("text/plain");i((0,ap.J4)(r,n,null,t,o()))}}}({textBlockId:r,pageIndex:n,textBlockState:a,makeExternalState:D}),M=function(e){let{textBlockId:t,makeExternalState:n,textBlockState:r,pageSize:o,pageIndex:i,isSelected:a,isActive:l}=e;const c=(0,s.wA)();return e=>{const s=b.cX&&e.altKey||!b.cX&&e.ctrlKey;if(l)switch(e.key){case"ArrowRight":c((0,ap.uV)(i,t,s?"forwardWord":"forward",e.shiftKey,n()));break;case"ArrowLeft":c((0,ap.uV)(i,t,s?"backwardWord":"backward",e.shiftKey,n()));break;case"ArrowDown":c((0,ap.uV)(i,t,"nextLine",e.shiftKey,n()));break;case"ArrowUp":c((0,ap.uV)(i,t,"previousLine",e.shiftKey,n()));break;case"Home":c((0,ap.uV)(i,t,"first",e.shiftKey,n()));break;case"End":c((0,ap.uV)(i,t,"last",e.shiftKey,n()));break;case"Backspace":c((0,ap.lp)(i,t,"backward",n()));break;case"Delete":c((0,ap.lp)(i,t,"forward",n()));break;case"a":case"A":if(!(b.cX&&e.metaKey||!b.cX&&e.ctrlKey))break;c((0,ap.tC)(i,t,"everything",n()));break;case"z":case"Z":if(!(b.cX&&e.metaKey||!b.cX&&e.ctrlKey))break;e.shiftKey?c((0,ap.BB)(i,t,n())):c((0,ap.Xd)(i,t,n()));break;case"y":case"Y":if(!(b.cX&&e.metaKey||!b.cX&&e.ctrlKey))break;c((0,ap.BB)(i,t,n()));break;case"Escape":c(ap.zH),e.preventDefault()}else if(a){let n=1;switch(e.shiftKey&&(n=10),e.key){case"ArrowRight":{e.preventDefault();const t=new P.bR({x:r.anchor.x+n,y:r.anchor.y});if(t.x+r.contentRect.offset.x+r.contentRect.size.x>=o.width)break;c((0,ap.O6)({anchor:t,isKeyboardMove:!0}));break}case"ArrowLeft":{e.preventDefault();const t=new P.bR({x:r.anchor.x-n,y:r.anchor.y});if(t.x+r.contentRect.offset.x<=0)break;c((0,ap.O6)({anchor:t,isKeyboardMove:!0}));break}case"ArrowDown":{e.preventDefault();const t=new P.bR({x:r.anchor.x,y:r.anchor.y+n});if(t.y+r.contentRect.offset.y+r.contentRect.size.y>=o.height)break;c((0,ap.O6)({anchor:t,isKeyboardMove:!0}));break}case"ArrowUp":{e.preventDefault();const t=new P.bR({x:r.anchor.x,y:r.anchor.y-n});if(t.y+r.contentRect.offset.y<=0)break;c((0,ap.O6)({anchor:t,isKeyboardMove:!0}));break}case"Enter":c((0,ap.zv)(i,t)),e.preventDefault();break;case"Escape":c(ap.zH),e.preventDefault();break;case"Backspace":case"Delete":case"Del":c((0,ap.CY)(Qa.g3.Delete)),e.preventDefault(),e.stopPropagation();break;default:e.preventDefault()}}else switch(e.key){case"Enter":c((0,ap.ab)(i,t)),e.preventDefault();break;case"Escape":c(ap.zH),e.preventDefault()}}}({textBlockId:r,textBlockState:a,makeExternalState:D,pageSize:t,pageIndex:n,isActive:l,isSelected:S});function N(e){const t=A(e),o={x:t.x,y:t.y};C.current?.focus(),d((0,ap.bU)(n,r,o,e.shiftKey,D())),k.current={mode:"characters",begin:o}}function O(e){e.stopPropagation(),e.stopImmediatePropagation();const n={x:e.clientX,y:e.clientY};if(!z.current)return[null,null];const r=new P.rw({width:t.width,height:t.height});let o=new P.bR(n);const i=z.current;if(o=o.apply(i.transformation),!r.isPointInside(o))return[null,null];return[(n.x-i.start.x)*i.scale/i.zoomLevel,(n.y-i.start.y)*i.scale/i.zoomLevel]}u.useEffect((()=>{x.current&&S&&(x.current=!1)}),[S]);const R=u.useCallback((0,lf.A)((e=>{const[t,o]=O(e);if(null===t||null===o||!z.current)return;const i=new P.bR({x:z.current.anchor.x+t,y:z.current.anchor.y+o});z.current.changed=!0,d((0,ap.O6)({anchor:i,pageIndex:n,textBlockId:r}))}),20),[]),j=u.useCallback((()=>{c.document.removeEventListener("pointermove",R,{capture:!0}),c.document.removeEventListener("pointerup",j,{capture:!0}),d((0,vc.fX)(!1)),z.current?.changed&&(z.current.previousInteractionState===Qa.mS.Selected?d((0,ap.ab)(n,r)):d(ap.zH)),z.current=null}),[]);u.useEffect((()=>{l&&a.justCreated&&C.current?.focus()}),[l,a.justCreated]);const F=()=>l&&C.current?.focus();u.useEffect((()=>(sp.on("content-editing:re-focus",F),()=>sp.remove("content-editing:re-focus",F))));const B=a.layout;(0,ye.V)(null!==B.maxWidth);const L={offset:{x:(0,ms.mj)(B.alignment,ms.i0,B.maxWidth),y:h.offset.y},size:{x:B.maxWidth,y:h.size.y}},V=(0,ms.oF)(ts(L),i),K=(0,ms.Re)(V,o,i),H={position:"absolute",left:K.offset.x,top:K.offset.y},$={...H,width:K.size.x,height:K.size.y,transformOrigin:`${-V.offset.x}px ${-V.offset.y}px`,transform:`rotate(${f.rotation}rad) scaleY(${f.flipY?-1:1})`};a.justCreated&&($.width=Math.max(h.size.x,10)*i);const U=(0,s.d4)((e=>(0,Z.Jn)(e,n))),W=(e,t)=>o=>{o.stopPropagation(),o.isPrimary&&0===o.button&&(o.nativeEvent.stopImmediatePropagation(),o.preventDefault(),c.document.addEventListener("pointermove",q,{passive:!0,capture:!0}),c.document.addEventListener("pointerup",G,{passive:!0,capture:!0}),d((0,vc.fX)(!0)),S||l||d((0,ap.zv)(n,r)),(0,ye.V)(null!==B.maxWidth),z.current={fixpoint:e,scale:t,zoomLevel:i,start:{x:o.clientX,y:o.clientY},anchor:a.anchor,maxWidth:B.maxWidth,transformation:U,previousInteractionState:S?Qa.mS.Selected:Qa.mS.None})},q=u.useCallback((0,lf.A)((e=>{const[t]=O(e);null!==t&&z.current&&d((0,ap.fq)({fixpointValue:z.current.fixpoint,newWidth:z.current.maxWidth+t}))}),20),[]),G=u.useCallback((()=>{z.current=null,c.document.removeEventListener("pointermove",q,{capture:!0}),c.document.removeEventListener("pointerup",G,{capture:!0}),d((0,vc.fX)(!1))}),[]);return u.useEffect((()=>{S&&C.current?.focus()}),[S]),(0,oe.jsxs)(u.Fragment,{children:[E?(0,oe.jsx)(uf,{faceMismatch:E,relativePixelContentRect:V,textBlockState:a,zoomLevel:i,anchor:o,geometricStyleAttributes:$,positionAttributes:H}):null,(0,oe.jsxs)("div",{style:{...$,position:"fixed",zIndex:2},className:p()(sf().textBlock,{[sf().selectedTextBlock]:S,[sf().movingTextBlock]:_,[sf().activeTextBlock]:l,[sf().focusIn]:y}),onFocus:()=>{v.current=!0},onBlur:()=>{v.current=!1,w(!1)},onKeyUp:e=>{const t=e.target.ownerDocument.defaultView&&e.target instanceof e.target.ownerDocument.defaultView.HTMLTextAreaElement;v.current&&"Tab"===e.key&&t&&(w(!0),d((0,ap.uV)(n,r,"first",!1,D())))},children:[(0,oe.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:`${h.offset.x*i} ${V.offset.y} ${V.size.x} ${V.size.y}`,style:{...$,width:K.size.x,position:"absolute",left:0,top:0,transform:void 0,transformOrigin:void 0,display:l?"block":"none"},className:sf().blinkingCaret,children:(0,oe.jsx)("line",{stroke:"currentColor",x1:g.offset.x*i,y1:(g.offset.y+g.lineSpacing.bottom)*i,x2:g.offset.x*i,y2:(g.offset.y-g.lineSpacing.top)*i})}),(0,oe.jsx)("textarea",{ref:C,onPointerDown:e=>{e.stopPropagation(),l?N(e):(e.preventDefault(),e.isPrimary&&(c.document.addEventListener("pointermove",R,{passive:!0,capture:!0}),c.document.addEventListener("pointerup",j,{passive:!0,capture:!0}),d((0,vc.fX)(!0)),(0,ye.V)(null!==B.maxWidth),z.current={fixpoint:0,scale:1,zoomLevel:i,start:{x:e.clientX,y:e.clientY},anchor:a.anchor,maxWidth:B.maxWidth,transformation:U,previousInteractionState:S?Qa.mS.Selected:Qa.mS.None}))},onPointerMove:e=>{if(z.current)return;if(e.preventDefault(),!(l&&1&e.buttons))return;e.stopPropagation();const t=A(e),o={x:t.x,y:t.y},i=k.current;(0,ye.V)(i),d((0,ap.GM)(n,r,i.begin,o,i.mode,D()))},onPointerUp:e=>{z.current?.changed||(e.preventDefault(),e.stopPropagation(),S||l?l||(d((0,ap.zv)(n,r)),N(e)):(d((0,ap.ab)(n,r)),x.current=!0))},onMouseUp:e=>{if(e.detail>=2){e.preventDefault(),e.stopPropagation();const t=A(e),o={x:t.x,y:t.y};k.current={mode:"words",begin:o},d((0,ap.GM)(n,r,o,o,"words",D())),e.detail>=3&&d((0,ap.tC)(n,r,"everything",D()))}},onClick:e=>{e.preventDefault(),e.stopPropagation()},onKeyDown:M,...T,...I,onContextMenu:Yn.wo,style:{...$,resize:"none",opacity:0,touchAction:"none",left:0,top:0,transform:void 0,transformOrigin:void 0},defaultValue:a.layoutView.lines.map((e=>(0,ms.jg)(e.elements))).join(" ")}),S?(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsx)("div",{draggable:!0,onPointerDown:W(ms.q_,-1),className:p()(sf().resizeHandle,sf().resizeHandleLeft),children:(0,oe.jsx)("div",{className:sf().resizeHandleCircle})}),(0,oe.jsx)("div",{draggable:!0,onPointerDown:W(ms.i0,1),className:p()(sf().resizeHandle,sf().resizeHandleRight),children:(0,oe.jsx)("div",{className:sf().resizeHandleCircle})})]}):null]})]})},pf=u.memo(df),hf=e=>{const{page:t,textBlockId:n,zoomLevel:r,frameWindow:o}=e,i=(0,s.d4)((e=>{const r=(0,Qa.kE)(t.pageIndex,n)(e);return(0,ye.V)(r),r.anchor})),a=(0,s.d4)((e=>(0,Qa.kE)(t.pageIndex,n)(e)));(0,ye.V)(a);const l=(0,s.d4)((e=>(0,Qa.TD)(t.pageIndex,n)(e))),c=(0,s.d4)((e=>e.contentEditorSession.contentEditor));return(0,oe.jsxs)("div",{className:"PSPDFKit-Content-Editing-Text-Block",children:[(0,oe.jsx)(of,{page:t,textBlockId:n,anchor:i,zoomLevel:r,textBlockState:a,isActive:l,contentEditor:c}),(0,oe.jsx)(pf,{page:t,textBlockId:n,anchor:i,zoomLevel:r,isActive:l,textBlockState:a,frameWindow:o})]})},ff=u.memo(hf);var mf=n(66200);const gf=e=>{const t=(0,s.wA)(),{formatMessage:n}=(0,ve.tz)(),{page:r,zoomLevel:o,backend:i,frameWindow:a}=e;u.useEffect((()=>{var e;t((e=r.pageIndex,async(t,n)=>{if((0,Qa.VD)(e)(n())!=Qa.TG.Uninitialized)return;t({type:H.nkN,pageIndex:e});const r=n().contentEditorSession;(0,l.V1)(r.contentEditor);const o=await r.contentEditor.detectParagraphs(e);t({type:H.cNc,pageIndex:e,initialTextBlocks:o})}))}),[t,r.pageIndex]);const c=r.pageSize.height*o,d=r.pageSize.width*o,p=(0,s.d4)((0,Qa.di)(r.pageIndex),s.bN),h=(0,s.d4)((e=>e.contentEditorSession.mode)),f=h===Qa.g3.Create,m=h===Qa.g3.Delete,g=(0,s.d4)((e=>(0,Z.Jn)(e,r.pageIndex))),v=(0,s.d4)((e=>e.contentEditorSession.textBlockInteractionState.state)),y=v===Qa.mS.Active,b=v===Qa.mS.Moving;return(0,oe.jsxs)("div",{tabIndex:0,onPointerDown:e=>{if(f){const n=new P.bR({x:e.clientX,y:e.clientY}).apply(g),o=new Qa.ZY({x:n.x,y:n.y});t((0,ap.fg)(r.pageIndex,o))}else m||(y&&(e.preventDefault(),e.stopPropagation()),t(ap.zH))},className:"content-editing-overlay",style:{position:"absolute",top:0,left:0,touchAction:b?"none":"auto",height:c,width:d,zIndex:1,...f?{cursor:"text"}:{}},children:[m&&(0,oe.jsx)(mf.A,{onConfirm:()=>t(ap.OY),onCancel:()=>t((0,ap.CY)(Qa.g3.Edit)),accessibilityLabel:n(cf.deleteTextBlockConfirmAccessibilityLabel),accessibilityDescription:n(cf.deleteTextBlockConfirmAccessibilityDescription),"aria-atomic":!0,restoreOnClose:!1,children:(0,oe.jsx)("p",{children:n(cf.deleteTextBlockConfirmMessage)})}),p.map((e=>(0,oe.jsx)(ff,{backend:i,textBlockId:e,page:r,zoomLevel:o,frameWindow:a},e)))]})},vf=u.memo(gf),yf={[L.O.BUTTON_WIDGET]:[120,40],[L.O.CHECKBOX_WIDGET]:[32,32],[L.O.COMBO_BOX_WIDGET]:[220,40],[L.O.LIST_BOX_WIDGET]:[220,150],[L.O.RADIO_BUTTON_WIDGET]:[32,32],[L.O.SIGNATURE_WIDGET]:[220,150],[L.O.TEXT_WIDGET]:[220,40],[L.O.DATE_WIDGET]:[220,40]};let bf=0;var wf=n(10442),xf=n.n(wf),Sf=n(32291),_f=n.n(Sf);const Cf=e=>{let{pageSize:t}=e;const n=(0,s.d4)((e=>e.hintLines));return n?(0,oe.jsx)("svg",{id:"hint-lines",viewBox:`0 0 ${t.width} ${t.height}`,className:_f().hintLineSvg,children:n.lines.map(((e,t)=>(0,oe.jsx)("line",{x1:e.start.x,y1:e.start.y,x2:e.end.x,y2:e.end.y,className:_f().line},t)))}):null};const Ef=(0,s.Ng)((function(e,t){const{highlightState:n}=e;return{highlightResults:n.pageIndex===t.pageIndex?{rectsOnPage:n.rectsOnPage,pageIndex:t.pageIndex}:Ph.B,focused:!0,highlightDuration:1,animation:Dh.PULSE,zoomLevel:t.zoomLevel}}))((function(e){let{highlightResults:t,zoomLevel:n,focused:r,highlightDuration:o,animation:i}=e;return 0===t.rectsOnPage.count()?null:(0,oe.jsx)("div",{className:Oh().layer,"data-testid":"SearchHighlightLayer",children:(0,oe.jsx)(Ih,{focused:r,rectsOnPage:t.rectsOnPage,zoomLevel:n,highlightDuration:o,animation:i})})}));class kf extends u.Component{static getDerivedStateFromProps(e,t){return e.inViewport&&!t.hasBeenInViewport?{hasBeenInViewport:!0}:null}constructor(e){super(e),(0,y.A)(this,"pageRef",u.createRef()),(0,y.A)(this,"_handleOverviewRenderFinished",(()=>{this.setState({isOverviewRendered:!0}),this.props.onInitialOverviewRenderFinished&&this.props.onInitialOverviewRenderFinished(this.props.page.pageIndex)})),(0,y.A)(this,"_handleScroll",(e=>{this.pageRef.current&&(this.pageRef.current.scrollTop=0,this.pageRef.current.scrollLeft=0),e.stopPropagation(),e.preventDefault()})),(0,y.A)(this,"_handleOnPressEmit",((e,t)=>{const n={pageIndex:this.props.page.pageIndex,point:t,nativeEvent:e.nativeEvent};this.props.eventEmitter.emit("page.press",n)})),(0,y.A)(this,"onCropAreaChangeComplete",(e=>{const t=(0,je.X5)(e,this.props.page.pageSize,this.props.pagesRotation),n={cropBox:t,pageIndex:this.props.page.pageIndex};this.props.eventEmitter.emit("cropArea.changeStop",n),this.props.dispatch((0,nc.lL)(t,this.props.page.pageIndex))})),(0,y.A)(this,"onCropAreaChangeStart",(e=>{const t=(0,je.X5)(e,this.props.page.pageSize,this.props.pagesRotation),n={cropBox:t,pageIndex:this.props.page.pageIndex};this.props.eventEmitter.emit("cropArea.changeStart",n),this.props.dispatch((0,nc.lL)(t,this.props.page.pageIndex))})),(0,y.A)(this,"createWidgetAnnotation",(e=>{e.stopPropagation();const{x:t,y:n}=this.getRelativePosition(this.props.shadowRoot,this.props.rootElement,this.props.containerRect)(e.clientX,e.clientY);var r,o,i;this.props.dispatch((r=this.props.page.pageIndex,o=[t,n],i=this.props.intl,async(e,t)=>{const{interactionMode:n,viewportState:s,onWidgetAnnotationCreationStart:c,changeManager:u}=t();bf++;const d=(0,Z.NJ)(s,r),p=(0,B.K1)();(0,l.V1)(n,"interactionMode is not defined");const h=yf[n],f=new Date;let m,g=new P.sb({id:p,formFieldName:`${n}_${(0,Bi.A)()}`,boundingBox:new P.rw({left:o[0],top:o[1],width:h[0],height:h[1]}).apply(d),pageIndex:r,createdAt:f,updatedAt:f,fontSize:12,...n===L.O.BUTTON_WIDGET?{backgroundColor:P.Q1.BLUE,fontColor:P.Q1.WHITE}:{},...n===L.O.DATE_WIDGET?{additionalActions:{onFormat:new P.ew({script:'AFDate_FormatEx("yyyy-mm-dd")'})}}:{}});switch(n){case L.O.BUTTON_WIDGET:m=new P.$h({annotationIds:(0,a.B8)([g.id]),name:g.formFieldName,buttonLabel:"Button"});break;case L.O.TEXT_WIDGET:case L.O.DATE_WIDGET:m=new P.uS({annotationIds:(0,a.B8)([g.id]),name:g.formFieldName});break;case L.O.RADIO_BUTTON_WIDGET:m=new P.Qk({annotationIds:(0,a.B8)([g.id]),name:g.formFieldName,options:(0,a.B8)([new P._B({label:i.formatMessage(Pf.labelX,{arg0:1}),value:`Value ${bf}`})])});break;case L.O.CHECKBOX_WIDGET:m=new P.av({annotationIds:(0,a.B8)([g.id]),name:g.formFieldName,options:(0,a.B8)([new P._B({label:i.formatMessage(Pf.labelX,{arg0:1}),value:`Value ${bf}`})])});break;case L.O.SIGNATURE_WIDGET:m=new P.Vw({annotationIds:(0,a.B8)([g.id]),name:g.formFieldName});break;case L.O.LIST_BOX_WIDGET:m=new P.O2({annotationIds:(0,a.B8)([g.id]),name:g.formFieldName,options:(0,a.B8)([new P._B({label:"Option 1",value:`Value ${bf}`})])});break;case L.O.COMBO_BOX_WIDGET:m=new P.sh({annotationIds:(0,a.B8)([g.id]),name:g.formFieldName,options:(0,a.B8)([new P._B({label:"Option 1",value:"Option 1"}),new P._B({label:"Option 2",value:"Option 2"})])});break;default:throw new Error(`Unknown interaction mode: ${n}`)}if(m=m.set("id",(0,Bi.A)()),c){const e=c(g,m);g=e.annotation||g,m=e.formField||m,(0,l.V1)(g instanceof P.sb,"widgetAnnotation must be an instance of WidgetAnnotation"),(0,l.V1)(m instanceof P.zB,"formField must be an instance of FormField"),(0,l.V1)(g.formFieldName===m.name,"widgetAnnotation.formFieldName must be equal to formField.name"),(0,l.V1)(r===g.pageIndex,"You are not allowed to change the pageIndex")}e({type:H.dwm,annotationId:g.id}),u?.create([g,m]),e((0,kn.SM)()),e((0,we.WS)((0,a.NZ)([g.id]),V.Q.SELECTED))}))})),(0,y.A)(this,"getAnnotationLayerChildren",(0,Wt.A)((e=>{let{page:t,dispatch:n,enableTextSelection:r,zoomLevel:o,pagesRotation:i,eventEmitter:a,isTextCopyingAllowed:s,isPanModeEnabled:l}=e;return t.contentBlocks?(0,oe.jsx)(qh,{dispatch:n,enableTextSelection:r,zoomLevel:o,rotation:i,eventEmitter:a,isTextCopyingAllowed:s,isPanModeEnabled:l,pageIndex:t.pageIndex,contentBlocks:t.contentBlocks,textLineScales:t.textLineScales,pageSize:t.pageSize,textElementFonts:t.textElementFonts}):null}),((e,t)=>(0,s.bN)(e[0],t[0])))),(0,y.A)(this,"getRelativePosition",(0,Wt.A)(((e,t,n)=>(r,o)=>(0,w.gP)({x:r,y:o,shadowRoot:e,rootElement:t,containerRect:n})))),(0,y.A)(this,"getPageCustomOverlayItems",(0,Wt.A)(((e,t)=>e.customOverlayItemIds.map((e=>t.get(e)))))),this._contentBlocksPromise=null,this._cancelTextPromise=null,(e.inViewport||e.shouldPrerender)&&this.componentWillEnterViewport(e),this.state={hasBeenInViewport:e.inViewport,isOverviewRendered:!e.renderPagePreview}}shouldComponentUpdate(e,t){return!!e.page&&(this.props.isReused!==e.isReused||(this.props.page.pageIndex!==e.page.pageIndex||(!(!e.inViewport||this.props.inViewport)||(!(e.inViewport||!this.props.inViewport)||(e.shouldPrerender!==this.props.shouldPrerender||(e.inViewport?$.EF.call(this,e,t):this.props.interactionMode===L.O.CONTENT_EDITOR&&e.interactionMode!==L.O.CONTENT_EDITOR||this.props.zoomLevel!==e.zoomLevel))))))}componentDidUpdate(e){e.isReused?(this._resetTextLines(),this._fetchPageContent(this.props)):!e.inViewport&&this.props.inViewport||this.props.shouldPrerender?this.componentWillEnterViewport(this.props):e.inViewport&&!this.props.inViewport&&this.componentWillExitViewport(),this.state.isOverviewRendered&&this.props.onInitialOverviewRenderFinished&&this.props.parent!==e.parent&&this.props.onInitialOverviewRenderFinished(this.props.page.pageIndex),e.page.pageKey!==this.props.page.pageKey&&(this._resetTextLines(),this.fetchTextLinesForProps(this.props))}componentWillEnterViewport(e){this._fetchPageContent(e)}_fetchPageContent(e){"CONNECTED"===e.connectionState.name&&e.annotationManager&&e.annotationManager.loadAnnotationsForPageIndex(e.page.pageIndex),e.connectionState.name!==$i.D.CONNECTED&&e.connectionState.name!==$i.D.DOWNLOADING_DOCUMENT||null==e.page.contentBlocks&&null==this._contentBlocksPromise&&this.fetchTextLinesForProps(e),e.connectionState.name!==$i.D.DOWNLOADING_DOCUMENT||e.page.isPageSizeReal||e.backend.corePDFBridge.fetchPageInfoWhileDownloading(e.page.pageIndex).then((t=>{e.dispatch((0,zs.z_)(e.page.pageIndex,t))}))}componentWillExitViewport(){this._resetTextLines()}_resetTextLines(){this._contentBlocksPromise&&this._cancelTextPromise&&(this._cancelTextPromise(),this._contentBlocksPromise=null)}async fetchTextLinesForProps(e){if(!this.props.enableTextLoading||this.props.interactionMode===L.O.CONTENT_EDITOR)return void e.dispatch((0,zs.d_)(e.page.pageIndex,(0,a.B8)()));const{promise:t,cancel:n}=e.backend.getContentTreeForPageIndex(e.page.pageIndex);this._contentBlocksPromise=t,this._cancelTextPromise=n;try{const t=await this._contentBlocksPromise;e.dispatch((0,zs.d_)(e.page.pageIndex,t))}catch(e){if(e&&!e.aborted)throw e}}isWithinRange(){const{page:{pageIndex:e},currentPageIndex:t}=this.props;return e>=Math.min(0,t-2)&&e<=t+2}render(){const{props:e}=this,{page:t,intl:n,innerRef:r,zoomLevel:i,pagesRotation:a,viewportRect:s,frameWindow:l,dispatch:c,enableTextSelection:d,eventEmitter:h,isTextCopyingAllowed:f,isPanModeEnabled:m,shadowRoot:g,rootElement:v,containerRect:y}=e,{formatMessage:b}=n,x={width:t.pageSize.width*i,height:t.pageSize.height*i};let S={height:x.height,width:x.width,transform:z.XF.IDENTITY.rotate(-a).toCssValue()};if(90===a||270===a){const e=(x.height-x.width)/2;S={height:x.width,width:x.height,transform:z.XF.IDENTITY.rotate(a).translate({x:-e,y:e}).toCssValue()}}const _=p()({"PSPDFKit-Page":!0,[`PSPDFKit-Page-Rotation-${a}-degree`]:!0,[xf().root]:!0,[xf()["deg-"+a]]:!0,[xf().textHighlighterMode]:e.interactionMode===L.O.TEXT_HIGHLIGHTER||e.interactionMode===L.O.REDACT_TEXT_HIGHLIGHTER,[xf().hideCursor]:(0,Oe.qi)(e.interactionMode)}),C=null!==e.cropPageIndex&&null!==e.cropArea?{pageIndex:e.cropPageIndex,area:e.cropArea}:null,E=this.getPageCustomOverlayItems(t,e.customOverlayItems);return t?(0,oe.jsxs)("section",{className:_,style:x,ref:this.pageRef,"data-page-index":t.pageIndex,"data-page-is-loaded":null!==t.contentBlocks&&this.state.isOverviewRendered,onScroll:this._handleScroll,"aria-label":b(xe.A.pageX,{arg0:t.pageLabel||t.pageIndex+1}),tabIndex:e.documentHasActiveAnnotation?-1:0,children:[(0,oe.jsx)("div",{className:xf().focusPage,ref:r}),this.state.hasBeenInViewport&&this.state.isOverviewRendered&&t.contentBlocks?null:(0,oe.jsx)(o.s6,{children:b(xe.A.loading)}),(0,oe.jsxs)(Ch,{pageIndex:t.pageIndex,onEmit:this._handleOnPressEmit,element:"div",children:[(this.state.hasBeenInViewport||this.state.isOverviewRendered||e.shouldPrerender)&&(0,oe.jsx)(Sh.A,{inViewport:e.inViewport,shouldPrerender:!e.inViewport&&e.shouldPrerender,page:t,backend:e.backend,zoomLevel:i,rotation:a,renderPageCallback:e.renderPageCallback,onInitialOverviewRenderFinished:this._handleOverviewRenderFinished,allowedTileScales:e.allowedTileScales,viewportRect:s,forceDetailView:!1,renderPagePreview:e.renderPagePreview,inContentEditorMode:e.interactionMode===L.O.CONTENT_EDITOR}),e.interactionMode===L.O.CONTENT_EDITOR&&e.inViewport&&!!e.contentEditor&&(0,oe.jsx)(vf,{backend:e.backend,zoomLevel:i,page:t,frameWindow:l}),this.props.hintLinesPageIndex===t.pageIndex?(0,oe.jsx)(Cf,{pageSize:t.pageSize}):null,this.state.hasBeenInViewport&&this.state.isOverviewRendered&&(0,oe.jsxs)(u.Fragment,{children:[(0,oe.jsx)(Rh,{pageIndex:t.pageIndex,zoomLevel:i}),(0,oe.jsx)(Ef,{pageIndex:t.pageIndex,zoomLevel:i}),(0,oe.jsx)(gc.Consumer,{children:e=>(0,oe.jsx)(mh,{page:t,getScrollElement:e,setGlobalCursor:this.props.setGlobalCursor,getRelativePosition:this.getRelativePosition(g,v,y),children:this.getAnnotationLayerChildren({page:t,dispatch:c,enableTextSelection:d,zoomLevel:i,pagesRotation:a,eventEmitter:h,isTextCopyingAllowed:f,isPanModeEnabled:m})})}),e.interactionMode===L.O.MARQUEE_ZOOM?(0,oe.jsx)(Xh,{pageIndex:t.pageIndex,pageSize:t.pageSize,scrollElement:e.scrollElement}):null,E.size>0&&(0,oe.jsx)("div",{children:E.map((e=>(0,oe.jsx)(xh,{item:e,rotation:a,zoomLevel:i,containerScrollOffset:(0,w.Wm)(v,y)},e.id)))})]})]}),e.interactionMode===L.O.DOCUMENT_CROP&&(null===C&&this.isWithinRange()||C?.pageIndex===t.pageIndex)&&(0,oe.jsx)("div",{style:S,children:(0,oe.jsx)(Ci,{page:this.props.page,onAreaChangeComplete:this.onCropAreaChangeComplete,frameWindow:l,onAreaChangeStart:this.onCropAreaChangeStart})}),(0,Oe.qi)(e.interactionMode)&&(0,oe.jsx)("div",{style:S,children:(0,oe.jsx)(tf,{frameWindow:l,pageRef:this.pageRef,interactionMode:e.interactionMode,pageIndex:t.pageIndex,onCreate:this.createWidgetAnnotation,intl:e.intl,getRelativePosition:this.getRelativePosition(g,v,y)})})]},t.pageKey):null}}const zf=(0,ve.j4)(kf),Pf=(0,ve.YK)({labelX:{id:"labelX",defaultMessage:"Label {arg0}",description:"Label"}});const Af=(0,vn.F)((function(e,t){const n=e.pages.get(t.pageIndex);return{frameWindow:e.frameWindow,enableTextLoading:(0,gn.cP)(e),enableTextSelection:e.interactionMode!==L.O.PAN,annotationManager:e.annotationManager,backend:e.backend,customOverlayItems:e.customOverlayItems,eventEmitter:e.eventEmitter,page:n,isTextCopyingAllowed:(0,gn.Xm)(e),renderPageCallback:e.renderPageCallback,interactionMode:e.interactionMode,documentHasActiveAnnotation:e.selectedAnnotationIds.size>0,allowedTileScales:e.allowedTileScales,isPanModeEnabled:e.interactionMode===L.O.PAN&&!b.LZ,zoomLevel:e.viewportState.zoomLevel,pagesRotation:e.viewportState.pagesRotation,viewportRect:e.viewportState.viewportRect,currentPageIndex:e.viewportState.currentPageIndex,scrollElement:e.scrollElement,isReused:!!e.reuseState,renderPagePreview:e.renderPagePreview,hintLinesPageIndex:e.hintLines?.pageIndex,contentEditor:e.contentEditorSession.contentEditor,cropArea:e.cropArea,cropPageIndex:e.cropPageIndex,shadowRoot:e.shadowRoot,rootElement:e.rootElement,containerRect:e.containerRect}}))(zf);class Df extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"spreadRef",u.createRef()),(0,y.A)(this,"shouldComponentUpdate",$.EF),(0,y.A)(this,"pageIndexesWaitingForRender",(0,ia.dD)(this.props.viewportState,this.props.spreadIndex)),(0,y.A)(this,"_handleOverviewRenderFinished",(e=>{if(this.props.onOverviewRenderFinished){const t=this.pageIndexesWaitingForRender.indexOf(e);t>-1&&this.pageIndexesWaitingForRender.splice(t,1),0===this.pageIndexesWaitingForRender.length&&this.props.onOverviewRenderFinished&&this.props.onOverviewRenderFinished(this.props.spreadIndex)}}))}render(){const{spreadIndex:e,viewportState:t,inViewport:n,shouldPrerender:r}=this.props,o=(0,ia.Bu)(t,e);return(0,oe.jsx)("div",{style:{width:o.width*t.zoomLevel,height:o.height*t.zoomLevel},hidden:this.props.hidden,children:(0,ia.dD)(t,e).map((o=>{const i=(0,Z.JC)(z.XF.IDENTITY,t,o,e,t.zoomLevel),a=this.props.pageKeys.get(o);return(0,oe.jsx)("div",{style:{transform:i.toCssValue(!0),transformOrigin:"0 0",position:"absolute"},children:(0,oe.jsx)(le.Reparent,{id:`page-${a}`,children:(0,oe.jsx)(Af,{pageIndex:o,inViewport:n,shouldPrerender:r,onInitialOverviewRenderFinished:this._handleOverviewRenderFinished,innerRef:this.props.innerRef,parent:this.spreadRef,setGlobalCursor:this.props.setGlobalCursor,connectionState:this.props.connectionState})})},a)}))})}}var Tf=n(3681);const If=u.memo((function(e){const{viewportState:t,connectionState:n}=e,{lastScrollUsingKeyboard:r}=t,o=u.useRef(null),i=(0,ia.NZ)(t,t.currentPageIndex),[a,s]=(0,ia.rY)(t,i,n.name);return u.useEffect((()=>{const e=(0,ia.og)(t),n=t.prerenderedPageSpreads??e;i-n>0&&o.current&&r&&o.current.focus({preventScroll:!0})}),[i,r,t]),0===t.viewportRect.width||0===t.viewportRect.height?null:(0,oe.jsx)(Tf.A,{dispatch:e.dispatch,viewportState:t,children:(0,oe.jsx)("div",{children:function(){const{viewportState:t,viewportState:{viewportRect:n,scrollPosition:r,zoomLevel:l}}=e,c=(0,ia.og)(t),u=r.y,d=r.y+n.height/l,p=(0,ia.Ym)(t);let h=0,f=0;const m=[];for(let n=0;n<c;n++){const r=(0,ia.Bu)(t,n);f=h+r.height;const g=h<d&&f>u,v=(p-r.width)/2,y=new z.rw({left:v,top:h,width:r.width,height:r.height}).scale(l),b={left:y.left,top:y.top,width:y.width,height:y.height,position:"absolute"};f+=t.spreadSpacing,h=f;const w=t.prerenderedPageSpreads??c;if((0,ia.lw)(n,i,w)){const r=n===i,l=(0,ia.uM)(t)===mu.S.DOUBLE?n.toString():e.pageKeys.get(n);m.push((0,oe.jsx)("div",{className:"PSPDFKit-Spread",style:b,"data-spread-index":n,children:(0,oe.jsx)(Df,{spreadIndex:n,viewportState:t,inViewport:g,shouldPrerender:!r&&"number"==typeof a&&i===a,onOverviewRenderFinished:s,innerRef:r?o:void 0,pageKeys:e.pageKeys,setGlobalCursor:e.setGlobalCursor,connectionState:e.connectionState})},l))}}return m}()})})}));var Mf,Nf,Of=n(4213),Rf=n.n(Of),jf=n(47608),Ff=n(98763),Bf=n.n(Ff);class Lf extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"rootRef",u.createRef()),(0,y.A)(this,"shouldComponentUpdate",$.EF),(0,y.A)(this,"_handleOnClose",(()=>{this.props.dispatch((0,Dt.D9)())})),(0,y.A)(this,"_download",(()=>{Rf().saveAs(this._getBlob(),`PSPDFKit-for-Web-Debug-Output-${Date.now()}.txt`)}))}_getDebugOutput(){const e=document.documentElement;if((0,l.V1)(e,"externalDocumentElement must not be null"),this.rootRef.current){const t=this.rootRef.current.ownerDocument.documentElement;return(0,l.V1)(t,"internalDocumentElement must not be null"),`-----BEGIN VERSION-----\n  PSPDFKit for Web Version: 1.1.0 (e4dd477934)\n  Nutrient Document Engine Version: 1.1.0\n  -----END VERSION-----\n\n  -----BEGIN CLIENT INFO-----\n  User Agent: ${navigator.userAgent}\n  Language: ${navigator.language}\n  Engine: ${b.Hi}\n  System: ${b.qU}\n  Pixel ratio: ${(0,Nr.I)()}\n  -----END CLIENT INFO-----\n\n  -----BEGIN EXTERNAL HTML-----\n  ${e.innerHTML}\n  -----END EXTERNAL HTML-----\n\n  -----BEGIN INTERNAL HTML-----\n  ${t.innerHTML}\n  -----END INTERNAL HTML-----\n  `}}_getBlob(){return new Blob([this._getDebugOutput()],{type:"text/plain;charset=utf-8"})}render(){return(0,oe.jsx)(jf.A,{onDismiss:this._handleOnClose,children:(0,oe.jsx)("div",{className:Bf().root,ref:this.rootRef,children:(0,oe.jsxs)("div",{className:Bf().header,children:[Mf||(Mf=(0,oe.jsx)("h2",{children:"Debug Output"})),Nf||(Nf=(0,oe.jsxs)("p",{children:["When reporting an issue to support, please provide the debug output. The output contains the PSPDFKit for Web version, information about your device, a snapshot of the current DOM. Please submit new support requests via our"," ",(0,oe.jsx)("a",{target:"_blank",href:"https://pspdfkit.com/support/request",children:"support form"}),"."]})),(0,oe.jsx)(o.$n,{onClick:this._download,children:"Download Debug Output"})]})})})}}class Vf extends u.Component{constructor(){var e;super(...arguments),e=this,(0,y.A)(this,"onConfirm",(()=>{if(this.props.setA11yStatusMessage){const{formatMessage:e}=this.props.intl;this.props.setA11yStatusMessage(e(Hf.annotationDeleted))}const e={annotations:(0,a.B8)(this.props.annotations),reason:ee.x.DELETE_END};this.props.eventEmitter.emit("annotations.willChange",e),this.props.annotations.forEach((e=>{this.props.dispatch((0,lt.eS)(e))})),this.onCancel(!1),this.props.dispatch((0,we.J9)())})),(0,y.A)(this,"onCancel",(function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(e.props.dispatch((0,lt.n9)(null)),t){const t={annotations:(0,a.B8)(),reason:ee.x.DELETE_END};e.props.eventEmitter.emit("annotations.willChange",t)}}))}render(){const{formatMessage:e}=this.props.intl;return(0,oe.jsx)(mf.A,{onConfirm:this.onConfirm,onCancel:this.onCancel,accessibilityLabel:e(Hf.deleteAnnotationConfirmAccessibilityLabel),accessibilityDescription:e(Hf.deleteAnnotationConfirmAccessibilityDescription),"aria-atomic":!0,restoreOnClose:!1,children:(0,oe.jsx)("p",{children:e(Hf.deleteAnnotationConfirmMessage)})})}}const Kf=(0,ve.j4)(Vf),Hf=(0,ve.YK)({deleteAnnotationConfirmMessage:{id:"deleteAnnotationConfirmMessage",defaultMessage:"Are you sure you want to delete this annotation?",description:'Message displayed in the "Delete Annotation" confirm dialog'},deleteAnnotationConfirmAccessibilityLabel:{id:"deleteAnnotationConfirmAccessibilityLabel",defaultMessage:"Confirm annotation deletion",description:'Accessibility label (title) for the "Delete Annotation" confirm dialog'},deleteAnnotationConfirmAccessibilityDescription:{id:"deleteAnnotationConfirmAccessibilityDescription",defaultMessage:"Dialog allowing the user to confirm or cancel deleting the annotation",description:'Accessibility description for the "Delete Annotation" confirm dialog'},annotationDeleted:{id:"annotationDeleted",defaultMessage:"Annotation deleted.",description:"An annotation has been deleted."}});function $f(e){let{locale:t}=e;const n=(0,u.useRef)(null);return(0,u.useEffect)((function(){const e=n.current;if(!e)return;const r=e.ownerDocument.documentElement;r&&(r.lang=t)}),[t]),(0,oe.jsx)("div",{ref:n})}class Uf extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"shouldComponentUpdate",$.EF),(0,y.A)(this,"_handleKeydown",(e=>{const t=this.props.shadowRoot?.activeElement||this.props.document?.activeElement;this.props.hasSelectedAnnotations||t&&"BODY"!==t.tagName&&(0,Yn.Xx)(t)||e.shiftKey||e.metaKey||e.ctrlKey||e.alt||(e.keyCode===Bn.Vn&&this._handleKeyLeft(),e.keyCode===Bn.gV&&this._handleKeyRight())})),(0,y.A)(this,"_handleKeyRight",(()=>{const e=(0,aa.nr)(this.props.viewportState);Math.ceil(this.props.viewportState.scrollPosition.x)>=Math.floor(e.x)&&this.props.dispatch((0,vc.Zj)())})),(0,y.A)(this,"_handleKeyLeft",(()=>{Math.floor(this.props.viewportState.scrollPosition.x)<=0&&this.props.dispatch((0,vc.$w)())}))}componentDidMount(){const e=this.props.shadowRoot?.ownerDocument||this.props.document;e?.addEventListener("keydown",this._handleKeydown)}componentWillUnmount(){const e=this.props.shadowRoot?.ownerDocument||this.props.document;e?.removeEventListener("keydown",this._handleKeydown)}render(){return this.props.children||null}}var Wf=n(40249);function qf(e,t,n){return async(r,o)=>{const{viewportState:{currentPageIndex:i},formFields:s}=o(),c=[],u=[];for(const t of e){const{annotation:e,formField:o,attachmentBlobPromise:d}=t,p="COPY"===n&&t.annotation.pageIndex===i?new P.bR({x:20,y:20}):t.offset;if(e instanceof P.sb){const t=s.get(e.formFieldName)||o;(0,l.V1)(t,`Form field with name "${e.formFieldName}" not found`);const d=(0,B.K1)(),h="CUT"===n?e.formFieldName:`${t?.name} copy`,f=e.id===e.name;let m=e.set("id",d).set("formFieldName",h).set("boundingBox",p?e.boundingBox.translate(p):e.boundingBox).delete("group").delete("pdfObjectId");n&&(m=m.set("pageIndex",i)),f&&(m=m.set("name",d));let g=t.set("name",h).set("annotationIds",(0,a.B8)([d])).set("id",(0,Bi.A)()).delete("group").delete("pdfObjectId");t.options&&"CUT"!==n&&(g=g.set("options",(0,a.B8)([t.options.get(0).set("value",`${t.options.get(0).value}_1`)])).set("annotationIds",(0,a.B8)([d]))),c.push(m),r((0,lt.Xs)(m)),r((0,kn.iJ)(g)),u.push(g)}else{const t=(0,B.K1)(),o=e.id===e.name;let a=e.set("id",t).delete("pdfObjectId");if(p&&(a=(0,_o.F)(a,p)),n&&(a=a.set("pageIndex",i)),o&&(a=a.set("name",t)),"imageAttachmentId"in e&&e.imageAttachmentId&&d){let e;try{e=await d}catch(e){throw new l.uE(`Could not retrieve attachment data: ${e.message}`)}(0,l.V1)(e,"Attachment not found");const{hash:t}=await(0,Ae.gj)(e),n=new P.o3({data:e});r((0,G.c)({hash:t,attachment:n})),a=a.set("imageAttachmentId",t)}c.push(a),r((0,lt.Xs)(a))}}const d={annotations:c,formFields:u,previousAction:n,originalAnnotations:e.map((e=>e.annotation)),originalFormFields:s};t(d)}}class Gf extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"state",{copiedOrCutAnnotations:null}),(0,y.A)(this,"getSelectedAnnotations",(()=>{const{annotations:e,selectedAnnotationsIds:t,backend:n}=this.props,r=e?.filter((e=>t?.has(e.id))).valueSeq().toArray();return r?.map((e=>{let t;return e instanceof P.vU&&e.imageAttachmentId&&(t=n?.getAttachment(e.imageAttachmentId)),{annotation:e,attachmentBlobPromise:t}}))})),(0,y.A)(this,"handleKeyDown",(async e=>{const{dispatch:t,selectedAnnotationsIds:n,commentThreads:r,isPrinting:o,printingEnabled:i,canDeleteSelectedAnnotationCP:c,selectedAnnotation:u,eventEmitter:d,backend:p,formFields:h,areClipboardActionsEnabled:f,modalClosurePreventionError:m,setModalClosurePreventionError:g,annotations:v,isMultiSelectionEnabled:y,contentEditorSession:b,interactionMode:w,isTextComparison:x}=this.props;(0,l.V1)(p,"backend is required");const S=e.composedPath()[0];if(e.metaKey&&e.ctrlKey)return;if((e.ctrlKey&&e.keyCode===Bn.WM||e.metaKey&&e.keyCode===Bn.WM)&&(t((0,we.J9)()),t((0,Ns.yK)()),e.preventDefault()),(e.metaKey||e.ctrlKey)&&e.keyCode===Bn.WJ&&(!o&&i&&t((0,Su.yy)()),e.preventDefault(),e.stopImmediatePropagation()),this.props.zoomOptions.enableKeyboardZoom&&(e.metaKey||e.ctrlKey)&&e.keyCode===Bn.I4&&(t((0,vc.nF)()),e.preventDefault()),this.props.zoomOptions.enableKeyboardZoom&&(e.metaKey||e.ctrlKey)&&e.keyCode===Bn.qN&&(t((0,vc.ke)()),e.preventDefault()),this.props.zoomOptions.enableKeyboardZoom&&(e.metaKey||e.ctrlKey)&&e.keyCode===Bn.uD&&(t((0,vc._m)()),e.preventDefault()),x)return;if(this.props.canUndo&&(e.metaKey||e.ctrlKey)&&!e.shiftKey&&e.keyCode===Bn.Wu&&!(0,Yn.kM)(S))return t((0,co.tN)()),void e.preventDefault();if(this.props.canRedo&&!(0,Yn.kM)(S)&&(e.metaKey||e.ctrlKey)&&e.shiftKey&&e.keyCode===Bn.Wu)return t((0,co.ZS)()),void e.preventDefault();if(f&&(e.metaKey||e.ctrlKey)&&e.keyCode===Bn.P_&&e.shiftKey&&n&&n.size>0&&(e.preventDefault(),this.props.selectedGroupId?t((0,Dt.g8)(this.props.selectedGroupId)):(0,s.vA)((()=>{n.forEach((e=>{const n=this.props.annotationsGroups?.find((t=>{let{annotationsIds:n}=t;return n.has(e)}));n&&t((0,Dt.P4)(e,n.groupKey))}))}))),e.shiftKey)return;f&&(e.metaKey||e.ctrlKey)&&e.keyCode===Bn.P_&&n&&n.size>0&&(e.preventDefault(),t((0,Dt.vE)(n)));const{copiedOrCutAnnotations:_}=this.state;var C,E;if(f&&(e.ctrlKey||e.metaKey)&&_&&"v"===e.key&&(e.preventDefault(),e.stopPropagation(),t((C=_,(e,t)=>{const{eventEmitter:n}=t();e(qf(C,(e=>{n.emit("annotations.paste",e)}),C?.[0]?.previousAction?.toUpperCase()))})),this.setState({copiedOrCutAnnotations:null})),f&&y&&(e.ctrlKey||e.metaKey)&&"a"===e.key){const n=S&&(0,Yn.kM)(S),r=window.top?.document.activeElement,o=r&&(0,Yn.kM)(r);if(n||o)return;e.preventDefault(),e.stopPropagation();const i=v?.filter((e=>e.pageIndex===this.props.currentPageIndex)).map((e=>e.id));i&&(0,s.vA)((()=>{t((0,we.J9)()),t((0,we.TT)(i.toSet(),null))}))}if(b.active&&b.textBlockInteractionState.state===Qa.mS.Selected&&["Del","Delete","Backspace"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),t((0,ap.CY)(Qa.g3.Delete))),n&&n.size>0&&!(0,Yn.kM)(S))if(!["Del","Delete","Backspace"].includes(e.key)||r&&n.some((e=>r.has(e)))||!c){if(f&&(e.ctrlKey||e.metaKey)&&u&&"c"===e.key){e.preventDefault(),e.stopPropagation();const t=this.getSelectedAnnotations()?.map((e=>({...e,previousAction:"copy"})));this.setState({copiedOrCutAnnotations:t}),d.emit("annotations.copy",{annotation:u})}else if(f&&(e.ctrlKey||e.metaKey)&&u&&"x"===e.key){if(!t((E=u,(e,t)=>(0,cr.db)(E,t()))))return;e.preventDefault(),e.stopPropagation();const n=this.getSelectedAnnotations()?.map((e=>{const t=e.annotation;return{...e,formField:t instanceof P.sb?h?.get(t.formFieldName):void 0,previousAction:"cut"}}));this.setState({copiedOrCutAnnotations:n}),d.emit("annotations.cut",{annotation:u}),(0,s.vA)((()=>{n.forEach((e=>{t((0,lt.eS)(e.annotation))}))}))}else if(f&&(e.ctrlKey||e.metaKey)&&u&&"d"===e.key){e.preventDefault(),e.stopPropagation();const n=this.getSelectedAnnotations();t(function(e){return(t,n)=>{const{eventEmitter:r}=n();t(qf(e,(e=>{r.emit("annotations.duplicate",e)}))),t((0,we.WS)((0,a.NZ)(e.map((e=>e.annotation.id))),V.Q.SELECTED))}}(n)),this.setState({copiedOrCutAnnotations:null})}else if(!("Esc"!==e.key&&"Escape"!==e.key||(0,Yn.jU)(S)||(0,Yn.in)(S)||m&&m.annotationId===u?.id)){e.preventDefault(),e.stopPropagation(),t((0,we.J9)());const r=n.first(),o=this.props.getScrollElement();if(o&&r){const e=o.querySelector(`[data-annotation-id="${r}"]`);e&&(0,Yn.u7)(o,e)}}}else m?.annotationId===u?.id&&g(null),e.preventDefault(),e.stopPropagation(),t((0,lt.n9)(n));"Esc"!==e.key&&"Escape"!==e.key||w!==L.O.MEASUREMENT||(0,s.vA)((()=>{t((0,lt.iE)(null)),t((0,Dt.gw)())})),e.keyCode!==Bn.JG||(0,Yn.kM)(S)||(e.preventDefault(),e.stopPropagation())})),(0,y.A)(this,"_handleRef",(e=>{this.props.shadowRoot?this._document=this.props.shadowRoot.ownerDocument:e&&!this.props.shadowRoot&&(this._document=e.ownerDocument)}))}componentDidMount(){this._document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleKeyDown),this.props.isTextCopyingAllowed||this._document.addEventListener("copy",Zf)}componentWillUnmount(){this._document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keydown",this.handleKeyDown),this.props.isTextCopyingAllowed||this._document.removeEventListener("copy",Zf)}render(){return(0,oe.jsx)("div",{ref:this._handleRef})}}function Zf(e){const{target:t}=e;(0,Wf.B)(t)||e.preventDefault()}const Yf=["highlight","strikeout","underline","squiggle","redact-text-highlighter","comment","ai-assistant"],Xf=(0,O.A)("InlineTextSelectionToolbarItem ");var Jf=n(86585),Qf=n.n(Jf);const em=new Map([["highlight",P.ax],["strikeout",P.sB],["underline",P.Yi],["squiggle",P.TI],["redact-text-highlighter",Y.A],["comment",P.dG]]);function tm(e){return e.node?(0,oe.jsx)(Hc,{node:e.node,title:e.title,className:e.className,icon:e.icon,onPress:e.onPress,selected:e.selected,disabled:e.disabled}):(0,oe.jsx)(Bc,{type:e.type,title:e.title,className:e.className,icon:e.icon,onPress:e.onPress,selected:e.selected,disabled:e.disabled})}function nm(e){const t=(0,ve.tz)(),{dispatch:n,isAnnotationTypeReadOnly:r,showComments:o,showRedactions:i,showAIAssistant:a,hasMobileLayout:s,inlineTextSelectionToolbarItems:c,currentTextSelection:d}=e,h=t.formatMessage,f=u.useCallback(((e,t)=>{n((0,lt.ze)(e,t)),n((0,we.J9)())}),[n]),m=u.useCallback((()=>{n((0,Er.Rq)())}),[n]),g=u.useCallback((()=>{d&&(n((0,Dt.q6)(!0)),n((0,Dt.Z0)(d)))}),[n,d]),v=p()({[Qf().button]:!s},{[Ac().button]:s}),y=u.useMemo((()=>{const e=[{type:"highlight",title:h(xe.A.highlightAnnotation),className:p()("PSPDFKit-Text-Markup-Inline-Toolbar-Highlight",v),onPress:()=>{f(P.ax,"highlight")}},{type:"strikeout",title:h(xe.A.strikeOutAnnotation),className:p()("PSPDFKit-Text-Markup-Inline-Toolbar-Strike-Out",v),onPress:()=>{f(P.sB,"strikeout")}},{type:"underline",title:h(xe.A.underlineAnnotation),className:p()("PSPDFKit-Text-Markup-Inline-Toolbar-Underline",v),onPress:()=>{f(P.Yi,"underline")}},{type:"squiggle",title:h(xe.A.squiggleAnnotation),className:p()("PSPDFKit-Text-Markup-Inline-Toolbar-Squiggle",v),onPress:()=>{f(P.TI,"squiggle")}}];return o&&e.push({type:"comment",title:h(xe.A.comment),className:p()("PSPDFKit-Text-Markup-Inline-Toolbar-Comment",v),onPress:()=>{m()}}),i&&e.push({type:"redact-text-highlighter",title:h(xe.A.redactionAnnotation),className:p()("PSPDFKit-Text-Markup-Inline-Toolbar-Redaction",v),onPress:()=>{f(Y.A,"redaction")}}),a&&e.unshift({type:"ai-assistant",title:h(xe.A.documentAI),className:p()("PSPDFKit-Text-Markup-Inline-Toolbar-AI-Assistant",v),onPress:()=>{g()}}),e}),[f,v,h,m,o,i,a,g]),b=u.useMemo((()=>{if(c){if(!d)return[];const e=c({defaultItems:y,hasDesktopLayout:!s},d);e.forEach((e=>{!function(e){Xf((0,l.Qd)(e)&&!!e,"Expected item to be an object");const{type:t,id:n,title:r,icon:o,className:i,onPress:a,disabled:s}=e;Xf("type"in e&&(0,R.Kg)(t)&&[...Yf,"custom"].includes(t),`Expected item.type to be one of ${[...Yf,"custom"].join(", ")}`),r&&Xf((0,R.Kg)(r),"Expected `title` to be a string"),o&&Xf((0,R.Kg)(o),"Expected `icon` to be a string"),n&&Xf((0,R.Kg)(n),"Expected `id` to be a string"),i&&Xf((0,R.Kg)(i),"Expected `className` to be a string"),a&&Xf("function"==typeof a,"`onPress` must be a `function`"),"disabled"in e&&Xf("boolean"==typeof s,"`disabled` must be a `boolean`"),e.node&&Xf(Ls.S.includes(e.node.nodeType),"`node.nodeType` is invalid. Expected one of "+Ls.S.join(", "))}(e)}));return e.map((e=>"custom"===e.type&&null!==e.onPress?{...e,onPress:()=>{e.onPress(),n((0,we.J9)())}}:e)).map((e=>({node:tm(e),type:e.type})))}return y.map((e=>({node:tm(e),type:e.type})))}),[y,d,s,c,n]),w=p()({[Ac().content]:s,[Ac().mobileTextMarkup]:s,[Qf().inner]:!s});return(0,oe.jsx)("div",{className:p()("PSPDFKit-Text-Markup-Inline-Toolbar",{[Qf().root]:!s}),role:"dialog","aria-label":h(xe.A.markupToolbar),children:(0,oe.jsx)("div",{className:w,children:b.map(((e,t)=>"custom"!==e.type&&"ai-assistant"!==e.type&&r(em.get(e.type))?null:"custom"===e.type?(0,oe.jsx)("div",{children:e.node},`custom-${t}`):(0,oe.jsx)("div",{children:e.node},e.type)))})})}class rm extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"shouldComponentUpdate",$.EF)}render(){const{position:e,dispatch:t,showComments:n,showRedactions:r,currentTextSelection:o,isAnnotationTypeReadOnly:i,inlineTextSelectionToolbarItems:a,showAIAssistant:s,nodeRef:l}=this.props;return(0,oe.jsx)("div",{className:p()("PSPDFKit-Annotation-Toolbar",Ac().root,{[Ac().stickToBottom]:"bottom"===e}),ref:l,children:(0,oe.jsx)(nm,{dispatch:t,isAnnotationTypeReadOnly:i,showComments:n,showRedactions:r,hasMobileLayout:!0,inlineTextSelectionToolbarItems:a,currentTextSelection:o,showAIAssistant:s})})}}var om=n(45755),im=n(84584),am=n(56157),sm=n.n(am);const lm=u.memo((function(e){const t=e.items.map(((t,n)=>{const{className:r,disabled:o,selected:i,icon:a,title:s,onPress:l}=t;return t.node?(0,oe.jsx)(Kc,{node:t.node,className:p()("PSPDFKit-Annotation-Tool-Node",e.itemClassName,r,sm().node),onPress:l,title:s,disabled:o,selected:i},`AnnotationTools-tool-${n}`):(0,oe.jsx)(Rc,{type:"custom",className:p()("PSPDFKit-Annotation-Tool-Button",e.itemClassName,r,sm().button),disabled:o,selected:i,icon:a,title:s,onPress:l},`AnnotationTools-tool-${n}`)}));return(0,oe.jsx)("div",{role:"toolbar",className:p()(sm().root,e.rootClassName),children:t})}));function cm(e){e.stopPropagation()}const um=(0,ve.j4)((e=>{const{children:t,fullScreen:n,hover:r,tools:o,intl:i,closeNote:a,clearNote:s,isLocked:l,isReadOnly:c,hasLockedContents:d,nodeRef:h,...f}=e,{formatMessage:m}=i,g=u.useRef(null);u.useEffect((function(){const e=h?.current||g.current;if(e)return e.addEventListener("wheel",cm,!0),()=>e.removeEventListener("wheel",cm,!0)}),[h]);const v=(0,Se.A)({type:"close"}),y=(0,Se.A)({type:"delete"}),b=(0,Se.A)({type:"lock",style:{width:12,height:12,flexBasis:12},className:dt().icon}),w=[c?m(xe.A.readOnlyAnnotationFlag):"",l?m(xe.A.locked):"",d?m(xe.A.lockedContents):""].filter((e=>""!==e)).join(", ");return(0,oe.jsxs)("div",{className:`PSPDFKit-Note-Annotation-Content ${dt().wrapper}${n?" "+dt().fullScreen:""}`,...f,ref:h||g,children:[(0,oe.jsxs)("div",{className:dt().header,children:[(0,oe.jsx)("h3",{className:dt().title,children:m(xe.A.noteAnnotation)}),(0,oe.jsx)("button",{className:p()(dt().button,r?dt().hidden:null),title:m(xe.A.close),"aria-label":m(xe.A.close),onClick:a||void 0,role:"button",type:"button",children:v})]}),(0,oe.jsx)("div",{className:dt().content,children:t}),s&&(0,oe.jsx)("button",{className:p()(dt().button,r?dt().hidden:null),title:m(xe.A.clear),"aria-label":m(xe.A.clear),onClick:s,role:"button",type:"button",children:y}),o&&!n&&(0,oe.jsx)("div",{className:dt().tools,children:(0,oe.jsx)(lm,{items:o,rootClassName:dt().tools,itemClassName:dt().tool})}),(0,oe.jsx)("div",{className:dt().footer,children:(l||c||d)&&(0,oe.jsxs)(oe.Fragment,{children:[b,(0,oe.jsx)("div",{className:dt().label,"aria-label":w,children:w})]})})]})})),dm={left:0,top:0,maxWidth:"100%",maxHeight:"auto",minWidth:"100%",minHeight:"100%"};class pm extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"_didUpdate",!1),(0,y.A)(this,"_didEditorFocus",!1),(0,y.A)(this,"shouldComponentUpdate",$.EF),(0,y.A)(this,"state",{value:this.props.annotation.text.value}),(0,y.A)(this,"focus",(()=>{this._isFocused||(this._isFocused=!0,this._editor&&this._editor.focus())})),(0,y.A)(this,"clearText",(()=>{this._editor&&this._editor.clearText()})),(0,y.A)(this,"_isFocused",!1),(0,y.A)(this,"_lastSavedAnnotation",this.props.annotation),(0,y.A)(this,"_onRef",(e=>{this._editor=e})),(0,y.A)(this,"_valueDidUpdate",(()=>{this._didUpdate=!0})),(0,y.A)(this,"_updateAnnotation",(()=>{if(this._didUpdate){const e=this.props.annotation.set("text",{format:"plain",value:this._editor?.getPlainText()});if(this._lastSavedAnnotation.text.value!==e.text.value||this._lastSavedAnnotation.text.format!==e.text.format)if(this._lastSavedAnnotation=e,e instanceof fr.iU){const t=e.parentAnnotation?.set("note",e.text.value);(0,l.V1)(t),this.props.dispatch((0,lt.g_)(t))}else this.props.dispatch((0,lt.g_)(e)),this.props.keepSelectedTool&&this.props.dispatch((0,Dt.R8)())}else this.props.keepSelectedTool&&this.props.dispatch((0,Dt.R8)())})),(0,y.A)(this,"_onBlur",(()=>{this._updateAnnotation()})),(0,y.A)(this,"_onStopEditing",(()=>{this._updateAnnotation(),this.props.dispatch((0,lt.ax)(!0))})),(0,y.A)(this,"_onEscape",(()=>{this.props.dispatch((0,we.J9)()),this._updateAnnotation()})),(0,y.A)(this,"_handleEditorFocus",(()=>{if(!this._didEditorFocus){const e={annotations:(0,a.B8)([this.props.annotation]),reason:ee.x.TEXT_EDIT_START};this.props.eventEmitter.emit("annotations.willChange",e)}this._didEditorFocus=!0}))}componentDidUpdate(e,t){this.props.annotation.text.value!==t.value&&this._editor&&(this._editor.innerText=this.props.annotation.text.value)}static getDerivedStateFromProps(e,t){return e.annotation.text.value!==t.value?{value:e.annotation.text.value}:null}componentWillUnmount(){if(this._didEditorFocus){const e={annotations:(0,a.B8)([this.props.annotation]),reason:ee.x.TEXT_EDIT_END};this.props.eventEmitter.emit("annotations.willChange",e)}this._updateAnnotation()}render(){return(0,oe.jsx)(Zr,{autoFocus:!1,autoSelect:this.props.autoSelect,onBlur:this._onBlur,onStopEditing:this._onStopEditing,onEscape:this._onEscape,ref:this._onRef,maxLength:_e.Mp,defaultValue:this.state.value,lastMousePoint:this.props.lastMousePoint,style:{...dm,cursor:this.props.uneditableContentCursor||"inherit"},valueDidUpdate:this._valueDidUpdate,onFocus:this._handleEditorFocus})}}(0,y.A)(pm,"defaultProps",{autoSelect:!1});var hm=n(14150);class fm extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"state",{}),(0,y.A)(this,"shouldComponentUpdate",$.EF),(0,y.A)(this,"_closeNote",(()=>{this.props.noteAnnotation instanceof fr.iU?this.props.dispatch((0,we.mm)(null)):this.props.dispatch((0,we.J9)())})),(0,y.A)(this,"_clearNote",(()=>{this._editor&&this._editor.clearText()})),(0,y.A)(this,"_preventDeselect",(e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()})),(0,y.A)(this,"_makeHandleMouseUpAndTouchEnd",(e=>(0,om.Q)((t=>{this.setState({lastMousePoint:new P.bR({x:t.clientX,y:t.clientY})},(()=>{this.props.dispatch((0,we._G)(e))}))})))),(0,y.A)(this,"_onRef",(e=>{this._editor=e,this.props.isFullscreen&&this._editor&&this._editor.focus()})),(0,y.A)(this,"_getGradient",(0,Wt.A)((e=>{let t=e.lighter(30);const n=Math.min(t.r,t.g,t.b);for(let e=0;e<10&&t.contrastRatio(P.Q1.BLACK)<4.5;e++)t=t.lighter((255-n)/25.5);return{top:t.lighter(30),bottom:t}}))),(0,y.A)(this,"isPopoverPositioned",!1),(0,y.A)(this,"onPopoverPositioned",(()=>{!this.isPopoverPositioned&&this._editor&&(this.isPopoverPositioned=!0,this._editor.focus())}))}render(){const{dispatch:e,noteAnnotation:t,noteAnnotationToModify:n,viewportState:r,isFullscreen:o,collapseSelectedNoteContent:i}=this.props;if(null==t.pageIndex||i)return null;const a=n&&t.id===n.id,s=t instanceof fr.iU,{color:c}=t,u=gm[c.toCSSValue()]||this._getGradient(c.saturate(60)),d=this.props.isAnnotationReadOnly(t),p=d||t.lockedContents;if(o){if(!a&&!d)return null;const n=c.toCSSValue(),o=`linear-gradient(to bottom, ${u.top.toCSSValue()} 0%, ${u.bottom.toCSSValue()} 100%)`,i=r.viewportRect.height-(this.props.annotationToolbarHeight<r.viewportRect.height?this.props.annotationToolbarHeight:0),l=(0,B.Zr)(t);return(0,oe.jsx)(um,{fullScreen:!0,hover:this.props.isHover,style:{backgroundColor:n,backgroundImage:o,width:"100%",height:i,top:i<r.viewportRect.height?this.props.annotationToolbarHeight:"auto"},onMouseUp:this._preventDeselect,onPointerUp:this._preventDeselect,onTouchEnd:this._preventDeselect,closeNote:this._closeNote,clearNote:a&&!p&&s?this._clearNote:void 0,id:`NoteAnnotationContent-${t.id}`,isLocked:t.locked,isReadOnly:t.readOnly,hasLockedContents:t.lockedContents,nodeRef:this.props.nodeRef,children:p?t.text.value:(0,oe.jsx)(pm,{annotation:t,dispatch:e,ref:this._onRef,autoSelect:this.props.autoSelect,eventEmitter:this.props.eventEmitter,keepSelectedTool:this.props.keepSelectedTool,uneditableContentCursor:l})},`NoteAnnotationContent-${t.id}`)}let h,f;a||p||(h=f=this._makeHandleMouseUpAndTouchEnd(t.id));const m=(0,Z.zo)(r,t.pageIndex).translate(r.scrollPosition.scale(r.zoomLevel)),g=t.update("boundingBox",(e=>((0,l.V1)(e),e.merge({left:e.left+(e.width-e.width/r.zoomLevel)/2,top:e.top+(e.height-e.height/r.zoomLevel)/2,width:e.width/r.zoomLevel,height:e.height/r.zoomLevel})))),v=(0,B.Zr)(t,{isExpandedNote:!0});return(0,oe.jsx)(hm.A,{referenceRect:(0,B.hI)(g,r.zoomLevel,r.pagesRotation).apply(m),viewportState:r,onPositionInfoChange:this.onPopoverPositioned,baseColor:c,color:[u.top,u.bottom],className:"PSPDFKit-Popover-Note-Annotation",customZIndex:1001,nodeRef:this.props.nodeRef,children:(0,oe.jsx)(um,{onMouseUp:h,onTouchEnd:f,tools:this.props.tools,closeNote:this._closeNote,clearNote:a&&!p&&s?this._clearNote:void 0,hover:this.props.isHover,id:`NoteAnnotationContent-${t.id}`,style:{cursor:v},isLocked:t.locked,isReadOnly:t.readOnly,hasLockedContents:t.lockedContents,children:p?t.text.value:(0,oe.jsx)(pm,{annotation:t,dispatch:e,ref:a?this._onRef:void 0,lastMousePoint:this.state.lastMousePoint,autoSelect:this.props.autoSelect,eventEmitter:this.props.eventEmitter,keepSelectedTool:this.props.keepSelectedTool,uneditableContentCursor:v})})})}}(0,y.A)(fm,"defaultProps",{autoSelect:!1});const mm={yellow:{top:new P.Q1({r:245,g:240,b:158}),bottom:new P.Q1({r:250,g:247,b:106})},orange:{top:new P.Q1({r:250,g:213,b:161}),bottom:new P.Q1({r:255,g:184,b:112})},red:{top:new P.Q1({r:255,g:181,b:178}),bottom:new P.Q1({r:255,g:134,b:126})},fuchsia:{top:new P.Q1({r:255,g:186,b:255}),bottom:new P.Q1({r:240,g:139,b:233})},blue:{top:new P.Q1({r:164,g:211,b:255}),bottom:new P.Q1({r:113,g:166,b:244})},green:{top:new P.Q1({r:190,g:255,b:161}),bottom:new P.Q1({r:130,g:227,b:111})}},gm={};for(const e of im.p)null!=e.color&&null!=e.localization.id&&(gm[e.color.toCSSValue()]=mm[e.localization.id]);var vm=n(77788),ym=n(13587),bm=n.n(ym);class wm extends u.PureComponent{constructor(){super(...arguments),(0,y.A)(this,"elementRef",u.createRef()),(0,y.A)(this,"state",{isPanning:!1}),(0,y.A)(this,"initialPosition",null),(0,y.A)(this,"previousPosition",null),(0,y.A)(this,"_handleDragStart",(e=>{this.props.enabled&&(0,vm.e)(e)&&(this.initialPosition=this.previousPosition=new z.bR({x:e.clientX,y:e.clientY}),this.setState({isPanning:!0}),this._addEventListeners())})),(0,y.A)(this,"_handleDragMove",(e=>{if(!(0,vm.s)(e))return void this._handleDragEnd(e);if(!this.props.enabled||!this.previousPosition)return;const t=new z.bR({x:e.clientX,y:e.clientY}),n=this.previousPosition.translate(t.scale(-1)),r=this.props.scrollElement,{scrollLeft:o,scrollTop:i}=r;r.scrollLeft=o+n.x,r.scrollTop=i+n.y,this.previousPosition=t,e.stopPropagation()})),(0,y.A)(this,"_handleDragEnd",(e=>{this.initialPosition&&this.previousPosition&&(Tt(this.initialPosition,this.previousPosition)&&(e.stopPropagation(),e.stopImmediatePropagation()),this.previousPosition=null,this.setState({isPanning:!1}),this._removeEventListeners())}))}componentDidMount(){this.elementRef.current&&this.elementRef.current.addEventListener("mousedown",this._handleDragStart)}componentWillUnmount(){this.elementRef.current&&this.elementRef.current.removeEventListener("mousedown",this._handleDragStart),this._removeEventListeners()}render(){const{enabled:e}=this.props,{isPanning:t}=this.state,n=p()({[bm().layer]:e,[bm().isPanning]:t});return(0,oe.jsx)("div",{className:n,ref:this.elementRef,children:this.props.children})}_addEventListeners(){const{defaultView:e}=this.props.scrollElement.ownerDocument;e?.addEventListener("mouseup",this._handleDragEnd,!0),e?.addEventListener("mousemove",this._handleDragMove)}_removeEventListeners(){const e=this.props.scrollElement;if(!e)return;const{defaultView:t}=e.ownerDocument;t&&(t.removeEventListener("mouseup",this._handleDragEnd,!0),t.removeEventListener("mousemove",this._handleDragMove))}}const xm=u.memo((function(e){const{dispatch:t,viewportState:n,interactionMode:r,spreadIndex:o,connectionState:i}=e,a=u.useRef(null);u.useEffect((()=>{null!==a.current&&a.current!==o&&(r===L.O.SEARCH?t((0,we.od)()):t((0,we.J9)())),a.current=o}),[t,o,r]);const[s,l]=(0,ia.rY)(n,o,i.name);if(0===n.viewportRect.width||0===n.viewportRect.height)return null;function c(t,r,o){const i={transform:(0,Z.s4)(z.XF.IDENTITY,n,t).toCssValue(),transformOrigin:"0 0"},a=(0,ia.uM)(n)===mu.S.DOUBLE?t.toString():e.pageKeys.get(t);return(0,oe.jsx)("div",{className:"PSPDFKit-Spread",style:i,"data-spread-index":t,children:(0,oe.jsx)(Df,{spreadIndex:t,viewportState:n,inViewport:r,shouldPrerender:o,hidden:!r,onOverviewRenderFinished:l,pageKeys:e.pageKeys,setGlobalCursor:e.setGlobalCursor,connectionState:e.connectionState},a)},a)}return(0,oe.jsx)(Tf.A,{dispatch:e.dispatch,viewportState:n,children:(0,oe.jsx)("div",{children:function(e){const t=[];if(t.push(c(e,!0,!1)),n.scrollMode===ha.V.DISABLED)return t;const r=(0,ia.og)(n),o=n.prerenderedPageSpreads??r,i=Math.max(e-o,0),a=Math.min(e+o,r-1);for(let n=i;n<=a;n++)n!==e&&t.push(c(n,!1,"number"==typeof s&&e===s));return t}(o)})})}));var Sm=n(15168),_m=n(91715),Cm=n.n(_m),Em=n(45306);const km=!(!Sm.fS||"edge"==b.Hi)&&{passive:!0};class zm extends u.Component{constructor(){super(),(0,y.A)(this,"_elementRef",u.createRef()),(0,y.A)(this,"_handleWheel",(e=>{const{viewportState:t,scrollElement:n}=this.props,r=t.zoomLevel<=(0,sa.bo)(t);let o=!0;if(n){const{clientHeight:e,scrollHeight:r}=n;o=t.commentMode!==Em.X.SIDEBAR||t.scrollMode!==ha.V.PER_SPREAD||t.scrollPosition.y+e>=r}if(!(r&&o))return;const i=(0,Z.z1)(t);e.clientX>Math.ceil(i.left)+i.width+t.viewportPadding.x||(e.deltaY<0?this.props.dispatch((0,vc.$w)()):e.deltaY>0&&this.props.dispatch((0,vc.Zj)()))})),(0,y.A)(this,"_handleSwipeLeft",(()=>{const e=(0,aa.nr)(this.props.viewportState);Math.ceil(this.props.viewportState.scrollPosition.x)>=Math.floor(e.x)&&this.props.dispatch((0,vc.Zj)())})),(0,y.A)(this,"_handleSwipeRight",(()=>{Math.floor(this.props.viewportState.scrollPosition.x)<=0&&this.props.dispatch((0,vc.$w)())})),(0,y.A)(this,"_handleTouchStart",(e=>{const t=this._elementRef.current;t&&null===this._touchStart&&(0,Ds.KK)(e)&&(this._touchStart=Mm(e),t.ownerDocument.addEventListener("touchend",this._handleTouchEnd,!0))})),(0,y.A)(this,"_handleTouchEnd",(e=>{const t=this._elementRef.current;if(!t)return;const n=this._touchStart;if(!n)return;const r=Mm(e),o=r.x-n.x,i=r.y-n.y,a=function(e,t,n){const r=t/e||0,o=n/e||0;return Math.abs(r)>Math.abs(o)?r:o}(r.timestamp-n.timestamp,o,i),s=function(e,t){const n=t.x-e.x,r=t.y-e.y;return Math.sqrt(n*n+r*r)}(n,r),l=function(e,t){if(e===t)return Pm;if(Math.abs(e)>=Math.abs(t))return e<0?Am:Dm;return t<0?Tm:Im}(o,i);if(s>10&&Math.abs(a)>.3&&!this.props.interactionsDisabled)switch(l){case Am:this._handleSwipeLeft();break;case Dm:this._handleSwipeRight()}t.ownerDocument.removeEventListener("touchend",this._handleTouchEnd,!0),this._touchStart=null})),(0,y.A)(this,"_handleClick",(e=>{const t=this._elementRef.current;if(!t||this.props.hasSelection||t.ownerDocument.defaultView&&e.target instanceof t.ownerDocument.defaultView.HTMLElement&&(0,Wf.B)(e.target))return;const n=t.getBoundingClientRect(),r=(e.clientX-n.left)/n.width;r<.3?this._handleSwipeRight():r>.7&&this._handleSwipeLeft()})),this._handleWheel=(0,lf.A)(this._handleWheel,250),this._touchStart=null}componentDidMount(){const e=this._elementRef.current;e&&(e.addEventListener("touchstart",this._handleTouchStart),e.addEventListener("wheel",this._handleWheel,km))}componentWillUnmount(){const e=this._elementRef.current;e&&(e.removeEventListener("touchstart",this._handleTouchStart),e.removeEventListener("wheel",this._handleWheel,km),e.ownerDocument.removeEventListener("touchend",this._handleTouchEnd,!0))}render(){return(0,oe.jsx)("div",{className:Cm().root,onClick:this._handleClick,ref:this._elementRef,children:this.props.children})}}const Pm=0,Am=1,Dm=2,Tm=3,Im=4;function Mm(e){const t=e.touches[0]||e.changedTouches[0];return{x:t.clientX,y:t.clientY,timestamp:Date.now()}}var Nm=n(8431),Om=n.n(Nm);const Rm=function(e){let{progress:t,totalPages:n}=e;const{formatMessage:r}=(0,ve.tz)(),i=(0,s.wA)(),a=u.useCallback((()=>{(0,s.vA)((()=>{i((0,Dt.JN)()),i((0,Su.be)())}))}),[i]);return(0,oe.jsx)(jf.A,{onEscape:a,accessibilityLabel:r(jm.printProgressModal),accessibilityDescription:r(jm.printProgressModalDesc),children:(0,oe.jsxs)("div",{className:Om().root,children:[(0,oe.jsx)("div",{children:r(jm.printPrepare)}),"number"==typeof t&&(0,oe.jsxs)(u.Fragment,{children:[(0,oe.jsxs)("div",{className:Om().progressWrapper,children:[(0,oe.jsx)("div",{className:Om().progress,"aria-label":`${t}% complete`,role:"progressbar","aria-valuenow":t,children:(0,oe.jsx)("div",{className:Om().progressBar,style:{width:`${Math.floor(100*t/n)}%`}})}),(0,oe.jsx)("div",{className:Om().progressText,children:r(jm.pageXofY,{arg0:t,arg1:n})})]}),(0,oe.jsx)(o.$n,{title:r(xe.A.cancel),onClick:a,children:r(xe.A.cancel)})]})]})})},jm=(0,ve.YK)({pageXofY:{id:"pageXofY",defaultMessage:"Page {arg0} of {arg1}",description:"Printing processing progress"},printPrepare:{id:"printPrepare",defaultMessage:"Preparing document for printing…",description:"Shown while the printing process is preparing the pages for printing"},printProgressModal:{id:"printProgressModal",defaultMessage:"Printing in progress",description:"Printing in progress modal"},printProgressModalDesc:{id:"printProgressModalDesc",defaultMessage:"Indicates that a document is being prepared for printing",description:"Description for the Printing in progress modal"}});var Fm,Bm=n(60941),Lm=n.n(Bm);const Vm=function(){const{formatMessage:e}=(0,ve.tz)();return(0,oe.jsx)(jf.A,{accessibilityLabel:e(Km.signingModal),accessibilityDescription:e(Km.signingModalDescription),children:(0,oe.jsxs)("div",{className:Lm().root,children:[(0,oe.jsx)(Te.A,{src:n(92733),className:Lm().icon,role:"presentation"}),(0,oe.jsxs)("div",{className:Lm().message,children:[e(Km.signing),Fm||(Fm=(0,oe.jsx)(Ie.A,{}))]})]})})},Km=(0,ve.YK)({signing:{id:"signing",defaultMessage:"Signing...",description:"Shown while the digital signature flow is in progress"},signingModal:{id:"signingInProgress",defaultMessage:"Signing in progress",description:"Signing in progress modal"},signingModalDescription:{id:"signingModalDesc",defaultMessage:"Indicates that the current document is being signed",description:"Description of the Signing in progress modal"}});var Hm,$m=n(16821),Um=n.n($m);function Wm(){const{formatMessage:e}=(0,ve.tz)();return(0,oe.jsx)(jf.A,{accessibilityLabel:e(qm.redactionsModal),accessibilityDescription:e(qm.redactionModalDescription),children:(0,oe.jsxs)("div",{className:Um().root,children:[(0,oe.jsx)(Te.A,{src:n(79784),className:Um().icon,role:"presentation"}),(0,oe.jsxs)("div",{className:Um().message,children:[e(qm.applyingRedactions),Hm||(Hm=(0,oe.jsx)(Ie.A,{}))]})]})})}const qm=(0,ve.YK)({applyingRedactions:{id:"applyingRedactions",defaultMessage:"Applying redactions...",description:"Shown while the redactions flow is in progress"},redactionsModal:{id:"redactionInProgress",defaultMessage:"Redaction in progress",description:"Redaction in progress modal"},redactionModalDescription:{id:"redactionModalDesc",defaultMessage:"Indicates that the current document is being redacted",description:"Description of the Redacted in progress modal"}});var Gm=n(51230),Zm=n.n(Gm);const Ym={WebkitOverflowScrolling:"touch",overflow:"auto"},Xm=[Bn.IA,Bn.jE,Bn.hH,Bn.Qm];class Jm extends u.PureComponent{constructor(e){super(e),(0,y.A)(this,"usingNavigationKeys",!1),(0,y.A)(this,"handleScroll",(0,lf.A)(this.handleScroll.bind(this),100,!0)),(0,y.A)(this,"handleKeyDown",(e=>{Xm.indexOf(e.keyCode)>=0&&!this.usingNavigationKeys&&(this.usingNavigationKeys=!0)})),(0,y.A)(this,"handleKeyUp",(e=>{Xm.indexOf(e.keyCode)>=0&&this.usingNavigationKeys&&(this.usingNavigationKeys=!1)})),(0,y.A)(this,"_handleRef",(e=>{e&&(this.element=e,this.props.onScrollElementChange(e))})),this.previousKnownScrollPosition=new P.bR,this.previousKnownZoomLevel=1}updateScrollbarOffset(e){const t=this.element.offsetWidth-this.element.clientWidth;if(t===this.previousScrollbarOffset)return;const n="hidden"!==this.element.style.overflow;"number"==typeof t&&e!=t&&n&&this.props.dispatch((0,Dt.Ib)(t)),this.previousScrollbarOffset=t}componentDidUpdate(e){this.element.offsetWidth-this.element.clientWidth!==e.scrollbarOffset&&requestAnimationFrame((()=>this.updateScrollbarOffset(e.scrollbarOffset))),this.updateScrollPosition()}componentDidMount(){this.updateScrollbarOffset(),this.updateScrollPosition(),this.props.dispatch((0,Dt.u7)(this.element)),this.element.ownerDocument.addEventListener("keydown",this.handleKeyDown),this.element.ownerDocument.addEventListener("keyup",this.handleKeyUp)}componentWillUnmount(){this.props.dispatch((0,Dt.u7)(null)),this.element.ownerDocument.removeEventListener("keydown",this.handleKeyDown),this.element.ownerDocument.removeEventListener("keyup",this.handleKeyUp)}updateScrollPosition(){const{viewportState:e}=this.props;if(0===e.viewportRect.width)return;if(this.previousKnownScrollPosition.equals(e.scrollPosition)&&this.previousKnownZoomLevel===e.zoomLevel)return;const t=this.element,n=Math.round(e.scrollPosition.x*e.zoomLevel),r=Math.round(e.scrollPosition.y*e.zoomLevel);t.scrollTop!==r&&(t.scrollTop=r),t.scrollLeft!==n&&(t.scrollLeft=n),this.previousKnownScrollPosition=e.scrollPosition,this.previousKnownZoomLevel=e.zoomLevel}handleScroll(){const{dispatch:e,viewportState:t}=this.props,{scrollPosition:n,zoomLevel:r}=t;if(0===t.viewportRect.width)return;const o=this.element;if(void 0===o.scrollTop||void 0===o.scrollLeft)return;const i=new P.bR({x:o.scrollLeft/r,y:o.scrollTop/r}),a=function(e,t,n){const r=1/n;return Math.abs(e.x-t.x)>r||Math.abs(e.y-t.y)>r}(n,i,r);a&&(this.previousKnownScrollPosition=i,this.previousKnownZoomLevel=r,e((0,vc.XP)(i,this.usingNavigationKeys)))}render(){const{children:e,scrollDisabled:t}=this.props;return(0,oe.jsx)("div",{ref:this._handleRef,className:`PSPDFKit-Scroll ${Zm().root}`,style:{...Ym,overflow:t?"hidden":"auto"},onScroll:this.handleScroll,children:e})}}class Qm{constructor(e,t,n){const r=e.getRangeAt(0);let o=new P.vY;if(this.selection=e,this.className=n,this.rootElement=t,this.isShadowRoot=t instanceof ShadowRoot,this.window=this.isShadowRoot?window:t.ownerDocument.defaultView,this.commonAncestorContainer=r.commonAncestorContainer,e.rangeCount>1){const t=e.getRangeAt(e.rangeCount-1);r.setEnd(t.endContainer,t.endOffset)}const i=!t?.contains(r.startContainer),a=!t?.contains(r.endContainer);(0,l.V1)(t);const s=!this.commonAncestorContainer?.contains(t);if(i&&a&&s)this.textRange=null;else{if(r.startContainer instanceof this.window.Text&&t?.contains(r.startContainer)&&this._parentsMatchClass(r.startContainer))o=o.set("startNode",r.startContainer).set("startOffset",r.startOffset);else if(r.startContainer instanceof this.window.Element||r.startContainer instanceof this.window.Text){let e;if(e=r.startContainer.hasChildNodes()?this._nextTextNode(r.startContainer.childNodes[r.startOffset]):this._nextTextNode(r.startContainer),null==e)return void(this.textRange=null);o=o.set("startNode",e).set("startOffset",0)}else(0,l.V1)(!1,"Selected start container is neither DOM Element nor Text");if(r.endContainer instanceof this.window.Text&&t?.contains(r.endContainer)&&this._parentsMatchClass(r.endContainer))o=o.set("endNode",r.endContainer).set("endOffset",r.endOffset);else if(r.endContainer instanceof this.window.Element||r.endContainer instanceof this.window.Text){let e;if(r.endContainer.hasChildNodes())if(r.endOffset>=r.endContainer.childNodes.length){let t=this._nextCrossSibling(r.endContainer);t||(t=r.endContainer.childNodes[r.endContainer.childNodes.length-1]),e=this._previousTextNode(t)}else e=this._previousTextNode(r.endContainer.childNodes[r.endOffset]);else e=this._previousTextNode(r.endContainer);if(null==e)return void(this.textRange=null);o=o.set("endNode",e).set("endOffset",e.length)}else(0,l.V1)(!1,"Selected start container is neither DOM Element nor Text");if(o.startNode==o.endNode&&o.startOffset>=o.endOffset)return void(this.textRange=null);if(!this._isBeforeOrSame(o.startNode,o.endNode))return void(this.textRange=null);this.textRange=o}}getTextRange(){return this.textRange}_nextTextNode(e){let t=this._findNextSpanNodeInTree(e);if(e===this.commonAncestorContainer)return null;let n=e;for(;!t;){if(n=this._nextCrossSibling(n),null==n)return null;t=this._findNextSpanNodeInTree(n)}return t.firstChild}_previousTextNode(e){let t=null;if(e===this.commonAncestorContainer)return null;let n=e;for(;!t;){if(n=this._previousCrossSibling(n),null==n)return null;t=this._findLastSpanNodeInTree(n)}return t.firstChild}_nextCrossSibling(e){if(!e)return null;if(null!=e.nextSibling)return e.nextSibling;const t=e.parentElement;return null==t||t===this.commonAncestorContainer?null:null!=t.nextSibling?t.nextSibling:this._nextCrossSibling(t)}_previousCrossSibling(e){if(null!==e.previousSibling)return e.previousSibling;const t=e.parentElement;return null==t||t===this.commonAncestorContainer?null:null!==t.previousSibling?t.previousSibling:this._previousCrossSibling(t)}_findNextSpanNodeInTree(e){if(e instanceof this.window.HTMLElement&&e.classList.contains(this.className))return e;if(e instanceof this.window.HTMLElement)for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t],r=this._findNextSpanNodeInTree(n);if(null!==r)return r}return null}_findLastSpanNodeInTree(e){if(e instanceof this.window.HTMLElement&&e.classList.contains(this.className))return e;if(e instanceof this.window.HTMLElement)for(let t=e.childNodes.length-1;t>=0;t--){const n=e.childNodes[t],r=this._findLastSpanNodeInTree(n);if(null!==r)return r}return null}_parentsMatchClass(e){let t=e.parentElement;for(;t;){if(t instanceof this.window.HTMLElement&&t.classList.contains(this.className))return!0;if(t instanceof this.window.ShadowRoot)break;t=t.parentElement}return!1}_isBeforeOrSame(e,t){const n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=0==e.compareDocumentPosition(t);return n||r}}var eg=n(41143),tg=n.n(eg);let ng=null,rg=null;const og=(e,t)=>e.container===t.container&&e.offset===t.offset,ig={Left:!0,ArrowLeft:!0,Top:!0,ArrowTop:!0,Right:!0,ArrowRight:!0,Bottom:!0,ArrowBottom:!0,Home:!0,End:!0,PageDown:!0,PageUp:!0,Esc:!0,Escape:!0};class ag extends u.PureComponent{constructor(){super(...arguments),(0,y.A)(this,"isMouseSelection",!1),(0,y.A)(this,"pointerMadeSelection",!1),(0,y.A)(this,"isShiftPressed",!1),(0,y.A)(this,"isPrimaryPointerGesture",!1),(0,y.A)(this,"isSelecting",!1),(0,y.A)(this,"selectionRange",document.createRange()),(0,y.A)(this,"preventDefaultPointerUpAction",!1),(0,y.A)(this,"_handleSelectStart",(()=>{this.props.interactionMode!==L.O.TEXT_HIGHLIGHTER&&this.props.interactionMode!==L.O.REDACT_TEXT_HIGHLIGHTER||(this.isShiftPressed?this._processTextSelection(b.LZ?"touch":"mouse"):this.props.dispatch((0,we.nb)((0,a.NZ)(),this.props.interactionMode===L.O.TEXT_HIGHLIGHTER?P.ax:Y.A)))})),(0,y.A)(this,"_handleSelectionChange",(()=>{const{interactionMode:e,shadowRoot:t,rootElement:n}=this.props,{defaultView:r}=n.ownerDocument;let o,i;if(b.nr&&t)o=t?.getSelection();else{const{selection:e,isFalseCollapse:n}=t?(0,w.lY)(t):(0,w.tb)(r);o=e,i=n}!this.pointerMadeSelection&&(e=>{if(e.rangeCount<=0)return!1;if(e.rangeCount>1){const t=e.getRangeAt(e.rangeCount-1);t.setEnd(t.endContainer,t.endOffset)}const t=e.getRangeAt(0),{startContainer:n,endContainer:r,startOffset:o,endOffset:i}=t,a={container:n,offset:o},s={container:r,offset:i};let l;return l=null===ng||null===rg||!(og(ng,a)||og(rg,s)||og(ng,s)||og(rg,a)),ng=a,rg=s,l})(o)&&(this._handleSelectStart(),this.pointerMadeSelection=!0),this.isMouseSelection&&e!==L.O.TEXT_HIGHLIGHTER&&e!==L.O.REDACT_TEXT_HIGHLIGHTER||(o&&!o.isCollapsed||i)&&this._processTextSelection(b.LZ?"touch":"mouse")})),(0,y.A)(this,"_handlePointerUp",(e=>{let{pointerType:t,shiftKey:n,target:r}=e;if(r.closest(".BaselineUI-Dialog")||r.closest(".BaselineUI-Popover-Content")||r.closest(".BaselineUI-Popover-Underlay")||r.closest('.BaselineUI-ThemeProvider[data-testid="underlay"]')||r.closest(".PSPDFKit-Comment-Thread"))return;if(this.preventDefaultPointerUpAction)return void(this.preventDefaultPointerUpAction=!1);if(this.preventDefaultPointerUpAction=!1,!this.isPrimaryPointerGesture)return;"mouse"===t&&(this.isMouseSelection=!1);const o=r;if(o?.classList&&o.classList.contains("PSPDFKit-Scroll"))return;this.pointerMadeSelection=!1,this.isShiftPressed=n;const i=this.props.selectedAnnotationIds.size>1;this.isShiftPressed||b.LZ&&i||window.setTimeout((()=>{this._checkForTextSelection(t)}),0)})),(0,y.A)(this,"_handlePointerDown",(e=>{let{pointerType:t,shiftKey:n,isPrimary:r}=e;this.isPrimaryPointerGesture=r,"mouse"===t&&(this.isMouseSelection=!0,this.isShiftPressed=n)})),(0,y.A)(this,"_handleKeyUp",(e=>{const{rootElement:t,shadowRoot:n}=this.props;if(t){const r=n?n.ownerDocument.defaultView:t.ownerDocument.defaultView;this.isShiftPressed=e.shiftKey;const o=e.composedPath()[0];if(!ig.hasOwnProperty(e.key)||r&&o instanceof r.HTMLElement&&((0,Yn.kM)(o,r)||(0,Yn.jU)(o)||(0,Yn.UN)(o)||(0,Yn.X6)(o)))return;window.setTimeout((()=>{e.defaultPrevented||this._checkForTextSelection("mouse")}),0)}}))}componentDidMount(){const{rootElement:e,shadowRoot:t}=this.props,n=t?.ownerDocument||e.ownerDocument,r=t||e.ownerDocument;n&&(r.addEventListener("keyup",this._handleKeyUp),n.addEventListener("selectionchange",this._handleSelectionChange))}componentWillUnmount(){const{rootElement:e,shadowRoot:t}=this.props,n=t?.ownerDocument||e.ownerDocument,r=t||e.ownerDocument;n&&(r.removeEventListener("keyup",this._handleKeyUp),n.removeEventListener("selectionchange",this._handleSelectionChange)),ng=null,rg=null}_checkForTextSelection(e){const{dispatch:t,currentTextSelection:n,selectedAnnotationIds:r,activeAnnotationNote:o,rootElement:i,interactionMode:a,shadowRoot:s}=this.props,{defaultView:l}=i.ownerDocument,c=s||i.ownerDocument;if(this.props.modalClosurePreventionError&&r.includes(this.props.modalClosurePreventionError.annotationId)){const e=c.querySelector(".PSPDFKit-Form-Creator-Popover > .PSPDFKit-Popover");return e?.classList.add(tg().shakeEffect),void setTimeout((()=>{e?.classList.remove(tg().shakeEffect)}),200)}if(!l)return;const{selection:u,isFalseCollapse:d}=s?(0,w.lY)(s):(0,w.tb)(l);u&&(!u.isCollapsed||d?this._processTextSelection(e):(n||r.size>0||o)&&(a===L.O.TEXT_HIGHLIGHTER||a===L.O.REDACT_TEXT_HIGHLIGHTER||a===L.O.CONTENT_EDITOR?(this.isShiftPressed&&t((0,we.F6)(a===L.O.TEXT_HIGHLIGHTER?P.ax:Y.A)),t((0,we.od)())):t((0,we.J9)())))}_processTextSelection(e){const{dispatch:t,rootElement:n,interactionMode:r,shadowRoot:o}=this.props,{defaultView:i}=n.ownerDocument;if(!i&&!o)return;let a;if(b.nr&&o)a=o.getSelection();else{const{selection:e}=o?(0,w.lY)(o):(0,w.tb)(i);a=e}if(!a)return;const l=a.rangeCount>0?((e,t,n)=>new Qm(e,t,n).getTextRange())(a,o||n,ba().selectableText):null;null!=l&&(0,s.vA)((()=>{t((0,we.$G)(l,"mouse"===e&&r!==L.O.TEXT_HIGHLIGHTER&&r!==L.O.REDACT_TEXT_HIGHLIGHTER)),r===L.O.TEXT_HIGHLIGHTER?t((0,we.Xd)(P.ax)):r===L.O.REDACT_TEXT_HIGHLIGHTER&&t((0,we.Xd)(Y.A))}))}render(){return(0,oe.jsx)(Ue.A,{onPointerUp:this._handlePointerUp,onPointerDown:this._handlePointerDown,onPointerDownCapture:e=>{e.target.closest(".BaselineUI-Dialog")&&(this.preventDefaultPointerUpAction=!0)},children:(0,oe.jsx)("div",{children:this.props.children})})}}const sg=(0,u.createContext)(null),lg={didCatch:!1,error:null};class cg extends u.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=lg}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:o,reason:"imperative-api"}),this.setState(lg)}}componentDidCatch(e,t){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var o,i;n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some(((e,n)=>!Object.is(e,t[n])))}(e.resetKeys,r)&&(null===(o=(i=this.props).onReset)||void 0===o||o.call(i,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(lg))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:o,error:i}=this.state;let a=e;if(o){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)a=t(e);else if(n)a=(0,u.createElement)(n,e);else{if(null!==r&&!(0,u.isValidElement)(r))throw i;a=r}}return(0,u.createElement)(sg.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}var ug=n(27678),dg=n.n(ug);function pg(e,t){return e>t?t/1.5:e}class hg extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"sidebarRef",u.createRef()),(0,y.A)(this,"state",{size:Math.min(this.props.initialSize,this.props.maxWidth),prevSize:Math.min(this.props.initialSize,this.props.maxWidth)}),(0,y.A)(this,"onResize",(e=>{const{size:t}=this.state,{onResize:n}=this.props,r=this.sidebarRef.current&&this.sidebarRef.current.getBoundingClientRect();r&&n?.({sidebarRect:r,isDragging:e,size:t})})),(0,y.A)(this,"onResizeFinish",(e=>{e!==this.props.initialSize&&this.props.dispatch((0,vc.xT)(e))})),(0,y.A)(this,"onDrag",((e,t)=>{const{minWidth:n,maxWidth:r}=this.props;this.setState((t=>{let{size:o}=t;return e<n?{size:n,prevSize:n}:e>r||r-e<10?{size:r,prevSize:o}:{size:e,prevSize:o}}),(()=>{this.onResize(t)}))})),(0,y.A)(this,"onDoubleClick",(()=>{const{maxWidth:e}=this.props;this.setState((t=>{let{size:n,prevSize:r}=t;return n===e?{size:pg(r,e)}:{size:e,prevSize:n}}),(()=>this.onResize(!1)))}))}componentDidMount(){this.onResize(!1)}componentDidUpdate(e){const{size:t,prevSize:n}=this.state,{maxWidth:r}=this.props;r!==e.maxWidth&&(t===e.maxWidth||t>r)?this.setState({size:r,prevSize:pg(n,r)}):this.props.initialSize!==e.initialSize&&this.setState({size:this.props.initialSize})}componentWillUnmount(){this.onResize(!1)}render(){const{size:e}=this.state,{draggerSize:t,isRTL:n,maxWidth:r,minWidth:o}=this.props;return(0,oe.jsx)("div",{ref:this.sidebarRef,children:(0,oe.jsx)(fg,{size:e,onDrag:this.onDrag,onDoubleClick:this.onDoubleClick,onResizeFinish:this.onResizeFinish,draggerSize:t,isRTL:n,currentValue:Math.round((e-o)/(r-o)*100),shadowRoot:this.props.shadowRoot,children:(0,oe.jsx)(cg,{fallbackRender:e=>{let{error:{message:t}}=e;return(0,l.z3)(t),t},children:this.props.children(e-t,t)})})})}}class fg extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"state",{isDragging:!1,previousPosition:null}),(0,y.A)(this,"_handlePointerDown",(e=>{const{isPrimary:t}=e;if(!t)return;const n=new z.bR({x:e.clientX,y:e.clientY});this.setState({isDragging:!0,previousPosition:n})})),(0,y.A)(this,"_handlePointerMove",(e=>{if(!this.state.isDragging)return;const t=new z.bR({x:e.clientX,y:e.clientY});this._handleDrag(t)})),(0,y.A)(this,"_handlePointerUp",(e=>{if(!this.state.isDragging)return;this.setState({isDragging:!1});const{previousPosition:t}=this.state;if(!t)return;const n=new z.bR({x:e.clientX,y:e.clientY}),r=this.props.size+(this.props.isRTL?t.x-n.x:n.x-t.x);this.props.onResizeFinish(r)})),(0,y.A)(this,"_handleDoubleClick",(()=>{this.props.onDoubleClick()})),(0,y.A)(this,"_handleKeyDown",(e=>{const{size:t,isRTL:n,onDrag:r,onDoubleClick:o}=this.props;"ArrowRight"===e.key?r(n?t-2:t+2,!1):"ArrowLeft"===e.key?r(n?t+2:t-2,!1):"Enter"===e.key&&o()})),(0,y.A)(this,"_handleDrag",(e=>{const{previousPosition:t}=this.state;if(!t)return;const n=this.props.size+(this.props.isRTL?t.x-e.x:e.x-t.x);this.props.onDrag(n,!1),this.setState({previousPosition:e})}))}render(){const{isRTL:e,draggerSize:t,currentValue:n}=this.props;return(0,oe.jsxs)("div",{className:`${dg().sidebar} ${(0,hu.UV)({backgroundColor:"background.primary.subtle"})} PSPDFKit-Sidebar`,style:{width:this.props.size,position:"relative",overflow:"hidden",[e?"paddingLeft":"paddingRight"]:t},children:[this.props.children,(0,oe.jsx)("div",{onDoubleClick:this._handleDoubleClick,children:(0,oe.jsx)(Ue.A,{onPointerDown:this._handlePointerDown,onRootPointerMoveCapture:this._handlePointerMove,onRootPointerUpCapture:this._handlePointerUp,children:(0,oe.jsx)("div",{style:{[e?"left":"right"]:0,width:t},className:`${dg().dragger} PSPDFKit-Sidebar-Dragger`,children:(0,oe.jsx)("div",{tabIndex:0,role:"separator","aria-label":"Resizer handle","aria-orientation":"vertical","aria-valuenow":n,onKeyDown:this._handleKeyDown,style:this.props.shadowRoot?{}:{[e?"right":"left"]:this.props.size-t},className:`${dg().draggerHandle} PSPDFKit-Sidebar-DraggerHandle`})})})})]})}}class mg extends u.PureComponent{render(){const{formatMessage:e}=this.props.intl;return(0,oe.jsx)(jf.A,{role:"dialog",onEscape:this.props.onEscape,background:"rgba(0,0,0,.1)",className:Kn().modal,accessibilityLabel:e(gg.signatureDialog),accessibilityDescription:e(gg.signatureDialogDescription),children:this.props.children})}}const gg={signatureDialog:{id:"signatureDialog",defaultMessage:"Signature",description:"Signature Dialog"},signatureDialogDescription:{id:"signatureDialogDesc",defaultMessage:"This dialog lets you select an ink signature to insert into the document. If you do not have stored signatures, you can create one using the canvas view.",description:"Signature Dialog description"}},vg=(0,ve.j4)(mg);var yg=n(89398),bg=n(97328),wg=n.n(bg);const xg=["Tab","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"];class Sg extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"state",{keyboardFocus:!!this.props.lastToolbarActionUsedKeyboard}),(0,y.A)(this,"_handleKeyUp",(e=>{xg.includes(e.key)&&this.setState({keyboardFocus:!0})})),(0,y.A)(this,"_handlePointerUp",(()=>{this.setState({keyboardFocus:!1})})),(0,y.A)(this,"shouldComponentUpdate",$.EF)}componentDidMount(){const e=this.props.innerRef?.current?.parentNode;e&&e.focus()}render(){const{colorPresets:e,activeColor:t,innerRef:n}=this.props,{formatMessage:r}=this.props.intl;return this.props.colorPresets.length<2?null:(0,oe.jsx)("div",{className:p()("PSPDFKit-Input-ColorPicker",this.props.className,wg().root),role:"radiogroup","aria-label":this.props.accessibilityLabel,onKeyUp:this._handleKeyUp,onPointerUp:this._handlePointerUp,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||this.setState({keyboardFocus:!1})},children:e.map(((e,i)=>{const a=e.color===t||e.color&&t&&e.color.equals(t),s=p()({[wg().input]:!0,[wg().inputIsActive]:a,"PSPDFKit-Input-ColorPicker-Label":!0,"PSPDFKit-Input-ColorPicker-Label-active":a,[wg().focusRing]:this.state.keyboardFocus&&a}),l=p()({[wg().swatch]:!0,[wg().swatchIsTransparent]:!e.color,[wg().swatchIsWhite]:!e.color||e.color.equals(P.Q1.WHITE),"PSPDFKit-Input-ColorPicker-Swatch":!0}),c=e.color?e.color.toCSSValue():null;let u=e.localization.defaultMessage;null!=c&&(e.localization.id?u=r(e.localization):null!=xe.A[c]&&(u=r(xe.A[c])));const d=e.color&&e.color.toCSSValue();return(0,oe.jsxs)("label",{className:s,title:u,"aria-label":u,children:[(0,oe.jsx)("span",{className:l,style:{backgroundColor:d||"transparent"}}),(0,oe.jsxs)(o.s6,{children:[" ",u," "]}),(0,oe.jsx)(o.s6,{tag:"input",type:"radio",name:wg().root,value:i,checked:!!a,onChange:t=>{t.target.checked&&this.props.onClick(e.color)},ref:a&&n?n:void 0})]},i)}))})}}(0,y.A)(Sg,"defaultProps",{className:""});const _g=(0,ve.j4)(Sg);var Cg=n(2440);const Eg=yg.A.filter((e=>[Md.A.BLACK,Md.A.BLUE,Md.A.RED].includes(e.color)));class kg extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"shouldComponentUpdate",$.EF),(0,y.A)(this,"state",{annotation:new Cg.A({...this.props.preset,isSignature:!0}),zoomLevel:1}),(0,y.A)(this,"_onAnnotationColorChange",(e=>{const t=this.state.annotation.withMutations((t=>{t.set("strokeColor",e)}));this._onChange(t)})),(0,y.A)(this,"_clear",(()=>{this.setState({annotation:new Cg.A({...this.props.preset,isSignature:!0})},this._callOnChange)})),(0,y.A)(this,"_onChange",(e=>{this.setState({annotation:e},this._callOnChange)})),(0,y.A)(this,"_callOnChange",(()=>{const{onChange:e}=this.props;if(!e)return;e((0,_o.C)(this.state.annotation,this.state.annotation.boundingBox.getLocation().scale(-1),this.props.canvasSize,new z.bR))})),(0,y.A)(this,"_onResize",(e=>{this.setState({zoomLevel:e.width/this.props.canvasSize.width})}))}render(){const{annotation:e}=this.state,{canvasSize:t}=this.props,{formatMessage:n}=this.props.intl,r=e.lines.isEmpty();return(0,oe.jsxs)(u.Fragment,{children:[(0,oe.jsxs)("div",{className:Kn().header,children:[(0,oe.jsx)(_g,{colorPresets:Eg,activeColor:e.strokeColor,onClick:this._onAnnotationColorChange,className:p()(Kn().colorPicker,"PSPDFKit-Signature-Dialog-Color-Picker")}),(0,oe.jsx)(o.$n,{onClick:this._clear,inverted:!0,disabled:r,className:p()(Kn().button,"PSPDFKit-Signature-Dialog-Clear-Signature-Button"),children:n(xe.A.clearSignature)})]}),(0,oe.jsx)("div",{className:Kn().editorCanvasContainer,children:(0,oe.jsxs)("div",{className:p()(Kn().editorCanvas,"PSPDFKit-Signature-Dialog-Canvas","PSPDFKit-Signature-Canvas","interactions-disabled"),children:[(0,oe.jsx)(_c.A,{onResize:this._onResize}),(0,oe.jsx)("div",{className:p()(Kn().signHere,"PSPDFKit-Signature-Dialog-Sign-Here-Label",{[Kn().signHereHidden]:!e.lines.isEmpty()}),children:n(zg.pleaseSignHere)}),(0,oe.jsx)(Or,{annotation:e,canvasSize:t,onDrawStart:this._onChange,onDraw:this._onChange,onDrawEnd:this._onChange,zoomLevel:this.state.zoomLevel,cursor:"crosshair"})]})})]})}}(0,y.A)(kg,"defaultProps",{canvasSize:new z.or({width:600,height:260}),preset:{}});const zg=(0,ve.YK)({pleaseSignHere:{id:"pleaseSignHere",defaultMessage:"Please sign here",description:"Message on the signature canvas"}}),Pg=(0,ve.j4)(kg);var Ag,Dg=n(38660),Tg=n.n(Dg);class Ig extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"imageFetcherRef",u.createRef()),(0,y.A)(this,"loadingIndicatorTimeout",null),(0,y.A)(this,"unmounted",!1),(0,y.A)(this,"state",{loadingState:"LOADING",showLoadingIndicator:!1}),(0,y.A)(this,"_fetchImage",(()=>{const{backend:e,attachment:t,templateWidth:n}=this.props;let r=this.props.annotation.update("boundingBox",(e=>e?.set("left",0).set("top",0))),{boundingBox:o}=r;const i=Math.max(o.width,o.height);return i<n&&(o=o.scale(n/i),r=r.set("boundingBox",o)),(0,Ae.pw)({backend:e,blob:t?.data,annotation:r,isDetachedAnnotation:!0,zoomLevel:1})})),(0,y.A)(this,"_renderFinished",(e=>{this.unmounted||(this.setState({loadingState:"LOADED"}),this.props.onRenderFinished&&this.props.onRenderFinished(e))})),(0,y.A)(this,"_showError",(()=>{this.setState({loadingState:"ERROR"})})),(0,y.A)(this,"_showLoadingIndicator",(()=>{this.setState((e=>({showLoadingIndicator:"LOADING"===e.loadingState})))}))}componentDidUpdate(e){if(!(0,a.is)((0,B.X4)(this.props.annotation),(0,B.X4)(e.annotation))||e.annotation.imageAttachmentId!==this.props.annotation.imageAttachmentId||e.templateWidth<this.props.templateWidth){if(!this.imageFetcherRef.current)return;this.imageFetcherRef.current.refresh()}}componentDidMount(){this.loadingIndicatorTimeout=setTimeout(this._showLoadingIndicator,_e.$V)}componentWillUnmount(){this.unmounted=!0,window.clearTimeout(this.loadingIndicatorTimeout)}render(){const{annotation:e,templateWidth:t,label:n,contain:r}=this.props,{opacity:o}=e,{width:i,height:a}=e.boundingBox,s=i>0&&a>0?i/a:1,l=s>1?Tg().wideImg:Tg().highImg,c=p()(e instanceof P.vU?Tg().imageAnnotation:Tg().stampAnnotation,r?Tg().containedImg:Tg().notContainedImg,l),u=p()(Tg().wrapper,{[Tg()["imageAnnotation-loading"]]:"LOADING"===this.state.loadingState&&this.state.showLoadingIndicator,[Tg()["imageAnnotation-error"]]:"ERROR"===this.state.loadingState}),d={opacity:o,position:"relative",width:r?0===t||s>=1?"100%":t:"auto"},h={...d,height:0===t?"100%":s>1?t:t*s};return(0,oe.jsxs)("div",{style:d,className:u,children:[(0,oe.jsx)(De.A,{className:c,fetchImage:this._fetchImage,label:n,visible:!0,onRenderFinished:this._renderFinished,onError:this._showError,rectStyle:h,ref:this.imageFetcherRef}),"LOADING"===this.state.loadingState&&this.state.showLoadingIndicator?(0,oe.jsx)("div",{className:Tg().placeHolder,children:Ag||(Ag=(0,oe.jsx)(Ie.A,{}))}):"ERROR"===this.state.loadingState?(0,oe.jsx)("div",{className:Tg().placeHolder,children:(0,oe.jsx)(Te.A,{src:Ne(),className:Tg().errorIcon})}):null]})}}class Mg extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"shouldComponentUpdate",$.EF)}render(){const{formatMessage:e}=this.props.intl,t=null==this.props.showDeleteBtn||this.props.showDeleteBtn;return(0,oe.jsx)("ul",{className:p()(Kn().signaturePickerList,"PSPDFKit-Signature-Dialog-Picker","PSPDFKit-Signature-Picker"),children:this.props.signatures.map(((r,i)=>(0,oe.jsxs)("li",{className:p()(Kn().signaturePickerListItem,"PSPDFKit-Signature-Dialog-Picker-Item"),"data-signature":i,children:[(0,oe.jsx)(o.$n,{className:p()(Kn().selectSignatureButton,"PSPDFKit-Signature-Dialog-Picker-Item-Button",{[Kn().imageAnnotation]:r instanceof P.vU}),onClick:()=>{this.props.onSelect(r)},autoFocus:0===i,children:r instanceof P.Eo?(0,oe.jsx)(nt,{isSelectable:!1,annotation:r,viewBox:r.boundingBox}):(0,oe.jsx)(Ig,{annotation:r,backend:this.props.backend,label:r.description||e(xe.A.imageAnnotation),attachment:r.imageAttachmentId?this.props.attachments.get(r.imageAttachmentId):null,templateWidth:153.5})}),t?(0,oe.jsx)("button",{className:p()(Kn().deleteSignatureButton,"PSPDFKit-Signature-Dialog-Picker-Item-Delete-Button"),onClick:()=>{this.props.onDelete(r)},"aria-label":e(xe.A.delete),children:(0,oe.jsx)(Te.A,{src:n(53992)})}):null]},i)))})}}const Ng=(0,ve.j4)(Mg);var Og;function Rg(e){let{children:t,hasDivider:n}=e;return n?(0,oe.jsxs)(u.Fragment,{children:[Og||(Og=(0,oe.jsx)(o.aF.Divider,{spaced:!1})),(0,oe.jsx)(o.aF.Section,{children:t})]}):(0,oe.jsx)("div",{className:Kn().footer,children:t})}class jg extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"state",{annotation:null,hideSignaturePicker:!1,storeSignature:!!this.props.canStoreSignature}),(0,y.A)(this,"_hideSignaturePicker",(()=>{this.setState({hideSignaturePicker:!0,annotation:null})})),(0,y.A)(this,"_onSignatureChange",(e=>{this.setState({annotation:e})})),(0,y.A)(this,"_onDone",(()=>{const{onCreate:e,onCancel:t}=this.props,{annotation:n,storeSignature:r}=this.state;n?e?.(n,r,!0):t?.()})),(0,y.A)(this,"_toggleStoreSignature",(()=>{this.setState((e=>({storeSignature:!e.storeSignature})))}))}render(){const{onCreate:e,onDelete:t,storedSignatures:n,preset:r}=this.props,i=!!this.props.canStoreSignature,s=!this.state.hideSignaturePicker&&i&&Boolean(n&&n.size>0),{formatMessage:l}=this.props.intl,{annotation:c,storeSignature:d}=this.state,h=null!==c&&c.lines instanceof a.B8&&!c.lines.isEmpty(),{SIGNATURE_SAVE_MODE:f}=Xe.JY,m=f===wc.v.USING_UI;return(0,oe.jsxs)("div",{className:p()(Kn().viewRoot,"PSPDFKit-Signature-Dialog",{[Kn().viewSignaturePicker]:s}),children:[s&&n?(0,oe.jsxs)(u.Fragment,{children:[(0,oe.jsxs)("div",{className:Kn().header,children:[(0,oe.jsx)("div",{className:p()(Kn().title,"PSPDFKit-Signature-Dialog-Signature-Heading"),role:"heading","aria-level":"1",children:l(xe.A.signatures)}),(0,oe.jsx)(o.$n,{className:"PSPDFKit-Signature-Dialog-Add-Signature-Button",onClick:this._hideSignaturePicker,inverted:!0,children:l(xe.A.addSignature)})]}),(0,oe.jsx)("div",{className:Kn().signaturePickerContainer,children:(0,oe.jsx)(Ng,{signatures:n,onSelect:t=>{e(t,!1,!0)},onDelete:e=>{t(e,!0)},backend:this.props.backend,attachments:this.props.attachments,viewportWidth:this.props.viewportWidth})})]}):(0,oe.jsx)(Pg,{onChange:this._onSignatureChange,preset:r}),(0,oe.jsxs)(Rg,{hasDivider:s&&i,children:[!s&&i&&m&&(0,oe.jsxs)("label",{className:p()(Kn().checkbox,"PSPDFKit-Signature-Dialog-Store-Signature-Checkbox"),children:[(0,oe.jsx)("input",{type:"checkbox",name:"store",checked:d,onChange:this._toggleStoreSignature}),(0,oe.jsx)("span",{className:Kn().checkboxLabel,children:l(xe.A.storeSignature)})]}),(0,oe.jsxs)(o.e2,{className:Kn().group,align:"end",children:[(0,oe.jsx)(o.$n,{onClick:this.props.onCancel,className:p()(Kn().button,"PSPDFKit-Signature-Dialog-Cancel-Button"),autoFocus:!s,children:l(xe.A.cancel)}),!s&&(0,oe.jsx)(o.$n,{primary:!0,disabled:!h,onClick:h?this._onDone:null,className:p()(Kn().button,"PSPDFKit-Signature-Dialog-Done-Button"),children:l(xe.A.done)})]})]})]})}}(0,y.A)(jg,"defaultProps",{canStoreSignature:!0});const Fg=(0,ve.j4)(jg);var Bg=n(22118),Lg=n.n(Bg);function Vg(e){let{position:t,children:n}=e;return(0,oe.jsx)("div",{children:(0,oe.jsx)("div",{className:p()("PSPDFKit-Toolbars",Lg().root,{[Lg().stickToBottom]:"bottom"===t}),children:n})})}var Kg=n(27522),Hg=n(46822),$g=n.n(Hg);function Ug(e){const[t,r]=u.useState(!1),[i,a]=u.useState(!1),s=u.useRef(e.digitalSignatures);u.useEffect((()=>{e.digitalSignatures!==s.current&&r(!1),s.current=e.digitalSignatures}),[e.digitalSignatures]),u.useEffect((()=>{!async function(){const t=(0,Wn.gX)(e.digitalSignatures,e.showSignatureValidationStatus);a(t)}()}),[e.showSignatureValidationStatus,e.digitalSignatures]);const{formatMessage:l}=(0,ve.tz)(),{status:c,messageId:d,iconPath:h}=e.digitalSignatures?function(e){let{documentModifiedSinceSignature:t,status:n}=e;if(n===Kg.J.valid)return t?{status:"warning",messageId:"digitalSignaturesDocModified",iconPath:"warning-2.svg"}:{status:"valid",messageId:"digitalSignaturesAllValid",iconPath:"digital-signatures/signature-valid.svg"};if(n===Kg.J.warning)return{status:"warning",messageId:t?"digitalSignaturesSignatureWarningDocModified":"digitalSignaturesSignatureWarning",iconPath:"warning-2.svg"};if(n===Kg.J.error)return{status:"error",messageId:t?"digitalSignaturesSignatureErrorDocModified":"digitalSignaturesSignatureError",iconPath:"digital-signatures/signature-error.svg"};return{status:null,messageId:null,iconPath:null}}(e.digitalSignatures):{status:null,messageId:null,iconPath:null};if(null==c||null==d||t)return null;const f=p()($g().root,$g()[`status-${c}`],"PSPDFKit-Digital-Signatures-Status",`PSPDFKit-Digital-Signatures-Status-${(0,Xt.ZH)(c)}`),m=p()($g().signatureValidationStatusIcon,$g()[`status-${c}-icon`],"PSPDFKit-Digital-Signatures-Status-Icon");return i?(0,oe.jsxs)("div",{className:f,ref:e.nodeRef,children:[(0,oe.jsxs)("div",{className:$g().signatureInfoContainer,children:[(0,oe.jsx)("div",{className:$g().signatureValidationStatusIconContainer,children:(0,oe.jsx)(Te.A,{className:m,src:n(33488)(`./${h}`)})}),(0,oe.jsx)("span",{className:p()($g().signatureValidationStatusText,"PSPDFKit-Digital-Signatures-Status-Text"),children:l(Wg[d])})]}),(0,oe.jsx)(o.$n,{className:p()($g().signatureValidationCloseButton,"PSPDFKit-Digital-Signatures-Status-Close-Button"),onClick:()=>{r(!0)},"aria-label":"Close digital signatures status bar",children:(0,oe.jsx)(Te.A,{className:$g().signatureValidationCloseIcon,src:n(95072)})})]}):null}const Wg=(0,ve.YK)({digitalSignaturesDocModified:{id:"digitalSignaturesDocModified",defaultMessage:"The document has been digitally signed, but it has been modified since it was signed.",description:"Message when document is valid but has been modified since it was signed."},digitalSignaturesAllValid:{id:"digitalSignaturesAllValid",defaultMessage:"The document has been digitally signed and all signatures are valid.",description:"Message when document is valid."},digitalSignaturesSignatureWarningDocModified:{id:"digitalSignaturesSignatureWarningDocModified",defaultMessage:"The document has been digitally signed, but it has been modified since it was signed and at least one signature has problems.",description:'Message when the document is in a "warning" status and the document has been modified since signing.'},digitalSignaturesSignatureWarning:{id:"digitalSignaturesSignatureWarning",defaultMessage:"The document has been digitally signed, but at least one signature has problems.",description:'Message when the document is in a "warning" status.'},digitalSignaturesSignatureErrorDocModified:{id:"digitalSignaturesSignatureErrorDocModified",defaultMessage:"The document has been digitally signed, but it has been modified since it was signed and at least one signature is invalid.",description:'Message when the document is in a "error" status and the document has been modified since signing.'},digitalSignaturesSignatureError:{id:"digitalSignaturesSignatureError",defaultMessage:"The document has been digitally signed, but at least one signature is invalid.",description:'Message when the document is in a "error" status.'}});var qg=n(20482),Gg=n.n(qg);const Zg=u.memo((function(e){return(0,oe.jsx)(lm,{itemClassName:Gg().item,rootClassName:p()("PSPDFKit-Annotation-Tooltip",Gg().root),items:e.items})}));var Yg=n(22265),Xg=n.n(Yg);function Jg(e){let{viewportState:{viewportRect:t},children:n,scrollbarOffset:r}=e;const o={width:t.width+r,height:t.height};return(0,oe.jsx)("div",{className:`PSPDFKit-Viewport ${Xg().root}`,style:o,children:n})}var Qg=n(53455),ev=n.n(Qg);const tv=(0,ve.j4)((function(e){const{formatMessage:t}=e.intl;return(0,oe.jsxs)(jf.A,{role:"alertdialog",onEscape:e.onCancel,background:"rgba(0,0,0,.1)",className:"PSPDFKit-Confirm-Dialog PSPDFKit-Reload-Document-Confirm-Dialog",accessibilityLabel:t(nv.reloadDocumentDialog),accessibilityDescription:t(nv.reloadDocumentDialogDesc),children:[(0,oe.jsx)(jf.A.Section,{style:{paddingBottom:0},children:(0,oe.jsx)("div",{className:`${ev().content} PSPDFKit-Confirm-Dialog-Content`,children:(0,oe.jsx)("div",{children:t(nv.instantModifiedWarning)})})}),(0,oe.jsx)(jf.A.Section,{children:(0,oe.jsxs)(o.e2,{className:"PSPDFKit-Confirm-Dialog-Buttons",align:"end",children:[(0,oe.jsx)(o.$n,{autoFocus:!0,onClick:e.onCancel,className:"PSPDFKit-Confirm-Dialog-Button PSPDFKit-Confirm-Dialog-Button-Cancel",children:t(xe.A.cancel)}),(0,oe.jsx)(o.$n,{onClick:e.onConfirm,primary:!0,className:"PSPDFKit-Confirm-Dialog-Button PSPDFKit-Confirm-Dialog-Button-Confirm",children:t(nv.reloadDocument)})]})})]})})),nv=(0,ve.YK)({instantModifiedWarning:{id:"instantModifiedWarning",defaultMessage:"Reload document confirm dialog message",description:"The document was modified and is now in read-only mode. Reload the page to fix this."},reloadDocument:{id:"reloadDocument",defaultMessage:"Reload Document",description:"Reload"},reloadDocumentDialog:{id:"reloadDocumentDialog",defaultMessage:"Confirm document reload",description:"Reload Document Confirm Dialog"},reloadDocumentDialogDesc:{id:"reloadDocumentDialogDesc",defaultMessage:"Dialog prompting the user to confirm reloading the document.",description:"Description for the Reload Document Dialog"}});var rv=n(47750),ov=n(26635);function iv(){const[e,t]=u.useState(null),n=(0,s.d4)((e=>e.instance)),[r,o]=u.useState(!1);u.useEffect((()=>{o(!!n)}),[n]),u.useEffect((()=>{e?.focus()}),[e]),(0,br.d3)(e,null);const i=p()(dg().container,"PSPDFKit-Sidebar-Custom");return r?(0,oe.jsx)("div",{role:"region",tabIndex:-1,ref:t,className:i}):null}var av,sv,lv,cv=n(92526),uv=n(83176),dv=n(9926),pv=n(51467),hv=n(59924),fv=n(47010),mv=n.n(fv);function gv(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}const vv={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yv=(0,b.CN)(),bv=u.memo((function(e){let{position:t}=e;const{formatMessage:n}=(0,ve.tz)(),[r,o]=(0,br.YU)(),[i,a]=(0,br.I_)(),s=(0,br.Kw)((()=>{a([]),u===hv.w.result&&d(hv.w.documentA)})),[l,c]=(0,br.e2)(),u=(0,pv.Ut)(l),d=(0,br.Kw)((e=>{e!==u&&c(e||hv.w.result)})),h=()=>{a([]),o(!1),d(hv.w.documentA)},[,f]=(0,br.eR)(),m=(0,br.Kw)((()=>{s(),d(hv.w.documentA),f(!1)}));return(0,oe.jsx)("div",{className:p()(mv().root,{"PSPDFKit-DocumentComparison-Toolbar":!0,[mv().stickToBottom]:"bottom"===t}),onMouseUp:gv,onTouchEnd:gv,onPointerUp:gv,children:(0,oe.jsx)("div",{className:mv().content,children:(0,oe.jsx)("div",{className:mv().left,children:(0,oe.jsxs)("form",{className:mv().form,onSubmit:Yn.wo,children:[(0,oe.jsxs)("div",{className:mv().tabsContainer,children:[(0,oe.jsxs)("div",{className:p()(mv().documentTab,{[mv().documentTabActive]:u===hv.w.documentA,[mv().autoCompareTab]:r,[mv().mobileTab]:yv}),onPointerUp:()=>d(hv.w.documentA),onTouchEnd:()=>d(hv.w.documentA),children:[(0,oe.jsx)("span",{className:p()(mv().documentText,{[mv().mobileText]:!!yv,[mv().documentTabActiveText]:u===hv.w.documentA}),children:n(yv?dv.messages.Comparison_documentOldTouch:dv.messages.Comparison_documentOld)}),!r&&i.length<3&&(0,oe.jsx)(wv,{referencePoints:i,startIndex:0,styles:mv(),touchDevice:yv}),!r&&i.length>=3&&(0,oe.jsx)("span",{className:p()([mv().toolbarReferencePoints,mv().toolbarReferencePointsSet]),children:(0,oe.jsx)("div",{className:mv().toolbarReferencePoint,children:(0,oe.jsxs)("svg",{...vv,className:mv().documentCheckMark,children:[av||(av=(0,oe.jsx)("circle",{cx:"10",cy:"10",r:"10"})),Sv]})})})]}),(0,oe.jsxs)("div",{className:p()(mv().documentTab,{[mv().documentTabActive]:u===hv.w.documentB,[mv().autoCompareTab]:r,[mv().mobileTab]:yv}),onPointerUp:()=>d(hv.w.documentB),onTouchEnd:()=>d(hv.w.documentB),children:[(0,oe.jsx)("span",{className:p()(mv().documentText,{[mv().mobileText]:!!yv,[mv().documentTabActiveText]:u===hv.w.documentB}),children:n(yv?dv.messages.Comparison_documentNewTouch:dv.messages.Comparison_documentNew)}),!r&&i.length<6&&(0,oe.jsx)(wv,{referencePoints:i,startIndex:3,styles:mv(),touchDevice:yv}),!r&&6===i.length&&(0,oe.jsx)("span",{className:p()([mv().toolbarReferencePoints,mv().toolbarReferencePointsSet]),children:(0,oe.jsx)("div",{className:mv().toolbarReferencePoint,children:(0,oe.jsxs)("svg",{...vv,className:mv().documentCheckMark,children:[sv||(sv=(0,oe.jsx)("circle",{cx:"10",cy:"10",r:"10"})),Sv]})})})]}),(r||6===i.length)&&(0,oe.jsx)("div",{className:p()(mv().documentTab,mv().resultTab,{[mv().documentTabActive]:u===hv.w.result,[mv().autoCompareTab]:r}),onPointerUp:()=>d(null),onTouchEnd:()=>d(null),children:(0,oe.jsx)("span",{className:p()(mv().documentText,{[mv().mobileText]:!!yv,[mv().documentTabActiveText]:u===hv.w.result}),children:n(dv.messages.Comparison_result)})})]}),(0,oe.jsxs)("div",{className:mv().controlButtonContainer,children:[!r&&i.length>0&&(0,oe.jsx)("div",{className:p()(mv().buttonReset,mv().buttonResetActive,{[mv().mobileButton]:yv}),onPointerUp:m,onTouchEnd:m,children:n(dv.messages.Comparison_resetButton)}),r&&(0,oe.jsx)("div",{className:p()({[mv().buttonAlignDocuments]:!0,[mv().mobileButton]:yv}),onPointerUp:h,onTouchEnd:h,children:n(yv?dv.messages.Comparison_alignButtonTouch:dv.messages.Comparison_alignButton)})]})]})})})})}));const wv=e=>{const{styles:t,referencePoints:n,startIndex:r,touchDevice:o}=e,i=n.slice(r,r+3),a=Array.from({length:3-i.length});return(0,oe.jsx)("span",{className:p()(t.toolbarReferencePoints,{[t.toolbarReferencePointMobile]:!!o,[t.second]:3===r}),children:i.concat(a).map(((e,o,i)=>{const a=e?"set":0===o&&n.length===r||i[o-1]?"current":"empty";return(0,oe.jsxs)("div",{className:p()(t.referencePointParent,"PSPDFKit-DocumentComparison-ReferencePoint-State",`PSPDFKit-DocumentComparison-ReferencePoint-State-${(0,Xt.ZH)(a)}`),children:[o>0?(0,oe.jsx)("div",{className:t.separator}):null,(0,oe.jsx)("div",{className:t.toolbarReferencePoint,children:(0,oe.jsxs)("svg",{...vv,className:t[xv[a]],children:[lv||(lv=(0,oe.jsx)("circle",{cx:"10",cy:"10",r:"10"})),e?Sv:(0,oe.jsx)(_v,{children:o+1})]})})]},`point_${o+r}`)}))})},xv={set:"checkMark",current:"referencePointSet",empty:"referencePoint"},Sv=(0,oe.jsx)("path",{d:"M5.45508 10.1125L8.53758 12.94L14.5451 6.25",strokeWidth:"1.875",strokeMiterlimit:"10",strokeLinecap:"round"}),_v=e=>{let{children:t}=e;return(0,oe.jsx)("text",{x:"10",y:"11",textAnchor:"middle",dominantBaseline:"middle",dy:"",children:t})};var Cv=n(98238),Ev=n.n(Cv),kv=n(91897),zv=n.n(kv),Pv=n(49118),Av=n(67992),Dv=n(57394),Tv=n(86918),Iv=n(13793),Mv=n(1549),Nv=n.n(Mv),Ov=n(11559),Rv=n.n(Ov);function jv(e){let{btnComponentProps:t,selectedItem:n}=e;return(0,oe.jsxs)(ge.A,{is:"div",...t,className:p()("PSPDFKit-Input-Dropdown-Button ",Nv().selectBox,Rv().selectBox),style:{minWidth:"100px"},children:[(0,oe.jsx)("span",{children:n?.label}),(0,oe.jsx)("div",{children:(0,Se.A)({type:"caret-down",style:{width:12,height:12,flexBasis:12},className:p()(Nv().dropdownIcon)})})]})}function Fv(e){let{item:t,state:n,itemComponentProps:r}=e;return(0,oe.jsx)(ge.A,{is:"div",className:p()(Nv().item,{[Nv().isSelected]:n?.includes("selected")||n?.includes("focused")}),name:t?.value,...r,children:t?.label})}function Bv(e,t){return e.horizontalAlign?e.horizontalAlign:t instanceof P.$h?"center":"left"}function Lv(e,t){return e.verticalAlign?e.verticalAlign:t instanceof P.$h?"center":t instanceof P.uS&&t.multiLine?"top":"center"}const Vv=(0,ve.YK)({textStyle:{id:"textStyle",defaultMessage:"Text style",description:"Form Creator popover text section title"},fontSize:{id:"fontSize",defaultMessage:"Font size",description:"Form Creator popover text section font size label"},fontColor:{id:"fontColor",defaultMessage:"Font color",description:"Form Creator popover text section font color label"}}),Kv=function(e){let{annotation:t,updateAnnotation:r,intl:i,frameWindow:a,formField:s,customFontsReadableNames:l}=e;const c=wa.iL.toArray().map((e=>({label:e,value:e}))),d=c.concat(l.toArray().map((e=>({label:e,value:e}))).filter((e=>!c.some((t=>t.value===e.value)))));if(t.font&&!wa.iL.has(t.font||"")&&!l.some((e=>e===t.font))&&""!==t.font.trim()){const e=i.formatMessage(xe.A.fontFamilyUnsupported,{arg0:t.font});d.push({label:e,value:e,disabled:!0})}const p=["auto",4,6,8,10,12,14,18,24,36,48,64,72,96,144,192,200].map((e=>({value:e,label:e.toString()}))),h=u.useCallback((e=>r({horizontalAlign:e})),[r]),f=u.useCallback((e=>r({verticalAlign:e})),[r]);return(0,oe.jsxs)(Tv.q,{title:i.formatMessage(Vv.textStyle),children:[(0,oe.jsxs)("div",{className:Rv().item,children:[(0,oe.jsx)(Te.A,{src:n(87198),className:Rv().itemIcon,role:"presentation"}),(0,oe.jsx)("div",{className:Rv().itemLabel,children:i.formatMessage(xe.A.font)}),(0,oe.jsx)("div",{className:Rv().nativeDropdown,children:(0,oe.jsx)("select",{"aria-label":i.formatMessage(xe.A.font),className:"PSPDFKit-Input-Dropdown-Select",value:t.font||"",onChange:e=>{void 0!==e.target.value&&r({font:e.target.value})},children:d.map((e=>(0,oe.jsx)("option",{value:e.value,disabled:e.disabled,children:e.label},e.value)))})}),(0,oe.jsx)(Iv.A,{items:d,value:{label:t.font??d[0].label,value:t.font??d[0].value},accessibilityLabel:i.formatMessage(xe.A.font),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:Rv().dropdownGroupComponent,menuClassName:Rv().dropdownGroupMenu,ButtonComponent:jv,ItemComponent:Fv,onSelect:(e,t)=>{void 0!==t.value&&r({font:t.value})},frameWindow:a})]}),(0,oe.jsxs)("div",{className:Rv().item,children:[(0,oe.jsx)(Te.A,{src:n(67572),className:Rv().itemIcon,role:"presentation"}),(0,oe.jsx)("div",{className:Rv().itemLabel,children:i.formatMessage(Vv.fontSize)}),(0,oe.jsx)("div",{className:Rv().nativeDropdown,children:(0,oe.jsx)("select",{"aria-label":i.formatMessage(Vv.fontSize),className:"PSPDFKit-Input-Dropdown-Select",value:t.fontSize||"",onChange:e=>{r({fontSize:"auto"===e.target.value?"auto":parseFloat(e.target.value)})},children:p.map((e=>(0,oe.jsx)("option",{value:e.value,disabled:e.disabled,children:e.label},e.value)))})}),(0,oe.jsx)(Iv.A,{items:p,value:p.find((e=>e.value===Math.round(t.fontSize||0)))??null!=t.fontSize?{value:t.fontSize,label:t.fontSize?.toString()??""}:null,accessibilityLabel:i.formatMessage(Vv.fontSize),discreteDropdown:!1,isActive:!1,caretDirection:"down",className:Rv().dropdownGroupComponent,menuClassName:Rv().dropdownGroupMenu,ButtonComponent:jv,ItemComponent:Fv,onSelect:(e,t)=>{null==t.value||"auto"!==t.value&&isNaN(t.value)||r({fontSize:t.value})},frameWindow:a})]}),(0,oe.jsxs)("div",{className:Rv().item,children:[(0,oe.jsx)(Te.A,{src:n(90312),className:Rv().itemIcon,role:"presentation"}),(0,oe.jsx)("div",{className:Rv().itemLabel,children:i.formatMessage(xe.A.color)}),(0,oe.jsx)(eu.A,{record:t,onChange:r,styles:{...Ac(),colorSvg:Rv().colorSvg,colorItem:Rv().colorItem,dropdownMenu:Rv().colorDropdownMenu,controlWrapper:{...Ac().controlWrapper,width:"auto"}},accessibilityLabel:i.formatMessage(xe.A.fillColor),caretDirection:"down",colorProperty:"fontColor",frameWindow:a,className:Rv().colorDropdown})]}),(0,oe.jsxs)("div",{className:Rv().item,children:[(0,oe.jsx)(Te.A,{src:n(80209),className:Rv().itemIcon,role:"presentation"}),(0,oe.jsx)("div",{className:Rv().itemLabel,children:i.formatMessage(xe.A.horizontalAlignment)}),(0,oe.jsx)(o.z6,{inputName:"horizontalAlign",label:i.formatMessage(xe.A.horizontalAlignment),selectedOption:Bv(t,s),labelClassNamePrefix:"PSPDFKit-Form-Creator-Editor-Horizontal-Alignment",options:["left","center","right"].map((e=>({value:e,label:i.formatMessage(xe.A[`alignment${(0,Xt.ZH)(e)}`]),iconPath:n(77809)(`./text-align-horizontal-${e}.svg`)}))),onChange:h})]}),!(s instanceof P.O2)&&(0,oe.jsxs)("div",{className:Rv().item,children:[(0,oe.jsx)(Te.A,{src:n(52869),className:Rv().itemIcon,role:"presentation"}),(0,oe.jsx)("div",{className:Rv().itemLabel,children:i.formatMessage(xe.A.verticalAlignment)}),(0,oe.jsx)(o.z6,{inputName:"verticalAlign",label:i.formatMessage(xe.A.verticalAlignment),selectedOption:Lv(t,s),labelClassNamePrefix:"PSPDFKit-Form-Creator-Editor-Vertical-Alignment",options:["top","center","bottom"].map((e=>({value:e,label:i.formatMessage(xe.A["center"===e?"alignmentCenter":e]),iconPath:n(32255)(`./text-align-vertical-${e}.svg`)}))),onChange:f})]})]})};var Hv=n(65615),$v=n.n(Hv);function Uv(e){let{label:t,errorMessage:n,inputClassName:r,className:i,disablePadding:a,...s}=e;return(0,oe.jsxs)("div",{className:p()(!a&&$v().wrapper,i),children:[(0,oe.jsxs)("label",{className:p()($v().label,"PSPDFKit-Form-Creator-Editor-Text-Input-Label"),children:[t,s.required&&"*",(0,oe.jsx)(o.ks,{...s,className:p()($v().input,{[$v().inputError]:!!n},r)})]}),n&&(0,oe.jsx)("span",{className:$v().errorLabel,children:n})]})}var Wv=n(51640);const qv=(0,ve.YK)({advanced:{id:"advanced",defaultMessage:"Advanced",description:"Form Creator popover advanced section title"},creatorName:{id:"creatorName",defaultMessage:"Creator Name",description:"Form Creator popover advanced section creator name label"},note:{id:"note",defaultMessage:"Note",description:"Form Creator popover advanced section note label"},customData:{id:"customData",defaultMessage:"Custom data",description:"Form Creator popover advanced section custom data label"},required:{id:"required",defaultMessage:"Required",description:"Form Creator popover advanced section required label"},readOnly:{id:"readOnly",defaultMessage:"Read Only",description:"Form Creator popover advanced section read only label"},multiSelect:{id:"multiSelect",defaultMessage:"Multi Select",description:"Form Creator popover advanced section multi select label"},createdAt:{id:"createdAt",defaultMessage:"Created at",description:"Form Creator popover advanced section created at label"},updatedAt:{id:"updatedAt",defaultMessage:"Updated at",description:"Form Creator popover advanced section updated at label"},customDataErrorMessage:{id:"customDataErrorMessage",defaultMessage:"Must be a plain JSON-serializable object",description:"Form Creator popover advanced section custom data error"},multiLine:{id:"multiLine",defaultMessage:"Multi Line",description:"Form Creator popover multiline input label"}}),Gv=function(e){let{intl:t,annotation:n,updateAnnotation:r,formField:o,updateFormField:i,locale:a,onCustomDataError:s}=e;const[l,c]=u.useState({value:JSON.stringify(n.customData),error:""}),d=u.useRef(l),p=u.useCallback((e=>r({creatorName:e.target.value})),[r]),h=u.useCallback((e=>r({note:e.target.value})),[r]),f=u.useCallback((e=>{let n="";try{JSON.parse(e.target.value),s(!1)}catch(e){n=t.formatMessage(qv.customDataErrorMessage),s(!0)}c({value:e.target.value,error:n})}),[t,s]),m=u.useCallback((()=>{if(!l.error&&l.value!==d.current.value)try{const e=JSON.parse(l.value);r({customData:e})}catch(e){}}),[r,l]);(0,br.Xm)((()=>{if(!l.error&&l.value!==d.current.value)try{const e=JSON.parse(l.value);r({customData:e})}catch(e){}}),[r,l]);const g=u.useCallback((e=>i({required:e})),[i]),v=u.useCallback((e=>i({readOnly:e})),[i]),y=u.useCallback((e=>i({multiSelect:e})),[i]),b=u.useCallback((e=>i({multiLine:e})),[i]);return(0,oe.jsx)("div",{className:"PSPDFKit-Form-Creator-Editor-Advanved-Section",children:(0,oe.jsxs)(Tv.q,{title:t.formatMessage(qv.advanced),children:[(0,oe.jsx)(Uv,{label:t.formatMessage(qv.creatorName),value:n.creatorName||"",onChange:p}),(0,oe.jsx)(Uv,{label:t.formatMessage(qv.note),value:n.note||"",onChange:h}),(0,oe.jsx)(Uv,{label:t.formatMessage(qv.customData),value:l.value,onChange:f,onBlur:m,errorMessage:l.error,className:Rv().lastInputField}),(0,oe.jsxs)("div",{className:Rv().advancedItem,children:[(0,oe.jsx)("div",{className:Rv().advancedItemLabel,children:t.formatMessage(qv.required)}),(0,oe.jsx)(Wv.M,{value:!!o?.required,onUpdate:g,accessibilityLabel:t.formatMessage(qv.required)})]}),(0,oe.jsxs)("div",{className:Rv().advancedItem,children:[(0,oe.jsx)("div",{className:Rv().advancedItemLabel,children:t.formatMessage(qv.readOnly)}),(0,oe.jsx)(Wv.M,{value:!!o?.readOnly,onUpdate:v,accessibilityLabel:t.formatMessage(qv.readOnly)})]}),o instanceof P.G_&&(0,oe.jsxs)("div",{className:Rv().advancedItem,children:[(0,oe.jsx)("div",{className:Rv().advancedItemLabel,children:t.formatMessage(qv.multiSelect)}),(0,oe.jsx)(Wv.M,{value:!!o?.multiSelect,onUpdate:y,accessibilityLabel:t.formatMessage(qv.multiSelect)})]}),o instanceof P.uS&&(0,oe.jsxs)("div",{className:Rv().advancedItem,children:[(0,oe.jsx)("div",{className:Rv().advancedItemLabel,children:t.formatMessage(qv.multiLine)}),(0,oe.jsx)(Wv.M,{value:!!o?.multiLine,onUpdate:b,accessibilityLabel:t.formatMessage(qv.multiLine)})]}),(0,oe.jsxs)("div",{className:Rv().advancedItem,children:[(0,oe.jsx)("div",{className:Rv().advancedItemLabel,children:"ID"}),(0,oe.jsx)("div",{className:Rv().advancedItemValue,children:n.id})]}),(0,oe.jsxs)("div",{className:Rv().advancedItem,children:[(0,oe.jsx)("div",{className:Rv().advancedItemLabel,children:t.formatMessage(qv.createdAt)}),(0,oe.jsx)("div",{className:Rv().advancedItemValue,children:n.createdAt.toLocaleDateString(a)})]}),(0,oe.jsxs)("div",{className:Rv().advancedItem,children:[(0,oe.jsx)("div",{className:Rv().advancedItemLabel,children:t.formatMessage(qv.updatedAt)}),(0,oe.jsx)("div",{className:Rv().advancedItemValue,children:n.updatedAt.toLocaleDateString(a)})]})]})})};var Zv=n(7039),Yv=n(57141),Xv=n(51587),Jv=n.n(Xv),Qv=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),ey=(e,t)=>{let n=e.getClientOffset();if(null===n)return null;if(!t.current||!t.current.getBoundingClientRect)return Qv(n,(e=>{let t=e.getInitialClientOffset(),n=e.getInitialSourceClientOffset();return null===t||null===n?{x:0,y:0}:Qv(t,n)})(e));let r=t.current.getBoundingClientRect(),o={x:r.width/2,y:r.height/2};return Qv(n,o)},ty=e=>{let t=`translate(${e.x.toFixed(1)}px, ${e.y.toFixed(1)}px)`;return{pointerEvents:"none",position:"fixed",top:0,left:0,transform:t,WebkitTransform:t}},ny=()=>{let e=(0,u.useRef)(null),t=(0,Zv.V7)((t=>({currentOffset:ey(t,e),isDragging:t.isDragging(),itemType:t.getItemType(),item:t.getItem(),monitor:t})));return t.isDragging&&null!==t.currentOffset?{display:!0,itemType:t.itemType,item:t.item,style:ty(t.currentOffset),monitor:t.monitor,ref:e}:{display:!1}};const ry=e=>{let{id:t,index:r,moveCard:o,option:i,onDelete:a}=e;const s=(0,u.useRef)(null),l=(0,u.useRef)(null),[{handlerId:c},d]=(0,Zv.Hd)({accept:"CARD",collect:e=>({handlerId:e.getHandlerId()}),hover(e,t){if(!l.current)return;const n=e.index,i=r;if(n===i)return;const a=l.current?.getBoundingClientRect(),s=(a.bottom-a.top)/2,c=t.getClientOffset().y-a.top;n<i&&c<s||n>i&&c>s||(o(n,i),e.index=i)}}),{display:h,style:f}=ny(),[{isDragging:m,id:g},v]=(0,Zv.i3)({type:"CARD",item:()=>({id:t,index:r}),collect:e=>({isDragging:e.isDragging(),id:e.getItem()?.id})}),y=m?.5:1;v(d(s));const b=e=>(0,oe.jsxs)("div",{style:e?{...f,width:332}:{opacity:y},className:p()(Jv().option,{[Jv().preview]:e}),ref:e?void 0:l,children:[(0,oe.jsx)("button",{type:"button",className:Jv().hamburger,...e?void 0:{ref:s,"data-handler-id":c},children:(0,oe.jsx)(Te.A,{src:n(98614),role:"presentation"})}),(0,oe.jsx)("div",{className:Jv().optionContent,children:i.label}),(0,oe.jsx)("button",{className:p()(Jv().button,Jv().deleteButton),type:"button",onClick:()=>a(r),children:(0,oe.jsx)(Te.A,{src:n(95072),className:p()(Jv().icon,Jv().deleteIcon),role:"presentation"})})]});return(0,oe.jsxs)(oe.Fragment,{children:[b(!1),h&&g===t&&b(!0)]})};const oy=(0,ve.YK)({options:{id:"options",defaultMessage:"Options",description:"Options control label"},enterDescriptionHere:{id:"enterDescriptionHere",defaultMessage:"Enter description here",description:"New option input placeholder"},addOption:{id:"addOption",defaultMessage:"Add option",description:"New option button text"},emptyInput:{id:"emptyInput",defaultMessage:"Please fill in this field",description:"New option empty input label"}}),iy=(0,ve.j4)((function(e){let{intl:t,options:n,onChange:r,ownerDocument:o}=e;const{formatMessage:i}=t,[a,s]=u.useState(!0);return(0,oe.jsx)(Zv.QP,{backend:Yv.TouchBackend,options:{enableMouseEvents:!0,delayTouchStart:500,touchSlop:10,ignoreContextMenu:!0,ownerDocument:o},children:(0,oe.jsxs)("form",{className:Jv().wrapper,onSubmit:e=>{e.preventDefault();const t=e.target,{value:o}=t.newOption;o?(t.reset(),r(n.push(new P._B({value:o,label:o})))):s(!1)},children:[(0,oe.jsx)("div",{className:Jv().title,children:i(oy.options)}),(0,oe.jsxs)("div",{children:[n.map(((e,t)=>(0,oe.jsx)(ry,{index:t,moveCard:(e,t)=>{const o=n.get(t);(0,l.V1)(o,"Item not found"),r(n.delete(t).insert(e,o))},option:e,id:e.value,onDelete:e=>r(n.delete(e))},e.value))),(0,oe.jsx)("div",{className:p()(Jv().option,Jv().addOptionInputWrapper,{[Jv().addOptionInputWrapperInvalid]:!a}),children:(0,oe.jsx)("input",{autoFocus:!0,className:p()(Jv().optionContent,Jv().addOptionInput),name:"newOption",type:"text",placeholder:i(oy.enterDescriptionHere),onBlur:()=>s(!0),onChange:e=>{!a&&e.target.value.trim()&&s(!0)}})})]}),!a&&(0,oe.jsx)("div",{className:Jv().invalidOptionInput,children:t.formatMessage(oy.emptyInput)}),(0,oe.jsx)("button",{className:p()(Jv().button,Jv().addOptionButton),type:"submit",children:i(oy.addOption)})]})})}));var ay,sy,ly,cy,uy,dy=n(1559);function py(e,t){return t?xe.A.dateField:e instanceof P.$h?xe.A.button:e instanceof P.uS?xe.A.textField:e instanceof P.Qk?xe.A.radioField:e instanceof P.av?xe.A.checkboxField:e instanceof P.sh?xe.A.comboBoxField:e instanceof P.O2?xe.A.listBoxField:xe.A.signatureField}const hy=(0,ve.YK)({formDesignerPopoverTitle:{id:"formDesignerPopoverTitle",defaultMessage:"{formFieldType} properties",description:"Form Creator popover title"},styleSectionLabel:{id:"styleSectionLabel",defaultMessage:"{formFieldType} style",description:"Form Creator style section"},formFieldName:{id:"formFieldName",defaultMessage:"Form field name",description:"Form Creator popover form field name input label"},format:{id:"format",defaultMessage:"Format",description:"Format"},buttonText:{id:"buttonText",defaultMessage:"Button Text",description:"Form Creator popover button text input label"},defaultValue:{id:"defaultValue",defaultMessage:"Default Value",description:"Form Creator popover default value input label"},multiline:{id:"multiline",defaultMessage:"Multiline",description:"Form Creator popover multiline input label"},radioButtonFormFieldNameWarning:{id:"radioButtonFormFieldNameWarning",defaultMessage:"To group the radio buttons, make sure they have the same form field names.",description:"Form Creator popover radio button form field name warning message"},formFieldNameExists:{id:"formFieldNameExists",defaultMessage:"A form field named {formFieldName} already exists. Please choose a different name.",description:"Change form field name if it already exists."},formFieldNameNotEmpty:{id:"formFieldNameNotEmpty",defaultMessage:"Form Field Name cannot be left empty.",description:"Form Field Name cannot be left empty."},label:{id:"label",defaultMessage:"Label",description:"Label"},value:{id:"value",defaultMessage:"Value",description:"Value"}}),fy=function(e){let{referenceRect:t,viewportState:r,isHidden:o,getExistingFormFieldByName:i,dispatch:s,annotation:c,formField:d,frameWindow:h,eventEmitter:f,locale:m,isUnsavedAnnotation:g,setModalClosurePreventionError:v,modalClosurePreventionError:y,pageSize:b,customFontsReadableNames:w}=e;const x=(0,ve.tz)(),S=(0,u.useMemo)((()=>{if(d instanceof P.Qk||d instanceof P.av)return d.annotationIds.findIndex((0,B.iT)(c))}),[d,c]),[_,C]=(0,u.useState)(d.name),[E,k]=(0,u.useState)(),[z,A]=u.useState(!1),D=u.useCallback((e=>{let t=c;if(!t)return;t=t.merge(e);const n={annotations:(0,a.B8)([t]),reason:ee.x.PROPERTY_CHANGE};f.emit("annotations.willChange",n),s((0,lt.g_)(t))}),[f,s,c]),T=u.useCallback((e=>{if(!d)return;let t=d;t=t.merge(e);if(!(_!==d.name))return void s((0,kn.rl)(t));const n=i(_);if(!n){const e=d.annotationIds.map((()=>(0,B.K1)()));s((0,kn.vM)(t.set("name",d.name),_,e));const n=d.annotationIds.findIndex((0,B.iT)(c)),r=e.get(n);return(0,l.V1)(r),s((0,we.WS)((0,a.NZ)([r]))),void s((0,kn.jE)(d))}t=t.set("name",_);const r=c.merge({id:(0,B.K1)(),formFieldName:_});t=t.merge({annotationIds:n.annotationIds.push(r.id),options:n.options.push(-1!==S?d.options.get(S):d.options.first()),id:n.id,pdfObjectId:n.pdfObjectId}),s((0,lt.Xs)(r)),s((0,kn.rl)(t)),s((0,we.WS)((0,a.NZ)([r.id]))),s((0,kn.jE)(d))}),[d,s,_,c,i,S]);(0,Yt.useGranularEffect)((()=>{C(d.name),k(void 0)}),[c.id],[d.name]);const I=u.useCallback((e=>{const t=e.target.value;C(t),t?.trim()?!i(t)||c.formFieldName===t||d instanceof P.Qk?(k(void 0),z||v(null)):(k(x.formatMessage(hy.formFieldNameExists,{formFieldName:t})),v({annotationId:c.id,error:dy.K.FORM_DESIGNER_ERROR})):(k(x.formatMessage(hy.formFieldNameNotEmpty)),v({annotationId:c.id,error:dy.K.FORM_DESIGNER_ERROR}))}),[x,c,d,i,v,z]),M=u.useCallback((e=>T({buttonLabel:e.target.value})),[T]),N=u.useCallback((e=>T({options:e})),[T]),O=(0,u.useCallback)((e=>{const t=e.target.value;(0,l.V1)(void 0!==S);const n=d.options.get(S),r=d.options.set(S,n.set("label",t));T({options:r})}),[T,d,S]),R=u.useCallback((e=>{A(e),e?v({annotationId:c.id,error:dy.K.FORM_DESIGNER_ERROR}):y&&!E&&v(null)}),[v,y,E,c]),j=(0,u.useCallback)((e=>{const t=e.target.value;(0,l.V1)(void 0!==S);const n=d.options.get(S),r=d.options.set(S,n.set("value",t));T({options:r})}),[T,d,S]),F=u.useMemo((()=>d instanceof P.$h?(0,oe.jsx)(Uv,{label:x.formatMessage(hy.buttonText),value:d?.buttonLabel||"",onChange:M,className:Rv().lastInputField}):d instanceof P.Qk?((0,l.V1)(void 0!==S),(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsxs)("div",{className:Rv().radioButtonWarning,children:[(0,oe.jsx)(Te.A,{src:n(33335),role:"presentation",className:Rv().radioButtonWarningIcon,style:{color:"#EB7F00"}}),(0,oe.jsx)("span",{className:Rv().radioButtonWarningLabel,children:x.formatMessage(hy.radioButtonFormFieldNameWarning)})]}),(0,oe.jsx)(Uv,{label:x.formatMessage(hy.label),value:d?.options.get(S)?.label||"",onChange:O,required:!0}),(0,oe.jsx)(Uv,{label:x.formatMessage(hy.value),value:d?.options.get(S)?.value||"",onChange:j,required:!0,className:Rv().lastInputField})]})):d instanceof P.av?((0,l.V1)(void 0!==S),(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsx)(Uv,{label:x.formatMessage(hy.label),value:d?.options.get(S)?.label||"",onChange:O,required:!0}),(0,oe.jsx)(Uv,{label:x.formatMessage(hy.value),value:d?.options.get(S)?.value||"",onChange:j,required:!0,className:Rv().lastInputField})]})):d instanceof P.O2||d instanceof P.sh?(0,oe.jsx)(iy,{options:d.options,onChange:N,ownerDocument:h.document}):null),[h.document,d,x,M,N,O,j,S]),L=d instanceof P.uS&&!!c.additionalActions?.onFormat;return(0,oe.jsx)(Av.A,{referenceRect:t,viewportState:r,isHidden:o||!d,className:"PSPDFKit-Form-Creator-Popover",wrapperClassName:"PSPDFKit-Form-Creator-Editor",title:x.formatMessage(hy.formDesignerPopoverTitle,{formFieldType:d?x.formatMessage(py(d,L)):""}),footer:(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsx)(Av.O,{className:p()(Rv().footerButton,Rv().deleteButton,"PSPDFKit-Form-Creator-Editor-Delete"),onClick:()=>{v(null),s((0,lt.n9)((0,a.NZ)([c.id])))},children:x.formatMessage(xe.A.delete)}),(0,oe.jsx)(Av.O,{className:p()(Rv().footerButton,Rv().doneButton,"PSPDFKit-Form-Creator-Editor-Done"),onClick:()=>{y||s((0,we.J9)())},children:x.formatMessage(xe.A.done)})]}),children:(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsxs)("div",{className:g?void 0:Rv().formFieldNameReadOnly,children:[(0,oe.jsx)("div",{children:(0,oe.jsx)(Uv,{label:x.formatMessage(hy.formFieldName),value:_,onChange:I,onKeyDown:e=>e.stopPropagation(),required:!0,errorMessage:E,className:p()({[Rv().lastInputField]:!F&&!L}),inputClassName:"PSPDFKit-Form-Creator-Editor-Form-Field-Name",onBlur:()=>{E||T({name:_})}})}),F]}),L&&(0,oe.jsx)("div",{className:p()($v().wrapper,Rv().lastInputField),children:(0,oe.jsxs)("label",{className:$v().label,htmlFor:"dateTimeFormat",children:["Format",(0,oe.jsx)("div",{className:$v().formatSelectWrapper,role:"button",children:(0,oe.jsxs)("select",{className:$v().dateSelect,name:"dateTimeFormat",id:"dateTimeFormat",onChange:e=>{const t=e.target.value;D({additionalActions:{onFormat:new P.ew({script:`AFDate_FormatEx("${t}")`})}})},children:[ay||(ay=(0,oe.jsx)("option",{value:"yyyy-mm-dd",children:"yyyy-mm-dd"})),sy||(sy=(0,oe.jsx)("option",{value:"mm/dd/yyyy",children:"mm/dd/yyyy"})),ly||(ly=(0,oe.jsx)("option",{value:"dd/mm/yyyy",children:"dd/mm/yyyy"})),cy||(cy=(0,oe.jsx)("option",{value:"m/d/yyyy HH:MM",children:"m/d/yyyy HH:MM"})),uy||(uy=(0,oe.jsx)("option",{value:"d/m/yyyy HH:MM",children:"d/m/yyyy HH:MM"}))]})})]})}),(0,oe.jsx)(Dv.Ay,{intl:x,annotation:c,label:x.formatMessage(hy.styleSectionLabel,{formFieldType:d?x.formatMessage(py(d,L)):""}),updateAnnotation:D,frameWindow:h,pageSize:b}),!(d instanceof P.Vw)&&!(d instanceof P.Qk)&&!(d instanceof P.av)&&(0,oe.jsx)(Kv,{intl:x,annotation:c,updateAnnotation:D,frameWindow:h,formField:d,customFontsReadableNames:w}),(0,oe.jsx)(Gv,{intl:x,annotation:c,updateAnnotation:D,formField:d,updateFormField:T,locale:m,onCustomDataError:R},c.id)]})})};var my,gy,vy=n(6273),yy=n.n(vy);const by=b.LZ?()=>{const e=(0,s.wA)();return(0,oe.jsx)(o.gJ,{wrapperClass:p()(yy().mobileWrapper,"PSPDFKit-ContentEditor-Exit-Dialog"),formClass:yy().formWrapper,onDismiss:()=>{e((0,ap.Lm)(!1))},children:gy||(gy=(0,oe.jsx)(wy,{}))})}:()=>{const{formatMessage:e}=(0,ve.tz)(),t=(0,s.wA)();return(0,oe.jsx)(jf.A,{role:"alertdialog",background:"rgba(0,0,0,.1)",className:p()(yy().modalRoot,"PSPDFKit-ContentEditor-Exit-Dialog"),accessibilityLabel:e(xy.contentEditorSavePromptAccessibilityLabel),accessibilityDescription:e(xy.contentEditorSavePromptAccessibilityDescription),restoreOnClose:!0,onEscape:()=>{t((0,ap.Lm)(!1))},children:my||(my=(0,oe.jsx)(wy,{}))})},wy=()=>{const{formatMessage:e}=(0,ve.tz)(),t=(0,s.wA)();return(0,oe.jsxs)(u.Fragment,{children:[(0,oe.jsxs)(jf.A.Section,{className:p()(yy().dropdownSection,yy().mainSection),children:[(0,oe.jsx)(o.$n,{className:p()(yy().closeButton,"PSPDFKit-ContentEditor-Exit-Dialog-Close-Button"),onClick:()=>{t((0,ap.Lm)(!1))},"aria-label":e(xe.A.close),children:(0,oe.jsx)(Te.A,{className:yy().closeIcon,src:n(95072)})}),(0,oe.jsxs)("div",{className:p()(yy().container,"PSPDFKit-ContentEditor-Exit-Dialog-Content"),children:[(0,oe.jsx)(Te.A,{className:yy().warningIcon,src:n(84418)}),(0,oe.jsx)("h2",{className:yy().heading,children:e(xy.contentEditorSavePromptHeading)}),(0,oe.jsx)("p",{className:yy().description,children:e(xy.contentEditorSavePromptMessage)})]})]}),(0,oe.jsx)(jf.A.Section,{className:p()(yy().buttonsGroupSection,yy().dropdownSection),children:(0,oe.jsxs)(o.e2,{className:p()(yy().buttonsGroup,"PSPDFKit-ContentEditor-Exit-Dialog-Buttons"),align:"end",children:[(0,oe.jsx)(o.$n,{autoFocus:!0,onClick:()=>{t(ap.hi)},className:p()("PSPDFKit-ContentEditor-Exit-Dialog-Button","PSPDFKit-ContentEditor-Exit-Dialog-Button-Discard-Changes",yy().button),children:"Don't Save"}),(0,oe.jsx)(o.$n,{onClick:()=>{t(ap.aU)},primary:!0,className:p()("PSPDFKit-ContentEditor-Exit-Dialog-Button","PSPDFKit-ContentEditor-Exit-Dialog-Button-Save-Changes",yy().button),children:"Save"})]})})]})},xy=(0,ve.YK)({contentEditorSavePromptHeading:{id:"contentEditorSavePromptHeading",defaultMessage:"Save changes before exiting?",description:'Heading displayed in the "Exit Content Editing Mode" confirm dialog'},contentEditorSavePromptMessage:{id:"contentEditorSavePromptMessage",defaultMessage:"If you don’t save your changes to the document, your changes will be lost.",description:'Message displayed in the "Exit Content Editing Mode" confirm dialog'},contentEditorSavePromptAccessibilityLabel:{id:"contentEditorSavePromptAccessibilityLabel",defaultMessage:"Confirm content editing exit dialog",description:'Accessibility description for the "Delete Annotation" confirm dialog'},contentEditorSavePromptAccessibilityDescription:{id:"contentEditorSavePromptAccessibilityDescription",defaultMessage:"A content editing session is about to be dismissed and data could be loss. This dialog serves as a confirmation to whether continue with this action or not.",description:'Accessibility description for the "Exit Content Editing Mode" confirm dialog'}});var Sy=n(76830),_y=n.n(Sy);const Cy={uri:"uri",page:"page"},Ey="edit",ky="hover",zy="open";function Py(e){if(!e.action)return null;const t=e.action;return t instanceof P.tt?t.uri:t.pageIndex+1}function Ay(e){return(0,oe.jsx)("div",{className:p()(_y().container),children:(0,oe.jsx)("div",{className:_y().innerContainer,children:(0,oe.jsx)("div",{className:_y().content,children:(0,oe.jsx)(Dy,{...e})})})})}function Dy(e){let{pages:t,dispatch:r,annotation:i}=e;const a=(0,ve.tz)(),s=i.action instanceof P.ic,l=i.action instanceof P.tt;let c;s&&(c=i.action),l&&(c=i.action);const d=(0,u.useMemo)((()=>!l&&!s||l?Cy.uri:Cy.page),[s,l]),[p,h]=(0,u.useState)(d),[f,m]=(0,u.useState)(c?.uri||""),[g,v]=(0,u.useState)(c?.pageIndex+1||""),[y,b]=(0,u.useState)(""),w=p===Cy.uri,x=(0,u.useCallback)((e=>t.get(e-1)),[t]),S=(0,u.useCallback)((()=>{const e=Number(g);if(e)if(x(e)){const t=new P.ic({pageIndex:e-1}),n=i.set("action",t);r((0,lt.g_)(n))}else b(a.formatMessage(Iy.invalidPageNumber));else b(a.formatMessage(Iy.invalidPageNumber))}),[i,r,g,x]),_=(0,u.useCallback)((()=>{if(!f)return void b(a.formatMessage(Iy.invalidPageLink));const e=new P.tt({uri:f}),t=i.set("action",e);r((0,lt.g_)(t))}),[i,r,f]),C=(0,u.useCallback)((()=>{if(w)return(0,oe.jsx)(Uv,{label:a.formatMessage(xe.A.linkAnnotation),value:f,onChange:e=>{m(e.target.value),b("")},onBlur:_,errorMessage:y,placeholder:"www.example.com",disablePadding:!0})}),[y,a,w,f,_]),E=(0,u.useCallback)((()=>{if(!w)return(0,oe.jsx)(Uv,{disablePadding:!0,label:a.formatMessage(Iy.targetPageLink),value:String(g),onChange:e=>{v(e.target.value),y&&b("")},onBlur:S,placeholder:"1",errorMessage:y})}),[y,a,w,g,S]);return(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsxs)("label",{className:_y().label,children:[a.formatMessage(Iy.linkTo),(0,oe.jsx)(o.z6,{inputName:"LinkTo",label:a.formatMessage(xe.A.horizontalAlignment),selectedOption:p,labelClassNamePrefix:"PSPDFKit-Link-Popover-Editor-LinkTo",wrapperClasses:_y().radioGroupWrapper,options:Object.keys(Cy).map((e=>({value:e,label:a.formatMessage(Iy[`${e}Link`]),iconPath:n(9447)}))),onChange:e=>{h(Cy[e]),y&&b("")},isButton:!0,showLabel:!0})]}),C(),E()]})}function Ty(e){const{viewportState:t,isHidden:n,annotation:r,isHover:i,dispatch:a}=e,s=(0,ve.tz)(),[l,c]=(0,u.useState)(!1),d=(0,u.useMemo)((()=>(0,oo.m)({annotation:r,zoomScaledBoundingBox:(0,B.O_)(r,t.pagesRotation,t.viewportRect.getSize(),t.zoomLevel).apply((0,Z.zo)(t,r.pageIndex).translate(t.scrollPosition.scale(t.zoomLevel))),viewportSize:t.viewportRect.getSize()})),[r,t]),h=(0,u.useMemo)((()=>r&&i?ky:r&&!r.action||l?Ey:zy),[r,i,l]),f=r?.action instanceof P.tt,m=(0,u.useMemo)((()=>h===Ey?s.formatMessage(Iy.linkSettingsPopoverTitle):f?Py(r):`${s.formatMessage(Iy.linkToPage,{arg0:Py(r)})}: ${Py(r)}`),[r,h,s]),g=(0,u.useCallback)((t=>{if(t){const e=r.action instanceof P.tt;return(0,oe.jsx)("div",{className:p()(_y().container),children:(0,oe.jsxs)("div",{className:_y().contentRow,children:[(0,oe.jsx)(o.$n,{className:p()("PSPDFKit-Link-Popover-Editor-Edit-Button"),onClick:()=>c(!0),children:s.formatMessage(xe.A.edit)}),(0,oe.jsx)(o.$n,{className:p()("PSPDFKit-Link-Popover-Editor-Open-Button"),onClick:()=>{a((0,we.J9)()),a((0,or.Wy)(r))},primary:!0,children:s.formatMessage(e?Iy.openLink:Iy.goToPageLink)})]})})}return(0,oe.jsx)(Ay,{...e})}),[r,a,s,e]),v=(0,u.useCallback)((()=>{switch(h){case Ey:return g();case zy:return g(!0);default:return null}}),[h,g]);return(0,oe.jsx)(Av.A,{referenceRect:d,viewportState:t,isHidden:n,className:"PSPDFKit-Link-Editor-Popover",wrapperClassName:"PSPDFKit-Link-Editor",title:String(m),centeredTitle:h!==Ey,children:v()})}const Iy=(0,ve.YK)({linkSettingsPopoverTitle:{id:"linkSettingsPopoverTitle",defaultMessage:"Link Settings",description:"Link settings popover title"},linkTo:{id:"linkTo",defaultMessage:"Link To",description:"Link to popover option"},linkToPage:{id:"linkToPage",defaultMessage:"Link to Page",description:"Link to page action"},targetPageLink:{id:"targetPageLink",defaultMessage:"Page Number",description:"Link settings popover target link"},linkSettings:{id:"linkSettings",defaultMessage:"Link Settings",description:"Link Settings"},uriLink:{id:"uriLink",defaultMessage:"Website",description:"Link to uri"},pageLink:{id:"pageLink",defaultMessage:"Page",description:"Link to a page"},openLink:{id:"openLink",defaultMessage:"Open Link",description:"Open link to a page"},goToPageLink:{id:"goToPageLink",defaultMessage:"Go to Page",description:"Go to a page link"},invalidPageNumber:{id:"invalidPageNumber",defaultMessage:"Enter a valid page number.",description:"Invalid page number"},invalidPageLink:{id:"invalidPageLink",defaultMessage:"Enter a valid page link.",description:"Invalid page link"}});var My=n(55950),Ny=n(89054),Oy=n.n(Ny);const Ry=function(e){const{referenceRect:t,viewportState:n,activeTextBlock:r,fontFace:o}=e,i=(0,s.wA)(),{formatMessage:a}=(0,ve.tz)(),l=(0,s.d4)((e=>e.contentEditorSession.fontMismatchTooltip?.dismissAbortController??null));return(0,oe.jsx)(hm.A,{referenceRect:t.apply((0,Z.zo)(n,r.pageIndex)).translate(n.scrollPosition.scale(n.zoomLevel)),viewportState:n,className:p()(Oy().container,"PSPDFKit-Font-Mismatch-Notification-Container"),color:[new P.Q1({r:255,g:199,b:143})],arrowSize:0,arrowClassName:Oy().arrow,children:(0,oe.jsx)("div",{className:p()(Oy().wrapper,"PSPDFKit-Font-Mismatch-Notification"),onPointerOver:()=>{l&&l.abort()},onPointerLeave:()=>{const e=new AbortController;i((0,ap.xe)(e)),i((0,ap.le)(e.signal))},children:(0,oe.jsx)("span",{className:Oy().tooltipFont,children:a(cf.fontMismatch,{arg0:o})})})})},jy=u.memo((function(e){const t=(0,ve.tz)(),n=(0,s.wA)(),r=(0,s.d4)((e=>e.selectedGroupId)),{selectedAnnotationIds:o}=e;return(0,oe.jsxs)("div",{className:p()("PSPDFKit-Multi-Annotations-Selection-Toolbar",Ac().root,Ac().content,Ac().reverseRow),ref:e.nodeRef,children:[(0,oe.jsx)(Bc,{type:"delete",title:t.formatMessage(xe.A.delete),className:Ac().button,onPress:()=>{n((0,lt.n9)(o))}}),r?null:(0,oe.jsx)(Bc,{type:"group",title:t.formatMessage(xe.A.group),className:Ac().button,onPress:()=>{n((0,Dt.vE)(o))}}),r?(0,oe.jsx)(Bc,{type:"ungroup",title:t.formatMessage(xe.A.ungroup),className:Ac().button,onPress:()=>{n((0,Dt.g8)(r))}}):null]})}));const Fy=jy,By=e=>{const t=(0,s.wA)(),{formatMessage:n}=(0,ve.tz)(),{interactionMode:r,currentItemPreset:o,frameWindow:i,backend:a}=e;function l(e,n,i){t((0,we.J9)()),r===n&&i===o?(0,s.vA)((()=>{t((0,lt.iE)(null)),t((0,Dt.NP)())})):(0,s.vA)((()=>{t((0,lt.iE)(i)),t((0,Dt.kJ)(e,n))}))}return(0,oe.jsxs)("div",{className:p()("PSPDFKit-Measurement-Toolbar",Ac().root,Ac().content,Ac().measurementToolbar),onMouseUp:zc,onTouchEnd:zc,onPointerUp:zc,ref:e.nodeRef,children:[I.Kh.map((e=>(0,oe.jsx)(Rc,{type:e.icon,title:n(xe.A[e.localeKey]),className:p()(su().measurementButton,{[su().measurementButtonActive]:r===e.interactionMode},e.className),onPress:()=>{l(e.class,e.interactionMode,e.preset)},selected:r===e.interactionMode},e.interactionMode))),(0,oe.jsx)("div",{className:su().spacer}),(0,oe.jsxs)("div",{className:Ac().right,children:[(0,oe.jsx)(Qc.Ay,{frameWindow:i}),(0,oe.jsx)(Rc,{type:"scale",title:n(mc.DZ.measurementScale),className:p()(Ac().measurementToolbarButton)},"scale"),(0,oe.jsx)(Rc,{type:"calibrate",title:n(mc.DZ.calibrate),className:p()(su().measurementButton,"PSPDFKit-Scale-Calibration"),onPress:()=>{const e=I.Kh.find((e=>e.interactionMode===L.O.DISTANCE));e&&(t((0,It.Qc)(!0)),l(e.class,e.interactionMode,e.preset))}},"calibrate"),"STANDALONE"===a?.type&&(0,oe.jsx)("button",{className:p()(Ac().pointSnappingToggleButtonWrapper,"PSPDFKit-Measurement-Snapping-Toggle"),children:(0,oe.jsx)("div",{className:p()(Ac().pointSnappingToggleButton),children:(0,oe.jsxs)("label",{className:p()(Ac().checkbox),children:[(0,oe.jsx)("input",{type:"checkbox",name:"toggle-point-snapping",checked:!e.disablePointSnapping,onChange:()=>{t((0,Dt.PP)(!e.disablePointSnapping))}}),(0,oe.jsx)("span",{className:Ac().checkboxLabel,children:n(xe.A.Snapping)})]})})})]})]})};var Ly=n(87515),Vy=n(42866),Ky=n.n(Vy);const Hy=function(e){const{referenceRect:t,viewportState:n,isReadOnly:r,isLocked:o,hasLockedContents:i}=e,{formatMessage:a}=(0,ve.tz)(),s=[r?a(xe.A.readOnlyAnnotationFlag):"",o?a(xe.A.locked):"",i?a(xe.A.lockedContents):""].filter((e=>""!==e)).join(", "),l=t.grow(10);return(0,oe.jsx)(hm.A,{referenceRect:l,viewportState:n,className:"PSPDFKit-Annotation-Flags-Popover",arrowClassName:Ky().arrow,children:(0,oe.jsx)("span",{className:Ky().tooltip,"aria-label":s,children:s})})},$y=e=>{let{showComments:t,showRedactions:n,showAIAssistant:r}=e;const o=[{type:"highlight"},{type:"strikeout"},{type:"underline"},{type:"squiggle"}];return t&&o.push({type:"comment"}),n&&o.push({type:"redact-text-highlighter"}),r&&o.push({type:"ai-assistant"}),o};var Uy=n(13800),Wy=n.n(Uy);function qy(e){let{text:t,anchorClassName:n,textClassName:r,tag:o}=e;return(0,oe.jsx)(o||"p",{className:r,children:t.split(" ").map(((e,t)=>{let r="",o=e;return(e.endsWith(".")||e.endsWith(","))&&(r=e.slice(-1),o=e.slice(0,-1)),URL.canParse(o)&&new URL(o).protocol.startsWith("http")?(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsx)("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:n,children:o},t),r]}):e})).reduce(((e,t,n)=>e.concat([n>0?" ":"",t])),[])})}function Gy(e){const t=u.useCallback((()=>{e.evaluationUrl&&(window.location.href=e.evaluationUrl)}),[e.evaluationUrl]);return(0,oe.jsxs)(jf.A,{role:"alertdialog",restoreOnClose:!1,className:p()("PSPDFKit-NoLicenseTimeout-Dialog",Wy().noLicenseTimeoutModal),accessibilityDescription:"Dialog that pops up after some time when no trial or commercial license is provided.",accessibilityLabel:"No trial license provided warning dialog.",children:[(0,oe.jsxs)(jf.A.Section,{className:Wy().topSection,children:[(0,oe.jsx)(Te.A,{src:n(30226),className:Wy().icon}),(0,oe.jsx)("h2",{className:Wy().header,children:"Your evaluation period has expired"}),(0,oe.jsx)("hr",{className:Wy().modalSeparator}),(0,oe.jsx)(qy,{tag:"p",text:e.evaluationMessage||"",textClassName:Wy().text,anchorClassName:Wy().link})]}),(0,oe.jsx)(jf.A.Section,{className:Wy().bottomSection,children:(0,oe.jsx)(o.$n,{autoFocus:!0,onClick:t,className:p()("PSPDFKit-NoLicenseTimeout-Dialog-Button",Wy().button,Wy().signUpButton),primary:!0,children:"Contact Support"})})]})}var Zy=n(36899),Yy=n(92180),Xy=n.n(Yy);const Jy=(0,u.memo)((function(e){let{closeOnPress:t=!1,formFields:n,signaturesInfo:r,annotations:o,navigationDisabled:i}=e;const[l,c]=(0,u.useState)(null);(0,u.useEffect)((()=>{l?.focus()}),[l]);const{formatMessage:d}=(0,ve.tz)(),h=(0,s.wA)(),f=(0,br.Kw)((e=>{const n=o.find((t=>t instanceof ce.sb&&t.formFieldName===e));(0,ye.V)(n),h((0,vc.YQ)(n.pageIndex,n.boundingBox)),t&&h((0,Dt.hP)())})),m=(0,u.useMemo)((()=>o.filter((e=>{if(e instanceof ce.sb){(0,ye.V)(n);const t=n.get(e.formFieldName);if(t instanceof Zy.Vw)return!r?.signatures?.some((e=>e.signatureFormFQN===t.name))}return!1})).sortBy((e=>[e.pageIndex,e.boundingBox.top]),$.lj).reduce(((e,t)=>e.push({type:"unsigned-signature-field",annotation:t})),(0,a.B8)(r?.signatures?.map((e=>({type:"signature",signature:e})))||[]))),[o,n,r]),g=(0,br.d3)(l,m),v=(0,br.jU)(g,(e=>"signature"===e.type?e.signature.signatureFormFQN:e.annotation.formFieldName),(e=>m.find((t=>"unsigned-signature-field"===t.type?t.annotation.formFieldName===e:t.signature.signatureFormFQN===e))));return(0,oe.jsxs)("div",{className:p()(Xy().container,"PSPDFKit-Sidebar-Signatures"),role:"region","aria-label":d(xe.A.signatures),ref:c,children:[(0,oe.jsx)("div",{className:p()(Xy().header,"PSPDFKit-Sidebar-Header"),children:d(xe.A.signatures)}),m.size>0?(0,oe.jsx)("ul",{className:p()(Xy().itemList,"PSPDFKit-Sidebar-Signatures-Container"),children:m.map((e=>{const t=(0,Se.A)({type:`${e.type}${"signature"===e.type?`-${e.signature?.signatureValidationStatus}`:""}`,className:p()(Xy().icon,"signature"===e.type?Xy().iconSigned:Xy().iconUnsigned,{[Xy().iconValid]:"signature"===e.type&&"valid"===e.signature?.signatureValidationStatus,[Xy().iconWarning]:"signature"===e.type&&"warning"===e.signature?.signatureValidationStatus,[Xy().iconError]:"signature"===e.type&&"error"===e.signature?.signatureValidationStatus},"PSPDFKit-Sidebar-Signatures-Icon")}),n="signature"===e.type?e.signature.signatureFormFQN:e.annotation.formFieldName,r="signature"===e.type&&e.signature.signerName||n;return(0,oe.jsxs)("li",{ref:v?t=>{v&&t&&v(t,e)}:void 0,onClick:()=>{i||f(n)},className:p()(Xy().item,"PSPDFKit-Sidebar-Signatures-Item"),children:[t,(0,oe.jsx)("span",{className:p()(Xy().title,"PSPDFKit-Sidebar-Signatures-Title"),title:r,children:r})]},`${e.type}-${n}`)}))}):(0,oe.jsx)("div",{className:p()(Xy().container,Xy().empty,"PSPDFKit-Sidebar-Empty"),role:"region","aria-label":d(xe.A.signatures),children:d(Qy.noSignatures)})]})})),Qy=(0,ve.YK)({noSignatures:{id:"noSignatures",defaultMessage:"No Signatures",description:"Message shown when there are no signatures"}});function eb(e){let{onSelectImage:t}=e;const n=u.useCallback((e=>{e&&(e.click(),function(e,t){(0,b.YQ)(16.4)?(e.addEventListener("blur",(()=>{e.addEventListener("blur",(()=>{t()}),{once:!0})}),{once:!0}),e.focus()):e.addEventListener("cancel",t,{once:!0})}(e,(()=>t(null))))}),[t]),{formatMessage:r}=(0,ve.tz)();return(0,oe.jsx)(o.s6,{tag:"div",children:(0,oe.jsx)("input",{"aria-label":r(xe.A.selectImage),"aria-hidden":!0,type:"file",accept:"image/png, image/jpeg, application/pdf",onChange:e=>{const n=e.target.files?.[0];t(n||null)},tabIndex:-1,ref:n})})}n(77937),n(18855),n(49899),n(5642),n(55418),n(93828),n(23808),n(87874);var tb=n(74373),nb=(n(20381),n(2973),n(11104),n(42116),n(68116),n(43773),n(44784),n(35934),n(76423),n(2078),n(97015),n(22305),n(12224),n(38783),n(14232),n(96411),n(39760),n(12485),n(37952),n(32231),n(25638),n(99008),n(48026),n(86025)),rb=(n(46473),n(48602),n(29279),n(18486),n(94825),n(96879),n(72114),n(33939)),ob=(n(25414),n(46827),n(49858),n(16154),n(63536),n(58366),n(44841),n(43635),n(26591),n(99113),n(1568),n(27538),n(79291),n(88173),n(32144),n(45242)),ib=n.n(ob),ab=n(89009),sb=n(23709),lb=n.n(sb);const cb=n(51630).A,ub=e=>{let{isExpanded:t,title:n,id:r,isSelected:o=!1,isVisible:i,onAction:a,radioGroupsIDs:s,lockedOCGs:l,hasChildren:c,level:u,indentUnit:d,isAncestorHidden:p,isAncestorLocked:h,componentClassName:f,iconsAlignment:m}=e;const{pressProps:g}=(0,bl.dD)({onPress:()=>{a?.({action:"toggleSelection",key:r})}}),{pressProps:v}=(0,bl.dD)({onPress:()=>{a?.({action:"toggleExpanded",key:r})}}),{pressProps:y}=(0,bl.dD)({onPress:()=>{x||h||C||a?.({action:"toggleVisibility",key:r})}}),{pressProps:b}=(0,bl.dD)({onPress:()=>{h||a?.({action:"toggleLock",key:r})}}),w=t?"chevron-down-filled":"chevron-right-filled",x=l?.includes(Number(r))||!1,S=r.startsWith("noid-"),_=s?.includes(Number(r))||!1,C=!x&&_&&s?.some((e=>l?.includes(e))),E=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(e)return"ancestor-hidden";if(r)return null;if(t&&!n)return"eye-open";if(t&&n)return"checked-radio-group";if(!t&&!n)return"eye-close";if(!t&&n)return"unchecked-radio-group";return null}(p,i,_,S),k=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e||n)return"ancestor-locked";if(t)return"ocg-lock";return"ocg-unlock"}(h,x,C),z=!i&&!S,P=(0,oe.jsxs)(oe.Fragment,{children:[S?(0,oe.jsx)(db,{indentUnit:d,level:1,className:`${f}-TreeItem-Spacer`}):(0,oe.jsx)("div",{role:"button",...b,children:(0,oe.jsx)(cb,{type:k,className:ib()(lb().icon,lb().iconContainer,`${f}-TreeItem-LockIcon`,`${f}-TreeItem-LockIcon-${k}`,{[lb().notLocked]:!x&&!h&&!C})})}),E?(0,oe.jsx)("div",{role:"button",...y,children:(0,oe.jsx)(cb,{type:E,className:ib()(lb().icon,lb().iconContainer,lb()[`icon-${E}`],`${f}-TreeItem-VisibilityIcon`,`${f}-TreeItem-VisibilityIcon-${E}`,{[lb().visibilityIconLocked]:(x||h)&&!z})})}):(0,oe.jsx)(db,{indentUnit:d,level:1,className:`${f}-TreeItem-Spacer`})]});return(0,oe.jsxs)("div",{className:ib()(lb().treeItem,`${f}-TreeItem`,{[lb().hidden]:z,[lb().selected]:o,[lb().locked]:x}),children:[m===ab.C.START&&P,c?(0,oe.jsx)("div",{...v,children:(0,oe.jsx)(cb,{type:w,className:ib()(lb().arrowIcon,lb().iconContainer,`${f}-TreeItem-ExpandIcon`)})}):(0,oe.jsx)(db,{indentUnit:d,level:u}),(0,oe.jsx)("p",{...g,className:ib()(lb().treeItem,lb().visibilityIcon,lb().title,`${f}-TreeItem-Title`,{[lb().noOcgId]:S}),style:{width:`calc(100% - ${(u+2)*d}px)`},children:(0,oe.jsx)("span",{className:lb().textWithOverflowEllipsis,children:n})}),m===ab.C.END&&P]})};function db(e){let{level:t,indentUnit:n,className:r}=e;return(0,oe.jsx)("div",{className:ib()(lb().noChildrenSpacer,r),style:{width:t*n}})}ub.displayName="TreeItem";const pb=u.forwardRef(((e,t)=>{let{tree:n,onAction:r,defaultExpandedKeys:o,visibleOCGs:i,lockedOCGs:s,radioGroupsIDs:c,indentUnit:d,componentClassName:p,iconsAlignment:h,...f}=e;const m=(0,nb.Bi)(),g=(0,tb.H8)();(0,l.V1)(g);const[v,y]=u.useState((0,a.NZ)(o||[])),[b,w]=u.useState(null),{focusWithinProps:x}=(0,bl.Rb)({onFocusWithin:()=>{null===b&&(g.focusFirst(),w(n.items[0].key))}}),{keyboardProps:S}=(0,bl.de)({onKeyDown:e=>{const t=e.target,o=t.dataset.key,i=n.getItem(o),s=i.children.length>0;switch(e.key){case"Home":{const e=g.focusFirst();w(e?.dataset.key||b);break}case"End":{const e=g.focusLast();w(e?.dataset.key||b);break}case"ArrowDown":{const e=g.focusNext({from:t,wrap:!0});w(e?.dataset.key||b);break}case"ArrowUp":{const e=g.focusPrevious({from:t,wrap:!0});w(e?.dataset.key||b);break}case"ArrowRight":if(o&&s)if(v.has(o)){const e=g.focusNext({from:t});w(e?.dataset.key||b)}else y((e=>(0,a.NZ)(e.add(o))));break;case"ArrowLeft":if(o)if(v.has(o)&&s)y((e=>(0,a.NZ)([...e].filter((e=>e!==o)))));else if(i.parentKey){const e=g.focusNext({from:t.closest("ul")?.closest("li")});w(e?.dataset.key||b)}break;case"Enter":case" ":o&&r?.({action:"toggleVisibility",key:o})}}}),_=(0,u.useCallback)((e=>{v.has(e)?y((t=>(0,a.NZ)([...t].filter((t=>t!==e))))):y((t=>(0,a.NZ)(t.add(e))))}),[y,v]),C=(0,u.useCallback)((e=>{let{action:t,key:n}=e;"toggleExpanded"===t?_(n):"toggleSelection"===t&&w(b===n?null:n),r?.({action:t,key:n})}),[r,_,b,w]),E=(0,u.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.items,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{isAncestorHidden:r=!1,isAncestorLocked:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.map((e=>{const n=e.key.startsWith("noid-"),a=i?.includes(e.key)||n,l=b===e.key,u=v.has(e.key),f=s?.includes(Number(e.key))||!1,g=`${m}-${e.key}`;return e.children.length?(0,oe.jsxs)("li",{className:ib()(lb().list,lb().parentArrow,lb().treeItemContainer,lb().itemContentContainer,{[lb().selected]:l,[lb().locked]:f}),role:"treeitem","aria-selected":l,tabIndex:0,"data-key":e.key,"aria-expanded":u,"aria-owns":g,children:[(0,oe.jsx)(ub,{id:e.key,title:e.value.title,isExpanded:v.has(e.key),isFocused:null===b||b===e.key,isSelected:b===e.key,onAction:C,isVisible:a,lockedOCGs:s,hasChildren:e.children.length>0,level:t,indentUnit:d,isAncestorHidden:r,isAncestorLocked:o,componentClassName:p,iconsAlignment:h}),(0,oe.jsx)("ul",{className:ib()(lb().childRoot,{[lb().hiddenChildRoot]:!v.has(e.key)}),id:g,role:"group",children:E(e.children,t+1,{isAncestorHidden:!a,isAncestorLocked:f})})]},e.key):(0,oe.jsx)("li",{className:ib()(lb().treeItemContainer,lb().list,lb().itemWithNoChildren,{[lb().selected]:l}),role:"treeitem","aria-selected":l,tabIndex:0,"data-key":e.key,"aria-expanded":u,"aria-owns":g,children:(0,oe.jsx)(ub,{id:e.key,title:e.value.title,isFocused:null===b||b===e.key,isSelected:!1,onAction:C,isVisible:a,radioGroupsIDs:c,lockedOCGs:s,level:t,indentUnit:d,isAncestorHidden:r,isAncestorLocked:o,componentClassName:p,iconsAlignment:h})},e.key)}))}),[n,v,b,i,m,s,c,d,C,p,h]),k=u.useMemo((()=>E()),[E]);return(0,oe.jsx)("ul",{...(0,nb.v6)(S,x,f),role:"tree",ref:t,className:lb().treeView,children:k})}));pb.displayName="TreeViewBase";const hb=u.forwardRef(((e,t)=>{let{items:n,defaultExpandedKeys:r,visibleOCGs:o,lockedOCGs:i,radioGroupsIDs:a,componentClassName:s,...l}=e;const c=(0,rb.Uj)({initialItems:n,getKey:e=>e.id,getChildren:e=>e.children||[]}),d=(0,u.useCallback)((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];for(const n of e)t.push(n.key),d(n.children,t);return t}),[]),p=u.useMemo((()=>"all"===r?d(c.items):Array.isArray(r)?r:void 0),[c,r,d]);return(0,oe.jsx)(tb.n1,{children:(0,oe.jsx)(pb,{...l,defaultExpandedKeys:p,tree:c,visibleOCGs:o,ref:t,radioGroupsIDs:a,lockedOCGs:i,componentClassName:s||"TreeView"})})}));hb.displayName="TreeView";var fb,mb=n(33785),gb=n.n(mb),vb=n(65473),yb=n.n(vb);function bb(e){const{sidebarOptions:t,setSidebarOptions:n,visibleLayers:r,OCGLayers:o}=e,{lockedLayers:i,iconsAlignment:c}=t,d=(0,s.wA)(),{formatMessage:h}=(0,ve.tz)(),[f,m]=u.useState((0,a.NZ)(r.map((e=>e.toString())))),[g,v]=u.useState(i);u.useEffect((()=>{(function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0})(i,g)||v(i)}),[i]),u.useEffect((()=>{const e=(0,a.NZ)(r.map((e=>e.toString())));f.equals(e)||m(e)}),[r]);const y=(o?.filter((e=>!zb(e)&&"number"==typeof e.radioGroup))??[]).map((e=>e.ocgId)).filter((e=>"number"==typeof e)),b=u.useCallback((e=>{let{action:r,key:a}=e;if("toggleVisibility"===r){(0,l.V1)(o),(0,l.V1)(f);const e=Ab(o,Number(a));if(!e)return;const t=f.toArray();if(f.includes(a))if(e&&zb(e)){const t=Sb(e,a,f,i);d((0,zs.gp)({visibleLayerIds:t.toArray().map((e=>Number(e)))}))}else{const{currentVisibleOCGs:e}=_b(t,a);d((0,zs.gp)(e));const n=f.delete(a);m(n)}else if(e&&zb(e)){const{currentVisibleOCGs:t,newVisibleOCGs:n}=Cb(e,a,f,o);m(n),d((0,zs.gp)(t))}else if(y?.includes(Number(a))){const{currentVisibleOCGs:e,newVisibleOCGs:t}=kb(a,y,f);m(t),d((0,zs.gp)(e))}else{const e=Eb(o,Number(a)),n=f.add(a).union(e);m(n),t.push(a);const r={visibleLayerIds:t.concat(e).map((e=>Number(e)))};d((0,zs.gp)(r))}}else if("toggleLock"===r){const e=g.includes(Number(a))?g.filter((e=>e!==Number(a))):g.concat(Number(a));n({...t,lockedLayers:e})}}),[o,f,d,i,t,y,g,n]);if(!o)return(0,oe.jsx)("div",{className:p()(gb().OCGsContainer,"PSPDFKit-Sidebar-Layers"),children:fb||(fb=(0,oe.jsx)(Ie.A,{}))});if(0===o.length)return(0,oe.jsx)("div",{className:p()(gb().OCGsContainer,"PSPDFKit-Sidebar-Layers"),children:(0,oe.jsx)("div",{className:p()("PSPDFKit-Sidebar-Layers-Header"),children:(0,oe.jsx)("div",{className:p()(vb.empty,"PSPDFKit-Sidebar-Empty"),children:h(xe.A.noLayers)})})});const w=wb(o);return(0,oe.jsxs)("div",{className:p()(gb().OCGsContainer,"PSPDFKit-Sidebar-Layers"),children:[(0,oe.jsx)("div",{className:p()(gb().title,"PSPDFKit-Sidebar-Layers-Header"),children:h(xe.A.layers)}),(0,oe.jsx)(hb,{items:w,visibleOCGs:f,onAction:b,lockedOCGs:g,radioGroupsIDs:y,indentUnit:32,componentClassName:"PSPDFKit-Layers",iconsAlignment:c})]})}const wb=e=>e.map((e=>xb(e)));function xb(e){return{id:e.ocgId?.toString()||`noid-${(0,Bi.A)()}`,title:e.name||"",description:e.name,children:zb(e)?e.layers.map((e=>xb(e))):[]}}const Sb=(e,t,n,r)=>{const o=e?.layers.filter((e=>!r.includes(e.ocgId))).map((e=>e.ocgId)),i=[...o,Number(t)].map((e=>e.toString()));return n.filter((e=>!i.includes(e)))},_b=(e,t)=>{const n={visibleLayerIds:e.map((e=>Number(e))).filter((e=>e!==Number(t)))};return{currentVisibleOCGs:n}},Cb=(e,t,n,r)=>{const o=e?.layers.map((e=>e.ocgId?.toString())),i=[...o,t],s=(0,a.NZ)([...i,...n,...Eb(r,Number(t))]);return{currentVisibleOCGs:Pb(s),newVisibleOCGs:s}},Eb=(e,t)=>{if(!e)return[];const n=[];return e.forEach((e=>{zb(e)&&("number"==typeof e.ocgId&&e.layers.some((e=>e.ocgId===t))?n.push(e.ocgId.toString()):n.push(...Eb(e.layers,t)))})),n},kb=(e,t,n)=>{const r=n.find((e=>t.includes(Number(e)))),o=r?n.add(e).delete(r):n.add(e);return{currentVisibleOCGs:Pb(o),newVisibleOCGs:o}};function zb(e){return"layers"in e}const Pb=e=>({visibleLayerIds:e.toArray().map((e=>Number(e)))});function Ab(e,t){const n=e.find((e=>e.ocgId===t));if(n)return n;for(const n of e)if(zb(n)){const e=Ab(n.layers,t);if(e)return e}return null}var Db=n(9945);const Tb=e=>{let{onCreate:t,onDelete:n,onCancel:r,storedSignatures:o,setIsSignaturePickerHidden:i}=e;const a=(0,nb.Bi)(),{formatMessage:l}=(0,ve.tz)(),c=(0,s.d4)((e=>e.ui[xl.Rq.SignaturesList])),d=(0,s.d4)((e=>e.instance)),p=(0,s.d4)((e=>e.backend)),h=(0,s.d4)((e=>e.attachments)),f=(0,u.useMemo)((()=>o?.map((e=>({svgSrc:e instanceof ce.Eo?(0,oe.jsx)(nt,{isSelectable:!1,annotation:e,viewBox:e.boundingBox}):(0,oe.jsx)(Ig,{annotation:e,backend:p,label:e.description||l(xe.A.imageAnnotation),attachment:e.imageAttachmentId?h.get(e.imageAttachmentId):null,templateWidth:200}),id:e.id||(0,Bi.A)()}))).toArray()||[]),[o,l,p,h]),m=(0,u.useMemo)((()=>f?.map(((e,t)=>({id:e.id,annotation:o?.get(t)})))),[o,f]),g=(0,u.useCallback)((e=>{const n=m.find((t=>t.id===e));(0,fu.V1)(n?.annotation,"Signature not found"),t(n.annotation,!1,!1)}),[t,m]),v=(0,u.useCallback)((e=>{const t=m.find((t=>t.id===e));(0,fu.V1)(t?.annotation,"Signature not found"),n(t.annotation,!1)}),[n,m]),y=(0,u.useMemo)((()=>({titleId:a,items:f,onAddFromPreview:g,onRemoveFromPreview:v,onAdd:()=>i(!0),onCancel:r})),[a,f,g,v,r,i]),b=(0,u.useMemo)((()=>({dialogProps:{size:"lg","aria-labelledby":a},modalProps:{onOpenChange:r}})),[r,a]);return(0,Sl.Q)(xl.Rq.SignaturesList,c,y,d,b)},Ib=e=>{let{onCreate:t,preset:n,onCancel:r,colorPresets:o,frameWindow:i,signingFonts:l,hasSignaturesCreationListener:c,creationModes:d}=e;const p=(0,nb.Bi)(),h=(0,s.wA)(),f=(0,s.d4)((e=>e.ui?.[xl.Rq.CreateSignature])),m=(0,s.d4)((e=>e.instance)),{formatMessage:g}=(0,ve.tz)();u.useEffect((()=>{i?.document.fonts&&(0,wa.P8)(l,i.document.fonts)}),[l,i?.document.fonts]);const v=(0,s.d4)((e=>e.electronicSignatureDefaultTextCallback?.()||"")),y=u.useCallback((e=>{(async()=>{if(e.signature?.type===Dl.Gs.DRAW){(0,fu.V1)(e.signature.value,"Signature value is required");const r=(0,a.B8)(e.signature.value.map((e=>(0,a.B8)(e.map((e=>{let[t,n,r]=e;return new z.LL({x:t,y:n,intensity:r})}))))));let o=new ce.Eo({...n,lines:r,isSignature:!0,strokeColor:P.Q1.fromHex(e.color)});o=o.set("boundingBox",(0,Ye.AJ)(o));const i=(0,_o.C)(o,o.boundingBox.getLocation().scale(-1),new z.or(e.canvasSize),new z.bR);t(i,e.shouldStoreSignature,!1)}else if(e.signature?.type===Dl.Gs.IMAGE)(0,fu.V1)(e.signature.value,"Signature value is required"),t(e.signature.value,e.shouldStoreSignature,!1);else{const r=new ce.dh({...n,font:e.selectedFont,fontSize:16,text:{format:"plain",value:e.signature?.value||v},fontColor:P.Q1.fromHex(e.color)}),o=await(0,Ae.Yr)(r.text.value,{font:r.font,fontColor:r.fontColor},i);h((0,lt.M)({fontColor:r.fontColor,font:r.font})),t(o,e.shouldStoreSignature,!1)}})()}),[t,n,h,i,v]),b=(0,u.useMemo)((()=>({titleId:p,colorPresets:o.map((e=>({color:e.color?.toHex()||"",label:g(e.localization)}))),allowStoringSignature:c,allowedTabs:d.toArray(),fonts:l.map((e=>e.name)).toJS(),onCloseRequest:r,initialState:{shouldStoreSignature:c,text:v},onAdd:y})),[p,o,v,c,d,l,r,y,g]),w=(0,u.useMemo)((()=>({dialogProps:{size:"lg","aria-labelledby":p},modalProps:{onOpenChange:r},modalContentProps:{disableAnimation:!0}})),[p,r]);return(0,Sl.Q)(xl.Rq.CreateSignature,f,b,m,w)},Mb=e=>{let{storedSignatures:t,...n}=e;const[r,o]=u.useState(!1);return!r&&Boolean(t&&t.size>0)?(0,oe.jsx)(Tb,{...n,setIsSignaturePickerHidden:o,storedSignatures:t}):(0,oe.jsx)(Ib,{...n})};var Nb=n(14063);var Ob=n(40556);function Rb(e){let{onCancel:t,onCreate:n,dispatch:r,backend:o,stampAnnotationTemplates:i,viewportWidth:a,attachments:l}=e;const c=(0,nb.Bi)(),d=(0,s.d4)((e=>e.ui[xl.Rq.StampsList])),p=(0,s.d4)((e=>e.instance)),h=function(e){let{stampAnnotationTemplates:t}=e;const n=(0,ve.tz)();return(0,u.useMemo)((()=>{const e=t.map((e=>(e instanceof P.xY&&(null==e.title&&(e=e.set("title",(0,Di.AO)({annotation:e,intl:n}))),e.subtitle&&"Custom"===e.stampType||(e=e.set("subtitle",(0,Di.j5)(Nb.qm[e.stampType],new Date,n))),void 0!==Nb.Rv[e.stampType]&&(e=e.set("stampType",Nb.Rv[e.stampType]))),e)));return Object.fromEntries(e.map((e=>[(0,B.K1)(),e])))}),[n,t])}({stampAnnotationTemplates:i}),f=function(e){let{viewportWidth:t,backend:n,attachments:r,annotations:o}=e;const i=(0,ve.tz)();return(0,u.useMemo)((()=>{const{formatMessage:e}=i;return Object.entries(o).map((t=>{let[o,a]=t;return{id:o,"aria-label":(0,Di.AO)({annotation:a,intl:i}),svgSrc:(0,oe.jsx)("div",{className:(0,hu.UV)({display:"flex",justifyContent:"center",backgroundColor:"background.primary.medium",paddingX:"xl",height:"full",flex:1}),children:(0,oe.jsx)(Ig,{annotation:a,backend:n,label:a instanceof P.vU?e(xe.A.imageAnnotation):a.title||e(Ob.A[(0,R.$h)((0,Nb.rC)(a.stampType))]),attachment:a.imageAttachmentId?r.get(a.imageAttachmentId):null,templateWidth:0,contain:!0})},o)}}))}),[i,n,o,t,r])}({viewportWidth:a,backend:o,attachments:l,annotations:h}),m=(0,u.useCallback)((e=>{const t=h[e];t&&n(t)}),[h,n]),g=(0,u.useMemo)((()=>({titleId:c,items:f,onCustomStampPress:()=>{r((0,Dt.BQ)())},onCancel:t,onAdd:m})),[c,f,t,m,r]),v=(0,u.useMemo)((()=>({dialogProps:{"aria-labelledby":c},modalProps:{onOpenChange:t},modalContentProps:{disableAnimation:!0}})),[t,c]);return(0,Sl.Q)(xl.Rq.StampsList,d,g,p,v)}function jb(e){let{onCancel:t,onCreate:n,dispatch:r}=e;const o=(0,nb.Bi)(),i=(0,s.d4)((e=>e.ui[xl.Rq.CreateStamp])),a=(0,s.d4)((e=>e.instance)),l=(0,u.useCallback)((e=>{let{text:t="",subText:r="",color:o,width:i=0}=e;const a=new P.xY({stampType:"Custom",title:t,subtitle:r,...o?{color:P.Q1.fromHex(o)}:null,boundingBox:new P.rw({left:0,top:0,width:i,height:_e.J0})});n(a)}),[n]),c=(0,u.useMemo)((()=>({titleId:o,colorPresets:Di.d0,onCreate:l,onCloseRequest:t,getLighterVariant:e=>P.Q1.fromHex(e).lighter(_e.aD).toHex(),onExistingStampPress:()=>{r((0,Dt.A5)())}})),[o,t,r,l]),d=(0,u.useMemo)((()=>({dialogProps:{"aria-labelledby":o},modalProps:{onOpenChange:t}})),[o,t]);return(0,Sl.Q)(xl.Rq.CreateStamp,i,c,a,d)}function Fb(e){let{onCancel:t,onCreate:n,mode:r,dispatch:o,backend:i,stampAnnotationTemplates:a,viewportWidth:s,attachments:l}=e;return(0,oe.jsxs)(oe.Fragment,{children:[r===L.O.STAMP_PICKER&&(0,oe.jsx)(Rb,{attachments:l,onCreate:n,onCancel:t,stampAnnotationTemplates:a,backend:i,dispatch:o,viewportWidth:s}),r===L.O.STAMP_CUSTOM&&(0,oe.jsx)(jb,{onCreate:n,onCancel:t,dispatch:o})]})}var Bb=n(79308);let Lb=function(e){return e.Connected="connected",e.Disconnected="disconnected",e.Reconnect_failed="reconnect_failed",e}({});function Vb(e){return e.endsWith("/")&&(e=e.slice(0,-1)),e}const Kb=(0,ve.YK)({chat:{id:"chat",defaultMessage:"Chat"},close:{id:"close",defaultMessage:"Close"},goToSelection:{id:"goToSelection",defaultMessage:"Go to selection"}}),Hb="PLAIN",$b="SUGGESTIONS",Ub="QUERY_RESULT",Wb="ERROR",qb="ACTIONS",Gb="ADDITIONAL_CONTEXT";function Zb(e){let{onSendMessage:t,onTemplateAction:n,dispatch:r,formatMessage:o}=e;return(0,br.Kw)(((e,i,s)=>{const{suggestions:l,additionalContext:c,links:u,stagedActions:d}=i;if(Array.isArray(d)&&d.some((e=>"redact"===e.type))){const n=[{text:o(xe.A.applyRedactions),onPress:()=>{r((0,Dt.l8)()),r((0,_p.g)((()=>r((0,Dt.gp)())),(()=>r((0,Dt.gp)()))))}}];return s&&!s.isEmpty()&&n.unshift({text:o(xe.A.discard),onPress:()=>{r((0,lt.n9)(s?.toSet())),n.shift()}}),{...e,type:qb,actions:n,suggestions:l?l.map((e=>{let{text:n,agent:r,parameters:o}=e;return{onPress:()=>t(n,r,o),text:n}})):void 0}}return Array.isArray(l)&&l.length>0?c?{...e,...c&&{additionalContext:c.text,linkToAdditionalContext:{text:o(Kb.goToSelection),onPress:()=>r((0,vc.YQ)(c.pageIndex,new P.rw(c.boundingBox)))}},type:Gb,actions:l.map((e=>{let{type:r,text:o,agent:i,parameters:a,template:s}=e;return"request"===r?{onPress:()=>t(a?.input,i,a),text:o}:{text:o,onPress:()=>n({text:s??"",agent:i,parameters:a})}}))}:l.every((e=>{let{type:t}=e;return"request"===t}))?{...e,type:$b,suggestions:l.map((e=>{let{text:n,agent:r,parameters:o}=e;return{onPress:()=>t(n,r,o),text:n}}))}:{...e,type:qb,actions:l.map((e=>{let{type:r,text:o,agent:i,template:a,parameters:s}=e;return"request"===r?{onPress:()=>t(s?.input??o,i,s),text:o}:{text:o,onPress:()=>n({text:a??"",agent:i,parameters:s})}}))}:Array.isArray(u)&&u.length>0?{...e,type:Ub,links:u.map((e=>{let{text:t,href:n}=e;if(n.startsWith("document://")){const[{pageIndex:e,rects:o}]=JSON.parse(n.replace("document://","")),i=P.rw.union((0,a.B8)(o.map((e=>new P.rw(e)))));return{text:t,onPress:()=>{r(zh(Ph.B)),r((0,vc.YQ)(parseInt(e),i)),r(zh({pageIndex:e,rectsOnPage:(0,a.B8)([i])}))}}}return{text:t,onPress:()=>window.location.assign(n)}})),actionsText:"",actions:[]}:e}))}const Yb=Object.create(null);Yb.open="0",Yb.close="1",Yb.ping="2",Yb.pong="3",Yb.message="4",Yb.upgrade="5",Yb.noop="6";const Xb=Object.create(null);Object.keys(Yb).forEach((e=>{Xb[Yb[e]]=e}));const Jb={type:"error",data:"parser error"},Qb="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),ew="function"==typeof ArrayBuffer,tw=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,nw=({type:e,data:t},n,r)=>Qb&&t instanceof Blob?n?r(t):rw(t,r):ew&&(t instanceof ArrayBuffer||tw(t))?n?r(t):rw(new Blob([t]),r):r(Yb[e]+(t||"")),rw=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function ow(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let iw;const aw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sw="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<64;e++)sw[aw.charCodeAt(e)]=e;const lw="function"==typeof ArrayBuffer,cw=(e,t)=>{if("string"!=typeof e)return{type:"message",data:dw(e,t)};const n=e.charAt(0);if("b"===n)return{type:"message",data:uw(e.substring(1),t)};return Xb[n]?e.length>1?{type:Xb[n],data:e.substring(1)}:{type:Xb[n]}:Jb},uw=(e,t)=>{if(lw){const n=(e=>{let t,n,r,o,i,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const c=new ArrayBuffer(a),u=new Uint8Array(c);for(t=0;t<s;t+=4)n=sw[e.charCodeAt(t)],r=sw[e.charCodeAt(t+1)],o=sw[e.charCodeAt(t+2)],i=sw[e.charCodeAt(t+3)],u[l++]=n<<2|r>>4,u[l++]=(15&r)<<4|o>>2,u[l++]=(3&o)<<6|63&i;return c})(e);return dw(n,t)}return{base64:!0,data:e}},dw=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,pw=String.fromCharCode(30);function hw(){return new TransformStream({transform(e,t){!function(e,t){Qb&&e.data instanceof Blob?e.data.arrayBuffer().then(ow).then(t):ew&&(e.data instanceof ArrayBuffer||tw(e.data))?t(ow(e.data)):nw(e,!1,(e=>{iw||(iw=new TextEncoder),t(iw.encode(e))}))}(e,(n=>{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const e=new DataView(o.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{o=new Uint8Array(9);const e=new DataView(o.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&"string"!=typeof e.data&&(o[0]|=128),t.enqueue(o),t.enqueue(n)}))}})}let fw;function mw(e){return e.reduce(((e,t)=>e+t.length),0)}function gw(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function vw(e){if(e)return function(e){for(var t in vw.prototype)e[t]=vw.prototype[t];return e}(e)}vw.prototype.on=vw.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},vw.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},vw.prototype.off=vw.prototype.removeListener=vw.prototype.removeAllListeners=vw.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},vw.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},vw.prototype.emitReserved=vw.prototype.emit,vw.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},vw.prototype.hasListeners=function(e){return!!this.listeners(e).length};const yw="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),bw="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function ww(e,...t){return t.reduce(((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t)),{})}const xw=bw.setTimeout,Sw=bw.clearTimeout;function _w(e,t){t.useNativeTimers?(e.setTimeoutFn=xw.bind(bw),e.clearTimeoutFn=Sw.bind(bw)):(e.setTimeoutFn=bw.setTimeout.bind(bw),e.clearTimeoutFn=bw.clearTimeout.bind(bw))}function Cw(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class Ew extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class kw extends vw{constructor(e){super(),this.writable=!1,_w(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved("error",new Ew(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=cw(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}class zw extends kw{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const n=e.split(pw),r=[];for(let e=0;e<n.length;e++){const o=cw(n[e],t);if(r.push(o),"error"===o.type)break}return r})(e,this.socket.binaryType).forEach((e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach(((e,i)=>{nw(e,!1,(e=>{r[i]=e,++o===n&&t(r.join(pw))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=Cw()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let Pw=!1;try{Pw="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}const Aw=Pw;function Dw(){}class Tw extends zw{constructor(e){if(super(e),"undefined"!=typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}class Iw extends vw{constructor(e,t,n){super(),this.createRequest=e,_w(this,n),this._opts=n,this._method=n.method||"GET",this._uri=t,this._data=void 0!==n.data?n.data:null,this._create()}_create(){var e;const t=ww(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const n=this._xhr=this.createRequest(t);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this._opts.extraHeaders[e])}}catch(e){}if("POST"===this._method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{n.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this._opts.cookieJar)||void 0===e||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null===(e=this._opts.cookieJar)||void 0===e||e.parseCookies(n.getResponseHeader("set-cookie"))),4===n.readyState&&(200===n.status||1223===n.status?this._onLoad():this.setTimeoutFn((()=>{this._onError("number"==typeof n.status?n.status:0)}),0))},n.send(this._data)}catch(e){return void this.setTimeoutFn((()=>{this._onError(e)}),0)}"undefined"!=typeof document&&(this._index=Iw.requestsCount++,Iw.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=Dw,e)try{this._xhr.abort()}catch(e){}"undefined"!=typeof document&&delete Iw.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(Iw.requestsCount=0,Iw.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",Mw);else if("function"==typeof addEventListener){addEventListener("onpagehide"in bw?"pagehide":"unload",Mw,!1)}function Mw(){for(let e in Iw.requests)Iw.requests.hasOwnProperty(e)&&Iw.requests[e].abort()}const Nw=function(){const e=Ow({xdomain:!1});return e&&null!==e.responseType}();function Ow(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||Aw))return new XMLHttpRequest}catch(e){}if(!t)try{return new(bw[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}const Rw="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class jw extends kw{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,n=Rw?{}:ww(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;nw(n,this.supportsBinary,(e=>{try{this.doWrite(n,e)}catch(e){}r&&yw((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Cw()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const Fw=bw.WebSocket||bw.MozWebSocket;const Bw={websocket:class extends jw{createSocket(e,t,n){return Rw?new Fw(e,t,n):t?new Fw(e,t):new Fw(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends kw{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this._transport.ready.then((()=>{this._transport.createBidirectionalStream().then((e=>{const t=function(e,t){fw||(fw=new TextDecoder);const n=[];let r=0,o=-1,i=!1;return new TransformStream({transform(a,s){for(n.push(a);;){if(0===r){if(mw(n)<1)break;const e=gw(n,1);i=!(128&~e[0]),o=127&e[0],r=o<126?3:126===o?1:2}else if(1===r){if(mw(n)<2)break;const e=gw(n,2);o=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(mw(n)<8)break;const e=gw(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>Math.pow(2,21)-1){s.enqueue(Jb);break}o=i*Math.pow(2,32)+t.getUint32(4),r=3}else{if(mw(n)<o)break;const e=gw(n,o);s.enqueue(cw(i?e:fw.decode(e),t)),r=0}if(0===o||o>e){s.enqueue(Jb);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=hw();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();const o=()=>{n.read().then((({done:e,value:t})=>{e||(this.onPacket(t),o())})).catch((e=>{}))};o();const i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this._writer.write(i).then((()=>this.onOpen()))}))}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;this._writer.write(n).then((()=>{r&&yw((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this._transport)||void 0===e||e.close()}},polling:class extends Tw{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=Nw&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Iw(Ow,this.uri(),e)}}},Lw=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Vw=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Kw(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=Lw.exec(e||""),i={},a=14;for(;a--;)i[Vw[a]]=o[a]||"";return-1!=n&&-1!=r&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=function(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||r.splice(0,1);"/"==t.slice(-1)&&r.splice(r.length-1,1);return r}(0,i.path),i.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,r){t&&(n[t]=r)})),n}(0,i.query),i}const Hw="function"==typeof addEventListener&&"function"==typeof removeEventListener,$w=[];Hw&&addEventListener("offline",(()=>{$w.forEach((e=>e()))}),!1);class Uw extends vw{constructor(e,t){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"==typeof e&&(t=e,e=null),e){const n=Kw(e);t.hostname=n.host,t.secure="https"===n.protocol||"wss"===n.protocol,t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=Kw(t.host).host);_w(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach((e=>{const t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e})),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},n=e.split("&");for(let e=0,r=n.length;e<r;e++){let r=n[e].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}(this.opts.query)),Hw&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},$w.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);const e=this.opts.rememberUpgrade&&Uw.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",(e=>this._onClose("transport close",e)))}onOpen(){this.readyState="open",Uw.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn((()=>{this._onClose("ping timeout")}),e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let n=0;n<this.writeBuffer.length;n++){const r=this.writeBuffer[n].data;if(r&&(e+="string"==typeof(t=r)?function(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(t):Math.ceil(1.33*(t.byteLength||t.size))),n>0&&e>this._maxPayload)return this.writeBuffer.slice(0,n);e+=2}var t;return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,yw((()=>{this._onClose("ping timeout")}),this.setTimeoutFn)),e}write(e,t,n){return this._sendPacket("message",e,t,n),this}send(e,t,n){return this._sendPacket("message",e,t,n),this}_sendPacket(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const o={type:e,data:t,options:n};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?n():e()})):this.upgrading?n():e()),this}_onError(e){if(Uw.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Hw&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const e=$w.indexOf(this._offlineEventListener);-1!==e&&$w.splice(e,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}Uw.protocol=4;class Ww extends Uw{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;Uw.priorWebsocketSuccess=!1;const r=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",(e=>{if(!n)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Uw.priorWebsocketSuccess="websocket"===t.name,this.transport.pause((()=>{n||"closed"!==this.readyState&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}})))};function o(){n||(n=!0,c(),t.close(),t=null)}const i=e=>{const n=new Error("probe error: "+e);n.transport=t.name,o(),this.emitReserved("upgradeError",n)};function a(){i("transport closed")}function s(){i("socket closed")}function l(e){t&&e.name!==t.name&&o()}const c=()=>{t.removeListener("open",r),t.removeListener("error",i),t.removeListener("close",a),this.off("close",s),this.off("upgrading",l)};t.once("open",r),t.once("error",i),t.once("close",a),this.once("close",s),this.once("upgrading",l),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{n||t.open()}),200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}class qw extends Ww{constructor(e,t={}){const n="object"==typeof e?e:t;(!n.transports||n.transports&&"string"==typeof n.transports[0])&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map((e=>Bw[e])).filter((e=>!!e))),super(e,n)}}const Gw="function"==typeof ArrayBuffer,Zw=Object.prototype.toString,Yw="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Zw.call(Blob),Xw="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===Zw.call(File);function Jw(e){return Gw&&(e instanceof ArrayBuffer||(e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||Yw&&e instanceof Blob||Xw&&e instanceof File}function Qw(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(Qw(e[t]))return!0;return!1}if(Jw(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return Qw(e.toJSON(),!0);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&Qw(e[t]))return!0;return!1}function ex(e){const t=[],n=e.data,r=e;return r.data=tx(n,t),r.attachments=t.length,{packet:r,buffers:t}}function tx(e,t){if(!e)return e;if(Jw(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=tx(e[r],t);return n}if("object"==typeof e&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=tx(e[r],t));return n}return e}function nx(e,t){return e.data=rx(e.data,t),delete e.attachments,e}function rx(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=rx(e[n],t);else if("object"==typeof e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=rx(e[n],t));return e}const ox=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ix=5;var ax;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(ax||(ax={}));class sx{constructor(e){this.replacer=e}encode(e){return e.type!==ax.EVENT&&e.type!==ax.ACK||!Qw(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===ax.EVENT?ax.BINARY_EVENT:ax.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==ax.BINARY_EVENT&&e.type!==ax.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=ex(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}}function lx(e){return"[object Object]"===Object.prototype.toString.call(e)}class cx extends vw{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const n=t.type===ax.BINARY_EVENT;n||t.type===ax.BINARY_ACK?(t.type=n?ax.EVENT:ax.ACK,this.reconstructor=new ux(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!Jw(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(void 0===ax[n.type])throw new Error("unknown packet type "+n.type);if(n.type===ax.BINARY_EVENT||n.type===ax.BINARY_ACK){const r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const o=e.substring(r,t);if(o!=Number(o)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(o)}if("/"===e.charAt(t+1)){const r=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}n.nsp=e.substring(r,t)}else n.nsp="/";const r=e.charAt(t+1);if(""!==r&&Number(r)==r){const r=t+1;for(;++t;){const n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){const r=this.tryParse(e.substr(t));if(!cx.isPayloadValid(n.type,r))throw new Error("invalid payload");n.data=r}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case ax.CONNECT:return lx(t);case ax.DISCONNECT:return void 0===t;case ax.CONNECT_ERROR:return"string"==typeof t||lx(t);case ax.EVENT:case ax.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===ox.indexOf(t[0]));case ax.ACK:case ax.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class ux{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=nx(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function dx(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const px=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class hx extends vw{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[dx(e,"open",this.onopen.bind(this)),dx(e,"packet",this.onpacket.bind(this)),dx(e,"error",this.onerror.bind(this)),dx(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var n,r,o;if(px.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const i={type:ax.EVENT,data:t,options:{}};if(i.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++,n=t.pop();this._registerAckCallback(e,n),i.id=e}const a=null===(r=null===(n=this.io.engine)||void 0===n?void 0:n.transport)||void 0===r?void 0:r.writable,s=this.connected&&!(null===(o=this.io.engine)||void 0===o?void 0:o._hasPingExpired());return this.flags.volatile&&!a||(s?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,t){var n;const r=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===r)return void(this.acks[e]=t);const o=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,new Error("operation has timed out"))}),r),i=(...e)=>{this.io.clearTimeoutFn(o),t.apply(this,e)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise(((n,r)=>{const o=(e,t)=>e?r(e):n(t);o.withError=!0,t.push(o),this.emit(e,...t)}))}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...r)=>{if(n!==this._queue[0])return;return null!==e?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...r)),n.pending=!1,this._drainQueue()})),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:ax.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((e=>{if(!this.sendBuffer.some((t=>String(t.id)===e))){const t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}}))}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case ax.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case ax.EVENT:case ax.BINARY_EVENT:this.onevent(e);break;case ax.ACK:case ax.BINARY_ACK:this.onack(e);break;case ax.DISCONNECT:this.ondisconnect();break;case ax.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;return function(...r){n||(n=!0,t.packet({type:ax.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:ax.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const n of t)n.apply(this,e.data)}}}function fx(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}fx.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+n:e-n}return 0|Math.min(e,this.max)},fx.prototype.reset=function(){this.attempts=0},fx.prototype.setMin=function(e){this.ms=e},fx.prototype.setMax=function(e){this.max=e},fx.prototype.setJitter=function(e){this.jitter=e};class mx extends vw{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,_w(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=t.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new fx({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const o=t.parser||r;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new qw(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const r=dx(t,"open",(function(){n.onopen(),e&&e()})),o=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},i=dx(t,"error",o);if(!1!==this._timeout){const e=this._timeout,n=this.setTimeoutFn((()=>{r(),o(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}return this.subs.push(r),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(dx(e,"ping",this.onping.bind(this)),dx(e,"data",this.ondata.bind(this)),dx(e,"error",this.onerror.bind(this)),dx(e,"close",this.onclose.bind(this)),dx(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){yw((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new hx(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const e of t){if(this.nsps[e].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach((e=>e())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var n;this.cleanup(),null===(n=this.engine)||void 0===n||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&n.unref(),this.subs.push((()=>{this.clearTimeoutFn(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const gx={};function vx(e,t){"object"==typeof e&&(t=e,e=void 0);const n=function(e,t="",n){let r=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),r=Kw(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}(e,(t=t||{}).path||"/socket.io"),r=n.source,o=n.id,i=n.path,a=gx[o]&&i in gx[o].nsps;let s;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?s=new mx(r,t):(gx[o]||(gx[o]=new mx(r,t)),s=gx[o]),n.query&&!t.query&&(t.query=n.queryKey),s.socket(n.path,t)}Object.assign(vx,{Manager:mx,Socket:hx,io:vx,connect:vx});class yx{constructor(){(0,y.A)(this,"ongoingRequests",new Map)}create(){const e=(0,Bb.v4)();return this.ongoingRequests.set(e,{lastChunkIndex:null,outOfOrderChunks:[]}),e}update(e,t,n){const r=this.ongoingRequests.get(e);if((0,fu.V1)(r),null===r.lastChunkIndex||n===r.lastChunkIndex+1){{r.lastChunkIndex=n;const e=r.outOfOrderChunks;for(let o=0;o<e.length;o++){const i=e[o];i.index===n+1&&(t+=i.content),r.lastChunkIndex=i.index}r.outOfOrderChunks=[]}return t}{const e={content:t,index:n},o=r.outOfOrderChunks,i=function(e,t){let n=0,r=e.length;for(;n<r;){const o=n+r>>>1;e[o].index<t.index?n=o+1:r=o}return n}(r.outOfOrderChunks,e);o.splice(i,0,e)}}get(e){return this.ongoingRequests.get(e)}delete(e){this.ongoingRequests.delete(e)}clear(){this.ongoingRequests.clear()}}class bx{constructor(e){let{aiAssistantConfiguration:t,features:n,documentId:r,layerName:o,sourcePdfSha256:i,onConnectionStateChange:a}=e;const{backendUrl:s,jwt:l,userId:c,sessionId:u}=t;this.backendUrl=Vb(s),this.jwt=l,this.userId=c,this.sessionId=u,this.features=n,this.documentId=r,this.layerName=o,this.sourcePdfSha256=i,this.ongoingRequestManager=new yx;const d=new URL(s).pathname;this.socket=vx(`${this.backendUrl}/socket/v1/document-assistant`,{path:`${d}${d.endsWith("/")?"":"/"}socket.io`,reconnectionDelay:3e3,reconnection:!0,reconnectionAttempts:2,transports:["websocket"],agent:!1,upgrade:!1,rejectUnauthorized:!1,auth:{token:this.jwt}}),this.socket.on("connect",(()=>{a(Lb.Connected)})),this.socket.on("disconnect",(()=>{a(Lb.Disconnected)})),this.socket.io.on("reconnect_failed",(()=>{a(Lb.Reconnect_failed)}))}async initialize(){try{let e;return e=this.layerName?`${this.backendUrl}/client/api/v1/documents/${this.documentId}/layers/${this.layerName}/ingest/${this.sourcePdfSha256}`:`${this.backendUrl}/client/api/v1/documents/${this.documentId}/ingest/${this.sourcePdfSha256}`,await fetch(e,{headers:{Authorization:`Token token=${this.jwt}`}}),new Promise((e=>{this.socket.once("document-assistant-ready",(async()=>{try{const t=await fetch(`${this.backendUrl}/client/api/v1/sessions/${this.sessionId}`,{headers:{Authorization:`Token token=${this.jwt}`}}),n=await t.json();e(n)}catch(e){throw(0,l.z3)(`Error fetching session data: ${e}`),e}})),this.socket.emit("initialize",{sessionId:this.sessionId,userId:this.userId,clientFeatures:this.features})}))}catch(e){throw(0,l.z3)(`Error during initialization: ${e}`),e}}setSessionId(e){return this.sessionId=e,this.initialize()}setSourcePdfSha256(e){return this.sourcePdfSha256=e,this.initialize()}addErrorListener(e){this.socket.on("error",(t=>{let{request:n,message:r,code:o,innerError:i}=t;const a=this.ongoingRequestManager.get(n.requestId);(0,fu.V1)(a),this.ongoingRequestManager.delete(n.requestId),i&&((0,l.z3)("[Error in AI Assistant]"),(0,l.z3)(`Request: ${JSON.stringify(n)}`),(0,l.z3)(i)),e({request:n,message:r,code:o})}))}addChatBlockListener(e){this.socket.on("chat-block",(t=>{let{requestId:n,content:r="",index:o,end:i,...a}=t;const s=this.ongoingRequestManager.get(n);if((0,fu.V1)(s),i)this.ongoingRequestManager.delete(n),e({requestId:n,content:r,index:o,end:i,...a});else{const t=this.ongoingRequestManager.update(n,r,o);if(void 0===t)return;e({requestId:n,content:t,index:o,end:i,...a})}}))}emitAgentCompletion(e,t,n){const r=this.ongoingRequestManager.create();return this.socket.emit("agent-completion",{requestId:r,agent:e,issuer:t,parameters:n,documents:[{documentId:this.documentId,layerName:this.layerName}],chatId:this.sessionId}),r}emitCompletion(e,t){const n=this.ongoingRequestManager.create();return this.socket.emit("completion",{requestId:n,issuer:e,parameters:t,documents:[{documentId:this.documentId,layerName:this.layerName}],chatId:this.sessionId}),n}destroy(){this.socket.disconnect(),this.ongoingRequestManager.clear()}}class wx{constructor(e,t,n,r,o,i){const{backendUrl:a,jwt:s,userId:l,sessionId:c}=e;this.backendUrl=Vb(a),this.jwt=s,this.userId=l,this.sessionId=c,this.features=t,this.permanentId=n,this.changingId=r,this.ongoingRequestManager=new yx,this.documentBytes=o;const u=new URL(a).pathname;this.socket=vx(`${this.backendUrl}/socket/v1/document-assistant`,{path:`${u}${u.endsWith("/")?"":"/"}socket.io`,reconnectionDelay:3e3,reconnection:!0,reconnectionAttempts:2,transports:["websocket"],agent:!1,upgrade:!1,rejectUnauthorized:!1,auth:{token:this.jwt}}),this.socket.on("connect",(()=>{i(Lb.Connected)})),this.socket.on("disconnect",(()=>{i(Lb.Disconnected)})),this.socket.io.on("reconnect_failed",(()=>{i(Lb.Reconnect_failed)}))}async initialize(){(0,l.pq)(`Checking if document with permanent ID ${this.permanentId} and changing ID ${this.changingId} is already ingested`);const e=`${this.backendUrl}/client/api/v1/documents/${this.permanentId}/fileHash/${this.changingId}`;try{const t=await fetch(e,{headers:{Authorization:`Token token=${this.jwt}`}});switch(t.status){case 204:(0,l.pq)("Document is up to date, no need to ingest it again");break;case 404:case 409:(0,l.pq)("Document is new or hash is not the same. Reingesting..."),await this.ingestDocument();break;case 500:throw new Error("Server error: JWT or API_AUTH_TOKEN might be incorrect. Check the AI Assistant logs for further information.");default:if(!t.ok)throw new Error(`Unexpected response: ${t.status}. Check the AI Assistant logs for further information.`)}return new Promise((e=>{this.socket.once("document-assistant-ready",(async()=>{try{const t=await fetch(`${this.backendUrl}/client/api/v1/sessions/${this.sessionId}`,{headers:{Authorization:`Token token=${this.jwt}`}}),n=await t.json();e(n)}catch(e){throw(0,l.z3)(`Error fetching session data: ${e}. Check the AI Assistant logs for further information.`),e}})),this.socket.emit("initialize",{sessionId:this.sessionId,userId:this.userId,clientFeatures:this.features})}))}catch(e){throw(0,l.z3)(`Error checking if the document is already ingested: ${e}. Check the AI Assistant logs for further information.`),e}}async ingestDocument(){try{const e=`${this.backendUrl}/client/api/v1/documents/ingest`,t=await fetch(e,{method:"POST",headers:{Authorization:`Token token=${this.jwt}`,"Content-Type":"application/pdf"},body:this.documentBytes});if(!t.ok)throw new Error(`HTTP error. Status: ${t.status}. Check the AI Assistant logs for further information.`);const n=await t.json();this.jwt=n.token,(0,l.pq)(`Document ingested as ${n.permanentId} and ${n.changingId}`)}catch(e){throw(0,l.z3)(`Error ingesting document: ${e}. Check the AI Assistant logs for further information.`),e}}setSessionId(e){return this.sessionId=e,this.initialize()}setSourcePdfSha256(e){return Promise.resolve([])}addErrorListener(e){this.socket.on("error",(t=>{let{request:n,message:r,code:o,innerError:i}=t;const a=this.ongoingRequestManager.get(n.requestId);(0,fu.V1)(a),this.ongoingRequestManager.delete(n.requestId),i&&((0,l.z3)("[Error in AI Assistant]"),(0,l.z3)(`Request: ${JSON.stringify(n)}`),(0,l.z3)(i)),e({request:n,message:r,code:o})}))}addChatBlockListener(e){this.socket.on("chat-block",(t=>{let{requestId:n,content:r="",index:o,end:i,...a}=t;const s=this.ongoingRequestManager.get(n);if((0,fu.V1)(s),i)this.ongoingRequestManager.delete(n),e({requestId:n,content:r,index:o,end:i,...a});else{const t=this.ongoingRequestManager.update(n,r,o);if(void 0===t)return;e({requestId:n,content:t,index:o,end:i,...a})}}))}emitAgentCompletion(e,t,n){const r=this.ongoingRequestManager.create();return this.socket.emit("agent-completion",{requestId:r,agent:e,issuer:t,parameters:n,documents:[{documentId:this.permanentId,layerName:""}],chatId:this.sessionId}),r}emitCompletion(e,t){const n=this.ongoingRequestManager.create();return this.socket.emit("completion",{requestId:n,issuer:e,parameters:t,documents:[{documentId:this.permanentId,layerName:""}],chatId:this.sessionId}),n}destroy(){this.socket.disconnect(),this.ongoingRequestManager.clear()}}function xx(e,t,n,r){t(e),e===Lb.Disconnected?n(!0):e===Lb.Reconnect_failed&&(n(!1),r((e=>[...e,{type:Wb,id:"error",text:"",error:{title:"Connection error",description:"Failed to connect to the AI Assistant. Please try again later."},sender:"AI",isComplete:!0}])))}var Sx=n(37094);async function _x(e){let t,{configuration:n,features:r,modeProps:o,webBackend:i,instance:s,setConnectionState:c,setIsLoading:u,setMessages:d,setIsGenerating:p,transformSerializableToChatDialogMessage:h}=e;if("standalone"===o.mode){const{permanentId:e,changingId:a}=o;(0,l.V1)(e&&a,"permanentId and changingId must be defined"),(0,l.V1)(i&&"getDocumentBytes"in i,"Web backend must be StandaloneBackendWASM");const s=await i.getDocumentBytes();t=new wx(n,r,e,a,s,(e=>xx(e,c,u,d)))}else{const{documentId:e,layerName:i,sourcePdfSha256:a}=o;(0,l.V1)(e&&a,"documentId and sourcePdfSha256 must be defined"),t=new bx({aiAssistantConfiguration:n,features:r,documentId:e,layerName:i,sourcePdfSha256:a,onConnectionStateChange:e=>xx(e,c,u,d)})}return t.addErrorListener((e=>{let{request:t,message:n,code:r}=e;d((e=>e.map((e=>e.id===`response-${t.requestId}`?{...e,type:Wb,error:{title:r,description:n},isComplete:!0}:e))))})),t.addChatBlockListener((async e=>{let t,{requestId:n,end:r,content:o,actions:i,...l}=e;if(r&&p(!1),Array.isArray(l.stagedActions)&&l.stagedActions.some((e=>"redact"===e.type))){const e=new Set(i?.filter((e=>"staged-redaction"===e.type)).map((e=>e.terms.map((e=>function(e){return Array.from((new Intl.Segmenter).segment(e)).map((e=>e.segment.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/[‘’']/g,"[‘’']").replace(/["“”«»„]/g,'["“”«»„]'))).join("[-]?[\n\r\t]?")}(e))))).flat()),n=i?.filter((e=>"staged-redaction"===e.type)).map((e=>e.pageIndex));if(n&&n.length>0){const r=Math.min(...n),o=Math.max(...n)-r+1;if(o>0){const n=await(s?.createRedactionsBySearch(Array.from(e).join("|"),{searchType:Sx.n.REGEX,caseSensitive:!1,searchInAnnotations:!1,startPageIndex:r,pageRange:o}));n&&n.size>0&&(t=(t||(0,a.B8)()).concat(n))}}}d((e=>e.map((e=>{if(e.id===`response-${n}`){const n={...e,text:e.text+o,isComplete:r};return h(n,l,t)}return e}))))})),t}const Cx={value:"",agent:null,parameters:null};function Ex(e){let{toolbarsHeight:t,configuration:n,isOpen:r,...o}=e;const i=(0,nb.Bi)(),a=(0,s.d4)((e=>e.instance)),l=(0,s.d4)((e=>e.aiAssistant.additionalContext)),[c,d]=(0,u.useState)(Cx),p=(0,u.useRef)(null),h=(0,br.Kw)((()=>(n.onMessageSubmit?.(),{agent:c.agent,parameters:c.parameters}))),f=(0,u.useCallback)((e=>{let{text:t,...n}=e;p.current&&(d({value:t,...n}),p.current.setCaretPosition(t.lastIndexOf('"')??-1))}),[]),{messages:m,onSendMessage:g,isLoading:y,isConnected:b,isGenerating:w}=function(e){let{configuration:t,additionalContext:n,onTemplateAction:r,onMessageSubmit:o,...i}=e;const{formatMessage:a}=(0,v.useI18n)(),[l,c]=(0,u.useState)(null),[d,p]=(0,u.useState)(!0),[h,f]=(0,u.useState)(!1),[m,g]=(0,u.useState)([]),[y,b]=(0,u.useState)(null),w=(0,s.wA)(),x=(0,s.d4)((e=>e.instance)),S=(0,s.d4)((e=>e.features)),_=(0,s.d4)((e=>e.backend)),C=(0,br.Kw)(((e,t,n)=>{if(l!==Lb.Connected||h||!y)return;const{agent:r,parameters:i}=o();let a;f(!0);const s={input:e,...n,...i};a=r||t?y.emitAgentCompletion(r??t,"user",s):y.emitCompletion("user",s),g((t=>[...t,{type:Hb,id:`request-${a}`,text:e,sender:"You",isComplete:!0},{type:Hb,id:`response-${a}`,text:"",sender:"AI",isComplete:!1}]))})),E=Zb({onSendMessage:C,onTemplateAction:r,dispatch:w,formatMessage:a}),k=(0,br.Kw)((e=>{if(g(e.map((e=>{let{content:t,sender:n,...r}=e;const o={type:Hb,id:(0,Bb.v4)(),text:t,sender:"ai"===n?"AI":"You",isComplete:!0};return E(o,r)}))),0===e.filter((e=>{let{requestId:t}=e;return"evaluation-license"!==t})).length&&!n){f(!0);const e=y?.emitAgentCompletion("SuggestedQuestions","system",{input:""});g((t=>[...t,{type:$b,suggestions:[],id:`response-${e}`,text:"",sender:"AI",isComplete:!1}]))}p(!1)}));return(0,u.useEffect)((()=>{(async()=>{const e=await _x({configuration:t,features:S,modeProps:i,webBackend:_,instance:x,setConnectionState:c,setIsLoading:p,setMessages:g,setIsGenerating:f,transformSerializableToChatDialogMessage:E});b(e)})()}),[]),(0,u.useEffect)((()=>{if(y)return y.initialize().then(k),()=>{y.destroy()}}),[y,k]),(0,u.useEffect)((()=>{y&&(p(!0),y.setSessionId(t.sessionId).then(k))}),[t.sessionId]),(0,u.useEffect)((()=>{y&&"server"===i.mode&&(p(!0),y.setSourcePdfSha256(i.sourcePdfSha256).then(k))}),["server"===i.mode?i.sourcePdfSha256:void 0]),(0,u.useEffect)((()=>{if(y&&!d&&n){const e=y.emitAgentCompletion("SelectedTextSuggestedActions","system",{context:n});r({text:"",agent:"ContextSpecificQA",parameters:{context:n}}),g((t=>[...t,{type:Gb,id:`response-${e}`,text:"",sender:"AI",additionalContext:n.text,isComplete:!1,actions:[],linkToAdditionalContext:{text:a(Kb.goToSelection),onPress:()=>w((0,vc.YQ)(n.pageIndex,new P.rw(n.boundingBox)))}}])),w((0,Dt.Z0)(null))}}),[y,w,d,n,a]),{messages:m,onSendMessage:C,isLoading:d,isConnected:l===Lb.Connected,isGenerating:h}}({configuration:n,additionalContext:l,onTemplateAction:f,onMessageSubmit:h,...o}),x=(0,s.wA)(),S=(0,u.useCallback)((()=>{x((0,Dt.q6)(!1))}),[x]),_=(0,s.d4)((e=>e.ui[xl.Rq.ChatDialog])),C=(0,u.useCallback)((e=>{g(e),d(Cx)}),[g]),E=(0,u.useMemo)((()=>({editorHandle:p,isLoading:y,isSubmitDisabled:!b||w||y,messages:m,onMessageSubmit:C,onInputChanged:e=>d((t=>({...t,value:e}))),titleId:i,style:{height:"calc(100vh - 49px)",minHeight:"40vh"},inputValue:c.value})),[w,b,i,c,d,C,y,m]),k=(0,u.useMemo)((()=>({titleId:i,onCloseRequest:S,showHeaderOnMobile:!0,mobileHeaderTitle:"Chat",topOffset:t,isOpen:r})),[i,S,t,r]);return(0,Sl.Q)(xl.Rq.ChatDialog,_,E,a,k)}function kx(e){const{isOpen:t}=e;return function(e){let{isMounted:t,delay:n}=e;const[r,o]=(0,u.useState)(!1);return(0,u.useEffect)((()=>{let e;return t&&!r?o(!0):!t&&r&&(e=setTimeout((()=>o(!1)),n)),()=>clearTimeout(e)}),[t,n,r]),r}({isMounted:t,delay:200})?(0,oe.jsx)(Ex,{...e}):null}var zx=Object.defineProperty,Px={};((e,t)=>{for(var n in t)zx(e,n,{get:t[n],enumerable:!0})})(Px,{assign:()=>sS,colors:()=>oS,createStringInterpolator:()=>eS,skipAnimation:()=>iS,to:()=>tS,willAdvance:()=>aS});var Ax=Ux(),Dx=e=>Vx(e,Ax),Tx=Ux();Dx.write=e=>Vx(e,Tx);var Ix=Ux();Dx.onStart=e=>Vx(e,Ix);var Mx=Ux();Dx.onFrame=e=>Vx(e,Mx);var Nx=Ux();Dx.onFinish=e=>Vx(e,Nx);var Ox=[];Dx.setTimeout=(e,t)=>{const n=Dx.now()+t,r=()=>{const e=Ox.findIndex((e=>e.cancel==r));~e&&Ox.splice(e,1),Bx-=~e?1:0},o={time:n,handler:e,cancel:r};return Ox.splice(Rx(n),0,o),Bx+=1,Kx(),o};var Rx=e=>~(~Ox.findIndex((t=>t.time>e))||~Ox.length);Dx.cancel=e=>{Ix.delete(e),Mx.delete(e),Nx.delete(e),Ax.delete(e),Tx.delete(e)},Dx.sync=e=>{Lx=!0,Dx.batchedUpdates(e),Lx=!1},Dx.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,Dx.onStart(n)}return r.handler=e,r.cancel=()=>{Ix.delete(n),t=null},r};var jx="undefined"!=typeof window?window.requestAnimationFrame:()=>{};Dx.use=e=>jx=e,Dx.now="undefined"!=typeof performance?()=>performance.now():Date.now,Dx.batchedUpdates=e=>e(),Dx.catch=console.error,Dx.frameLoop="always",Dx.advance=()=>{"demand"!==Dx.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):$x()};var Fx=-1,Bx=0,Lx=!1;function Vx(e,t){Lx?(t.delete(e),e(0)):(t.add(e),Kx())}function Kx(){Fx<0&&(Fx=0,"demand"!==Dx.frameLoop&&jx(Hx))}function Hx(){~Fx&&(jx(Hx),Dx.batchedUpdates($x))}function $x(){const e=Fx;Fx=Dx.now();const t=Rx(Fx);t&&(Wx(Ox.splice(0,t),(e=>e.handler())),Bx-=t),Bx?(Ix.flush(),Ax.flush(e?Math.min(64,Fx-e):16.667),Mx.flush(),Tx.flush(),Nx.flush()):Fx=-1}function Ux(){let e=new Set,t=e;return{add(n){Bx+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(Bx-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,Bx-=t.size,Wx(t,(t=>t(n)&&e.add(t))),Bx+=e.size,t=e)}}}function Wx(e,t){e.forEach((e=>{try{t(e)}catch(e){Dx.catch(e)}}))}function qx(){}var Gx={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function Zx(e,t){if(Gx.arr(e)){if(!Gx.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Yx=(e,t)=>e.forEach(t);function Xx(e,t,n){if(Gx.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Jx=e=>Gx.und(e)?[]:Gx.arr(e)?e:[e];function Qx(e,t){if(e.size){const n=Array.from(e);e.clear(),Yx(n,t)}}var eS,tS,nS=(e,...t)=>Qx(e,(e=>e(...t))),rS=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),oS=null,iS=!1,aS=qx,sS=e=>{e.to&&(tS=e.to),e.now&&(Dx.now=e.now),void 0!==e.colors&&(oS=e.colors),null!=e.skipAnimation&&(iS=e.skipAnimation),e.createStringInterpolator&&(eS=e.createStringInterpolator),e.requestAnimationFrame&&Dx.use(e.requestAnimationFrame),e.batchedUpdates&&(Dx.batchedUpdates=e.batchedUpdates),e.willAdvance&&(aS=e.willAdvance),e.frameLoop&&(Dx.frameLoop=e.frameLoop)},lS=new Set,cS=[],uS=[],dS=0,pS={get idle(){return!lS.size&&!cS.length},start(e){dS>e.priority?(lS.add(e),Dx.onStart(hS)):(fS(e),Dx(gS))},advance:gS,sort(e){if(dS)Dx.onFrame((()=>pS.sort(e)));else{const t=cS.indexOf(e);~t&&(cS.splice(t,1),mS(e))}},clear(){cS=[],lS.clear()}};function hS(){lS.forEach(fS),lS.clear(),Dx(gS)}function fS(e){cS.includes(e)||mS(e)}function mS(e){cS.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(cS,(t=>t.priority>e.priority)),0,e)}function gS(e){const t=uS;for(let n=0;n<cS.length;n++){const r=cS[n];dS=r.priority,r.idle||(aS(r),r.advance(e),r.idle||t.push(r))}return dS=0,(uS=cS).length=0,(cS=t).length>0}var vS="[-+]?\\d*\\.?\\d+",yS=vS+"%";function bS(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var wS=new RegExp("rgb"+bS(vS,vS,vS)),xS=new RegExp("rgba"+bS(vS,vS,vS,vS)),SS=new RegExp("hsl"+bS(vS,yS,yS)),_S=new RegExp("hsla"+bS(vS,yS,yS,vS)),CS=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ES=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,kS=/^#([0-9a-fA-F]{6})$/,zS=/^#([0-9a-fA-F]{8})$/;function PS(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function AS(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=PS(o,r,e+1/3),a=PS(o,r,e),s=PS(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function DS(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function TS(e){return(parseFloat(e)%360+360)%360/360}function IS(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function MS(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function NS(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=kS.exec(e))?parseInt(t[1]+"ff",16)>>>0:oS&&void 0!==oS[e]?oS[e]:(t=wS.exec(e))?(DS(t[1])<<24|DS(t[2])<<16|DS(t[3])<<8|255)>>>0:(t=xS.exec(e))?(DS(t[1])<<24|DS(t[2])<<16|DS(t[3])<<8|IS(t[4]))>>>0:(t=CS.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=zS.exec(e))?parseInt(t[1],16)>>>0:(t=ES.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=SS.exec(e))?(255|AS(TS(t[1]),MS(t[2]),MS(t[3])))>>>0:(t=_S.exec(e))?(AS(TS(t[1]),MS(t[2]),MS(t[3]))|IS(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var OS=(e,t,n)=>{if(Gx.fun(e))return e;if(Gx.arr(e))return OS({range:e,output:t,extrapolate:n});if(Gx.str(e.output[0]))return eS(e);const r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,s,l){let c=l?l(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=i(c),r===-1/0?c=-c:o===1/0?c+=r:c=c*(o-r)+r;return c}(e,i[t],i[t+1],o[t],o[t+1],l,a,s,r.map)}};var RS=1.70158,jS=1.525*RS,FS=RS+1,BS=2*Math.PI/3,LS=2*Math.PI/4.5,VS=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},KS={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>FS*e*e*e-RS*e*e,easeOutBack:e=>1+FS*Math.pow(e-1,3)+RS*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-jS)/2:(Math.pow(2*e-2,2)*((jS+1)*(2*e-2)+jS)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*BS),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*BS)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*LS)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*LS)/2+1,easeInBounce:e=>1-VS(1-e),easeOutBounce:VS,easeInOutBounce:e=>e<.5?(1-VS(1-2*e))/2:(1+VS(2*e-1))/2,steps:(e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return((e,t,n)=>Math.min(Math.max(n,e),t))(0,1,("end"===t?Math.floor(r):Math.ceil(r))/e)}},HS=Symbol.for("FluidValue.get"),$S=Symbol.for("FluidValue.observers"),US=e=>Boolean(e&&e[HS]),WS=e=>e&&e[HS]?e[HS]():e,qS=e=>e[$S]||null;function GS(e,t){const n=e[$S];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var ZS=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");YS(this,e)}},YS=(e,t)=>e_(e,HS,t);function XS(e,t){if(e[HS]){let n=e[$S];n||e_(e,$S,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function JS(e,t){const n=e[$S];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[$S]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var QS,e_=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),t_=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,n_=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,r_=new RegExp(`(${t_.source})(%|[a-z]+)`,"i"),o_=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,i_=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,a_=e=>{const[t,n]=s_(e);if(!t||rS())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&i_.test(n)?a_(n):n||e},s_=e=>{const t=i_.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},l_=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,c_=e=>{QS||(QS=oS?new RegExp(`(${Object.keys(oS).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>WS(e).replace(i_,a_).replace(n_,NS).replace(QS,NS))),n=t.map((e=>e.match(t_).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))),o=r.map((t=>OS({...e,output:t})));return e=>{const n=!r_.test(t[0])&&t.find((e=>r_.test(e)))?.replace(t_,"");let r=0;return t[0].replace(t_,(()=>`${o[r++](e)}${n||""}`)).replace(o_,l_)}},u_="react-spring: ",d_=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${u_}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},p_=d_(console.warn);var h_=d_(console.warn);function f_(e){return Gx.str(e)&&("#"==e[0]||/\d/.test(e)||!rS()&&i_.test(e)||e in(oS||{}))}var m_=rS()?u.useEffect:u.useLayoutEffect;function g_(){const e=(0,u.useState)()[1],t=(()=>{const e=(0,u.useRef)(!1);return m_((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}var v_=e=>(0,u.useEffect)(e,y_),y_=[];function b_(e){const t=(0,u.useRef)();return(0,u.useEffect)((()=>{t.current=e})),t.current}var w_=Symbol.for("Animated:node"),x_=e=>e&&e[w_],S_=(e,t)=>((e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}))(e,w_,t),__=e=>e&&e[w_]&&e[w_].getPayload(),C_=class{constructor(){S_(this,this)}getPayload(){return this.payload||[]}},E_=class extends C_{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Gx.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new E_(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Gx.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Gx.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},k_=class extends E_{constructor(e){super(0),this._string=null,this._toString=OS({output:[e,e]})}static create(e){return new k_(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Gx.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=OS({output:[this.getValue(),e]})),this._value=0,super.reset()}},z_={dependencies:null},P_=class extends C_{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Xx(this.source,((n,r)=>{(e=>!!e&&e[w_]===e)(n)?t[r]=n.getValue(e):US(n)?t[r]=WS(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Yx(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Xx(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){z_.dependencies&&US(e)&&z_.dependencies.add(e);const t=__(e);t&&Yx(t,(e=>this.add(e)))}},A_=class extends P_{constructor(e){super(e)}static create(e){return new A_(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(D_)),!0)}};function D_(e){return(f_(e)?k_:E_).create(e)}function T_(e){const t=x_(e);return t?t.constructor:Gx.arr(e)?A_:f_(e)?k_:E_}var I_=(e,t)=>{const n=!Gx.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,u.forwardRef)(((r,o)=>{const i=(0,u.useRef)(null),a=n&&(0,u.useCallback)((e=>{i.current=function(e,t){e&&(Gx.fun(e)?e(t):e.current=t);return t}(o,e)}),[o]),[s,l]=function(e,t){const n=new Set;z_.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new P_(e),z_.dependencies=null,[e,n]}(r,t),c=g_(),d=()=>{const e=i.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&c()},p=new M_(d,l),h=(0,u.useRef)();m_((()=>(h.current=p,Yx(l,(e=>XS(e,p))),()=>{h.current&&(Yx(h.current.deps,(e=>JS(e,h.current))),Dx.cancel(h.current.update))}))),(0,u.useEffect)(d,[]),v_((()=>()=>{const e=h.current;Yx(e.deps,(t=>JS(t,e)))}));const f=t.getComponentProps(s.getValue());return u.createElement(e,{...f,ref:a})}))},M_=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&Dx.write(this.update)}};var N_=Symbol.for("AnimatedComponent"),O_=e=>Gx.str(e)?e:e&&Gx.str(e.displayName)?e.displayName:Gx.fun(e)&&e.name||null;function R_(e,...t){return Gx.fun(e)?e(...t):e}var j_=(e,t)=>!0===e||!!(t&&e&&(Gx.fun(e)?e(t):Jx(e).includes(t))),F_=(e,t)=>Gx.obj(e)?t&&e[t]:e,B_=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,L_=e=>e,V_=(e,t=L_)=>{let n=K_;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const n=t(e[o],o);Gx.und(n)||(r[o]=n)}return r},K_=["config","onProps","onStart","onChange","onPause","onResume","onRest"],H_={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function $_(e){const t=function(e){const t={};let n=0;if(Xx(e,((e,r)=>{H_[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Xx(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function U_(e){return e=WS(e),Gx.arr(e)?e.map(U_):f_(e)?Px.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function W_(e){for(const t in e)return!0;return!1}function q_(e){return Gx.fun(e)||Gx.arr(e)&&Gx.obj(e[0])}function G_(e,t){e.ref?.delete(e),t?.delete(e)}function Z_(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var Y_={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},X_={...Y_.default,mass:1,damping:1,easing:KS.linear,clamp:!1},J_=class{constructor(){this.velocity=0,Object.assign(this,X_)}};function Q_(e,t){if(Gx.und(t.decay)){const n=!Gx.und(t.tension)||!Gx.und(t.friction);!n&&Gx.und(t.frequency)&&Gx.und(t.damping)&&Gx.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var eC=[],tC=class{constructor(){this.changed=!1,this.values=eC,this.toValues=null,this.fromValues=eC,this.config=new J_,this.immediate=!1}};function nC(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise(((a,s)=>{let l,c,u=j_(n.cancel??r?.cancel,t);if(u)h();else{Gx.und(n.pause)||(o.paused=j_(n.pause,t));let e=r?.pause;!0!==e&&(e=o.paused||j_(e,t)),l=R_(n.delay||0,t),e?(o.resumeQueue.add(p),i.pause()):(i.resume(),p())}function d(){o.resumeQueue.add(p),o.timeouts.delete(c),c.cancel(),l=c.time-Dx.now()}function p(){l>0&&!Px.skipAnimation?(o.delayed=!0,c=Dx.setTimeout(h,l),o.pauseQueue.add(d),o.timeouts.add(c)):h()}function h(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(d),o.timeouts.delete(c),e<=(o.cancelId||0)&&(u=!0);try{i.start({...n,callId:e,cancel:u},a)}catch(e){s(e)}}}))}var rC=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?aC(e.get()):t.every((e=>e.noop))?oC(e.get()):iC(e.get(),t.every((e=>e.finished))),oC=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),iC=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),aC=e=>({value:e,cancelled:!0,finished:!1});function sC(e,t,n,r){const{callId:o,parentId:i,onRest:a}=t,{asyncTo:s,promise:l}=n;return i||e!==s||t.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const c=V_(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const p=new Promise(((e,t)=>(u=e,d=t))),h=e=>{const t=o<=(n.cancelId||0)&&aC(r)||o!==n.asyncId&&iC(r,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const i=new cC,a=new uC;return(async()=>{if(Px.skipAnimation)throw lC(n),a.result=iC(r,!1),d(a),a;h(i);const s=Gx.obj(e)?{...e}:{...t,to:e};s.parentId=o,Xx(c,((e,t)=>{Gx.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return h(i),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let m;if(Px.skipAnimation)return lC(n),iC(r,!1);try{let t;t=Gx.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,r.stop.bind(r))),await Promise.all([t.then(u),p]),m=iC(r.get(),!0,!1)}catch(e){if(e instanceof cC)m=e.result;else{if(!(e instanceof uC))throw e;m=e.result}}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?l:void 0)}return Gx.fun(a)&&Dx.batchedUpdates((()=>{a(m,r,r.item)})),m})():l}function lC(e,t){Qx(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var cC=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},uC=class extends Error{constructor(){super("SkipAnimationSignal")}},dC=e=>e instanceof hC,pC=1,hC=class extends ZS{constructor(){super(...arguments),this.id=pC++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=x_(this);return e&&e.getValue()}to(...e){return Px.to(this,e)}interpolate(...e){return p_(`${u_}The "interpolate" function is deprecated in v9 (use "to" instead)`),Px.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){GS(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||pS.sort(this),GS(this,{type:"priority",parent:this,priority:e})}},fC=Symbol.for("SpringPhase"),mC=e=>(1&e[fC])>0,gC=e=>(2&e[fC])>0,vC=e=>(4&e[fC])>0,yC=(e,t)=>t?e[fC]|=3:e[fC]&=-3,bC=(e,t)=>t?e[fC]|=4:e[fC]&=-5,wC=class extends hC{constructor(e,t){if(super(),this.animation=new tC,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Gx.und(e)||!Gx.und(t)){const n=Gx.obj(e)?{...e}:{...t,from:e};Gx.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(gC(this)||this._state.asyncTo)||vC(this)}get goal(){return WS(this.animation.to)}get velocity(){const e=x_(this);return e instanceof E_?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return mC(this)}get isAnimating(){return gC(this)}get isPaused(){return vC(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:i}=r,a=__(r.to);!a&&US(r.to)&&(o=Jx(WS(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==k_?1:a?a[l].lastPosition:o[l];let u=r.immediate,d=c;if(!u){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=Gx.arr(i.velocity)?i.velocity[l]:i.velocity;let a;const p=i.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(Gx.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);d=n+o/(1-e)*(1-r),u=Math.abs(s.lastPosition-d)<=p,a=o*r}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.restVelocity||p/10,r=i.clamp?0:i.bounce,l=!Gx.und(r),h=n==c?s.v0>0:n<c;let f,m=!1;const g=1,v=Math.ceil(e/g);for(let e=0;e<v&&(f=Math.abs(a)>t,f||(u=Math.abs(c-d)<=p,!u));++e){l&&(m=d==c||d>c==h,m&&(a=-a*r,d=c));a+=(1e-6*-i.tension*(d-c)+.001*-i.friction*a)/i.mass*g,d+=a*g}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+i.easing(r)*(c-n),a=(d-s.lastPosition)/e,u=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,i.round)&&(n=!0)}));const s=x_(this),l=s.getValue();if(t){const e=WS(r.to);l===e&&!n||i.decay?n&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return Dx.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(gC(this)){const{to:e,config:t}=this.animation;Dx.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Gx.und(e)?(n=this.queue||[],this.queue=[]):n=[Gx.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>rC(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),lC(this._state,e&&this._lastCallId),Dx.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Gx.obj(n)?n[t]:n,(null==n||q_(n))&&(n=void 0),r=Gx.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return mC(this)||(e.reverse&&([n,r]=[r,n]),r=WS(r),Gx.und(r)?x_(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,V_(e,((e,t)=>/^on/.test(t)?F_(e,n):e))),zC(this,e,"onProps"),PC(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return nC(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{vC(this)||(bC(this,!0),nS(i.pauseQueue),PC(this,"onPause",iC(this,xC(this,this.animation.to)),this))},resume:()=>{vC(this)&&(bC(this,!1),gC(this)&&this._resume(),nS(i.resumeQueue),PC(this,"onResume",iC(this,xC(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=SC(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(aC(this));const r=!Gx.und(e.to),o=!Gx.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(aC(this));this._lastToId=t.callId}const{key:i,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!o||r||t.default&&!Gx.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const p=!Zx(d,c);p&&(s.from=d),d=WS(d);const h=!Zx(u,l);h&&this._focus(u);const f=q_(t.to),{config:m}=s,{decay:g,velocity:v}=m;(r||o)&&(m.velocity=0),t.config&&!f&&function(e,t,n){n&&(Q_(n={...n},t),t={...n,...t}),Q_(e,t),Object.assign(e,t);for(const t in X_)null==e[t]&&(e[t]=X_[t]);let{frequency:r,damping:o}=e;const{mass:i}=e;Gx.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r)}(m,R_(t.config,i),t.config!==a.config?R_(a.config,i):void 0);let y=x_(this);if(!y||Gx.und(u))return n(iC(this,!0));const b=Gx.und(t.reset)?o&&!t.default:!Gx.und(d)&&j_(t.reset,i),w=b?d:this.get(),x=U_(u),S=Gx.num(x)||Gx.arr(x)||f_(x),_=!f&&(!S||j_(a.immediate||t.immediate,i));if(h){const e=T_(u);if(e!==y.constructor){if(!_)throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`);y=this._set(x)}}const C=y.constructor;let E=US(u),k=!1;if(!E){const e=b||!mC(this)&&p;(h||e)&&(k=Zx(U_(w),x),E=!k),(Zx(s.immediate,_)||_)&&Zx(m.decay,g)&&Zx(m.velocity,v)||(E=!0)}if(k&&gC(this)&&(s.changed&&!b?E=!0:E||this._stop(l)),!f&&((E||US(l))&&(s.values=y.getPayload(),s.toValues=US(u)?null:C==k_?[1]:Jx(x)),s.immediate!=_&&(s.immediate=_,_||b||this._set(l)),E)){const{onRest:e}=s;Yx(kC,(e=>zC(this,t,e)));const r=iC(this,xC(this,l));nS(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&Dx.batchedUpdates((()=>{s.changed=!b,e?.(r,this),b?R_(a.onRest,r):s.onStart?.(r,this)}))}b&&this._set(w),f?n(sC(t.to,t,this._state,this)):E?this._start():gC(this)&&!h?this._pendingCalls.add(n):n(oC(w))}_focus(e){const t=this.animation;e!==t.to&&(qS(this)&&this._detach(),t.to=e,qS(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;US(t)&&(XS(t,this),dC(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;US(e)&&JS(e,this)}_set(e,t=!0){const n=WS(e);if(!Gx.und(n)){const e=x_(this);if(!e||!Zx(n,e.getValue())){const r=T_(n);e&&e.constructor==r?e.setValue(n):S_(this,r.create(n)),e&&Dx.batchedUpdates((()=>{this._onChange(n,t)}))}}return x_(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,PC(this,"onStart",iC(this,xC(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),R_(this.animation.onChange,e,this)),R_(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;x_(this).reset(WS(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),gC(this)||(yC(this,!0),vC(this)||this._resume())}_resume(){Px.skipAnimation?this.finish():pS.start(this)}_stop(e,t){if(gC(this)){yC(this,!1);const n=this.animation;Yx(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),GS(this,{type:"idle",parent:this});const r=t?aC(this.get()):iC(this.get(),xC(this,e??n.to));nS(this._pendingCalls,r),n.changed&&(n.changed=!1,PC(this,"onRest",r,this))}}};function xC(e,t){const n=U_(t);return Zx(U_(e.get()),n)}function SC(e,t=e.loop,n=e.to){const r=R_(t);if(r){const o=!0!==r&&$_(r),i=(o||e).reverse,a=!o||o.reset;return _C({...e,loop:t,default:!1,pause:void 0,to:!i||q_(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function _C(e){const{to:t,from:n}=e=$_(e),r=new Set;return Gx.obj(t)&&EC(t,r),Gx.obj(n)&&EC(n,r),e.keys=r.size?Array.from(r):null,e}function CC(e){const t=_C(e);return Gx.und(t.default)&&(t.default=V_(t)),t}function EC(e,t){Xx(e,((e,n)=>null!=e&&t.add(n)))}var kC=["onStart","onRest","onChange","onPause","onResume"];function zC(e,t,n){e.animation[n]=t[n]!==B_(t,n)?F_(t[n],e.key):void 0}function PC(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var AC=["onStart","onChange","onRest"],DC=1,TC=class{constructor(e,t){this.id=DC++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];Gx.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(_C(e)),this}start(e){let{queue:t}=this;return e?t=Jx(e).map(_C):this.queue=[],this._flush?this._flush(this,t):(FC(this,t),IC(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Yx(Jx(t),(t=>n[t].stop(!!e)))}else lC(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Gx.und(e))this.start({pause:!0});else{const t=this.springs;Yx(Jx(e),(e=>t[e].pause()))}return this}resume(e){if(Gx.und(e))this.start({pause:!1});else{const t=this.springs;Yx(Jx(e),(e=>t[e].resume()))}return this}each(e){Xx(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,Qx(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const i=!r&&this._started,a=o||i&&n.size?this.get():null;o&&t.size&&Qx(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),i&&(this._started=!1,Qx(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}Dx.onFrame(this._onFrame)}};function IC(e,t){return Promise.all(t.map((t=>MC(e,t)))).then((t=>rC(e,t)))}async function MC(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:s,onResolve:l}=t,c=Gx.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);const u=Gx.arr(o)||Gx.fun(o)?o:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Yx(AC,(n=>{const r=t[n];if(Gx.fun(r)){const o=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=o.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):o.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,nS(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),h=!0===t.cancel||!0===B_(t,"cancel");(u||h&&d.asyncId)&&p.push(nC(++e._lastAsyncId,{props:t,state:d,actions:{pause:qx,resume:qx,start(t,n){h?(lC(d,e._lastAsyncId),n(aC(e))):(t.onRest=s,n(sC(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=rC(e,await Promise.all(p));if(a&&f.finished&&(!n||!f.noop)){const n=SC(t,a,o);if(n)return FC(e,[n]),MC(e,n,!0)}return l&&Dx.batchedUpdates((()=>l(f,e,e.item))),f}function NC(e,t){const n={...e.springs};return t&&Yx(Jx(t),(e=>{Gx.und(e.keys)&&(e=_C(e)),Gx.obj(e.to)||(e={...e,to:void 0}),jC(n,e,(e=>RC(e)))})),OC(e,n),n}function OC(e,t){Xx(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,XS(t,e))}))}function RC(e,t){const n=new wC;return n.key=e,t&&XS(n,t),n}function jC(e,t,n){t.keys&&Yx(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function FC(e,t){Yx(t,(t=>{jC(e.springs,t,(t=>RC(t,e)))}))}var BC,LC,VC=({children:e,...t})=>{const n=(0,u.useContext)(KC),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,u.useState)((()=>({inputs:t,result:e()}))),r=(0,u.useRef)(),o=r.current;let i=o;if(i){const n=Boolean(t&&i.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,i.inputs));n||(i={inputs:t,result:e()})}else i=n;return(0,u.useEffect)((()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)}),[i]),i.result}((()=>({pause:r,immediate:o})),[r,o]);const{Provider:i}=KC;return u.createElement(i,{value:t},e)},KC=(BC=VC,LC={},Object.assign(BC,u.createContext(LC)),BC.Provider._context=BC,BC.Consumer._context=BC,BC);VC.Provider=KC.Provider,VC.Consumer=KC.Consumer;var HC=()=>{const e=[],t=function(t){h_(`${u_}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return Yx(e,((e,o)=>{if(Gx.und(t))r.push(e.start());else{const i=n(t,e,o);i&&r.push(e.start(i))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Yx(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Yx(e,(e=>e.resume(...arguments))),this},t.set=function(t){Yx(e,((e,n)=>{const r=Gx.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return Yx(e,((e,r)=>{if(Gx.und(t))n.push(e.start());else{const o=this._getProps(t,e,r);o&&n.push(e.start(o))}})),n},t.stop=function(){return Yx(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Yx(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return Gx.fun(e)?e(n,t):e};return t._getProps=n,t};function $C(e,t,n){const r=Gx.fun(t)&&t;r&&!n&&(n=[]);const o=(0,u.useMemo)((()=>r||3==arguments.length?HC():void 0),[]),i=(0,u.useRef)(0),a=g_(),s=(0,u.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=NC(e,t);return i.current>0&&!s.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?IC(e,t):new Promise((r=>{OC(e,n),s.queue.push((()=>{r(IC(e,t))})),a()}))}})),[]),l=(0,u.useRef)([...s.ctrls]),c=[],d=b_(e)||0;function p(e,n){for(let o=e;o<n;o++){const e=l.current[o]||(l.current[o]=new TC(null,s.flush)),n=r?r(o,e):t[o];n&&(c[o]=CC(n))}}(0,u.useMemo)((()=>{Yx(l.current.slice(e,d),(e=>{G_(e,o),e.stop(!0)})),l.current.length=e,p(d,e)}),[e]),(0,u.useMemo)((()=>{p(0,Math.min(d,e))}),n);const h=l.current.map(((e,t)=>NC(e,c[t]))),f=(0,u.useContext)(VC),m=b_(f),g=f!==m&&W_(f);m_((()=>{i.current++,s.ctrls=l.current;const{queue:e}=s;e.length&&(s.queue=[],Yx(e,(e=>e()))),Yx(l.current,((e,t)=>{o?.add(e),g&&e.start({default:f});const n=c[t];n&&(Z_(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),v_((()=>()=>{Yx(s.ctrls,(e=>e.stop(!0)))}));const v=h.map((e=>({...e})));return o?[v,o]:v}function UC(e,t){const n=Gx.fun(e),[[r],o]=$C(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,o]:r}var WC=class extends hC{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=OS(...t);const n=this._get(),r=T_(n);S_(this,r.create(n))}advance(e){const t=this._get();Zx(t,this.get())||(x_(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&GC(this._active)&&ZC(this)}_get(){const e=Gx.arr(this.source)?this.source.map(WS):Jx(WS(this.source));return this.calc(...e)}_start(){this.idle&&!GC(this._active)&&(this.idle=!1,Yx(__(this),(e=>{e.done=!1})),Px.skipAnimation?(Dx.batchedUpdates((()=>this.advance())),ZC(this)):pS.start(this))}_attach(){let e=1;Yx(Jx(this.source),(t=>{US(t)&&XS(t,this),dC(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Yx(Jx(this.source),(e=>{US(e)&&JS(e,this)})),this._active.clear(),ZC(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Jx(this.source).reduce(((e,t)=>Math.max(e,(dC(t)?t.priority:0)+1)),0))}};function qC(e){return!1!==e.idle}function GC(e){return!e.size||Array.from(e).every(qC)}function ZC(e){e.idle||(e.idle=!0,Yx(__(e),(e=>{e.done=!0})),GS(e,{type:"idle",parent:e}))}Px.assign({createStringInterpolator:c_,to:(e,t)=>new WC(e,t)});pS.advance;var YC=/^--/;function XC(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||YC.test(e)||QC.hasOwnProperty(e)&&QC[e]?(""+t).trim():t+"px"}var JC={};var QC={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},eE=["Webkit","Ms","Moz","O"];QC=Object.keys(QC).reduce(((e,t)=>(eE.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),QC);var tE=/^(matrix|translate|scale|rotate|skew)/,nE=/^(translate)/,rE=/^(rotate|skew)/,oE=(e,t)=>Gx.num(e)&&0!==e?e+t:e,iE=(e,t)=>Gx.arr(e)?e.every((e=>iE(e,t))):Gx.num(e)?e===t:parseFloat(e)===t,aE=class extends P_{constructor({x:e,y:t,z:n,...r}){const o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push((e=>[`translate3d(${e.map((e=>oE(e,"px"))).join(",")})`,iE(e,0)]))),Xx(r,((e,t)=>{if("transform"===t)o.push([e||""]),i.push((e=>[e,""===e]));else if(tE.test(t)){if(delete r[t],Gx.und(e))return;const n=nE.test(t)?"px":rE.test(t)?"deg":"";o.push(Jx(e)),i.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${oE(o,n)})`,iE(o,0)]:e=>[`${t}(${e.map((e=>oE(e,n))).join(",")})`,iE(e,t.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new sE(o,i)),super(r)}},sE=class extends ZS{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Yx(this.inputs,((n,r)=>{const o=WS(n[0]),[i,a]=this.transforms[r](Gx.arr(o)?o:n.map(WS));e+=" "+i,t=t&&a})),t?"none":e}observerAdded(e){1==e&&Yx(this.inputs,(e=>Yx(e,(e=>US(e)&&XS(e,this)))))}observerRemoved(e){0==e&&Yx(this.inputs,(e=>Yx(e,(e=>US(e)&&JS(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),GS(this,e)}};Px.assign({batchedUpdates:re.unstable_batchedUpdates,createStringInterpolator:c_,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var lE=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new P_(e),getComponentProps:r=e=>e}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=O_(e)||"Anonymous";return(e=Gx.str(e)?i[e]||(i[e]=I_(e,o)):e[N_]||(e[N_]=I_(e,o))).displayName=`Animated(${t})`,e};return Xx(e,((t,n)=>{Gx.arr(e)&&(n=O_(t)),i[n]=i(t)})),{animated:i}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:o,scrollTop:i,scrollLeft:a,viewBox:s,...l}=t,c=Object.values(l),u=Object.keys(l).map((t=>n||e.hasAttribute(t)?t:JC[t]||(JC[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(const t in r)if(r.hasOwnProperty(t)){const n=XC(t,r[t]);YC.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==i&&(e.scrollTop=i),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new aE(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),cE=lE.animated,uE=n(13825);function dE(e){const t=(new DOMParser).parseFromString(e,"text/html");return t.body.querySelectorAll("u").forEach((e=>{const t=document.createElement("span");t.style.textDecoration="underline",t.innerHTML=e.innerHTML,e.replaceWith(t)})),t.body.innerHTML}function pE(e){let{onResize:t,commentThread:n}=e;const{anonymousComments:r,backend:o,backendPermissions:i,comments:l,customRenderers:c,dateTimeString:d,features:p,isEditableComment:h,documentPermissions:f,readOnlyEnabled:m,maxMentionSuggestions:g,keepSelectedTool:y,mentionableUsers:b}=(0,s.d4)(hE,s.bN),w=(0,nb.Bi)(),{formatMessage:x}=(0,v.useI18n)(),S=(0,s.wA)(),_=(0,u.useRef)(null);(0,u.useEffect)((()=>{const e=_.current;if(!e||!t)return;const n=new ResizeObserver((e=>t?.(e[0])));return n.observe(e),()=>n.disconnect()}),[t]);const C=(0,u.useMemo)((()=>n.map((e=>{const t=l.get(e);return(0,fu.V1)(t),t})).toList()),[n,l]),E=(0,u.useMemo)((()=>C?.find((e=>(0,Ha.Jm)(e)))),[C]),k=(0,u.useMemo)((()=>C.filter((e=>!(0,Ha.Jm)(e))).map(((e,t,n)=>function(e,t,n,r,o){const i=(0,gn.kH)(e,r),a=!!(0,cr.Kt)(e,r),s=!!(0,cr.Kt)(e,r),l=r.anonymousComments,c=r.dateTimeString,u=!i&&a,d=t>0&&n.get(t-1),p=!!d&&(d.creatorName!==e.creatorName||e.isAnonymous||d.isAnonymous);return(0,fu.V1)(e.id),{id:e.id,contentStringType:"xhtml"===e.text.format?"html":"plain",content:e.text.value||"",canEdit:u,isAnonymous:!!e.isAnonymous,canDelete:!i&&s,canBeAnonymous:u&&l,description:c?.({dateTime:e.createdAt,element:uE.E.COMMENT_THREAD,object:e})||(0,oe.jsx)(v.DateFormat,{date:e.createdAt,hour12:!0,hour:"numeric",minute:"numeric",month:"short",day:"numeric"}),...(p||0===t)&&{name:e.isAnonymous?o(xe.A.anonymous):e.creatorName||o(xe.A.anonymous),avatarProps:{name:e.isAnonymous?"?":e.creatorName||"?",className:"PSPDFKit-Comment-Avatar"}}}}(e,t,n,{anonymousComments:r,backend:o,backendPermissions:i,dateTimeString:d,features:p,isEditableComment:h,documentPermissions:f,readOnlyEnabled:m},x))).toJS()),[C,x,r,o,i,l,d,p,h,f,m]),z=u.useCallback((e=>{if(!(0,Xt.lb)(e))return;const t=0===k.length;(0,fu.V1)(E);const n=E.set("text",{format:"xhtml",value:dE(e)}),r=n.rootId;(0,fu.V1)(r),S((0,Er.Sd)(n)),S((0,Er.t6)(r)),t&&S((0,we.TT)((0,a.NZ)([r]),null)),y&&S((0,Dt.WN)())}),[k,E,S,y]),P=(0,u.useCallback)(((e,t)=>{const n=l.get(e);(0,fu.V1)(n);const r=n.set("isAnonymous",t);S((0,Er.m5)((0,a.B8)([r])))}),[l,S]),A=(0,u.useCallback)((e=>{const t=l.get(e);(0,fu.V1)(t),S((0,Er.qu)(t))}),[l,S]),D=(0,u.useCallback)(((e,t)=>{const n=l.get(e);(0,fu.V1)(n);const r=n.set("text",{format:"xhtml",value:dE(t)});S((0,Er.Sd)(r,n)),y&&S((0,Dt.WN)())}),[l,S,y]),T=(0,u.useMemo)((()=>r?[{type:"toggle",props:{"aria-label":x(xe.A.anonymous),icon:yd.hx,onPress:()=>P(E?.id||"",!0),isSelected:!!E?.isAnonymous}}]:[]),[r,E?.id,E?.isAnonymous,x,P]);return(0,u.useMemo)((()=>({comments:k,titleId:w,mentionableUsers:b,maxMentionableUsersSuggestions:g,onAnonymousToggle:P,onDelete:A,onCommentUpdate:D,onCommentAdd:z,editorFooterButtons:T,ref:_,className:"PSPDFKit-Comment-Thread",allowCommentCreation:!!E,defaultEditorValue:E?.text.value||void 0,renderAvatar:c?.CommentAvatar})),[k,w,b,g,P,A,D,z,T,E,c])}const hE=e=>{let{anonymousComments:t,backend:n,backendPermissions:r,comments:o,customRenderers:i,dateTimeString:a,features:s,isEditableComment:l,documentPermissions:c,readOnlyEnabled:u,maxMentionSuggestions:d,keepSelectedTool:p,mentionableUsers:h}=e;return{anonymousComments:t,backend:n,backendPermissions:r,comments:o,customRenderers:i,dateTimeString:a,features:s,isEditableComment:l,documentPermissions:c,readOnlyEnabled:u,maxMentionSuggestions:d,keepSelectedTool:p,mentionableUsers:h}};function fE(e,t){if(!e)return!1;let n=!1;if((0,Ha.aX)(e,t)){const r=e?.last();(0,fu.V1)(null!=r);const o=t.get(r);(0,fu.V1)(null!=o),n=o.text.value.length>0}return n}const mE="PSPDFKit-CommentThread-Root";const gE=e=>{let{annotation:t,commentThread:n}=e;const r=(0,s.wA)(),o=(0,s.d4)((e=>e.instance)),i=(0,s.d4)((e=>e.ui?.[xl.Rq.CommentThread])),a=(0,s.d4)((e=>e.viewportState)),l=(0,s.d4)((e=>e.rootElement)),c=pE({commentThread:n}),d=(0,u.useMemo)((()=>{const e=l?.getBoundingClientRect(),n=(0,Z.zo)(a,t.pageIndex);return t.boundingBox.apply(n).translate(new P.bR({y:-e.top,x:-e.left}))}),[t.boundingBox,t.pageIndex,l,a]),h=(0,u.useMemo)((()=>({...c,variant:"popover",className:p()(c.className,{"PSPDFKit-Comment-Thread-Selected":!0,"PSPDFKit-Comment-Thread-Expanded":!0})})),[c]),f=(0,u.useMemo)((()=>({dialogTitleId:c.titleId,variant:"popover",referenceRect:d.toJS(),onOutsideClick:()=>{r((0,we.J9)())},boundaryElement:l??void 0})),[c.titleId,r,d,l]);return(0,Sl.Q)(xl.Rq.CommentThread,i,h,o,f)},vE=e=>{let{annotation:t,onResize:n,style:r,"aria-label":o,commentThread:i,comments:l,containerRef:c}=e;const d=(0,s.d4)((e=>e.ui?.[xl.Rq.CommentThread])),h=pE({onResize:n,commentThread:i}),f=(0,s.wA)(),m=(0,s.d4)((e=>e.instance)),g=(0,s.d4)((e=>e.annotations)),v=(0,s.d4)((e=>e.selectedAnnotationIds)),y=g.get(v.first()),b=(0,Ha.rO)(i,l),w=y?.id===t.id||fE(i,l),x=(0,u.useCallback)((()=>{w||(f((0,Er.tT)()),f((0,we.TT)((0,a.NZ)([t.id]),null)))}),[t.id,f,w]);(0,u.useEffect)((()=>{if(c?.current){const e=c.current;return e.addEventListener("click",x,!0),()=>{e.removeEventListener("click",x,!0)}}}),[x,c]);const S=(0,u.useMemo)((()=>({...h,className:p()(h.className,{"PSPDFKit-Comment-Thread-Selected":w}),variant:"sidebar","aria-label":o,state:{isExpanded:w},style:r,onStateChange:(e,n)=>{e.isExpanded!==n.isExpanded&&(w?f((0,we.J9)()):(f((0,Er.tT)()),f((0,we.TT)((0,a.NZ)([t.id]),null))))},onEditorValueChange:e=>{b&&f((0,Er.m5)((0,a.B8)([b.update("text",(t=>({...t,value:e})))])))}})),[h,t.id,o,f,b,w,r]),_=(0,u.useMemo)((()=>({dialogTitleId:h.titleId,variant:"sidebar"})),[h.titleId]);return(0,Sl.Q)(xl.Rq.CommentThread,d,S,m,_)};const yE=()=>{const e=(0,s.d4)((e=>e.annotations)),t=(0,s.d4)((e=>e.selectedAnnotationIds)),n=(0,s.d4)((e=>e.viewportState)),r=(0,s.d4)((e=>e.commentThreads)),o=(0,s.d4)((e=>e.comments)),i=(0,v.useDevice)(),a=u.useRef(null),c=u.useMemo((()=>{const e=(0,Z.z1)(n);return Math.ceil(e.left)+e.width+n.viewportPadding.x}),[n]),{threadInfo:d,updatePosition:h,totalHeight:f}=function(e){const t=(0,s.d4)((e=>e.annotations)),n=(0,s.d4)((e=>e.commentThreads)),r=(0,s.d4)((e=>e.viewportState)),o=(0,s.d4)((e=>e.selectedAnnotationIds)),i=(0,u.useRef)(0),{currentPageIndex:a,layoutMode:l,scrollMode:c}=r,d=l===mu.S.SINGLE?2:4,p=u.useMemo((()=>{if(c===ha.V.PER_SPREAD||c===ha.V.DISABLED){const e=(0,ia.dD)(r,(0,ia.NZ)(r,r.currentPageIndex));return n.filter(((n,r)=>{const o=t.get(r);return o&&e.includes(o.pageIndex)}))}return n}),[c,n,r,t]),h=u.useMemo((()=>Object.entries(p.map(((e,n)=>{const o=t.get(n);return o&&"number"==typeof o.pageIndex?(0,Ha.D_)(o,r):-1})).toJSON()).sort(((e,t)=>e[1]-t[1]))),[t,p,r]),[f]=u.useState((()=>p.map(((e,t)=>({rootId:t,top:0,isVisible:!1}))).toList().toJS())),[m,g]=u.useState(f),v=t.get(o.first()),y=(0,u.useCallback)((()=>{let n=0;i.current=0;const r=h.map((r=>{let[o,s]=r;const l=t.get(o);if(!l||"number"!=typeof l.pageIndex)return null;if(l.pageIndex<a-d||l.pageIndex>a+d)return null;(0,fu.V1)(s);const c=e.current?.querySelector(`.${mE}[data-root-id="${o}"]`)?.clientHeight||0,u=Math.max(s,i.current);return v?.id===o&&(n=u-s),i.current=u+c+10,{rootId:o,top:u,isVisible:!0}})).filter((e=>null!==e)).map((e=>({...e,top:e.top-n})));g(r)}),[t,h,a,d,e,v]);return(0,u.useLayoutEffect)(y,[p]),{threadInfo:m,updatePosition:y,totalHeight:i.current}}(a),m=e.get(t.first()),g=m&&r.get(m?.id);return n.commentMode===Em.X.PANE||n.zoomMode===la.d.FIT_TO_WIDTH?m&&g?(0,oe.jsx)(gE,{annotation:m,commentThread:g}):null:"mobile"===i?g&&m?(0,oe.jsx)(vE,{annotation:m,commentThread:g,comments:o}):null:(0,oe.jsx)("aside",{style:{transform:`translate(${c}px)`,height:f+2*n.viewportPadding.y},ref:a,className:p()((0,hu.UV)({position:"absolute"}),"_1wb0w4k0","PSPDFKit-Comment-Threads"),children:d?.filter(Boolean).map((e=>((0,l.V1)(e),(0,oe.jsx)(bE,{...e,updatePosition:h},e.rootId))))})},bE=e=>{let{rootId:t,top:n,isVisible:r,updatePosition:o}=e;const i=(0,s.d4)((e=>e.annotations.get(t))),a=(0,s.d4)((e=>e.comments)),{formatMessage:l}=(0,ve.tz)(),c=a.filter((e=>e.rootId===t)).toList(),d=(0,s.d4)((e=>{const t=e.selectedAnnotationIds;return t.size>0?e.annotations.get(t.first()):null})),h=(0,s.d4)((e=>e.commentThreads.get(t))),f=fE(h,a),m=u.useRef(!0),g=c.every((e=>null===e.id)),v=!(!d||d.id!==i?.id),y=v||f,[b,w]=UC((()=>({transform:`translate(${v&&g&&!m?-40:0}px, ${n}px)`,opacity:g?0:1,immediate:!r,config:Y_.stiff})));(0,u.useLayoutEffect)((()=>{w.start({transform:`translate(${v?-40:0}px, ${n}px)`,opacity:1,immediate:!r})}),[w,v,n,r]);const x=y?c:c.take(1),S=y?l(wE.commentThread):l(wE.commentDialogClosed,{arg0:x.first()?.creatorName,arg1:x.first()?.text.value}),_=(0,u.useRef)(null);return i&&"number"==typeof i.pageIndex&&h?(0,oe.jsx)(cE.div,{className:p()("_1wb0w4k1",mE),"data-root-id":t,style:{visibility:r?void 0:"hidden",zIndex:v?999:0,...b},ref:_,children:(0,oe.jsx)(vE,{annotation:i,"aria-label":S,onResize:o,commentThread:h,comments:a,containerRef:_})},t):null},wE=(0,ve.YK)({commentDialogClosed:{id:"commentDialogClosed",defaultMessage:"Open comment thread started by {arg0}: “{arg1}”",description:"With the dialog closed, show the author of the comment and the number of replies."},commentThread:{id:"commentThread",defaultMessage:"Comment Thread",description:"Comment thread."}});var xE=n(52971);function SE(){const e=(0,s.wA)(),{formatMessage:t}=(0,ve.tz)();return(0,oe.jsx)(v.Modal,{isOpen:!0,children:(0,oe.jsx)(v.ModalContent,{children:(0,oe.jsx)(v.AlertDialog,{title:t(cf.ceDownloadRequiredTitle),message:t(cf.ceDownloadRequiredMessage),primaryActionLabel:t(cf.ceDownloadRequiredButton),cancelLabel:t(xe.A.cancel),icon:xE.S_,iconColor:"var(--bui-color-support-info-medium)",onPrimaryAction:()=>{(0,s.vA)((()=>{e({type:H.psz,promptContentEditorDocumentDownload:!1}),e({type:H.zD7,isServerModeDownloadingDocument:!0})})),e(ap.dV)},onCancel:()=>{e({type:H.psz,promptContentEditorDocumentDownload:!1})},showCloseButton:!1})})})}var _E=n(85410);function CE(){const e=(0,s.wA)(),{formatMessage:t}=(0,ve.tz)();return(0,oe.jsx)(v.Modal,{isOpen:!0,children:(0,oe.jsx)(v.ModalContent,{children:(0,oe.jsx)(v.AlertDialog,{title:t(cf.ceCannotSaveChangesTitle),message:t(cf.ceCannotSaveChangesMessage),primaryActionLabel:t(cf.ceCannotSaveChangesButton),cancelLabel:t(cf.ceCannotSaveChangesReviewButton),icon:xE.AK,iconColor:"var(--bui-color-support-warning-medium)",onPrimaryAction:()=>{e({type:H.kZs,promptContentEditorCannotSaveChanges:!1}),e(ap.hi)},onCancel:()=>{e({type:H.kZs,promptContentEditorCannotSaveChanges:!1})},showCloseButton:!0})})})}function EE(e){let{intlMessageDescriptor:t}=e;const{formatMessage:n}=(0,ve.tz)();return(0,oe.jsx)(v.Modal,{isOpen:!0,children:(0,oe.jsx)(v.ModalContent,{children:(0,oe.jsx)(v.ProgressSpinner,{label:n(t),className:Ev().progressSpinner})})})}var kE=n(94394),zE=n.n(kE);const{createToggleIconButtonToolbarItem:PE,createActionIconButtonToolbarItem:AE}=Dl.XD;const{createToggleIconButtonToolbarItem:DE}=Dl.XD;const{createTaggedPaginationToolbarItem:TE,createReactElementToolbarItem:IE}=Dl.XD;function ME(e,t){const n=document.createElement("a");n.href=e,n.style.display="none",n.download=t,n.setAttribute("download",t);const r=document.body;return r?(r.appendChild(n),n.click(),()=>{const e=document.body;e&&e.removeChild(n)}):()=>{}}const{createToggleIconButtonToolbarItem:NE,createActionIconButtonToolbarItem:OE}=Dl.XD;function RE(){const{formatMessage:e}=(0,v.useI18n)(),t=(0,s.wA)(),n=(0,s.d4)((e=>e.interactionMode)),r=(0,s.d4)((e=>(0,gn.Ko)(e))),o=(0,s.d4)((e=>e.aiAssistant.show)),i=(0,s.d4)((e=>e.contentEditorSession.dirty)),a=(0,s.d4)((e=>e.connectionState.name===$i.D.DOWNLOADING_DOCUMENT)),c=n===L.O.CONTENT_EDITOR||a,d=(0,s.d4)((e=>(0,pv.cH)(e))),p=(0,s.d4)((e=>!!e.viewportState.documentComparisonMode)),h=(0,u.useCallback)((()=>{t(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return async(t,n)=>{const{backend:r,annotations:o}=n(),i=e.flattenElectronicSignatures?o.toList().filter((e=>(e instanceof P.Eo||e instanceof P.vU)&&e.isSignature)).map((e=>({pageIndex:e.pageIndex,id:e.id,pdfObjectId:e.pdfObjectId}))):void 0;(0,l.V1)(r);const a=HTMLAnchorElement.prototype.hasOwnProperty("download"),s=await r.exportPDF(e,i?.toArray()),c=s.mimeType||"application/pdf",u=s.extension||"pdf",d=new Blob([s],{type:c}),p=`${(await r.documentInfo()).title||"document"}.${u}`;let h=()=>{};if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(d,p);else if(a){const e=window.URL.createObjectURL(d),t=ME(e,p);h=()=>{t(),window.URL.revokeObjectURL(e)}}else{const e=new FileReader;e.onloadend=()=>{h=ME(e.result,u)},e.readAsDataURL(d)}window.setTimeout(h,1e3)}}())}),[t]),f=(0,u.useCallback)((()=>{t(o?(0,Dt.q6)(!1):(0,Dt.q6)(!0))}),[t,o]),m=(0,u.useCallback)((()=>{t((0,we.J9)()),n===L.O.DOCUMENT_CROP?t((0,Dt.lH)()):t((0,Dt.qx)())}),[t,n]),g=(0,u.useCallback)((()=>{t((0,we.J9)()),t(p?(0,Dt.FS)(null):(0,Dt.FS)(uv.w3))}),[t,p]);return(0,u.useMemo)((()=>({[xa.rh.EXPORT_PDF]:{toolbarItem:OE(xa.rh.EXPORT_PDF,{className:"PSPDFKit-Toolbar-Button-Export-PDF","aria-label":e(xe.A.export),isDisabled:c||!r,onPress:h,icon:Al.s3U})},[xa.rh.CONTENT_EDITOR]:{toolbarItem:NE(xa.rh.CONTENT_EDITOR,{className:"PSPDFKit-Toolbar-Button-Content-Editor",icon:Al.rKj,onPress:()=>{n===L.O.CONTENT_EDITOR?t(i?(0,ap.Lm)(!0):ap.hi):t(ap.eR)},isSelected:n===L.O.CONTENT_EDITOR,"aria-label":e(xe.A.contentEditor)})},[xa.rh.AI_ASSISTANT]:{toolbarItem:NE(xa.rh.AI_ASSISTANT,{className:"PSPDFKit-Toolbar-Button-AI-Assistant",isSelected:o,onPress:f,"aria-label":"AI Assistant",icon:Al.KHA})},[xa.rh.DOCUMENT_EDITOR]:{toolbarItem:NE(xa.rh.DOCUMENT_EDITOR,{className:"PSPDFKit-Toolbar-Button-Document-Editor PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button","aria-label":e(xe.A.documentEditor),isSelected:n===L.O.DOCUMENT_EDITOR,icon:Al.N2p,isDisabled:c,onPress:()=>{t((0,we.J9)()),t((0,Dt.c1)())}}),dropdownGroup:xa.gL.EDITOR},[xa.rh.DOCUMENT_CROP]:{toolbarItem:NE(xa.rh.DOCUMENT_CROP,{className:"PSPDFKit-Toolbar-Button-Document-Crop PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button","aria-label":e(xe.A.documentCrop),icon:Al.K1E,isSelected:n===L.O.DOCUMENT_CROP,isDisabled:c,onPress:m}),dropdownGroup:xa.gL.EDITOR},[xa.rh.DOCUMENT_COMPARISON]:{toolbarItem:NE(xa.rh.DOCUMENT_COMPARISON,{className:"PSPDFKit-Toolbar-Button-Document-Comparison","aria-label":e(xe.A.documentComparison),icon:Al.Z$6,isDisabled:c,onPress:g,isSelected:p}),isHidden:!d,dropdownGroup:xa.gL.EDITOR}})),[d,r,e,t,f,g,m,h,n,i,p,c,o])}var jE;const{createReactElementToolbarItem:FE}=Dl.XD;function BE(){const e=(0,s.d4)((e=>e.toolbarItems)),t=(0,s.d4)((e=>e.features)),n=(0,s.d4)((e=>e.backend)),r=(0,s.d4)((e=>e.backendPermissions)),o=(0,s.d4)((e=>e.documentPermissions)),i=(0,s.d4)((e=>e.readOnlyEnabled)),a=(0,s.d4)((e=>e.showComments)),c=(0,s.d4)((e=>e.isTextComparison)),d=u.useMemo((()=>function(e){let{toolbarItems:t,features:n,backend:r,backendPermissions:o,documentPermissions:i,readOnlyEnabled:a,showComments:s,isTextComparison:c}=e;return t.filter((e=>{let t=!0;return c?(t=Cc._.includes(e.get("type")),t):"document-editor"===e.get("type")||"document-crop"===e.get("type")?(t=(0,gn.SH)({features:n,backendPermissions:o,documentPermissions:i,readOnlyEnabled:a}),!t&&n.size>0&&(n.includes(te.Y.DOCUMENT_EDITING)?(0,l.R8)(`The '${e.get("type")}' toolbar item type is not allowed due to document or backend permissions.`):(0,l.R8)(`The '${e.get("type")}' toolbar item type is not allowed without the Document Editing feature in the license.`)),t):"content-editor"===e.get("type")?(t=(0,gn.Wm)({features:n,backendPermissions:o,documentPermissions:i,readOnlyEnabled:a}),!t&&n.size>0&&(n.includes(te.Y.CONTENT_EDITING)||(0,l.R8)(`The '${e.get("type")}' toolbar item type is not allowed without the Content Editor feature in the license.`),!o.readOnly&&i.modification&&a!==ne.g.VIA_VIEW_STATE&&a!==ne.g.VIA_BACKEND_PERMISSIONS||(0,l.R8)(`The '${e.get("type")}' toolbar item type is not allowed due to document or backend permissions.`)),t):"comment"===e.get("type")?(t=(0,gn.kl)({features:n,backend:r})&&(0,Ha.mx)({showComments:s,features:n,backend:r}),!t&&n.size>0&&(n.includes(te.Y.COMMENTS)||(0,l.R8)(`The '${e.get("type")}' toolbar item type is not allowed without the Comments feature in the license.`),s||(0,l.R8)(`The '${e.get("type")}' toolbar item type is not allowed because comments are disabled.`),"SERVER"!==r?.type||r?.isUsingInstantProvider()||(0,l.R8)(`The '${e.get("type")}' toolbar item type is not allowed because comments are not supported on Server deployments without Instant.`)),t):!["measure","distance","perimeter","rectangle-area","ellipse-area","polygon-area"].includes(e.get("type"))||(t=n.includes(te.Y.MEASUREMENT_TOOLS),!t&&n.size>0&&(n.includes(te.Y.MEASUREMENT_TOOLS)||(0,l.R8)(`The '${e.get("type")}' toolbar item type is not allowed without the Measurement Tools feature in the license.`)),t)}))}({toolbarItems:e,features:t,backend:n,backendPermissions:r,documentPermissions:o,readOnlyEnabled:i,showComments:a,isTextComparison:c})),[e,t,n,r,o,i,a,c]);return d}const{useResponsiveToolbarItems:LE,createButtonSelectToolbarItem:VE,createActionIconButtonToolbarItem:KE}=Dl.XD,HE=`(max-width: ${Xe.JY.BREAKPOINT_MD_TOOLBAR}px)`,$E=["pan","zoom-in","zoom-out","fit-page","fit-width","spacer","export-pdf","document-comparison"];function UE(e){const t=BE(),n=(0,s.d4)((e=>e.frameWindow)),r=(0,s.d4)((e=>e.interactionMode)),o=(0,s.d4)((e=>e.currentItemPreset)),i=(0,s.d4)((e=>e.connectionState.name===$i.D.DOWNLOADING_DOCUMENT)),l=(0,s.d4)((e=>!!e.viewportState.documentComparisonMode)),[c,d]=(0,u.useState)(null),[p,h]=(0,u.useState)(),f=function(e){let{setExpandedResponsiveGroup:t,lastSelectedToolbarItemType:n}=e;const r=(0,s.d4)((e=>e.currentItemPreset)),o=(0,s.d4)((e=>e.interactionMode)),i=(0,s.d4)((e=>e.signatureFeatureAvailability)),l=(0,s.wA)(),c=(0,s.d4)((e=>(0,gn.we)(e))),d=(0,s.d4)((e=>e.features)),p=(0,s.d4)((e=>e.backend)),h=(0,s.d4)((e=>e.backendPermissions)),f=(0,s.d4)((e=>e.documentPermissions)),m=(0,s.d4)((e=>e.readOnlyEnabled)),g=(0,s.d4)((e=>e.editableAnnotationTypes)),y=(0,s.d4)((e=>e.connectionState.name===$i.D.DOWNLOADING_DOCUMENT)),b=(0,u.useCallback)(((e,t)=>(0,gn.W3)(e,{features:d,backend:p,backendPermissions:h,documentPermissions:f,readOnlyEnabled:m,editableAnnotationTypes:g},t)),[p,h,f,g,d,m]),w=(0,s.d4)((e=>e.shadowRoot)),x=(0,s.d4)((e=>e.eventEmitter)),S=(0,s.d4)((e=>e.viewportState.currentPageIndex)),{formatMessage:_}=(0,v.useI18n)(),C=(0,s.d4)((e=>!!e.documentComparisonState)),E=o===L.O.CONTENT_EDITOR||y||C,k=(0,u.useCallback)((e=>{"keyboard"===e.pointerType?(l((0,we.J9)()),l((0,lt.yk)())):(l((0,we.J9)()),o===L.O.NOTE&&xa.fG.NOTE===r?(l((0,lt.iE)(null)),l((0,Dt.w9)())):(l((0,lt.iE)(xa.fG.NOTE)),l((0,Dt.R8)())))}),[r,l,o]),z=(0,u.useCallback)((()=>{const e=document.createElement("input");e.type="file",e.accept="image/png, image/jpeg, application/pdf",e.tabIndex=-1,e.setAttribute("aria-label",_(pu.G.selectImage)),e.onchange=t=>{t.target.files?.[0]&&(l((0,we.J9)()),l((0,lt.iE)("image")),l((0,lt.vs)(t.target.files?.[0])),l((0,Dt.CM)(_(pu.G.newAnnotationCreated,{arg0:"image"}))),t.target.value="",e.remove())},w?.appendChild(e);try{const t={annotations:(0,a.B8)([new P.vU({pageIndex:S})]),reason:ee.x.SELECT_START};x.emit("annotations.willChange",t),l((0,Dt.CM)(_(pu.G.selectAFileForImage))),e.click()}catch{e.setAttribute("aria-hidden","true");const t={annotations:(0,a.B8)(),reason:ee.x.SELECT_END};x.emit("annotations.willChange",t)}}),[S,l,x,_,w]),A=(0,u.useCallback)(((e,t,n)=>{l((0,we.J9)()),o===t&&n===r?(l((0,lt.iE)(null)),l((0,Dt.NP)())):(l((0,lt.iE)(n)),l((0,Dt.kJ)(e,t)))}),[r,l,o]),D=(0,u.useCallback)((()=>{l((0,we.J9)()),o===L.O.STAMP_PICKER?l((0,Dt.LD)()):l((0,Dt.A5)())}),[l,o]),T=(0,u.useCallback)((()=>{l((0,we.J9)()),o===L.O.INK_SIGNATURE||o===L.O.SIGNATURE?(l((0,lt.iE)(null)),l((0,Dt._Q)())):(l((0,lt.iE)(i===Hn.g.ELECTRONIC_SIGNATURES?xa.fG.ES_SIGNATURE:xa.fG.INK_SIGNATURE)),l((0,Dt.tJ)()))}),[l,o,i]),I=(0,u.useCallback)((()=>{l((0,we.J9)()),o===L.O.LINK&&xa.fG.LINK===r?(l((0,lt.iE)(null)),l((0,Dt.E7)())):(l((0,lt.iE)(xa.fG.LINK)),l((0,Dt.tE)()))}),[l,o,r]),M=(0,u.useCallback)((()=>{l((0,we.J9)()),o===L.O.INK&&xa.fG.INK===r?(l((0,lt.iE)(null)),l((0,Dt.m9)())):(l((0,lt.iE)(xa.fG.INK)),l((0,Dt.nB)()))}),[l,o,r]),N=(0,u.useCallback)((()=>{l((0,we.J9)()),o===L.O.INK_ERASER?(l((0,lt.iE)(null)),l((0,Dt.cS)())):(l((0,lt.iE)(xa.fG.INK)),l((0,Dt.t4)()))}),[l,o]),O=(0,u.useCallback)((()=>{l((0,we.J9)()),o===L.O.INK&&xa.fG.HIGHLIGHTER===r?(l((0,lt.iE)(null)),l((0,Dt.m9)())):(l((0,lt.iE)(xa.fG.HIGHLIGHTER)),l((0,Dt.nB)()))}),[l,o,r]),R=(0,u.useCallback)((()=>{l((0,we.J9)()),o===L.O.TEXT_HIGHLIGHTER&&xa.fG.TEXT_HIGHLIGHTER===r?l((0,Dt.iw)()):l((0,Dt.D8)(xa.fG.TEXT_HIGHLIGHTER))}),[l,o,r]);return(0,u.useMemo)((()=>({[xa.rh.ANNOTATE]:{toolbarItem:AE(xa.rh.ANNOTATE,{className:"PSPDFKit-Toolbar-Button-Annotate",icon:Al.G8h,"aria-label":_(xe.A.annotations),isDisabled:E,onPress:()=>t(xa.rh.ANNOTATE)}),mediaQueries:[`(max-width: ${Xe.JY.BREAKPOINT_MD_TOOLBAR}px)`],isHidden:b(P.YH)},[xa.rh.NOTE]:{toolbarItem:PE(xa.rh.NOTE,{className:"PSPDFKit-Toolbar-Button-Note-Annotation",isSelected:o===L.O.NOTE&&"note"===n,onPress:k,icon:Al.ncu,"aria-label":_(xe.A.noteAnnotation),isDisabled:E}),preset:xa.fG.NOTE,responsiveGroup:"annotate",isHidden:b(P.s9)},[xa.rh.SIGNATURE]:{toolbarItem:PE(xa.rh.SIGNATURE,{className:"PSPDFKit-Toolbar-Button-InkSignature-Annotation PSPDFKit-Toolbar-Button-Signature",isSelected:o===L.O.INK_SIGNATURE||o===L.O.SIGNATURE,"aria-label":_(xe.A.sign),icon:Al.kTg,isDisabled:E,onPress:T}),isHidden:i===Hn.g.NONE||c||b(P.Eo)&&i!==Hn.g.ELECTRONIC_SIGNATURES,responsiveGroup:"annotate",preset:i===Hn.g.ELECTRONIC_SIGNATURES?xa.fG.ES_SIGNATURE:xa.fG.INK_SIGNATURE},[xa.rh.IMAGE]:{toolbarItem:AE(xa.rh.IMAGE,{className:"PSPDFKit-Toolbar-Button-Image-Annotation","aria-label":_(xe.A.imageAnnotation),icon:Al.xfq,isDisabled:E,onPress:z}),preset:xa.fG.IMAGE,responsiveGroup:"annotate",dropdownGroup:xa.gL.IMAGE,isHidden:b(P.vU)},[xa.rh.STAMP]:{toolbarItem:PE(xa.rh.STAMP,{className:"PSPDFKit-Toolbar-Button-Stamp-Annotation","aria-label":_(xe.A.stampAnnotation),icon:Al.LV2,isDisabled:E,onPress:D,isSelected:o===L.O.STAMP_PICKER||o===L.O.STAMP_CUSTOM}),preset:xa.fG.STAMP,responsiveGroup:"annotate",dropdownGroup:xa.gL.IMAGE,isHidden:b(P.xY)},[xa.rh.LINK]:{toolbarItem:PE(xa.rh.LINK,{isSelected:o===L.O.LINK&&n===xa.rh.LINK,onPress:I,icon:Al.qYV,isDisabled:E,"aria-label":_(xe.A.linkAnnotation),className:"PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button PSPDFKit-Toolbar-Button-Link-Annotation"}),isHidden:b(P.UL),preset:xa.fG.LINK,responsiveGroup:"annotate",dropdownGroup:xa.gL.IMAGE},[xa.rh.INK]:{toolbarItem:PE(xa.rh.INK,{className:"PSPDFKit-Toolbar-Button-Ink-Annotation PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===L.O.INK&&n===xa.rh.INK,"aria-label":_(xe.A.pen),isDisabled:E,onPress:M,icon:Al.rZj}),isHidden:b(P.Eo),responsiveGroup:"annotate",dropdownGroup:xa.gL.INK,preset:xa.fG.INK},[xa.rh.INK_ERASER]:{toolbarItem:PE(xa.rh.INK_ERASER,{className:"PSPDFKit-Toolbar-Button-Ink-Eraser PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===L.O.INK_ERASER,icon:Al.A5W,"aria-label":_(xe.A.eraser),isDisabled:E,onPress:N}),isHidden:b(P.Eo),responsiveGroup:"annotate",dropdownGroup:xa.gL.INK,preset:xa.fG.INK},[xa.rh.HIGHLIGHTER]:{toolbarItem:PE(xa.rh.HIGHLIGHTER,{className:"PSPDFKit-Toolbar-Button-Ink-Annotation PSPDFKit-Toolbar-Button-Variant-Highlighter PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===L.O.INK&&n===xa.rh.HIGHLIGHTER,icon:Al.evl,onPress:O,"aria-label":_(xe.A.highlighter),isDisabled:E}),preset:xa.fG.HIGHLIGHTER,dropdownGroup:xa.gL.INK,responsiveGroup:"annotate",isHidden:b(P.Eo)},[xa.rh.TEXT_HIGHLIGHTER]:{toolbarItem:PE(xa.rh.TEXT_HIGHLIGHTER,{className:"PSPDFKit-Toolbar-Button-TextHighlighter-Annotation PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===L.O.TEXT_HIGHLIGHTER&&n===xa.rh.TEXT_HIGHLIGHTER,onPress:R,icon:Al.VUW,"aria-label":_(xe.A.textHighlighter),isDisabled:E}),preset:xa.fG.TEXT_HIGHLIGHTER,responsiveGroup:"annotate",isHidden:b(P.ax),dropdownGroup:xa.gL.INK},[xa.rh.LINE]:{toolbarItem:PE(xa.rh.LINE,{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Line-Annotation PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===L.O.SHAPE_LINE&&n===xa.rh.LINE,onPress:()=>{A(P.MU,L.O.SHAPE_LINE,xa.fG.LINE)},icon:Al.s4F,"aria-label":_(xe.A.lineAnnotation),isDisabled:E}),isHidden:b(P.MU),responsiveGroup:"annotate",dropdownGroup:xa.gL.SHAPES,preset:xa.fG.LINE},[xa.rh.ARROW]:{toolbarItem:PE(xa.rh.ARROW,{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Line-Annotation PSPDFKit-Toolbar-Button-Variant-Arrow PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===L.O.SHAPE_LINE&&n===xa.rh.ARROW,onPress:()=>{A(P.MU,L.O.SHAPE_LINE,xa.fG.ARROW)},"aria-label":_(xe.A.arrow),isDisabled:E,icon:Al.HKb}),isHidden:b(P.MU),responsiveGroup:"annotate",dropdownGroup:xa.gL.SHAPES,preset:xa.fG.ARROW},[xa.rh.RECTANGLE]:{toolbarItem:PE(xa.rh.RECTANGLE,{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Rectangle-Annotation PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===L.O.SHAPE_RECTANGLE&&n===xa.rh.RECTANGLE,onPress:()=>{A(P.Zx,L.O.SHAPE_RECTANGLE,xa.fG.RECTANGLE)},"aria-label":_(xe.A.rectangleAnnotation),isDisabled:E,icon:Al.$s7}),isHidden:b(P.Zx),responsiveGroup:"annotate",dropdownGroup:xa.gL.SHAPES,preset:xa.fG.RECTANGLE},[xa.rh.CLOUDY_RECTANGLE]:{toolbarItem:PE(xa.rh.CLOUDY_RECTANGLE,{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Rectangle-Annotation PSPDFKit-Toolbar-Button-Variant-CloudyRectangle PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===L.O.SHAPE_RECTANGLE&&n===xa.rh.CLOUDY_RECTANGLE,onPress:()=>{A(P.Zx,L.O.SHAPE_RECTANGLE,xa.fG.CLOUDY_RECTANGLE)},"aria-label":_(xe.A.cloudyRectangleAnnotation),isDisabled:E,icon:Al.Lg9}),isHidden:b(P.Zx),responsiveGroup:"annotate",dropdownGroup:xa.gL.SHAPES,preset:xa.fG.CLOUDY_RECTANGLE},[xa.rh.DASHED_RECTANGLE]:{toolbarItem:PE(xa.rh.DASHED_RECTANGLE,{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Rectangle-Annotation PSPDFKit-Toolbar-Button-Variant-DashedRectangle PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===L.O.SHAPE_RECTANGLE&&n===xa.rh.DASHED_RECTANGLE,onPress:()=>{A(P.Zx,L.O.SHAPE_RECTANGLE,xa.fG.DASHED_RECTANGLE)},"aria-label":_(xe.A.dashedRectangleAnnotation),isDisabled:E,icon:Al.ip0}),isHidden:b(P.Zx),responsiveGroup:"annotate",dropdownGroup:xa.gL.SHAPES,preset:xa.fG.DASHED_RECTANGLE},[xa.rh.ELLIPSE]:{toolbarItem:PE(xa.rh.ELLIPSE,{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Ellipse-Annotation PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===L.O.SHAPE_ELLIPSE&&n===xa.rh.ELLIPSE,onPress:()=>{A(P.Go,L.O.SHAPE_ELLIPSE,xa.fG.ELLIPSE)},"aria-label":_(xe.A.ellipseAnnotation),isDisabled:E,icon:Al.YlR}),isHidden:b(P.Go),responsiveGroup:"annotate",dropdownGroup:xa.gL.SHAPES,preset:xa.fG.ELLIPSE},[xa.rh.CLOUDY_ELLIPSE]:{toolbarItem:PE(xa.rh.CLOUDY_ELLIPSE,{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Ellipse-Annotation PSPDFKit-Toolbar-Button-Variant-CloudyEllipse PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===L.O.SHAPE_ELLIPSE&&n===xa.rh.CLOUDY_ELLIPSE,onPress:()=>{A(P.Go,L.O.SHAPE_ELLIPSE,xa.fG.CLOUDY_ELLIPSE)},"aria-label":_(xe.A.cloudyEllipseAnnotation),isDisabled:E,icon:Al.ErD}),isHidden:b(P.Go),responsiveGroup:"annotate",dropdownGroup:xa.gL.SHAPES,preset:xa.fG.CLOUDY_ELLIPSE},[xa.rh.DASHED_ELLIPSE]:{toolbarItem:PE(xa.rh.DASHED_ELLIPSE,{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Ellipse-Annotation PSPDFKit-Toolbar-Button-Variant-DashedEllipse PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===L.O.SHAPE_ELLIPSE&&n===xa.rh.DASHED_ELLIPSE,onPress:()=>{A(P.Go,L.O.SHAPE_ELLIPSE,xa.fG.DASHED_ELLIPSE)},"aria-label":_(xe.A.dashedEllipseAnnotation),isDisabled:E,icon:Al.bt$}),isHidden:b(P.Go),responsiveGroup:"annotate",dropdownGroup:xa.gL.SHAPES,preset:xa.fG.DASHED_ELLIPSE},[xa.rh.POLYGON]:{toolbarItem:PE(xa.rh.POLYGON,{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Polygon-Annotation PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===L.O.SHAPE_POLYGON&&n===xa.rh.POLYGON,onPress:()=>{A(P.Si,L.O.SHAPE_POLYGON,xa.fG.POLYGON)},"aria-label":_(xe.A.polygonAnnotation),isDisabled:E,icon:Al.qcG}),isHidden:b(P.Si),responsiveGroup:"annotate",dropdownGroup:xa.gL.SHAPES,preset:xa.fG.POLYGON},[xa.rh.CLOUDY_POLYGON]:{toolbarItem:PE(xa.rh.CLOUDY_POLYGON,{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Polygon-Annotation PSPDFKit-Toolbar-Button-Variant-CloudyPolygon PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===L.O.SHAPE_POLYGON&&n===xa.rh.CLOUDY_POLYGON,onPress:()=>{A(P.Si,L.O.SHAPE_POLYGON,xa.fG.CLOUDY_POLYGON)},"aria-label":_(xe.A.cloudyPolygonAnnotation),isDisabled:E,icon:Al.gXF}),isHidden:b(P.Si),responsiveGroup:"annotate",dropdownGroup:xa.gL.SHAPES,preset:xa.fG.CLOUDY_POLYGON},[xa.rh.DASHED_POLYGON]:{toolbarItem:PE(xa.rh.DASHED_POLYGON,{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Polygon-Annotation PSPDFKit-Toolbar-Button-Variant-DashedPolygon PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===L.O.SHAPE_POLYGON&&n===xa.rh.DASHED_POLYGON,onPress:()=>{A(P.Si,L.O.SHAPE_POLYGON,xa.fG.DASHED_POLYGON)},"aria-label":_(xe.A.dashedPolygonAnnotation),isDisabled:E,icon:Al.b$9}),isHidden:b(P.Si),responsiveGroup:"annotate",dropdownGroup:xa.gL.SHAPES,preset:xa.fG.DASHED_POLYGON},[xa.rh.POLYLINE]:{toolbarItem:PE(xa.rh.POLYLINE,{className:"PSPDFKit-Toolbar-Button-Shape-Annotation PSPDFKit-Toolbar-Button-Polyline-Annotation PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===L.O.SHAPE_POLYLINE&&n===xa.rh.POLYLINE,onPress:()=>{A(P.ug,L.O.SHAPE_POLYLINE,xa.fG.POLYLINE)},"aria-label":_(xe.A.polylineAnnotation),isDisabled:E,icon:Al.QPM}),isHidden:b(P.ug),responsiveGroup:"annotate",dropdownGroup:xa.gL.SHAPES,preset:xa.fG.POLYLINE},[xa.rh.COMMENT]:{toolbarItem:PE(xa.rh.COMMENT,{className:"PSPDFKit-Toolbar-Button-Comment-Marker-Annotation",isSelected:o===L.O.COMMENT_MARKER,"aria-label":_(xe.A.comment),icon:Al.Twg,isDisabled:E,onPress:e=>{"keyboard"===e.pointerType?(l((0,we.J9)()),l((0,Er.zQ)())):(l((0,we.J9)()),o===L.O.COMMENT_MARKER?l((0,Dt.xS)()):l((0,Dt.WN)()))}}),responsiveGroup:"annotate",isHidden:b(P.dG)},[xa.rh.REDACT_TEXT_HIGHLIGHTER]:{toolbarItem:PE(xa.rh.REDACT_TEXT_HIGHLIGHTER,{className:"PSPDFKit-Toolbar-Button-RedactTextHighlighter-Annotation PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===L.O.REDACT_TEXT_HIGHLIGHTER,icon:Al.nMq,"aria-label":_(xe.A.textRedaction),isDisabled:E,onPress:()=>{l((0,we.J9)()),o===L.O.REDACT_TEXT_HIGHLIGHTER&&"redaction"===r?l((0,Dt.jQ)()):l((0,Dt.eW)("redaction"))}}),responsiveGroup:"annotate",dropdownGroup:xa.gL.REDACTION,preset:xa.fG.REDACTION,isHidden:b(ce.h5)},[xa.rh.REDACT_RECTANGLE]:{toolbarItem:PE(xa.rh.REDACT_RECTANGLE,{className:"PSPDFKit-Toolbar-Button-Redaction-Annotation PSPDFKit-Toolbar-Button-Rectangle-Redaction-Annotation PSPDFKit-Toolbar-Button PSPDFKit-Tool-Button",isSelected:o===L.O.REDACT_SHAPE_RECTANGLE,icon:Al.e_J,"aria-label":_(xe.A.areaRedaction),isDisabled:E,onPress:()=>{l((0,we.J9)()),o===L.O.REDACT_SHAPE_RECTANGLE&&"redaction"===r?l((0,Dt.He)()):l((0,Dt.Gh)("redaction"))}}),responsiveGroup:"annotate",dropdownGroup:xa.gL.REDACTION,preset:xa.fG.REDACTION,isHidden:b(ce.h5)},[xa.rh.FORM_CREATOR]:{toolbarItem:PE(xa.rh.FORM_CREATOR,{className:"PSPDFKit-Toolbar-Button-Form-Creator","aria-label":_(xe.A.formCreator),icon:Al.X5L,isSelected:(0,Oe.$_)(o),isDisabled:E,preventFocusOnPress:!0,onPress:()=>{l((0,we.J9)()),(0,Oe.$_)(o)?l((0,kn.Lg)()):l((0,kn.SM)())}}),isHidden:b(P.sb)},[xa.rh.TEXT]:{toolbarItem:PE(xa.rh.TEXT,{className:"PSPDFKit-Toolbar-Button-Text-Annotation","aria-label":_(xe.A.textAnnotation),icon:Al.$o6,isDisabled:E,isSelected:o===L.O.TEXT,onPress:e=>{"keyboard"===e.pointerType?(l((0,we.J9)()),l((0,lt.js)())):(l((0,we.J9)()),o===L.O.TEXT&&xa.fG.TEXT===r?(l((0,lt.iE)(null)),l((0,Dt.l$)())):(l((0,lt.iE)(xa.fG.TEXT)),l((0,Dt.K3)())))}}),dropdownGroup:xa.gL.TEXT,preset:xa.fG.TEXT,responsiveGroup:"annotate",isHidden:b(P.dh)},[xa.rh.CALLOUT]:{toolbarItem:PE(xa.rh.CALLOUT,{className:"PSPDFKit-Toolbar-Button-Callout-Annotation","aria-label":_(xe.A.calloutAnnotation),icon:Al.RnU,isDisabled:E,isSelected:o===L.O.CALLOUT,onPress:()=>{l((0,we.J9)()),o===L.O.CALLOUT&&xa.fG.CALLOUT===r?(l((0,lt.iE)(null)),l((0,Dt.l$)())):(l((0,lt.iE)(xa.fG.CALLOUT)),l((0,Dt.NW)()))}}),responsiveGroup:"annotate",preset:xa.fG.CALLOUT,dropdownGroup:xa.gL.TEXT,isHidden:b(P.dh)},[xa.rh.MEASURE]:{toolbarItem:PE(xa.rh.MEASURE,{className:"PSPDFKit-Toolbar-Button-Measurement-Annotation","aria-label":_(xe.A.measurement),icon:Al.soG,isDisabled:E,isSelected:o===L.O.MEASUREMENT||o===L.O.DISTANCE||o===L.O.PERIMETER||o===L.O.RECTANGLE_AREA||o===L.O.POLYGON_AREA||o===L.O.ELLIPSE_AREA,onPress:()=>{l((0,we.J9)()),o===L.O.MEASUREMENT&&xa.fG.MEASUREMENT===r?(l((0,lt.iE)(null)),l((0,Dt.gw)())):(l((0,lt.iE)(xa.fG.MEASUREMENT)),l((0,Dt.zB)()))}}),responsiveGroup:"annotate",preset:xa.fG.MEASUREMENT,isHidden:b(P.YH)}})),[b,c,_,l,O,N,M,I,k,A,T,D,o,n,z,t,r,E,R,i])}({setExpandedResponsiveGroup:d,lastSelectedToolbarItemType:p}),m=function(){const e=(0,s.wA)(),{formatMessage:t}=(0,v.useI18n)(),n=(0,s.d4)((e=>e.sidebarMode)),r=(0,s.d4)((e=>e.interactionMode)),o=(0,s.d4)((e=>"STANDALONE"===e.backend?.type)),i=(0,s.d4)((e=>e.connectionState.name===$i.D.DOWNLOADING_DOCUMENT)),a=r===L.O.CONTENT_EDITOR;return(0,u.useMemo)((()=>({[xa.rh.SIDEBAR_THUMBNAILS]:{toolbarItem:DE(xa.rh.SIDEBAR_THUMBNAILS,{className:"PSPDFKit-Toolbar-Button-Sidebar PSPDFKit-Toolbar-Button-Sidebar-Thumbnails","aria-label":t(pu.G.thumbnails),icon:Al.LtU,isSelected:n===yc.I.THUMBNAILS,isDisabled:a,onPress:()=>{e(n===yc.I.THUMBNAILS?(0,Dt.hP)():(0,Dt.RX)())}}),dropdownGroup:xa.gL.SIDEBAR},[xa.rh.SIDEBAR_DOCUMENT_OUTLINE]:{toolbarItem:DE(xa.rh.SIDEBAR_DOCUMENT_OUTLINE,{className:"PSPDFKit-Toolbar-Button-Sidebar PSPDFKit-Toolbar-Button-Sidebar-Document-Outline","aria-label":t(pu.G.outline),icon:Al.m_y,isSelected:n===yc.I.DOCUMENT_OUTLINE,isDisabled:a||i,onPress:()=>{e(n===yc.I.DOCUMENT_OUTLINE?(0,Dt.hP)():(0,Dt.dJ)())}}),dropdownGroup:xa.gL.SIDEBAR},[xa.rh.SIDEBAR_ANNOTATIONS]:{toolbarItem:DE(xa.rh.SIDEBAR_ANNOTATIONS,{className:"PSPDFKit-Toolbar-Button-Sidebar PSPDFKit-Toolbar-Button-Sidebar-Annotations","aria-label":t(xe.A.annotations),icon:Al.G8h,isSelected:n===yc.I.ANNOTATIONS,isDisabled:a||i,onPress:()=>{e(n===yc.I.ANNOTATIONS?(0,Dt.hP)():(0,Dt.Gz)())}}),dropdownGroup:xa.gL.SIDEBAR},[xa.rh.SIDEBAR_BOOKMARKS]:{toolbarItem:DE(xa.rh.SIDEBAR_BOOKMARKS,{className:"PSPDFKit-Toolbar-Button-Bookmarks PSPDFKit-Toolbar-Button-Sidebar-Bookmarks","aria-label":t(xe.A.bookmarks),icon:Al.cFy,isSelected:n===yc.I.BOOKMARKS,isDisabled:a||i,onPress:()=>{e(n===yc.I.BOOKMARKS?(0,Dt.hP)():(0,Dt.nu)())}}),dropdownGroup:xa.gL.SIDEBAR},[xa.rh.SIDEBAR_SIGNATURES]:{toolbarItem:DE(xa.rh.SIDEBAR_SIGNATURES,{className:"PSPDFKit-Toolbar-Button-Sidebar PSPDFKit-Toolbar-Button-Sidebar-Signatures","aria-label":t(xe.A.signatures),icon:Al.kTg,isSelected:n===yc.I.SIGNATURES,isDisabled:a||i,onPress:()=>{e(n===yc.I.SIGNATURES?(0,Dt.hP)():(0,Dt.NI)())}}),dropdownGroup:xa.gL.SIDEBAR},[xa.rh.SIDEBAR_ATTACHMENTS]:{toolbarItem:DE(xa.rh.SIDEBAR_ATTACHMENTS,{className:"PSPDFKit-Toolbar-Button-Sidebar PSPDFKit-Toolbar-Button-Sidebar-Attachments","aria-label":t(xe.A.attachments),icon:Al.PtA,isSelected:n===yc.I.ATTACHMENTS,isDisabled:a||i,onPress:()=>{e(n===yc.I.ATTACHMENTS?(0,Dt.hP)():(0,Dt.WX)())}}),dropdownGroup:xa.gL.SIDEBAR},[xa.rh.SIDEBAR_LAYERS]:{toolbarItem:DE(xa.rh.SIDEBAR_LAYERS,{className:"PSPDFKit-Toolbar-Button-Sidebar PSPDFKit-Toolbar-Button-Sidebar-Layers","aria-label":t(xe.A.layers),icon:Al.mLz,isSelected:n===yc.I.LAYERS,isDisabled:a||i,onPress:()=>{e(n===yc.I.LAYERS?(0,Dt.hP)():(0,Dt.eZ)())}}),dropdownGroup:xa.gL.SIDEBAR,isHidden:!o}})),[e,t,i,o,a,n])}(),g=function(){var e,t;const n=(0,s.d4)((e=>e.pages)),r=(0,s.wA)(),o=(0,s.d4)((e=>e.pages.size)),i=(0,s.d4)((e=>e.viewportState.layoutMode)),a=(0,s.d4)((e=>e.viewportState.scrollMode===ha.V.DISABLED)),{formatMessage:l}=(0,v.useI18n)(),c=(0,s.d4)((e=>e.pages.get(e.viewportState.currentPageIndex))),d=(0,s.d4)((e=>e.interactionMode)),p=(0,s.d4)((e=>e.viewportState.currentPageIndex+1)),h=d===L.O.CONTENT_EDITOR,f=(0,s.d4)((e=>e.pages.some((e=>e.pageLabel!==(e.pageIndex+1).toString())))),m=(0,br.Kw)((e=>{if(f){const t=n.findIndex((t=>t.pageIndex+1===e));if(t>=0)return void r((0,vc.Ir)(t))}1<=e&&e<=o&&!a&&r((0,vc.Ir)(e-1))})),g=(0,v.useDevice)(),y=(0,u.useMemo)((()=>f?Object.fromEntries(n.filter((e=>""!==e.pageLabel&&parseInt(e.pageLabel)!==e.pageIndex+1)).map((e=>[e.pageIndex+1,e.pageLabel])).toJS()):void 0),[n,f]);return(0,u.useMemo)((()=>({[xa.rh.PAGER]:{toolbarItem:"desktop"===g?TE(xa.rh.PAGER,{value:c?.pageIndex?c.pageIndex+1:1,onChangeSuccess:m,label:l(xe.A.pageX,{arg0:""}),decrementAriaLabel:l(pu.G.prevPage),incrementAriaLabel:l(pu.G.nextPage),style:{width:"fit-content"},isReadOnly:a,description:`${p} / ${o}`,descriptionAriaLabel:l(xe.A.pageXofY,{arg0:p,arg1:o}),minValue:1,maxValue:o,valueToLabelMap:y,size:"sm",step:i===mu.S.DOUBLE?2:1,type:f?"text":"number",isDisabled:h,"data-block-class":"pager","data-block-id":"pager-tagged",className:"PSPDFKit-Page-Indicator"}):IE("pager",(0,oe.jsxs)(v.Box,{display:"flex",flexDirection:"row",paddingX:"lg",gap:"sm",height:"full",alignItems:"center",justifyContent:"center",flexShrink:0,style:{whiteSpace:"nowrap",width:84},className:"PSPDFKit-Page-Indicator",children:[e||(e=(0,oe.jsx)(v.Box,{typography:"label.lg.medium",color:"text.primary",children:p},"currentPage")),t||(t=(0,oe.jsxs)(v.Box,{typography:"label.lg.medium",color:"text.secondary",children:[" ","/ ",o]},"totalPages"))]},"pager-compact"))}})),[c?.pageIndex,p,g,l,m,f,a,i,h,o,y])}(),y=function(){const e=(0,s.wA)(),t=(0,s.d4)((e=>e.interactionMode)),n=(0,s.d4)((e=>e.isMultiSelectionEnabled)),r=(0,s.d4)((e=>e.viewportState.zoomMode)),o=(0,s.d4)((e=>(0,gn.$n)(e))),{formatMessage:i}=(0,v.useI18n)(),a=t===L.O.CONTENT_EDITOR,l=(0,s.d4)((e=>e.connectionState.name===$i.D.DOWNLOADING_DOCUMENT)),c=(0,u.useCallback)((()=>{e((0,we.J9)()),e(t===L.O.PAN?(0,vc.Ip)():(0,vc.pH)())}),[e,t]),d=(0,s.d4)((e=>e.viewportState.zoomLevel<=(0,sa.m0)(e.viewportState))),p=(0,s.d4)((e=>e.viewportState.zoomLevel>=(0,sa.m9)(e.viewportState))),h=(0,s.d4)((e=>e.isHistoryEnabled&&e.undoActions.size>0)),f=(0,s.d4)((e=>e.isHistoryEnabled&&e.redoActions.size>0)),m=(0,s.d4)((e=>e.viewportState.layoutMode)),g=(0,s.d4)((e=>e.viewportState.scrollMode)),y=(0,s.d4)((e=>e.debugMode)),w=(0,s.d4)((e=>(0,gn.we)(e))),x=(0,s.d4)((e=>!!e.documentComparisonState));return(0,u.useMemo)((()=>({[xa.rh.PAN]:{toolbarItem:_u(xa.rh.PAN,{className:"PSPDFKit-Toolbar-Button-Pan",icon:Al.jNf,onPress:c,isSelected:t===L.O.PAN,"aria-label":i(pu.G.panMode),isDisabled:a&&!x})},[xa.rh.ZOOM_OUT]:{toolbarItem:Cu(xa.rh.ZOOM_OUT,{className:"PSPDFKit-Toolbar-Button-Zoom-Out",isDisabled:d,"aria-label":i(pu.G.zoomOut),onPress:()=>{e((0,vc.ke)())},icon:Al.LoD}),mediaQueries:[b.LZ?`(min-width: ${Xe.JY.BREAKPOINT_MD_TOOLBAR}px)`:"all"]},[xa.rh.ZOOM_IN]:{toolbarItem:Cu(xa.rh.ZOOM_IN,{className:"PSPDFKit-Toolbar-Button-Zoom-In",isDisabled:p,"aria-label":i(pu.G.zoomIn),onPress:()=>{e((0,vc.nF)())},icon:Al.ADv}),mediaQueries:[b.LZ?`(min-width: ${Xe.JY.BREAKPOINT_MD_TOOLBAR}px)`:"all"]},[xa.rh.MULTI_ANNOTATIONS_SELECTION]:{toolbarItem:_u(xa.rh.MULTI_ANNOTATIONS_SELECTION,{className:"PSPDFKit-Toolbar-Button-Multiple-Annotations-Selection",icon:Al.efu,onPress:()=>{t===L.O.MULTI_ANNOTATIONS_SELECTION?e((0,Dt.Vh)()):e((0,Dt.K)())},isSelected:t===L.O.MULTI_ANNOTATIONS_SELECTION,"aria-label":i(xe.A.multiAnnotationsSelection),isDisabled:!n||a||l})},[xa.rh.ZOOM_MODE]:{toolbarItem:Cu(xa.rh.ZOOM_MODE,r===la.d.FIT_TO_VIEWPORT?{className:"PSPDFKit-Toolbar-Button-Fit-To-Width",icon:Al.tOd,onPress:()=>{e((0,vc.GL)())},isDisabled:a,"aria-label":i(pu.G.fitWidth)}:{className:"PSPDFKit-Toolbar-Button-Fit-To-Page",icon:Al.Hno,onPress:()=>{e((0,vc.mI)())},isDisabled:a,"aria-label":i(pu.G.fitPage)}),mediaQueries:[b.LZ?`(min-width: ${Xe.JY.BREAKPOINT_MD_TOOLBAR}px)`:"all"]},[xa.rh.MARQUEE_ZOOM]:{toolbarItem:_u(xa.rh.MARQUEE_ZOOM,{className:"PSPDFKit-Toolbar-Button-Marquee-Zoom",icon:Al.ADv,"aria-label":i(pu.G.marqueeZoom),isDisabled:a,isSelected:t===L.O.MARQUEE_ZOOM,onPress:()=>{e((0,we.J9)()),t===L.O.MARQUEE_ZOOM?e((0,Dt.GV)()):e((0,Dt.rf)())}})},[xa.rh.UNDO]:{toolbarItem:Cu(xa.rh.UNDO,{className:"PSPDFKit-Toolbar-Button-Undo",icon:Al.ejX,onPress:()=>{e((0,co.tN)())},isDisabled:a||!h||l,"aria-label":i(pu.G.undo)}),isHidden:w,responsiveGroup:"annotate"},[xa.rh.REDO]:{toolbarItem:Cu(xa.rh.REDO,{className:"PSPDFKit-Toolbar-Button-Redo",icon:Al.UfX,onPress:()=>{e((0,co.ZS)())},isDisabled:a||!f||l,"aria-label":i(pu.G.redo)}),isHidden:w,responsiveGroup:"annotate"},[xa.rh.LAYOUT_CONFIG]:{toolbarItem:Eu(xa.rh.LAYOUT_CONFIG,wu({formatMessage:i,layoutMode:m,dispatch:e,scrollMode:g,isDisabled:x})),mediaQueries:[`(min-width: ${Xe.JY.BREAKPOINT_SM_TOOLBAR+1}px)`]},[xa.rh.SEARCH]:{toolbarItem:Cu(xa.rh.SEARCH,{className:"PSPDFKit-Toolbar-Button-Search",icon:Al.WIv,"aria-label":i(xe.A.searchDocument),onPress:()=>{t!==L.O.SEARCH?e((0,Dt.uT)(L.O.SEARCH)):e((0,Dt.Fl)())},isDisabled:a||l})},[xa.rh.PRINT]:{toolbarItem:Cu(xa.rh.PRINT,{className:"PSPDFKit-Toolbar-Button-Print",icon:Al.hM0,"aria-label":i(pu.G.print),isDisabled:a||!o||l,onPress:()=>{o&&e((0,Su.yy)())}})},[xa.rh.DEBUG]:{toolbarItem:Cu(xa.rh.DEBUG,{onPress:()=>{e((0,Dt.YL)())},"aria-label":"Debug Info",icon:Al.XpJ}),isHidden:!y}})),[w,o,f,h,y,e,i,t,x,l,n,m,p,d,a,r,g,c])}(),w=RE(),x=function(){const{formatMessage:e}=(0,v.useI18n)(),t=(0,s.d4)((e=>e.connectionState.name===$i.D.DOWNLOADING_DOCUMENT));return(0,u.useMemo)((()=>t?{[xa.rh.LINEARIZED_DOWNLOAD_INDICATOR]:{toolbarItem:FE("linearized-download-indicator",(0,oe.jsx)(v.Box,{display:"flex",flexDirection:"row",paddingX:"lg",gap:"sm",style:{whiteSpace:"nowrap"},className:"PSPDFKit-Linearized-Download-Indicator",title:e(pu.G.documentDownloading),children:jE||(jE=(0,oe.jsx)(v.ProgressSpinner,{}))}))}}:{}),[e,t])}(),S=(0,s.wA)();(0,u.useEffect)((()=>{if(r&&r in Ec){const e=Ec[r];Array.isArray(e)?o&&e.includes(o)?h(o):h(e[0]):"string"==typeof e&&h(e)}}),[r,o]);const _=(0,u.useMemo)((()=>({...f,...m,...g,...y,...x,...w})),[f,m,g,x,y,w]),{formatMessage:C}=(0,v.useI18n)(),[E,k]=u.useState({}),z=e??n,A=(0,u.useMemo)((()=>(0,zu.mZ)(t,_,i,((e,t)=>{t&&function(e){const t=Object.entries(Ec).find((t=>{let[,n]=t;return Array.isArray(n)?n.includes(e):n===e}));return t&&t[0]||null}(t)&&h(t);const n="keyboard"===e.pointerType;S((0,Dt.on)(n))}))),[t,_,i,S]),D=(0,u.useMemo)((()=>{const e=l?function(e){return Object.fromEntries(Object.entries(e).filter((e=>{let[t]=e;return $E.includes(t)})))}(A):A;return Object.fromEntries(Object.entries(e).filter((e=>{let[,t]=e;return!t.isHidden&&(t.mediaQueries||[]).every((e=>!!z?.matchMedia(e)?.matches))})))}),[A,E,z,l]);(0,Yt.useGranularEffect)((()=>{const e=Object.values(D).flatMap((e=>e.mediaQueries)).filter(Boolean).filter((e=>"all"!==e?.trim())).concat(HE);if(e.length){const t=z?.matchMedia(e.join(", ")),n=()=>{k({})};return t?.addEventListener("change",n),n(),()=>{t?.removeEventListener("change",n)}}}),[t,z],[D]);const T=(0,bl.lb)(),[I,M]=(0,u.useState)({}),N=(0,u.useCallback)(((e,t)=>{const n=D[e].toolbarItem;"props"in n&&n.props.onPress({pointerType:T}),M((n=>({...n,[t]:e})))}),[D,T]),O=(0,u.useMemo)((()=>{let e=Object.values(D);const t=zE()(e,(e=>e.dropdownGroup||"default"));for(const n in t){const r=t[n];if("default"===n||r.length<=1)continue;const o=e.findIndex((e=>e.dropdownGroup===n)),i=r.find((e=>"props"in e.toolbarItem&&e.toolbarItem.props.isSelected))?.toolbarItem.name||I[n],a=r.filter((e=>!e.isHidden)).map((e=>{(0,fu.V1)("props"in e.toolbarItem,"Toolbar item doesn't have props");const{name:t,props:{icon:n,label:r,"aria-label":o}}=e.toolbarItem,i=r||o;return(0,fu.V1)(i,"Toolbar item must have a label or aria-label"),{id:t,icon:n,label:i}})),s=VE(n,{items:a,isDisabled:r.every((e=>"props"in e.toolbarItem&&e.toolbarItem.props.isDisabled)),containerPadding:12,selectedKey:i||a[0].id,className:(0,fu.xW)("PSPDFKit-Toolbar-Dropdown PSPDFKit-Toolbar-DropdownGroup",`PSPDFKit-Toolbar-DropdownGroup-${(0,Xt.ZH)(n)}`),onButtonSelectionChange:e=>{let{selectedKey:t}=e;return N(t,n)},isSelected:r.some((e=>"props"in e.toolbarItem&&e.toolbarItem.props.isSelected)),optionClassName:(e,t)=>{let{isButton:n,isSelected:o}=t;const i=r.find((t=>t.toolbarItem.name===e.id));return(0,fu.xW)(i&&"props"in i.toolbarItem&&i.toolbarItem.props.className,{"PSPDFKit-Tool-Button PSPDFKit-Toolbar-Button":n,"PSPDFKit-Tool-Button-active PSPDFKit-Toolbar-Button-active":o&&n,"PSPDFKit-Input-Dropdown-Item":!n})},onSelectionChange:e=>N(e,n),hideLabel:!0,moreAriaLabel:C(pu.G.accessibilityLabelDropdownGroupToggle,{arg0:(0,zu.NO)(n)}),triggerClassName:"PSPDFKit-Input-Dropdown-Button","aria-label":(0,zu.NO)(n)});e[o]={toolbarItem:s,responsiveGroup:r.map((e=>e.responsiveGroup))?.[0],isHidden:r.every((e=>e.isHidden))},e=e.filter((e=>e.dropdownGroup!==n))}const n=zE()(e,(e=>e.responsiveGroup||"default"));for(const t in n){if("default"===t)continue;e.find((e=>e.toolbarItem.name===t))&&(e=c===t?[{toolbarItem:KE("back",{icon:Al.JJd,onPress:()=>{S((0,we.J9)()),d(null)},className:"PSPDFKit-Tool-Button","aria-label":C(xe.A.close)})},{toolbarItem:{type:"spacer"}},...e.filter((e=>e.responsiveGroup===t))]:e.filter((e=>e.responsiveGroup!==t)))}return Object.fromEntries(e.map((e=>[e.toolbarItem.name,e])))}),[S,c,D,C,N,I]),{itemsStore:R,mobileItems:j}=(0,u.useMemo)((()=>{const e=Object.fromEntries(Object.entries(O).map((e=>{let[t,n]=e;return[t,n.toolbarItem]})));return{itemsStore:e,mobileItems:Object.keys(O)}}),[O]),{items:F}=LE({itemsStore:R,mobileItems:j,emulateMobileBehaviourInTablet:!0,device:z?.matchMedia(HE).matches?"mobile":"desktop"});return(0,u.useMemo)((()=>({items:F,setExpandedResponsiveGroup:d})),[F,d])}const WE=e=>{let{resizeWatchFrameWindow:t}=e;const n=(0,s.d4)((e=>e.ui?.[xl.Rq.PrimaryToolbar])),r=(0,s.d4)((e=>e.instance)),o=(0,s.d4)((e=>e.toolbarPlacement)),i=(0,u.useRef)(null),{items:a,setExpandedResponsiveGroup:c}=UE(t);(0,u.useEffect)((()=>{const e=i.current,t=e=>{(0,l.B6)(e.target)||e.preventDefault()};return e?.addEventListener("pointerdown",t),()=>{e?.removeEventListener("pointerdown",t)}}),[]);const d=(0,u.useMemo)((()=>({items:a,name:"primary-toolbar",className:"PSPDFKit-Toolbar",style:{...o===xc.h.TOP?{borderBottom:`1px solid ${hu.G6.color.border.medium}`}:{borderTop:`1px solid ${hu.G6.color.border.medium}`},zIndex:3},"data-block-id":"primary-toolbar",ref:i,onEscape:()=>{c(null)}})),[a,c,o]);return(0,Sl.Q)(xl.Rq.PrimaryToolbar,n,d,r)};var qE=n(1889);function GE(e){let{itemList:t,renderImage:n,selectedPageIndex:r,onSelectionChange:o,setElement:i,thumbnailsDimensions:a}=e;const{formatMessage:l}=(0,ve.tz)(),c=u.createRef(),d=(0,s.d4)((e=>e.ui[xl.Rq.Thumbnails])),h=(0,s.d4)((e=>e.instance));(0,u.useEffect)((()=>{const e=c.current;e&&requestAnimationFrame((()=>{e.scrollIntoView(r,{behavior:"smooth",block:"nearest"})}))}),[r,c]);const f=(0,u.useMemo)((()=>({"aria-label":l(ZE.thumbnails),ref:i,style:{overflowY:"auto",scrollPaddingTop:hu.G6.spacing["2xl"],scrollPaddingBottom:hu.G6.spacing["2xl"]},className:p()((0,hu.UV)({height:"full",paddingY:"2xl"}),"PSPDFKit-Sidebar-Thumbnails"),imageDimensions:e=>a[e.id],items:t.map((e=>({id:String(e.index),src:"",label:e.label||`${e.index+1}`,alt:e.label}))).toArray(),selectionMode:"single",renderImage:n,selectedKeys:[String(r)],onSelectionChange:o,listBoxHandle:c})),[a,t,n,r,o,c,l,i]);return(0,Sl.Q)(xl.Rq.Thumbnails,d,f,h)}const ZE=(0,ve.YK)({thumbnails:{id:"thumbnails",defaultMessage:"Thumbnails",description:"Thumbnails"}});function YE(e){let{closeOnPress:t,navigationDisabled:n}=e;const{pages:r,scale:o,selectedPageIndex:i}=(0,s.d4)((e=>{let{pages:t,containerRect:n,viewportState:{currentPageIndex:r}}=e;return{pages:t,scale:n.width<=_e.DK?.55:1,selectedPageIndex:r}}),s.bN),[a,l]=u.useState(null);u.useEffect((()=>{a?.focus()}),[a]);const c=u.useMemo((()=>r.map(qE.K)),[r]),d=(0,br.d3)(a,c),p=(0,br.jU)(d,(e=>String(e.index)),(e=>c?.find((t=>String(t.index)===String(e))))),h=(0,s.wA)(),f=u.useCallback((function(e){const r=Array.from(e)[0];if(n)return;const o=r?parseInt(r,10):i;t?(h((0,vc.Ir)(o)),h((0,Dt.hP)())):o!==i&&h((0,vc.Ir)(o))}),[t,h,i,n]),m=u.useCallback((function(e){const t=r.find((t=>String(t.pageIndex)===e.id));if(!t)return(0,oe.jsx)(oe.Fragment,{});const n=p?e=>{p(e,(0,qE.K)(t))}:void 0;return(0,oe.jsx)(uc,{page:t,size:_e.pp*o,maxSize:_e.pp,pageRef:n},t.pageKey)}),[r,p,o]),g=u.useMemo((()=>r.reduce(((e,t)=>{const{rotatedWidth:n,rotatedHeight:r}=function(e,t,n){const{width:r,height:o}=e,i=Math.min(n/r,n/o),a=Math.floor(r*i),s=Math.floor(o*i);let l=a,c=s;return 90!==t&&270!==t||(l=s,c=a),{rotatedWidth:l,rotatedHeight:c}}(t.pageSize,t.rotation,_e.pp);return e[String(t.pageIndex)]={height:r,width:n},e}),{})),[r]);return(0,oe.jsx)(GE,{itemList:c,thumbnailsDimensions:g,renderImage:m,selectedPageIndex:i,onSelectionChange:f,setElement:l})}function XE(e,t){let n;const r=Number(e.cloudyBorderIntensity)>0,o=e.strokeDashArray?.length;return e instanceof ce.Eo?function(e){return"normal"===e.blendMode?0===e.opacity||e.lineWidth/e.opacity>40?"highlighter":"ink":e.lineWidth>15?"highlighter":"ink"}(e):e instanceof ce.dh?e.callout?"callout":"text":e instanceof ce.s9?"note":e instanceof ce.vU?"image":e instanceof ce.xY?"stamp":e instanceof ce.ax?"highlight":e instanceof ce.Yi?"underline":e instanceof ce.sB?"strikeOut":e instanceof ce.TI?"squiggle":e instanceof ce.UL?"link":e instanceof ce.Zx?e.isMeasurement()?"rectangle-area":r?"cloudy-rectangle":o?"dashed-rectangle":"rectangle":e instanceof ce.Go?e.isMeasurement()?"ellipse-area":r?"cloudy-ellipse":o?"dashed-ellipse":"ellipse":e instanceof ce.Si?e.isMeasurement()?"polygon-area":r?"cloudy-polygon":o?"dashed-polygon":"polygon":e instanceof ce.ug?e.isMeasurement()?"perimeter":"polyline":e instanceof ce.MU?function(e){if(e.isMeasurement())return"distance";if(!e.lineCaps)return"line";const t="openArrow"===e.lineCaps.start||"closedArrow"===e.lineCaps.start||"reverseOpenArrow"===e.lineCaps.start||"reverseClosedArrow"===e.lineCaps.start,n="openArrow"===e.lineCaps.end||"closedArrow"===e.lineCaps.end||"reverseOpenArrow"===e.lineCaps.end||"reverseClosedArrow"===e.lineCaps.end;return t||n?"arrow":"line"}(e):e instanceof ce.sb?((0,ye.V)(t),n=t.get(e.formFieldName),n instanceof Zy.uS||n instanceof Zy.O2||n instanceof Zy.sh?"form-text":n instanceof Zy.av?"form-checkbox":n instanceof Zy.Qk||n instanceof Zy.$h?"form-button":n instanceof Zy.Vw?"form-signature":null):e instanceof Y.A?"redaction":e instanceof ce.KR?"media":null}const JE={text:Al.$o6,callout:xE.S$,ink:Al.rZj,highlighter:Al.evl,note:Al.ncu,highlight:yd.VU,underline:yd.qp,strikeOut:Al.dxj,squiggle:Al.So3,link:yd.qY,rectangle:Al.$s7,"cloudy-rectangle":Al.Lg9,"dashed-rectangle":Al.ip0,ellipse:yd.Yl,"cloudy-ellipse":Al.ErD,"dashed-ellipse":Al.bt$,polygon:Al.qcG,"cloudy-polygon":Al.gXF,"dashed-polygon":Al.b$9,polyline:Al.QPM,line:Al.s4F,arrow:Al.HKb,image:xE.xf,stamp:Al.LV2,redaction:Al.jZS,media:Al.npA,perimeter:Al.nlG,distance:xE.h5,"ellipse-area":Al.LPH,"rectangle-area":Al.cAn,"polygon-area":Al.XBh,"form-button":Al.Kf,"form-text":xE.fR,"form-checkbox":yd.Nr,"form-signature":xE._x},QE={highlighter:"highlighter",arrow:"arrow",callout:"textAnnotation","cloudy-rectangle":"cloudyRectangleAnnotation","dashed-rectangle":"dashedRectangleAnnotation","cloudy-ellipse":"cloudyEllipseAnnotation","dashed-ellipse":"dashedEllipseAnnotation","cloudy-polygon":"cloudyPolygonAnnotation","dashed-polygon":"dashedPolygonAnnotation","ellipse-area":"ellipseAreaMeasurement","rectangle-area":"rectangularAreaMeasurement","polygon-area":"polygonAreaMeasurement",distance:"distanceMeasurement",perimeter:"perimeterMeasurement"};function ek(e){let{annotation:t,annotationType:n,formatMessage:r}=e;switch(n){case"text":case"callout":{const e=t,o=e.text.value||"";let i=(0,R.EJ)("xhtml"===e.text.format?(0,Xt.lb)(o):o);const a=QE[n]||"textAnnotation";return 0===i.length&&(i=r(xe.A[a])),i}case"ink":case"highlighter":{const e=QE[n]||`${n}Annotation`;return`${r(xe.A[e])}, ${r(xe.A.linesCount,{arg0:t.lines.size})}`}case"note":{let e=(0,R.EJ)(t.text.value||"");return 0===e.length&&(e=r(xe.A.noteAnnotation)),e}case"highlight":case"underline":case"strikeOut":case"squiggle":return r(xe.A[`${n}Annotation`]);case"link":return t.action?.uri||r(xe.A.linkAnnotation);case"rectangle":case"cloudy-rectangle":case"dashed-rectangle":case"ellipse":case"cloudy-ellipse":case"dashed-ellipse":case"polygon":case"cloudy-polygon":case"dashed-polygon":case"polyline":case"line":case"arrow":case"perimeter":case"distance":case"ellipse-area":case"rectangle-area":case"polygon-area":{const e=QE[n]||`${n}Annotation`;return r(xe.A[e])}case"image":{const{fileName:e,description:o}=t,i=(0,R.EJ)(o||"");return`${r(xe.A[`${n}Annotation`])} ${e&&!i?e:""} ${i}`}case"stamp":{const e=t,{fileName:o}=e,i=(0,R.EJ)((0,Di.AO)({annotation:e,intl:{formatMessage:r}})||"");return r(xe.A[`${n}Annotation`])+(o&&!i?` ${r(xe.A.stampText)}: ${r(xe.A[e.stampType])}`:"")+(i?` ${i}`:"")}case"form-text":case"form-checkbox":case"form-button":case"form-signature":return t.formFieldName;case"redaction":return r(xe.A.redactionAnnotation);case"media":{const{fileName:e,description:n}=t,o=(0,R.EJ)(n||"");return r(xe.A.mediaAnnotation)+(e&&!o?` ${e}`:"")+(o?` ${o}`:"")}}return n}function tk(e){let{annotation:t,date:n}=e;if(t instanceof P.sb)return;const r=t.creatorName;let o="";return o+=r?`${r}`:"",n&&(o+=r?n?`, ${n}`:"":n),o.length?o:void 0}function nk(e){let{annotation:t,commentThreads:n,comments:r}=e;const o=n.get(t.id),i=o?.first();if(!i)return null;return r.get(i)}function rk(e){let{annotation:t,formatMessage:n}=e;const r=[];return t.readOnly&&r.push({className:"PSPDFKit-Sidebar-Annotations-ReadOnly",label:n(xe.A.readOnlyAnnotationFlag),ariaLabel:n(xe.A.readOnlyAnnotationFlag)}),t.locked&&r.push({className:"PSPDFKit-Sidebar-Annotations-Locked",label:n(xe.A.locked),ariaLabel:n(xe.A.locked)}),t.lockedContents&&r.push({className:"PSPDFKit-Sidebar-Annotations-LockedContents",label:n(xe.A.lockedContents),ariaLabel:n(xe.A.lockedContents)}),r}function ok(e){let{items:t,pages:n,shouldRenderComments:r,commentThreads:o,comments:i,formFields:a,onSelectionChange:l,dateTimeStringCallback:c,selectedKey:d,onRenderAnnotationItem:p,isCommentReadOnly:h,canDeleteCommentCP:f,onAnnotationDelete:m,isAnnotationReadOnly:g,canDeleteAnnotationCP:v,selectedAnnotationIds:y,onMobileModeChange:b}=e;const{formatMessage:w,formatDate:x}=(0,ve.tz)(),S=(0,s.d4)((e=>e.ui[xl.Rq.Annotations])),_=(0,s.d4)((e=>e.instance)),C=u.useMemo((()=>{const e=new Set;return{annotations:t.toArray().map((t=>{const s=t.first().pageIndex,l=n.get(s);(0,ye.V)(l);const u=l.get("pageLabel");return{id:String(s),pageNumber:s+1,pageLabel:u,children:t.toArray().map((t=>{if(t.isCommentThreadRoot&&r){const n=o.get(t.id),r=n?.first(),a=n?.last();if(n&&a&&r){const o=i.get(a);if(o){const a=!(0,Ha.Jm)(o)&&(o?.text.value).length>0?n?.size:n?.size-1,s=i.get(r);!h(s)&&f(s)&&e.add(String(t.id));const l=s.isAnonymous?w(xe.A.anonymous):s.creatorName??w(xe.A.anonymous);let u=null;s.createdAt.getTime()&&(c&&(u=c({dateTime:s.createdAt,element:uE.E.ANNOTATIONS_SIDEBAR,object:s})),null==u&&(u=x(s.createdAt,t.isCommentThreadRoot&&s?{hour12:!0,hour:"numeric",minute:"numeric",month:"numeric",day:"numeric",year:"numeric"}:void 0)));let d=null;return a&&a>1&&(d=w(xe.A.nMoreComments,{arg0:a-1})),{id:String(t.id),label:(0,R.EJ)((0,Xt.lb)(s?.text.value||"")),description:`${l}${u?", ":""}${u}`,icon:xE.Tw,data:{actionText:t.isCommentThreadRoot&&d?d:null,annotationItemClassName:"PSPDFKit-Sidebar-Annotations-Comment",annotationItemSelectedClassName:"PSPDFKit-Sidebar-Annotations-Comment-Selected",extraAttributes:rk({annotation:t,formatMessage:w})}}}}}const n=XE(t,a);if(!n)return null;return!(t instanceof P.sb)&&!(t instanceof P.KR)&&!t.locked&&!g(t)&&v(t)&&e.add(String(t.id)),function(e){let{annotation:t,annotationType:n,dateTimeStringCallback:r,formatDate:o,formatMessage:i}=e;const a=JE[n];let s=null;return t.updatedAt.getTime()&&(r&&(s=r({dateTime:t.updatedAt,element:uE.E.ANNOTATIONS_SIDEBAR,object:t})),null==s&&(s=o(t.updatedAt))),{id:String(t.id),label:ek({annotation:t,annotationType:n,formatMessage:i}),description:tk({annotation:t,date:s}),icon:a,data:{annotationItemClassName:`PSPDFKit-Sidebar-Annotations-Annotation PSPDFKit-Sidebar-Annotations-Annotation-${(0,Xt.OI)(n)}`,annotationItemSelectedClassName:"PSPDFKit-Sidebar-Annotations-Annotation-Selected",extraAttributes:rk({annotation:t,formatMessage:i})}}}({annotation:t,annotationType:n,dateTimeStringCallback:c,formatDate:x,formatMessage:w})})).filter(Boolean)}})),canDeleteKeys:Array.from(e)}}),[t,o,i,a,n,r,w,x,c,h,f,g,v]),E=(0,u.useMemo)((()=>({"aria-label":w(xe.A.annotations),annotationSectionHeaderClassName:"PSPDFKit-Sidebar-Annotations-Page-Number",annotationSectionClassName:"PSPDFKit-Sidebar-Annotations-Container",shouldShowAnnotationsCount:!0,onSelectionChange:l,selectedKey:d,onRenderAnnotationItem:p,onAnnotationDelete:m,selectedAnnotationsIds:y.toArray(),onMobileModeChange:b,...C})),[C,w,l,d,p,m,y,b]);return(0,Sl.Q)(xl.Rq.Annotations,S,E,_)}const ik=u.memo((function(e){let{closeOnPress:t=!1,navigationDisabled:n,annotations:r,comments:o,commentThreads:i,formFields:l,pages:c,isAnnotationReadOnly:d,isCommentReadOnly:h,selectedAnnotationIds:f,canDeleteAnnotationCP:m,canDeleteCommentCP:g,sidebarOptions:v,focusedAnnotationIds:y}=e;const[w,x]=u.useState(null),[S,_]=u.useState(null),[C,E]=u.useState("read"),k=(0,s.wA)(),z=u.useCallback((e=>{k((0,vc.YQ)(e.pageIndex,e.boundingBox));const t=nk({annotation:e,commentThreads:i,comments:o});if(t)return h(t)?setTimeout((()=>{k((0,we.wL)(e.id))}),100):void k((0,we.TT)((0,a.NZ)([e.id]),null))}),[i,o,h,k]),A=u.useCallback((e=>{if(k((0,vc.YQ)(e.pageIndex,e.boundingBox)),d(e)||!(e instanceof P.sb)&&(e.readOnly||e.lockedContents||e.locked))return y&&y.size>0&&k((0,we.xP)(y.first())),setTimeout((()=>{k((0,we.wL)(e.id))}),100);e instanceof P.sb?k((0,we.J9)()):b.LZ&&e instanceof P.s9&&"read"===C?k((0,we._G)(e.id)):k((0,we.TT)((0,a.NZ)([e.id]),null))}),[k,y,d,C]),D=u.useCallback((e=>{const t=nk({annotation:e,commentThreads:i,comments:o});t&&k((0,Er.qu)(t))}),[k,i,o]),T=u.useCallback((e=>{k((0,lt.eS)(e))}),[k]),I=(0,br.Kw)((()=>{n||"edit"===C||t&&k((0,Dt.hP)())})),M=u.useCallback((e=>{if(!n){if(e){const t=r.get(String(e));if(t){_(String(e));t.isCommentThreadRoot?z(t):A(t)}else _(null)}else _(null);I()}}),[r,n,z,I,A]),N=u.useCallback((e=>{const t=r.get(e);if(!t)return;t.isCommentThreadRoot?D(t):T(t)}),[r,D,T]);u.useEffect((()=>{w?.focus()}),[w]);const{includeContent:O}=v,R=(0,s.d4)((e=>e.dateTimeString)),j=O.some((e=>e===P.Mw)),F=p()(yb().container,"PSPDFKit-Sidebar-Annotations"),L=u.useMemo((()=>r.filter((e=>null!==e.pageIndex&&(j&&e.isCommentThreadRoot||!e.isCommentThreadRoot&&null!==XE(e,l)&&O.some((t=>e instanceof t)))))),[r,l,O,j]),V=u.useMemo((()=>c.reduce(((e,t)=>{const n=function(e){let t=e.filter((e=>e.isCommentThreadRoot)).sortBy((e=>e.boundingBox.top));return e.map((e=>{if(!e.isCommentThreadRoot)return e;const n=t.first();return t=t.shift(),n}))}((0,B.T1)(L,t));return 0===n.size?e:e.push(n)}),(0,a.B8)())),[c,L]),K=(0,br.d3)(w,V),H=(0,br.jU)(K,(e=>e.id),(e=>L.get(e))),$=u.useMemo((()=>H?(e,t)=>{if(e){const n=L.get(t.id);n&&H(e,n)}}:void 0),[H,L]);return(0,oe.jsx)("div",{className:F,ref:x,children:(0,oe.jsx)(ok,{items:V,pages:c,shouldRenderComments:j,commentThreads:i,comments:o,formFields:l,onSelectionChange:M,dateTimeStringCallback:R,selectedKey:S,onRenderAnnotationItem:$,canDeleteCommentCP:g,isCommentReadOnly:h,onAnnotationDelete:N,isAnnotationReadOnly:d,canDeleteAnnotationCP:m,selectedAnnotationIds:f,onMobileModeChange:E})})}));var ak=n(62116);function sk(e){let{navigationDisabled:t,closeOnPress:n}=e;const[r,o]=u.useState(null),i=(0,s.wA)(),a=(0,s.d4)((e=>e.ui[xl.Rq.Outline])),c=(0,s.d4)((e=>e.instance)),d=(0,s.d4)((e=>e.documentOutlineState.elements)),p=(0,s.d4)((e=>e.documentOutlineState.expanded)),h=(0,s.d4)((e=>e.backend)),f=(0,s.d4)((e=>e.documentHandle)),m=(0,u.useMemo)((()=>d?function(e){const t=new Map,n=[];for(e.forEach(((e,t)=>{n.push({element:e,level:`${t+1}`})}));n.length;){const{element:e,level:r}=n.pop();t.set(r,e),e.children.forEach(((e,t)=>{n.push({element:e,level:`${r}-${t+1}`})}))}return t}(d):new Map),[d]),g=(0,br.Kw)((e=>{if(t)return;const r=m.get(e)?.action;setTimeout((()=>{r&&i((0,or.DX)(r))})),n&&i((0,Dt.hP)())})),v=(0,br.Kw)((e=>{i((0,ak.m)(e))}));(0,u.useEffect)((()=>{r?.focus()}),[r]),(0,u.useEffect)((()=>{d||((0,l.V1)(h),h.getDocumentOutline().then((e=>{i((0,ak.K)(e))})))}),[h,i,d]);const y=(0,br.ZC)(f);(0,u.useEffect)((()=>{f===y||d||((0,l.V1)(h),h.getDocumentOutline().then((e=>{i((0,ak.K)(e))})))}));const b=(0,br.d3)(r,d),w=(0,br.jU)(b,(e=>e.title),(e=>d?.find((t=>t.title===e)))),x=(0,u.useCallback)((e=>{const t=m.get(e.index);(0,l.V1)(t);const{isBold:n,isItalic:r,color:o}=t;return(0,oe.jsx)("span",{ref:w?e=>{w&&e&&w(e,t)}:void 0,style:{fontWeight:n?"bold":void 0,fontStyle:r?"italic":void 0,...o?{color:o.toCSSValue()}:null},children:e.data.label})}),[m,w]),S=(0,u.useMemo)((()=>({className:"PSPDFKit-Sidebar-Document-Outline",style:{padding:1},ref:o,outline:d?{id:"root",label:"root",children:ea(d,"")}:null,onPress:g,defaultExpandedItems:p,onExpandedChange:v,onRenderItem:x})),[g,p,v,d,x]);return(0,Sl.Q)(xl.Rq.Outline,a,S,c)}const lk=()=>{const e=(0,s.d4)((e=>e.ui?.[xl.Rq.Search])),t=(0,s.d4)((e=>e.instance)),n=(0,s.d4)((e=>e.searchState)),r=(0,s.d4)((e=>e.searchProvider)),o=(0,s.wA)(),i=(0,s.d4)((e=>e.eventEmitter)),a=(0,s.d4)((e=>e.toolbarPlacement===xc.h.TOP)),{formatMessage:l}=(0,v.useI18n)(),c=(0,s.d4)((e=>e.showToolbar)),d=(0,u.useCallback)((e=>{const t=""===e?"clearSearch":"searchTerm";let n=!1;i.emit("search.termChange",{term:e,preventDefault:()=>{n=!0}}),n||(o((0,Ns.ow)(e)),r?.[t](e))}),[o,i,r]),p=(0,u.useMemo)((()=>({resultsSize:n.results.size,focusedResultIndex:n.focusedResultIndex,onFocusNext:()=>{o((0,Ns._H)())},onFocusPrevious:()=>{o((0,Ns.md)())},onCloseRequest:()=>{r?.cancelSearch()},onSearchClear:()=>{r?.clearSearch()},onSearchChange:d,value:n.term||"",style:{position:"absolute",zIndex:3,insetInlineEnd:2,insetBlockStart:c&&a?50:2},"aria-label":l(xe.A.searchDocument)})),[o,l,d,a,c,r,n.focusedResultIndex,n.results.size,n.term]);return(0,Sl.Q)(xl.Rq.Search,e,p,t)};var ck,uk,dk,pk=n(5496),hk=n(16315),fk=n(44047),mk=n.n(fk),gk=n(26846),vk=n.n(gk);const yk=(e,t,n)=>{let{textValue:r,value:o}=e,{rowProps:i,gridCellProps:a}=t;const s=(0,u.useCallback)((e=>{"Enter"===e.key&&o.onPress()}),[o]);return(0,oe.jsx)("li",{...i,ref:n,onKeyDown:s,className:p()(vk().item,"PSPDFKit-Sidebar-Attachment-Item"),children:(0,oe.jsxs)(v.Box,{...a,display:"flex",gap:"sm",alignItems:"center",paddingTop:"sm",paddingBottom:"sm",paddingInlineStart:"md",paddingInlineEnd:"lg",children:[ck||(ck=(0,oe.jsx)(Al.PtA,{size:24,opacity:.5})),(0,oe.jsx)(v.Text,{size:"md",type:"label",color:"text.primary",className:p()(vk().label,"PSPDFKit-Sidebar-Attachment-Label"),children:r}),(0,oe.jsx)(v.ActionIconButton,{"aria-label":o.buttonLabel,icon:o.icon,onPress:o.onPress,size:"sm"})]})})},bk=(0,u.memo)((function(e){let{closeOnPress:t=!1,embeddedFiles:n,embeddedFileFetcher:r,navigationDisabled:o,frameWindow:i}=e;const{formatMessage:a}=(0,ve.tz)(),c=(0,s.wA)(),d=(0,s.d4)((e=>e.backend)),[h,f]=(0,u.useState)();n=n.filter((e=>!!e.fileName));const m=["pdf","jpg","jpeg","png","tiff","webp","tiff","tif"],g=e=>{if("STANDALONE"!==d?.type)return!1;const t=e.split(".").pop()?.toLowerCase();return!!t&&m.includes(t)},y=(0,br.Kw)((e=>{if(o)return;f(null);const s=n.find((t=>t.id===e));(0,l.V1)(s);const u=s.fileName;(0,l.V1)(u),g(u)?c((0,Dt.t5)({attachmentId:s.attachmentId,filename:u})):r(s.attachmentId).then((e=>{e?(0,Yn.PE)(e,i,"application/octet-stream",u):f(a(wk.attachmentDownloadError,{arg0:u}))})).catch((()=>{f(a(wk.attachmentDownloadError,{arg0:u}))})),t&&c((0,Dt.hP)())})),b=n.map((e=>((0,l.V1)(e.fileName),{id:e.id,label:e.fileName,description:e.fileName,data:e,icon:g(e.fileName)?xE.gb:xE.s3,buttonLabel:g(e.fileName)?"Open":"Download",onPress:()=>y(e.id)}))).toArray();return(0,oe.jsxs)(v.Box,{display:"flex",flexDirection:"column",height:"full",className:p()(vk().sidebar),children:[(0,oe.jsx)(v.Box,{paddingX:"lg",paddingY:"md",className:p()(vk().header,"PSPDFKit-Sidebar-Header"),children:(0,oe.jsx)(v.Text,{type:"title",size:"sm",children:a(xe.A.attachments)})}),uk||(uk=(0,oe.jsx)(v.Separator,{})),(0,oe.jsx)(v.Box,{paddingBlockStart:"md",children:(0,oe.jsx)(v.GridList,{items:b,renderGridItem:yk})}),h&&(0,oe.jsxs)(v.Box,{padding:"lg",children:[dk||(dk=(0,oe.jsx)(v.Separator,{})),(0,oe.jsx)(v.Box,{typography:"label.lg.semibold",color:"support.error.strong",children:h})]})]})})),wk=(0,ve.YK)({attachmentDownloadError:{id:"attachmentDownloadError",defaultMessage:'Failed to download attachment "{arg0}"',description:"Message shown when the attachment couldn't be downloaded or retrieved"}});var xk,Sk,_k,Ck,Ek,kk,zk,Pk,Ak,Dk,Tk,Ik,Mk;function Nk(e){const t=u.useRef(null);return(0,u.useEffect)((()=>{const e=t.current;if(!e?.parentElement)return;const n=function(e){const t=new Map;return e.parentElement?(Array.from(e.parentElement?.children).forEach((n=>{n!==e&&(n.hasAttribute("aria-hidden")?t.set(n,n.getAttribute("aria-hidden")):t.set(n,null),n.setAttribute("aria-hidden","true"))})),t):t}(e);return()=>{n.forEach(((e,t)=>{null===e?t.removeAttribute("aria-hidden"):t.setAttribute("aria-hidden",e)}))}}),[]),(0,oe.jsx)(v.Dialog,{ref:t,"aria-label":"Attachment Preview",size:"content",className:mk().dialog,children:(0,oe.jsx)(Ok,{attachmentFetcher:e.attachmentFetcher,standaloneConfiguration:e.standaloneConfiguration})})}function Ok(e){let{attachmentFetcher:t,standaloneConfiguration:n}=e;const[r,o]=(0,u.useState)({width:0,height:0}),[i,a]=(0,u.useState)(null),c=(0,s.d4)((e=>e.shadowRoot)),d=(0,s.d4)((e=>e.backend));(0,l.V1)("STANDALONE"===d?.type,"Attachment preview is only available in standalone");const p=(0,s.d4)((e=>e.theme)),h=(0,s.wA)(),{formatMessage:f}=(0,ve.tz)(),m=(0,u.useRef)(null),g=(0,u.useMemo)((()=>({get current(){return c?.querySelector(".PSPDFKit-Container")}})),[c]),y=(0,u.useCallback)((()=>{const e=g.current?.getBoundingClientRect();o({width:e?.width||0,height:e?.height||0})}),[g]);(0,v.useResizeObserver)({ref:g,onResize:y});const b=(0,s.d4)((e=>e.attachmentToPreview));(0,l.V1)(!!b,"No attachment to preview");const[w,x]=(0,u.useState)(null);(0,u.useEffect)((()=>{w||t(b.attachmentId).then((e=>{x(e)})).catch((()=>{a(f(wk.attachmentDownloadError,{arg0:b.filename}))}))}),[w,t,b.attachmentId,b.filename,f]);const S=(0,u.useCallback)((()=>{hk.default.unload(m.current),h((0,Dt.Ql)())}),[h]);return(0,u.useEffect)((()=>{(0,l.V1)(c,"ShadowRoot could not be found");const e=e=>{const t=e;"Escape"!==t.key&&"Escape"!==t.code||S(),t.stopPropagation()};return c.addEventListener("keydown",e),()=>{c.removeEventListener("keydown",e)}}),[S,c]),(0,u.useEffect)((()=>{if(!m.current)return;if(!w)return;const e=m.current,t=new hk.default.ViewState({readOnly:!0});return hk.default.load({...n,document:w,container:e,initialViewState:t,baseCoreUrl:void 0,toolbarItems:[...hk.default.defaultToolbarItems],theme:p}).catch((e=>{console.error(e)})),()=>{hk.default.unload(e)}}),[w,n,p]),(0,oe.jsxs)(v.Box,{display:"flex",flexDirection:"column",backgroundColor:"background.primary.subtle",style:{width:r.width?`${r.width}px`:"100%",height:r.height?`${r.height}px`:"100%"},children:[(0,oe.jsxs)(v.Box,{paddingTop:"sm",paddingBottom:"sm",paddingInlineStart:"sm",paddingInlineEnd:"lg",display:"flex",justifyContent:"space-between",alignItems:"center",flexDirection:"row",children:[(0,oe.jsx)(v.ActionButton,{label:f(xe.A.back),iconStart:xE.A6,onPress:S,size:"md"}),(0,oe.jsx)(v.Text,{title:b.filename,type:"helper",size:"md",children:b.filename})]}),xk||(xk=(0,oe.jsx)(v.Separator,{})),i&&(0,oe.jsx)(v.Box,{typography:"label.lg.semibold",color:"support.error.strong",children:i}),!w&&!i&&(0,oe.jsx)(v.Box,{typography:"label.lg.semibold",children:f(xe.A.loading)}),(0,oe.jsx)("div",{ref:m,className:mk().attachmentViewer})]})}function Rk(e){return Xe.JY.DISABLE_KEYBOARD_SHORTCUTS||e.viewportState.scrollMode===ha.V.DISABLED?e.children||null:(0,oe.jsx)(Uf,{...e})}const jk=function(e){switch(e.theme){case Db.S.AUTO:return e.frameWindow?.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";case Db.S.DARK:return"dark";case Db.S.LIGHT:return"light"}};function Fk(e){return e?window.atob(e).split("").map((function(e){return("0"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""):""}class Bk extends u.Component{constructor(){super(...arguments),(0,y.A)(this,"_toolbarRef",u.createRef()),(0,y.A)(this,"_signaturesValidationStatusBarRef",u.createRef()),(0,y.A)(this,"state",{isResizingSidebar:!1,scrollElement:null,silenceOutdatedDocumentPromptForHandle:null,isAnnotationTypeReadOnlyMemoized:(0,Wt.A)(((e,t)=>(0,gn.W3)(e,this.props.state,t))),modalClosurePreventionError:null,noLicenseKeyTimeoutFinished:!1,resizeWatchFrameWindow:null,theme:jk(this.props.state)}),(0,y.A)(this,"_memoizedMapPagesToPageKeys",(0,Wt.A)((e=>e.map((e=>e.pageKey))),((e,t)=>e[0].map((e=>e.pageKey)).join(",")===t[0].map((e=>e.pageKey)).join(",")))),(0,y.A)(this,"_memoizedGetMessages",(0,Wt.A)((e=>({...As.Ay.messages,[e]:{...pk,...As.Ay.messages[e]}})))),(0,y.A)(this,"handleScrollElementChange",(e=>{this.setState({scrollElement:e})})),(0,y.A)(this,"getScrollElement",(()=>{const{scrollElement:e}=this.state;return(0,l.V1)(e),e})),(0,y.A)(this,"setGlobalCursor",(e=>{this.getScrollElement().style.cursor=e})),(0,y.A)(this,"getThumbnailScale",(()=>this.props.state.containerRect.width<=_e.DK?.55:1)),(0,y.A)(this,"isAnnotationReadOnly",(e=>(0,gn.Qe)(e,this.props.state)||!(0,cr.q2)(e,this.props.state))),(0,y.A)(this,"isCommentReadOnly",(e=>(0,gn.kH)(e,this.props.state)||!(0,cr.Kt)(e,this.props.state))),(0,y.A)(this,"reloadDocument",(()=>{const e=this.props.state.documentHandle;this.props.dispatch((0,nc.bb)((()=>this.closeReloadDocumentModal(e)),(e=>{throw e})))})),(0,y.A)(this,"closeReloadDocumentModal",(e=>{this.setState({silenceOutdatedDocumentPromptForHandle:e})})),(0,y.A)(this,"_canDeleteAnnotationCP",(e=>(0,cr.db)(e,this.props.state))),(0,y.A)(this,"_canDeleteCommentCP",(e=>(0,cr.Fz)(e,this.props.state))),(0,y.A)(this,"renderSidebar",((e,t)=>{const n=this.props.state,r=this.props.state.containerRect.width-e<=t,o=n.viewportState.scrollMode===ha.V.DISABLED,i=async e=>{const t=await(n.backend?.getAttachment(e));return t?.arrayBuffer()},a=n.sidebarOptions;if(e<=0)return null;switch(n.sidebarMode){case yc.I.THUMBNAILS:return(0,oe.jsx)(YE,{closeOnPress:r,navigationDisabled:o});case yc.I.DOCUMENT_OUTLINE:return(0,oe.jsx)(sk,{closeOnPress:r,navigationDisabled:o});case yc.I.ANNOTATIONS:return(0,oe.jsx)(ik,{pages:n.pages,annotations:n.annotations,comments:n.comments,commentThreads:n.commentThreads,formFields:n.formFields,isAnnotationReadOnly:this.isAnnotationReadOnly,isCommentReadOnly:this.isCommentReadOnly,selectedAnnotationIds:n.selectedAnnotationIds,sidebarOptions:a[yc.I.ANNOTATIONS],closeOnPress:r,navigationDisabled:o,canDeleteAnnotationCP:this._canDeleteAnnotationCP,canDeleteCommentCP:this._canDeleteCommentCP,focusedAnnotationIds:n.focusedAnnotationIds});case yc.I.BOOKMARKS:return(0,oe.jsx)(kl,{bookmarkManager:n.bookmarkManager,currentPageIndex:n.viewportState.currentPageIndex,pages:n.pages,width:e,closeOnPress:r});case yc.I.SIGNATURES:return(0,oe.jsx)(Jy,{annotations:n.annotations,formFields:n.formFields,signaturesInfo:n.digitalSignatures,closeOnPress:r,navigationDisabled:o});case yc.I.ATTACHMENTS:return(0,oe.jsx)(bk,{closeOnPress:r,navigationDisabled:o,embeddedFiles:n.embeddedFiles,embeddedFileFetcher:i,frameWindow:n.frameWindow});case yc.I.LAYERS:return(0,oe.jsx)(bb,{sidebarOptions:a[yc.I.LAYERS],setSidebarOptions:e=>this.setSidebarOptions(yc.I.LAYERS,e),OCGLayers:n.OCGLayers,visibleLayers:n.visibleOCGLayers});case yc.I.CUSTOM:return Sk||(Sk=(0,oe.jsx)(iv,{}));default:return null}})),(0,y.A)(this,"_viewportEl",null),(0,y.A)(this,"_viewportRef",(e=>{e?(this._viewportEl=e,this._viewportEl.addEventListener("copy",this._copyEventHandler)):this._viewportEl&&(this._viewportEl.removeEventListener("copy",this._copyEventHandler),this._viewportEl=null)})),(0,y.A)(this,"_copyEventHandler",(e=>{if(!this._viewportEl)return;if(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)return;const{shadowRoot:t,frameWindow:n}=this.props.state,r=t?(0,w.lY)(t).selection:n?.getSelection();e.clipboardData?.setData("text/plain",r?.toString()??""),e.preventDefault()})),(0,y.A)(this,"renderViewport",(e=>{const{selectedAnnotation:t,state:n,dispatch:r}=this.props,{viewportState:o}=n,i=t&&null!==t.pageIndex&&"function"==typeof n.annotationTooltipCallback&&!n.interactionsDisabled?n.annotationTooltipCallback(t):[];return(0,oe.jsx)(ag,{dispatch:this.props.dispatch,currentTextSelection:this.props.state.currentTextSelection,selectedAnnotationIds:this.props.state.selectedAnnotationIds,activeAnnotationNote:this.props.state.activeAnnotationNote,rootElement:this.props.state.frameWindow?.document.documentElement,interactionMode:this.props.state.interactionMode,modalClosurePreventionError:this.state.modalClosurePreventionError,shadowRoot:this.props.state.shadowRoot,children:(0,oe.jsx)("div",{style:{position:"relative",height:"100%"},children:(0,oe.jsxs)(Jg,{viewportState:o,scrollbarOffset:n.scrollbarOffset,children:[(0,oe.jsx)(Rk,{dispatch:r,viewportState:o,hasSelectedAnnotations:this.props.state.selectedAnnotationIds.size>0,document:n.frameWindow?.document,shadowRoot:n.shadowRoot,children:(0,oe.jsx)(le.Provider,{children:o.scrollMode===ha.V.PER_SPREAD?(0,oe.jsx)(zm,{dispatch:r,viewportState:o,hasSelection:this.props.state.selectedAnnotationIds.size>0||null!==this.props.state.currentTextSelection,scrollElement:this.state.scrollElement,interactionsDisabled:n.interactionsDisabled,children:this.renderViewportContent(i,e)}):this.renderViewportContent(i,e)})}),this._isFullscreen&&this.renderExpandedNoteAnnotations(i)]})})})})),(0,y.A)(this,"_expandedNoteRefs",(0,a.T5)()),(0,y.A)(this,"_handleDocumentEditorCancel",(()=>{this.props.dispatch((0,Dt.$x)())})),(0,y.A)(this,"_closeSignatureModal",(()=>{const e={annotations:(0,a.B8)(),reason:ee.x.SELECT_END};this.props.state.eventEmitter.emit("annotations.willChange",e),this.props.dispatch((0,Dt._Q)())})),(0,y.A)(this,"_createSignatureFromAnnotation",((e,t,n)=>{e instanceof ce.Eo&&this.props.dispatch((0,lt.M)({strokeColor:e.strokeColor}));const{signatureRect:r,signaturePageIndex:o}=this.props.state.signatureState,{attachments:i}=this.props.state;let a;if("imageAttachmentId"in e&&e.imageAttachmentId&&i.has(e.imageAttachmentId)){const t=i.get(e.imageAttachmentId);(0,l.V1)(t),a={hash:e.imageAttachmentId,attachment:t}}this.props.dispatch((0,cv.Vi)(e,{signatureRect:r,signaturePageIndex:o},a)),t&&this.props.dispatch((0,cv.WY)(e,n)),this.props.dispatch((0,Dt._Q)())})),(0,y.A)(this,"_createSignatureFromFile",(async(e,t,n)=>{const{signatureRect:r,signaturePageIndex:o}=this.props.state.signatureState;this.props.dispatch((0,Dt._Q)());const{hash:i,dimensions:a,attachment:s}=await(0,lt.wA)(e);this.props.dispatch((0,cv.Ux)({hash:i,dimensions:a,attachment:s,file:e},t,n,{signatureRect:r,signaturePageIndex:o}))})),(0,y.A)(this,"_createSignature",((e,t,n)=>{e instanceof ce.YH?this._createSignatureFromAnnotation(e,t,n):this._createSignatureFromFile(e,t,n)})),(0,y.A)(this,"_deleteStoredSignature",((e,t)=>{this.props.dispatch((0,cv.Ro)(e,t))})),(0,y.A)(this,"_closeStampModal",(()=>{const e={annotations:(0,a.B8)(),reason:ee.x.SELECT_END};this.props.state.eventEmitter.emit("annotations.willChange",e),this.props.dispatch((0,Dt.LD)())})),(0,y.A)(this,"_createAnnotationFromTemplate",(e=>{this.props.dispatch((0,Dt.LD)()),this.props.dispatch((0,lt.RE)(e))})),(0,y.A)(this,"_getAttachments",(()=>this.props.state.attachments)),(0,y.A)(this,"_fetchDigitalSignaturesInfo",(()=>{this.props.state.backend?.getSignaturesInfo().then((e=>{this.props.dispatch((0,rv.K)(e))})).catch(l.z3)})),(0,y.A)(this,"_setA11yStatusMessage",(e=>{this.props.dispatch((0,Dt.CM)("")),window.setTimeout((()=>{this.props.dispatch((0,Dt.CM)(e))}),200)})),(0,y.A)(this,"onSelectButtonImportIconImage",(e=>{const{dispatch:t,state:n}=this.props,{backend:r}=n;if((0,l.V1)(r),!e)return void this.props.dispatch((0,kn.ar)(null));const o=new FileReader;o.onload=async()=>{const n=this.props.state.buttonToImportIconFor;await r.updateButtonIcon(n,o.result,e.type),t((0,kn.ar)(null)),r.clearPageAPStreams(n?.pageIndex,(0,a.NZ)([n.id])),t((0,lt.iN)((0,a.B8)([n.set("buttonIconUpdatedAt",Date.now())])))},o.readAsArrayBuffer(e)})),(0,y.A)(this,"getSelectedAnnotations",(0,Wt.A)(((e,t)=>e.map((e=>t.get(e)))))),(0,y.A)(this,"getToolbarComponent",(()=>{const{selectedAnnotation:e,activeAnnotationNote:t,state:n,currentTextSelection:r}=this.props,{selectedAnnotationIds:o}=n,i=n.toolbarPlacement===xc.h.TOP?"top":"bottom",a=n.selectedAnnotationIds.every((e=>{const t=n.annotations.get(e);return!!t&&("isMeasurement"in t&&t.isMeasurement())}));if(n.selectedAnnotationIds.size>1&&!a)return(0,oe.jsx)(Fy,{selectedAnnotationIds:o,nodeRef:this._toolbarRef});if(e&&!(0,Oe.$_)(n.interactionMode)||t){const r=e?n.pages.get(e.pageIndex):null,o=r&&r.pageSize,i=e&&n.annotationPresetIds.get(e.id),a=!(!e||!(0,cr.q2)(e,n)),s=(0,gn.p9)(this.props.state),l=!(!e||!(0,cr.db)(e,n));return(0,oe.jsx)(eh,{dispatch:this.props.dispatch,annotation:e,selectedAnnotationPageSize:o,isAnnotationReadOnly:this.isAnnotationReadOnly,variantAnnotationPresetID:i,selectedAnnotationMode:this.props.state.selectedAnnotationMode,position:n.toolbarPlacement===xc.h.TOP?"top":"bottom",eventEmitter:n.eventEmitter,frameWindow:n.frameWindow,hasDesktopLayout:n.containerRect.width>_e.eV,activeAnnotationNote:t,showAnnotationNotes:this.props.state.showAnnotationNotes,canEditAnnotationCP:a,canDeleteSelectedAnnotationCP:l,areOnlyElectronicSignaturesEnabled:s,lastToolbarActionUsedKeyboard:n.lastToolbarActionUsedKeyboard,interactionMode:n.interactionMode,annotationToolbarColorPresets:n.annotationToolbarColorPresets,annotationToolbarItems:n.annotationToolbarItems,customFontsReadableNames:n.customFontsReadableNames,isCalibratingScale:n.isCalibratingScale,selectedAnnotations:this.getSelectedAnnotations(n.selectedAnnotationIds,n.annotations),nodeRef:this._toolbarRef,isTextComparison:n.isTextComparison})}return n.interactionMode===L.O.INK_ERASER?_k||(_k=(0,oe.jsx)(Jp,{})):n.interactionMode===L.O.DOCUMENT_CROP?Ck||(Ck=(0,oe.jsx)(Jp,{})):(0,Oe.$_)(n.interactionMode)?Ek||(Ek=(0,oe.jsx)(Jp,{})):n.interactionMode===L.O.CONTENT_EDITOR&&n.contentEditorSession.contentEditor?kk||(kk=(0,oe.jsx)(Jp,{})):n.interactionMode===L.O.MEASUREMENT?(0,oe.jsx)(By,{position:i,interactionMode:n.interactionMode,viewportWidth:n.containerRect.width,frameWindow:n.frameWindow,disablePointSnapping:n.viewportState.disablePointSnapping,backend:n.backend,nodeRef:this._toolbarRef}):(0,oe.jsx)(rm,{dispatch:this.props.dispatch,isAnnotationTypeReadOnly:this.state.isAnnotationTypeReadOnlyMemoized,position:n.toolbarPlacement===xc.h.TOP?"top":"bottom",showComments:(0,Ha.mx)(n),showRedactions:this.props.state.features.includes(te.Y.REDACTIONS),showAIAssistant:!!this.props.state.aiAssistant.configuration,inlineTextSelectionToolbarItems:n.inlineTextSelectionToolbarItems,currentTextSelection:r,nodeRef:this._toolbarRef})})),(0,y.A)(this,"setModalClosurePreventionError",(e=>{this.setState({modalClosurePreventionError:e})})),(0,y.A)(this,"handleSidebarResize",(e=>{let{sidebarRect:t,isDragging:n,size:r}=e;const o=(0,Pv.v)(this.props.state,t,r);this.props.dispatch((0,vc.tV)(o,!1)),this.setState({isResizingSidebar:n})})),(0,y.A)(this,"handleResizeHelperResize",((e,t)=>{const n=this.props.state,r=e.width,o=n.shadowRoot?e.left:0,i=n.containerRect.width===n.sidebarWidth,a=!i&&r-n.sidebarWidth<200;let s;n.sidebarMode&&!a?i?(s=e.set("width",r).set("left",o),this.props.dispatch((0,vc.xT)(r))):s=e.set("width",r-n.sidebarWidth).set("left",(n.sidebarPlacement===bc.A.START?n.sidebarWidth:0)+o):(s=e,n.sidebarMode&&a&&this.props.dispatch((0,Dt.hP)())),this.props.dispatch((0,vc.tV)(s,t))})),(0,y.A)(this,"_updateResizeWatchFrameWindow",(e=>{this.setState({resizeWatchFrameWindow:e})}))}setSidebarOptions(e,t){const{state:n}=this.props;this.props.dispatch((0,Dt.lA)({...n.sidebarOptions,[e]:t}))}renderViewportContent(e,t){const{selectedAnnotation:n,selectedFormField:r,state:o,dispatch:i,currentTextSelection:s}=this.props,{viewportState:l,interactionsDisabled:c,interactionMode:u,formFields:d,frameWindow:p,eventEmitter:h,locale:f,scrollElement:m,measurementToolState:g,contentEditorSession:{fontMismatchTooltip:v,textBlockInteractionState:y},selectedAnnotationIds:w,connectionState:x,isTextComparison:S,pages:_}=o;let C=null;if(o.interactionMode!==L.O.TEXT_HIGHLIGHTER&&!o.interactionsDisabled&&s&&!t(ce.tr)&&o.inlineTextMarkupToolbar&&x.name!==$i.D.DOWNLOADING_DOCUMENT){const e=(0,Ha.mx)(this.props.state),n=this.props.state.features.includes(te.Y.REDACTIONS),r=!!this.props.state.aiAssistant.configuration,a=this.props.state.inlineTextSelectionToolbarItems?this.props.state.inlineTextSelectionToolbarItems({defaultItems:$y({showComments:e,showRedactions:n,showAIAssistant:r}),hasDesktopLayout:!1},s):$y({showComments:e,showRedactions:n,showAIAssistant:r}),c=(0,ko.Pm)(o,s.textRange);C=a.length>0&&c&&!S?(0,oe.jsx)(hm.A,{referenceRect:c,viewportState:l,className:"PSPDFKit-Popover-Text-Markup-Toolbar",children:(0,oe.jsx)(nm,{dispatch:i,isAnnotationTypeReadOnly:t,showComments:e,showRedactions:n,showAIAssistant:r,inlineTextSelectionToolbarItems:this.props.state.inlineTextSelectionToolbarItems,currentTextSelection:s})}):null}let E=null;const k=o.annotations.filter((e=>e.readOnly||e.locked||e.lockedContents)),z=o.hoverAnnotationIds.find((e=>k.has(e))),A=o.focusedAnnotationIds.find((e=>k.has(e))),D=z?k.get(z):void 0,T=A?k.get(A):void 0;let I=(0,a.B8)();const M=!!D&&(D instanceof P.s9||(D instanceof ce.dG||D instanceof ce.ax)&&D.isCommentThreadRoot);let N,O;if(D&&!M&&(I=I.push(D)),T&&(I=I.push(T)),I.size>0&&I.map((e=>{const t=(0,B.hI)(e,l.zoomLevel,l.pagesRotation).apply((0,Z.zo)(l,e.pageIndex).translate(l.scrollPosition.scale(l.zoomLevel)));return E=(0,oe.jsx)(Hy,{referenceRect:t,viewportState:l,isReadOnly:e.readOnly,isLocked:e.locked,hasLockedContents:e.lockedContents})})),N=o.viewportState.documentComparisonMode&&o.backend?(0,oe.jsx)(uv.Ay,{renderPageCallback:o.renderPageCallback,backend:o.backend,allowedTileScales:o.allowedTileScales,viewportState:o.viewportState,interactionMode:o.interactionMode,scrollElement:o.scrollElement,dispatch:i,configuration:o.viewportState.documentComparisonMode,viewportWidth:o.containerRect.width,renderPagePreview:o.renderPagePreview}):l.scrollMode===ha.V.PER_SPREAD||l.scrollMode===ha.V.DISABLED?(0,oe.jsx)(xm,{dispatch:i,spreadIndex:(0,ia.NZ)(l,l.currentPageIndex),viewportState:l,interactionMode:o.interactionMode,pageKeys:this._memoizedMapPagesToPageKeys(_),setGlobalCursor:this.setGlobalCursor,connectionState:o.connectionState}):(0,oe.jsx)(If,{dispatch:i,viewportState:l,pageKeys:this._memoizedMapPagesToPageKeys(_),setGlobalCursor:this.setGlobalCursor,connectionState:o.connectionState}),g&&o.backend&&(0,R.Et)(g.drawnAnnotationPageIndex)){const e={inViewport:!0,page:o.pages.get(g.drawnAnnotationPageIndex),backend:o.backend,shouldPrerender:!0,zoomLevel:l.zoomLevel,rotation:l.pagesRotation,renderPageCallback:o.renderPageCallback,allowedTileScales:"all",documentHandle:o.documentHandle,viewportRect:l.viewportRect,forceDetailView:!1,renderPagePreview:o.renderPagePreview,inContentEditorMode:!1};let t=g.magnifierCursorPosition;const n=(0,ia.Ym)(l),r=(0,ia.NZ)(l,g.drawnAnnotationPageIndex),i=(0,ia.Bu)(l,r);let a=(n-i.width)/2*l.zoomLevel;o.sidebarMode&&(a+=o.sidebarWidth);let s=0;if((0,ia.uM)(l)===mu.S.DOUBLE){const e=(0,ia.DF)(l,g.drawnAnnotationPageIndex);if(i.height!==e.height&&(s=(i.height-e.height)/2*l.zoomLevel),g.drawnAnnotationPageIndex%2!=0){a+=(0,ia.DF)(l,g.drawnAnnotationPageIndex-1).width*l.zoomLevel}}t=g.magnifierCursorPosition?.merge({x:g.magnifierCursorPosition.x-a,y:g.magnifierCursorPosition.y-s}),O=(0,oe.jsx)(My.Q,{pageRendererComponentProps:e,viewportState:l,scrollElement:m,className:"PSPDFKit-Measurement-Magnifier",label:g.magnifierLabel,pageIndex:g.drawnAnnotationPageIndex,cursorPosition:t,isMobile:o.containerRect.width<=_e.DK})}const j=n?o.pages.get(n.pageIndex):null,F=j&&j.pageSize;return(0,oe.jsx)(Jm,{dispatch:i,viewportState:l,scrollbarOffset:o.scrollbarOffset,onScrollElementChange:this.handleScrollElementChange,scrollDisabled:o.scrollDisabled,children:(0,oe.jsxs)(wm,{enabled:o.interactionMode===L.O.PAN&&!b.LZ&&!o.interactionsDisabled&&!!o.scrollElement,scrollElement:o.scrollElement,children:[(0,oe.jsxs)("div",{className:Ev().viewportContent,ref:this._viewportRef,"data-testid":"viewport",children:[N,(0,Ha.ai)(o)&&l.commentMode&&(zk||(zk=(0,oe.jsx)(yE,{})))]}),C,E,n&&!(n instanceof P.s9)&&e.length>0&&!this.props.noteAnnotationToModify&&(0,oe.jsx)(hm.A,{referenceRect:(0,oo.m)({annotation:n,zoomScaledBoundingBox:(0,B.O_)(n,l.pagesRotation,l.viewportRect.getSize(),l.zoomLevel).apply((0,Z.zo)(l,n.pageIndex).translate(l.scrollPosition.scale(l.zoomLevel))),viewportSize:l.viewportRect.getSize()}),viewportState:l,className:"PSPDFKit-Popover-Annotation-Tooltip",children:(0,oe.jsx)(Zg,{items:e})}),n&&null!==n.pageIndex&&n instanceof P.pP&&n.isMeasurement()&&o.isCalibratingScale&&(0,oe.jsx)(mc.Ay,{annotation:n,isHidden:c,referenceRect:(0,oo.m)({annotation:n,zoomScaledBoundingBox:(0,B.O_)(n,l.pagesRotation,l.viewportRect.getSize(),l.zoomLevel).apply((0,Z.zo)(l,n.pageIndex).translate(l.scrollPosition.scale(l.zoomLevel))),viewportSize:l.viewportRect.getSize()}),viewportState:l,eventEmitter:h,modalClosurePreventionError:this.state.modalClosurePreventionError,setModalClosurePreventionError:e=>this.setState({modalClosurePreventionError:e}),frameWindow:p,locale:f}),n&&r&&1===w.size&&(0,Oe.$_)(u)&&n instanceof P.sb&&(0,oe.jsx)(fy,{modalClosurePreventionError:this.state.modalClosurePreventionError,setModalClosurePreventionError:e=>this.setState({modalClosurePreventionError:e}),annotation:n,formField:r,getExistingFormFieldByName:e=>d.get(e),isHidden:c,referenceRect:(0,oo.m)({annotation:n,zoomScaledBoundingBox:(0,B.O_)(n,l.pagesRotation,l.viewportRect.getSize(),l.zoomLevel).apply((0,Z.zo)(l,n.pageIndex).translate(l.scrollPosition.scale(l.zoomLevel))),viewportSize:l.viewportRect.getSize()}),viewportState:l,dispatch:i,frameWindow:p,eventEmitter:h,locale:f,isUnsavedAnnotation:n.id===this.props.state.formDesignerUnsavedWidgetAnnotation,pageSize:F,customFontsReadableNames:this.props.state.customFontsReadableNames||(0,a.NZ)()}),this.renderLinkAnnotationPopover(),O,this.renderAnimatedExpandedNoteAnnotations(e),v?.fontFace&&y?.state===Qa.mS.Active&&v?.rect?(0,oe.jsx)(Ry,{referenceRect:v.rect,fontFace:v.fontFace,viewportState:l,activeTextBlock:y}):null]})})}getSnapshotBeforeUpdate(e){const t=e.selectedNoteAnnotations&&this.props.selectedNoteAnnotations&&0!==e.selectedNoteAnnotations.size&&e.selectedNoteAnnotations.size===this.props.selectedNoteAnnotations.size;return this._animateNoteAnnotation=!window["PSPDFKit-disable-animations"]&&!t,null}renderAnimatedExpandedNoteAnnotations(e){const t=this._isFullscreen?null:this.renderExpandedNoteAnnotations(e);return null===t&&(this._expandedNoteRefs=this._expandedNoteRefs.clear()),this._animateNoteAnnotation&&null!==t?(0,oe.jsx)(yl,{children:t.map((e=>(0,oe.jsx)(pl,{timeout:{enter:window["PSPDFKit-disable-animations"]?0:100,exit:window["PSPDFKit-disable-animations"]?0:150},classNames:{enter:zv().fadeEnter,enterActive:zv().fadeEnterActive,exit:zv().fadeExit,exitActive:zv().fadeExitActive},nodeRef:this._expandedNoteRefs.get(e.props.noteAnnotation.id),children:e},`NoteAnnotationPopopver-${e.props.noteAnnotation.id}`)))}):(0,oe.jsx)("div",{children:t})}renderExpandedNoteAnnotations(e){const{state:t,dispatch:n,activeAnnotationNote:r,hoveredNoteAnnotations:o,hoverAnnotationNote:i,selectedNoteAnnotations:s,selectedAnnotation:l,noteAnnotationToModify:c}=this.props;if(!t.showAnnotations||t.interactionsDisabled&&!this._isFullscreen||t.selectedAnnotationIds.size>1)return(0,a.NZ)();const d=[];if(r&&(0,B.Cx)(r.parentAnnotation)){const e=r;this._expandedNoteRefs.has(e.id)||(this._expandedNoteRefs=this._expandedNoteRefs.set(e.id,u.createRef())),d.push((0,oe.jsx)(fm,{noteAnnotation:e,noteAnnotationToModify:e,viewportState:t.viewportState,dispatch:n,isFullscreen:this._isFullscreen,collapseSelectedNoteContent:!1,annotationToolbarHeight:t.annotationToolbarHeight,isAnnotationReadOnly:this.isAnnotationReadOnly,autoSelect:t.selectedTextOnEdit,eventEmitter:t.eventEmitter,keepSelectedTool:t.keepSelectedTool,nodeRef:this._expandedNoteRefs.get(e.id)},`NoteAnnotationPopopver-${e.id}`))}if(i&&(0,B.Cx)(i?.parentAnnotation)&&(!r||i?.parentAnnotation?.id!==r?.parentAnnotation?.id)){const e=i;this._expandedNoteRefs.has(e.id)||(this._expandedNoteRefs=this._expandedNoteRefs.set(e.id,u.createRef())),d.push((0,oe.jsx)(fm,{noteAnnotation:e,noteAnnotationToModify:null,viewportState:this.props.state.viewportState,dispatch:this.props.dispatch,isFullscreen:this._isFullscreen,isHover:!0,collapseSelectedNoteContent:!1,annotationToolbarHeight:this.props.state.annotationToolbarHeight,isAnnotationReadOnly:this.isAnnotationReadOnly,autoSelect:this.props.state.selectedTextOnEdit,eventEmitter:this.props.state.eventEmitter,keepSelectedTool:this.props.state.keepSelectedTool,nodeRef:this._expandedNoteRefs.get(e.id)},`NoteAnnotationPopopver-${e.id}`))}if(o&&o.size>0&&o.forEach((e=>{this._expandedNoteRefs.has(e.id)||(this._expandedNoteRefs=this._expandedNoteRefs.set(e.id,u.createRef())),d.push((0,oe.jsx)(fm,{noteAnnotation:e,noteAnnotationToModify:null,viewportState:t.viewportState,dispatch:n,isFullscreen:this._isFullscreen,isHover:!0,collapseSelectedNoteContent:!1,annotationToolbarHeight:t.annotationToolbarHeight,isAnnotationReadOnly:this.isAnnotationReadOnly,autoSelect:t.selectedTextOnEdit,eventEmitter:t.eventEmitter,keepSelectedTool:t.keepSelectedTool,nodeRef:this._expandedNoteRefs.get(e.id)},`NoteAnnotationPopopver-${e.id}`))})),!s||0===s.size)return(0,a.NZ)(d);const p=s.filter((e=>null!==e.pageIndex)).map((r=>{const o=!!l&&r.id===l.id;return this._expandedNoteRefs.has(r.id)||(this._expandedNoteRefs=this._expandedNoteRefs.set(r.id,u.createRef())),(0,oe.jsx)(fm,{noteAnnotation:r,noteAnnotationToModify:c,viewportState:t.viewportState,dispatch:n,isFullscreen:this._isFullscreen,isHover:!o,annotationToolbarHeight:t.annotationToolbarHeight,isAnnotationReadOnly:this.isAnnotationReadOnly,tools:o?e:[],collapseSelectedNoteContent:t.collapseSelectedNoteContent,autoSelect:t.selectedTextOnEdit,eventEmitter:t.eventEmitter,keepSelectedTool:t.keepSelectedTool,nodeRef:this._expandedNoteRefs.get(r.id)},`NoteAnnotationPopopver-${r.id}`)}));return d.push(...p.toArray()),(0,a.NZ)(d)}renderLinkAnnotationPopover(){const{selectedAnnotation:e,state:t,dispatch:n,hoveredLinkAnnotation:r}=this.props,{viewportState:o,frameWindow:i,locale:a,pages:s,linkAnnotationMode:l}=t,c=e&&e instanceof ce.UL&&!l,u=!!r?.action&&!c;if(!u&&!c)return null;const d=u?r:e;return(0,oe.jsx)(Ty,{annotation:d,viewportState:o,dispatch:n,frameWindow:i,locale:a,pages:s,isHover:u})}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._noLicenseTimeout&&(clearTimeout(this._noLicenseTimeout),this._noLicenseTimeout=null),this._isMounted=!1}componentDidUpdate(e){(0,Oe.$_)(e.state.interactionMode)&&!(0,Oe.$_)(this.props.state.interactionMode)&&this.props.dispatch((0,Dt._e)(!1)),this.props.state.interactionMode!==L.O.INK_SIGNATURE&&this.props.state.interactionMode!==L.O.SIGNATURE||this.props.state.signatureState.storedSignatures||this.props.dispatch((0,cv.XC)());(this.props.state.features.includes(te.Y.DIGITAL_SIGNATURES)&&!this.props.state.digitalSignatures&&this.props.state.connectionState.name===$i.D.CONNECTED||(e.state.documentHandle!==this.props.state.documentHandle||!this.props.state.digitalSignatures)&&this.props.state.connectionState.name===$i.D.CONNECTED&&this.props.state.features.includes(te.Y.DIGITAL_SIGNATURES))&&this._fetchDigitalSignaturesInfo(),e.state.features.equals(this.props.state.features)&&e.state.backend===this.props.state.backend&&e.state.backendPermissions.equals(this.props.state.backendPermissions)&&e.state.documentPermissions.equals(this.props.state.documentPermissions)&&e.state.readOnlyEnabled===this.props.state.readOnlyEnabled&&e.state.editableAnnotationTypes.equals(this.props.state.editableAnnotationTypes)&&e.state.toolbarItems.equals(this.props.state.toolbarItems)&&e.state.showComments===this.props.state.showComments||this.setState({isAnnotationTypeReadOnlyMemoized:(0,Wt.A)((e=>(0,gn.W3)(e,this.props.state)))}),this.props.selectedAnnotation&&this.props.dispatch((0,we.Zz)(this.props.selectedAnnotation.id)),e.state.evaluation!==this.props.state.evaluation&&this.props.state.noLicenseKey&&"STANDALONE"===this.props.state.backend?.type&&this.props.state.evaluation&&(this._noLicenseTimeout=setTimeout((()=>{this._isMounted&&this.setState({noLicenseKeyTimeoutFinished:!0})}),60*this.props.state.evaluation?.timeInMinutes*1e3))}render(){const{selectedAnnotation:e,activeAnnotationNote:t,state:n}=this.props,{viewportState:r,isDocumentHandleOutdated:o}=n;this._isFullscreen=r.viewportRect.width<=_e.BX;const i=n.containerRect.width<=_e.DK?n.containerRect.width:200,a=e instanceof P.s9&&this.isAnnotationReadOnly(e)&&!this._isFullscreen,s=n.currentItemPreset&&n.annotationPresets.get(n.currentItemPreset)||{},{SIGNATURE_SAVE_MODE:c,DISABLE_KEYBOARD_SHORTCUTS:u}=Xe.JY,d=n.sidebarMode&&(0,oe.jsx)(hg,{initialSize:n.sidebarWidth,minWidth:i,maxWidth:n.containerRect.width,draggerSize:n.containerRect.width<=_e.DK?0:6,onResize:this.handleSidebarResize,isRTL:n.sidebarPlacement===bc.A.END,dispatch:this.props.dispatch,shadowRoot:n.shadowRoot,children:this.renderSidebar}),h=(e||t)&&!a||!n.interactionsDisabled&&(n.currentTextSelection||n.interactionMode===L.O.TEXT_HIGHLIGHTER)&&!n.inlineTextMarkupToolbar||n.interactionMode===L.O.INK_ERASER||n.interactionMode===L.O.DOCUMENT_CROP||n.interactionMode===L.O.CONTENT_EDITOR||n.interactionMode===L.O.MEASUREMENT||(0,Oe.$_)(n.interactionMode),f=!(!e||!(0,cr.db)(e,n)),m=r.documentComparisonMode&&(0,oe.jsx)(bv,{position:n.toolbarPlacement===xc.h.TOP?"top":"bottom"}),g=!m&&n.enableAnnotationToolbar&&!(e&&this.props.state.commentThreads.has(e.id))&&!n.isTextComparison&&(0,oe.jsx)(yl,{children:h?(0,oe.jsx)(pl,{timeout:{exit:window["PSPDFKit-disable-animations"]?0:120,enter:window["PSPDFKit-disable-animations"]?0:100},classNames:n.toolbarPlacement===xc.h.TOP?{enter:zv().slideDownEnter,enterActive:zv().slideDownEnterActive,exit:zv().slideDownExit,exitActive:zv().slideDownExitActive}:{enter:zv().slideUpEnter,enterActive:zv().slideUpEnterActive,exit:zv().slideUpExit,exitActive:zv().slideUpExitActive},nodeRef:this._toolbarRef,children:this.getToolbarComponent()}):null}),y=n.digitalSignatures&&n.showSignatureValidationStatus!==ov.y.NEVER?(0,oe.jsx)(pl,{in:!!h,timeout:{exit:window["PSPDFKit-disable-animations"]?0:120,enter:window["PSPDFKit-disable-animations"]?0:100},classNames:n.toolbarPlacement===xc.h.TOP?{enter:zv().moveDownSignatureBarEnter,enterActive:zv().moveDownSignatureBarEnterActive,exit:zv().moveDownExit,exitActive:zv().moveDownSignatureBarExitActive}:{enter:zv().moveUpSignatureBarEnter,enterActive:zv().moveUpSignatureBarEnterActive,exit:zv().moveUpSignatureBarExit,exitActive:zv().moveUpSignatureBarExitActive},nodeRef:this._signaturesValidationStatusBarRef,children:(0,oe.jsx)(Ug,{digitalSignatures:n.digitalSignatures,showSignatureValidationStatus:n.showSignatureValidationStatus,nodeRef:this._signaturesValidationStatusBarRef})}):null,w=n.signatureFeatureAvailability,x=(0,oe.jsxs)(oe.Fragment,{children:[n.showToolbar&&(0,oe.jsx)(WE,{resizeWatchFrameWindow:this.state.resizeWatchFrameWindow}),(0,oe.jsx)(Vg,{position:n.toolbarPlacement===xc.h.TOP?"top":"bottom",children:n.toolbarPlacement===xc.h.TOP?(0,oe.jsxs)(oe.Fragment,{children:[m||g,y]}):(0,oe.jsxs)(oe.Fragment,{children:[y,m||g]})})]});let S;return(0,_E.Sb)(n.backend)&&(n.promptContentEditorDocumentDownload||!n.isServerModeDownloadingDocument&&!n.isServerModeDownloadingWASM?n.contentEditorSession.saving&&(S=cf.ceSaving):S=cf.ceDownloadingDocument),(0,oe.jsx)(gc.Provider,{value:this.getScrollElement,children:(0,oe.jsx)(Vk,{children:(0,oe.jsx)(v.ThemeProvider,{theme:this.state.theme,shouldHandleVirtualKeyboard:!1,children:(0,oe.jsx)(v.I18nProvider,{locale:n.locale,messages:this._memoizedGetMessages(n.locale),children:(0,oe.jsx)(v.PortalContainerProvider,{portalContainer:n.shadowRoot?.querySelector(`.${_e.Jf}`)||n.frameWindow?.document.body||void 0,children:(0,oe.jsxs)("div",{className:`PSPDFKit-Container PSPDFKit-browser-engine-${b.Hi} PSPDFKit-browser-system-${b.qU} ${b.LZ?"PSPDFKit-mobile-os":""} PSPDFKit-${(0,ia.RQ)(n.containerRect)} ${Ev().root} ${n.interactionsDisabled?"interactions-disabled":""} ${null!=n.backend?"PSPDFKit-backend-"+("STANDALONE"===n.backend.type?"standalone":"server"):""} ${n.disablePullToRefresh?"overscrollDisabled":""}`,children:[n.isDebugConsoleVisible&&(0,oe.jsx)(Lf,{dispatch:this.props.dispatch}),(n.interactionMode===L.O.STAMP_PICKER||n.interactionMode===L.O.STAMP_CUSTOM)&&(0,oe.jsx)(Fb,{onCreate:this._createAnnotationFromTemplate,backend:n.backend,onCancel:this._closeStampModal,stampAnnotationTemplates:n.stampAnnotationTemplates,dispatch:this.props.dispatch,mode:n.interactionMode,attachments:n.attachments,viewportWidth:n.containerRect.width}),(n.interactionMode===L.O.INK_SIGNATURE||n.interactionMode===L.O.SIGNATURE)&&n.signatureState.storedSignatures&&w===Hn.g.LEGACY_SIGNATURES&&(0,oe.jsx)(vg,{onEscape:this._closeSignatureModal,children:(0,oe.jsx)(Fg,{onCancel:this._closeSignatureModal,onCreate:this._createSignatureFromAnnotation,onDelete:this._deleteStoredSignature,storedSignatures:n.signatureState.storedSignatures,preset:s,canStoreSignature:(null==n.signatureState.formFieldName||!n.signatureState.formFieldsNotSavingSignatures.includes(n.signatureState.formFieldName))&&c!==wc.v.NEVER,backend:n.backend,attachments:n.attachments,viewportWidth:n.containerRect.width})}),n.interactionMode===L.O.SEARCH&&(Pk||(Pk=(0,oe.jsx)(lk,{}))),!(n.interactionMode!==L.O.INK_SIGNATURE&&n.interactionMode!==L.O.SIGNATURE||!n.signatureState.storedSignatures||w!==Hn.g.ELECTRONIC_SIGNATURES)&&(0,oe.jsx)(Mb,{preset:s,colorPresets:this.props.state.electronicSignatureColorPresets,frameWindow:n.frameWindow,onCreate:this._createSignature,onDelete:this._deleteStoredSignature,onCancel:this._closeSignatureModal,storedSignatures:n.signatureState.storedSignatures,hasSignaturesCreationListener:Object.keys(n.eventEmitter.listeners).includes("storedSignatures.create")||Object.keys(n.eventEmitter.listeners).includes("inkSignatures.create"),hasSignaturesDeletionListener:Object.keys(n.eventEmitter.listeners).includes("storedSignatures.delete")||Object.keys(n.eventEmitter.listeners).includes("inkSignatures.delete"),viewportWidth:n.containerRect.width,creationModes:n.electronicSignatureCreationModes,signingFonts:n.signingFonts}),n.interactionMode===L.O.MEASUREMENT_SETTINGS&&(0,oe.jsx)(Ly.A,{frameWindow:n.frameWindow}),n.interactionMode===L.O.ATTACHMENT_PREVIEW&&"STANDALONE"===n.backend?.type&&(0,oe.jsx)(Nk,{attachmentFetcher:async e=>{(0,l.V1)(n.backend);return(await n.backend.getAttachment(e)).arrayBuffer()},standaloneConfiguration:n.backend.activeConfiguration}),n.interactionMode===L.O.DOCUMENT_EDITOR&&(0,oe.jsx)(fc,{onCancel:this._handleDocumentEditorCancel}),n.isPrinting&&(0,oe.jsx)(Rm,{progress:n.printLoadingIndicatorProgress,totalPages:n.totalPages}),!!n.aiAssistant.configuration&&((0,_E.Sb)(n.backend)?(0,oe.jsx)(kx,{mode:"server",isOpen:n.aiAssistant.show,configuration:n.aiAssistant.configuration,toolbarsHeight:n.annotationToolbarHeight+xa.e4,documentId:n.documentId,layerName:n.backend?._state.layerName,sourcePdfSha256:n.backend?._state.sourcePdfSha256}):(0,oe.jsx)(kx,{mode:"standalone",isOpen:n.aiAssistant.show,configuration:n.aiAssistant.configuration,toolbarsHeight:n.annotationToolbarHeight+xa.e4,permanentId:Fk(n.backend?._state.documentResponse?.ID.permanent),changingId:Fk(n.backend?._state.documentResponse?.ID.changing),instance:n.instance})),n.isSigning&&(Ak||(Ak=(0,oe.jsx)(Vm,{}))),n.isApplyingRedactions&&(Dk||(Dk=(0,oe.jsx)(Wm,{}))),(0,oe.jsxs)(hh,{connectionState:n.connectionState,children:[n.toolbarPlacement===xc.h.TOP&&x,(0,oe.jsxs)("div",{className:Ev().main,children:[n.sidebarPlacement===bc.A.START&&d,(0,oe.jsx)("div",{className:p()(Ev().mainContent,this.state.isResizingSidebar&&Ev().mainContentResizing),children:this.renderViewport(this.state.isAnnotationTypeReadOnlyMemoized)}),n.sidebarPlacement===bc.A.END&&d,(0,oe.jsx)(_c.A,{onResize:this.handleResizeHelperResize,onRefUpdate:this._updateResizeWatchFrameWindow})]}),n.toolbarPlacement===xc.h.BOTTOM&&x,n.annotationsIdsToDelete&&(0,oe.jsx)(Kf,{dispatch:this.props.dispatch,annotations:n.annotationsIdsToDelete.map((e=>n.annotations.get(e))).filter(Boolean),eventEmitter:n.eventEmitter,setA11yStatusMessage:this._setA11yStatusMessage}),n.showExitContentEditorDialog&&(Tk||(Tk=(0,oe.jsx)(by,{}))),!u&&(0,oe.jsx)(Gf,{dispatch:this.props.dispatch,printingEnabled:(0,gn.$n)(n),isPrinting:n.isPrinting,isTextCopyingAllowed:(0,gn.Xm)(n),selectedAnnotationsIds:this.props.editableSelectedAnnotationIds,commentThreads:this.props.state.commentThreads,getScrollElement:this.getScrollElement,canDeleteSelectedAnnotationCP:f,canUndo:n.isHistoryEnabled&&n.undoActions.size>0,canRedo:n.isHistoryEnabled&&n.redoActions.size>0,selectedAnnotation:this.props.selectedAnnotation,currentPageIndex:r.currentPageIndex,eventEmitter:n.eventEmitter,backend:n.backend,formFields:n.formFields,areClipboardActionsEnabled:n.areClipboardActionsEnabled,modalClosurePreventionError:this.state.modalClosurePreventionError,setModalClosurePreventionError:this.setModalClosurePreventionError,annotations:n.annotations,selectedGroupId:n.selectedGroupId,annotationsGroups:n.annotationsGroups,isMultiSelectionEnabled:n.isMultiSelectionEnabled,contentEditorSession:n.contentEditorSession,interactionMode:n.interactionMode,shadowRoot:n.shadowRoot,isTextComparison:n.isTextComparison,zoomOptions:r.zoomOptions}),o&&this.state.silenceOutdatedDocumentPromptForHandle!==n.documentHandle&&(0,oe.jsx)(tv,{onConfirm:this.reloadDocument,onCancel:()=>this.closeReloadDocumentModal(n.documentHandle)})]}),(0,oe.jsx)($f,{locale:n.locale}),(0,oe.jsx)(Lk,{message:n.a11yStatusMessage}),this.state.noLicenseKeyTimeoutFinished&&this.props.state.noLicenseKey&&(0,oe.jsx)(Gy,{evaluationMessage:this.props.state.evaluation?.message,evaluationUrl:this.props.state.evaluation?.url}),n.buttonToImportIconFor&&(0,oe.jsx)(eb,{onSelectImage:this.onSelectButtonImportIconImage}),(0,_E.Sb)(n.backend)&&n.promptContentEditorDocumentDownload&&(Ik||(Ik=(0,oe.jsx)(SE,{}))),(0,_E.Sb)(n.backend)&&n.promptContentEditorCannotSaveChanges&&(Mk||(Mk=(0,oe.jsx)(CE,{}))),!!S&&(0,oe.jsx)(EE,{intlMessageDescriptor:S})]})})})})})})}}const Lk=u.memo((e=>(0,oe.jsx)(o.s6,{announce:"polite",role:"status",tag:"div",children:(0,oe.jsx)("div",{children:e.message})}))),Vk=u.memo((e=>{let{children:t}=e;const n=(0,v.useDevice)();return u.cloneElement(t,{className:"mobile"!==n?"non-mobile":void 0})})),Kk=(0,s.Ng)((e=>{const{annotations:t,formFields:n,hoverAnnotationIds:r,hoverAnnotationNote:o,activeAnnotationNote:i,selectedAnnotationIds:a}=e,s=r.map((e=>t.get(e))).filter((e=>e&&e instanceof P.s9)),l=a.map((e=>t.get(e))).filter((e=>e&&e instanceof P.s9)),c=r.find((e=>t.get(e)instanceof P.UL)),u=c?t.get(c):null,d=l.first(),p=d&&e.selectedAnnotationMode===V.Q.EDITING?d:null,h=e.selectedAnnotationIds.size>0?e.annotations.get(e.selectedAnnotationIds.first()):null,f=h&&h instanceof P.sb?n.get(h.formFieldName):null;return{state:e,selectedNoteAnnotations:l,hoveredNoteAnnotations:s,noteAnnotationToModify:p,selectedAnnotation:h,selectedFormField:f,activeAnnotationNote:i,hoverAnnotationNote:o,editableSelectedAnnotationIds:a.filter((t=>{const n=e.annotations.get(t);return n&&!(0,gn.Qe)(n,e)})),currentTextSelection:e.currentTextSelection,hoveredLinkAnnotation:u}}))(Bk);var Hk=n(10455),$k=n(88425),Uk=n(81199),Wk=n(29249),qk=n(38119),Gk=n(90741),Zk=n(23440);const Yk=(0,s.Ng)((function(e){return{locale:e.locale,messages:Zk.A[e.locale]}}))(ve.Dk),Xk=["Annotation","CommentAvatar"];var Jk=n(17293),Qk=n(34554),ez=n(21559),tz=n(14511),nz=n(30006),rz=n(4033),oz=n(82747),iz=n(1257),az=n(42361),sz=n(46692),lz=(n(50994),n(36431),n(90310)),cz=n(20546),uz=n(14631);var dz,pz,hz=n(90820),fz=n(72776),mz=n(80757);const gz={current:(0,a.T5)()},vz={current:(0,a.T5)()},yz=new Promise((function(){})),bz="nutrient-viewer-lib/nutrient-viewer-1.1.0.css",wz=`\n<style data-pspdfkit="true">\nbody, html, .${_e.ti} {\n  margin: 0;\n  padding: 0;\n  overflow: hidden;\n  height: 100%;\n  width: 100%;\n  box-sizing: border-box;\n}\n.${_e.ti} {\n  container: pspdfkit / size;\n}\n</style>\n`,xz=["baseUrl","baseCoreUrl","baseProcessorEngineUrl","licenseKey","disableWebAssemblyStreaming","enableAutomaticLinkExtraction","overrideMemoryLimit","customFonts","isSharePoint","isSalesforce","productId","processorEngine"];let Sz,_z=null,Cz=null,Ez=null;function kz(){return Sz}function zz(e){Sz=e}function Pz(e){n.p=e}function Az(e){return e.baseCoreUrl?e.baseCoreUrl.endsWith("/")?e.baseCoreUrl:`${e.baseCoreUrl}/`:(0,uz.Nh)(e)}function Dz(e){return e.baseProcessorEngineUrl?e.baseProcessorEngineUrl.endsWith("/")?e.baseProcessorEngineUrl:`${e.baseProcessorEngineUrl}/`:(0,uz.Nh)(e)}async function Tz(e){if((0,l.V1)((null==e.document||"string"==typeof e.document||e.document instanceof ArrayBuffer)&&null==e.documentId,"Preloading is only supported for Standalone mode using WASM"),_z instanceof Promise)try{return void await _z}catch(t){if(Cz&&0===(0,l.xz)(e,Cz).length)throw t;Cz=null}Cz=e,"string"==typeof e.baseUrl&&(0,tz.f4)(e.baseUrl);Pz((0,uz.Nh)(e));const t=e.appName||e.electronAppName||(0,C.D5)()||window.location.origin,r=Dz(e);e.processorEngine&&(Sz=Vz({baseUrl:r,mainThreadOrigin:t,licenseKey:e.licenseKey,processorEngine:e.processorEngine,customFonts:e.customFonts,dynamicFonts:e.dynamicFonts,fontSubstitutions:e.fontSubstitutions,inlineWorkers:e.inlineWorkers})),_z=async function(e){const t=(0,uz.Nh)(e),r=Az(e),o=Dz(e),i={...e,baseUrl:t,baseCoreUrl:r,baseProcessorEngineUrl:o};Pz(t),Ez||(Ez=await Promise.all([n.e(42),n.e(362)]).then(n.bind(n,63993)));const{corePool:a,validateStandaloneConfiguration:s,normalizeCoreOptions:l,loadModule:c}=Ez;s(i);const u=l(i),{object:d,checkIn:p}=a.checkOut();await c(d,u),p()}(e),await Promise.all([_z,Sz])}async function Iz(e){if(b.lw)throw new l.uE("Starting 2022.5.0, we no longer support Internet Explorer 11.");if("undefined"!=typeof window&&"TEST"===window.ENVIRONMENT&&(v.MotionGlobalConfig.skipAnimations=!0),b.n8)throw new l.uE("Starting 2023.2.0, we no longer support Microsoft Edge 18.");"disableWebAssembly"in e&&e.disableWebAssembly&&(0,l.t6)("The 'disableWebAssembly' option is deprecated. It will be removed in a future release as we are removing support for ASM.js."),"useIframe"in e&&e.useIframe&&(0,l.t6)("The private `useIframe` option is deprecated and will be removed in a future release.");const t={current:!0};let r=null;if(!0!==e.headless){r=(0,uz.p0)(e.container),(0,l.V1)(!gz.current.has(r),"Configuration#container is already used to mount a PSPDFKit for Web instance. \n\nEither use PSPDFKit.unload(container) before loading again or use a different container.");const n=r;gz.current=gz.current.set(r,(function(){t.current=!1,gz.current=gz.current.delete(n)}))}try{if(_z instanceof Promise)try{await _z}catch(t){if(Cz&&0===(0,l.xz)(e,Cz).length)throw t;Cz=null}else _z=Promise.resolve();let r;const u=(0,uz.Nh)(e);if(Pz(u),!t.current)return yz;if("document"in e&&e.document){if(!e.processorEngine&&Cz?.processorEngine&&(e.processorEngine=Ts.j.fasterProcessing),null!=Cz){const t=(0,l.xz)(Cz,e,{keys:xz});(0,l.V1)(0===t.length,"The configuration object passed to PSPDFKit is different from the one given previously\n"+(0,l.PQ)(t))}Cz=e,Ez||(Ez=await Promise.all([n.e(42),n.e(362)]).then(n.bind(n,63993)));const t=Ez?.default;r=new t({...e,baseCoreUrl:Az(e)}),e.autoSaveMode||(e.autoSaveMode=A.O.IMMEDIATE),(e.appName&&(0,C.b8)()||e.electronAppName)&&(e.electronAppName&&((0,l.R8)("The `Configuration.electronAppName` option is deprecated and will be removed in a future version. Please use `appName` instead."),(0,l.V1)((0,C.b8)(),"`electronAppName` should only be set when using Electron.")),(0,uz.Jw)(e.appName||e.electronAppName,e.productId))}if("documentId"in e&&e.documentId||"authPayload"in e&&"object"==typeof e.authPayload&&"string"==typeof e.authPayload?.accessToken){const t=(await Promise.all([n.e(42),n.e(750)]).then(n.bind(n,1033))).default;r=new t(e),e.autoSaveMode||(e.autoSaveMode=e.instant?A.O.IMMEDIATE:A.O.INTELLIGENT)}if(!t.current)return r&&r.destroy(),yz;if(!r)throw new l.uE("Backend could not be inferred. Please add one of the following properties to the configuration:\n  - `document` to load document and render the document client-side.\n  - `documentId` to connect to Nutrient Document Engine and render the document server-side.\n");if(e.autoSaveMode&&e.autoSaveMode!==A.O.INTELLIGENT&&e.autoSaveMode!==A.O.IMMEDIATE&&e.autoSaveMode!==A.O.DISABLED)throw new l.uE("The supplied autoSaveMode is not valid.\nValid `autoSaveMode`s are: PSPDFKit.AutoSaveMode.INTELLIGENT, PSPDFKit.AutoSaveMode.IMMEDIATE or PSPDFKit.AutoSaveMode.DISABLED");if(e.printOptions||(e.printOptions={}),e.printOptions&&e.printOptions.mode&&!Object.prototype.hasOwnProperty.call(Is.l,e.printOptions.mode))throw new l.uE("The supplied mode in printOptions is not valid.\nValid `printMode`s are: PSPDFKit.PrintMode.DOM, PSPDFKit.PrintMode.EXPORT_PDF");if(e.printOptions&&e.printOptions.quality&&!Object.prototype.hasOwnProperty.call(Ms.z,e.printOptions.quality))throw new l.uE("The supplied quality in printOptions is not valid.\nValid `printOptions.quality`s are: PSPDFKit.PrintQuality.LOW, PSPDFKit.PrintQuality.MEDIUM, PSPDFKit.PrintQuality.HIGH");if(e.printMode&&(0,l.R8)("Configuration.printMode has been deprecated and will be removed in the next major version. Please refer to the migration guide in order to keep the desired behavior."),e.printMode&&!e.printOptions.mode){if(!Object.prototype.hasOwnProperty.call(Is.l,e.printMode))throw new l.uE("The supplied printMode is not valid.\nValid `printMode`s are: PSPDFKit.PrintMode.DOM, PSPDFKit.PrintMode.EXPORT_PDF");e.printOptions.mode=e.printMode}"disableHighQualityPrinting"in e&&((0,l.R8)("Configuration.disableHighQualityPrinting has been deprecated and will be removed in the next major version. Please refer to the migration guide in order to keep the desired behavior."),Oz(e,"disableHighQualityPrinting"),e.disableHighQualityPrinting&&"boolean"==typeof e.disableHighQualityPrinting&&!e.printOptions.quality&&("STANDALONE"!==r.type||"ios"!==b.qU&&"android"!==b.qU?e.printOptions.quality=e.disableHighQualityPrinting?Ms.z.MEDIUM:Ms.z.HIGH:e.printOptions.quality=Ms.z.MEDIUM));let d,m=null;if(e.electronicSignatures){if(e.electronicSignatures.creationModes){if(!Array.isArray(e.electronicSignatures.creationModes)||!e.electronicSignatures.creationModes.length)throw new l.uE("PSPDFKit.Configuration.electronicSignatures#creationModes must be a non-empty array if specified.");if(e.electronicSignatures.creationModes.some((e=>!Object.keys(nz.F).includes(e))))throw new l.uE("PSPDFKit.Configuration.electronicSignatures#creationModes only accepts PSPDFKit.ElectronicSignatureCreationMode values.")}if(e.electronicSignatures.fonts){if(!Array.isArray(e.electronicSignatures.fonts)||!e.electronicSignatures.fonts.length)throw new l.uE("PSPDFKit.Configuration.electronicSignatures#fonts must be a non-empty array if specified.");if(e.electronicSignatures.fonts.some((e=>!(e instanceof qs.A))))throw new l.uE("PSPDFKit.Configuration.electronicSignatures#fonts only accepts PSPDFKit.Font values.")}if(e.electronicSignatures.forceLegacySignaturesFeature&&"boolean"!=typeof e.electronicSignatures.forceLegacySignaturesFeature)throw new l.uE("PSPDFKit.Configuration.electronicSignatures#forceLegacySignaturesFeature only accepts boolean values.");if(void 0!==e.electronicSignatures.setDefaultTypeText)if("function"==typeof e.electronicSignatures.setDefaultTypeText)m=e.electronicSignatures.setDefaultTypeText;else{if("string"!=typeof e.electronicSignatures.setDefaultTypeText)throw new l.uE("PSPDFKit.Configuration.electronicSignatures#setDefaultTypeText must be a function or a string if provided.");{const t=e.electronicSignatures.setDefaultTypeText;m=()=>t}}}Oz(e,"disableForms"),Rz(e,"annotationTooltipCallback"),Oz(e,"disableTextSelection"),Oz(e,"preventTextCopy"),Rz(e,"renderPageCallback"),function(e,t){const n=e[t];if(n){if(!Array.isArray(n))throw new l.uE(`${t} must be an array of annotation types.`);if(!n.every((e=>e&&e.prototype&&(e.prototype instanceof Ws.A||e==Ws.A))))throw new l.uE(`${t} must be an array of annotation types.`)}}(e,"editableAnnotationTypes"),Rz(e,"isEditableAnnotation"),Rz(e,"isEditableComment"),Rz(e,"dateTimeString"),Rz(e,"annotationToolbarColorPresets"),Rz(e,"annotationToolbarItems"),Rz(e,"onWidgetAnnotationCreationStart"),Rz(e,"inlineTextSelectionToolbarItems"),Rz(e,"onCommentCreationStart"),Rz(e,"measurementValueConfiguration"),"mentionableUsers"in e&&((0,l.V1)(Array.isArray(e.mentionableUsers),"mentionableUsers must be an array"),e.mentionableUsers.forEach(lz.wj)),(0,l.pq)(`Nutrient ${(0,C.b8)()?"Electron":"Web"} 1.1.0 (https://www.nutrient.io/sdk/web)`);try{d=(0,As.vy)(e.locale||navigator.language)}catch(e){d="en"}if(e.populateInkSignatures&&"function"!=typeof e.populateInkSignatures)throw new l.uE("populateInkSignatures must be a function.");if(e.populateStoredSignatures&&"function"!=typeof e.populateStoredSignatures)throw new l.uE("populateStoredSignatures must be a function.");if(null!=e.maxPasswordRetries&&"number"!=typeof e.maxPasswordRetries)throw new l.uE("maxPasswordRetries must be a number.");if(e.formFieldsNotSavingSignatures&&(!Array.isArray(e.formFieldsNotSavingSignatures)||e.formFieldsNotSavingSignatures.some((e=>"string"!=typeof e))))throw new l.uE("formFieldsNotSavingSignatures must be an array of strings.");let v,y,w,x=new k.A;e.disableOpenParameters||(x=(0,$s.J)(x)),e.initialViewState&&(x=e.initialViewState,x=(0,Hs.hz)(x,null)),e.customRenderers&&(v=function(e){for(const t in e)e.hasOwnProperty(t)&&((0,l.V1)(Xk.includes(t),`'${t}' is not a custom renderable entity. Custom renderable entities are: ${Xk.join(", ")}`),(0,l.V1)("function"==typeof e[t],`'${t}' custom renderer must be a function.`));return e}(e.customRenderers)),e.customUI&&(y=(0,Jk.I)(e.customUI)),(0,l.V1)("number"==typeof Xe.JY.DEFAULT_INK_ERASER_CURSOR_WIDTH&&Xe.JY.DEFAULT_INK_ERASER_CURSOR_WIDTH>=0,"PSPDFKit.Options.DEFAULT_INK_ERASER_CURSOR_WIDTH must be set to a positive number."),(0,l.V1)(!e.isAPStreamRendered||"function"==typeof e.isAPStreamRendered,"When provided, `configuration.isAPStreamRendered` must be a function."),(0,l.V1)(!e.enableRichText||"function"==typeof e.enableRichText,"When provided, `configuration.enableRichText` must be a function."),(0,l.V1)("boolean"==typeof e.enableHistory||void 0===e.enableHistory,"When provided, `configuration.enableHistory` must be a boolean value."),(0,l.V1)("boolean"==typeof e.enableClipboardActions||void 0===e.enableClipboardActions,"When provided, `configuration.enableClipboardOperations` must be a boolean value."),e.unstable_inkEraserMode&&((0,l.V1)(Object.keys($o.y).includes(e.unstable_inkEraserMode),"`unstable_inkEraserMode` must be one of: `PSPDFKit.unstable_InkEraserMode.POINT` or `PSPDFKit.unstable_InkEraserMode.STROKE`"),w=e.unstable_inkEraserMode),(0,l.V1)("boolean"==typeof e.measurementSnapping||void 0===e.measurementSnapping,"When provided, `configuration.measurementSnapping` must be a boolean value."),(0,l.V1)("string"==typeof e.measurementPrecision||void 0===e.measurementPrecision,"When provided, `configuration.measurementPrecision` must be a string."),(0,l.V1)(e.measurementScale instanceof Li.A||void 0===e.measurementScale,"When provided, `configuration.measurementScale` must be an instance of `MeasurementScale`."),(0,l.V1)("boolean"==typeof e.anonymousComments||void 0===e.anonymousComments||!0===e.anonymousComments&&"STANDALONE"!==r.type,"When provided, `configuration.anonymousComments` must be used only with Nutrient Document Engine and be a boolean value."),(0,l.V1)("boolean"==typeof e.disableMultiSelection||void 0===e.disableMultiSelection,"When provided, `configuration.disableMultiSelection` must be a boolean value."),(0,l.V1)("number"==typeof e.autoCloseThreshold||void 0===e.autoCloseThreshold,"When provided, `configuration.autoCloseThreshold` must be a number."),(0,l.V1)("boolean"==typeof e.useIframe||void 0===e.useIframe,"When provided, `configuration.useIframe` must be a boolean value."),e.ui&&function(e){(0,fu.V1)("object"==typeof e,"The provided UI must be an object.");for(const[t,n]of Object.entries(e))(0,fu.V1)(Object.keys(xl.Rq).includes(t),`'${t}' is not a valid UI element. Valid UI elements are: ${Object.keys(xl.Rq).join(", ")}`),(0,fu.V1)("function"==typeof n,`The provided UI for "${t}" must be a function.`)}(e.ui);const S={backend:r,autoSaveMode:e.autoSaveMode,printMode:e.printOptions?.mode,printQuality:e.printOptions?.quality,showComments:!!x.showComments,showAnnotationNotes:!!x.showAnnotationNotes,printingEnabled:x.allowPrinting,exportEnabled:x.allowExport,readOnlyEnabled:x.readOnly?ne.g.VIA_VIEW_STATE:ne.g.NO,formsEnabled:!e.disableForms,formDesignMode:!e.disableForms&&x.formDesignMode,showAnnotations:x.showAnnotations,eventEmitter:new qk.A,locale:d,clientPermissions:new P.sy({extract:!e.disableTextSelection,preventTextCopy:!!e.preventTextCopy,printHighQuality:e.printOptions?.quality===Ms.z.HIGH}),signatureState:new P.J$({populateStoredSignatures:e.populateStoredSignatures||e.populateInkSignatures,formFieldsNotSavingSignatures:(0,a.NZ)(e.formFieldsNotSavingSignatures||[])}),renderPageCallback:e.renderPageCallback,annotationTooltipCallback:e.annotationTooltipCallback?t=>{const n=e.annotationTooltipCallback?.(t);return n?.forEach((e=>{(0,Ls.t)(e)})),n}:null,sidebarMode:x.sidebarMode,sidebarOptions:x.sidebarOptions,sidebarPlacement:x.sidebarPlacement,isEditableAnnotation:e.isEditableAnnotation,isEditableComment:e.isEditableComment,customRenderers:v,...y?{customUIStore:new h.A(y)}:null,toolbarPlacement:e.toolbarPlacement,showSignatureValidationStatus:x.showSignatureValidationStatus||ov.y.NEVER,previewRedactionMode:x.previewRedactionMode,keepSelectedTool:x.keepSelectedTool,isAPStreamRendered:e.isAPStreamRendered,restrictAnnotationToPageBounds:e.restrictAnnotationToPageBounds,electronicSignatureCreationModes:(0,a.CD)(e.electronicSignatures&&e.electronicSignatures.creationModes||rz.A),signingFonts:(0,a.CD)(e.electronicSignatures&&e.electronicSignatures.fonts||$k.A),isHistoryEnabled:!!e.enableHistory,areClipboardActionsEnabled:!!e.enableClipboardActions,onOpenURI:e.onOpenURI,onAnnotationResizeStart:e.onAnnotationResizeStart,canScrollWhileDrawing:x.canScrollWhileDrawing,dateTimeString:e.dateTimeString,annotationToolbarColorPresets:e.annotationToolbarColorPresets,annotationToolbarItems:e.annotationToolbarItems,onWidgetAnnotationCreationStart:e.onWidgetAnnotationCreationStart,inkEraserMode:w,firstCurrentPageIndex:x.currentPageIndex,arePageSizesLoaded:"STANDALONE"!==r.type,inlineTextSelectionToolbarItems:e.inlineTextSelectionToolbarItems,measurementSnapping:e.measurementSnapping,measurementPrecision:e.measurementPrecision,measurementScale:e.measurementScale,measurementValueConfiguration:e.measurementValueConfiguration,anonymousComments:e.anonymousComments,enableRichText:e.enableRichText,maxMentionSuggestions:"maxMentionSuggestions"in e&&e.maxMentionSuggestions||void 0,mentionableUsers:"mentionableUsers"in e&&e.mentionableUsers||[],isMultiSelectionEnabled:!e.disableMultiSelection,defaultAutoCloseThreshold:e.autoCloseThreshold,onCommentCreationStart:e.onCommentCreationStart,electronicSignatureDefaultTextCallback:m,noLicenseKey:!e.licenseKey&&"STANDALONE"===r.type,ui:e.ui?{...fz.M,...e.ui}:void 0,aiAssistant:new mz.A({configuration:e.aiAssistant,show:x.showAIAssistant}),documentId:"STANDALONE"===r.type?null:e.documentId,isTextComparison:"STANDALONE"===r.type&&e.isTextComparison,textComparisonSharedState:"STANDALONE"!==r.type?void 0:e.textComparisonSharedState};let D,T,M=Promise.resolve();if(!0===e.headless)D=_s({...S,frameWindow:window});else if([D,M,T]=await async function(e,t,n,r,u){const d=(0,uz.r$)(r),h=(0,uz.h1)(r,t,g());let m=_e.Wp;null!=r.minDefaultZoomLevel&&((0,l.V1)("number"==typeof r.minDefaultZoomLevel&&r.minDefaultZoomLevel>0,"minDefaultZoomLevel must be a number greater than 0"),m=r.minDefaultZoomLevel);let v=_e.wZ;null!=r.maxDefaultZoomLevel&&((0,l.V1)("number"==typeof r.maxDefaultZoomLevel&&r.maxDefaultZoomLevel>0,"maxDefaultZoomLevel must be a number greater than 0"),v=r.maxDefaultZoomLevel);(0,l.V1)(v>=m,`maxDefaultZoomLevel (${v}) must be greater than or equal to minDefaultZoomLevel (${m}). If you didn't set one of those values, then the default value was used.`);const y=z.rw.fromClientRect(d.getBoundingClientRect()).setLocation(new z.bR),w=new P.W6({currentPageIndex:u.currentPageIndex,disablePointSnapping:u.disablePointSnapping,zoomLevel:(0,Us.kO)(u.zoom),zoomMode:"number"==typeof u.zoom?la.d.CUSTOM:(0,Us.lX)(u.zoom),wheelZoomMode:(0,Us.MG)(u.zoom),isLegacyZoom:(0,Us.PT)(u.zoom),zoomOptions:(0,Us.aZ)(u.zoom),pagesRotation:(0,je.Kr)(u.pagesRotation),layoutMode:u.layoutMode,scrollMode:u.scrollMode,pageSpacing:u.pageSpacing,spreadSpacing:u.spreadSpacing,keepFirstSpreadAsSinglePage:u.keepFirstSpreadAsSinglePage,viewportPadding:new z.bR({x:u.viewportPadding.horizontal,y:u.viewportPadding.vertical}),minDefaultZoomLevel:m,maxDefaultZoomLevel:v,enableAlwaysScrollToZoom:u.enableAlwaysScrollToZoom,forceRenderWidgetsInAnnotationsOrder:u.forceRenderWidgetsInAnnotationsOrder,prerenderedPageSpreads:u.prerenderedPageSpreads});let x=Uk.Ay.toJS();r.toolbarItems&&(x=r.toolbarItems,x=x.map((e=>"ink-signature"===e.type?((0,l.t6)("The 'ink-signature' toolbar item type has been renamed to 'signature'. The 'ink-signature' identifier will be removed on a future release of PSPDFKit for Web."),{...e,type:"signature"}):e)),x.forEach(Bs.t));let S=Wk.A.toJS();r.documentEditorFooterItems&&(S=r.documentEditorFooterItems,S.forEach(Vs.t));let C=oz.A.toJS();r.documentEditorToolbarItems&&(C=r.documentEditorToolbarItems,C.forEach(Ks.t));if(r.aiAssistant){if(!r.aiAssistant.backendUrl||"string"!=typeof r.aiAssistant.backendUrl)throw new l.uE("aiAssistant.backendUrl is required and must be a string");if(!r.aiAssistant.sessionId||"string"!=typeof r.aiAssistant.sessionId)throw new l.uE("aiAssistant.sessionId is required and must be a string");if(!r.aiAssistant.jwt||"string"!=typeof r.aiAssistant.jwt)throw new l.uE("aiAssistant.jwt is required and must be a string");if(r.aiAssistant.onMessageSubmit&&"function"!=typeof r.aiAssistant.onMessageSubmit)throw new l.uE("aiAssistant.onMessageSubmit must be a function")}let E=_e.dO;if(r.documentEditorConfiguration){const{thumbnailMinSize:e,thumbnailMaxSize:t,thumbnailDefaultSize:n}=r.documentEditorConfiguration;null!=n&&(0,l.V1)("number"==typeof n&&n>0,"documentEditor.thumbnailDefaultSize must be a number greater than 0"),null!=t&&((0,l.V1)("number"==typeof t&&t>0,"documentEditor.thumbnailMaxSize must be a number greater than 0"),(0,l.V1)(t>e,"documentEditor.thumbnailMaxSize must be bigger than documentEditor.thumbnailMinSize")),null!=e&&((0,l.V1)("number"==typeof e&&e>0,"documentEditor.thumbnailMinSize must be a number greater than 0"),(0,l.V1)(e<t,"documentEditor.thumbnailMinSize must be smaller than documentEditor.thumbnailMaxSize")),E={...E,...r.documentEditorConfiguration}}let k=X.Ay.toObject();k.ink.inkEraserWidth=Xe.JY.DEFAULT_INK_ERASER_CURSOR_WIDTH,r.annotationPresets&&(k=r.annotationPresets,Object.values(k).forEach(Fs.t));let A=Hk.Ay;r.stampAnnotationTemplates&&Array.isArray(r.stampAnnotationTemplates)&&(A=r.stampAnnotationTemplates,A.forEach(Di.nn));"mentionableUsers"in r&&((0,l.V1)(Array.isArray(r.mentionableUsers),"mentionableUsers must be an array"),r.mentionableUsers.forEach(lz.wj));"maxMentionSuggestions"in r&&(0,l.V1)("number"==typeof r.maxMentionSuggestions&&r.maxMentionSuggestions>0,"maxMentionSuggestions must be a number greater than 0");Object.isFrozen(Xe.JY)||(Xe.pN!==Xe.JY.COLOR_PRESETS&&(0,f.eO)("Options.COLOR_PRESETS","PSPDFKit#Customisation.AnnotationToolbarColorPresets",!0),(0,Xe.Lm)(Xe.JY),Object.freeze(Xe.JY));const D=Mz();d.appendChild(D),jz(d,(function(){const{parentNode:e}=D;e&&e.removeChild(D)}));const T=void 0===r.useIframe||!r.useIframe,[I,M]=await Nz(D,t,h,r.enableServiceWorkerSupport||!1,T);if((0,uz.Of)(I),!e.current)return yz;const N=(0,Ds.LI)(I);"function"==typeof N&&jz(d,(function(){N()}));const O=r.electronicSignatures?.colorPresets||iz.A;if(0===O.length)throw new l.uE("PSPDFKit.Configuration.electronicSignatures#colorPresets should have at least one preset.");let R=null;if("customFonts"in r&&r.customFonts){const e=n.backend.getCustomFontsPromise();e.current||(e.current=(0,wa.eY)(r.customFonts)),R=await e.current}if(b.nr&&T&&I instanceof ShadowRoot){const e=new _(I);jz(d,(function(){e.cleanupEventListeners()}))}const j=_s({...n,rootElement:d,containerRect:y,showToolbar:u.showToolbar,disablePointSnapping:u.disablePointSnapping,enableAnnotationToolbar:u.enableAnnotationToolbar,toolbarItems:(0,a.ss)(x),electronicSignatureColorPresets:O,annotationPresets:(0,a.T5)(k),stampAnnotationTemplates:Object.freeze(A),currentItemPreset:null,viewportState:w,interactionMode:null,documentEditorFooterItems:(0,a.ss)(S),documentEditorToolbarItems:(0,a.ss)(C),frameWindow:T?window:I.defaultView,shadowRoot:T?I:null,sidebarWidth:y.width<=_e.DK?y.width:Xe.JY.INITIAL_DESKTOP_SIDEBAR_WIDTH,renderPagePreview:"boolean"!=typeof r.renderPagePreview||r.renderPagePreview,enableAlwaysScrollToZoom:u.enableAlwaysScrollToZoom,documentEditorConfig:E,theme:r.theme});if(await(0,As.G2)(j.getState().locale),!e.current)return yz;j.dispatch((0,Ns.iP)(new js(j.getState,j.dispatch))),j.dispatch((0,Dt.Gm)((0,Z.g2)(j.getState)));const F=T?I.querySelector(`.${_e.ti}`):I.defaultView?.document.querySelector(`.${_e.ti}`);(0,l.V1)(F,"Internal PSPDFKit Error: Mount Target could not be found in contentDocument. Please contact support@nutrient.io");const B=(0,c.createRoot)(F);return B.render((0,oe.jsxs)(s.Kq,{store:j,children:[T?dz||(dz=(0,oe.jsx)(o.s6,{id:"a11y-status-message",role:"status","aria-live":"polite","aria-relevant":"additions text"})):null,(0,oe.jsx)(Yk,{onError:e=>(e.code,e),children:(0,oe.jsx)("div",{className:p()(bh().withLayers,T&&bh().relativeContainer),children:(0,oe.jsx)(i.S,{children:pz||(pz=(0,oe.jsx)(Kk,{}))})})})]})),jz(d,(function(){B.unmount()})),[j,M,R]}(t,u,S,e,x),!t.current)return yz;const N=D.getState(),{eventEmitter:O,rootElement:R}=N;R&&jz(R,(function(){r&&r.destroy()}));const j=new Gk.A({store:D,backend:r,eventEmitter:O});if(await Ps({dispatch:D.dispatch,backend:r,getState:D.getState,password:e.password,maxPasswordRetries:!0===e.headless?0:"number"==typeof e.maxPasswordRetries?e.maxPasswordRetries:Number.POSITIVE_INFINITY,formFieldValuesJSON:"STANDALONE"===r.type?"instantJSON"in e&&e.instantJSON&&e.instantJSON.formFieldValues:null,customFonts:T,stylesheetPromise:M}),!t.current)return r&&r.destroy(),yz;let F=function(){j._destroy(),!0===e.headless&&r&&r.destroy(),vz.current=vz.current.delete(j)};R&&(F=jz(R,F)),vz.current=vz.current.set(j,F);const{features:B,formDesignMode:V,previewRedactionMode:K,documentPermissions:$,frameWindow:U}=D.getState();if(P.pP.prototype.getMeasurementDetails=function(){if(!B.includes(te.Y.MEASUREMENT_TOOLS))throw new l.uE(sz.Z);return(0,I._7)(this)},e.fontSubstitutions&&((0,l.V1)(E(e.fontSubstitutions),"Invalid fontSubstitutions"),r.setFontSubstitutions(e.fontSubstitutions)),$.fillForms||$.annotationsAndForms||Xe.JY.IGNORE_DOCUMENT_PERMISSIONS?D.dispatch((0,Dt.BJ)(e.editableAnnotationTypes?(0,a.NZ)(e.editableAnnotationTypes):(0,a.NZ)(J.A),e.isEditableAnnotation)):D.dispatch((0,Dt.DU)((0,a.NZ)([]))),B.includes(te.Y.ELECTRONIC_SIGNATURES)&&function(e,t){const n=e.document.createRange(),r=wa.tY.map((e=>`@font-face {\n    font-family: '${e.name}';\n    font-style: normal;\n    font-weight: ${e.weight};\n    font-display: swap;\n    src: url(${t}nutrient-viewer-lib/${e.file}.woff2) format('woff2'),\n         url(${t}nutrient-viewer-lib/${e.file}.woff) format('woff');\n  }`)).join("\n"),o=n.createContextualFragment(`<style data-pspdfkit="true">\n${r}\n  </style>`);e.document.head.appendChild(o)}(U,u),V&&!(0,gn.ru)(D.getState()))throw D.dispatch((0,Dt._e)(!1)),$.annotationsAndForms||$.fillForms?new l.uE("Widget annotation selection (`configuration.viewState.formDesignMode = true`) can only be enabled if the license includes the Form Creator component and on standalone mode or with PSPDFKit Instant."):new l.uE('Widget annotation selection (`configuration.viewState.formDesignMode = true`) can only be enabled if the current document has either the "Editing Annotations and Forms" or the "Filling Forms" permissions granted. you can override this behavior by setting the PSPDFKit.Options.IGNORE_DOCUMENT_PERMISSIONS option before initializing PSPDFKit. Please make also sure the license includes the Form Creator component and a backend that supports it.');if(K&&!B.includes(te.Y.REDACTIONS))throw D.dispatch((0,Dt.LV)(!1)),new l.uE("`configuration.viewState.previewRedactionMode = true` can only be enabled if the license includes the Redactions component.");if(e.initialViewState&&e.initialViewState.interactionMode===L.O.DOCUMENT_EDITOR&&!B.includes(te.Y.DOCUMENT_EDITING))throw D.dispatch((0,Dt.$x)()),new l.uE(Qk.Q);if(e.initialViewState&&e.initialViewState.interactionMode===L.O.CONTENT_EDITOR&&!B.includes(te.Y.CONTENT_EDITING))throw D.dispatch({type:H.$Yt}),new l.uE(ms.Vb);if((0,Oe.$_)(e.initialViewState?.interactionMode)&&!B.includes(te.Y.FORM_DESIGNER))throw D.dispatch((0,Dt.Fl)()),new l.uE(az.Pf);if(e.initialViewState&&e.initialViewState.showSignatureValidationStatus!==ov.y.NEVER&&!B.includes(te.Y.DIGITAL_SIGNATURES))throw new l.uE(ez._);if((e.documentEditorFooterItems||e.documentEditorToolbarItems||e.documentEditorConfiguration)&&!B.includes(te.Y.DOCUMENT_EDITING))throw new l.uE(Qk.Q);if(!0!==e.headless&&!B.includes(te.Y.UI))throw D.dispatch((0,Cs.Up)("Your license does not cover the configured functionality.")),new l.uE("The web UI feature is not enabled for your license key. Please contact support or sales to purchase the UI module for your product.");if(!0!==e.headless&&x.interactionMode){const e=(0,Hs.Lj)(x.interactionMode,N);D.dispatch(e.onEnterAction())}return D.dispatch((0,Dt.WG)(j)),j}catch(e){const{type:t,request:n}=e;throw"error"===t&&n&&/\/nutrient-viewer-lib\//.test(n)&&e("Failed to load nutrient-viewer-lib.\nMake sure you are serving all PSPDFKit library files as described in https://pspdfkit.com/guides/web/current/standalone/adding-to-your-project/#copy-the-pspdfkit-for-web-assets."),e}}function Mz(){const e=document.createElement("div");return e.className="PSPDFKit-Container",e.style.width="100%",e.style.height="100%",e}async function Nz(e,t,n,r,o){let i,a;const s=new Promise((function(e,t){i=e,a=t}));let l;if(r&&!o){let e;try{e=await(0,D.AV)([t+bz].concat(n).map((e=>{const n=n=>{const r=n instanceof Error;return{filename:e,css:r?null:n,isCustom:e!==t+bz}};return fetch(e,{credentials:"same-origin"}).then((e=>{if(200!==e.status)throw Error(`${e.status} ${e.statusText}`);return e.text()})).then(n).catch(n)})))}catch(t){e=t}e=e.filter((e=>null!==e.css)),l=wz+e.map((e=>{let{css:t,isCustom:n,filename:r}=e;return`<style${n?` data-source="${r}"`:""}>${t}</style>`})).join("")}else l=`<link rel="stylesheet" href="${t+bz}" data-pspdfkit="true">\n${n.map((e=>`<link rel="stylesheet" href="${e}">`)).join("\n")}\n${wz}\n`;return new Promise((t=>{if(o){const n=e.attachShadow({mode:"open"}),r=document.createElement("div");r.className=_e.ti,r.style.width="100%",r.style.height="100%",r.style.border="0",r.style.display="block",n.appendChild(r);const o=document.createElement("div");o.className=p()(_e.Jf,`PSPDFKit-Portal-browser-engine-${b.Hi}`,`PSPDFKit-Portal-browser-system-${b.qU}`),n.appendChild(o);const c=document.createRange().createContextualFragment(l);n.prepend(c),Fz(i,a,n),t([n,s])}else{const n=document.createElement("iframe");n.setAttribute("allowfullscreen","true"),n.setAttribute("title","PSPDFKit"),n.style.width="100%",n.style.height="100%",n.style.border="0",n.style.display="block",e.appendChild(n);const r=n.contentDocument;if(r){r.open(),r.write(`<!DOCTYPE html><html><head><meta charset="utf-8"><title>PSPDFKit</title></head><body><div class="${_e.ti}"></div></body></html>`),r.close(),r.addEventListener("touchstart",(()=>{document.body&&(document.body.style.overscrollBehavior="none")})),r.addEventListener("touchcancel",(()=>{document.body&&(document.body.style.overscrollBehavior="inherit")})),r.addEventListener("touchend",(()=>{document.body&&(document.body.style.overscrollBehavior="inherit")}));const e=r.createRange().createContextualFragment(l);r.head.appendChild(e),Fz(i,a,r),t([r,s])}}}))}function Oz(e,t){if(e[t]&&"boolean"!=typeof e[t])throw new l.uE(`The type for ${t} is not valid. Must be \`true\` or \`false\`.`)}function Rz(e,t){if(e[t]&&"function"!=typeof e[t])throw new l.uE(`The type for ${t} is not valid. Must be \`function\`.`)}function jz(e,t){const n=gz.current.get(e);function r(){t(),n?.()}return(0,l.V1)(n),gz.current=gz.current.set(e,r),r}function Fz(e,t,n){const r=Array.prototype.slice.call(n.querySelectorAll('link[rel="stylesheet"]')).filter((e=>!e.dataset.loaded)).map((function(e){let t,n;e.dataset.loaded="true";const r=new Promise((function(e,r){t=e,n=r}));return e.onload=function(){t()},e.onerror=function(){const r=e.href+" could not be loaded. Make sure that the file is accessible from your webserver.";e.dataset.pspdfkit?n(new l.uE(r)):((0,l.z3)(r),t())},r}));Promise.all(r).then(e,t)}async function Bz(e,t){const{licenseKey:n,electronAppName:r,productId:o,appName:i}=e;Hz(e);const a=(0,uz.Nh)(e);t&&(0,l.V1)(t&&Object.values(cz.o).includes(t),"The supplied PDF/A Conformance type is not valid. Valid Conformance should be one of the following options PSPDFKit.Conformance."+Object.keys(cz.o).join(", PSPDFKit.Conformance."));const s=await(0,ks.sl)(a,e.document,o),c=i||r||(0,C.D5)()||window.location.origin,u=Dz(e);Sz||(Sz=Vz({baseUrl:u,mainThreadOrigin:c,customFonts:e.customFonts,dynamicFonts:e.dynamicFonts,fontSubstitutions:e.fontSubstitutions,licenseKey:n,processorEngine:e.processorEngine,inlineWorkers:e.inlineWorkers}));const d=await Sz;return(0,l.V1)(d),await d.toPdf(s,t)}async function Lz(e,t){const{licenseKey:n,electronAppName:r,productId:o,appName:i}=e;Hz(e);const a=(0,uz.Nh)(e);(0,l.V1)(t&&Object.values(hz.z).includes(t),`The provided conversion output format ${t} is not supported. Supported output formats are ${Object.values(hz.z).map((e=>`PSPDFKit.OfficeDocumentFormat.${e}`)).join(", ")}.`);const s=await(0,ks.sl)(a,e.document,o),c=i||r||(0,C.D5)()||window.location.origin,u=Dz(e);Sz||(Sz=Vz({baseUrl:u,mainThreadOrigin:c,customFonts:e.customFonts,dynamicFonts:e.dynamicFonts,fontSubstitutions:e.fontSubstitutions,licenseKey:n,processorEngine:e.processorEngine,inlineWorkers:e.inlineWorkers}));const d=await Sz;return(0,l.V1)(d),await d.toOffice(s,t)}async function Vz(e){let{baseUrl:t,mainThreadOrigin:r,customFonts:o,dynamicFonts:i,fontSubstitutions:a,licenseKey:s,processorEngine:l,inlineWorkers:c}=e;const u=await n.e(860).then(n.bind(n,60919));try{const e=!l||l===Ts.j.fasterProcessing,n=await u.getBrowserSpawner(c);return new u.GdPictureWorker({baseUrl:t,aot:e,mainThreadOrigin:r,licenseKey:s,workerSpawner:n,...o?{customFonts:await(0,wa.eY)(o)}:null,...i?{dynamicFonts:i}:null,...a?{fontSubstitutions:E(a)?a:null}:null})}catch(e){throw e}}async function Kz(e,t){const{licenseKey:n,electronAppName:r,productId:o,appName:i}=e;Hz(e);const a=(0,uz.Nh)(e),s=await(0,ks.sl)(a,e.document,o),c=i||r||(0,C.D5)()||window.location.origin,u=Dz(e);let d;try{return Sz||(Sz=Vz({baseUrl:u,mainThreadOrigin:c,customFonts:e.customFonts,dynamicFonts:e.dynamicFonts,fontSubstitutions:e.fontSubstitutions,licenseKey:n,processorEngine:e.processorEngine,inlineWorkers:e.inlineWorkers})),d=await Sz,(0,l.V1)(d),await d.populateDocumentTemplate(s,t,e.licenseKey)}catch(e){throw e}finally{d?.destroy(),zz(null)}}function Hz(e){const{licenseKey:t,electronAppName:n,productId:r,appName:o}=e;"string"==typeof e.baseUrl&&(0,tz.f4)(e.baseUrl);Pz((0,uz.Nh)(e)),(0,l.V1)(null==t||"string"==typeof t,"licenseKey must be a string value if provided. Please obtain yours from https://customers.pspdfkit.com."),"string"==typeof t&&(0,l.V1)(!t.startsWith("TRIAL-"),"You're using the npm key instead of the license key. This key is used to download the PSPDFKit for Web package via the node package manager.\n\nLeave out the license key to activate as a trial."),(o&&(0,C.b8)()||n)&&((0,l.V1)(n,"The `electronAppName` option is deprecated and will be removed in a future version. Please use `appName` instead."),(0,uz.Jw)(o||n,r))}},80757:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(49568);const o={configuration:null,show:!1,additionalContext:null};class i extends((0,r.mS)(o)){}},72084:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});const r=(0,n(38849).A)("AnnotationPreset"),o=e=>{r("object"==typeof e,"`annotationPreset` is not an `object`")}},30026:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(49568);class o extends((0,r.mS)({readOnly:!1,downloadingAllowed:!0})){}},30962:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,t:()=>d});var r=n(67136),o=n(49568),i=n(38849),a=n(53644),s=n(82987);const l=(0,i.A)("Bookmark"),c={id:null,pdfBookmarkId:null,name:null,sortKey:null,action:null};class u extends(o.mS(c)){}(0,r.A)(u,"toSerializableObject",s.U),(0,r.A)(u,"fromSerializableObject",(e=>(0,s.r)(null,e)));const d=e=>{const{name:t,sortKey:n,action:r}=e;null!=t&&l("string"==typeof t,"`name` must be a string"),null!=n&&l("number"==typeof n,"`sortKey` must be a number"),l(r instanceof a.rc,"`action` must be an instance of PSPDFKit.Actions.Action")}},36661:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(49568);class o extends((0,r.mS)({printHighQuality:!0,extract:!0,preventTextCopy:!1})){}},24159:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r,o=n(67136),i=n(49568),a=n(85409);class s extends((0,i.mS)({r:0,g:0,b:0,transparent:!1})){constructor(e){!0!==e.transparent?super(e):super({transparent:!0})}lighter(e){(0,a.V1)("number"==typeof e&&e>=0&&e<=100,"Invalid `percent` value. Must be 0-100.");const t=255*e/100;let n=parseInt(this.r+t),r=parseInt(this.g+t),o=parseInt(this.b+t);return n=n<255?n:255,r=r<255?r:255,o=o<255?o:255,new s({r:n,g:r,b:o})}darker(e){(0,a.V1)("number"==typeof e&&e>=0&&e<=100,"Invalid `percent` value. Must be 0-100.");const t=255*e/100;let n=parseInt(this.r-t),r=parseInt(this.g-t),o=parseInt(this.b-t);return n=n>0?n:0,r=r>0?r:0,o=o>0?o:0,new s({r:n,g:r,b:o})}equals(e){return(0,a.V1)(e instanceof s||"object"==typeof e,"Invalid `color` provided. It must be an instance of Color or an RGB object."),(0,a.V1)("number"==typeof e.r&&e.r>=0&&e.r<=255,"Invalid `r` value provided. It must be an integer between 0 and 255."),(0,a.V1)("number"==typeof e.g&&e.g>=0&&e.g<=255,"Invalid `g` value provided. It must be an integer between 0 and 255."),(0,a.V1)("number"==typeof e.b&&e.b>=0&&e.b<=255,"Invalid `b` value provided. It must be an integer between 0 and 255."),!this.transparent&&!e.transparent&&this.r===e.r&&this.g===e.g&&this.b===e.b||this.transparent&&e.transparent}saturate(e){(0,a.V1)("number"==typeof e&&e>=0&&e<=100,"Invalid `percent` value. Must be 0-100.");const t=e/100,n=.3086*this.r+.6094*this.g+.082*this.b;return new s({r:Math.round(this.r*t+n*(1-t)),g:Math.round(this.g*t+n*(1-t)),b:Math.round(this.b*t+n*(1-t))})}sRGBToRGBComponent(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}relativeLuminance(){const{r:e,g:t,b:n}={r:this.r/255,g:this.g/255,b:this.b/255},{R:r,G:o,B:i}={R:this.sRGBToRGBComponent(e),G:this.sRGBToRGBComponent(t),B:this.sRGBToRGBComponent(n)};return.2126*r+.7152*o+.0722*i}contrastRatio(e){return(this.relativeLuminance()+.05)/(e.relativeLuminance()+.05)}toCSSValue(){return this.transparent?"transparent":`rgb(${this.r}, ${this.g}, ${this.b})`}toHex(){if(this.transparent)return"#00000000";let e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),"#"+e+t+n}}r=s,(0,o.A)(s,"BLACK",new r({r:0,g:0,b:0})),(0,o.A)(s,"GREY",new r({r:128,g:128,b:128})),(0,o.A)(s,"WHITE",new r({r:255,g:255,b:255})),(0,o.A)(s,"DARK_BLUE",new r({r:36,g:131,b:199})),(0,o.A)(s,"RED",new r({r:248,g:36,b:0})),(0,o.A)(s,"PURPLE",new r({r:255,g:0,b:255})),(0,o.A)(s,"PINK",new r({r:255,g:114,b:147})),(0,o.A)(s,"GREEN",new r({r:110,g:176,b:0})),(0,o.A)(s,"ORANGE",new r({r:243,g:149,b:0})),(0,o.A)(s,"YELLOW",new r({r:255,g:255,b:0})),(0,o.A)(s,"LIGHT_BLUE",new r({r:141,g:184,b:255})),(0,o.A)(s,"LIGHT_RED",new r({r:247,g:141,b:138})),(0,o.A)(s,"LIGHT_GREEN",new r({r:162,g:250,b:123})),(0,o.A)(s,"LIGHT_YELLOW",new r({r:252,g:238,b:124})),(0,o.A)(s,"BLUE",new r({r:34,g:147,b:251})),(0,o.A)(s,"LIGHT_ORANGE",new r({r:255,g:139,b:94})),(0,o.A)(s,"LIGHT_GREY",new r({r:192,g:192,b:192})),(0,o.A)(s,"DARK_GREY",new r({r:64,g:64,b:64})),(0,o.A)(s,"MAUVE",new r({r:245,g:135,b:255})),(0,o.A)(s,"TRANSPARENT",new r({transparent:!0})),(0,o.A)(s,"fromHex",(e=>e.length>=8&&(e.endsWith("00")||e.endsWith("00"))?r.TRANSPARENT:new r({r:parseInt(e.substr(1,2),16),g:parseInt(e.substr(3,2),16),b:parseInt(e.substr(5,2),16)})))},89398:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(24159);const o=[{color:r.A.RED,localization:{id:"red",defaultMessage:"Red",description:"Red color"}},{color:r.A.ORANGE,localization:{id:"orange",defaultMessage:"Orange",description:"Orange color"}},{color:r.A.YELLOW,localization:{id:"yellow",defaultMessage:"Yellow",description:"Yellow color"}},{color:r.A.GREEN,localization:{id:"green",defaultMessage:"Green",description:"Green color"}},{color:r.A.DARK_BLUE,localization:{id:"darkBlue",defaultMessage:"Dark blue",description:"Dark blue color"}},{color:r.A.BLUE,localization:{id:"blue",defaultMessage:"Blue",description:"Blue color"}},{color:r.A.PURPLE,localization:{id:"purple",defaultMessage:"Purple",description:"Purple color"}},{color:r.A.PINK,localization:{id:"pink",defaultMessage:"Pink",description:"Pink color"}},{color:r.A.LIGHT_ORANGE,localization:{id:"lightOrange",defaultMessage:"Light Orange",description:"Light Orange color"}},{color:r.A.LIGHT_YELLOW,localization:{id:"lightYellow",defaultMessage:"Light Yellow",description:"Light Yellow color"}},{color:r.A.LIGHT_GREEN,localization:{id:"lightGreen",defaultMessage:"Light Green",description:"Light Green color"}},{color:r.A.LIGHT_BLUE,localization:{id:"lightBlue",defaultMessage:"Light Blue",description:"Light Blue color"}},{color:r.A.MAUVE,localization:{id:"mauve",defaultMessage:"Mauve",description:"Mauve color"}},{color:r.A.TRANSPARENT,localization:{id:"transparent",defaultMessage:"Transparent",description:"Transparent"}},{color:r.A.WHITE,localization:{id:"white",defaultMessage:"White",description:"White color"}},{color:r.A.LIGHT_GREY,localization:{id:"lightGrey",defaultMessage:"Light Grey",description:"Light Grey color"}},{color:r.A.GREY,localization:{id:"grey",defaultMessage:"Grey",description:"Grey color"}},{color:r.A.DARK_GREY,localization:{id:"darkGrey",defaultMessage:"Dark Grey",description:"Dark Grey color"}},{color:r.A.BLACK,localization:{id:"black",defaultMessage:"Black",description:"Black color"}}]},59553:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});class r{constructor(e){this.name=e.name,this.reason=e.reason,this.progress=e.progress}}},81235:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>m,AU:()=>C,Eu:()=>A,Gg:()=>z,H5:()=>P,Ho:()=>I,Im:()=>d,Iy:()=>E,JW:()=>B,LN:()=>w,PE:()=>v,Sy:()=>y,TD:()=>j,TG:()=>i,VD:()=>N,Wu:()=>_,ZY:()=>l,aF:()=>g,bs:()=>b,di:()=>O,e5:()=>T,el:()=>S,g3:()=>s,h2:()=>D,jL:()=>M,kE:()=>R,mS:()=>a,mo:()=>x,oI:()=>f,oR:()=>u,rw:()=>c,s3:()=>k,yQ:()=>F,z9:()=>p});var r=n(85409),o=n(49568);let i=function(e){return e[e.Uninitialized=0]="Uninitialized",e[e.Loading=1]="Loading",e[e.Loaded=2]="Loaded",e}({}),a=function(e){return e[e.None=0]="None",e[e.Selected=1]="Selected",e[e.Active=2]="Active",e[e.Moving=3]="Moving",e}({}),s=function(e){return e[e.Edit=0]="Edit",e[e.Create=1]="Create",e[e.Delete=2]="Delete",e}({});class l extends((0,o.mS)({x:0,y:0})){}class c extends((0,o.mS)({offset:new l,size:new l})){}class u extends((0,o.mS)({rotation:0,flipY:!1})){}class d extends((0,o.mS)({xScale:1,skew:0})){}class p extends((0,o.mS)({bold:!1,italic:!1})){}const h={regular:new p,bold:new p({bold:!0}),italic:new p({italic:!0}),boldItalic:new p({bold:!0,italic:!0})};class f extends((0,o.mS)({family:"",variant:h.regular})){}class m extends((0,o.mS)({faceRef:new f,size:0})){}class g extends((0,o.mS)({fontRef:new m,color:"#000000",effects:new d})){}class v extends((0,o.mS)({maxWidth:null,alignment:"begin",lineSpacingFactor:1})){}class y extends((0,o.mS)({top:0,bottom:0})){}class b extends((0,o.mS)({offset:new l,lineSpacing:new y})){}class w extends((0,o.mS)({begin:0,end:0,text:""})){}class x extends((0,o.mS)({unavailableFaceName:null})){}class S extends((0,o.mS)({cluster:0,offset:new l,advance:new l,text:"",control:null,lastOfSegment:!1,beginOfWord:!1,endOfWord:!1})){}class _ extends((0,o.mS)({offset:new l,lineSpacing:new y,elements:(0,o.B8)()})){}class C extends((0,o.mS)({lines:(0,o.B8)()})){}class E extends((0,o.mS)({family:null,faceMismatch:null,bold:null,italic:null,size:null,xScale:null,skew:null,color:null})){}class k extends((0,o.mS)({selectionStyleInfo:null,modificationsCharacterStyle:null,modificationsCharacterStyleFaceMismatch:null})){}class z extends((0,o.mS)({id:"",initialAnchor:new l,initialGlobalEffects:new u,initialLayout:new v,anchor:new l,globalEffects:new u,layout:new v,justCreated:!1,modificationsCharacterStyle:new g,version:0,contentRect:new c,cursor:new b,selection:null,detectedStyle:new k,layoutView:new C})){}class P extends((0,o.mS)({initialTextBlocks:(0,o.B8)(),textBlocks:(0,o.B8)(),loading:!0})){}class A extends((0,o.mS)({pageIndex:0,textBlockId:"",state:a.None})){}class D extends((0,o.mS)({family:"",variants:(0,o.NZ)()})){}class T extends((0,o.mS)({faceList:null,loading:!1})){}class I extends((0,o.mS)({fontFace:null,rect:null,dismissAbortController:null})){}class M extends((0,o.mS)({pageStates:(0,o.T5)(),availableFaces:new T,textBlockInteractionState:new A,sessionId:0,active:!1,dirty:!1,saving:!1,mode:s.Edit,fontMismatchTooltip:null,contentEditor:null})){}const N=e=>t=>{const n=t.contentEditorSession.pageStates.get(e);return n?n.loading?i.Loading:i.Loaded:i.Uninitialized},O=e=>t=>{const n=t.contentEditorSession.pageStates.get(e);return n?[...n.textBlocks.map((e=>e.id))]:[]},R=(e,t)=>n=>{const o=n.contentEditorSession.pageStates.get(e);(0,r.V1)(o);for(const e of o.textBlocks)if(e.id==t)return e;return null},j=(e,t)=>n=>{const{textBlockInteractionState:r}=n.contentEditorSession;return r&&r.state===a.Active&&r.pageIndex===e&&r.textBlockId===t},F=(e,t)=>n=>{const{textBlockInteractionState:r}=n.contentEditorSession;return r&&r.state===a.Selected&&r.pageIndex===e&&r.textBlockId===t},B=(e,t)=>n=>{const{textBlockInteractionState:r}=n.contentEditorSession;return r&&r.state===a.Moving&&r.pageIndex===e&&r.textBlockId===t};(0,o.mS)({x:new l,y:new l});class L extends((0,o.mS)({rotation:0,baseSize:new l,skew:0,flip:!1})){}(0,o.mS)({params:new L,uiSize:new l})},32522:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,t:()=>l});var r=n(49568),o=n(50960);const i=(0,n(38849).A)("CustomOverlayItem");class a extends((0,r.mS)({disableAutoZoom:!1,id:null,node:null,noRotate:!1,pageIndex:0,position:new o.bR,onAppear:null,onDisappear:null})){constructor(e){super(e)}}const s=[Node.ELEMENT_NODE,Node.TEXT_NODE,Node.COMMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE],l=e=>{const{disableAutoZoom:t,id:n,node:r,noRotate:a,pageIndex:l,position:c,onAppear:u,onDisappear:d}=e;i("boolean"==typeof t,"`disableAutoZoom` must be a `boolean`"),i("string"==typeof n,"`id` must be a `string`"),i(r instanceof Node,"`node` must be an instance of `Node`"),i(s.includes(r.nodeType),"`node.nodeType` is invalid. Expected one of "+s.join(", ")),i("boolean"==typeof a,"`noRotate` must be a `boolean`"),i("number"==typeof l,"`pageIndex` must be a `number`"),i(c instanceof o.bR,"`position` must be an instance of `PSPDFKit.Geometry.Point`"),u&&i("function"==typeof u,"`onAppear` must be a `function`"),d&&i("function"==typeof d,"`onDisappear` must be a `function`")}},6833:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=Object.freeze([{id:"solid",dashArray:null},{id:"narrowDots",dashArray:[1,1]},{id:"wideDots",dashArray:[1,3]},{id:"narrowDashes",dashArray:[3,3]},{id:"wideDashes",dashArray:[6,6]}])},75838:(e,t,n)=>{"use strict";n.d(t,{t:()=>l});var r=n(88051),o=n(38849),i=n(29249);const a=(0,o.A)("DocumentEditorFooterItem"),s=[...i.L.map((e=>e.type)),"custom"],l=e=>{const{type:t,id:n,className:o,onPress:i,node:l}=e;a("string"==typeof t,"Mandatory `type` is either missing or not a `string`"),a(s.indexOf(t)>=0,`Invalid built-in type \`${t}\`. Choose one from ${s.join(", ")}`),"custom"===t&&(a(l,"`node` is mandatory for `custom` footer items."),a(l&&r.S.includes(l.nodeType),"`node.nodeType` is invalid. Expected one of "+r.S.join(", ")),n&&a("string"==typeof n,"`id` must be a `string`"),o&&a("string"==typeof o,"`className` must be a `string`"),i&&a("function"==typeof i,"`onPress` must be a `function`")),n&&a("string"==typeof n,"`id` must be a `string`")}},72320:(e,t,n)=>{"use strict";n.d(t,{t:()=>l});var r=n(38849),o=n(82747),i=n(88051);const a=(0,r.A)("DocumentEditorToolbarItem"),s=[...o.B.map((e=>e.type)),"custom"],l=e=>{const{type:t}=e;a("string"==typeof t,"Mandatory `type` is either missing or not a `string`"),(0,i.t)({...e,type:"custom"},a),a(s.indexOf(t)>=0,`Invalid built-in type \`${t}\`. Choose one from ${s.join(", ")}`)}},76792:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(49568);const o={elements:null,expanded:new Set};class i extends((0,r.mS)(o)){}},70631:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(49568);(0,n(38849).A)("Font");class o extends((0,r.mS)({name:null,callback:null})){constructor(e){super(e)}}},29226:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(49568);class o extends((0,r.mS)({label:"",value:""})){}},52002:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,L:()=>i});const r={enumerable:!0,configurable:!1,writable:!1};class o{}function i(e){const t=new o;return Object.defineProperty(t,"clientId",{...r,value:e.clientId}),Object.defineProperty(t,"userId",{...r,value:e.userId}),t}},46952:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6163);function o(){return(0,r.Z0)()}},47612:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(49568);class o extends((0,r.mS)({children:(0,r.B8)(),title:"",color:null,isBold:!1,isItalic:!1,isExpanded:!1,action:null})){}},25508:(e,t,n)=>{"use strict";n.d(t,{L:()=>o,O:()=>r});const r={P:"p",TH:"th",TD:"td",Table:"table",TBody:"tbody",THead:"thead",TR:"tr",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",Figure:"figure",Link:"span",Span:"span",L:"ul",LI:"li",Part:"div",Sect:"section",Article:"article",Div:"div"},o={P:"paragraph",TH:"cell",TD:"cell",Table:"table",TBody:"table",THead:"table",TR:"row",H1:"heading",H2:"heading",H3:"heading",H4:"heading",H5:"heading",H6:"heading",Figure:"figure",Link:"link",L:"list",LI:"listitem",Sect:"region",Article:"article",Span:void 0,Div:void 0,Part:void 0}},97837:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(49568),o=n(50960);const i={pageSize:new o.or,isPageSizeReal:!1,pageIndex:0,pageLabel:"",rotation:0,inViewport:!1,contentBlocks:null,textLineScales:null,annotationIds:(0,r.CD)(),customOverlayItemIds:(0,r.NZ)(),pageKey:"",textElementFonts:{},untransformedRect:new o.rw,transformedRect:new o.rw,matrix:o.XF.IDENTITY,reverseMatrix:o.XF.IDENTITY,rawPdfBoxes:{bleedBox:null,cropBox:null,mediaBox:null,trimBox:null},tabOrder:null};class a extends((0,r.mS)(i)){}},1889:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,K:()=>i});const r={enumerable:!0,configurable:!1,writable:!1};class o{}function i(e){const t=new o;return Object.defineProperty(t,"index",{...r,value:e.pageIndex}),Object.defineProperty(t,"rotation",{...r,value:90*e.rotation}),Object.defineProperty(t,"label",{...r,value:e.pageLabel}),Object.defineProperty(t,"width",{...r,value:e.pageSize.width}),Object.defineProperty(t,"height",{...r,value:e.pageSize.height}),Object.defineProperty(t,"rawPdfBoxes",{...r,value:{...e.rawPdfBoxes}}),t}},55240:(e,t,n)=>{"use strict";n.d(t,{M:()=>a});var r=n(79595),o=n(21535),i=n(89009);const a={[o.I.ANNOTATIONS]:{includeContent:[...r.X]},[o.I.LAYERS]:{lockedLayers:[],iconsAlignment:i.C.END}}},69245:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(49568);class o extends((0,r.mS)({storedSignatures:null,signatureRect:null,signaturePageIndex:null,populateStoredSignatures:()=>Promise.resolve((0,r.B8)()),formFieldsNotSavingSignatures:(0,r.NZ)(),formFieldName:null})){}},37513:(e,t,n)=>{"use strict";n.d(t,{A:()=>V,_:()=>L});var r=n(49568),o=n(50960),i=n(59553),a=n(92314),s=n(69245),l=n(45408),c=n(20839),u=n(30026),d=n(36661),p=n(46907),h=n(94045),f=n(39168),m=n(26635),g=n(62362),v=n(4033),y=n(76792),b=n(5511),w=n(7516),x=n(27634),S=n(38119),_=n(88425),C=n(3745),E=n(61371),k=n(30919),z=n(55240),P=n(81235),A=n(54694),D=n(35224),T=n(35014),I=n(27959),M=n(37361),N=n(9945),O=n(72776),R=n(80757),j=n(32574);const F={reuseState:null,backend:null,pages:(0,r.B8)(),totalPages:0,debugMode:!1,isDebugConsoleVisible:!1,rootElement:null,scrollElement:null,frameWindow:null,containerRect:new o.rw,connectionFailureReason:null,connectionState:new i.A({name:a.D.CONNECTING}),scrollbarOffset:0,currentTextSelection:null,inlineTextMarkupToolbar:!0,annotations:(0,r.T5)(),attachments:(0,r.T5)(),formFields:(0,r.T5)(),formattedFormFieldValues:(0,r.T5)(),editingFormFieldValues:(0,r.T5)(),readOnlyEnabled:k.g.NO,formsEnabled:!0,formDesignMode:!1,showAnnotations:!0,showComments:!0,showAnnotationNotes:!0,printingEnabled:!0,exportEnabled:!0,selectedAnnotationIds:(0,r.NZ)(),selectedAnnotationShouldDrag:null,selectedAnnotationMode:null,selectedTextOnEdit:!1,shadowRoot:null,interactionMode:null,interactionsDisabled:!1,showToolbar:!0,enableAnnotationToolbar:!0,disablePointSnapping:!1,sidebarMode:null,sidebarOptions:z.M,sidebarPlacement:h.A.START,showSignatureValidationStatus:m.y.NEVER,hoverAnnotationIds:(0,r.NZ)(),hoverAnnotationNote:null,activeAnnotationNote:null,clientsChangeCallback:()=>{},searchState:new l.A,highlightState:new j.A,clientPermissions:new d.A,backendPermissions:new u.A,documentPermissions:new p.A,isPrinting:!1,printLoadingIndicatorProgress:null,toolbarItems:(0,r.B8)(),electronicSignatureColorPresets:[],electronicSignatureDefaultTextCallback:null,annotationToolbarHeight:0,annotationPresets:(0,r.T5)(),annotationPresetIds:(0,r.T5)(),currentItemPreset:null,stampAnnotationTemplates:[],viewportState:new c.A,annotationManager:null,bookmarkManager:null,formFieldManager:null,formFieldValueManager:null,commentManager:null,changeManager:null,searchProvider:null,autoSaveMode:b.O.IMMEDIATE,eventEmitter:new S.A,printMode:w.l.DOM,printQuality:x.z.LOW,features:(0,r.B8)(),signatureFeatureAvailability:null,customOverlayItems:(0,r.T5)(),locale:"en",annotationCreatorName:null,signatureState:new s.A,annotationCreatorNameReadOnly:!1,hasPassword:!1,resolvePassword:null,isUnlockedViaModal:!1,transformClientToPage:e=>e,documentOutlineState:new y.A,annotationsIdsToDelete:null,renderPageCallback:null,annotationTooltipCallback:null,isEditableAnnotation:null,isEditableComment:null,editableAnnotationTypes:(0,r.NZ)(g.A),customRenderers:null,customUIStore:null,documentHandle:null,documentId:null,allowedTileScales:"all",isDocumentHandleOutdated:!1,toolbarPlacement:f.h.TOP,comments:(0,r.T5)(),commentThreads:(0,r.T5)(),isSigning:!1,isApplyingRedactions:!1,digitalSignatures:null,previewRedactionMode:!1,canScrollWhileDrawing:!1,isAPStreamRendered:()=>!0,invalidAPStreams:(0,r.T5)(),collapseSelectedNoteContent:!1,restrictAnnotationToPageBounds:!0,hasFetchedInitialRecordsFromInstant:!1,group:void 0,documentEditorFooterItems:(0,r.B8)(),electronicSignatureCreationModes:(0,r.CD)(v.A),signingFonts:(0,r.CD)(_.A),documentEditorToolbarItems:(0,r.B8)(),isHistoryEnabled:!1,areClipboardActionsEnabled:!1,historyChangeContext:C.I.DEFAULT,undoActions:(0,r.B8)(),redoActions:(0,r.B8)(),historyIdsMap:(0,r.T5)(),a11yStatusMessage:"",lastToolbarActionUsedKeyboard:!1,onOpenURI:null,onAnnotationResizeStart:void 0,documentComparisonState:null,keepSelectedTool:!1,instance:null,dateTimeString:null,sidebarWidth:0,annotationToolbarItems:null,focusedAnnotationIds:(0,r.NZ)(),annotationToolbarColorPresets:null,renderPagePreview:!0,onWidgetAnnotationCreationStart:null,formDesignerUnsavedWidgetAnnotation:null,inkEraserMode:E.y.POINT,firstCurrentPageIndex:0,arePageSizesLoaded:null,inlineTextSelectionToolbarItems:null,measurementSnapping:!0,measurementPrecision:A.x.TWO,measurementScale:new D.A({unitFrom:T.b.INCHES,unitTo:I._.INCHES,fromValue:1,toValue:1}),measurementToolState:null,measurementValueConfiguration:null,measurementScales:null,APStreamVariantsRollover:(0,r.NZ)(),APStreamVariantsDown:(0,r.NZ)(),contentEditorSession:new P.jL,showExitContentEditorDialog:!1,linkAnnotationMode:!1,anonymousComments:!1,annotationsGroups:(0,r.T5)(),selectedGroupId:null,enableRichText:()=>!1,richTextEditorRef:null,multiAnnotationsUsingShortcut:null,disablePullToRefresh:!1,mentionableUsers:[],maxMentionSuggestions:5,isMultiSelectionEnabled:!0,widgetAnnotationToFocus:null,onCommentCreationStart:null,defaultAutoCloseThreshold:M.Nn,hintLines:null,scrollDisabled:!1,customFontsReadableNames:(0,r.NZ)(),secondaryMeasurementUnit:null,activeMeasurementScale:null,isCalibratingScale:!1,dynamicFonts:null,enableAlwaysScrollToZoom:!1,noLicenseKey:!1,evaluation:void 0,buttonToImportIconFor:null,documentEditorConfig:M.dO,flattenSignedFormFieldOnExport:!1,OCGLayers:null,visibleOCGLayers:[],theme:N.S.LIGHT,ui:O.M,aiAssistant:new R.A,promptContentEditorDocumentDownload:!1,promptContentEditorCannotSaveChanges:!1,isServerModeDownloadingWASM:!1,isServerModeDownloadingDocument:!1,isTextComparison:!1,textComparisonSharedState:void 0,wasLinearized:!1,cropArea:null,cropPageIndex:null,embeddedFiles:(0,r.B8)(),attachmentToPreview:void 0},B={pages:(0,r.B8)(),annotations:(0,r.T5)(),attachments:(0,r.T5)(),formFields:(0,r.T5)(),comments:(0,r.T5)(),commentThreads:(0,r.T5)()};class L extends((0,r.mS)(B)){}class V extends((0,r.mS)(F)){}},3322:(e,t,n)=>{"use strict";n.d(t,{_:()=>c,t:()=>u});var r=n(67867),o=n(38849),i=n(88051),a=n(91109);const s=(0,o.A)("TextComparisonToolbarItem"),l=[...a.l.map((e=>e.type)),"custom"],c=[...r.n.map((e=>e.type)),"custom"],u=e=>{const{type:t,mediaQueries:n}=e;s("string"==typeof t,"Mandatory `type` is either missing or not a `string`"),(0,i.t)({...e,type:"custom"},s),s(l.includes(t),`Invalid built-in type \`${t}\`. Choose one from ${l.join(", ")}`),n&&(s(Array.isArray(n),"`mediaQueries` must be an `array`"),s(n.length>0,"`mediaQueries` must not be an empty `array`"),n.forEach((e=>{s("string"==typeof e,`Invalid media query: \`${e}\``);const t=e.split("(").length,n=e.split(")").length;0===t&&0===n||s(t===n,`Detected unbalanced parenthesis in the media query: ${e}`)})))}},85507:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(49568),o=n(50960);class i extends((0,r.mS)({id:null,pageIndex:null,boundingBox:new o.rw,contents:"",hints:null})){}},88051:(e,t,n)=>{"use strict";n.d(t,{S:()=>o,t:()=>i});const r=(0,n(38849).A)("ToolItem"),o=[Node.ELEMENT_NODE,Node.TEXT_NODE,Node.DOCUMENT_FRAGMENT_NODE],i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;const{type:n,id:i,title:a,className:s,icon:l,onPress:c,disabled:u,selected:d,node:p}=e;t("custom"===n,"Mandatory `type` is either missing or not `custom`"),p&&(t("custom"===n,"`node` is only supported for `custom` tool items."),t(o.includes(p.nodeType),"`node.nodeType` is invalid. Expected one of "+o.join(", "))),i&&t("string"==typeof i,"`id` must be a `string`"),a&&t("string"==typeof a,"`title` must be a `string`"),s&&t("string"==typeof s,"`className` must be a `string`"),l&&t("string"==typeof l,"`icon` must be a `string`"),c&&t("function"==typeof c,"`onPress` must be a `function`"),"disabled"in e&&t("boolean"==typeof u,"`disabled` must be a `boolean`"),"selected"in e&&t("boolean"==typeof d,"`selected` must be a `boolean`")}},16692:(e,t,n)=>{"use strict";n.d(t,{t:()=>s});var r=n(81199),o=n(38849),i=n(88051);const a=(0,o.A)("ToolbarItem"),s=e=>{const{type:t,mediaQueries:n,preset:o}=e;a("string"==typeof t,"Mandatory `type` is either missing or not a `string`"),(0,i.t)({...e,type:"custom"},a),a(r.TA.includes(t),`Invalid built-in type \`${t}\`. Choose one from ${r.TA.join(", ")}`),n&&(a(Array.isArray(n),"`mediaQueries` must be an `array`"),a(n.length>0,"`mediaQueries` must not be an empty `array`"),n.forEach((e=>{a("string"==typeof e,`Invalid media query: \`${e}\``);const t=e.split("(").length,n=e.split(")").length;0===t&&0===n||a(t===n,`Detected unbalanced parenthesis in the media query: ${e}`)}))),"preset"in e&&a("string"==typeof o,"`preset` must be a `string`")}},30830:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(85409),o=n(49568),i=n(37361),a=n(94119),s=n(33091),l=n(25028),c=n(94045),u=n(50259),d=n(26635),p=n(55240);const h="You tried to call a function on ViewState that requires a PSPDFKit.Instance.\nThis is possible, when you use a ViewState that is obtained via Instance#viewState, Instance.setViewState or by setting the instance value of a ViewState explicitly.";class f extends((0,o.mS)({currentPageIndex:0,zoom:u.Z4,zoomStep:i.bL,pagesRotation:0,layoutMode:s.S.SINGLE,scrollMode:l.V.CONTINUOUS,showToolbar:!0,enableAnnotationToolbar:!0,allowPrinting:!0,allowExport:!0,interactionMode:null,readOnly:!1,showAnnotations:!0,showComments:!0,showAnnotationNotes:!0,sidebarMode:null,sidebarOptions:p.M,sidebarPlacement:c.A.START,spreadSpacing:i.mN,pageSpacing:i.Us,keepFirstSpreadAsSinglePage:!1,viewportPadding:new a.A,instance:null,formDesignMode:!1,showSignatureValidationStatus:d.y.NEVER,previewRedactionMode:!1,canScrollWhileDrawing:!1,keepSelectedTool:!1,resolvedLayoutMode:s.S.SINGLE,sidebarWidth:0,disablePointSnapping:!1,enableAlwaysScrollToZoom:!1,forceRenderWidgetsInAnnotationsOrder:!1,prerenderedPageSpreads:i.Dg,showAIAssistant:!1})){zoomIn(){if(!this.instance)throw new r.uE(h);this.instance.zoomStep||(this.instance.zoomStep=i.bL);const{maximumZoomLevel:e}=this.instance;let t=this.instance.currentZoomLevel*this.instance.zoomStep;return t>e&&(t=e),this.set("zoom",t)}zoomOut(){if(!this.instance)throw new r.uE(h);this.instance.zoomStep||(this.instance.zoomStep=i.bL);const{minimumZoomLevel:e}=this.instance;let t=this.instance.currentZoomLevel/this.instance.zoomStep;return t<e&&(t=e),this.set("zoom",t)}rotateLeft(){return this.update("pagesRotation",(e=>(e+270)%360))}rotateRight(){return this.update("pagesRotation",(e=>(e+90)%360))}goToNextPage(){if(!this.instance)throw new r.uE(h);let e=this.currentPageIndex+1;return e>this.instance.totalPageCount-1&&(e=this.instance.totalPageCount-1),this.set("currentPageIndex",e)}goToPreviousPage(){let e=this.currentPageIndex-1;return e<0&&(e=0),this.set("currentPageIndex",e)}}},94119:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(49568),o=n(37361);class i extends((0,r.mS)({horizontal:o.$_,vertical:o.$_})){}},20839:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(49568),o=n(37361),i=n(33091),a=n(25028),s=n(50259),l=n(50960);const c={zoomLevel:1,zoomMode:s.Z4.zoomMode,wheelZoomMode:s.Z4.wheelZoomMode,zoomOptions:s.Z4.options,isLegacyZoom:!1,layoutMode:i.S.SINGLE,scrollMode:a.V.CONTINUOUS,scrollPosition:new l.bR,currentPageIndex:0,viewportRect:new l.rw,pageSizes:(0,r.B8)(),commentMode:null,pagesRotation:0,viewportPadding:new l.bR({x:o.$_,y:o.$_}),spreadSpacing:o.mN,pageSpacing:o.Us,keepFirstSpreadAsSinglePage:!1,minDefaultZoomLevel:o.Wp,maxDefaultZoomLevel:o.wZ,zoomStep:o.bL,lastScrollUsingKeyboard:!1,documentComparisonMode:null,disablePointSnapping:!1,enableAlwaysScrollToZoom:!1,forceRenderWidgetsInAnnotationsOrder:!1,prerenderedPageSpreads:5};class u extends(r.mS(c)){}},50259:(e,t,n)=>{"use strict";n.d(t,{Co:()=>a,IX:()=>u,MG:()=>l,PT:()=>p,Z4:()=>i,aZ:()=>c,f1:()=>h,kO:()=>d,lX:()=>s});var r=n(96754),o=n(74963);const i={zoomMode:r.d.AUTO,wheelZoomMode:o.O.WITH_CTRL,options:{enableKeyboardZoom:!0,enableGestureZoom:!0}};function a(e){return"object"==typeof e}function s(e){return"number"==typeof e?r.d.CUSTOM:a(e)?"number"==typeof e.zoomMode?r.d.CUSTOM:e.zoomMode||i.zoomMode:e}function l(e){return a(e)&&e.wheelZoomMode?e.wheelZoomMode:i.wheelZoomMode}function c(e){return{...i.options,...a(e)?e.options:{}}}function u(e){return e.isLegacyZoom?e.zoomMode===r.d.CUSTOM?e.zoomLevel:e.zoomMode:{zoomMode:e.zoomMode===r.d.CUSTOM?e.zoomLevel:e.zoomMode,wheelZoomMode:e.wheelZoomMode,options:e.zoomOptions}}function d(e){return"number"==typeof e?e:a(e)&&"number"==typeof e.zoomMode?e.zoomMode:1}function p(e){return!a(e)}function h(e,t){if(a(e)&&a(t)){const o=e.zoomMode===t.zoomMode,i=e.wheelZoomMode===t.wheelZoomMode,a=(n=e.options,r=t.options,n?.enableKeyboardZoom===r?.enableKeyboardZoom&&n?.enableGestureZoom===r?.enableGestureZoom);return o&&i&&a}var n,r;return e===t}},53644:(e,t,n)=>{"use strict";n.d(t,{JI:()=>l,M6:()=>d,Us:()=>s,f8:()=>u,jG:()=>c,rc:()=>a});var r=n(67136),o=n(85409),i=n(34609);class a extends i.X{constructor(e){if(super(e),(0,r.A)(this,"subActions",null),this.subActions=e?.subActions,this.constructor===a)throw new o.uE("PSPDFKit.Actions.Action is an abstract base class and can not be instantiated")}}(0,i.I)(a);const s=1,l=1,c=2,u=3,d=4},46491:(e,t,n)=>{"use strict";n.d(t,{e:()=>a});var r=n(67136),o=n(34609),i=n(53644);class a extends i.rc{constructor(e){super(e)}}(0,r.A)(a,"defaultValues",{script:""}),(0,o.I)(a)},43420:(e,t,n)=>{"use strict";n.d(t,{rc:()=>r.rc,ic:()=>a,yp:()=>s,sG:()=>l,$i:()=>u,ew:()=>d.e,Ki:()=>p,mm:()=>h,kV:()=>f,Dh:()=>m,tt:()=>g});var r=n(53644),o=n(67136),i=n(34609);class a extends r.rc{constructor(e){super(e)}}(0,o.A)(a,"defaultValues",{pageIndex:null}),(0,i.I)(a);class s extends r.rc{constructor(e){super(e)}}(0,o.A)(s,"defaultValues",{newWindow:!1,relativePath:"",targetType:"parent"}),(0,i.I)(s);class l extends r.rc{constructor(e){super(e)}}(0,o.A)(l,"defaultValues",{relativePath:"",namedDestination:""}),(0,i.I)(l);var c=n(49568);class u extends r.rc{constructor(e){super(e)}}(0,o.A)(u,"defaultValues",{hide:!0,annotationReferences:(0,c.B8)()}),(0,i.I)(u);var d=n(46491);class p extends r.rc{constructor(e){super(e)}}(0,o.A)(p,"defaultValues",{filePath:null}),(0,i.I)(p);class h extends r.rc{constructor(e){super(e)}}(0,o.A)(h,"defaultValues",{action:null}),(0,i.I)(h);class f extends r.rc{constructor(e){super(e)}}(0,o.A)(f,"defaultValues",{fields:null,includeExclude:!1}),(0,i.I)(f);class m extends r.rc{constructor(e){super(e)}}(0,o.A)(m,"defaultValues",{uri:null,fields:null,includeExclude:!1,includeNoValueFields:!0,exportFormat:!0,getMethod:!1,submitCoordinated:!1,xfdf:!1,includeAppendSaves:!1,includeAnnotations:!1,submitPDF:!1,canonicalFormat:!1,excludeNonUserAnnotations:!1,excludeFKey:!1,embedForm:!1}),(0,i.I)(m);class g extends r.rc{constructor(e){super(e)}}(0,o.A)(g,"defaultValues",{uri:null}),(0,i.I)(g)},22372:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(67136),o=n(85409),i=n(50960),a=n(34609);class s extends a.X{constructor(e){if(super(e),this.constructor===s)throw new o.uE("PSPDFKit.Annotations.Annotation is an abstract base class and can not be instantiated")}}(0,r.A)(s,"defaultValues",{id:null,name:null,subject:null,pdfObjectId:null,pageIndex:null,boundingBox:new i.rw,opacity:1,action:null,note:null,creatorName:null,createdAt:new Date,updatedAt:new Date,customData:null,noPrint:!1,noZoom:!1,noRotate:!1,noView:!1,locked:!1,lockedContents:!1,readOnly:!1,hidden:!1,blendMode:"normal",additionalActions:null,isCommentThreadRoot:!1,isAnonymous:!1,group:void 0,isEditable:void 0,isDeletable:void 0,canSetGroup:void 0,canReply:void 0,APStreamCache:void 0,rotation:0}),(0,a.I)(s);const l=s},43052:(e,t,n)=>{"use strict";n.d(t,{GY:()=>c,IZ:()=>d,iU:()=>u});var r=n(67136),o=n(6163),i=n(51946),a=n(50960),s=n(53428),l=n(34609);const c=32;class u extends i.s9{}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c;if(e){const r=function(e,t,n){let r=null;if(e instanceof i.Eo)e.lines.isEmpty()||e.lines.get(0)?.isEmpty()||(r=e.lines.get(0)?.get(0));else if(e instanceof s.A||e instanceof i.ug){if(e.points&&e.points.size>=2){const t=e.points.get(0),n=e.points.get(1);r=new a.bR({x:(t.x+n.x)/2,y:(t.y+n.y)/2})}}else if(e instanceof i.MU){const t=e.startPoint,n=e.endPoint;r=new a.bR({x:(t.x+n.x)/2,y:(t.y+n.y)/2})}else if(e instanceof i.tr)return new a.bR({x:e.boundingBox.right+4,y:e.boundingBox.getCenter().y-n/2});r||(r=new a.bR({x:e.boundingBox.getCenter().x,y:e.boundingBox.top}));return r.set("x",r.x-t/2).set("y",r.y-n/2)}(e,t,n);return new u({id:(0,o.Z0)(),pageIndex:e.pageIndex,boundingBox:new a.rw({left:r.x,top:r.y,width:t,height:n}),text:{format:"plain",value:e.note??""},parentAnnotation:e,position:r})}return new u({id:(0,o.Z0)(),notePosition:new a.bR})}(0,r.A)(u,"defaultValues",{parentAnnotation:null,position:new a.bR,notePosition:new a.bR}),(0,l.I)(u)},64329:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(67136),o=n(22372),i=n(34609);class a extends o.A{}(0,r.A)(a,"defaultValues",{description:null,fileName:null,contentType:null,imageAttachmentId:null,isSignature:!1,xfdfAppearanceStream:null,xfdfAppearanceStreamOriginalPageRotation:null}),(0,r.A)(a,"readableName","Image"),(0,i.I)(a);const s=a},2440:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(67136),o=n(49568),i=n(22372),a=n(24159),s=n(34609);class l extends i.A{}(0,r.A)(l,"defaultValues",{lines:(0,o.B8)(),lineWidth:5,strokeColor:a.A.BLUE,backgroundColor:null,isDrawnNaturally:!1,isSignature:!1}),(0,r.A)(l,"readableName","Ink"),(0,s.I)(l);const c=l},83632:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(67136),o=n(22372),i=n(34609);class a extends o.A{}(0,r.A)(a,"defaultValues",{description:null,fileName:null,contentType:null,mediaAttachmentId:null}),(0,r.A)(a,"readableName","Media"),(0,i.I)(a)},84584:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,p:()=>l});var r=n(67136),o=n(22372),i=n(24159),a=n(8367),s=n(34609);const l=[{color:new i.A({r:255,g:216,b:63}),localization:{id:"yellow",defaultMessage:"Yellow",description:"Yellow color"}},{color:new i.A({r:255,g:127,b:0}),localization:{id:"orange",defaultMessage:"Orange",description:"Orange, the color"}},{color:new i.A({r:255,g:51,b:0}),localization:{id:"red",defaultMessage:"Red",description:"Red, the color"}},{color:new i.A({r:229,g:51,b:255}),localization:{id:"fuchsia",defaultMessage:"Fuchsia",description:"Fuchsia, the color"}},{color:new i.A({r:0,g:153,b:255}),localization:{id:"blue",defaultMessage:"Blue",description:"Blue, the color"}},{color:new i.A({r:114,g:255,b:0}),localization:{id:"green",defaultMessage:"Green",description:"Green, the color"}}];class c extends o.A{}(0,r.A)(c,"isEditable",!0),(0,r.A)(c,"readableName","Note"),(0,r.A)(c,"defaultValues",{text:{format:"plain",value:""},icon:a.Qv.COMMENT,color:l.find((e=>"yellow"===e.localization.id))?.color}),(0,s.I)(c);const u=c},83145:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(67136),o=n(96615),i=n(24159),a=n(34609);class s extends o.A{}(0,r.A)(s,"readableName","Redaction"),(0,r.A)(s,"defaultValues",{color:i.A.RED,fillColor:i.A.BLACK,outlineColor:i.A.RED,overlayText:null,repeatOverlayText:null,rotation:0}),(0,a.I)(s)},77153:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(67136),o=n(22372),i=n(24159),a=n(34609);class s extends o.A{isMeasurement(){return null!==this.measurementScale}}(0,r.A)(s,"readableName","Shape"),(0,r.A)(s,"defaultValues",{strokeWidth:5,strokeColor:i.A.BLUE,fillColor:null,strokeDashArray:null,measurementPrecision:null,measurementScale:null}),(0,a.I)(s);const l=s},14063:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,Rv:()=>s,qm:()=>a,rC:()=>l});var r=n(67136),o=n(22372),i=n(34609);const a={Approved:{},NotApproved:{},Draft:{},Final:{},Completed:{},Confidential:{},ForPublicRelease:{},NotForPublicRelease:{},ForComment:{},Void:{},PreliminaryResults:{},InformationOnly:{},Rejected:{},Accepted:{},InitialHere:{},SignHere:{},Witness:{},AsIs:{},Departmental:{},Experimental:{},Expired:{},Sold:{},TopSecret:{},Revised:{includeDate:!0,includeTime:!0},RejectedWithText:{includeDate:!0,includeTime:!0},Custom:{}},s={RejectedWithText:"Rejected"},l=e=>s[e]||e;class c extends o.A{}(0,r.A)(c,"defaultValues",{stampType:"Custom",title:null,subtitle:null,color:null,xfdfAppearanceStream:null,xfdfAppearanceStreamOriginalPageRotation:null}),(0,r.A)(c,"readableName","Stamp"),(0,i.I)(c);const u=c},96615:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(67136),o=n(49568),i=n(22372),a=n(24159),s=n(34609);class l extends i.A{}(0,r.A)(l,"defaultValues",{rects:(0,o.B8)(),color:a.A.BLACK,blendMode:"normal"}),(0,r.A)(l,"readableName","Text-Markup"),(0,s.I)(l);const c=l},5864:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(67136),o=n(22372),i=n(34609);class a extends o.A{}(0,r.A)(a,"defaultValues",{formFieldName:null,borderColor:null,borderStyle:null,borderDashArray:null,borderWidth:null,backgroundColor:null,fontSize:null,font:null,isBold:!1,isItalic:!1,fontColor:null,horizontalAlign:null,verticalAlign:null,additionalActions:null,lineHeightFactor:null,buttonIconUpdatedAt:null}),(0,r.A)(a,"readableName","Widget"),(0,i.I)(a);const s=a},51946:(e,t,n)=>{"use strict";n.d(t,{YH:()=>r.A,dG:()=>D,Go:()=>f.A,ax:()=>l,vU:()=>c.A,Eo:()=>u.A,MU:()=>p.A,UL:()=>y,KR:()=>I.A,s9:()=>b.A,Si:()=>m.A,ug:()=>g.A,Zx:()=>h.A,h5:()=>T.A,pP:()=>d.A,TI:()=>w,xY:()=>x.Ay,sB:()=>S,dh:()=>E,tr:()=>i.A,Yi:()=>k,Ip:()=>P,sb:()=>A.A});var r=n(22372),o=n(67136),i=n(96615),a=n(24159),s=n(34609);class l extends i.A{}(0,o.A)(l,"className","highlight"),(0,o.A)(l,"readableName","Highlight"),(0,o.A)(l,"defaultValues",{blendMode:"multiply",color:a.A.LIGHT_YELLOW}),(0,s.I)(l);var c=n(64329),u=n(2440),d=n(77153),p=n(92592),h=n(39679),f=n(43800),m=n(53428),g=n(20994);class v extends r.A{}(0,o.A)(v,"readableName","Link"),(0,o.A)(v,"defaultValues",{borderWidth:0,borderColor:null,borderStyle:null,opacity:1}),(0,s.I)(v);const y=v;var b=n(84584);class w extends i.A{}(0,o.A)(w,"className","squiggle"),(0,o.A)(w,"readableName","Squiggle"),(0,o.A)(w,"defaultValues",{color:a.A.RED}),(0,s.I)(w);var x=n(14063);class S extends i.A{}(0,o.A)(S,"className","strikeout"),(0,o.A)(S,"readableName","Strike Out"),(0,o.A)(S,"defaultValues",{color:a.A.RED}),(0,s.I)(S);var _=n(84318);class C extends r.A{}(0,o.A)(C,"defaultValues",{text:{format:"plain",value:""},fontColor:a.A.BLACK,backgroundColor:null,font:_.iL.first()||"sans-serif",fontSize:18,isBold:!1,isItalic:!1,horizontalAlign:"left",verticalAlign:"top",callout:null,borderStyle:null,borderWidth:null,borderColor:null,isFitting:!1,lineHeightFactor:null}),(0,o.A)(C,"isEditable",!0),(0,o.A)(C,"readableName","Text"),(0,o.A)(C,"fontSizePresets",Object.freeze([4,6,8,10,12,14,18,24,36,48,64,72,96,144,192,200])),(0,s.I)(C);const E=C;class k extends i.A{}(0,o.A)(k,"className","underline"),(0,o.A)(k,"readableName","Underline"),(0,o.A)(k,"defaultValues",{color:a.A.BLACK}),(0,s.I)(k);class z extends r.A{}(0,s.I)(z);const P=z;var A=n(5864);class D extends r.A{}(0,o.A)(D,"readableName","Comment-Marker"),(0,s.I)(D);var T=n(83145),I=n(83632)},43800:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,F:()=>c});var r=n(67136),o=n(77153),i=n(50960),a=n(37361),s=n(34609);class l extends o.A{constructor(e){super(c(e))}}function c(e){if(!e)return;const t={...e};if(Number(e.cloudyBorderIntensity)>0&&!e.cloudyBorderInset){const n=Number(e.cloudyBorderIntensity)*a.Ss+(e.strokeWidth||o.A.defaultValues.strokeWidth)/2;return t.cloudyBorderInset=i.Yy.fromValue(n),t}return t}(0,r.A)(l,"defaultValues",{cloudyBorderIntensity:null,cloudyBorderInset:null,measurementBBox:null}),(0,r.A)(l,"readableName","Ellipse"),(0,s.I)(l);const u=l},92592:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(67136),o=n(77153),i=n(50960),a=n(34609);class s extends o.A{}(0,r.A)(s,"defaultValues",{startPoint:new i.bR,endPoint:new i.bR,lineCaps:null}),(0,r.A)(s,"readableName","Line"),(0,a.I)(s);const l=s},53428:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(67136),o=n(49568),i=n(77153),a=n(34609);class s extends i.A{}(0,r.A)(s,"defaultValues",{points:(0,o.B8)(),cloudyBorderIntensity:null}),(0,r.A)(s,"readableName","Polygon"),(0,a.I)(s);const l=s},20994:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(67136),o=n(49568),i=n(77153),a=n(34609);class s extends i.A{}(0,r.A)(s,"defaultValues",{points:(0,o.B8)(),lineCaps:null}),(0,r.A)(s,"readableName","Polyline"),(0,a.I)(s);const l=s},39679:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(67136),o=n(77153),i=n(43800),a=n(34609);class s extends o.A{constructor(e){super((0,i.F)(e))}}(0,r.A)(s,"defaultValues",{cloudyBorderIntensity:null,cloudyBorderInset:null,measurementBBox:null}),(0,r.A)(s,"readableName","Rectangle"),(0,a.I)(s);const l=s},90310:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l,tf:()=>c,wj:()=>u});var r=n(67136),o=n(85409),i=n(49568),a=n(45374);const s={id:null,rootId:null,pageIndex:null,pdfObjectId:null,creatorName:null,createdAt:new Date,updatedAt:new Date,text:{format:"xhtml",value:null},customData:null,group:void 0,isEditable:void 0,isDeletable:void 0,canSetGroup:void 0,isAnonymous:void 0};class l extends(i.mS(s)){getMentionedUserIds(){const e=this.text.value;(0,o.V1)("string"==typeof e,"`text.value` must be of type `string`");const t=(new DOMParser).parseFromString(e,"text/html").body.querySelectorAll("span[data-user-id]"),n=Array.from(t).map((e=>e.getAttribute("data-user-id"))).filter(o.V7);return i.NZ(n)}}(0,r.A)(l,"toSerializableObject",(e=>(0,a.z)(e,e.rootId))),(0,r.A)(l,"fromSerializableObject",(e=>(0,a._)(e.id||null,e)));const c=e=>{(0,o.V1)("string"==typeof e.id,"`id` must be of type `string`"),(0,o.V1)("string"==typeof e.rootId,"`rootId` must be of type `string`"),(0,o.V1)("number"==typeof e.pageIndex,"`pageIndex` must be of type `number`"),(0,o.V1)(null==e.pdfObjectId||"number"==typeof e.pdfObjectId,"`pdfObjectId` must be of type `number`"),(0,o.V1)(null==e.creatorName||"string"==typeof e.creatorName,"`creatorName` must be of type `string`"),(0,o.V1)(e.createdAt instanceof Date,"`createdAt` must be a Date"),(0,o.V1)(e.updatedAt instanceof Date,"`updatedAt` must be a Date"),(0,o.V1)("object"==typeof e.text,"`text` must be of type `object`"),(0,o.V1)("string"==typeof e.text.value,"`text` must be of type `string`"),(0,o.V1)("xhtml"===e.text.format||"plain"===e.text.format,"`text.format` must be either `xhtml` or `plain`"),(0,o.V1)(null==e.customData||(0,o.Qd)(e.customData),"`customData` must be a JSON-serializable object"),(0,o.V1)(void 0===e.isAnonymous||"boolean"==typeof e.isAnonymous||null==e.isAnonymous,"`isAnonymous` must be of type `boolean`")};function u(e){return(0,o.V1)("string"==typeof e.id,"`id` must be of type `string`"),(0,o.V1)("string"==typeof e.name,"`name` must be of type `string`"),e.avatarUrl&&(0,o.V1)("string"==typeof e.avatarUrl,"`avatarUrl` must be of type `string`"),e.description&&(0,o.V1)("string"==typeof e.description,"`description` must be of type `string`"),(0,o.V1)("string"==typeof e.displayName,"`displayName` must be of type `string`"),e}},83647:(e,t,n)=>{"use strict";n.d(t,{BL:()=>l,D7:()=>a,Pb:()=>r,Yj:()=>c,k5:()=>o,sX:()=>s,w1:()=>i});const r={ok:"ok",tampered_document:"tampered_document",failed_to_retrieve_signature_contents:"failed_to_retrieve_signature_contents",failed_to_retrieve_byterange:"failed_to_retrieve_byterange",failed_to_compute_digest:"failed_to_compute_digest",failed_retrieve_signing_certificate:"failed_retrieve_signing_certificate",failed_retrieve_public_key:"failed_retrieve_public_key",failed_encryption_padding:"failed_encryption_padding",tampered_or_invalid_timestamp:"tampered_or_invalid_timestamp",general_failure:"general_failure"},o={ok:"ok",ok_but_self_signed:"ok_but_self_signed",ok_but_could_not_check_revocation:"ok_but_could_not_check_revocation",untrusted:"untrusted",expired:"expired",not_yet_valid:"not_yet_valid",invalid:"invalid",revoked:"revoked",failed_to_retrieve_signature_contents:"failed_to_retrieve_signature_contents",general_validation_problem:"general_validation_problem"},i={valid:"valid",warning:"warning",error:"error"},a={CMS:"CMS",CAdES:"CAdES"},s={b_b:"b-b",b_t:"b-t",b_lt:"b-lt"},l={cms:"cms",cades:"cades",documentTimestamp:"documentTimestamp"},c={raw:"raw",pkcs7:"pkcs7"}},27522:(e,t,n)=>{"use strict";n.d(t,{J:()=>r});const r={valid:"valid",warning:"warning",error:"error",not_signed:"not_signed"}},40527:(e,t,n)=>{"use strict";function r(e){return e&&"object"==typeof e&&"jwt"in e&&void 0!==e?.jwt?e:void 0}function o(e){return e&&"object"==typeof e&&!r(e)?e:void 0}n.d(t,{gJ:()=>o,kJ:()=>r})},94308:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});let r=function(e){return e.DRAW_START="DRAW_START",e.DRAW_END="DRAW_END",e.TEXT_EDIT_START="TEXT_EDIT_START",e.TEXT_EDIT_END="TEXT_EDIT_END",e.SELECT_START="SELECT_START",e.SELECT_END="SELECT_END",e.MOVE_START="MOVE_START",e.MOVE_END="MOVE_END",e.RESIZE_START="RESIZE_START",e.RESIZE_END="RESIZE_END",e.ROTATE_START="ROTATE_START",e.ROTATE_END="ROTATE_END",e.DELETE_START="DELETE_START",e.DELETE_END="DELETE_END",e.PROPERTY_CHANGE="PROPERTY_CHANGE",e}({})},84445:(e,t,n)=>{"use strict";n.d(t,{A5:()=>s,Ay:()=>c,tf:()=>u});var r=n(67136),o=n(49568),i=n(85409),a=n(34609);const s=["readOnly","required","noExport"];class l extends a.X{constructor(e){if(super(e),this.constructor===l)throw new i.uE("PSPDFKit.FormFields.FormField is an abstract base class and can not be instantiated")}}(0,r.A)(l,"defaultValues",{id:null,pdfObjectId:null,annotationIds:(0,o.B8)(),name:null,label:"",readOnly:!1,required:!1,noExport:!1,additionalActions:null,group:void 0,isEditable:void 0,isFillable:void 0,isDeletable:void 0,canSetGroup:void 0}),(0,a.I)(l);const c=l;function u(e){return e.has("name")}},60156:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,B:()=>s});var r=n(67136),o=n(34609);class i extends o.X{constructor(e){super(e),void 0!==e?.optionIndexes&&(this.optionIndexes=e.optionIndexes),void 0!==e?.isFitting&&(this.isFitting=e.isFitting)}}(0,r.A)(i,"defaultValues",{name:null,value:null}),(0,o.I)(i);const a=i;function s(e){return`form-field-value/${e.name}`}},36899:(e,t,n)=>{"use strict";n.d(t,{$h:()=>s,av:()=>u,G_:()=>p,sh:()=>f,zB:()=>o.Ay,E2:()=>m.A,O2:()=>v,Qk:()=>b,Vw:()=>_,uS:()=>x});var r=n(67136),o=n(84445),i=n(34609);class a extends o.Ay{}(0,r.A)(a,"defaultValues",{buttonLabel:null}),(0,i.I)(a);const s=a;var l=n(49568);class c extends o.Ay{}(0,r.A)(c,"defaultValues",{values:(0,l.B8)(),defaultValues:(0,l.B8)(),options:(0,l.B8)(),optionIndexes:void 0}),(0,i.I)(c);const u=c;class d extends o.Ay{}(0,r.A)(d,"defaultValues",{options:(0,l.B8)(),values:(0,l.B8)(),defaultValues:(0,l.B8)(),multiSelect:!1,commitOnChange:!1,additionalActions:null}),(0,i.I)(d);const p=d;class h extends p{}(0,r.A)(h,"defaultValues",{edit:!1,doNotSpellCheck:!1}),(0,i.I)(h);const f=h;var m=n(60156);class g extends p{}(0,i.I)(g);const v=g;class y extends o.Ay{}(0,r.A)(y,"defaultValues",{options:(0,l.B8)(),noToggleToOff:!1,radiosInUnison:!0,value:"",defaultValue:"",optionIndexes:void 0}),(0,i.I)(y);const b=y;class w extends o.Ay{}(0,r.A)(w,"defaultValues",{password:!1,maxLength:null,doNotSpellCheck:!1,doNotScroll:!1,multiLine:!1,comb:!1,value:"",defaultValue:"",additionalActions:null}),(0,i.I)(w);const x=w;class S extends o.Ay{}const _=S},13217:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(67136),o=n(64959),i=n(34609);class a extends o.A{constructor(e){super(e)}}(0,r.A)(a,"defaultValues",{...o.A.defaultValues,intensity:.5}),(0,i.I)(a);const s=a},64959:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(67136),o=n(34609);class i extends o.X{constructor(e){super(e)}scale(e,t){return this.withMutations((n=>{t||(t=e),n.set("x",this.x*e).set("y",this.y*t)}))}translate(e){let{x:t,y:n}=e;return this.withMutations((e=>{e.set("x",this.x+t).set("y",this.y+n)}))}translateX(e){return this.translate(new i({x:e,y:0}))}translateY(e){return this.translate(new i({x:0,y:e}))}distance(e){return Math.sqrt((e.x-this.x)**2+(e.y-this.y)**2)}rotate(e){e%=360;const{x:t,y:n}=this;switch(e){case 0:return this;case 90:return this.set("x",n).set("y",-t);case 180:return this.set("x",-t).set("y",-n);case 270:return this.set("x",-n).set("y",t);default:{const r=e*Math.PI/180;return this.set("x",Math.cos(r)*t+Math.sin(r)*n).set("y",Math.cos(r)*n-Math.sin(r)*t)}}}apply(e){const[t,n]=e.applyToPoint([this.x,this.y]);return this.withMutations((e=>{e.set("x",t).set("y",n)}))}}(0,r.A)(i,"defaultValues",{x:0,y:0}),(0,o.I)(i);const a=i},44439:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(67136),o=n(85409),i=n(34609),a=n(64959),s=n(42152);class l extends i.X{constructor(e){super(e)}get right(){return this.left+this.width}get bottom(){return this.top+this.height}static fromClientRect(e){let{top:t,left:n,width:r,height:o}=e;return new l({top:t,left:n,width:r,height:o})}static union(e){const t=e.map((e=>e.top)).min(),n=e.map((e=>e.bottom)).max()-t,r=e.map((e=>e.left)).min(),o=e.map((e=>e.right)).max()-r;return new l({left:r,top:t,width:o,height:n})}static getCenteredRect(e,t){return new l({left:(t.width-e.width)/2,top:(t.height-e.height)/2,width:e.width,height:e.height})}static fromInset(e){return new l({left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top})}static fromPoints(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];(0,o.V1)(4===t.length,"Rect.fromPoints requires 4 points");const r=Math.min(...t.map((e=>e.x))),i=Math.min(...t.map((e=>e.y))),a=Math.max(...t.map((e=>e.x))),s=Math.max(...t.map((e=>e.y)));return new l({left:r,top:i,width:a-r,height:s-i})}expandToIncludePoints(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=Math.min(this.left,...t.map((e=>e.x))),o=Math.min(this.top,...t.map((e=>e.y))),i=Math.max(this.left+this.width,...t.map((e=>e.x))),a=Math.max(this.top+this.height,...t.map((e=>e.y)));return new l({left:r,top:o,width:i-r,height:a-o})}static areRectsCloserThan(e,t,n){return Math.abs(e.left-t.left)<=n&&Math.abs(e.top-t.top)<=n&&Math.abs(e.left+e.width-(t.left+t.width))<=n&&Math.abs(e.top+e.height-(t.top+t.height))<=n}static areVerticallyAligned(e,t,n){return Math.abs(e.top-t.top)<=n&&Math.abs(e.top+e.height-(t.top+t.height))<=n}translate(e){let{x:t,y:n}=e;return this.withMutations((e=>{e.set("left",this.left+t).set("top",this.top+n)}))}translateX(e){return this.set("left",this.left+e)}translateY(e){return this.set("top",this.top+e)}scale(e,t){return this.withMutations((n=>{t||(t=e),n.set("left",this.left*e).set("top",this.top*t).set("width",this.width*e).set("height",this.height*t)}))}grow(e){return this.withMutations((t=>{t.set("left",this.left-e).set("top",this.top-e).set("width",this.width+2*e).set("height",this.height+2*e)}))}getLocation(){return new a.A({x:this.left,y:this.top})}getSize(){return new s.A({width:this.width,height:this.height})}getCenter(){return new a.A({x:this.left+this.width/2,y:this.top+this.height/2})}setLocation(e){return this.withMutations((t=>{t.set("left",e.x).set("top",e.y)}))}roundOverlap(){return this.withMutations((e=>{e.set("left",Math.floor(this.left)).set("top",Math.floor(this.top)).set("width",Math.ceil(this.width)).set("height",Math.ceil(this.height))}))}round(){return this.withMutations((e=>{e.set("left",Math.round(this.left)).set("top",Math.round(this.top)).set("width",Math.round(this.width)).set("height",Math.round(this.height))}))}isPointInside(e){return e.x>=this.left&&e.x<=this.right&&e.y>=this.top&&e.y<=this.bottom}isRectInside(e){return this.isPointInside(e.getLocation())&&this.isPointInside(e.getLocation().translate(new a.A({x:e.width,y:e.height})))}isRectOverlapping(e){return e.left<this.right&&e.right>this.left&&e.top<this.bottom&&e.bottom>this.top}normalize(){return this.withMutations((e=>e.set("left",this.width<0?this.left+this.width:this.left).set("top",this.height<0?this.top+this.height:this.top).set("width",Math.abs(this.width)).set("height",Math.abs(this.height))))}apply(e){const[t,n]=e.applyToPoint([this.left,this.top]),[r,o]=e.applyToVector([this.width,this.height]);return this.withMutations((e=>e.set("left",t).set("top",n).set("width",r).set("height",o))).normalize()}}(0,r.A)(l,"defaultValues",{left:0,top:0,width:0,height:0}),(0,i.I)(l);const c=l},42152:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(49568);class o extends((0,r.mS)({width:0,height:0})){scale(e){return this.withMutations((t=>{t.set("width",this.width*e).set("height",this.height*e)}))}ceil(){return this.withMutations((e=>{e.set("width",Math.ceil(this.width)).set("height",Math.ceil(this.height))}))}floor(){return this.withMutations((e=>{e.set("width",Math.floor(this.width)).set("height",Math.floor(this.height))}))}swapDimensions(){return this.withMutations((e=>{e.set("width",this.height).set("height",this.width)}))}apply(e){const[t,n]=e.applyToVector([this.width,this.height]);return this.withMutations((e=>{e.set("width",Math.abs(t)).set("height",Math.abs(n))}))}}},50960:(e,t,n)=>{"use strict";n.d(t,{LL:()=>i.A,Yy:()=>f,bR:()=>o.A,rw:()=>a.A,or:()=>s.A,XF:()=>p});var r,o=n(64959),i=n(13217),a=n(44439),s=n(42152),l=n(67136),c=n(85409),u=n(34609);class d extends u.X{translate(e){let{x:t,y:n}=e;return this.transform(1,0,0,1,t,n)}translateX(e){return this.translate({x:e,y:0})}translateY(e){return this.translate({x:0,y:e})}scale(e,t){return t||(t=e),this.transform(e,0,0,t,0,0)}transform(e,t,n,r,o,i){const{a,b:s,c:l,d:c,e:u,f:d}=this;return this.withMutations((p=>p.set("a",e*a+n*s).set("b",t*a+r*s).set("c",e*l+n*c).set("d",t*l+r*c).set("e",e*u+n*d+o).set("f",t*u+r*d+i)))}rotate(e){(0,c.V1)(e%90==0,"Only multiples of 90° allowed.");const t=(360-e)*Math.PI/180,n=Math.cos(t),r=Math.sin(t);return this.transform(n,r,-r,n,0,0)}rotateRad(e){const t=Math.cos(e),n=Math.sin(e);return this.transform(t,n,-n,t,0,0)}inverse(){const{a:e,b:t,c:n,d:r,e:o,f:i}=this,a=e*r-t*n;return this.withMutations((s=>s.set("a",r/a).set("b",t/-a).set("c",n/-a).set("d",e/a).set("e",(n*i-r*o)/a).set("f",(e*i-t*o)/-a)))}toCssValue(){const{a:e,b:t,c:n,d:r,e:o,f:i}=this;return`matrix(${e.toFixed(2)}, ${t.toFixed(2)}, ${n.toFixed(2)}, ${r.toFixed(2)}, ${o.toFixed(2)}, ${i.toFixed(2)})`}applyToPoint(e){let[t,n]=e;const{a:r,b:o,c:i,d:a,e:s,f:l}=this;return[r*t+i*n+s,o*t+a*n+l]}applyToVector(e){let[t,n]=e;const{a:r,b:o,c:i,d:a}=this;return[r*t+i*n,o*t+a*n]}}r=d,(0,l.A)(d,"defaultValues",{a:1,b:0,c:0,d:1,e:0,f:0}),(0,l.A)(d,"IDENTITY",new r),(0,u.I)(d);const p=d;var h=n(49568);class f extends((0,h.mS)({left:0,top:0,right:0,bottom:0})){static applyToRect(e,t){if(!(e instanceof f))throw new c.uE("`inset` must be an instance of `PSPDFKit.Geometry.Inset`");if(!(t instanceof a.A))throw new c.uE("`rect` must be an instance of `PSPDFKit.Geometry.Rect`");return new a.A({top:t.top+e.top,left:t.left+e.left,width:t.width-(e.left+e.right),height:t.height-(e.top+e.bottom)})}static fromRect(e){return new f({left:e.left,top:e.top,right:e.left+e.width,bottom:e.top+e.height})}static fromValue(e){if("number"!=typeof e)throw new c.uE("The provided value must be a number");return new f({top:e,left:e,right:e,bottom:e})}apply(e){const t=e.applyToPoint([this.left,this.top]),n=e.applyToPoint([this.left,this.bottom]),r=e.applyToPoint([this.right,this.top]),o=e.applyToPoint([this.right,this.bottom]),i=Math.min(t[0],n[0],r[0],o[0]),a=Math.max(t[0],n[0],r[0],o[0]),s=Math.min(t[1],n[1],r[1],o[1]),l=Math.max(t[1],n[1],r[1],o[1]);return new f({left:i,right:a,top:s,bottom:l})}setScale(e){return new f({left:this.left*e,right:this.right*e,top:this.top*e,bottom:this.bottom*e})}}},32574:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,B:()=>o});var r=n(49568);const o={pageIndex:-1,rectsOnPage:(0,r.B8)()};class i extends((0,r.mS)(o)){}},76117:(e,t,n)=>{"use strict";n.d(t,{YH:()=>i.YH,o3:()=>l,Xh:()=>c.A,$h:()=>a.$h,Pq:()=>h,av:()=>a.av,G_:()=>a.G_,sy:()=>y.A,Q1:()=>f.A,sh:()=>a.sh,Mw:()=>I.Ay,dG:()=>i.dG,zT:()=>j,KN:()=>m.A,$G:()=>w,_$:()=>x,Hv:()=>L,bU:()=>k.A,LL:()=>o.LL,Go:()=>i.Go,zB:()=>a.zB,E2:()=>a.E2,_B:()=>g.A,ic:()=>r.ic,ax:()=>i.ax,vU:()=>i.vU,Eo:()=>i.Eo,Yy:()=>o.Yy,ew:()=>r.ew,MU:()=>i.MU,UL:()=>i.UL,O2:()=>a.O2,KR:()=>i.KR,s9:()=>i.s9,LC:()=>P.A,YW:()=>v.A,bR:()=>o.bR,Si:()=>i.Si,ug:()=>i.ug,Qk:()=>a.Qk,rw:()=>o.rw,Zx:()=>i.Zx,pP:()=>i.pP,Vw:()=>a.Vw,J$:()=>z.A,or:()=>o.or,TI:()=>i.TI,xY:()=>i.xY,Uw:()=>b.A,sB:()=>i.sB,dh:()=>i.dh,uS:()=>a.uS,Yh:()=>S.A,tr:()=>i.tr,vY:()=>C,U3:()=>E,tt:()=>r.tt,Yi:()=>i.Yi,Ip:()=>i.Ip,Pf:()=>T.A,EN:()=>D.A,W6:()=>A.A,sb:()=>i.sb});var r=n(43420),o=n(50960),i=n(51946),a=n(36899),s=n(49568);class l extends((0,s.mS)({data:null})){}var c=n(30962),u=n(67136),d=n(34609);class p extends d.X{}(0,u.A)(p,"defaultValues",{start:null,knee:null,end:null,cap:null,innerRectInset:null}),(0,d.I)(p);const h=p;var f=n(24159),m=(n(89398),n(59553)),g=(n(32522),n(6833),n(29226)),v=(n(52002),n(97837)),y=(n(1889),n(36661)),b=(n(30026),n(37513));class w extends((0,s.mS)({id:null,pageIndex:null,textLines:(0,s.B8)(),contentElements:(0,s.B8)(),contentBlocks:(0,s.B8)(),contentTreeElementMetadata:null,allowsBlockTypeChildren:!0,boundingBox:null})){}class x extends((0,s.mS)({id:null,pageIndex:null,boundingBox:new o.rw,elementType:null})){}var S=n(85507),_=n(85409);class C extends((0,s.mS)({startNode:null,startOffset:null,endNode:null,endOffset:null})){startAndEndIds(){const e=this.startNode.parentElement,t=this.endNode.parentElement;if(!e||!t)return null;const n=parseInt(e.dataset.textlineId),r=parseInt(t.dataset.textlineId),o=e.dataset.contentblockId,i=t.dataset.contentblockId,a=parseInt(e.dataset.pageIndex),s=parseInt(t.dataset.pageIndex);return(0,_.V1)("number"==typeof n,"selection startId is not a number"),(0,_.V1)("number"==typeof r,"selection endId is not a number"),(0,_.V1)("string"==typeof o,"selection startBlockId is not a string"),(0,_.V1)("string"==typeof i,"selection endBlockId is not a string"),(0,_.V1)("number"==typeof a,"selection start pageIndex is not a number"),(0,_.V1)("number"==typeof s,"selection end pageIndex is not a number"),{startTextLineId:n,endTextLineId:r,startNestedContentBlockId:o,endNestedContentBlockId:i,startPageIndex:a,endPageIndex:s}}}class E extends((0,s.mS)({textRange:null,startTextLineId:null,endTextLineId:null,startNestedContentBlockId:null,endNestedContentBlockId:null,startPageIndex:null,endPageIndex:null})){}var k=n(76792),z=n(69245),P=n(47612),A=n(20839),D=n(94119),T=n(30830),I=n(90310),M=n(38849),N=n(70778);const O=(0,M.A)("ComparisonOperation"),R={type:N.d.TEXT,options:{numberOfContextWords:0}};class j extends((0,s.mS)(R)){constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};O(void 0===t.numberOfContextWords||"number"==typeof t.numberOfContextWords,"numberOfContextWords must be a number."),super({type:e,options:{...R.options,...t}})}}const F=(0,M.A)("DocumentDescriptor"),B={filePath:void 0,password:void 0,pageIndexes:[],jwt:void 0};class L extends((0,s.mS)(B)){constructor(e){!function(e){let{filePath:t,pageIndexes:n,password:r,jwt:o}=e;t&&F("string"==typeof t||t instanceof ArrayBuffer,"filePath must be a string or ArrayBuffer.");null!=o&&F("string"==typeof o&&o.length>0,"jwt must be a non-empty string.");null!=r&&F("string"==typeof r&&r.length>0,"password must be a non-empty string.");F(n.length>0,"pageIndexes must be a non-empty array."),F(n.every((e=>"number"==typeof e||Array.isArray(e)&&2===e.length&&e.every((e=>"number"==typeof e)))),"pageIndexes must be an array of numbers or arrays of two numbers.")}(e),super({...e})}}n(90820)},35224:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(49568),o=n(35014),i=n(27959);class a extends((0,r.mS)({unitFrom:o.b.INCHES,unitTo:i._.INCHES,fromValue:1,toValue:1})){}},3220:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(49568);class o extends((0,r.mS)({pageIndex:null,previewText:"",locationInPreview:null,lengthInPreview:null,rectsOnPage:(0,r.B8)(),isAnnotation:null,annotationRect:null})){}},45408:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(49568);class o extends((0,r.mS)({isFocused:!1,isLoading:!1,term:"",focusedResultIndex:-1,results:(0,r.B8)(),minSearchQueryLength:1})){}},17293:(e,t,n)=>{"use strict";n.d(t,{I:()=>s});var r=n(75675),o=n(21535);const i={Sidebar:Object.values(o.I)},a=e=>e in i;function s(e){for(const t in e)if(e.hasOwnProperty(t)&&a(t)){(0,r.V)(void 0!==typeof i[t],`'${t}' is not a customizable UI element. Customizable UI elements are: ${Object.keys(i).join(", ")}`);const n=i[t];(0,r.V)(Object.keys(e[t]).every((e=>n.includes(e))),`The provided custom UI configuration contains one or more invalid keys for "${t}". Valid "${t}" keys are: ${n.join(",")}`),(0,r.V)(Object.values(e[t]).every((e=>"function"==typeof e)),"The custom UI values provided must be callback functions.")}return e}},25e3:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,X:()=>i});var r=n(85409),o=n(35467);const i="AI Assistant configuration object is required before this feature can be used.";function a(e,t){t.setAIAssistantSessionId=function(t){const{aiAssistant:{configuration:n}}=e.getState();(0,r.V1)(t&&"string"==typeof t,"sessionId is required and must be a string."),(0,r.V1)(n,i),e.dispatch((0,o.dp)({...n,sessionId:t}))}}},21559:(e,t,n)=>{"use strict";n.d(t,{A:()=>d,_:()=>u});var r=n(85409),o=n(80018),i=n(35467),a=n(47750),s=n(64337),l=n(37506),c=n(40527);const u="The API you're trying to use requires a digital signatures license. Digital Signatures is a component of Nutrient Web SDK and sold separately.";function d(e,t){t.getSignaturesInfo=function(){const{features:t,backend:n}=e.getState();return(0,r.V1)(t.includes(s.Y.DIGITAL_SIGNATURES),u),(0,r.V1)(n),n.getSignaturesInfo().then((t=>(e.dispatch((0,a.K)(t)),t)))},t.signDocument=function(t,n){const{features:o,backend:d}=e.getState();return(0,r.V1)(o.includes(s.Y.DIGITAL_SIGNATURES),u),t&&(0,l.op)(t,d),"STANDALONE"===d?.type?t?.signingData?.privateKey?(0,r.V1)(void 0===n||void 0===t?.signingData?.privateKey,"On a Standalone deployment, when `signaturePreparationData.signingData.privateKey` is set, `twoStepSignatureCallbackOrSigningServiceData` should not be provided."):(0,r.V1)(t?.signingData?.privateKey||"function"==typeof n||(0,c.kJ)(n),"On a Standalone deployment, when `signaturePreparationData.signingData.privateKey` is not provided, `twoStepSignatureCallbackOrSigningServiceData` must be a function or `PSPDFKit.StandaloneSigningServiceData`."):"SERVER"===d?.type&&(0,r.V1)(!n||(0,c.gJ)(n),"On a Server deployment, `twoStepSignatureCallbackOrSigningServiceData` must be a `PSPDFKit.ServerSigningServiceData` object if specified."),e.dispatch((0,i.Zo)()),new Promise(((r,o)=>{e.dispatch((0,a.t)(t,n,(()=>{e.dispatch((0,i.In)()),r()}),(t=>{e.dispatch((0,i.In)()),o(t)})))}))},t.setSignaturesLTV=async function(t){const{features:n,backend:o}=e.getState();(0,r.V1)(n.includes(s.Y.DIGITAL_SIGNATURES),u),(0,r.V1)(!t||Array.isArray(t)&&t.every((e=>Boolean(e instanceof ArrayBuffer&&e.byteLength>0||"string"==typeof e&&e.length>0))),"`certificates` must be an array of strings or ArrayBuffers."),(0,r.V1)(o);const i=await o.setSignaturesLTV(t);return e.dispatch((0,a.K)(i)),i},t.timestampData=async function(t,n){const{features:i,backend:a}=e.getState();(0,r.V1)(i.includes(s.Y.DIGITAL_SIGNATURES),u),(0,r.V1)(a);const l=await a.timestampData(t,n);if(200!=l.response_code)throw new r.uE(`Failed to timestamp data: ${l.error_message}.`);return o.o4.toUint8Array(l.body).buffer}}},34554:(e,t,n)=>{"use strict";n.d(t,{Q:()=>l,A:()=>u});var r=n(85409);function o(e){return(0,r.V1)(Array.isArray(e)&&e.length>0,"Operations must be a non-empty array of operations."),e.forEach((e=>{(0,r.V1)(e.hasOwnProperty("type"),"Invalid operation: no `type` field")})),e}var i=n(67926),a=n(97881),s=n(64337);const l="The API you're trying to use requires a document editing license. Document editing is a component of Nutrient Web SDK and sold separately.",c=["document.change"];function u(e,t){e.getState().eventEmitter.events.push(...c),t.applyOperations=function(t){const{features:n}=e.getState();return(0,r.V1)(n.includes(s.Y.DOCUMENT_EDITING),l),o(t),new Promise(((n,r)=>{e.dispatch((0,i._p)(t,n,r))}))},t.exportPDFWithOperations=async function(t){const{features:n,backend:i}=e.getState();return(0,r.V1)(n.includes(s.Y.DOCUMENT_EDITING),l),o(t),(0,r.V1)(i),i.exportPDFWithOperations(t.map(a.ty))}}},23071:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,Uo:()=>l,xo:()=>c});var r=n(85409),o=n(95248),i=n(51467),a=n(64337);function s(e,t){t.compareDocuments=async function(t,n){const{backend:s,features:u}=e.getState();if("object"!=typeof t||null===t)throw new r.uE("`comparisonDocuments` must be a plain object.");(0,r.V1)("STANDALONE"===s?.type,c),(0,r.V1)(u.includes(a.Y.TEXT_COMPARISON),l);const d=await async function(e){return(0,r.V1)(e.originalDocument.filePath),(0,r.V1)(e.changedDocument.filePath),{originalDocument:{...(0,o.E)(e.originalDocument),arrayBuffer:await(0,i.T7)(e.originalDocument.filePath)},changedDocument:{...(0,o.E)(e.changedDocument),arrayBuffer:await(0,i.T7)(e.changedDocument.filePath)}}}(t);return(0,r.V1)(s),(0,r.V1)("STANDALONE"===s.type,"compareDocuments is only supported in the web standalone."),s.compareDocuments?.(d,n)}}const l="You need the text comparison license component to use this feature.",c="The text comparison feature is only available in Standalone mode."},53080:(e,t,n)=>{"use strict";n.d(t,{A:()=>p,K:()=>d});var r=n(85409),o=n(7737),i=n(59663),a=n(35467),s=n(75439),l=n(37094),c=n(64337),u=n(78236);const d="The API you're trying to use requires a redactions license. Redactions is a component of Nutrient Web SDK and sold separately.";function p(e,t){t.createRedactionsBySearch=async function(t,n){const i=e.getState(),{features:a,backend:p,annotationPresets:h,eventEmitter:f}=i;if(!a.includes(c.Y.REDACTIONS))throw new r.uE(d);(0,r.V1)(t,"You need to pass a search query.");const m=h.get("redaction"),g={...{searchType:l.n.TEXT,searchInAnnotations:!0,caseSensitive:!n||n.searchType!==l.n.TEXT},...n,annotationPreset:{...m,...n&&n.annotationPreset}};(0,r.V1)(p);const v=await p.searchAndRedact(t,g,i);if(v.size)if("STANDALONE"===p.type)(0,o.vA)((()=>{v.forEach((t=>{e.dispatch((0,s.Xs)(t))}))}));else if("SERVER"===p.type&&!p.isUsingInstantProvider()){const{alreadyLoadedPages:e}=p.provider.state,t=v.filter((t=>e.has(t.pageIndex)));i.annotationManager?.backendObjectsCreated(v,u.N),f.emit("annotations.create",t)}return v.map((e=>e.id))},t.applyRedactions=function(){const{features:t}=e.getState();if(!t.includes(c.Y.REDACTIONS))throw new r.uE(d);return e.dispatch((0,a.l8)()),new Promise(((t,n)=>(e.dispatch((0,i.g)((()=>{e.dispatch((0,a.gp)()),t()}),(t=>{e.dispatch((0,a.gp)()),n(t)}))),t)))}}},28567:(e,t,n)=>{"use strict";n.d(t,{A:()=>c,N:()=>s});var r=n(49568),o=n(85409),i=n(6329),a=n(17032);class s extends((0,r.mS)({startTextLineId:null,endTextLineId:null,startPageIndex:null,endPageIndex:null,startNestedContentBlockId:null,endNestedContentBlockId:null,startNode:null,startOffset:null,endNode:null,endOffset:null,getText:null,getSelectedTextLines:null,getBoundingClientRect:null,getSelectedRectsPerPage:null})){}const l=["textSelection.change"];function c(e,t){t.getTextSelection=function(){const t=e.getState(),n=t.currentTextSelection;return n?new s({startTextLineId:n.startTextLineId,endTextLineId:n.endTextLineId,startNestedContentBlockId:n.startNestedContentBlockId,endNestedContentBlockId:n.endNestedContentBlockId,startPageIndex:n.startPageIndex,endPageIndex:n.endPageIndex,startNode:n.textRange?.startNode,startOffset:n.textRange?.startOffset,endNode:n.textRange?.endNode,endOffset:n.textRange?.endOffset,getText:async()=>(0,i.q4)(t,n),getSelectedTextLines:async()=>((0,o.V1)(n.textRange),(0,i._z)(t,n.textRange).valueSeq().toList().flatten(!0)),getBoundingClientRect:async()=>((0,o.V1)(n.textRange),(0,i.Pm)(t,n.textRange)),getSelectedRectsPerPage:async()=>(0,a.l4)(t)}):null};let n=e.getState();const{eventEmitter:r}=n;return r.events.push(...l),e.subscribe((()=>{const o=e.getState();n.currentTextSelection!==o.currentTextSelection&&r.emit("textSelection.change",t.getTextSelection()),n=o}))}},8972:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>B,Lj:()=>L,hz:()=>V});var r=n(7737),o=n(85409),i=n(97444),a=n(37361),s=n(21535),l=n(94045),c=n(26635),u=n(96754),d=n(34554),p=n(63226),h=n(21559),f=n(89055),m=n(42361),g=n(42633),v=n(25028),y=n(26438),b=n(33091),w=n(30235),x=n(95171),S=n(69979),_=n(76117),C=n(58341),E=n(35467),k=n(76943),z=n(53793),P=n(49118),A=n(83720),D=n(83877),T=n(30919),I=n(64337),M=n(78729),N=n(43195),O=n(25e3),R=n(50259);const j=["viewState.change","viewState.currentPageIndex.change","viewState.zoom.change"],F=["cropArea.changeStart","cropArea.changeStop"];function B(e,t){const{eventEmitter:n}=e.getState();let l=!0,c=b();function g(){if(!l)return;if(!n.isListening(j))return;const e=b(),t=c;c=e;const r=t.delete("instance"),o=e.delete("instance"),i=r.remove("zoom").equals(o.remove("zoom")),a=(0,R.f1)(t.zoom,e.zoom);i&&a||(t.currentPageIndex!==e.currentPageIndex&&n.emit("viewState.currentPageIndex.change",e.currentPageIndex),a||n.emit("viewState.zoom.change",e.zoom),n.emit("viewState.change",e,t))}n.events.push(...j),n.events.push(...F);const v=e.subscribe(g);function b(){const n=e.getState();return(0,z.s)(n,t)}return Object.defineProperty(t,"viewState",{enumerable:!0,configurable:!1,get:b}),t.setViewState=function(t){let n=t;if("function"==typeof n&&(n=n.call(null,b())),!(n instanceof _.Pf)){const e="function"==typeof n?"return value of your update function":"supplied argument";throw new o.uE(`The ${e} is not an instance of PSPDFKit.ViewState.`)}l=!1,n=V(n,e),function(e,t,n){const l=(0,R.PT)(n.zoom),c=(0,R.PT)(t.zoom);l!==c&&e.dispatch((0,k.Xy)(l));const g=(0,R.f1)(t.zoom,n.zoom);if(!g){const t=(0,R.Co)(n.zoom)&&"number"==typeof n.zoom.zoomMode?n.zoom.zoomMode:"number"==typeof n.zoom?n.zoom:(0,R.lX)(n.zoom);t===u.d.AUTO?e.dispatch((0,k._m)()):t===u.d.FIT_TO_VIEWPORT?e.dispatch((0,k.mI)()):t===u.d.FIT_TO_WIDTH?e.dispatch((0,k.GL)()):"number"==typeof t&&e.dispatch((0,k.ed)(t))}(0,R.Co)(n.zoom)&&n.zoom.wheelZoomMode&&e.dispatch((0,k.uL)(n.zoom.wheelZoomMode));(0,R.Co)(n.zoom)&&n.zoom.options&&e.dispatch((0,k.Gj)(n.zoom.options));if(t.pagesRotation!==n.pagesRotation){const r=(0,y.Kr)(n.pagesRotation-t.pagesRotation);e.dispatch((0,k.e$)(r))}t.layoutMode!==n.layoutMode&&e.dispatch((0,E.A8)(n.layoutMode));t.scrollMode!==n.scrollMode&&e.dispatch((0,E.r7)(n.scrollMode));t.showToolbar!==n.showToolbar&&(t.showToolbar?e.dispatch((0,E.Ar)()):e.dispatch((0,E.ll)()));t.enableAnnotationToolbar!==n.enableAnnotationToolbar&&(t.enableAnnotationToolbar?e.dispatch((0,E.R)()):e.dispatch((0,E.WB)()));t.allowPrinting!==n.allowPrinting&&(n.allowPrinting?e.dispatch((0,E.JR)()):e.dispatch((0,E.QG)()));t.allowExport!==n.allowExport&&(n.allowExport?e.dispatch((0,E.sx)()):e.dispatch((0,E.b$)()));t.zoomStep!==n.zoomStep&&(!n.zoomStep||n.zoomStep<1?((0,o.R8)(`The zoomStep value must be greater than 1. The value you provided was ${n.zoomStep}.The zoomStep value will be set to default ${a.bL}`),e.dispatch((0,E.Yu)(a.bL))):e.dispatch((0,E.Yu)(n.zoomStep)));t.disablePointSnapping!==n.disablePointSnapping&&"boolean"==typeof n.disablePointSnapping&&e.dispatch((0,E.PP)(n.disablePointSnapping));const v=e.getState();t.showSignatureValidationStatus!==n.showSignatureValidationStatus&&((0,o.V1)(v.features.includes(I.Y.DIGITAL_SIGNATURES),h._),e.dispatch((0,E.B4)(n.showSignatureValidationStatus)));(!0===n.formDesignMode||(0,A.$_)(n.interactionMode))&&((0,o.V1)(v.features.includes(I.Y.FORM_DESIGNER),m.Pf),(0,o.V1)(v.backend&&(0,f.ah)(v.backend),m.z8));!0===n.previewRedactionMode&&(0,o.V1)(v.features.includes(I.Y.REDACTIONS),"The API you're trying to use requires a redactions license. Redactions is a component of Nutrient Web SDK and sold separately.");n.interactionMode===w.O.DOCUMENT_EDITOR&&(0,o.V1)(v.features.includes(I.Y.DOCUMENT_EDITING),d.Q);n.interactionMode===w.O.CONTENT_EDITOR&&(0,o.V1)(v.features.includes(I.Y.CONTENT_EDITING),N.Vb);t.formDesignMode!==n.formDesignMode&&e.dispatch((0,E._e)(n.formDesignMode));if(t.interactionMode!==n.interactionMode){if(null!=n.interactionMode){const o=L(n.interactionMode,v),i=t.interactionMode?L(t.interactionMode,v):null;(n.interactionMode===w.O.DOCUMENT_EDITOR&&(0,f.SH)({features:v.features,backendPermissions:v.backendPermissions,documentPermissions:v.documentPermissions,readOnlyEnabled:v.readOnlyEnabled})||n.interactionMode===w.O.CONTENT_EDITOR&&(0,f.Wm)({features:v.features,backendPermissions:v.backendPermissions,documentPermissions:v.documentPermissions,readOnlyEnabled:v.readOnlyEnabled})||!n.readOnly||o.allowWhenInReadOnlyMode)&&(0,r.vA)((()=>{i&&e.dispatch(i.onLeaveAction()),e.dispatch(o.onEnterAction())}))}else if(null!=t.interactionMode){const n=L(t.interactionMode,v);e.dispatch((0,x.J9)()),e.dispatch(n.onLeaveAction())}n.interactionMode===w.O.INK_SIGNATURE&&(0,i.t6)("PSPDFKit.InteractionMode.INK_SIGNATURE was deprecated and will be removed in future version. Please use PSPDFKit.InteractionMode.SIGNATURE instead.")}t.readOnly!==n.readOnly&&(n.readOnly?e.dispatch((0,E.i0)(T.g.VIA_VIEW_STATE)):e.dispatch((0,E.H$)()));t.showAnnotations!==n.showAnnotations&&(n.showAnnotations?e.dispatch((0,E.I8)()):e.dispatch((0,E.Xh)()));t.showComments!==n.showComments&&((0,o.V1)(v.features.includes(I.Y.COMMENTS),p.Zn),n.showComments?e.dispatch((0,E._b)()):e.dispatch((0,E.BZ)()));t.showAnnotationNotes!==n.showAnnotationNotes&&(n.showAnnotationNotes?e.dispatch((0,E.aJ)()):e.dispatch((0,E.Hj)()));const b={[s.I.ANNOTATIONS]:E.Gz,[s.I.BOOKMARKS]:E.nu,[s.I.DOCUMENT_OUTLINE]:E.dJ,[s.I.THUMBNAILS]:E.RX,[s.I.SIGNATURES]:E.NI,[s.I.ATTACHMENTS]:E.WX,[s.I.LAYERS]:E.eZ,[s.I.CUSTOM]:E.jt};t.sidebarMode!==n.sidebarMode&&(null===n.sidebarMode?e.dispatch((0,E.hP)()):e.dispatch(b[n.sidebarMode]()));t.sidebarPlacement!==n.sidebarPlacement&&e.dispatch((0,E.U$)(n.sidebarPlacement));t.sidebarOptions!==n.sidebarOptions&&e.dispatch((0,E.lA)(n.sidebarOptions));t.spreadSpacing!==n.spreadSpacing&&e.dispatch((0,E.M1)(n.spreadSpacing));t.pageSpacing!==n.pageSpacing&&e.dispatch((0,E.xw)(n.pageSpacing));t.keepFirstSpreadAsSinglePage!==n.keepFirstSpreadAsSinglePage&&e.dispatch((0,E.nx)(n.keepFirstSpreadAsSinglePage));if(t.viewportPadding.horizontal!==n.viewportPadding.horizontal||t.viewportPadding.vertical!==n.viewportPadding.vertical){const t=new _.bR({x:n.viewportPadding.horizontal,y:n.viewportPadding.vertical});e.dispatch((0,E.gK)(t))}t.currentPageIndex!==n.currentPageIndex&&e.dispatch((0,k.Ir)(n.currentPageIndex));t.previewRedactionMode!==n.previewRedactionMode&&e.dispatch((0,E.LV)(n.previewRedactionMode));n.canScrollWhileDrawing&&!t.canScrollWhileDrawing&&e.dispatch((0,E.K5)());!n.canScrollWhileDrawing&&t.canScrollWhileDrawing&&e.dispatch((0,E.b8)());n.keepSelectedTool&&e.dispatch((0,E.YZ)());!n.keepSelectedTool&&t.keepSelectedTool&&e.dispatch((0,E.bf)());if(t.sidebarWidth!==n.sidebarWidth){const t=e.getState(),{containerRect:o}=t,i={width:n.sidebarWidth,height:o.height};(0,r.vA)((()=>{e.dispatch((0,k.xT)(n.sidebarWidth)),e.dispatch((0,k.tV)((0,P.v)(t,i,n.sidebarWidth),!1))})),t.viewportState.viewportRect.set("height",i.height)}t.enableAlwaysScrollToZoom!==n.enableAlwaysScrollToZoom&&"boolean"==typeof n.enableAlwaysScrollToZoom&&(console.warn("Deprecation warning: `viewState.enableAlwaysScrollToZoom` is deprecated and will be removed in a future release. Please use `{wheelZoomMode: PSPDFKit.WheelZoomMode.ALWAYS}` in `viewState.zoom` instead. For more details on `vieState.zoom`, see: https://www.nutrient.io/api/web/PSPDFKit.ViewState.html#zoom"),e.dispatch((0,E.mz)(n.enableAlwaysScrollToZoom)));t.forceRenderWidgetsInAnnotationsOrder!==n.forceRenderWidgetsInAnnotationsOrder&&"boolean"==typeof n.forceRenderWidgetsInAnnotationsOrder&&e.dispatch((0,E.ql)(n.forceRenderWidgetsInAnnotationsOrder));t.prerenderedPageSpreads!==n.prerenderedPageSpreads&&("number"!=typeof n.prerenderedPageSpreads&&null!==n.prerenderedPageSpreads||e.dispatch((0,E.o8)(n.prerenderedPageSpreads)));!0===n.showAIAssistant&&(0,o.V1)(v.aiAssistant.configuration,O.X);t.showAIAssistant!==n.showAIAssistant&&e.dispatch((0,E.q6)(n.showAIAssistant))}(e,b(),n),l=!0,g()},v}function L(e,t){return{[w.O.TEXT_HIGHLIGHTER]:{onEnterAction:E.D8,onLeaveAction:E.iw,allowWhenInReadOnlyMode:!1},[w.O.INK]:{onEnterAction:E.nB,onLeaveAction:E.m9,allowWhenInReadOnlyMode:!1},[w.O.INK_ERASER]:{onEnterAction:E.t4,onLeaveAction:E.cS,allowWhenInReadOnlyMode:!1},[w.O.STAMP_PICKER]:{onEnterAction:E.A5,onLeaveAction:E.LD,allowWhenInReadOnlyMode:!1},[w.O.STAMP_CUSTOM]:{onEnterAction:E.BQ,onLeaveAction:E.LD,allowWhenInReadOnlyMode:!1},[w.O.INK_SIGNATURE]:{onEnterAction:E.tJ,onLeaveAction:E._Q,allowWhenInReadOnlyMode:!1},[w.O.SIGNATURE]:{onEnterAction:E.tJ,onLeaveAction:E._Q,allowWhenInReadOnlyMode:!1},[w.O.SHAPE_LINE]:{onEnterAction:(0,E.mp)(_.MU,w.O.SHAPE_LINE),onLeaveAction:E.NP,allowWhenInReadOnlyMode:!1},[w.O.SHAPE_RECTANGLE]:{onEnterAction:(0,E.mp)(_.Zx,w.O.SHAPE_RECTANGLE),onLeaveAction:E.NP,allowWhenInReadOnlyMode:!1},[w.O.SHAPE_ELLIPSE]:{onEnterAction:(0,E.mp)(_.Go,w.O.SHAPE_ELLIPSE),onLeaveAction:E.NP,allowWhenInReadOnlyMode:!1},[w.O.SHAPE_POLYGON]:{onEnterAction:(0,E.mp)(_.Si,w.O.SHAPE_POLYGON),onLeaveAction:E.NP,allowWhenInReadOnlyMode:!1},[w.O.SHAPE_POLYLINE]:{onEnterAction:(0,E.mp)(_.ug,w.O.SHAPE_POLYLINE),onLeaveAction:E.NP,allowWhenInReadOnlyMode:!1},[w.O.NOTE]:{onEnterAction:E.R8,onLeaveAction:E.w9,allowWhenInReadOnlyMode:!1},[w.O.COMMENT_MARKER]:{onEnterAction:()=>((0,o.V1)(t&&t.features.includes(I.Y.COMMENTS),p.Zn),(0,E.WN)()),onLeaveAction:()=>((0,o.V1)(t&&t.features.includes(I.Y.COMMENTS),p.Zn),(0,E.xS)()),allowWhenInReadOnlyMode:!1},[w.O.TEXT]:{onEnterAction:E.K3,onLeaveAction:E.l$,allowWhenInReadOnlyMode:!1},[w.O.CALLOUT]:{onEnterAction:E.NW,onLeaveAction:E.l$,allowWhenInReadOnlyMode:!1},[w.O.PAN]:{onEnterAction:k.pH,onLeaveAction:k.Ip,allowWhenInReadOnlyMode:!0},[w.O.SEARCH]:{onEnterAction:g.yK,onLeaveAction:g.DP,allowWhenInReadOnlyMode:!0},[w.O.DOCUMENT_EDITOR]:{onEnterAction:E.c1,onLeaveAction:E.$x,allowWhenInReadOnlyMode:!1},[w.O.MARQUEE_ZOOM]:{onEnterAction:E.rf,onLeaveAction:E.GV,allowWhenInReadOnlyMode:!0},[w.O.REDACT_TEXT_HIGHLIGHTER]:{onEnterAction:E.eW,onLeaveAction:E.jQ,allowWhenInReadOnlyMode:!1},[w.O.REDACT_SHAPE_RECTANGLE]:{onEnterAction:E.Gh,onLeaveAction:E.He,allowWhenInReadOnlyMode:!1},[w.O.DOCUMENT_CROP]:{onEnterAction:E.qx,onLeaveAction:E.lH,allowWhenInReadOnlyMode:!1},[w.O.CONTENT_EDITOR]:{onEnterAction:()=>C.eR,onLeaveAction:()=>C.hi,allowWhenInReadOnlyMode:!1},[w.O.FORM_CREATOR]:{onEnterAction:D.SM,onLeaveAction:D.Lg,allowWhenInReadOnlyMode:!1},[w.O.SIGNATURE_WIDGET]:{onEnterAction:()=>(0,E.uT)(w.O.SIGNATURE_WIDGET),onLeaveAction:E.Fl,allowWhenInReadOnlyMode:!1},[w.O.LIST_BOX_WIDGET]:{onEnterAction:()=>(0,E.uT)(w.O.LIST_BOX_WIDGET),onLeaveAction:E.Fl,allowWhenInReadOnlyMode:!1},[w.O.COMBO_BOX_WIDGET]:{onEnterAction:()=>(0,E.uT)(w.O.COMBO_BOX_WIDGET),onLeaveAction:E.Fl,allowWhenInReadOnlyMode:!1},[w.O.CHECKBOX_WIDGET]:{onEnterAction:()=>(0,E.uT)(w.O.CHECKBOX_WIDGET),onLeaveAction:E.Fl,allowWhenInReadOnlyMode:!1},[w.O.RADIO_BUTTON_WIDGET]:{onEnterAction:()=>(0,E.uT)(w.O.RADIO_BUTTON_WIDGET),onLeaveAction:E.Fl,allowWhenInReadOnlyMode:!1},[w.O.TEXT_WIDGET]:{onEnterAction:()=>(0,E.uT)(w.O.TEXT_WIDGET),onLeaveAction:E.Fl,allowWhenInReadOnlyMode:!1},[w.O.BUTTON_WIDGET]:{onEnterAction:()=>(0,E.uT)(w.O.BUTTON_WIDGET),onLeaveAction:E.Fl,allowWhenInReadOnlyMode:!1},[w.O.DATE_WIDGET]:{onEnterAction:()=>(0,E.uT)(w.O.DATE_WIDGET),onLeaveAction:E.Fl,allowWhenInReadOnlyMode:!1},[w.O.LINK]:{onEnterAction:E.tE,onLeaveAction:E.E7,allowWhenInReadOnlyMode:!1},[w.O.DISTANCE]:{onEnterAction:(0,E.mp)(_.MU,w.O.DISTANCE),onLeaveAction:E.NP,allowWhenInReadOnlyMode:!1},[w.O.PERIMETER]:{onEnterAction:(0,E.mp)(_.ug,w.O.PERIMETER),onLeaveAction:E.NP,allowWhenInReadOnlyMode:!1},[w.O.RECTANGLE_AREA]:{onEnterAction:(0,E.mp)(_.Zx,w.O.RECTANGLE_AREA),onLeaveAction:E.NP,allowWhenInReadOnlyMode:!1},[w.O.ELLIPSE_AREA]:{onEnterAction:(0,E.mp)(_.Go,w.O.ELLIPSE_AREA),onLeaveAction:E.NP,allowWhenInReadOnlyMode:!1},[w.O.POLYGON_AREA]:{onEnterAction:(0,E.mp)(_.Si,w.O.POLYGON_AREA),onLeaveAction:E.NP,allowWhenInReadOnlyMode:!1},[w.O.MULTI_ANNOTATIONS_SELECTION]:{onEnterAction:E.K,onLeaveAction:E.Vh,allowWhenInReadOnlyMode:!1},[w.O.MEASUREMENT_SETTINGS]:{onEnterAction:E.bT,onLeaveAction:E.Sz,allowWhenInReadOnlyMode:!1},[w.O.MEASUREMENT]:{onEnterAction:E.zB,onLeaveAction:E.gw,allowWhenInReadOnlyMode:!1},[w.O.ATTACHMENT_PREVIEW]:{onEnterAction:()=>(0,E.uT)(w.O.ATTACHMENT_PREVIEW),onLeaveAction:E.Fl,allowWhenInReadOnlyMode:!0}}[e]}function V(e,t){const n=t?t.getState():null;if("number"!=typeof e.currentPageIndex)throw new o.uE("The currentPageIndex set on the new ViewState is not of type `number`.");if(e.disablePointSnapping&&"boolean"!=typeof e.disablePointSnapping)throw new o.uE("The disablePointSnapping set on the new ViewState is not of type `boolean`.");if(n&&(e.currentPageIndex<0||e.currentPageIndex>=n.totalPages))throw new o.uE(`The currentPageIndex set on the new ViewState is out of bounds.\nThe index is expected to be in the range from 0 to ${n.totalPages-1} (inclusive).`);if("number"==typeof e.zoom){if(n){const{viewportState:t}=n,r=(0,S.m0)(t),i=(0,S.m9)(t);if(e.zoom<r)throw new o.uE(`The supplied zoom level is smaller than the minimum zoom level for this document (${r})`);if(e.zoom>i)throw new o.uE(`The supplied zoom level is larger than the maximum zoom level for this document (${i})`)}}else if("object"==typeof e.zoom){if(!(0,S.Zg)(e.zoom.zoomMode))throw new o.uE("The supplied zom.zoomMode is not valid.\n    Valid zoom modes are: PSPDFKit.ZoomMode.AUTO, PSPDFKit.ZoomMode.FIT_TO_VIEWPORT, or PSPDFKit.ZoomMode.FIT_TO_WIDTH");if(!(0,S.qA)(e.zoom.wheelZoomMode))throw new o.uE("The supplied zoom.wheelZoomMode is not valid.\n    Valid scroll zoom modes are: PSPDFKit.WheelZoomMode.WITH_CTRL, PSPDFKit.WheelZoomMode.ALWAYS, or PSPDFKit.WheelZoomMode.DISABLED");if(void 0!==e.zoom.options?.enableGestureZoom&&"boolean"!=typeof e.zoom.options.enableGestureZoom)throw new o.uE("The supplied zoom.options.enableGestureZoom is not valid.\n    Valid enableGestureZoom values are: true or false");if(void 0!==e.zoom.options?.enableKeyboardZoom&&"boolean"!=typeof e.zoom.options.enableKeyboardZoom)throw new o.uE("The supplied zoom.options.enableKeyboardZoom is not valid.\n    Valid enableKeyboardZoom values are: true or false")}else if(e.zoom!==u.d.AUTO&&e.zoom!==u.d.FIT_TO_WIDTH&&e.zoom!==u.d.FIT_TO_VIEWPORT)throw new o.uE("The supplied zoom mode is not valid.\n    Valid zoom modes are: PSPDFKit.ZoomMode.AUTO, PSPDFKit.ZoomMode.FIT_TO_VIEWPORT, or PSPDFKit.ZoomMode.FIT_TO_WIDTH");if(e.pagesRotation%90!=0)throw new o.uE("The supplied pagesRotation must be a multiple of 90°.");if(e.layoutMode!==b.S.SINGLE&&e.layoutMode!==b.S.DOUBLE&&e.layoutMode!==b.S.AUTO)throw new o.uE("The supplied layout mode is not valid.\nValid layout modes are: PSPDFKit.LayoutMode.SINGLE, PSPDFKit.LayoutMode.DOUBLE, or PSPDFKit.LayoutMode.AUTO");if(e.scrollMode!==v.V.CONTINUOUS&&e.scrollMode!==v.V.PER_SPREAD&&e.scrollMode!==v.V.DISABLED)throw new o.uE("The supplied scroll mode is not valid.\nValid scroll modes are: PSPDFKit.ScrollMode.CONTINUOUS, PSPDFKit.ScrollMode.PER_SPREAD, or PSPDFKit.ScrollMode.DISABLED");if(e.showSignatureValidationStatus!==c.y.IF_SIGNED&&e.showSignatureValidationStatus!==c.y.HAS_ERRORS&&e.showSignatureValidationStatus!==c.y.HAS_WARNINGS&&e.showSignatureValidationStatus!==c.y.NEVER)throw new o.uE("The supplied mode for showing the digital signature validation UI is not valid.");if("number"!=typeof e.spreadSpacing||e.spreadSpacing<0)throw new o.uE(`Expected \`spreadSpacing\` to be a positive number but instead got: ${e.spreadSpacing}.`);if("number"!=typeof e.pageSpacing||e.pageSpacing<0)throw new o.uE(`Expected \`pageSpacing\` to be a positive number but instead got: ${e.pageSpacing}.`);if("boolean"!=typeof e.keepFirstSpreadAsSinglePage)throw new o.uE(`Expected \`keepFirstSpreadAsSinglePage\` to be a boolean but instead got: ${e.keepFirstSpreadAsSinglePage}.`);if("number"!=typeof e.viewportPadding.vertical)throw new o.uE("The supplied viewportPadding has a missing property: vertical not found");if("number"!=typeof e.viewportPadding.horizontal)throw new o.uE("The supplied viewportPadding has a missing property: horizontal not found");if(e.viewportPadding.vertical<0||e.viewportPadding.horizontal<0)throw new o.uE("The supplied viewportPadding horizontal or vertical value is not a positive number");if("boolean"!=typeof e.allowPrinting)throw new o.uE("`allowPrinting` must be of type boolean.");if(n&&!0===e.allowPrinting&&!n.backendPermissions.downloadingAllowed)throw new o.uE("To enable printing, you need to authenticate the `download` permission in the JWT (See: https://pspdfkit.com/guides/web/server-backed/client-authentication/)");if("boolean"!=typeof e.allowExport)throw new o.uE("`allowExport` must be of type boolean.");if(n&&!0===e.allowExport&&!n.backendPermissions.downloadingAllowed)throw new o.uE("To enable PDF export, you need to authenticate the `download` permission in the JWT (See: https://pspdfkit.com/guides/web/server-backed/client-authentication/)");if("boolean"!=typeof e.previewRedactionMode)throw new o.uE("`previewRedactionMode` must be of type boolean.");if("boolean"!=typeof e.readOnly)throw new o.uE("`readOnly` must be of type boolean.");if(!n||!1!==e.readOnly||M.JY.IGNORE_DOCUMENT_PERMISSIONS||!n.backendPermissions.readOnly&&(n.documentPermissions.annotationsAndForms||n.documentPermissions.fillForms)||(e=e.set("readOnly",!0),(0,o.R8)("It’s not possible to change PSPDFKit.ViewState#readOnly to false if the current backend or document permissions do not allow it. For document permissions, you can override this behavior by setting the PSPDFKit.Options.IGNORE_DOCUMENT_PERMISSIONS option before initializing PSPDFKit.")),e.interactionMode&&Object.values(w.O).indexOf(e.interactionMode)<0)throw new o.uE(`The supplied interaction mode is not valid.\nValid view modes are: ${Object.keys(w.O).map((e=>`PSPDFKit.InteractionMode.${e}`)).join(", ")}`);if(null!=e.interactionMode){const t=L(e.interactionMode,n);null!=n&&(e.interactionMode===w.O.DOCUMENT_EDITOR&&(0,f.SH)({features:n.features,backendPermissions:n.backendPermissions,documentPermissions:n.documentPermissions,readOnlyEnabled:n.readOnlyEnabled})||e.interactionMode===w.O.CONTENT_EDITOR&&(0,f.Wm)({features:n.features,backendPermissions:n.backendPermissions,documentPermissions:n.documentPermissions,readOnlyEnabled:n.readOnlyEnabled}))||!e.readOnly||t.allowWhenInReadOnlyMode||((0,o.R8)(`Can’t set PSPDFKit.ViewState#interactionMode to ${e.interactionMode} when PSPDFKit.ViewState#readOnly is true.`),e=e.set("interactionMode",null))}if("boolean"!=typeof e.showAnnotations)throw new o.uE("`showAnnotations` must be of type boolean.");if(!1===e.showAnnotations&&!1===e.readOnly)throw new o.uE("In order to hide annotations, you must also enable read only mode.");if("boolean"!=typeof e.showComments)throw new o.uE("`showComments` must be of type boolean.");if("boolean"!=typeof e.showAnnotationNotes)throw new o.uE("`showAnnotationNotes` must be of type boolean.");if(e.sidebarMode&&Object.values(s.I).indexOf(e.sidebarMode)<0)throw new o.uE(`The supplied sidebar mode is not valid.\nValid view modes are: ${Object.keys(s.I).map((e=>`PSPDFKit.SidebarMode.${e}`)).join(", ")} or \`null\`.`);if(Object.values(l.A).indexOf(e.sidebarPlacement)<0)throw new o.uE(`The supplied sidebar placement is not valid.\nValid placements are: ${Object.keys(l.A).map((e=>`PSPDFKit.SidebarPlacement.${e}`)).join(" or ")}.`);if(!e.sidebarOptions?.[s.I.ANNOTATIONS]&&!e.sidebarOptions?.[s.I.LAYERS])throw new o.uE("The supplied sidebar options configuration is missing the required `PSPDFKit.SidebarMode.ANNOTATIONS` or `PSPDFKit.SidebarMode.LAYERS` property.");if(e.sidebarOptions?.[s.I.ANNOTATIONS]&&!Array.isArray(e.sidebarOptions[s.I.ANNOTATIONS]?.includeContent))throw new o.uE("The `includeContent` property is mandatory for the `PSPDFKit.SidebarMode.ANNOTATIONS` sidebar options and it must be an array");if(e.sidebarOptions?.[s.I.LAYERS]&&!e.sidebarOptions?.[s.I.LAYERS]?.lockedLayers)throw new o.uE("The `lockedLayers` property is mandatory for the `PSPDFKit.SidebarMode.LAYERS` sidebar options and it must be an array");if(e.sidebarOptions?.[s.I.LAYERS]&&!Array.isArray(e.sidebarOptions[s.I.LAYERS]?.lockedLayers))throw new o.uE("The `lockedLayers` property is mandatory for the `PSPDFKit.SidebarMode.LAYERS` sidebar options and it must be an array");if(e.sidebarOptions?.[s.I.LAYERS]&&!e.sidebarOptions?.[s.I.LAYERS]?.iconsAlignment)throw new o.uE("The `iconsAlignment` property is mandatory for the `PSPDFKit.SidebarMode.LAYERS` sidebar options and it must be either `PSPDFKit.Alignment.START` or `PSPDFKit.Alignment.END` ");if(e.sidebarOptions?.[s.I.ANNOTATIONS]&&e.sidebarOptions[s.I.ANNOTATIONS].includeContent.length&&e.sidebarOptions[s.I.ANNOTATIONS].includeContent.some((e=>!(e.prototype instanceof _.YH)&&e!==_.Mw)))throw new o.uE("The `includeContent` array can only contain annotations classes or `PSPDFKit.Comment` as possible values");if(e.sidebarOptions?.[s.I.LAYERS]&&e.sidebarOptions[s.I.LAYERS].lockedLayers.length&&e.sidebarOptions[s.I.LAYERS].lockedLayers.some((e=>"number"!=typeof e)))throw new o.uE("The `lockedLayers` array can only contain numbers as possible values");if("boolean"!=typeof e.canScrollWhileDrawing)throw new o.uE("`canScrollWhileDrawing` must be of type boolean.");if("boolean"!=typeof e.keepSelectedTool)throw new o.uE("`keepSelectedTool` must be of type boolean.");if("number"!=typeof e.sidebarWidth)throw new o.uE("`sidebarWidth` must be of type number.");if("boolean"!=typeof e.enableAlwaysScrollToZoom)throw new o.uE("`enableAlwaysScrollToZoom` must be of type boolean.");if("boolean"!=typeof e.forceRenderWidgetsInAnnotationsOrder)throw new o.uE("`forceRenderWidgetsInAnnotationsOrder` must be of type boolean.");if("number"!=typeof e.prerenderedPageSpreads&&null!==e.prerenderedPageSpreads)throw new o.uE("`prerenderedPageSpreads` must be of type number or null.");if("boolean"!=typeof e.showAIAssistant)throw new o.uE(`Expected \`showAIAssistant\` to be a boolean but instead got: ${e.showAIAssistant}.`);return e}},5217:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,c:()=>a});var r=n(37433);const o=new(n(76117).Uw),i=(0,r.Z0)({name:"attachments",initialState:o,reducers:{createAttachment:(e,t)=>{const{hash:n,attachment:r}=t.payload;return e.setIn(["attachments",n],r)}}}),{createAttachment:a}=i.actions,s=i.reducer},61712:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>h,P5:()=>u});var r=n(85409),o=n(49568),i=n(79154),a=n(37361),s=n(36558),l=n(38849),c=n(25789);const u={SELECTION_CHANGE:"textComparison.selectionChange",SCROLL_LOCK:"textComparison.scrollLock",COMPARISON_SIDEBAR_VISIBILITY_CHANGE:"textComparison.comparisonSidebarVisibilityChange"},d=Object.values(u),p=(0,l.A)();class h{constructor(e){const t=e.dispatch,n=e.stateRef,l=e.instanceA,h=e.instanceB,f=e.stateRef.current.eventEmitter,m=e.unmount;f.events.push(...d);const g=async(e,t)=>{const n=[];for(let t=0;t<e.totalPageCount;t++){const r=await e.getAnnotations(t);n.push(...r)}await e.update((0,o.B8)(n.map((e=>e.set("color",t)))))};this.getScrollLock=()=>n.current.isScrollLockEnabled,this.getComparisonVisibility=()=>n.current.isComparisonVisible,this.getCurrentChangeIndex=()=>n.current.currentChangeIndex,this.getToolbarItems=()=>n.current.toolbarItems.toJS(),this.getInnerToolbarItems=()=>n.current.innerToolbarItems.toJS(),this.getChanges=()=>n.current.textComparisonChanges.toJS(),this.addEventListener=(e,t)=>{try{f.on(e,t)}catch(e){throw new r.uE(e)}},this.removeEventListener=(e,t)=>{try{f.off(e,t)}catch(e){throw new r.uE(e)}},this.unload=()=>{const{mainShadowRoot:e,container:t}=n.current,r=e.querySelector(`.${a.ti}`),o=e.querySelector(".PSPDFKit-DocumentA-Container"),s=e.querySelector(".PSPDFKit-DocumentB-Container");o&&(0,i.G)(o),s&&(0,i.G)(s),r&&m();const{parentNode:l}=t;l&&l.removeChild(t)},this.setComparisonSidebarConfig=async e=>{t(s.A.setComparisonSidebarConfig(e));const{insertionColor:n,deletionColor:r}=e?.diffColors||{};r&&await g(l,r),n&&await g(h,n)},this.setScrollLock=e=>{p("boolean"==typeof e,"`setScrollLock` expects a boolean as an argument"),t(s.A.setScrollLock(e)),f.emit(u.SCROLL_LOCK,e)},this.setComparisonVisibility=e=>{p("boolean"==typeof e,"`setComparisonVisibility` expects a boolean as an argument"),t(s.A.setComparisonVisibility(e)),f.emit(u.COMPARISON_SIDEBAR_VISIBILITY_CHANGE,e)},this.setCurrentChangeIndex=e=>{p("number"==typeof e,"`setCurrentChangeIndex` expects a number as an argument");const r=n.current.textComparisonChanges,o=(0,c.a_)({textComparisonChanges:r,changeIndex:e,instanceA:l,instanceB:h,eventEmitter:f});t(s.A.setCurrentChangeIndex(o))},this.setToolbarItems=e=>{let r;"function"==typeof e?r=e(n.current.toolbarItems.toJS()):Array.isArray(e)?r=e:p(!1,"`setToolbarItems` expects an array or a function as an argument");const i=(0,c.M5)(r).toArray();t(s.A.setToolbarItems((0,o.B8)(i)))},this.setInnerToolbarItems=e=>{let r;"function"==typeof e?r=e(n.current.innerToolbarItems.toJS()):Array.isArray(e)?r=e:p(!1,"`setInnerToolbarItems` expects an array or a function as an argument");const i=(0,c.cU)(r).toArray();l.setToolbarItems(i),h.setToolbarItems(i),t(s.A.setInnerToolbarItems((0,o.B8)(i)))},this.jumpToChange=e=>{p("number"==typeof e,"`jumpToChange` expects a number as an argument");const r=n.current.textComparisonChanges,o=(0,c.a_)({textComparisonChanges:r,changeIndex:e,instanceA:l,instanceB:h,eventEmitter:f});return t(s.A.setCurrentChangeIndex(o)),o},this.goToPreviousChange=()=>{const e=n.current,r=e.textComparisonChanges,o=e.currentChangeIndex,i=(0,c.d3)({textComparisonChanges:r,changeIndex:o,instanceA:l,instanceB:h,eventEmitter:f});return t(s.A.setCurrentChangeIndex(i)),i},this.goToNextChange=()=>{const e=n.current,r=e.textComparisonChanges,o=e.currentChangeIndex,i=(0,c.Vf)({textComparisonChanges:r,changeIndex:o,instanceA:l,instanceB:h,eventEmitter:f});return t(s.A.setCurrentChangeIndex(i)),i}}}},6914:(e,t,n)=>{"use strict";n.d(t,{lx:()=>be,qx:()=>we,Tw:()=>Se});var r=n(85409),o=n(41294),i=n(45849),a=n(5338),s=n(96540),l=n(32485),c=n.n(l),u=n(84387),d=n(29843),p=n.n(d),h=n(49568),f=n(9945),m=n(20576),g=n(56907),v=n(58534),y=n(40027),b=n(94394),w=n.n(b),x=n(35295),S=n(8521),_=n(37555),C=n(2815);const E=(e,t)=>{const{instanceA:n,instanceB:r}=(0,g.jT)(),o=(0,s.useRef)(!1);(0,S.useGranularEffect)((()=>{if(!n||!r||!t)return;const i=(t,n)=>{const r=t.viewState[e];if(r===n.viewState[e])return;o.current=!0;const i=n.viewState.set(e,r);n.setViewState(i),o.current=!1},a=()=>{o.current||i(n,r)},s=()=>{o.current||i(r,n)};return n.addEventListener("viewState.change",a),r.addEventListener("viewState.change",s),i(n,r),()=>{n.removeEventListener("viewState.change",a),r.removeEventListener("viewState.change",s)}}),[n?.viewState,r?.viewState,t,e],[])};var k=n(61712),z=n(36558);const P=e=>e.contentDocument.querySelector(".PSPDFKit-Scroll"),A=(e,t)=>{e.addEventListener("scroll",t)},D=(e,t)=>{e.removeEventListener("scroll",t)};var T=n(55236),I=n(25789);const{createToggleIconButtonToolbarItem:M,createActionIconButtonToolbarItem:N}=v.XD;function O(){const{isScrollLockEnabled:e,isComparisonVisible:t,instancesLoaded:n,instanceA:r,instanceB:o,textComparisonChanges:i,currentChangeIndex:a,lastSelectedChangeIndex:l,dispatch:c,eventEmitter:u}=(0,g.jT)(),d=(()=>{const{instanceA:e,instanceB:t,isScrollLockEnabled:n,dispatch:r,eventEmitter:o}=(0,g.jT)(),i=(0,s.useRef)(null),a=(0,s.useRef)(!1),l=(0,s.useCallback)(((e,t)=>{if(!e||!t||!n)return;const r=P(e),o=P(t);if(!r||!o)return;const i=r.scrollHeight-r.clientHeight,s=r.scrollWidth-r.clientWidth,l=o.scrollHeight-o.clientHeight,c=o.scrollWidth-o.clientWidth,u=i>0?r.scrollTop/i:0,d=s>0?r.scrollLeft/s:0;a.current=!0,requestAnimationFrame((()=>{o.scrollTo({left:d*c,top:u*l,behavior:"auto"})}))}),[n]);return(0,s.useEffect)((()=>{if(!e||!t)return;const r=P(e),o=P(t);if(!r||!o)return;const s=()=>{a.current?a.current=!1:n?l(e,t):i.current=e},c=()=>{a.current?a.current=!1:n?l(t,e):i.current=t};return A(r,s),A(o,c),n&&i.current&&(i.current===e?l(e,t):l(t,e)),()=>{D(r,s),D(o,c)}}),[e,t,n,l]),(0,s.useCallback)((()=>{const a=!n;r(z.A.setScrollLock(a)),o.emit(k.P5.SCROLL_LOCK,a),a&&i.current&&(i.current===e?l(e,t):l(t,e))}),[n,r,o,e,l,t])})(),{formatMessage:p}=(0,C.tz)();return E("zoom",e),E("interactionMode",e),(0,s.useMemo)((()=>({[T.rh.COMPARISON_CHANGES]:{toolbarItem:M(T.rh.COMPARISON_CHANGES,{icon:x.CPw,className:"PSPDFKit-Toolbar-Button-Comparison-Changes","aria-label":p(t?R.hideComparisonChanges:R.showComparisonChanges),isSelected:t,isDisabled:!n,onPress:()=>{c(z.A.setComparisonVisibility(!t)),u.emit(k.P5.COMPARISON_SIDEBAR_VISIBILITY_CHANGE,!t)}})},[T.rh.SCROLL_LOCK]:{toolbarItem:M(T.rh.SCROLL_LOCK,{className:"PSPDFKit-Toolbar-Button-Scroll-Lock","aria-label":p(e?R.scrollUnlock:R.scrollLock),icon:x.XAi,isSelected:e,isDisabled:!n,onPress:()=>{d()}})},[T.rh.PREV_CHANGE]:{toolbarItem:N(T.rh.PREV_CHANGE,{icon:x.A60,className:"PSPDFKit-Toolbar-Button-Previous-Change","aria-label":p(R.previousChange),isDisabled:!n,onPress:()=>{const e=(0,I.d3)({textComparisonChanges:i,changeIndex:-1===a&&l?l:a,instanceA:r,instanceB:o,eventEmitter:u});c(z.A.setCurrentChangeIndex(e))}})},[T.rh.NEXT_CHANGE]:{toolbarItem:N(T.rh.NEXT_CHANGE,{icon:x.flY,className:"PSPDFKit-Toolbar-Button-Next-Change","aria-label":p(R.nextChange),isDisabled:!n,onPress:()=>{const e=(0,I.Vf)({textComparisonChanges:i,changeIndex:-1===a&&l?l:a,instanceA:r,instanceB:o,eventEmitter:u});c(z.A.setCurrentChangeIndex(e))}})}})),[t,p,n,e,c,u,d,i,a,l,r,o])}const R=(0,C.YK)({firstChange:{id:"first-change",defaultMessage:"First Change",description:"Go to the first change in the text comparison"},previousChange:{id:"previous-change",defaultMessage:"Previous Change",description:"Go to the previous change in the text comparison"},lastChange:{id:"last-change",defaultMessage:"Last Change",description:"Go to the last change in the text comparison"},nextChange:{id:"next-change",defaultMessage:"Next Change",description:"Go to next change"},scrollLock:{id:"scroll-lock",defaultMessage:"Lock Document Scroll",description:"Lock or unlock the document scroll"},scrollUnlock:{id:"scroll-unlock",defaultMessage:"Unlock Document Scroll",description:"Lock or unlock the document scroll"},showComparisonChanges:{id:"show-comparison-changes",defaultMessage:"Show Sidebar",description:"Show comparison changes in the text comparison"},hideComparisonChanges:{id:"hide-comparison-changes",defaultMessage:"Hide Sidebar",description:"Hide comparison changes in the text comparison"}});var j=n(91842),F=n(93440),B=n(78729),L=n(62252),V=n(97028);const{useResponsiveToolbarItems:K,createButtonSelectToolbarItem:H,createActionIconButtonToolbarItem:$}=v.XD,U=`(max-width: ${B.JY.BREAKPOINT_MD_TOOLBAR}px)`;var W=n(82047),q=n(16019);const G=()=>{const{ui:e}=(0,g.jT)(),t=e?.[W.Rq.PrimaryToolbar],n=(0,s.useRef)(null),{items:o,setExpandedResponsiveGroup:i}=function(){const{toolbarItems:e,frameWindow:t}=(0,g.jT)(),[n,r]=(0,s.useState)(null),o=O(),{formatMessage:i}=(0,u.useI18n)(),[a,l]=s.useState({}),c=t,d=(0,s.useMemo)((()=>(0,L.mZ)(e,o,!1,(()=>{}))),[o,e]),p=(0,s.useMemo)((()=>Object.fromEntries(Object.entries(d).filter((e=>{let[,t]=e;return!t.isHidden&&(t.mediaQueries||[]).every((e=>c?.matchMedia(e).matches))})))),[d,a,c]);(0,S.useGranularEffect)((()=>{const e=Object.values(p).flatMap((e=>e.mediaQueries)).filter(Boolean).filter((e=>"all"!==e?.trim())).concat(U);if(e.length){const t=c?.matchMedia(e.join(", ")),n=()=>{l({})};return t?.addEventListener("change",n),n(),()=>{t?.removeEventListener("change",n)}}}),[c],[p]);const h=(0,_.lb)(),[f,m]=(0,s.useState)({}),v=(0,s.useCallback)(((e,t)=>{const n=p[e].toolbarItem;"props"in n&&n.props.onPress({pointerType:h}),m((n=>({...n,[t]:e})))}),[p,h]),b=(0,s.useMemo)((()=>{let e=Object.values(p);const t=w()(e,(e=>e.dropdownGroup||"default"));for(const n in t){const r=t[n];if("default"===n||r.length<=1)continue;const o=e.findIndex((e=>e.dropdownGroup===n)),a=r.find((e=>"props"in e.toolbarItem&&e.toolbarItem.props.isSelected))?.toolbarItem.name||f[n],s=r.filter((e=>!e.isHidden)).map((e=>{(0,y.V1)("props"in e.toolbarItem,"Toolbar item doesn't have props");const{name:t,props:{icon:n,label:r,"aria-label":o}}=e.toolbarItem,i=r||o;return(0,y.V1)(i,"Toolbar item must have a label or aria-label"),{id:t,icon:n,label:i}})),l=H(n,{items:s,isDisabled:r.every((e=>"props"in e.toolbarItem&&e.toolbarItem.props.isDisabled)),selectedKey:a||s[0].id,className:(0,y.xW)("PSPDFKit-Toolbar-Dropdown PSPDFKit-Toolbar-DropdownGroup",`PSPDFKit-Toolbar-DropdownGroup-${(0,V.ZH)(n)}`),onButtonSelectionChange:e=>{let{selectedKey:t}=e;return v(t,n)},isSelected:r.some((e=>"props"in e.toolbarItem&&e.toolbarItem.props.isSelected)),optionClassName:(e,t)=>{let{isButton:n,isSelected:o}=t;const i=r.find((t=>t.toolbarItem.name===e.id));return(0,y.xW)(i&&"props"in i.toolbarItem&&i.toolbarItem.props.className,{"PSPDFKit-Tool-Button PSPDFKit-Toolbar-Button":n,"PSPDFKit-Tool-Button-active PSPDFKit-Toolbar-Button-active":o&&n,"PSPDFKit-Input-Dropdown-Item":!n})},onSelectionChange:e=>v(e,n),hideLabel:!0,moreAriaLabel:i(j.G.accessibilityLabelDropdownGroupToggle,{arg0:(0,L.NO)(n)}),triggerClassName:"PSPDFKit-Input-Dropdown-Button","aria-label":(0,L.NO)(n)});e[o]={toolbarItem:l,responsiveGroup:r.map((e=>e.responsiveGroup))?.[0],isHidden:r.every((e=>e.isHidden))},e=e.filter((e=>e.dropdownGroup!==n))}const o=w()(e,(e=>e.responsiveGroup||"default"));for(const t in o)"default"!==t&&e.find((e=>e.toolbarItem.name===t))&&(e=n===t?[{toolbarItem:$("back",{icon:x.JJd,onPress:()=>{r(null)},className:"PSPDFKit-Tool-Button","aria-label":i(F.A.close)})},{toolbarItem:{type:"spacer"}},...e.filter((e=>e.responsiveGroup===t))]:e.filter((e=>e.responsiveGroup!==t)));return Object.fromEntries(e.map((e=>[e.toolbarItem.name,e])))}),[n,p,i,v,f]),{items:C}=K({itemsStore:Object.fromEntries(Object.entries(b).map((e=>{let[t,n]=e;return[t,n.toolbarItem]}))),mobileItems:Object.keys(b),emulateMobileBehaviourInTablet:!0,device:c?.matchMedia(U).matches?"mobile":"desktop"});return{items:[...C,{type:"separator",name:"separator-last"}],setExpandedResponsiveGroup:r}}();(0,s.useEffect)((()=>{const e=n.current,t=e=>{(0,r.B6)(e.target)||e.preventDefault()};return e?.addEventListener("pointerdown",t),()=>{e?.removeEventListener("pointerdown",t)}}),[]);const a=(0,s.useMemo)((()=>({items:o,name:"primary-toolbar",className:"PSPDFKit-Toolbar",style:{borderBottom:`1px solid ${m.G6.color.border.medium}`,zIndex:3},"data-block-id":"primary-toolbar",ref:n,onEscape:()=>{i(null)}})),[o,i]);return(0,q.Q)(W.Rq.PrimaryToolbar,t,a,null)};var Z=n(4046),Y=n(27913),X=n.n(Y),J=n(74848);const Q=function(){const{textComparisonChanges:e,currentChangeIndex:t,lastSelectedChangeIndex:n,dispatch:r,instanceA:o,instanceB:i,comparisonSidebarConfig:a}=(0,g.jT)(),l=s.useCallback((()=>{const a=(0,I.d3)({textComparisonChanges:e,changeIndex:-1===t&&n?n:t,instanceA:o,instanceB:i});return r(z.A.setCurrentChangeIndex(a)),String(a)}),[r,t,o,i,e,n]),u=s.useCallback((()=>{const a=(0,I.Vf)({textComparisonChanges:e,changeIndex:-1===t&&n?n:t,instanceA:o,instanceB:i});return r(z.A.setCurrentChangeIndex(a)),String(a)}),[r,t,o,i,e,n]),d=s.useCallback((t=>((0,I.a_)({textComparisonChanges:e,changeIndex:t,instanceA:o,instanceB:i}),r(z.A.setCurrentChangeIndex(Number(t))),t)),[r,o,i,e]);return(0,J.jsx)("div",{className:c()(X().innerDocumentContainer,X().diffViewer,"PSPDFKit-Text-Comparison-Sidebar"),children:(0,J.jsx)(Z.U5,{items:e,onJumpToChange:d,onPreviousChange:l,onNextChange:u,selectedKey:t,diffColors:a?.diffColors})})};var ee;const te=()=>{const{isComparisonVisible:e}=(0,g.jT)();return(0,J.jsxs)(u.PanelGroup,{direction:"horizontal",children:[e&&(0,J.jsxs)(J.Fragment,{children:[ee||(ee=(0,J.jsx)(u.Panel,{defaultSize:25,order:1,children:(0,J.jsx)(Q,{})})),(0,J.jsx)(u.PanelResizeHandle,{style:{backgroundColor:m.G6.color.border.subtle}})]}),(0,J.jsx)(u.Panel,{order:2,children:(0,J.jsx)("div",{className:c()(X().innerDocumentContainer,be)})}),(0,J.jsx)(u.PanelResizeHandle,{style:{backgroundColor:m.G6.color.border.subtle}}),(0,J.jsx)(u.Panel,{order:3,children:(0,J.jsx)("div",{className:c()(X().innerDocumentContainer,we)})})]})};var ne=n(23071),re=n(70778),oe=n(76117),ie=n(31428),ae=n.n(ie),se=n(38119),le=n(72776),ce=(n(50994),n(36431),n(37361)),ue=n(82079);function de(e){let{loadDispatch:t}=e;const{dispatch:n,stateRef:r}=(0,g.jT)();return s.useEffect((()=>{t({dispatch:n,stateRef:r})}),[n,t,r]),null}var pe=n(23440);function he(e){let{locale:t,onError:n,children:r}=e;return(0,J.jsx)(C.Dk,{locale:t,messages:pe.A[t],onError:n,children:r})}var fe,me,ge,ve=n(14631),ye=n(64337);const be="PSPDFKit-DocumentA-Container",we="PSPDFKit-DocumentB-Container";function xe(e,t){switch(e){case f.S.AUTO:return t?.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";case f.S.DARK:return"dark";case f.S.LIGHT:return"light"}}async function Se(e){(0,I.bB)(e);const t=(0,I.M5)(e.toolbarItems),n=(0,I.cU)(e.innerToolbarItems);let s;const l=new Promise((e=>{s=e})),d=(0,ve.r$)(e),f=(0,ve.Nh)(e),m=(0,ve.h1)(e,f,p());(0,ue.Uw)(f);const v=(0,ue.g$)();d.appendChild(v);const[y,[b,w]]=await Promise.all([(0,I.Xq)(e.locale),(0,ue.$4)(v,f,m,!1,!0)]);await w,(0,ve.Of)(b);const x=b.querySelector(`.${ce.ti}`);(0,r.V1)(x,"Internal PSPDFKit Error: Mount Target could not be found in contentDocument. Please contact support@nutrient.io");const S=new se.A,_={instanceA:null,instanceB:null,textComparisonChanges:(0,h.B8)(),currentChangeIndex:-1,lastSelectedChangeIndex:-1,isScrollLockEnabled:!0,isComparisonVisible:e.comparisonSidebarConfig?.openByDefault??!0,eventEmitter:S,ui:le.M,toolbarItems:t,frameWindow:window,instancesLoaded:!1,innerToolbarItems:n,comparisonSidebarConfig:e.comparisonSidebarConfig||null,mainShadowRoot:b,container:v,rootElement:d},C=(0,a.createRoot)(x);C.render((0,J.jsxs)(g.w2,{initialState:_,children:[fe||(fe=(0,J.jsx)(o.s6,{id:"a11y-status-message",role:"status","aria-live":"polite","aria-relevant":"additions text"})),(0,J.jsx)(u.ThemeProvider,{theme:xe(e.theme,window),children:(0,J.jsx)(u.PortalContainerProvider,{portalContainer:b.querySelector(`.${ce.Jf}`),children:(0,J.jsx)(he,{locale:y,onError:e=>{e.code},children:(0,J.jsx)("div",{className:c()(ae().withLayers,ae().relativeContainer),children:(0,J.jsxs)(i.S,{children:[me||(me=(0,J.jsx)(G,{})),(0,J.jsx)(de,{loadDispatch:e=>{let{dispatch:t,stateRef:n}=e;s({dispatch:t,stateRef:n})}}),(0,J.jsx)("div",{className:X().container,children:ge||(ge=(0,J.jsx)(te,{}))})]})})})})})]}));const{dispatch:E,stateRef:P}=await l,{instanceA:A,instanceB:D}=await(0,I.XB)(e,y,n,b,{dispatch:E,getTextComparisonState:()=>P.current}),T=new oe.Hv({filePath:e.documentA,pageIndexes:[[0,A.totalPageCount-1]]}),M=new oe.Hv({filePath:e.documentB,pageIndexes:[[0,D.totalPageCount-1]]}),N=new oe.zT(re.d.TEXT,{numberOfContextWords:2}),O=await A.compareDocuments({originalDocument:T,changedDocument:M},N),R=await(0,I.Lk)(O,A,D,e.comparisonSidebarConfig?.diffColors),j=A._store.getState().features,F=A._store.getState().backend;return(0,r.V1)("STANDALONE"===F?.type,ne.xo),(0,r.V1)(j.includes(ye.Y.TEXT_COMPARISON),ne.Uo),E(z.A.setInstances({instanceA:A,instanceB:D})),E(z.A.setTextComparisonChanges(R.changes)),new k.Ay({dispatch:E,stateRef:P,instanceA:A,instanceB:D,unmount:C.unmount})}},56907:(e,t,n)=>{"use strict";n.d(t,{w2:()=>l,jT:()=>c});var r=n(96540),o=n(36558);function i(e,t){switch(t.type){case o.a.SET_INSTANCES:return{...e,instanceA:t.payload.instanceA,instanceB:t.payload.instanceB,instancesLoaded:!0};case o.a.SET_TOOLBAR_ITEMS:return{...e,toolbarItems:t.payload};case o.a.SET_INNER_TOOLBAR_ITEMS:return{...e,innerToolbarItems:t.payload};case o.a.SET_COMPARISON_SIDEBAR_CONFIG:return{...e,comparisonSidebarConfig:t.payload};case o.a.SET_TEXT_COMPARISON_CHANGES:return{...e,textComparisonChanges:t.payload};case o.a.SET_CURRENT_CHANGE_INDEX:return{...e,lastSelectedChangeIndex:e.currentChangeIndex,currentChangeIndex:t.payload};case o.a.SET_SCROLL_LOCK:return{...e,isScrollLockEnabled:t.payload};case o.a.SET_COMPARISON_VISIBILITY:return{...e,isComparisonVisible:t.payload};default:return e}}var a=n(74848);const s=(0,r.createContext)(null);function l(e){let{initialState:t,children:n}=e;const[o,l]=(0,r.useReducer)(i,t),c=(0,r.useRef)(o);return(0,r.useEffect)((()=>{c.current=o}),[o]),(0,a.jsx)(s.Provider,{value:{...o,dispatch:l,stateRef:c},children:n})}function c(){const e=(0,r.useContext)(s);if(!e)throw new Error("useTextComparisonContext must be used within a TextComparisonProvider");return e}},36558:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,a:()=>r});const r={SET_INSTANCES:"SET_INSTANCES",SET_TOOLBAR_ITEMS:"SET_TOOLBAR_ITEMS",SET_COMPARISON_SIDEBAR_CONFIG:"SET_COMPARISON_SIDEBAR_CONFIG",SET_SCROLL_LOCK:"SET_SCROLL_LOCK",SET_COMPARISON_VISIBILITY:"SET_COMPARISON_VISIBILITY",SET_TEXT_COMPARISON_CHANGES:"SET_TEXT_COMPARISON_CHANGES",SET_CURRENT_CHANGE_INDEX:"SET_CURRENT_CHANGE_INDEX",SET_INNER_TOOLBAR_ITEMS:"SET_INNER_TOOLBAR_ITEMS"},o={setInstances:e=>({type:r.SET_INSTANCES,payload:e}),setToolbarItems:e=>({type:r.SET_TOOLBAR_ITEMS,payload:e}),setInnerToolbarItems:e=>({type:r.SET_INNER_TOOLBAR_ITEMS,payload:e}),setComparisonSidebarConfig:e=>({type:r.SET_COMPARISON_SIDEBAR_CONFIG,payload:e}),setScrollLock:e=>({type:r.SET_SCROLL_LOCK,payload:e}),setComparisonVisibility:e=>({type:r.SET_COMPARISON_VISIBILITY,payload:e}),setTextComparisonChanges:e=>({type:r.SET_TEXT_COMPARISON_CHANGES,payload:e}),setCurrentChangeIndex:e=>({type:r.SET_CURRENT_CHANGE_INDEX,payload:e})}},25789:(e,t,n)=>{"use strict";n.d(t,{Lk:()=>z,Vf:()=>D,d3:()=>A,a_:()=>P,XB:()=>_,Xq:()=>S,Yg:()=>T,hh:()=>I,bB:()=>C,cU:()=>k,M5:()=>E});var r=n(85409),o=n(49568),i=n(4046),a=n(36558),s=n(14631),l=n(6914),c=n(38849),u=n(88051),d=n(67867);const p=(0,c.A)("TextComparisonInnerToolbarItem"),h=[...d.n.map((e=>e.type)),"custom"];var f=n(3322),m=n(63638),g=n(82079),v=n(76117),y=n(46952),b=n(91109),w=n(61712);let x=function(e){return e.inserted="Inserted",e.deleted="Deleted",e.replaced="Replaced",e}({});async function S(e){let t;try{t=(0,m.vy)(e||navigator.language)}catch(e){t="en"}return await(0,m.G2)(t),t}async function _(e,t,n,o,i){const a=o.querySelector(`.${l.lx}`),c=o.querySelector(`.${l.qx}`);(0,r.V1)(a||!c,"Could not find the root element for Text Comparison instances.");const u=(0,s.p0)(a),d=(0,s.p0)(c),{_documentAConfig:p,_documentBConfig:h,styleSheets:f,theme:m,...v}=e,y=(0,g.Hh)({...v,document:v.documentA,container:u,toolbarItems:n.toJS(),locale:t,isTextComparison:!0,theme:m,textComparisonSharedState:i,...p}),b=(0,g.Hh)({...v,document:v.documentB,container:d,toolbarItems:n.toJS(),locale:t,isTextComparison:!0,textComparisonSharedState:i,theme:m,...h}),[w,x]=await Promise.all([y,b]);return{instanceA:w,instanceB:x}}function C(e){(0,r.V1)("object"==typeof e,"`textComparisonConfiguration` should be a `PSPDFKit.TextComparisonConfiguration` plain object."),(0,r.V1)("string"==typeof e.container||e.container instanceof HTMLElement,"`container` must be either a string selector or an HTMLElement."),(0,r.V1)("string"==typeof e.documentA||e.documentA instanceof ArrayBuffer,"`documentA` must be either a string URL or an ArrayBuffer."),(0,r.V1)("string"==typeof e.documentB||e.documentB instanceof ArrayBuffer,"`documentB` must be either a string URL or an ArrayBuffer.")}const E=e=>{let t=b.A.toJS();return e&&(t=e),t.forEach((e=>{(0,f.t)(e)})),(0,o.B8)(t)},k=e=>{let t=d.A.toJS();return e&&(t=e,t.forEach((e=>{(e=>{const{type:t,mediaQueries:n}=e;p("string"==typeof t,"Mandatory `type` is either missing or not a `string`"),(0,u.t)({...e,type:"custom"},p),p(h.includes(t),`Invalid built-in type \`${t}\`. Choose one from ${h.join(", ")}`),n&&(p(Array.isArray(n),"`mediaQueries` must be an `array`"),p(n.length>0,"`mediaQueries` must not be an empty `array`"),n.forEach((e=>{p("string"==typeof e,`Invalid media query: \`${e}\``);const t=e.split("(").length,n=e.split(")").length;0===t&&0===n||p(t===n,`Detected unbalanced parenthesis in the media query: ${e}`)})))})(e)}))),(0,o.B8)(t)};async function z(e,t,n,r){const a=[],s=[],l=[],{insertionColor:c,deletionColor:u}=r||{};for(const t of e?.documentComparisonResults||[]){const{originalPageIndex:e,changedPageIndex:n,comparisonResults:r}=t;for(const t of r)if("text"===t.type)for(const r of t.hunks){const t=[],d=[];let p,h="",f="",m=0,g=0,b=(0,o.NZ)();for(const l of r.operations)switch(l.type){case"delete":{const t=new v.rw({left:l.originalTextBlocks[0].rect[0],top:l.originalTextBlocks[0].rect[1],width:l.originalTextBlocks[0].rect[2],height:l.originalTextBlocks[0].rect[3]}),n=new v.ax({id:(0,y.A)(),pageIndex:e,rects:(0,o.B8)([t]),boundingBox:t,color:u||i.h_});s.push(n),d.push(n),f+=l.text,g++,b=b.add("delete");break}case"insert":{const e=new v.rw({left:l.changedTextBlocks[0].rect[0],top:l.changedTextBlocks[0].rect[1],width:l.changedTextBlocks[0].rect[2],height:l.changedTextBlocks[0].rect[3]}),r=new v.ax({id:(0,y.A)(),pageIndex:n,rects:(0,o.B8)([e]),boundingBox:e,color:c||i.eG});a.push(r),t.push(r),h+=l.text,m++,b=b.add("insert");break}case"equal":b=b.add("equal")}p=b.has("insert")&&b.has("delete")?x.replaced:b.has("insert")?x.inserted:b.has("delete")?x.deleted:"equal",(t.length>0||d.length>0)&&l.push({insertionAnnotations:(0,o.B8)(t),deletionAnnotations:(0,o.B8)(d),pages:(0,o.NZ)([...t.map((e=>e.pageIndex)),...d.map((e=>e.pageIndex))]),insertedText:h,deletedText:f,insertionCount:m,deletionCount:g,operationType:p})}}return await t.create(s),await n.create(a),{changes:(0,o.B8)(l)}}function P(e){let{textComparisonChanges:t,changeIndex:n,instanceA:r,instanceB:o,eventEmitter:i}=e;const a=t.get(n);if(i?.emit(w.P5.SELECTION_CHANGE,n),!a)return n;const s=a.deletionAnnotations&&!a.deletionAnnotations.isEmpty(),l=a.insertionAnnotations&&!a.insertionAnnotations.isEmpty();if(s||r?.setSelectedAnnotations(),l||o?.setSelectedAnnotations(),s){const e=a.deletionAnnotations.first();if(r?.jumpToRect(e.pageIndex,e.boundingBox),r?.setSelectedAnnotations(a.deletionAnnotations.map((e=>e.id))),!l)return n}if(l){const e=a.insertionAnnotations.first();if(o?.jumpToRect(e.pageIndex,e.boundingBox),o?.setSelectedAnnotations(a.insertionAnnotations.map((e=>e.id))),!s)return n}return n}function A(e){let{textComparisonChanges:t,changeIndex:n,instanceA:r,instanceB:o,eventEmitter:i}=e;const a=t.size-1,s=n<=0?a:n-1;return P({textComparisonChanges:t,changeIndex:s,instanceA:r,instanceB:o,eventEmitter:i}),s}function D(e){let{textComparisonChanges:t,changeIndex:n,instanceA:r,instanceB:o,eventEmitter:i}=e;const a=n===t.size-1?0:n+1;return P({textComparisonChanges:t,changeIndex:a,instanceA:r,instanceB:o,eventEmitter:i}),a}function T(e){const t=e.textComparisonSharedState?.getTextComparisonState(),n=e?.textComparisonSharedState?.dispatch;(0,r.V1)(t);const{instanceA:o,instanceB:i,currentChangeIndex:s}=t,l=e.instance,c=l===o?i:o;(0,r.V1)(c);const u=c.getSelectedAnnotations();if(u&&u.size>0){const e=t.textComparisonChanges.get(s);(0,r.V1)(e);(l===o?e.insertionCount>0:e.deletionCount>0)&&c.setSelectedAnnotations(null)}n?.(a.A.setCurrentChangeIndex(-1))}function I(e,t){const n=e.textComparisonSharedState?.getTextComparisonState(),o=e?.textComparisonSharedState?.dispatch;(0,r.V1)(n);const i=e.instance===n.instanceA,s=n.textComparisonChanges.findIndex((e=>i?e.deletionAnnotations.some((e=>t===e.id)):e.insertionAnnotations.some((e=>t===e.id))));-1!==s&&(P({textComparisonChanges:n.textComparisonChanges,changeIndex:s,instanceA:n.instanceA,instanceB:n.instanceB,eventEmitter:n.eventEmitter}),o?.(a.A.setCurrentChangeIndex(s)))}},43556:(e,t,n)=>{"use strict";n.d(t,{w:()=>o});n(96540);var r=n(74848);function o(e){let{content:t}=e;return(0,r.jsx)(r.Fragment,{children:t})}},60416:(e,t,n)=>{"use strict";n.d(t,{j:()=>o});n(96540);var r=n(74848);function o(e){let{content:t}=e;return(0,r.jsx)(r.Fragment,{children:t})}},26133:(e,t,n)=>{"use strict";n.d(t,{z:()=>o});n(96540);var r=n(74848);function o(e){let{content:t}=e;return(0,r.jsx)(r.Fragment,{children:t})}},4046:(e,t,n)=>{"use strict";n.d(t,{U5:()=>p,eG:()=>u,h_:()=>c});var r=n(96540),o=n(76117),i=n(82047),a=n(16019),s=n(56907),l=n(95342);const c=new o.Q1({r:255,g:201,b:203}),u=new o.Q1({r:192,g:216,b:239}),d={insertionColor:u,deletionColor:c,insertionBackgroundColor:u.darker(50),deletionBackgroundColor:c.darker(50)};function p(e){let{items:t,onPreviousChange:n,onNextChange:o,onJumpToChange:c,selectedKey:u,diffColors:p}=e;const{ui:h}=(0,s.jT)(),f=h?.[i.Rq.DiffViewer],m=(0,r.useMemo)((()=>{const e=function(e){const t=e.insertionBackgroundColor||e.insertionColor?.darker(50),n=e.deletionBackgroundColor||e.deletionColor?.darker(50);return{...e,insertionBackgroundColor:t,deletionBackgroundColor:n}}(p||d);return(0,l.ZG)(e).reduce(((t,n)=>(t[n]=e[n]?.toHex()||d[n].toHex(),t)),{})}),[p]),g=r.useMemo((()=>t.reduce(((e,t,n)=>{const r=t.pages.first();return e[r]||(e[r]={id:`page-${String(r)}`,pageNumber:r+1,children:[]}),e[r].children.push({id:String(n),label:t.operationType,data:{deletionContent:t.deletedText,insertionContent:t.insertedText,deletedChangesCount:t.deletionCount,insertedChangesCount:t.insertionCount}}),e}),[]).filter(Boolean)),[t]),v=(0,r.useMemo)((()=>({"aria-label":"Changes",changeSectionHeaderClassName:"PSPDFKit-Sidebar-DiffViewer-Page-Number",changeSectionClassName:"PSPDFKit-Sidebar-DiffViewer-Container",shouldShowChangesCount:!0,onJumpToChange:c,onNextChange:o,onPreviousChange:n,selectedKey:String(u),changes:g,diffColors:m})),[g,m,c,o,n,u]);return(0,a.Q)(i.Rq.DiffViewer,f,v,null)}},56540:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o});n(96540);var r=n(74848);function o(e){let{content:t}=e;return(0,r.jsx)(r.Fragment,{children:t})}},55236:(e,t,n)=>{"use strict";n.d(t,{e4:()=>a,fG:()=>o,gL:()=>i,rh:()=>r});let r=function(e){return e.NOTE="note",e.SIGNATURE="signature",e.IMAGE="image",e.STAMP="stamp",e.LINK="link",e.INK="ink",e.INK_ERASER="ink-eraser",e.HIGHLIGHTER="highlighter",e.TEXT_HIGHLIGHTER="text-highlighter",e.LINE="line",e.ARROW="arrow",e.RECTANGLE="rectangle",e.CLOUDY_RECTANGLE="cloudy-rectangle",e.DASHED_RECTANGLE="dashed-rectangle",e.ELLIPSE="ellipse",e.CLOUDY_ELLIPSE="cloudy-ellipse",e.DASHED_ELLIPSE="dashed-ellipse",e.POLYGON="polygon",e.CLOUDY_POLYGON="cloudy-polygon",e.DASHED_POLYGON="dashed-polygon",e.POLYLINE="polyline",e.TEXT="text",e.CALLOUT="callout",e.FORM_CREATOR="form-creator",e.REDACT_RECTANGLE="redact-rectangle",e.REDACT_TEXT_HIGHLIGHTER="redact-text-highlighter",e.COMMENT="comment",e.COMMENT_MARKER="comment-marker",e.DOCUMENT_CROP="document-crop",e.DOCUMENT_EDITOR="document-editor",e.DOCUMENT_COMPARISON="document-comparison",e.EXPORT_PDF="export-pdf",e.CONTENT_EDITOR="content-editor",e.AI_ASSISTANT="ai-assistant",e.LINEARIZED_DOWNLOAD_INDICATOR="linearized-download-indicator",e.PAGER="pager",e.SIDEBAR_THUMBNAILS="sidebar-thumbnails",e.SIDEBAR_DOCUMENT_OUTLINE="sidebar-document-outline",e.SIDEBAR_LAYERS="sidebar-layers",e.SIDEBAR_ANNOTATIONS="sidebar-annotations",e.SIDEBAR_BOOKMARKS="sidebar-bookmarks",e.SIDEBAR_SIGNATURES="sidebar-signatures",e.SIDEBAR_ATTACHMENTS="sidebar-attachments",e.ANNOTATE="annotate",e.MEASURE="measure",e.PAN="pan",e.ZOOM_OUT="zoom-out",e.ZOOM_IN="zoom-in",e.MULTI_ANNOTATIONS_SELECTION="multi-annotations-selection",e.ZOOM_MODE="zoom-mode",e.MARQUEE_ZOOM="marquee-zoom",e.UNDO="undo",e.REDO="redo",e.LAYOUT_CONFIG="layout-config",e.SEARCH="search",e.PRINT="print",e.DEBUG="debug",e.SCROLL_LOCK="scroll-lock",e.PREV_CHANGE="prev-change",e.NEXT_CHANGE="next-change",e.COMPARISON_CHANGES="comparison-changes",e}({}),o=function(e){return e.NOTE="note",e.LINK="link",e.STAMP="stamp",e.INK="ink",e.IMAGE="image",e.HIGHLIGHTER="highlighter",e.TEXT_HIGHLIGHTER="text-highlighter",e.TEXT="text",e.CALLOUT="callout",e.LINE="line",e.ARROW="arrow",e.RECTANGLE="rectangle",e.CLOUDY_RECTANGLE="cloudy-rectangle",e.DASHED_RECTANGLE="dashed-rectangle",e.ELLIPSE="ellipse",e.CLOUDY_ELLIPSE="cloudy-ellipse",e.DASHED_ELLIPSE="dashed-ellipse",e.POLYGON="polygon",e.CLOUDY_POLYGON="cloudy-polygon",e.DASHED_POLYGON="dashed-polygon",e.POLYLINE="polyline",e.REDACTION="redaction",e.MEASUREMENT="measurement",e.ES_SIGNATURE="es-signature",e.INK_SIGNATURE="ink-signature",e}({}),i=function(e){return e.IMAGE="image",e.INK="ink",e.SHAPES="shapes",e.REDACTION="redaction",e.TEXT="text",e.SIDEBAR="sidebar",e.EDITOR="editor",e}({});const a=48},91842:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});const r=(0,n(84387).defineMessages)({panMode:{id:"panMode",defaultMessage:"Pan Mode"},prevPage:{id:"prevPage",defaultMessage:"Previous Page",description:"Button to go to the previous page"},nextPage:{id:"nextPage",defaultMessage:"Next Page",description:"Button to go to the next page"},goToPage:{id:"goToPage",defaultMessage:"Go to Page",description:"label for the go to page selector"},zoomIn:{id:"zoomIn",defaultMessage:"Zoom In",description:"Zoom in the document"},zoomOut:{id:"zoomOut",defaultMessage:"Zoom Out",description:"Zoom out the document"},fitPage:{id:"fitPage",defaultMessage:"Fit Page",description:"Fit the page in the viewer based on the bigger dimension"},fitWidth:{id:"fitWidth",defaultMessage:"Fit Width",description:"Fit the page in the document based on its width"},undo:{id:"undo",defaultMessage:"Undo",description:"Undo a previous annotation operation"},redo:{id:"redo",defaultMessage:"Redo",description:"Redo a previous annotation operation"},thumbnails:{id:"thumbnails",defaultMessage:"Thumbnails",description:"Show or hide the thumbnails sidebar"},outline:{id:"outline",defaultMessage:"Outline",description:"Show or hide the document outline sidebar"},print:{id:"print",defaultMessage:"Print"},selectAFileForImage:{id:"selectAFileForImage",defaultMessage:"Select a file for the new image annotation."},selectImage:{id:"selectImage",defaultMessage:"Select Image",description:"Label for the select image field"},newAnnotationCreated:{id:"newAnnotationCreated",defaultMessage:"New {arg0} annotation created.",description:"A new annotation was created."},marqueeZoom:{id:"marqueeZoom",defaultMessage:"Marquee Zoom",description:"Enables Marquee Zoom mode which allows to zoom to a rectangle"},accessibilityLabelDropdownGroupToggle:{id:"accessibilityLabelDropdownGroupToggle",defaultMessage:"{arg0} tools, toggle menu",description:"Accessible label to announce the button to open and close a toolbar menu which contains tools like shapes or ink annotations buttons."},searchResultOf:{id:"searchResultOf",defaultMessage:"{arg0} of {arg1}",description:"Shows the current search result number. E.g. 1 of 10"},documentDownloading:{id:"documentDownloading",defaultMessage:"Downloading document. Once it is fully downloaded you will be able to fully interact with it.",description:"Tooltip for spinner displayed when the document is still downloading"}})},62252:(e,t,n)=>{"use strict";n.d(t,{NO:()=>f,mZ:()=>h});n(96540);var r=n(40027),o=n(32485),i=n.n(o),a=n(20249),s=n.n(a),l=n(55364),c=n.n(l),u=n(51630),d=n(74848);function p(e,t,n){const o="props"in e?e.props:{};if(["ReactElement","Block"].includes(e.type))return o;const a=t.icon?()=>((0,r.V1)(t.icon,"Icon must be provided"),(0,d.jsx)(u.A,{type:"custom",icon:t.icon})):o.icon;return{...o,id:t.id||o.id,className:i()(o.className,t.className),"aria-label":t.title||o["aria-label"],onPress:e=>{t.onPress?.(e),o.onPress?.(e),n(e)},isSelected:t.selected||o.isSelected,isDisabled:t.disabled||o.isDisabled,icon:a}}function h(e,t,n,o){const i={};let a=0;for(const h of e.toJS()){var l;if("custom"===h.type){const e=`custom-${h.id||s()(h.title)}`;if(h.node){const{className:t,node:n,onPress:o,icon:a}=h,s=a?()=>((0,r.V1)(a,"Icon must be provided"),l||(l=(0,d.jsx)(u.A,{type:"custom",icon:a}))):void 0;i[e]={dropdownGroup:h.dropdownGroup,toolbarItem:{name:e,type:"DomNodeRenderer",props:{className:t,node:n,onPress:o,icon:s}}}}else{const t={className:h.className,isDisabled:h.disabled||n,onPress:t=>{"keyboard"===t.pointerType&&h.onKeyPress?h.onKeyPress(t,e,void 0,!0):h.onPress?.(t,e,void 0,"keyboard"===t.pointerType)}};h.icon?i[e]={dropdownGroup:h.dropdownGroup,toolbarItem:{name:e,type:"ActionIconButton",props:{...t,icon:()=>((0,r.V1)(h.icon,"Icon must be provided"),(0,d.jsx)(u.A,{type:"custom",icon:h.icon})),"aria-label":h.title}}}:i[e]={dropdownGroup:h.dropdownGroup,toolbarItem:{name:e,type:"ActionButton",props:{...t,label:h.title}}}}}else if("spacer"===h.type){const e=a>0?`spacer-${String(a)}`:"spacer";i[e]={toolbarItem:{name:e,type:"spacer"}},a++}else{const e=t[h.type];e&&(i[h.type]=c()({},e,h,{toolbarItem:{props:p(e.toolbarItem,h,(t=>{o?.(t,e.toolbarItem.name)}))}}))}}return i}function f(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Toolbar";return e[0].toUpperCase()+e.slice(1)}},40556:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(2815).YK)({approved:{id:"approved",defaultMessage:"Approved",description:"Approved Stamp Annotation"},notApproved:{id:"notApproved",defaultMessage:"Not Approved",description:"Not Approved Stamp Annotation"},draft:{id:"draft",defaultMessage:"Draft",description:"Draft Stamp Annotation"},final:{id:"final",defaultMessage:"Final",description:"Final Stamp Annotation"},completed:{id:"completed",defaultMessage:"Completed",description:"Completed Stamp Annotation"},confidential:{id:"confidential",defaultMessage:"Confidential",description:"Confidential Stamp Annotation"},forPublicRelease:{id:"forPublicRelease",defaultMessage:"For Public Release",description:"For Public Release Stamp Annotation"},notForPublicRelease:{id:"notForPublicRelease",defaultMessage:"Not For Public Release",description:"Not For Public Release Stamp Annotation"},forComment:{id:"forComment",defaultMessage:"For Comment",description:"ForComment Stamp Annotation"},void:{id:"void",defaultMessage:"Void",description:"Void Stamp Annotation"},preliminaryResults:{id:"preliminaryResults",defaultMessage:"Preliminary Results",description:"Preliminary Results Stamp Annotation"},informationOnly:{id:"informationOnly",defaultMessage:"Information Only",description:"Information Only Stamp Annotation"},rejected:{id:"rejected",defaultMessage:"Rejected",description:"Rejected Stamp Annotation"},accepted:{id:"accepted",defaultMessage:"Accepted",description:"Accepted Stamp Annotation"},initialHere:{id:"initialHere",defaultMessage:"Initial Here",description:"Initial Here Stamp Annotation"},signHere:{id:"signHere",defaultMessage:"Sign Here",description:"Sign Here Stamp Annotation"},witness:{id:"witness",defaultMessage:"Witness",description:"Witness Stamp Annotation"},asIs:{id:"asIs",defaultMessage:"As Is",description:"As Is Stamp Annotation"},departmental:{id:"departmental",defaultMessage:"Departmental",description:"Departmental Stamp Annotation"},experimental:{id:"experimental",defaultMessage:"Experimental",description:"Experimental Stamp Annotation"},expired:{id:"expired",defaultMessage:"Expired",description:"Expired Stamp Annotation"},sold:{id:"sold",defaultMessage:"Sold",description:"Sold Stamp Annotation"},topSecret:{id:"topSecret",defaultMessage:"Top Secret",description:"TopSecret Stamp Annotation"},revised:{id:"revised",defaultMessage:"Revised",description:"Revised Stamp Annotation"},custom:{id:"custom",defaultMessage:"Custom",description:"Custom Stamp Annotation"},stampAnnotationTemplatesDialog:{id:"stampAnnotationTemplatesDialog",defaultMessage:"Stamp Annotation Templates",description:"Stamp Annotation Templates Dialog"},stampAnnotationTemplatesDialogDescription:{id:"stampAnnotationTemplatesDialogDesc",defaultMessage:"This dialog lets you select a stamp annotation to insert into the document or create a custom stamp annotation with your own text.",description:"Stamp Annotation Templates Dialog Description"}})},95148:(e,t,n)=>{"use strict";n.d(t,{f:()=>o});n(96540);var r=n(74848);function o(e){let{content:t}=e;return(0,r.jsx)(r.Fragment,{children:t})}},79154:(e,t,n)=>{"use strict";n.d(t,{G:()=>s});var r=n(85409),o=n(82079),i=n(90741),a=n(9939);function s(e){if(null==e)throw new r.uE("Expected `PSPDFKit.unload` to be called with an `HTMLElement | string | PSPDFKit.Instance`\ninstead none was provided.");if("string"==typeof e){const t=e;if(null===(e=document.querySelector(t)))throw new r.uE(`Couldn't find a container which matches the provided selector \`${t}\``)}else if(!((0,a.sb)(e)||e instanceof i.A))throw new r.uE("Expected `PSPDFKit.unload` to be called with a valid `target` argument.\nAllowed values for `target` are: `HTMLElement | string | PSPDFKit.Instance`.\n");let t;return e instanceof i.A?t=o.Sj.current.get(e):o.lH.current.has(e)&&(t=o.lH.current.get(e)),!!t&&(t(),!0)}},89574:(e,t,n)=>{"use strict";n.d(t,{Ab:()=>Pe,BU:()=>U,Bv:()=>V,C5:()=>b,Cx:()=>ge,DV:()=>W,F:()=>Q,I2:()=>$,K1:()=>I,KQ:()=>H,Kb:()=>Z,Mq:()=>ne,Nc:()=>X,O_:()=>E,RG:()=>B,S1:()=>O,Sk:()=>ue,T1:()=>M,WT:()=>z,X4:()=>N,Xm:()=>_,Y5:()=>pe,YM:()=>Ee,Z6:()=>A,Zr:()=>ve,_w:()=>he,bN:()=>te,bu:()=>G,cu:()=>Ae,dA:()=>ae,e3:()=>ye,g8:()=>de,gf:()=>P,hI:()=>C,iT:()=>ce,kO:()=>k,l3:()=>F,lC:()=>w,lF:()=>fe,lG:()=>ee,lW:()=>me,m5:()=>Y,mH:()=>D,mN:()=>R,ml:()=>ze,my:()=>q,nH:()=>J,o4:()=>K,oG:()=>Se,oH:()=>we,oZ:()=>xe,or:()=>Ce,r3:()=>L,rJ:()=>x,rU:()=>se,rX:()=>T,sS:()=>ke,s_:()=>be,sz:()=>ie,tE:()=>j,uM:()=>De,wp:()=>le,yQ:()=>_e});var r=n(49568),o=n(85409),i=n(6163),a=n(76117),s=n(83145),l=n(21055),c=n(37361),u=n(78729),d=n(50960),p=n(93440),h=n(24159),f=n(47055),m=n(97028),g=n(81083),v=n(30235),y=n(57892);function b(e){try{const t=localStorage.getItem(`persistedColors${e}`);if(t)try{return JSON.parse(t).map((e=>{let{color:t,localization:n}=e;return{color:new h.A({r:t?.r,g:t?.g,b:t?.b}),localization:n}}))}catch(e){return(0,o.R8)(`Wrong color data stored in localStorage: ${e.message}`),[]}return[]}catch(e){return[]}}function w(e,t){return(0,o.V1)("number"==typeof t.pageIndex,"Annotation has no valid pageIndex"),(0,o.V1)(!e.annotations.has(t.id),`Annotation ID (${t.id}) is already known`),t.pageIndex<0||t.pageIndex>=e.pages.size?((0,o.R8)(`Tried to add an annotation (ID: ${t.id}) with an out of bounds page index. This annotation was skipped.`),e):(t instanceof a.vU&&(0,o.V1)(L(t.imageAttachmentId),"imageAttachmentId is not a valid hash or pdfObjectId"),e.withMutations((e=>{t.id||(t=t.set("id",I())),e.setIn(["annotations",t.id],t),e.isAPStreamRendered?.(t)&&!J(t)&&e.updateIn(["invalidAPStreams",t.pageIndex],(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.NZ)()).add(t.id)})),S(e,t),(0,f.XN)(e,t)})))}function x(e,t){(0,o.V1)("string"==typeof t.id,"Annotation has no valid id");const n=e.annotations.get(t.id);return(0,o.V1)(n instanceof a.YH,`Annotation with id ${t.id} not found and thus the update was ignored.`),e.withMutations((o=>{null!=t.pageIndex&&S(o,t),!0!==t.noView&&!0!==t.hidden||!o.selectedAnnotationIds.has(t.id)||(o.delete("selectedAnnotationMode"),o.set("interactionMode",null),o.update("selectedAnnotationIds",(e=>e.filterNot((e=>e===t.id)))),o.update("hoverAnnotationIds",(e=>e.delete(t.id)))),"number"!=typeof n.buttonIconUpdatedAt&&"number"==typeof t.buttonIconUpdatedAt&&o.invalidAPStreams.get(t.pageIndex)?.has(t.id)&&o.updateIn(["invalidAPStreams",t.pageIndex],(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.NZ)()).delete(t.id)})),o.setIn(["annotations",t.id],t);const i=e.activeAnnotationNote;i&&i.parentAnnotation?.id===t.id&&(t.note?t.note!==i.text.value&&o.set("activeAnnotationNote",i.set("text",{format:"plain",value:t.note})):o.set("activeAnnotationNote",null));const s=e.hoverAnnotationNote;s&&s.parentAnnotation?.id===t.id&&(t.note?t.note!==s.text.value&&o.set("hoverAnnotationNote",s.set("text",{format:"plain",value:t.note})):o.set("hoverAnnotationNote",null));const l=ie((()=>o),t,(()=>{const{formFields:e}=o,i=t instanceof a.sb?e.get(t.formFieldName):null;o.isAPStreamRendered?.(t)&&te(n,t)&&P(n)===P(t)&&function(e,t){if(e instanceof a.sb&&t instanceof a.$h)return!1;return!0}(t,i)&&o.updateIn(["invalidAPStreams",t.pageIndex],(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.NZ)()).add(t.id)}))}));(0,f.d0)(o,n,t,l)}))}function S(e,t){return e.updateIn(["pages",t.pageIndex,"annotationIds"],(e=>e.add(t.id)))}function _(e,t){const n=e.annotations.get(t);return e.withMutations((r=>{r.selectedAnnotationIds.has(t)&&(r.delete("selectedAnnotationMode"),r.interactionMode!==v.O.FORM_CREATOR&&r.set("interactionMode",null)),r.update("annotations",(e=>e.delete(t))),r.update("selectedAnnotationIds",(e=>e.filterNot((e=>e===t)))),r.update("annotationPresetIds",(e=>e.filterNot((e=>e===t)))),r.update("hoverAnnotationIds",(e=>e.delete(t))),null!==r.annotationsIdsToDelete&&r.update("annotationsIdsToDelete",(e=>e?.filterNot((e=>e===t))));const o=e.activeAnnotationNote;o&&o.parentAnnotation?.id===t&&r.set("activeAnnotationNote",null);const i=e.hoverAnnotationNote;if(i&&i.parentAnnotation?.id===t&&r.set("hoverAnnotationNote",null),null==n?.pageIndex)return;r.deleteIn(["pages",n.pageIndex,"annotationIds",t]);const a=e.invalidAPStreams.get(n.pageIndex),s=(!a||!a.has(t))&&e.isAPStreamRendered?.(n);(0,f.x3)(r,n,s),"number"==typeof n.pdfObjectId&&(r.deleteIn(["APStreamVariantsRollover",n.pdfObjectId]),r.deleteIn(["APStreamVariantsDown",n.pdfObjectId]))}))}function C(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;const{boundingBox:r}=e;if(_e(e,t))return r.set("width",r.width/t).set("height",r.height/t);if(e instanceof a.s9){const e=r.getLocation(),t=(new d.XF).translate(e.scale(-1)).rotate(n||0).translate(e);return r.apply(t)}return r}function E(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return(0,l.m)({annotation:e,zoomScaledBoundingBox:C(e,r,t),viewportSize:n})}function k(e,t,n,r,i){let s;if($(e)){(0,o.V1)(e instanceof a.dh,"Callout annotation is not a TextAnnotation");const{callout:t}=e;(0,o.V1)(t,"Callout annotation has no callout");const{knee:n,start:r}=t;s=[r,n].map((e=>e?.toJS()))}else s=e instanceof a.YH&&("points"in e&&e.points?.toJS()||"startPoint"in e&&e.startPoint&&e.endPoint&&[e.startPoint.toJS(),e.endPoint.toJS()])||[];const c=(0,l.s)(r);return s.filter(Boolean).map((e=>({x:i+c+(e.x-t.left)*n,y:i+c+(e.y-t.top)*n})))}function z(e){const t=null!=e.pageIndex;return e instanceof a.dh?t&&null!=e.text.value&&""!==e.text.value:e instanceof a.Si||e instanceof a.ug?t&&null!=e.points&&e.points.size>1:t}function P(e){return!1===e.noView&&!0!==e.hidden}function A(e){return!1===e.noPrint&&!0!==e.hidden}function D(e){return!(e instanceof a.Ip)}function T(e){return e?e.replace(/[A-Z]/g,"-$&").toLowerCase():null}const I=i.Z0;function M(e,t){return function(e,t){return t.map((function(t){return e.get(t)})).filter(Boolean).toList()}(e,t.annotationIds)}function N(e){return e.boundingBox.setLocation(new a.bR)}const O=(0,r.T5)([["stroke-color","strokeColor"],["background-color","backgroundColor"],["color","color"],["fill-color","fillColor"],["font-color","fontColor"],["outline-color","outlineColor"],["border-color","borderColor"]]);function R(e){const t=I(),n=function(e){const t=e.currentItemPreset,n=t&&e.annotationPresets.get(t);return n||{}}(e),r={...n,id:t,name:t,creatorName:e.annotationCreatorName,createdAt:new Date,updatedAt:new Date};return e.group!==e.backend?.getDefaultGroup()&&(r.group=e.group),n.group&&n.group!==e.group&&(r.group=n.group),e.annotationToolbarColorPresets?O.reduce(((t,n,r)=>{const o=e.annotationToolbarColorPresets({propertyName:r,defaultAnnotationToolbarColorPresets:u.JY.COLOR_PRESETS});if(void 0===o)return t;const i=o.presets,a=b(O.get(r,r));return function(e,t){return e.some((e=>!t&&null===e.color||t&&e.color&&e.color.equals(t)))}([...i,...a],t[n])?t:{...t,[n]:i[0].color}}),r):r}function j(e,t){const n=e.annotations.get(t);return n?n instanceof a.MU?"line":n instanceof a.Go?"ellipse":n instanceof a.Zx?"rectangle":n instanceof a.ug?"polyline":n instanceof a.Si?"polygon":n instanceof a.Eo?"ink":n instanceof a.s9?"note":n instanceof a.dh?"text":n instanceof a.vU?"image":n instanceof a.xY?"stamp":n instanceof a.sb?"widget":n instanceof a.ax?"highlight":n instanceof a.Yi?"underline":n instanceof a.sB?"strikeout":n instanceof a.TI?"squiggle":n instanceof s.A?"redaction":null:null}function F(e,t,n,r,i){const{width:s,height:l}=t,{currentPageIndex:u,pagesRotation:d}=e.viewportState,p=e.pages.get(u);(0,o.V1)(p,`Cannot find page at index ${u}`);const h=p.pageSize,f=Math.min(h.width*c.uy/s,h.height*c.uy/l,1);let m=s*f,g=l*f;return 90!==d&&270!==d||([m,g]=[g,m]),new a.vU({...R(e),pageIndex:u,imageAttachmentId:n,contentType:r,rotation:d,fileName:i,boundingBox:new a.rw({left:h.width/2-m/2,top:h.height/2-g/2,width:m,height:g})})}function B(e,t,n){const{width:r,height:i}=t,{currentPageIndex:s,pagesRotation:l}=e.viewportState,u=e.pages.get(s);(0,o.V1)(u,`Cannot find page at index ${s}`);const d=u.pageSize,p=Math.min(d.width*c.uy/r,d.height*c.uy/i,1);let h=r*p,f=i*p;return 90!==l&&270!==l||([h,f]=[f,h]),new a.xY({...R(e),pageIndex:s,stampType:n.stampType,title:n.title,subtitle:n.subtitle,color:n.color,opacity:n.opacity,rotation:l,boundingBox:new a.rw({left:d.width/2-h/2,top:d.height/2-f/2,width:h,height:f})})}function L(e){return RegExp("^([A-Fa-f0-9]{64}|[0-9]+)$").test(e)}function V(e,t){let n=(0,r.T5)();return(Array.isArray(t)?t:[t]).forEach((t=>{if(t instanceof a.vU&&t.imageAttachmentId){const r=e.get(t.imageAttachmentId);r&&(n=n.set(t.imageAttachmentId,r))}})),n}function K(e){return e.locked?!e.locked:e instanceof a.ug||e instanceof a.Si||e instanceof a.MU||$(e)}function H(e){if(e.locked)return!e.locked;switch(e.constructor){case a.dh:return!$(e);case a.xY:return!0;default:return!1}}function $(e){return e instanceof a.dh&&!!e.callout?.innerRectInset}function U(e){return e.locked?!e.locked:e instanceof a.ug||e instanceof a.Si||e instanceof a.Zx||e instanceof a.vU||e instanceof a.Eo||e instanceof a.Go||e instanceof a.xY||e instanceof a.dh&&!$(e)||e instanceof a.sb||e instanceof a.UL}function W(e,t){const n=t.onAnnotationResizeStart?t.onAnnotationResizeStart(e):void 0;if(void 0!==n)return(0,o.V1)(!0===n.maintainAspectRatio||!1===n.maintainAspectRatio||null===n.maintainAspectRatio||void 0===n.maintainAspectRatio,"onAnnotationResizeStart should return a valid configuration or undefined"),!!n.maintainAspectRatio&&n.maintainAspectRatio;if(e.isShiftPressed)return!0;const r=e.annotation instanceof a.vU||e.annotation instanceof a.xY,i=[g.E.TOP_LEFT,g.E.TOP_RIGHT,g.E.BOTTOM_LEFT,g.E.BOTTOM_RIGHT];return!!(r&&i.includes(e.resizeAnchor)||"isSignature"in e.annotation&&e.annotation.isSignature)}function q(e,t){const n=t.onAnnotationResizeStart?t.onAnnotationResizeStart(e):void 0;return n&&(n.minHeight&&n.minHeight<0&&((0,o.R8)("minimum height in the onAnnotationResizeStart API should be greater than 0"),n.minHeight=void 0),n.maxHeight&&n.maxHeight<0&&((0,o.R8)("maximum height in the onAnnotationResizeStart API should be greater than 0"),n.maxHeight=void 0),n.maxWidth&&n.maxWidth<0&&((0,o.R8)("maximum width in the onAnnotationResizeStart API should be greater than 0"),n.maxWidth=void 0),n.minWidth&&n.minWidth<0&&((0,o.R8)("maximum width in the onAnnotationResizeStart API should be greater than 0"),n.minWidth=void 0),n.maxHeight&&n.minHeight&&n.maxHeight<n.minHeight&&((0,o.R8)("maximum Height parameter should be greater than the minimum Height parameter in onAnnotationResizeStart API"),n.maxHeight=void 0,n.minHeight=void 0),n.maxWidth&&n.minWidth&&n.maxWidth<n.minWidth&&((0,o.R8)("maximum Width parameter should be greater than the minimum Width parameter in onAnnotationResizeStart API"),n.maxWidth=void 0,n.minWidth=void 0)),{maxHeight:n?.maxHeight,maxWidth:n?.maxWidth,minWidth:n?.minWidth,minHeight:n?.minHeight}}function G(e){return e instanceof a.ug||e instanceof a.Si||e instanceof a.MU||e instanceof a.Zx||e instanceof a.vU||e instanceof a.Eo||e instanceof a.Go||e instanceof a.xY||e instanceof a.dh||e instanceof a.sb||e instanceof a.s9||e instanceof a.dG||e instanceof a.UL}function Z(e){return e instanceof a.ug||e instanceof a.Si||e instanceof a.Zx||e instanceof a.vU||e instanceof a.Eo||e instanceof a.Go||e instanceof a.xY||e instanceof a.dh||e instanceof a.sb||e instanceof s.A||e instanceof a.UL||e instanceof a.Ip}function Y(e,t){let n=!1;return t.emit("annotations.press",{...e,preventDefault:()=>{e.nativeEvent.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),n=!0}}),n}function X(e){e.selectedAnnotationIds.forEach((t=>{e.deleteIn(["annotationPresetIds"],t)}))}function J(e){return"number"==typeof e.pdfObjectId}function Q(e){return e.width>0&&e.height>0}function ee(e,t){return!(e instanceof a.xY||e instanceof a.Ip||e instanceof a.vU||e instanceof a.sb&&(t instanceof a.Vw||t instanceof a.$h&&"number"==typeof e.buttonIconUpdatedAt))}function te(e,t){return!(0,r.is)(N(e),N(t))||e.opacity!==t.opacity||e.rotation!==t.rotation||P(e)!==P(t)||(t instanceof a.vU&&e instanceof a.vU&&e.imageAttachmentId!==t.imageAttachmentId||(t instanceof a.xY&&e instanceof a.xY&&(!re(e.color,t.color)||e.stampType!==t.stampType||e.title!==t.title||e.subtitle!==t.subtitle)||(!(!(t instanceof a.pP&&e instanceof a.pP)||e.strokeWidth===t.strokeWidth&&re(e.strokeColor,t.strokeColor)&&re(e.fillColor,t.fillColor)&&(!t.strokeDashArray||e.strokeDashArray&&!t.strokeDashArray.some(((t,n)=>void 0===e.strokeDashArray[n]||t!==e.strokeDashArray[n]))))||(!(!(t instanceof a.pP&&e instanceof a.pP&&t.isMeasurement())||e.measurementScale===t.measurementScale&&e.measurementPrecision===t.measurementPrecision)||((t instanceof a.Zx||t instanceof a.Go)&&(e instanceof a.Zx||e instanceof a.Go)&&(t.cloudyBorderInset!==e.cloudyBorderInset||t.cloudyBorderIntensity!==e.cloudyBorderIntensity)||(!!((t instanceof a.MU||t instanceof a.ug)&&(e instanceof a.MU||e instanceof a.ug)&&t.lineCaps&&(!e.lineCaps||t.lineCaps.start!==e.lineCaps.start||t.lineCaps.end!==e.lineCaps.end)||!t.lineCaps&&e.lineCaps)||(!!(t instanceof a.MU&&oe(e,t))||(!!((t instanceof a.ug||t instanceof a.Si)&&(e instanceof a.ug||e instanceof a.Si)&&oe(e,t))||(t instanceof a.Eo&&e instanceof a.Eo&&(e.lineWidth!==t.lineWidth||!re(e.strokeColor,t.strokeColor)||!re(e.backgroundColor,t.backgroundColor)||e.blendMode!==t.blendMode)||(t instanceof a.dh&&e instanceof a.dh&&(e.text.value!==t.text.value||e.fontSize!==t.fontSize||e.font!==t.font||!re(e.fontColor,t.fontColor)||!re(e.backgroundColor,t.backgroundColor)||e.isBold!==t.isBold||e.isItalic!==t.isItalic||e.horizontalAlign!==t.horizontalAlign||e.verticalAlign!==t.verticalAlign||e.borderWidth!==t.borderWidth||e.borderStyle!==t.borderStyle)||(t instanceof a.s9&&e instanceof a.s9&&(!re(t.color,e.color)||e.icon!==t.icon)||(t instanceof a.tr&&e instanceof a.tr&&(e.blendMode!==t.blendMode||!re(e.color,t.color)||e.rects!==t.rects)||t instanceof a.sb&&e instanceof a.sb&&t.buttonIconUpdatedAt!==e.buttonIconUpdatedAt))))))))))))}function ne(e,t){return e?.readOnly!==t?.readOnly}function re(e,t){return e instanceof h.A&&t instanceof h.A?e.equals(t):!(e instanceof h.A||t instanceof h.A)}function oe(e,t){if(e instanceof a.MU&&t instanceof a.MU){if(t.startPoint!==e.startPoint||t.endPoint!==e.endPoint)return!(t.startPoint.x-e.startPoint.x==t.boundingBox.left-e.boundingBox.left&&t.startPoint.y-e.startPoint.y==t.boundingBox.top-e.boundingBox.top)}else if((e instanceof a.ug||e instanceof a.Si)&&(t instanceof a.ug||t instanceof a.Si))return!(e.points.size===t.points.size&&e.points.every(((n,r)=>{const i=t.points.get(r);return(0,o.V1)(i&&n),i.x-n.x==t.boundingBox.left-e.boundingBox.left&&i.y-n.y==t.boundingBox.top-e.boundingBox.top})));return!1}function ie(e,t,n){const{invalidAPStreams:r}=e();let o=!1,i=r.get(t.pageIndex);i&&(o=!!i.get(t.id)),n();const{invalidAPStreams:a,annotations:s}=e(),l=s.get(t.id);if(!l)return!o;let c=!1;return i=a.get(l.pageIndex),i&&(c=!!i.get(l.id)),!o&&c}function ae(e,t,n){(0,o.V1)(e.backend);const{invalidAPStreams:r,historyIdsMap:i,isHistoryEnabled:a,backend:s}=e,l=t.get(n.pageIndex),c=r.get(n.pageIndex);return!a||"STANDALONE"!==s?.type||l&&l.has(n.id)||!c||!c.has(n.id)?n:n.set("APStreamCache",{cache:i.get(n.id)||n.id})}function se(e,t){(0,o.V1)(e.backend);const{historyIdsMap:n,isHistoryEnabled:r,backend:i}=e;return r&&"STANDALONE"===i?.type?t.set("APStreamCache",{cache:n.get(t.id)||t.id}):t}const le="rgba(70, 54, 227, 0.5) solid 2px";function ce(e){const{id:t,pdfObjectId:n}=e;return e=>e===n?.toString()||e===t}function ue(e,t){let{backend:n,annotations:o}=e;t.forEach((e=>{const t=o.get(e.id);t&&te(t,e)&&n?.clearPageAPStreams(t.pageIndex,(0,r.NZ)([t.id]))}))}function de(e,t,n){let{backend:o,formFields:i}=e;t.forEach((e=>{const t=i.get(e.formFieldName);t&&ne(t,n)&&o?.clearPageAPStreams(e.pageIndex,(0,r.NZ)([e.id]))}))}const pe=Object.freeze({CLOCKWISE:"CLOCKWISE",COUNTERCLOCKWISE:"COUNTERCLOCKWISE"});function he(e,t,n){const{rotation:r,boundingBox:o}=e,i=o.getCenter();let s=new a.bR({x:Math.max(0,i.x-o.height/2),y:Math.max(0,i.y-o.width/2)});s.x+o.height>t.width&&(s=s.set("x",t.width-o.height)),s.y+o.width>t.height&&(s=s.set("y",t.height-o.width));const l=e.set("boundingBox",o.withMutations((e=>{e.height=o.width,e.width=o.height,e.left=s.x,e.top=s.y})));if(n){const e=n===pe.CLOCKWISE;switch(r){case 0:return l.set("rotation",e?270:90);case 90:return l.set("rotation",e?0:180);case 180:return l.set("rotation",e?90:270);case 270:return l.set("rotation",e?180:0)}}return l}function fe(e,t){return a.rw.union(e.map((e=>{if((0,y.nU)(e)){return C((0,y.pE)(e),t)}return C(e,t)})))}function me(e,t){if(e instanceof a.sb)return"widget";if(Object.keys(p.A).includes(e.constructor.readableName.toLowerCase()+"Annotation")){const n=function(e){if(e instanceof a.dG)return p.A.comment.id;const t=e.constructor.readableName.toLowerCase()+"Annotation";return p.A[t].id}(e);return t(p.A[n])}return e.constructor.readableName.toLowerCase()}function ge(e){return!(e instanceof a.pP&&e.isMeasurement())}function ve(e,t){return t?.isAnnotationNote?e.readOnly?"not-allowed":"inherit":e instanceof a.dh?e.readOnly?"not-allowed":e.locked?"text":e.lockedContents?"pointer":t?.cursor||(t?.isSelectable?"pointer":"auto"):e instanceof a.xY?e.readOnly||e.locked?"not-allowed":t?.cursor||(t?.isSelectable?"pointer":"auto"):e instanceof a.Eo?e.readOnly||e.locked?"not-allowed":e.lockedContents?"pointer":"inherit":e instanceof a.UL?e.locked?"pointer":"inherit":e instanceof a.s9&&t?.isExpandedNote?e.readOnly||e.locked&&e.lockedContents?"not-allowed":e.locked?"text":e.lockedContents?"not-allowed":t.isSelectable?"pointer":"auto":e.readOnly||e.locked&&e.lockedContents||e.locked?"not-allowed":e.lockedContents||t?.isSelectable||t?.isSelected?"pointer":"auto"}function ye(e){if(e instanceof a.xY)return p.A.stampAnnotation;if(e instanceof a.vU)return p.A.imageAnnotation;if(e instanceof a.dh)return p.A.textAnnotation;if(e instanceof a.s9)return p.A.noteAnnotation;if(e instanceof a.dG)return p.A.comment;if(e instanceof a.Eo)return p.A.inkAnnotation;if(e instanceof a.UL)return p.A.linkAnnotation;if(e instanceof a.MU)return p.A.lineAnnotation;if(e instanceof a.Zx)return p.A.rectangleAnnotation;if(e instanceof a.Go)return p.A.ellipseAnnotation;if(e instanceof a.Si)return p.A.polygonAnnotation;if(e instanceof a.ug)return p.A.polylineAnnotation;if(e instanceof a.ax)return p.A.highlightAnnotation;if(e instanceof a.TI)return p.A.squiggleAnnotation;if(e instanceof a.Yi)return p.A.underlineAnnotation;if(e instanceof a.sB)return p.A.strikeOutAnnotation;if(e instanceof s.A)return p.A.redactionAnnotation;if(e instanceof a.KR)return p.A.mediaAnnotation;if(e instanceof a.Ip)return p.A.unknownAnnotation;throw new o.uE(`Unsupported annotation type: ${JSON.stringify(e.toJS())}`)}function be(e){return(!(e instanceof a.xY||e instanceof a.vU||e instanceof a.s9||e instanceof a.pP)||!e.locked&&!e.readOnly)&&!(e instanceof a.dh&&e.readOnly)}function we(e,t){return!(e instanceof a.KR||e instanceof s.A||e instanceof a.tr||"focus"===t.type)}function xe(e){return e.isSignature}function Se(e,t){return _e(e,t)?1:t}function _e(e,t){return(e instanceof a.xY||e instanceof a.dh&&!$(e))&&e.noZoom&&t>=1}function Ce(e){return e.createdAt.getTime()===e.updatedAt.getTime()}function Ee(e){return e instanceof a.dh?"xhtml"===e.text.format?(0,m.lb)(e.text.value):e.text.value:""}function ke(e){const t={width:e.boundingBox.width,height:e.boundingBox.height,opacity:e.opacity,rotation:e.rotation};return e instanceof a.xY?JSON.stringify({...t,stampType:e.stampType,title:e.title,subtitle:e.subtitle,color:e.color?.toHex(),xfdfAppearanceStream:e.xfdfAppearanceStream,xfdfAppearanceStreamOriginalPageRotation:e.xfdfAppearanceStreamOriginalPageRotation}):e instanceof a.vU?JSON.stringify({...t,imageAttachmentId:e.imageAttachmentId}):JSON.stringify(t)}function ze(e){return e instanceof a.Zx||e instanceof a.Si||e instanceof a.Go}function Pe(e){let{noZoom:t,cachedRenderedAnnotationWidth:n,cachedRenderedAnnotationHeight:r,testAnnotationWidth:o,testAnnotationHeight:i}=e;return t||n>=o&&r>=i}function Ae(e){return e instanceof a.vU||e instanceof a.xY&&!J(e)}function De(e){return e instanceof a.sb}},93564:(e,t,n)=>{"use strict";function r(e){if("arrayBuffer"in e)return e.arrayBuffer().then((e=>new Uint8Array(e)));const t=new FileReader;return new Promise(((n,r)=>{t.onerror=e=>{r(new Error(e))},t.onload=e=>{n(new Uint8Array(e.target?.result))},t.readAsArrayBuffer(e)}))}n.d(t,{G:()=>r})},74111:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});const r=n(6163).Z0},9627:(e,t,n)=>{"use strict";function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:globalThis.navigator?.userAgent??"";return e.indexOf("Trident/")>-1?"trident":e.indexOf("Edge/")>-1?"edge":e.indexOf("Chrome/")>-1?"blink":e.indexOf("AppleWebKit/")>-1?"webkit":e.indexOf("Gecko/")>-1?"gecko":"unknown"}function o(e,t){const n=new RegExp(` ${t}/(\\d+)\\.*`);let r;return(r=e.match(n))?Number(r[1]):0}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:globalThis.navigator?.userAgent??"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:globalThis.navigator?.platform??"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:globalThis.navigator?.maxTouchPoints??0;return t.indexOf("MacIntel")>-1&&n>1?"ios":e.indexOf("Win")>-1?"windows":e.indexOf("iPhone")>-1||e.indexOf("iPad")>-1||"iPad"===t?"ios":e.indexOf("Mac")>-1?"macos":e.indexOf("Android")>-1?"android":e.indexOf("Linux")>-1?"linux":"unknown"}n.d(t,{CN:()=>b,H8:()=>d,HQ:()=>f,Hi:()=>a,JX:()=>v,LZ:()=>l,Qg:()=>g,YQ:()=>x,cX:()=>w,gm:()=>u,lw:()=>p,m0:()=>m,n8:()=>h,nr:()=>c,qU:()=>s});const a=r(),s=i(),l=(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:globalThis.navigator?.userAgent;switch(r(e)){case"trident":return o(e,"Trident");case"edge":return o(e,"Edge");case"blink":return o(e,"Chrome");case"webkit":return o(e,"Version");case"gecko":return o(e,"Firefox");default:;}}(),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r();return"ios"===e||"android"===e||v(t)}()),c="webkit"===a,u="gecko"===a,d="blink"===a,p="trident"===a,h="edge"===a,f="ios"===s||v(),m="android"===s,g=d&&m;function v(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r();return("undefined"==typeof window||!window.PSPDFKIT_PLAYWRIGHT_TEST)&&("webkit"===e&&"undefined"!=typeof TouchEvent)}let y;function b(){return void 0===y&&(y="ontouchstart"in window||globalThis.navigator?.maxTouchPoints>0),y}"undefined"!=typeof window&&(window.addEventListener("mousemove",(function e(){y=!1,window.removeEventListener("mousemove",e)})),window.addEventListener("pointermove",(function e(t){"mouse"!==t.pointerType&&"pen"!==t.pointerType||(y=!1),window.removeEventListener("pointermove",e)})));const w=/Mac/i.test(globalThis.navigator?.platform),x=e=>c&&function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:globalThis.navigator?.userAgent??"").match(/Version\/(\d+\.\d)/);return e?Number(e[1]):0}()<e},88140:(e,t,n)=>{"use strict";n.d(t,{Fz:()=>l,Kt:()=>s,Nm:()=>c,Y9:()=>u,db:()=>a,ox:()=>p,q2:()=>i,wS:()=>d,yF:()=>o});var r=n(85409);function o(e,t){return(0,r.V1)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||null==e.pageIndex||"boolean"!=typeof e.canReply||e.isCommentThreadRoot&&e.canReply}function i(e,t){let{backend:n}=t;return(0,r.V1)(n),!n.isCollaborationPermissionsEnabled()||null==e.pageIndex||"boolean"!=typeof e.isEditable||e.isEditable}function a(e,t){let{backend:n}=t;return(0,r.V1)(n),!n.isCollaborationPermissionsEnabled()||null==e.pageIndex||"boolean"!=typeof e.isDeletable||e.isDeletable}function s(e,t){return(0,r.V1)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||null==e.pageIndex||"boolean"!=typeof e.isEditable||e.isEditable}function l(e,t){return(0,r.V1)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||null==e.pageIndex||"boolean"!=typeof e.isDeletable||e.isDeletable}function c(e,t){return(0,r.V1)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||"boolean"!=typeof e.isEditable||e.isEditable}function u(e,t){return(0,r.V1)(t.backend),!t.backend.isCollaborationPermissionsEnabled()||"boolean"!=typeof e.isDeletable||e.isDeletable}function d(e,t){let{backend:n}=t;return(0,r.V1)(n),!n.isCollaborationPermissionsEnabled()||"boolean"!=typeof e.isFillable||e.isFillable}function p(e,t){return(0,r.V1)(t.backend),!(!t.backend.isCollaborationPermissionsEnabled()||"boolean"!=typeof e.canSetGroup)&&e.canSetGroup}},63226:(e,t,n)=>{"use strict";n.d(t,{D_:()=>g,Jm:()=>m,Xu:()=>f,Zn:()=>d,aX:()=>v,ai:()=>p,mx:()=>h,rO:()=>y});var r=n(63939),o=n(63573),i=n(50960),a=n(37361),s=n(25028),l=n(45306),c=n(89055),u=n(75675);const d="The feature you're trying to use requires a comments license. The Comments component is sold separately.";function p(e){let{showComments:t,commentThreads:n,features:r,backend:o}=e;return t&&n.size>0&&(0,c.kl)({features:r,backend:o})}function h(e){let{showComments:t,features:n,backend:r}=e;return t&&(0,c.kl)({features:n,backend:r})}function f(e){if(!p(e))return null;const{viewportState:t}=e;return e.containerRect.width>a.FG?t.scrollMode!==s.V.PER_SPREAD&&t.scrollMode!==s.V.DISABLED||function(e,t){let{viewportState:n,pages:r,commentThreads:i}=e;return(0,o.dD)(n,(0,o.NZ)(n,t)).some((e=>{const t=r.get(e);return!!t&&t.annotationIds.some((e=>i.has(e)))}))}(e,e.viewportState.currentPageIndex)?l.X.SIDEBAR:null:e.selectedAnnotationIds.size>0&&e.selectedAnnotationIds.some((t=>!!e.commentThreads.get(t)))?l.X.PANE:null}const m=e=>null==e.pageIndex;function g(e,t){const n=(0,o.NZ)(t,e.pageIndex);let a=i.XF.IDENTITY;if(t.scrollMode===s.V.CONTINUOUS){const e=(0,o.kz)(t,n);a=a.translateY(e)}return a=(0,r.zA)(a,t),e.boundingBox.apply(a).top}const v=(e,t)=>!!y(e,t),y=(e,t)=>{const n=e.last();if(null!==n){const e=t.get(n);if((0,u.V)(e),m(e))return e}}},32784:(e,t,n)=>{"use strict";n.d(t,{K0:()=>l,O6:()=>d,cE:()=>m,l1:()=>c,pH:()=>f});var r=n(49568),o=n(76117),i=n(9627),a=n(5293),s=n(25508);function l(e,t){return(0,r.B8)(e.textLines.map(((e,n)=>new o.Yh({id:n+1,contents:e.contents,pageIndex:t,boundingBox:new o.rw({top:e.top,left:e.left,height:e.height,width:e.width})}))))}function c(e,t,n,i,l){let c=n,u=i,d=l;const f=[];function m(e,n){return new o._$({id:n,pageIndex:t,boundingBox:(0,a.a)(e.bbox),elementType:e.element.type})}return function e(n,r){n&&n.forEach((n=>{if(n.element&&n.bbox&&("text"===n.element.type?n.element.text&&r&&r.textLines.push(function(e,n){return new o.Yh({id:n,contents:e.element.text,pageIndex:t,boundingBox:(0,a.a)(e.bbox),hints:e.element.hints})}(n,++u)):(n.element.type,r&&r.contentElements.push(m(n,++d)))),n.children){const o={pdfua_type:n.pdfua_type,type:n.type,alt:n.alt};let a=null;"Document"!==n.pdfua_type&&(a={id:++c,pageIndex:t,textLines:[],contentElements:[],contentBlocks:[],contentTreeElementMetadata:o,allowsBlockTypeChildren:(i=s.O[n.pdfua_type],"p"!==i),boundingBox:null},r?r.contentBlocks.push(a):f.push(a)),e(n.children,a)}var i}))}(e,null),f.map((function e(t){return new o.$G({id:t.id,pageIndex:t.pageIndex,contentTreeElementMetadata:t.contentTreeElementMetadata,textLines:(0,r.B8)(t.textLines),contentElements:(0,r.B8)(t.contentElements).filter(h),contentBlocks:(0,r.B8)(t.contentBlocks.map(e)),allowsBlockTypeChildren:t.allowsBlockTypeChildren,boundingBox:p(t)})}))}const u=" ";function d(e,t){if(e)return t.contents;const n=function(e){const t=e.split("‍");let n=0;for(const e of t){n+=Array.from(e.split(/[\ufe00-\ufe0f]/).join("")).length}return n/t.length}(t.contents);return i.HQ?`${u}x`.repeat(n/2):u.repeat(n)}function p(e){const{textLines:t,contentElements:n,contentBlocks:i}=e;if(0===t.length&&0===n.length&&0===i.length)return null;const a=t.map((e=>e.boundingBox)).concat(n.map((e=>e.boundingBox))).concat(i.map(p).filter(Boolean));return 0===a.length?null:o.rw.union((0,r.B8)(a))}function h(e){return"path"!==e.elementType}function f(e){return"Figure"===e||"L"===e||"LI"===e}function m(e){return"li"===e?{listStyleType:"none"}:null}},43195:(e,t,n)=>{"use strict";n.d(t,{Ci:()=>c,FP:()=>w,Re:()=>h,Vb:()=>u,bG:()=>x,ex:()=>d,i0:()=>m,jg:()=>f,mj:()=>b,oF:()=>p,q_:()=>g});var r=n(49568),o=n(81235),i=n(50960),a=n(47679),s=(n(64337),n(76117));function l(e){return{textBlockId:e.id,anchor:(0,a.Bm)(e.anchor),globalEffects:(0,a.Qp)(e.globalEffects),externalControlState:(0,a.jr)(e)}}function c(e){const t=[];for(const n of e.pageStates.toList()){const e=new Map(n.textBlocks.map((e=>[e.id,e])));for(const r of n.initialTextBlocks)e.has(r.id)||t.push(l(r));for(const e of n.textBlocks){(!(0,r.is)(e.anchor,e.initialAnchor)||!(0,r.is)(e.globalEffects,e.initialGlobalEffects)||!(0,r.is)(e.layout,e.initialLayout)||e.version)&&t.push(l(e))}}return t}const u="The API you're trying to use requires a content editor license. The Content Editor component is sold separately.";const d=[4,6,8,10,12,14,16,18,20,24,32,36,48,64,72,96,144,192,200];function p(e,t){return new o.rw({offset:new o.ZY({x:e.offset.x*t,y:e.offset.y*t}),size:new o.ZY({x:e.size.x*t,y:e.size.y*t})})}function h(e,t,n){return new o.rw({offset:new o.ZY({x:e.offset.x+t.x*n,y:e.offset.y+t.y*n}),size:e.size})}function f(e){let t="";for(const n of e)t+=n.text;return t}const m=0,g=1,v=e=>{switch(e){case"begin":case"justified":return m;case"end":return g;case"center":return.5}},y=(e,t,n)=>{const r=(e=>(new i.XF).rotateRad(e.rotation).scale(1,e.flipY?-1:1))(e),a=r.applyToVector([n*t,0]);return new o.ZY({x:a[0],y:a[1]})},b=(e,t,n)=>(t-v(e))*n,w=(e,t,n,r)=>{const o=v(e)-n;return y(t,o,r)};const x=e=>{if(e.detectedStyle.selectionStyleInfo){const{family:t,bold:n,italic:r,color:o,size:i}=e.detectedStyle.selectionStyleInfo;return{family:t,bold:n,italic:r,color:o?s.Q1.fromHex(o):null,size:i}}const{family:t,variant:{bold:n,italic:r}}=e.modificationsCharacterStyle.fontRef.faceRef,{color:o,fontRef:{size:i}}=e.modificationsCharacterStyle;return{family:t,bold:n,italic:r,color:s.Q1.fromHex(o),size:i}}},38849:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(85409);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return function(t,n){if(!t)throw new r.uE(""===e?n:`${e}: ${n}`)}}},84192:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,h:()=>o});var r=n(49568);function o(e,t){let n;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];const a=this;n&&clearTimeout(n),n=setTimeout((()=>{n=null,e.apply(a,o)}),t)}}function i(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(0,r.B8)();return function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];const s=this;return t&&clearTimeout(t),t=setTimeout((()=>{t=null,function(e){const t=o;o=o.clear(),e.then((e=>{t.forEach((t=>{t.resolve(e)}))})).catch((e=>{t.forEach((t=>{t.reject(e)}))}))}(e.apply(s,i))}),n),new Promise(((e,t)=>{o=o.push({resolve:e,reject:t})}))}}},37506:(e,t,n)=>{"use strict";n.d(t,{PI:()=>h,Gg:()=>f,gX:()=>p,r6:()=>b,op:()=>m});var r=n(85409),o=n(80018),i=n(27522),a=n(26635),s=n(76117),l=n(64337),c=n(83647),u=n(495);const d=["application/pdf","image/png","image/jpeg"];function p(e,t){if(t===a.y.IF_SIGNED&&e.status!==i.J.not_signed)return!0;if(t===a.y.HAS_ERRORS&&e.status===i.J.error)return!0;const n=e.status===i.J.valid&&e.documentModifiedSinceSignature;return!(t!==a.y.HAS_WARNINGS||e.status!==i.J.warning&&e.status!==i.J.error&&!n)}function h(e){if("string"==typeof e)return o.o4.encode(e);if(e instanceof ArrayBuffer)return o.o4.fromUint8Array(new Uint8Array(e));throw(0,r.GQ)(e)}function f(e,t){return!!(e.features.includes(l.Y.DIGITAL_SIGNATURES)&&t instanceof s.sb&&"number"==typeof t.pdfObjectId&&e.digitalSignatures&&e.digitalSignatures.signatures&&e.digitalSignatures.signatures.some((e=>{let{signatureFormFQN:n}=e;return n===t.formFieldName}))&&e.formFields.has(t.formFieldName))}function m(e,t){e&&t&&"STANDALONE"===t.type&&((0,r.V1)(void 0===e.placeholderSize||"number"==typeof e.placeholderSize,"`placeholderSize` must be a number."),(0,r.V1)(void 0===e.flatten||"boolean"==typeof e.flatten,"`flatten` must be a boolean."),(0,r.V1)(void 0===e.formFieldName||"string"==typeof e.formFieldName,"`formFieldName` must be a string."),(0,r.V1)(void 0===e.formFieldName||void 0===e.position,"`formFieldName` and `position` cannot be used together."),g(e.position),v(e.appearance),y(e.signatureMetadata),function(e){if(!e)return;(0,r.V1)(void 0===e.privateKey||"string"==typeof e.privateKey&&e.privateKey.length>0,"`signingData.privateKey` must be a non-empty string if provided."),(0,r.V1)(Object.values(c.D7).includes(e.signatureType),`\`signingData.signatureType\` must be a valid \`PSPDFKit.SignatureType\` value. \`${e.signatureType}\` was provided instead.`),(0,r.V1)(!e.signatureContainer||Object.values(c.Yj).includes(e.signatureContainer),`\`signingData.signatureContainer\` must be a valid \`PSPDFKit.SignatureContainerType\` value. \`${e.signatureContainer}\` was provided instead.`),(0,r.V1)(!e.padesLevel||Object.values(c.sX).includes(e.padesLevel),`\`signingData.padesLevel\` must be a valid \`PSPDFKit.PadesLevel\` value. \`${e.padesLevel}\` was provided instead.`),(0,r.V1)(!e.certificates||Array.isArray(e.certificates)&&e.certificates.length>0&&e.certificates.every((e=>Boolean(e instanceof ArrayBuffer&&e.byteLength>0||"string"==typeof e&&e.length>0))),"`signingData.certificates` must be an array of Base64 encoded certificate strings.")}(e.signingData))}function g(e){e&&((0,r.V1)("number"==typeof e.pageIndex,"`pageIndex` must be a number."),(0,r.V1)(e.boundingBox instanceof s.rw,"`boundingBox` must be a PSPDFKit.Geometry.Rect instance."))}function v(e){e&&((0,r.V1)(void 0===e.mode||e.mode in u.C,"`mode` must be a valid PSPDFKit.SignatureAppearanceMode value."),(0,r.V1)(void 0===e.showSigner||"boolean"==typeof e.showSigner,"`showSigner` must be a boolean."),(0,r.V1)(void 0===e.showSignDate||"boolean"==typeof e.showSignDate,"`showSignDate` must be a boolean."),(0,r.V1)(void 0===e.showReason||"boolean"==typeof e.showReason,"`showReason` must be a boolean."),(0,r.V1)(void 0===e.showLocation||"boolean"==typeof e.showLocation,"`showLocation` must be a boolean."),(0,r.V1)(void 0===e.showWatermark||"boolean"==typeof e.showWatermark,"`showWatermark` must be a boolean."),(0,r.V1)(void 0===e.showDateTimezone||"boolean"==typeof e.showDateTimezone,"`showDateTimezone` must be a boolean."),(0,r.V1)(void 0===e.watermarkImage||"Blob"===e.watermarkImage.constructor.name||"File"===e.watermarkImage.constructor.name,"`watermarkImage` must be a Blob or File."),(0,r.V1)(void 0===e.graphicImage||"Blob"===e.graphicImage.constructor.name||"File"===e.graphicImage.constructor.name,"`graphicImage` must be a Blob or File."),(0,r.V1)(void 0===e.watermarkImage||d.includes(e.watermarkImage.type),`The image type must be one of the supported formats: ${d.join(", ")}, provided: ${e.watermarkImage?.type}.`),(0,r.V1)(void 0===e.graphicImage||d.includes(e.graphicImage.type),`The image type must be one of the supported formats: ${d.join(", ")}, provided: ${e.graphicImage?.type}.`))}function y(e){e&&((0,r.V1)(void 0===e.signerName||"string"==typeof e.signerName,"`signerName` must be a string."),(0,r.V1)(void 0===e.signatureReason||"string"==typeof e.signatureReason,"`signatureReason` must be a string."),(0,r.V1)(void 0===e.signatureLocation||"string"==typeof e.signatureLocation,"`signatureLocation` must be a string."))}function b(e){e&&((0,r.V1)(!("placeholderSize"in e)||"number"==typeof e.placeholderSize&&e.placeholderSize>0,`Invalid \`placeholderSize\` for signature preparation data. Must be of type \`number\` and greater than \`0\` if present. Provided: ${e.placeholderSize}.`),(0,r.V1)(!("flatten"in e)||"boolean"==typeof e.flatten,`Invalid \`flatten\` for signature preparation data. Must be of type \`boolean\` if present. Provided: ${e.flatten}.`),(0,r.V1)(!("signatureMetadata"in e)||"object"==typeof e.signatureMetadata,`Invalid \`signatureMetadata\` for signature preparation data. Must be of type \`object\` if present. Provided: ${e.signatureMetadata}.`),"signatureMetadata"in e&&y(e.signatureMetadata),(0,r.V1)(!("position"in e)||"object"==typeof e.position,`Invalid \`position\` for signature preparation data. Must be of type \`object\` if present. Provided: ${e.position}.`),"position"in e&&g(e.position),(0,r.V1)(!("appearance"in e)||"object"==typeof e.appearance,`Invalid \`appearance\` for signature preparation data. Must be of type \`object\` if present. Provided: ${e.appearance}.`),"appearance"in e&&v(e.appearance),(0,r.V1)(!("formFieldName"in e)||"string"==typeof e.formFieldName&&e.formFieldName.trim().length>0,`Invalid \`formFieldName\` for signature preparation data. Must be a non-empty \`string\` if present. Provided: ${e.formFieldName}.`),(0,r.V1)(!e.signingData||!("signatureContainer"in e.signingData)||e.signingData?.signatureContainer&&Object.values(c.Yj).includes(e.signingData.signatureContainer),`Invalid \`signingData.signatureContainer\`. Must be either \`raw\` or \`pkcs7\` if present. Provided: ${e.signingData?.signatureContainer}.`),(0,r.V1)(!e.signingData||!("signatureType"in e.signingData)||e.signingData?.signatureType&&Object.values(c.D7).includes(e.signingData.signatureType),`Invalid \`signingData.signatureType\`. Must be either \`CMS\` or \`CAdES\` if present. Provided: ${e.signingData?.signatureType}.`))}},33075:(e,t,n)=>{"use strict";n.d(t,{XC:()=>xe,sl:()=>Se,SN:()=>ye});var r=n(41811),o=n(7737),i=n(49568),a=n(85409),s=n(44523),l=n(18835),c=n(83877),u=n(76117),d=n(78236),p=n(5217),h=n(67926),f=n(5511),m=n(89574),g=n(93386),v=n(51946);class y{constructor(e,t){this.annotationProvider=e,this.localAnnotationCallbacks=t}createBackendObject(e,t){return(0,a.V1)(!(e instanceof v.KR),"Media annotations cannot be created nor updated, only deleted."),!this.annotationProvider.canCreateBackendOrphanWidgets&&e instanceof u.sb?Promise.resolve():this.annotationProvider.createAnnotation(e,t?.attachments||(0,i.T5)())}updateBackendObject(e,t){return(0,a.V1)(!(e instanceof v.KR),"Media annotations cannot be created nor updated, only deleted."),this.annotationProvider.updateAnnotation(e,t?.attachments||(0,i.T5)())}deleteBackendObject(e){return this.annotationProvider.deleteAnnotation(e)}createStoreObjects(e,t){this.localAnnotationCallbacks.createAnnotations(e,t?.attachments||(0,i.T5)())}updateStoreObjects(e){this.localAnnotationCallbacks.updateAnnotations(e)}deleteStoreObjects(e){this.localAnnotationCallbacks.deleteAnnotations(e)}validateObject(e){return(0,m.WT)(e)}getObjectById(e){return this.localAnnotationCallbacks.getAnnotationById(e)}getObjectId(e){return e.id}refresh(){this.localAnnotationCallbacks.refreshSignaturesInfo()}syncChanges(){return this.annotationProvider.syncChanges()}}class b extends g.r{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.O.IMMEDIATE,r=arguments.length>3?arguments[3]:void 0;super(new y(e,t),n,r),this.annotationProvider=e}loadAnnotationsForPageIndex(e){return this.annotationProvider.loadAnnotationsForPageIndex(e)}}var w=n(67136),x=n(30962);class S{constructor(e,t){(0,w.A)(this,"localBookmarks",(0,i.T5)()),(0,w.A)(this,"onCreate",(e=>{this.localBookmarks=this.localBookmarks.set(e.id,e)})),(0,w.A)(this,"onUpdate",(e=>{this.onCreate(e)})),(0,w.A)(this,"onDelete",(e=>{this.localBookmarks=this.localBookmarks.delete(e.id)})),this.bookmarkProvider=e,this.localBookmarkCallbacks=t}createBackendObject(e){return this.bookmarkProvider.createBookmark(e)}updateBackendObject(e){return this.bookmarkProvider.updateBookmark(e)}deleteBackendObject(e){return this.bookmarkProvider.deleteBookmark(e.id)}createStoreObjects(e){this.localBookmarks=this.localBookmarks.withMutations((t=>{e.forEach((e=>{t.set(e.id,e)}))}))}updateStoreObjects(e){this.createStoreObjects(e)}deleteStoreObjects(e){this.localBookmarks=this.localBookmarks.withMutations((t=>{e.forEach((e=>{t.delete(e)}))}))}validateObject(e){if(!e.id||"string"!=typeof e.id)return!1;try{return(0,x.t)(e),!0}catch(e){return!1}}getObjectById(e){return this.localBookmarks.get(e)}getObjectId(e){return e.id}refresh(){this.localBookmarkCallbacks.refreshSignaturesInfo()}syncChanges(){return this.bookmarkProvider.syncChanges()}}class _ extends g.r{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.O.IMMEDIATE,r=arguments.length>3?arguments[3]:void 0;super(new S(e,t),n,r),(0,w.A)(this,"getBookmarks",(()=>{let e=null;return async()=>(e||(e=this.bookmarkProvider.loadBookmarks()),await e,this.getLocalBookmarks())})()),this.bookmarkProvider=e}getLocalBookmarks(){return this._callbacks.localBookmarks}}var C=n(18248),E=n(90310);class k{constructor(e,t){(0,w.A)(this,"localComments",(0,i.T5)()),(0,w.A)(this,"onCreate",(e=>{(0,a.V1)(e.id),this.localComments=this.localComments.set(e.id,e)})),(0,w.A)(this,"onUpdate",(e=>{this.onCreate(e)})),(0,w.A)(this,"onDelete",(e=>{(0,a.V1)(e.id),this.localComments=this.localComments.delete(e.id)})),this.commentProvider=e,this.localCommentCallbacks=t}createBackendObject(e,t){return this.commentProvider.createComment(e,t.comments,t.annotations)}updateBackendObject(e,t){return this.commentProvider.updateComment(e,t.comments,t.annotations)}deleteBackendObject(e,t){return(0,a.V1)(e.id),this.commentProvider.deleteComment(e.id,t.comments,t.annotations)}createStoreObjects(e){this.localComments=this.localComments.withMutations((t=>{e.forEach((e=>{(0,a.V1)(e.id),t.set(e.id,e)}))})),this.localCommentCallbacks.createComments(e)}updateStoreObjects(e){this.localComments=this.localComments.withMutations((t=>{e.forEach((e=>{(0,a.V1)(e.id),t.set(e.id,e)}))})),this.localCommentCallbacks.updateComments(e)}deleteStoreObjects(e){this.localComments=this.localComments.withMutations((t=>{e.forEach((e=>{t.delete(e)}))})),this.localCommentCallbacks.deleteComments(e)}validateObject(e){try{return(0,E.tf)(e),!0}catch(e){return!1}}getObjectById(e){return this.localComments.get(e)}getObjectId(e){return(0,a.V1)(e.id),e.id}refresh(){this.localCommentCallbacks.refreshSignaturesInfo()}syncChanges(){return this.commentProvider.syncChanges()}}class z extends g.r{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.O.IMMEDIATE,r=arguments.length>3?arguments[3]:void 0;super(new k(e,t),n,r),this.commentProvider=e}async loadComments(){let e=null;e||(e=this.commentProvider.loadComments?this.commentProvider.loadComments():Promise.resolve()),await e}}var P=n(60156);class A{constructor(e,t){this.formFieldValueProvider=e,this.localFormFieldValueCallbacks=t}createBackendObject(e){return this.formFieldValueProvider.createFormFieldValue(e)}updateBackendObject(e){return this.formFieldValueProvider.setFormFieldValue(e)}deleteBackendObject(e){return this.formFieldValueProvider.deleteFormFieldValue((0,P.B)(e))}createStoreObjects(e){this.localFormFieldValueCallbacks.createFormFieldValues(e)}updateStoreObjects(e){this.localFormFieldValueCallbacks.setFormFieldValues(e)}deleteStoreObjects(e){this.localFormFieldValueCallbacks.deleteFormFieldValues(e)}getObjectById(){return null}getObjectId(e){return e.name}validateObject(){return!0}refresh(){this.localFormFieldValueCallbacks.refreshSignaturesInfo()}syncChanges(){return this.formFieldValueProvider.syncChanges()}}class D extends g.r{_getSupportedEvents(){return[...super._getSupportedEvents(),"willSubmit","didSubmit"]}constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.O.IMMEDIATE,r=arguments.length>3?arguments[3]:void 0;super(new A(e,t),n===f.O.INTELLIGENT?f.O.IMMEDIATE:n,r)}createObject(e){const t=this.lockSave();try{this._saveModeQueue.createObject(this._createSaveQueueObject(e.name,e)),this._createdObjects=this._createdObjects.set(e.name,e)}finally{t()}}updateObject(e){const t=this.lockSave();try{this._saveModeQueue.updateObject(this._createSaveQueueObject(e.name,e)),this._updatedObjects=this._updatedObjects.set(e.name,e)}finally{t()}}deleteObject(e){const t=this.lockSave();try{this._saveModeQueue.deleteObject(this._createSaveQueueObject(e.name,e)),this._deletedObjects=this._deletedObjects.set(e.name,(0,P.B)(e))}finally{t()}}}var T=n(75439),I=n(47750),M=n(89055),N=n(78729),O=n(41567),R=n(23237),j=n(38119),F=n(77270),B=n(46692),L=n(42361),V=n(38849),K=n(4939),H=n(88140),$=n(64337);const U=(0,V.A)("Forms"),W=(0,a.$5)("Forms");class q extends K.i{constructor(e,t){super(t().formFieldValueManager),this.dispatch=e,this.getState=t}async create(e){throw W(`Can't create ${e.toString()}. Form field values creation is not supported.`)}async update(e){const{formFields:t,features:n,formsEnabled:r}=this.getState(),o=this.getState();return U(n.includes($.Y.FORMS),L.PC),U(r,L.rZ),U(o.backend),e.map((e=>{const n=t.get(e.name);if(U(n,`Tried to set the form field value for form field \`${e.name}\` which does not exist.`),!(0,H.wS)(n,o))throw new a.uE("You don't have permission to update this form field value.");return this.dispatch((0,c.mV)([{name:e.name,value:e.value,optionIndexes:e.optionIndexes}])),e}))}async delete(e){return e.map((e=>{throw W(`Can't delete ${e.toString()}. Form field values deletion is not supported.`)}))}async ensureChangesSaved(e){U("string"==typeof e.name,"The form field value you passed to Instance.ensureChangesSaved() has no name.");const{formFieldValueManager:t}=this.getState();return U(t),await t.ensureObjectSaved(e)}}var G=n(74111),Z=n(39582);const Y=(0,V.A)("Bookmarks");class X extends K.i{constructor(e,t){super(t().bookmarkManager),this.dispatch=e,this.getState=t}async create(e){const t=this.getState(),{bookmarkManager:n}=t,r=e.map((e=>{const t=e.id;Y(n),"string"==typeof t&&n.getLocalBookmarks()&&Y(!n.getLocalBookmarks().has(t),`Bookmark with id (${t}) is already used.`);const r="string"==typeof e.id&&e.id.length>0?e:e.set("id",(0,G.z)());return(0,x.t)(r),n.createObject(r),n.autoSave(),r}));return(0,Z.U)(r)}async update(e){const{bookmarkManager:t}=this.getState();Y(t);const n=e.map((e=>(Y("string"==typeof e.id,"The bookmark you passed to Instance.update() has no id.\nPlease use Instance.create() first to assign an id."),(0,x.t)(e),t.updateObject(e),t.autoSave(),e)));return(0,Z.U)(n)}async delete(e){const t=this.getState(),{bookmarkManager:n}=t,r=await(n?.getBookmarks());Y(n);const o=e.map((e=>{Y("string"==typeof e.id,"The supplied bookmark id is not a valid id.");const t=r?.get(e.id);return Y(t,`No bookmark with id ${e.id} found.`),n.deleteObject(e),n.autoSave(),t}));return(0,Z.U)(o)}async getObjectById(e){const{bookmarkManager:t}=this.getState();if(!t)return null;return(await t.getBookmarks()).get(e)}async ensureChangesSaved(e){Y("string"==typeof e.id,"The bookmark you passed to Instance.ensureChangesSaved() has no valid id.\nPlease use Instance.create() first to assign an id.");const{bookmarkManager:t}=this.getState();return Y(t),await t.ensureObjectSaved(e)}}var J=n(6163),Q=n(63226);const ee=(0,V.A)("Comments"),te=J.Z0;class ne extends K.i{constructor(e,t){super(t().commentManager),this.dispatch=e,this.getState=t}async create(e,t){const n=this.getState(),r=e.map((e=>{re(n);const r=e.id;"string"==typeof r&&ee(!n.comments.has(r),`Comment id (${r}) is already used.`),ee(e.rootId,"Comment does not have `rootId`");const o=n.annotations.get(e.rootId)||(t?function(e,t){const n=e.find((e=>e instanceof v.YH&&e.id===t));return n}(t,e.rootId):null);if(ee(o,`Comment orphan: The comment can't be created because no comment thread root was found with the id '${e.rootId}'. Please ensure that you create the corresponding annotation together with the comment via instance.create([comment, commentThreadRootAnnotation]).`),ee(o instanceof v.dG||o instanceof v.tr,`The comment can't be created because its root has wrong type. Was '${o.constructor.name}', only 'CommentMarkerAnnotation' and 'TextMarkupAnnotation' are supported as comment thread roots.`),ee(!e.pageIndex||e.pageIndex===o.pageIndex,`The comment can't be created on different page (${e.pageIndex}) than the comment root (${o.pageIndex}).`),!(0,H.yF)(o,n))throw new a.uE("You are not allowed to reply to this thread.");const{annotationCreatorName:i,annotationCreatorNameReadOnly:s}=n;if(e.creatorName&&e.creatorName!==i&&s)throw new a.uE("The comment creator name is different from the one set on the JWT.");const l=e.withMutations((t=>{const r=new Date;t.set("id",te()).set("creatorName",n.annotationCreatorName).set("createdAt",r).set("updatedAt",r).set("pageIndex",o.pageIndex),ee(n.backend),n.backend.isCollaborationPermissionsEnabled()&&!t.group&&n.group!==n.backend.getDefaultGroup()&&t.merge({group:n.group}),["id","creatorName","createdAt","updatedAt"].map((n=>e[n]&&t.set(n,e[n])))}));return(0,E.tf)(l),l}));return(0,o.vA)((()=>{r.forEach((e=>{e instanceof Error||(this.dispatch((0,O.VM)(e)),this.autoSave())}))})),(0,Z.U)(r)}async update(e){const t=this.getState(),n=e.map((e=>{re(t),ee("string"==typeof e.id,"The comment you passed to Instance.update() has no id.\nPlease use Instance.create() first to assign an id.");const n=t.comments.get(e.id);ee(n,"An comment that does not exist was updated. This is probably caused by a sync conflict when Instant is enabled.\n    The update of this comment was skipped."),t.backend?.isCollaborationPermissionsEnabled()||n.group===e.group&&e.isEditable===n.isEditable&&e.isDeletable===n.isDeletable&&e.canSetGroup===n.canSetGroup||(e=e.set("group",n.group).set("isEditable",n.isEditable).set("isDeletable",n.isDeletable).set("canSetGroup",n.canSetGroup),(0,a.R8)("`group`, `isEditable`, `isDeletable` and `canSetGroup` are only relevant when Collaboration Permissions are enabled in server backed setup. You do not have it enabled so these values are set to `undefined`."));if(!e.delete("group").equals(n.delete("group"))&&!(0,H.Kt)(n,t))throw new a.uE("You don't have permission to update this comment.");if(e.group!==n.group&&!(0,H.ox)(e,t))throw new a.uE("You don't have permission to update the `group` of this comment.");if(e.isEditable!==n.isEditable||e.isDeletable!==n.isDeletable||e.canSetGroup!==n.canSetGroup)throw new a.uE("You can't update `isEditable` or `isDeletable` since they are read only properties which depend on the `group` property.");if(e.creatorName!==n.creatorName&&t.annotationCreatorNameReadOnly)throw new a.uE("You can't change the creatorName of a comment if it was already set on the JWT.");if(e.rootId!==n.rootId)throw new a.uE("You can't change the root id of a comment once it has been created.");const r=e.set("updatedAt",new Date);return(0,E.tf)(r),r}));return(0,o.vA)((()=>{n.forEach((e=>{e instanceof Error||(this.dispatch((0,O.mT)(e)),this.autoSave())}))})),(0,Z.U)(n)}async delete(e){const t=this.getState();re(t);const n=e.map((e=>{ee(e.id);const n=t.comments.get(e.id);if(ee(n,`No comment with id ${e.id} found.`),!(0,H.Fz)(n,t))throw new a.uE("You don't have permission to delete this comment.");return n}));return(0,o.vA)((()=>{n.forEach((e=>{e instanceof Error||(this.dispatch((0,O.qu)(e)),this.autoSave())}))})),(0,Z.U)(n)}async ensureChangesSaved(e){re(this.getState()),ee("string"==typeof e.id,"The comment you passed to Instance.ensureChangesSaved() has no id.\nPlease use Instance.create() first to assign an id.");const{commentManager:t}=this.getState();return ee(t),await t.ensureObjectSaved(e)}async getObjectById(e){ee("string"==typeof e,"The supplied id is not a valid id.");const{comments:t,features:n}=this.getState();return n.includes($.Y.COMMENTS)?t.get(e):null}}function re(e){const{features:t,backend:n}=e;ee(t.includes($.Y.COMMENTS),Q.Zn),ee((0,M.oj)(n),"The API you're trying to use is only available when using the PSPDFKit Instant or PSPDFKit for Web Standalone.")}var oe=n(47745);const ie=(0,a.$5)("Changes");class ae{constructor(e){this.annotation=e.annotation,this.bookmark=e.bookmark,this.comment=e.comment,this.formField=e.formField,this.formFieldValue=e.formFieldValue}toArray(){return[this.annotation,this.bookmark,this.comment,this.formField,this.formFieldValue].filter(Boolean)}forEach(e){this.toArray().forEach(e)}map(e){return this.toArray().map(e)}}class se{constructor(e,t,n,r){(0,w.A)(this,"_prevHasUnsavedChanges",!1),(0,w.A)(this,"eventEmitter",new j.A(["saveStateChange"])),this._dispatch=e,this._getState=t,n&&(this.handlers=new ae(n)),r&&(this.eventEmitter=r)}connect(){const e=this._getState();if(this._backend=e.backend,!this.handlers){const e={};e.annotation=new B.wf(this._dispatch,this._getState),e.bookmark=new X(this._dispatch,this._getState),e.formField=new L.fu(this._dispatch,this._getState),e.formFieldValue=new q(this._dispatch,this._getState),e.comment=new ne(this._dispatch,this._getState),this.handlers=new ae(e)}this.handlers.forEach((e=>{const t=e.getEventEmitter();t&&t.supportsEvent("saveStateChange")&&t.on("saveStateChange",(()=>this._onSaveStateChanged()))}))}save(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.hasUnsavedChanges())return Promise.resolve();const t=this.handlers.map((e=>e.manualSave(!1)));return e&&t.push(this._backend.syncChanges().catch(le)),(0,F.AV)(t).then((()=>{})).catch((t=>{const n=e?t.pop():null,r=t.filter(Boolean).map((e=>{if(e instanceof oe.d)return e.reason})).filter(Boolean),o=(0,i.B8)(r).flatMap((e=>e)).toArray();throw(0,oe.C)(o,Boolean(n),n?n.message:null)}))}hasUnsavedChanges(){return this.handlers.map((e=>e.hasUnsavedChanges())).some(Boolean)}_onSaveStateChanged(){const e=this.hasUnsavedChanges();this._prevHasUnsavedChanges!==e&&(this._prevHasUnsavedChanges=e,this.eventEmitter.emit("saveStateChange",{hasUnsavedChanges:e}))}async create(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._performChanges(e,((n,r)=>n.create(r,t?e:null)))}async update(e){return this._performChanges(e,((t,n)=>t.update(n,e)))}_changesForHandler(e,t){return t.filter((t=>this._handlerForChange(t)===e))}async delete(e){const t=e.map((()=>ie("Unsupported change type"))),n=await(0,F.AV)(e.map((async(e,n)=>{if(e){if("string"==typeof e){for(const t of this.handlers.toArray()){const n=await t.getObjectById(e);if(n)return n}t[n]=ie(`No object with id '${e}' found.`)}}else t[n]=ie("The supplied id is not a valid id");return e})));return this._performChanges(n,((e,t)=>e.delete(t)),t)}ensureChangesSaved(e){const t=e.map((e=>{const t=this._handlerForChange(e);return t?t.ensureChangesSaved(e):Promise.reject(ie("Unsupported change type"))}));return(0,F.AV)(t)}async _performChanges(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.map((()=>ie("Unsupported change type")));const r=[],i=this.handlers.map((e=>e.lockSave()));try{let n=null;(0,o.vA)((()=>{n=this.handlers.map((async(n,o)=>{const i=this._changesForHandler(n,e);if(i.length)try{r[o]=await t(n,i)}catch(e){r[o]=e}}))})),n&&await(0,F.AV)(n)}finally{i.forEach((e=>{e()}))}const a=await this._mapResultsToChanges(e,r,n);return a.some((e=>e instanceof Error))?Promise.reject(a):Promise.resolve(a)}async _mapResultsToChanges(e,t,n){const r=n;for(const[n,o]of this.handlers.map((e=>e)).entries()){const i=await this._changesForHandler(o,e),a=t[n];i.length&&i.forEach(((t,n)=>{const o=e.findIndex((e=>e===t));a instanceof Error?r[o]=a:r[o]=a[n]??a}))}return r}_handlerForChange(e){switch(!0){case e instanceof v.YH:return this.handlers.annotation;case e instanceof x.A:return this.handlers.bookmark;case e instanceof u.Mw:return this.handlers.comment;case e instanceof u.zB:return this.handlers.formField;case e instanceof u.E2:return this.handlers.formFieldValue;default:return null}}}function le(e){throw ie(e),e}var ce=n(83720),ue=n(27522),de=n(3745),pe=n(82500),he=n(53253);const fe={rollover:"rollover",down:"down"};var me=n(68322),ge=n(35467),ve=n(8593);async function ye(e,t,n){if(n.pageKeys)try{e(we(t())),await be(e,t,n)}finally{e(we(null))}else await be(e,t,n)}async function be(e,t,n){let{attemptedUnlockViaModal:f=!1,features:g,signatureFeatureAvailability:v,hasPassword:y=!1,minSearchQueryLength:w,allowedTileScales:x,pageKeys:S,evaluation:E}=n;const{backend:k,autoSaveMode:P,clientsChangeCallback:A,formsEnabled:j}=t();(0,a.V1)(k);const{provider:F}=k,[B,L]=await Promise.all([k.permissions(),k.documentInfo()]),V=g&&g.includes($.Y.FORMS),K=(N.JY.IGNORE_DOCUMENT_PERMISSIONS||L.permissions&&(L.permissions.annotationsAndForms||L.permissions.fillForms))&&V&&j,H=K&&(0,M.ah)(k)&&g&&g.includes($.Y.FORM_DESIGNER),U=V&&!(0,M.ah)(k)?await k.getFormJSON():null;if(k.isUsingInstantProvider()){(0,a.V1)("onClientsChange"in F&&void 0!==F.onClientsChange,"provider has no callback `onClientsChange` although it is using instant.");const n=F;n.onClientsChange((e=>{A.call(null,e)})),n.setDocumentHandleOutdated((t=>{e((0,h.eW)(t))})),n.setFormsEnabledInConfig(j),n.setStateGetter(t)}else if("SERVER"===k.type&&U&&g&&v){if(!(0,M.cY)(g,v)){const e=U.fields.filter((e=>"pspdfkit/form-field/signature"===e.type)).map((e=>e.name));U.annotations=U.annotations.filter((t=>!e.includes(t.formFieldName))),U.fields=U.fields.filter((t=>!e.includes(t.name))),F.setIgnoredFormFieldNames((0,i.B8)(e))}}E&&e((0,ge.Xp)(E));const W={refreshSignaturesInfo:async()=>{const{digitalSignatures:n}=t();g&&g.includes($.Y.DIGITAL_SIGNATURES)&&n&&n&&n.status!==ue.J.not_signed&&!1===n.documentModifiedSinceSignature&&(await k.refreshSignaturesInfo(),e((0,I.K)(await k.getSignaturesInfo())))}},q={...W,createAnnotations:(t,n)=>{n&&n.forEach(((t,n)=>{e((0,p.c)({hash:n,attachment:t}))})),e((0,R._v)(de.I.EXTERNAL,(()=>{e((0,T.XV)(t))})))},updateAnnotations:t=>{e((0,R._v)(de.I.EXTERNAL,(()=>{e((0,T.iN)(t))})))},deleteAnnotations:t=>{e((0,R._v)(de.I.EXTERNAL,(()=>{e((0,T.Ud)(t))})))},getAnnotationById:e=>t().annotations.get(e)},G=V&&(0,M.ah)(k)?{...W,createFormFields:t=>{e((0,c.aB)(t))},updateFormFields:t=>{e((0,c.dx)(t)),e((0,c.$D)(t.map((e=>new u.E2({name:e.name,value:e.value})))))},deleteFormFields:t=>{e((0,c.GX)(t))},getFormFieldByName:e=>t().formFields.get(e)}:null,Z={...W,createFormFieldValues:t=>e((0,c.l$)(t)),setFormFieldValues:t=>e((0,c.$D)(t)),deleteFormFieldValues:t=>e((0,c.aJ)(t))},Y=(0,M.oj)(k),X=Y?{...W,createComments:t=>{e((0,O.TW)(t))},updateComments:t=>{e((0,O.m5)(t))},deleteComments:t=>{e((0,O.wn)(t))}}:null,J={...W},Q=t(),ee=new b(F,q,P,Q.annotationManager&&Q.annotationManager.eventEmitter),te=new _(F,J,P,Q.bookmarkManager&&Q.bookmarkManager.eventEmitter),ne=V&&G&&(0,M.ah)(k)?new C.u(F,G,P,Q.formFieldManager&&Q.formFieldManager.eventEmitter):null,re=new D(F,Z,P,Q.formFieldValueManager&&Q.formFieldValueManager.eventEmitter);let oe;Y&&((0,a.V1)(null!=X),oe=new z(F,X,P,Q.commentManager&&Q.commentManager.eventEmitter));const ie=(0,r.A)(m.T1),ae=(0,r.A)(ce.uk),le={getPageContentState:e=>{const{pages:n,annotations:r,formFields:o}=t(),i=n.get(e);return(0,a.V1)(i),{pageSize:i.pageSize,annotations:ie(r,i),formFields:ae(o,i)}},getZoomState:()=>t().viewportState.zoomLevel,getAnnotationWithFormField:e=>{const{annotations:n,formFields:r}=t(),o=n.get(e);return{annotation:o,formField:o instanceof u.sb&&o.formFieldName?r.get(o.formFieldName):null}},getFormFieldWidgets:e=>{const{annotations:n}=t(),{annotationIds:r}=e;return n.filter(((t,n)=>e.annotationIds.includes(n)||e.annotationIds.includes(String(t.pdfObjectId)))).toList().sort(((e,t)=>r.indexOf(e.id)<r.indexOf(t.id)?-1:1))},getFormFieldByName:e=>t().formFields.get(e),isFormDesignerEnabled:()=>(0,M.ru)(t()),isAnnotationInState:e=>t().annotations.has(e),isFormFieldInState:e=>t().formFields.has(e),getAvailableVariants:e=>{const{APStreamVariantsRollover:n,APStreamVariantsDown:r}=t();if(null==e.pdfObjectId)return[];const o=[];return n.has(e.pdfObjectId)&&o.push(fe.rollover),r.has(e.pdfObjectId)&&o.push(fe.down),o}},pe={createAnnotations:(e,t,n)=>{ee.backendObjectsCreated(e,n,{attachments:t})},updateAnnotations:ee.backendObjectsUpdated.bind(ee),deleteAnnotations:ee.backendObjectsDeleted.bind(ee),invalidateAPStreams:t=>e((0,T.ke)(t)),createAttachment:(t,n)=>{e((0,p.c)({hash:t,attachment:new u.o3({data:n})}))},addAnnotationVariants:(t,n)=>{e((0,T.J5)(t,n))},applyJavaScriptActionChanges:t=>{e((0,c.f_)(t))},setPageTabOrder:(t,n)=>{e((0,T.pk)(t,n))}},me={createBookmarks:te.backendObjectsCreated.bind(te),updateBookmarks:te.backendObjectsUpdated.bind(te),deleteBookmarks:te.backendObjectsDeleted.bind(te)},ye=V&&ne instanceof C.u&&(0,M.ah)(k)?{createFormFields:ne.backendObjectsCreated.bind(ne),updateFormFields:ne.backendObjectsUpdated.bind(ne),deleteFormFields:ne.backendObjectsDeleted.bind(ne)}:null,be={createFormFieldValues:(e,t)=>{t===d.n?V&&re.backendObjectsCreated(e,t):t===d.N&&H&&re.backendObjectsCreated(e,t)},setFormFieldValues:e=>{K&&re.backendObjectsUpdated(e)},deleteFormFieldValues:e=>{H&&re.backendObjectsDeleted(e)}};let we;Y&&((0,a.V1)(null!=oe),we={createComments:oe.backendObjectsCreated.bind(oe),updateComments:oe.backendObjectsUpdated.bind(oe),deleteComments:oe.backendObjectsDeleted.bind(oe)});const xe=new se(e,t,null,Q.changeManager&&Q.changeManager.eventEmitter),Se={attemptedUnlockViaModal:f,hasPassword:y,features:g,signatureFeatureAvailability:v,permissions:B,documentInfo:L,formJSON:U,annotationManager:ee,bookmarkManager:te,formFieldManager:ne,formFieldValueManager:re,commentManager:oe,changeManager:xe,minSearchQueryLength:w,documentHandle:k.getDocumentHandle(),allowedTileScales:x,pageKeys:S};let _e=null;(0,o.vA)((function(){e((0,l.uF)(Se)),F.setReadStateCallbacks(le),F.setAnnotationCallbacks(pe),F.setBookmarkCallbacks(me),F.setFormFieldValueCallbacks(be),Y&&((0,a.V1)(null!=we),F.setCommentCallbacks(we)),V&&(0,M.ah)(k)&&((0,a.V1)(ye),F.setFormFieldCallbacks(ye)),xe.connect(),_e=F.load()}));try{await _e,await new Promise(((t,n)=>{("visible"===document.visibilityState?requestAnimationFrame:setTimeout)((()=>{k.lazyLoadPages().then((r=>{const o=[];r&&e((0,he.Y3)(r)),V&&(0,M.ah)(k)&&ne&&o.push(ne.loadFormFields()),(0,a.V1)(g,"Features should be defined at this point"),(0,M.oj)(k)&&(0,M.kl)({features:g,backend:k})&&oe&&o.push(oe.loadComments()),(0,M.$X)({features:g,backend:k})&&o.push(async function(e){let{backend:t,dispatch:n}=e;const r=await(t.getSecondaryMeasurementUnit?.());r&&n((0,ve.rs)(r));const o=await t.getMeasurementScales();o&&n((0,ge.Ue)((0,s.qG)(o)))}({backend:k,dispatch:e})),o.length>0?Promise.all(o).then((()=>t())).catch(n):t()})).catch((e=>{n(e)}))}))}))}catch(e){throw e}}function we(e){return{type:pe.ulm,state:e}}function xe(e,t,n){if(n===me.v.SharePoint){const n=new URL(t,e),[r,o]=n.hostname.split(".").reverse();if("sharepoint"!==o||"com"!==r)throw new a.uE(`When using SharePoint, the document URL must be a sharepoint.com URL: it's ${o}.${r} instead.`)}if(n===me.v.Salesforce){const t=new URL(e),[n,r]=t.hostname.split(".").reverse();if("salesforce"!==r&&"force"!==r&&"visualforce"!==r||"com"!==n)throw new a.uE(`When using Salesforce, the SDK must be loaded from a Salesforce URL: it's ${r}.${n} instead.`)}}function Se(e,t,n,r){let o;return"string"==typeof t?(xe(e,t,n),o=fetch(t,{credentials:"same-origin"}).then((e=>e.arrayBuffer())).finally((()=>{r?.()}))):o=t,o}},51467:(e,t,n)=>{"use strict";n.d(t,{$N:()=>m,JT:()=>d,T7:()=>h,Ut:()=>f,cH:()=>c,kR:()=>p,wv:()=>u});var r=n(49568),o=n(85409),i=n(64337),a=n(69979),s=n(96754),l=n(59924);function c(e){return"STANDALONE"===e.backend?.type&&e.features.includes(i.Y.DOCUMENT_COMPARISON)}const u="You need the document comparison license component to use this feature.",d="The document comparison feature is only available in Standalone mode.",p=(e,t)=>(0,a.Qp)(e.set("currentPageIndex",0).set("pageSizes",(0,r.B8)([t.pageSize])),s.d.FIT_TO_WIDTH);async function h(e){const t=await e;if("string"==typeof t){let e;try{e=fetch(t).then((e=>e.arrayBuffer()))}catch(e){(0,o.z3)(e)}return e}if(t instanceof ArrayBuffer)return t;throw new o.uE("Comparison document source is not a URL nor an ArrayBuffer")}const f=e=>e===l.w.documentA?l.w.documentA:e===l.w.documentB?l.w.documentB:l.w.result,m=[[[0,0],[0,0]],[[0,0],[0,0]],[[0,0],[0,0]]]},9939:(e,t,n)=>{"use strict";n.d(t,{$3:()=>m,AJ:()=>u,BJ:()=>f,KU:()=>d,PE:()=>_,PG:()=>k,RL:()=>c,UN:()=>y,X6:()=>b,Xx:()=>p,Yf:()=>A,_i:()=>P,bc:()=>C,in:()=>w,jU:()=>v,kM:()=>g,sb:()=>T,u7:()=>S,vB:()=>h,wo:()=>z});var r=n(85409),o=n(28650),i=n(9627),a=n(15168),s=n(71052),l=n.n(s);function c(e){return function(e){e&&i.gm&&e.scrollHeight}(e),function(e){return e.scrollHeight>e.clientHeight}(e)||u(e)}function u(e){return e.scrollWidth>e.clientWidth}function d(e){const t=e?e.document:document,n=t.createElement("iframe"),{documentElement:o}=t;return(0,r.V1)(o),n.title="script",n.dataset.testid="realm",n.style.position="absolute",n.style.top="-10000px",n.style.left="-10000px",n.style.width="10000px",n.style.height="10000px",n.setAttribute("aria-hidden","true"),o.appendChild(n),{window:n.contentWindow,remove(){o.removeChild(n)}}}function p(e){let t;if(!e.nodeName)return!1;const n=e.nodeName,r=e.hasAttribute("tabindex")&&parseInt(e.getAttribute("tabindex")),o=!isNaN(r)&&isFinite(r)&&"boolean"!=typeof r;if(/^(IFRAME|LABEL|DATALIST|INPUT|SELECT|TEXTAREA|BUTTON|OBJECT)$/.test(n)){if(t=!e.disabled,t){const n=e.closest("fieldset");n&&(t=!n.disabled)}}else t="A"===n?e.href||o:e.hasAttribute("contenteditable")&&"true"===e.getAttribute("contenteditable")||o;return!!t}const h=async e=>{let{buffer:t,width:n,height:r,format:o=(0,a.LG)()}=e;if("bitmap"===o)return(async e=>{let{buffer:t,width:n,height:r}=e;const o=document.createElement("canvas");if(0===Math.floor(r)||0===Math.floor(n))return null;o.width=n,o.height=r;const i=new Uint8ClampedArray(t),a=o.getContext("2d"),s=a?.createImageData(n,r);return s?.data.set(i),a?.putImageData(s,0,0),f(await k(o))})({buffer:t,width:n,height:r});return f(new Blob([t],{type:`image/${o}`}))};function f(e){try{return m(URL.createObjectURL(e))}catch(e){return null}}async function m(e){const t=new Image;return t.onerror=e=>{throw new r.uE(`There was an error loading the image: ${e.message}`)},t.src=e,await P(t),new o.A(t,(()=>URL.revokeObjectURL(e)))}function g(e){return!(!e||1!==e.nodeType)&&("true"===e.contentEditable||"INPUT"===e.nodeName||"TEXTAREA"===e.nodeName)}function v(e){return!(!e||1!==e.nodeType)&&Boolean(e.attributes.role&&"listbox"===e.attributes.role.value||e.attributes.role&&"menu"===e.attributes.role.value)}function y(e){if(!e||1!==e.nodeType)return!1;const t=e.getRootNode()||e.ownerDocument,n=t.querySelector(".PSPDFKit-Annotation-Toolbar"),r=t.querySelectorAll('[role="toolbar"]');return([...r]?.some((t=>t.contains(e)))||n?.contains(e))??!1}function b(e){return!!(e.closest('[role="dialog"]')||e.closest('[role="alertdialog"]'))}function w(e){return!(!e||1!==e.nodeType)&&Boolean(e.closest(".PSPDFKit-Toolbar-Responsive-Group"))}let x=!1;{let e=document.createElement("div");const t=()=>{};try{e.addEventListener("focus",t,!0),e.focus(Object.defineProperty({},"preventScroll",{get:()=>{x=!0}}))}catch(e){x=!1}finally{e.removeEventListener("focus",t),e=null}}function S(e,t){x&&t.focus({preventScroll:!0})}function _(e,t,n,r){const o=t.HTMLAnchorElement.prototype.hasOwnProperty("download"),i=new Blob([e],{type:n});if("function"==typeof navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(i,r);else if(o){const e=window.URL.createObjectURL(i);E(e,r),t.URL.revokeObjectURL(e)}else{const e=new FileReader;e.onloadend=function(){const t=e.result;"string"==typeof t&&E(t,r)},e.readAsDataURL(i)}}function C(e,t){_(e,t,"application/pdf","download.pdf")}function E(e,t){(0,r.V1)(null!=document.body);const n=document.createElement("a");n.href=e,n.style.display="none",n.download=t,n.setAttribute("download",t),document.body&&document.body.appendChild(n),n.click(),document.body&&document.body.removeChild(n)}function k(e){return new Promise(((t,n)=>{"toBlob"in e?e.toBlob((e=>{t(e)}),"image/png"):"msToBlob"in e?t(e?.msToBlob()):n(new Error("Exporting HTMLCanvasElement to Blob is not supported in this browser."))}))}function z(e){e.preventDefault()}async function P(e){if(!(e instanceof HTMLImageElement)||"IMG"!==e.nodeName)return;try{await new Promise(((t,n)=>{e.complete?t():(e.onerror=n,e.onload=()=>t())}))}catch(e){throw new r.uE(`The image could not be loaded: ${e.message}`)}const t=e.decode();try{await t}catch(e){if(!i.H8)throw new r.uE(`The image could not be decoded: ${e.message}`);await new Promise((e=>setTimeout(e,200)))}}function A(e){e.target?.classList.remove(l().focusedFocusVisible),e.target?.removeEventListener("blur",A)}const D={HTMLElement:"HTMLElement"};function T(e){return function(e,t){if(null===e)return!1;let n=e.constructor;for(;null!==n;){if(n.name===t)return!0;n=n.__proto__}return!1}(e,D.HTMLElement)}},85410:(e,t,n)=>{"use strict";n.d(t,{$_:()=>s,Sb:()=>c,_q:()=>o,f:()=>l,uc:()=>i});var r=n(41204);function o(){return"protocol=5, client=1.1.0, client-git=e4dd477934"}function i(){return"production"}const a=new Map;function s(e){const t=(0,r.NE)();if(t)return t;const n=document.createElement("a");n.href=function(e){const t=a.get(e);if("string"==typeof t)return t;const n=e.currentScript.src;return a.set(e,n),n}(e);const o=n.pathname.split("/").filter(Boolean).slice(0,-1);return[`${n.protocol}/`,n.host,...o].join("/")+"/"}function l(e){return e||(0,r.D5)()||window.location.origin}function c(e){return"SERVER"===e?.type}},47058:(e,t,n)=>{"use strict";function r(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{bubbles:!1,cancelable:!1};return"function"==typeof Event?t=new Event(e,n):(t=document.createEvent("Event"),t.initEvent(e,Boolean(n.bubbles),Boolean(n.cancelable))),t}function o(e){const t=document.createEvent("MouseEvent");return t.initEvent(e,!0,!0),t}function i(e){let{event:t,element:n}=e;const r=n.getRootNode().elementFromPoint(t.clientX,t.clientY);return n.contains(r)}n.d(t,{AT:()=>o,BL:()=>r,b4:()=>i})},15168:(e,t,n)=>{"use strict";n.d(t,{LG:()=>a,fS:()=>o,xd:()=>i});var r=n(9627);const o=(()=>{if("object"!=typeof window)return!1;let e=!1;const t=Object.defineProperty({},"passive",{get:function(){return e=!0,!0}});try{window.addEventListener("test",null,t)}catch(e){}return e})();let i=!r.nr;if(!r.nr){const e=new Image;e.onload=()=>i=e.width>0&&e.height>0,e.onerror=()=>i=!1,e.src="data:image/webp;base64,UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA=="}const a=()=>"png"},84318:(e,t,n)=>{"use strict";n.d(t,{tY:()=>p,P8:()=>h,IP:()=>g,lg:()=>m,eY:()=>f,iL:()=>d});var r=n(49568),o=n(85409),i=n(57916);const a={Arial:{A:6.70421875,B:5.4102734375,C:6.333125,D:5.92296875,E:5.346796875,F:4.8341015625,G:6.62609375,H:5.620234375,I:.952265625,J:3.960078125,K:5.92296875,L:4.47765625,M:6.8360546875,N:5.6446484375,O:6.850703125,P:5.4688671875,Q:6.987421875,R:6.31359375,S:5.7032421875,T:5.678828125,U:5.6348828125,V:6.5528515625,W:9.2091015625,X:6.5675,Y:6.5675,Z:5.6641796875,a:4.780390625,b:4.5020703125,c:4.5216015625,d:4.5020703125,e:4.7852734375,f:3.0372265625,g:4.5753125,h:4.2286328125,i:.88390625,j:1.9971875000000001,k:4.301875,l:.88390625,m:7.0313671875,n:4.2188671875,o:4.8633984375,p:4.506953125,q:4.4971875,r:2.8223828125,s:4.311640625,t:2.534296875,u:4.2091015625,v:4.760859375,w:7.1192578125,x:4.858515625,y:4.7559765625,z:4.59484375},Verdana:{A:6.58703125,B:5.4883984375,C:6.0352734375,D:6.147578125,E:4.7950390625,F:4.6485546875,G:6.4844921875,H:5.5665234375,I:2.87609375,J:3.432734375,K:5.8253125,L:4.604609375,M:6.479609375,N:5.551875,O:6.7579296875,P:4.760859375,Q:6.9044140625,R:6.020625,S:5.61046875,T:6.167109375,U:5.5860546875,V:6.58703125,W:8.9942578125,X:6.19640625,Y:6.09875,Z:5.678828125,a:4.6387890625,b:4.8048046875,c:4.428828125,d:4.8048046875,e:4.956171875,f:3.510859375,g:4.8048046875,h:4.565546875,i:1.0401562500000001,j:2.9102734375,k:4.917109375,l:.92296875,m:7.963984375,n:4.565546875,o:5.0391796875,p:4.8048046875,q:4.8048046875,r:3.4083203125,s:4.2676953125,t:3.4376171875,u:4.565546875,v:5.327265625,w:7.34875,x:5.33703125,y:5.327265625,z:4.409296875},Tahoma:{A:6.09875,B:4.936640625,C:5.522578125,D:5.737421875,E:4.5508984375,F:4.3555859375,G:5.8790234375,H:5.2833203125,I:2.827265625,J:3.4376171875,K:5.3028515625,L:4.2188671875,M:6.23546875,N:5.2051953125,O:6.4356640625,P:4.59484375,Q:6.460078125,R:5.6348828125,S:4.9512890625,T:5.854609375,U:5.2637890625,V:6.049921875,W:8.7696484375,X:5.7325390625,Y:5.88390625,Z:5.083125,a:4.3458203125,b:4.5801953125,c:4.1602734375,d:4.5801953125,e:4.7169140625,f:3.3985546875,g:4.5801953125,h:4.292109375,i:1.0499218750000001,j:2.60265625,k:4.526484375,l:.92296875,m:7.114375,n:4.292109375,o:4.878046875,p:4.5801953125,q:4.5801953125,r:2.895625,s:3.9503125,t:3.2325390625,u:4.292109375,v:4.926875,w:7.13390625,x:4.858515625,y:4.926875,z:4.0137890625},"Trebuchet MS":{A:5.864375,B:4.5411328125,C:5.2051953125,D:5.014765625,E:4.2774609375,F:4.4239453125,G:5.6446484375,H:5.083125,I:.9815625,J:3.7989453125,K:5.0294140625,L:4.213984375,M:6.9532421875,N:4.9219921875,O:5.96203125,P:4.458125,Q:7.03625,R:5.0440625,S:4.0284375,T:5.6348828125,U:5.02453125,V:5.7520703125,W:8.3985546875,X:5.444453125,Y:5.581171875,Z:4.5313671875,a:4.47765625,b:4.5508984375,c:4.32140625,d:4.5411328125,e:4.8243359375,f:3.432734375,g:4.3409375,h:4.155390625,i:1.8067578125000001,j:2.5977734375,k:4.389765625,l:1.8067578125000001,m:6.987421875,n:4.1505078125,o:4.7364453125,p:4.5606640625,q:4.5753125,r:3.159296875,s:3.4180859375,t:3.3497265625,u:4.253046875,v:4.7852734375,w:7.299921875,x:4.897578125,y:4.819453125,z:4.36046875},"Times New Roman":{A:7.03625,B:5.96203125,C:5.9669140625,D:6.674921875,E:5.678828125,F:4.995234375,G:6.733515625,H:6.850703125,I:2.8419140625,J:3.6329296875,K:7.143671875,L:5.698359375,M:8.520625,N:7.2169140625,O:6.489375,P:5.0489453125,Q:6.4942578125,R:6.5919140625,S:4.4044140625,T:5.561640625,U:7.065546875,V:7.01671875,W:9.233515625,X:7.03625,Y:6.987421875,Z:5.708125,a:4.0675,b:4.682734375,c:3.77453125,d:4.6973828125,e:3.7891796875,f:3.9649609375,g:4.526484375,h:4.878046875,i:2.2462109375,j:2.71984375,k:4.9805859375,l:2.280390625,m:7.6563671875,n:4.9024609375,o:4.32140625,p:4.6973828125,q:4.67296875,r:3.335078125,s:3.0567578125,t:2.7003125,u:4.9805859375,v:4.82921875,w:7.0704296875,x:4.75109375,y:4.8878125,z:4.0821484375},Georgia:{A:7.143671875,B:5.6348828125,C:5.9180859375,D:6.6602734375,E:5.8887890625,F:5.4395703125,G:6.8067578125,H:7.1778515625,I:3.1251171875,J:4.8633984375,K:6.7091015625,L:5.5665234375,M:8.588984375,N:7.475703125,O:6.66515625,P:5.3419140625,Q:6.66515625,R:6.753046875,S:4.7657421875,T:6.04015625,U:7.1290234375,V:7.0606640625,W:9.926875,X:7.05578125,Y:6.635859375,Z:5.8008984375,a:4.526484375,b:5.3223828125,c:4.1700390625,d:5.2784375,e:4.28234375,f:3.823359375,g:4.6973828125,h:5.5567578125,i:2.48546875,j:2.9200390625,k:5.4298046875,l:2.60265625,m:8.3253125,n:5.37609375,o:4.7071484375,p:5.2003125,q:5.288203125,r:3.745234375,s:3.5938671875,t:3.26671875,u:5.346796875,v:5.2051953125,w:7.553828125,x:4.936640625,y:5.1661328125,z:3.901484375},"Courier New":{A:5.854609375,B:5.014765625,C:4.7559765625,D:4.8096875,E:4.8048046875,F:4.7950390625,G:5.0294140625,H:5.02453125,I:3.77453125,J:5.02453125,K:5.3175,L:4.8096875,M:5.8253125,N:5.4102734375,O:5.005,P:4.5753125,Q:5.005,R:5.503046875,S:4.1993359375,T:4.5997265625,U:5.2051953125,V:5.854609375,W:5.6251171875,X:5.239375,Y:5.0294140625,Z:3.9551953125,a:4.721796875,b:5.210078125,c:4.53625,d:5.2247265625,e:4.6094921875,f:4.3946484375,g:5.0098828125,h:5.1221875,i:4.1895703125,j:3.14953125,k:4.79015625,l:4.1895703125,m:5.835078125,n:4.9024609375,o:4.5899609375,p:5.210078125,q:5.210078125,r:4.6094921875,s:3.9844921875,t:4.5801953125,u:4.995234375,v:5.4298046875,w:5.45421875,x:5.0294140625,y:5.0196484375,z:3.7598828125},"Brush Script MT":{A:7.905390625,B:6.284296875,C:6.264765625,D:6.5235546875,E:6.1817578125,F:6.19640625,G:6.1329296875,H:7.5684765625,I:4.116328125,J:4.897578125,K:7.44640625,L:6.8165234375,M:9.51671875,N:6.9630078125,O:5.083125,P:6.323359375,Q:6.4258984375,R:7.17296875,S:6.8067578125,T:5.84484375,U:7.2755078125,V:6.2305859375,W:8.22765625,X:6.1719921875,Y:6.245234375,Z:5.405390625,a:4.155390625,b:3.9356640625,c:3.003046875,d:4.7559765625,e:2.963984375,f:3.4669140625,g:3.9356640625,h:3.9844921875,i:2.6758984375,j:3.8575390625,k:3.9161328125,l:2.866328125,m:5.6348828125,n:3.73546875,o:3.1934765625,p:4.8341015625,q:3.833125,r:2.99328125,s:3.1641796875,t:3.1934765625,u:3.9454296875,v:3.3253125,w:5.005,x:3.2130078125,y:3.833125,z:3.745234375}},s=(0,r.CD)(["Helvetica","Arial","Calibri","Century Gothic","Consolas","Courier","Dejavu Sans","Dejavu Serif","Georgia","Gill Sans","Impact","Lucida Sans","Myriad Pro","Open Sans","Palatino","Tahoma","Times New Roman","Trebuchet","Verdana","Zapfino","Comic Sans"]),l=(0,r.CD)(["sans-serif","serif","monospace"]);let c=new Set;const u=(0,r.B8)(["mmmBESbswy"]);l.forEach((e=>{const t=s.filterNot((e=>c.has(e))),n=new i.a(document,u,{fontFamily:e}),r=t.map((t=>[t,new i.a(document,u,{fontFamily:`${t},${e}`})])),a=n.measure().first();(0,o.V1)(a),r.forEach((e=>{let[t,n]=e;const r=n.measure().first();a.equals(r)||(c=c.add(t))})),n.remove(),r.forEach((e=>{let[,t]=e;t.remove()}))}));const d=s.filter((e=>c.has(e))),p=[{name:"Caveat",file:"Caveat-Bold",weight:700},{name:"Marck Script",file:"MarckScript-Regular",weight:400},{name:"Meddon",file:"Meddon-Regular",weight:400},{name:"Pacifico",file:"Pacifico-Regular",weight:400}];function h(e,t){e.forEach((e=>{t.load(`16px ${e.name}`)}))}function f(e){return Promise.allSettled(e.map((e=>new Promise(((t,n)=>{if((0,o.V1)(e.name),r=e.name,!/\.[^.]*$/.test(r))return(0,o.z3)(`The font name for font "${e.name}" must have a file extension.`),void n();var r;e?.callback?.(e.name).then((r=>{(0,o.V1)(e.name),r instanceof Blob?t({name:e.name,data:r}):((0,o.z3)(`Callback for retrieving font ${e.name} didn't returned a Blob. It returned ${typeof r}`),n())})).catch((t=>{(0,o.z3)(`Error returned by callback for retrieving font ${e.name}. ${t}`),n()}))}))))).then((e=>e.filter((e=>"fulfilled"===e.status)).map((e=>e.value))))}function m(e){const t=Object.keys(a);let n=null,r=1/0;for(const o of t){const t=a[o];let i=0;for(const n of e){const e=t[n.glyph];void 0!==e&&(i+=Math.abs(e-n.width))}i<r&&(n=o,r=i)}return n}function g(e){if(!e)return[];const t=e.glyphs,n=[];for(let e=0;e<t.length;e+=3){const r=t[e],o=t[e+2],i=t[e+1];n.push({glyph:r,width:10*o/i})}return n}},83720:(e,t,n)=>{"use strict";n.d(t,{$_:()=>R,A5:()=>A,Af:()=>O,EA:()=>T,FI:()=>B,Fv:()=>D,Iu:()=>L,Lu:()=>S,Ny:()=>v,Q8:()=>P,UA:()=>g,W5:()=>b,WJ:()=>F,Wn:()=>x,aR:()=>k,hn:()=>N,i8:()=>_,im:()=>y,nE:()=>w,qi:()=>j,uY:()=>V,uk:()=>z,zs:()=>M});var r=n(49568),o=n(85409),i=n(36899),a=n(76117),s=n(5864),l=n(53644),c=n(84230),u=n(78729),d=n(89574),p=n(30235),h=n(26438),f=n(16192),m=n(69371);function g(e){return e.map((e=>new a.E2({name:e.name,value:"string"==typeof e.value?e.value:e.values,optionIndexes:e.optionIndexes}))).toList()}function v(e,t){return e&&t?e instanceof i.G_||e instanceof i.av?e.values.size>0?e.values.equals(t.values):0===t.values.size:(e.value===t.value||"function"==typeof e.value?.equals&&e.value.equals(t.value))&&(!e.optionIndexes||!t.optionIndexes||e.optionIndexes.every(((e,n)=>t.optionIndexes[n]===e))):!e&&!t}function y(e){return(0,r.T5)(e.map((e=>{(0,o.V1)(null==e.pdfObjectId||"number"==typeof e.pdfObjectId,"Invalid type for `pdfObjectId`.");try{(0,o.V1)(Array.isArray(e.annotationIds),"Invalid type for `annotationIds`."),(0,o.V1)("string"==typeof e.name,"Invalid type for `name`."),(0,o.V1)("string"==typeof e.label,"Invalid type for `label`.");const t=Array.isArray(e.flags)?e.flags:[],n={pdfObjectId:e.pdfObjectId,annotationIds:(0,r.B8)(e.annotationIds),name:e.name,label:e.label,readOnly:t.includes("readOnly"),required:t.includes("required"),noExport:t.includes("noExport")};switch(e.type){case"pspdfkit/form-field/button":return function(e){return new i.$h({...e})}(n);case"pspdfkit/form-field/radio":return function(e,t){return(0,o.V1)(t.options instanceof Array,"Invalid type for `options`."),(0,o.V1)("string"==typeof t.defaultValue,"Invalid type for `defaultValue`."),(0,o.V1)("boolean"==typeof t.noToggleToOff,"Invalid type for `noToggleToOff`."),(0,o.V1)("boolean"==typeof t.radiosInUnison,"Invalid type for `radiosInUnison`."),new i.Qk({...e,options:E(t.options),defaultValue:t.defaultValue,noToggleToOff:t.noToggleToOff,radiosInUnison:t.radiosInUnison})}(n,e);case"pspdfkit/form-field/checkbox":return function(e,t){return(0,o.V1)(t.options instanceof Array,"Invalid type for `options`."),(0,o.V1)(t.defaultValues instanceof Array,"Invalid type for `defaultValue`."),new i.av({...e,options:E(t.options),defaultValues:(0,r.B8)(t.defaultValues)})}(n,e);case"pspdfkit/form-field/combobox":case"pspdfkit/form-field/listbox":return function(e,t){(0,o.V1)(t.options instanceof Array,"Invalid type for `options`."),(0,o.V1)("boolean"==typeof t.multiSelect,"Invalid type for `multiSelect`."),(0,o.V1)("boolean"==typeof t.commitOnChange,"Invalid type for `commitOnChange`."),(0,o.V1)(!t.defaultValues||Array.isArray(t.defaultValues),"Invalid type for `defaultValue`.");const n={...e,options:E(t.options),multiSelect:t.multiSelect,commitOnChange:t.commitOnChange,defaultValues:t.defaultValues?(0,r.B8)(t.defaultValues):(0,r.B8)()};switch(t.type){case"pspdfkit/form-field/combobox":{const e=t;return(0,o.V1)("boolean"==typeof e.edit,"Invalid type for `edit`."),(0,o.V1)("boolean"==typeof e.doNotSpellcheck||"boolean"==typeof e.doNotSpellCheck,"Invalid type for `doNotSpellCheck`."),new i.sh({...n,edit:e.edit,doNotSpellCheck:e.doNotSpellCheck||e.doNotSpellcheck})}case"pspdfkit/form-field/listbox":return new i.O2(n);default:throw new Error("Unknown choice field type")}}(n,e);case"pspdfkit/form-field/text":return function(e,t){return(0,o.V1)("boolean"==typeof t.doNotSpellcheck||"boolean"==typeof t.doNotSpellCheck,"Invalid type for `doNotSpellCheck`."),(0,o.V1)("boolean"==typeof t.doNotScroll,"Invalid type for `doNotScroll`."),(0,o.V1)("boolean"==typeof t.password,"Invalid type for `password`."),(0,o.V1)("boolean"==typeof t.multiLine,"Invalid type for `multiLine`."),(0,o.V1)("string"==typeof t.defaultValue||!t.defaultValue,"Invalid type for `defaultValue`."),(0,o.V1)(!0!==t.comb||"number"==typeof t.maxLength,"Invalid type for `comb`. When `comb` is set, the text field must have a `maxLength`."),new i.uS({...e,defaultValue:t.defaultValue,doNotSpellCheck:t.doNotSpellCheck||t.doNotSpellcheck,doNotScroll:t.doNotScroll,password:t.password,maxLength:"number"==typeof t.maxLength?t.maxLength:null,multiLine:t.multiLine,comb:t.comb})}(n,e);case"pspdfkit/form-field/signature":return function(e){return new i.Vw({...e})}(n);default:throw new Error(`Unsupported form field type: ${e.type}`)}}catch(t){return(0,o.pq)(`Skipped parsing form field #${e.name} from payload because an error occurred while deserializing.`),void(0,o.pq)(t)}})).filter(Boolean).map((e=>[e?.name,e])))}function b(e){return e.map((e=>c.A.fromJSON(e.pdfObjectId?e.pdfObjectId.toString():e.id,e)))}function w(e,t){const n=e.annotationIds.findIndex((0,d.iT)(t)),r=e.options.get(n);return(0,o.V1)(r,`There is no FormOption defined for annotationId '${t.id}' in formField '${e.name}'.`),r.value}function x(e,t){let{rotation:n,boundingBox:r}=e;if(!n)return{};const o=90===(0,h.hR)(n)||270===(0,h.hR)(n),i={},a=Math.ceil(r.height*t),s=Math.ceil(r.width*t);return o&&(i.width=a,i.height=s),n&&(i.transformOrigin="50% 50%",i.transform=S({width:s,height:a,rotation:n})),i}function S(e){let{width:t,height:n,rotation:r,reverse:o=!1}=e;const i=90===(0,h.hR)(r)||270===(0,h.hR)(r);return o?`rotate(${r}deg)`+(i&&t&&n?`translate(${-Math.round(t/2-n/2)}px, ${Math.round(t/2-n/2)}px)`:""):(i&&t&&n?`translate(${Math.round(t/2-n/2)}px, ${-Math.round(t/2-n/2)}px) `:"")+`rotate(${-r}deg)`}function _(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const{fontColor:r,font:o,backgroundColor:i,borderColor:a,horizontalAlign:s,borderWidth:l,borderStyle:c,isBold:u,isItalic:d,boundingBox:{width:p,height:h},opacity:m}=e,g=Math.ceil(p*t),v=Math.ceil(h*t);return{color:r?.toCSSValue(),backgroundColor:i?.toCSSValue(),borderColor:a?.toCSSValue()||"transparent",opacity:m,textAlign:s||void 0,fontWeight:u?"bold":void 0,fontStyle:d?"italic":void 0,..."string"==typeof o?{fontFamily:(0,f.gh)(o)}:null,borderWidth:l||0,borderStyle:null!=c?C[c]:"none",width:g,height:v,...n?x(e,t):{}}}const C={solid:"solid",dashed:"dashed",beveled:"groove",inset:"inset",underline:"none none solid"};function E(e){return(0,r.B8)(e.map((e=>new a._B(e))))}function k(e,t){return e.formFields.find((e=>e.id===t))}function z(e,t){return e.filter((e=>e.annotationIds.some((e=>t.annotationIds.has(e))))).toList()}function P(e,t,n){return"STANDALONE"===e.type&&u.JY.PDF_JAVASCRIPT&&"function"==typeof e.onKeystrokeEvent&&(Boolean(t.additionalActions?.onInput)||Boolean(n.additionalActions?.onInput)||Boolean(t.additionalActions?.onChange)||Boolean(n.additionalActions?.onChange))}function A(e,t){if(0===e.length)return t;if(0===t.length)return e;const n=[],r=t.slice(0);return e.forEach((e=>{if((e.change_type===l.Us||e.change_type===l.JI)&&"pspdfkit/form-field-value"===e.object.type){const t=r.findIndex((t=>"pspdfkit/form-field-value"===t.object.type&&t.object.type===e.object.type&&t.object.name===e.object.name));if(t>-1){const n=r[t];e.object.formattedValue=n.object.formattedValue,e.object.editingValue=n.object.editingValue,r.splice(t,1)}}n.push(e)})),n.concat(r)}function D(e,t,n){const o=e&&n.formFields.get(e.name);if(e&&o&&!v(e,o)){e.annotationIds.reduce(((e,n)=>{const o=t.annotations.get(n)||t.annotations.find((e=>e.pdfObjectId===parseInt(n)));if(o&&t.isAPStreamRendered?.(o)){return e.get(o.pageIndex)?e.updateIn([o.pageIndex],(0,m.C$)((e=>e.add(o.id)))):e.set(o.pageIndex,(0,r.NZ)([o.id]))}return e}),(0,r.T5)()).forEach(((e,n)=>{t.backend?.clearPageAPStreams(n,e)}))}}function T(e,t,n){const o=e.annotationIds.findIndex((0,d.iT)(t)),i=w(e,t),a=e.options.filter((e=>e.value===i)).size;let s;if(n){if(a<2)return;s=(e.optionIndexes||(0,r.B8)()).push(o)}else{if(!e.optionIndexes)return;s=e.optionIndexes.filter((e=>e!==o))}return s.size>0?s:void 0}function I(e,t){const n=t.filter((t=>{const n=e.options.get(t)?.value;return e.options.filter((e=>e.value===n)).size>1}));return n.size>0?n:void 0}function M(e){let{state:t,mutableState:n,formFieldValues:a,areFormFieldValuesNew:s}=e;a.forEach((e=>{let{name:a,value:l,optionIndexes:c}=e;const u=t.formFields.get(a);if(u){if((0,o.V1)(!c||u instanceof i.Qk||u instanceof i.av,"`optionIndexes` property is only supported in radio and checkbox form field values."),u instanceof i.uS)l=l||"",(0,o.V1)("string"==typeof l,`The type of action value for a TextFormField is ${typeof l}, but has to be a string`),n.setIn(["formFields",a,"value"],l);else if(u instanceof i.Qk){if((0,o.V1)("string"==typeof l||null===l,`The type of action value for a RadioButtonFormField is ${typeof l}, but has to either be a string or null`),n.setIn(["formFields",a,"value"],l),c){const e=I(u,c);e&&n.setIn(["formFields",a,"optionIndexes"],e)}}else if(u instanceof i.G_||u instanceof i.av){if(l=l||(0,r.B8)(),(0,o.V1)(l instanceof r.B8,`The type of action value for the ${u instanceof i.G_?"ChoiceFormField":"CheckBoxFormField"} is ${typeof l}, but has to be a List of strings`),n.setIn(["formFields",a,"values"],l),u instanceof i.av&&c){const e=I(u,c);e&&n.setIn(["formFields",a,"optionIndexes"],e)}}else u instanceof i.$h||u instanceof i.Vw||(0,o.V1)(!1,`Cannot set form field value for ${u.name}: unknown form field type`);s||D(u,t,n)}else(0,o.R8)(`No form field found with name ${a}`)}))}function N(e){let{getState:t,originalFormFields:n,formFieldValues:i,callback:a,resolve:l}=e;const{formFields:c,annotations:u,backend:d}=t(),p=[],h=[];n.forEach(((e,t)=>{if(!e)return;(0,o.V1)(d);let n=c.get(t);if((0,o.V1)(n),i.some((e=>e.name===t&&(n=r.B8.isList(e.value)?n.set("values",e.value):n.set("value",e.value),!0))),v(e,n))h.push(t);else{u.filter((e=>e instanceof s.A&&e.formFieldName===t)).reduce(((e,t)=>{const n=e.get(t.pageIndex);return n?e.set(t.pageIndex,n.add(t.id)):e.set(t.pageIndex,(0,r.NZ)([t.id]))}),(0,r.T5)()).forEach(((e,t)=>{p.push({pageIndex:t,pageWidgetIds:e})}))}})),a(h),p.forEach((e=>{let{pageIndex:t,pageWidgetIds:n}=e;d?.clearPageAPStreams(t,n)})),l?.()}function O(e){return new a.E2({name:e.name,value:e.values||e.value,...e.optionIndexes?{optionIndexes:e.optionIndexes}:null})}function R(e){return e===p.O.CHECKBOX_WIDGET||e===p.O.RADIO_BUTTON_WIDGET||e===p.O.SIGNATURE_WIDGET||e===p.O.TEXT_WIDGET||e===p.O.BUTTON_WIDGET||e===p.O.COMBO_BOX_WIDGET||e===p.O.LIST_BOX_WIDGET||e===p.O.FORM_CREATOR||e===p.O.DATE_WIDGET}function j(e){return R(e)&&e!==p.O.FORM_CREATOR}function F(e,t){const n=w(e,t),r=!e.optionIndexes||e.optionIndexes.includes(e.annotationIds.findIndex((0,d.iT)(t)));return e instanceof i.Qk?e.value===n&&r:e instanceof i.av?e.values.includes(n)&&r:(0,o.GQ)(e)}const B="Invalid date/time: please ensure that the date/time exists. Field [",L="The value entered does not match the format of the field [",V="format "},39582:(e,t,n)=>{"use strict";function r(e){return e.some((e=>e instanceof Error))?Promise.reject(e):Promise.resolve(e)}n.d(t,{U:()=>r})},47055:(e,t,n)=>{"use strict";n.d(t,{XN:()=>m,_3:()=>y,d0:()=>g,hH:()=>w,mE:()=>b,oS:()=>h,pS:()=>f,x3:()=>v});var r=n(85409),o=n(49568),i=n(22372),a=n(76117),s=n(3745),l=n(89574),c=n(63226),u=n(51946),d=n(46692),p=n(69371);function h(e,t){return"create"===e.type?null:"update"===e.type||"delete"===e.type?t.get(e.payload.id):void(0,r.GQ)(e.type)}function f(e,t,n){if("create"===e.type)return e.payload;if("update"===e.type){const o=t.get(e.payload.id)||n&&t.get(n)||e.deletedAnnotation;return(0,r.V1)(o instanceof i.A),o.merge(e.payload)}if("delete"===e.type)return null;(0,r.GQ)(e.type)}function m(e,t){if(e.isHistoryEnabled){let n=!0;if(e.eventEmitter.emit("history.willChange",{annotation:t,type:"create",preventDefault(){n=!1}}),!n)return}e.historyChangeContext===s.I.DEFAULT&&e.isHistoryEnabled&&(e.update("undoActions",(e=>e.push({type:"delete",payload:{id:t.id}}))),e.update("redoActions",(e=>e.clear())))}function g(e,t,n,r){if(e.isHistoryEnabled){let t=!0;if(e.eventEmitter.emit("history.willChange",{annotation:n,type:"update",preventDefault(){t=!1}}),!t)return}if(!t.set("updatedAt",null).equals(n.set("updatedAt",null)))if(e.historyChangeContext===s.I.DEFAULT&&e.isHistoryEnabled&&function(e,t){if(e instanceof a.dh&&!e.text)return!(!t||!("text"in t))&&!!t.text.value;if(e instanceof a.dG&&!e.isCommentThreadRoot)return!!t&&t.isCommentThreadRoot;if("number"!=typeof e.pageIndex&&"number"!=typeof t.pageIndex)return!1;return!0}(n,t)){const o="number"!=typeof t.pageIndex&&"number"==typeof n.pageIndex||t instanceof a.dh&&null==t.text||t instanceof a.dG&&!t.isCommentThreadRoot&&n.isCommentThreadRoot?{type:"delete",payload:{id:t.id}}:{type:"update",payload:w(n,t),restoreAPStream:r,deletedAnnotation:null};if("update"===o.type&&t instanceof a.dh&&(0,l.or)(t)&&!(0,l.YM)(t))return;e.update("undoActions",(e=>e.push(o))),e.update("redoActions",(e=>e.clear()))}else if(e.historyChangeContext!==s.I.HISTORY&&e.undoActions.size>0){const r=e.undoActions.findLastIndex((e=>("update"===e.type||"delete"===e.type)&&e.payload.id===n.id));-1!==r&&e.updateIn(["undoActions",r],(0,p.C$)((e=>"update"===e.type?{...e,payload:w(n,t.merge(e.payload)),restoreAPStream:e.restoreAPStream}:"delete"===e.type?{...e,payload:{...w(n,t),...e.payload}}:e)))}}function v(e,t,n){if(t instanceof u.KR)return;if(e.isHistoryEnabled){let n=!0;if(e.eventEmitter.emit("history.willChange",{annotation:t,type:"delete",preventDefault(){n=!1}}),!n)return}const r=(0,l.K1)();if(e.historyChangeContext===s.I.DEFAULT&&e.isHistoryEnabled){const o=y(t,r,e.commentThreads,e.comments),i=b(t,r,e);e.update("undoActions",(e=>e.map((e=>e.payload.id===t.id?{...e,payload:{...e.payload,id:r}}:e)).push({type:"create",payload:t.set("id",r),formField:i,restoreAPStream:n,comments:o}))),e.update("redoActions",(e=>e.clear()));const a=e.historyIdsMap.get(t.id);a&&e.deleteIn(["historyIdsMap",t.id]),e.setIn(["historyIdsMap",r],a||t.id)}else if(e.historyChangeContext!==s.I.HISTORY&&e.undoActions.size>0){const o=e.undoActions.findLastIndex((e=>"update"===e.type&&e.payload.id===t.id));if(-1!==o){e.updateIn(["undoActions",o],(0,p.C$)((e=>({type:"update",deletedAnnotation:t,payload:e.payload,restoreAPStream:n}))));const i=e.historyIdsMap.get(t.id);i&&e.deleteIn(["historyIdsMap",t.id]),e.setIn(["historyIdsMap",r],i||t.id)}}}function y(e,t,n,r){let o=null;if(e.isCommentThreadRoot){const i=n.get(e.id);o=i?i.map((e=>{const n=r.get(e);return n&&n.set("rootId",t)})).filter((e=>e&&!(0,c.Jm)(e))).toList():null}return o}function b(e,t,n){let r=null;return e instanceof a.sb&&(r=(0,d.Wd)(n,e)),r&&r.set("annotationIds",(0,o.B8)([t]))}function w(e,t){return t.toSeq().reduce(((t,n,r)=>(e.has(r)&&e.get(r)===n||(t[r]=n),t)),{id:e.id})}},40807:(e,t,n)=>{"use strict";n.d(t,{I_:()=>m,Kw:()=>h,Po:()=>D,Rv:()=>C,Uk:()=>P,Xm:()=>A,YU:()=>v,ZC:()=>x,aq:()=>w,d3:()=>S,e2:()=>g,eR:()=>y,f3:()=>k,iV:()=>b,jU:()=>_,pO:()=>E,rI:()=>z});var r=n(96540),o=n(7737),i=n(35467),a=n(63939),s=n(95171),l=n(76117),c=n(81083),u=n(16192),d=n(75439),p=n(9939);function h(e){const t=r.useRef(e),n=r.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t?.current?.(...n)}),[]);return r.useEffect((()=>(t.current=e,()=>t.current=void 0))),n}function f(e){const t=(0,o.wA)();return[(0,o.d4)((t=>{if(t.documentComparisonState&&void 0!==t.documentComparisonState[e])return t.documentComparisonState[e];throw new Error("Document comparison state not properly initialized.")})),h((n=>t((0,i.Cc)({[e]:n}))))]}function m(){return f("referencePoints")}function g(){return f("currentTab")}function v(){return f("autoCompare")}function y(){return f("isResultFetched")}function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const t=r.useRef(),n=r.useRef();return(0,o.d4)((r=>(r.viewportState===t.current&&n.current||(n.current=t=>t.apply((0,a.Jn)(r,e))),t.current=r.viewportState,n.current)))}function w(){const e=r.useRef(!0),t=r.useCallback((()=>e.current),[]);return r.useEffect((()=>()=>{e.current=!1}),[]),t}function x(e){const t=r.useRef();return r.useEffect((()=>{t.current=e})),t.current}function S(e,t){const n=(0,o.d4)((e=>e.customUIStore)),i=(0,o.d4)((e=>e.sidebarMode)),[a,s]=r.useState((()=>i?n?.getState().Sidebar?.[i]:void 0));r.useEffect((()=>n?.subscribe((e=>{if(!i)return;const t=e?.Sidebar?.[i];s((()=>t))}))),[n,i]);const l=e&&a?.({containerNode:e,items:t}),c=l?.node;return r.useEffect((()=>{c&&e&&c!==e&&e.lastChild!==c&&e.append(c)}),[e,c]),l?.onRenderItem}function _(e,t,n){const o=r.useRef({}),i=h(t),a=h(n),s=r.useMemo((()=>(t,n)=>{e&&t&&n&&(e({itemContainerNode:t,item:n}),o.current[i(n)]=t)}),[e]);return r.useEffect((()=>{Object.entries(o.current).forEach((t=>{let[n,r]=t;if(r&&n){const t=a(n),r=o.current[n];e&&r&&t&&e({itemContainerNode:r,item:t})}}))}),[e]),e?s:null}function C(e,t,n){r.useLayoutEffect((function(){null!==e&&(t((0,s.BT)()),n(e))}),[n,e,t])}function E(e,t,n,i){const a=(0,o.d4)((e=>e.shadowRoot));return r.useCallback((function(r){if(!(e instanceof l.dh))return;const o=(0,u.VN)(e,t,n,a).boundingBox;let s=null;switch(r){case c.E.RIGHT:s=e.setIn(["boundingBox","width"],o.width);break;case c.E.BOTTOM:s=e.setIn(["boundingBox","height"],o.height);break;case c.E.BOTTOM_RIGHT:s=e.set("boundingBox",o)}null!==s&&i((0,d.g_)((0,u.fk)(s,n)))}),[e,i,t,n,a])}function k(e){const t=r.useRef(null);return r.useEffect((function(){const{current:n}=t;n&&(0,p.u7)(e(),n)}),[e]),t}function z(e){const[t,n]=r.useState(e),[o,i]=r.useState(e);return t!==e&&(i(e),n(e)),[o,i]}function P(e,t,n){r.useEffect((function(){if(!e)return;const r=t();return r.addEventListener("scroll",n),function(){r.removeEventListener("scroll",n)}}),[t,e,n])}const A=(e,t)=>{const n=r.useRef(!1);r.useEffect((()=>()=>{n.current=!0}),[]),r.useEffect((()=>()=>{n.current&&e()}),[...t,e])};function D(){const e=(0,o.d4)((e=>e.shadowRoot)),t=(0,o.d4)((e=>e.frameWindow)),[n,i]=r.useState(void 0);return r.useEffect((()=>{if(!t)return;const n=e instanceof ShadowRoot?e.host:t.frameElement;if(!n)return;const r=e instanceof ShadowRoot?n.ownerDocument.defaultView:t.parent;if(!r)return;let o=!1;const a=()=>{const e=n.getBoundingClientRect(),t=e.width+Math.min(0,e.left)+Math.min(0,r.innerWidth-e.right),o=e.height+Math.min(0,e.top)+Math.min(0,r.innerHeight-e.bottom);i({width:t,height:o})},s=()=>{o||(requestAnimationFrame((()=>{a(),o=!1})),o=!0)};return a(),r?.addEventListener("resize",s),r?.addEventListener("scroll",s,{passive:!0}),()=>{r?.removeEventListener("resize",s),r?.removeEventListener("scroll",s,{passive:!0})}}),[t,e]),n}},14511:(e,t,n)=>{"use strict";n.d(t,{Me:()=>l,Nk:()=>o,Qo:()=>a,f4:()=>i,hc:()=>s,ln:()=>c});var r=n(75675);function o(e){return 200<=e&&e<300}function i(e){const t=e.indexOf("://")>0;(0,r.V)(t,`The baseUrl must be an absolute URL (e.g. https://example.com/nutrient-viewer-lib/), but it is set to ${e}.\nProtocol relative URLs (e.g. //example.com/nutrient-viewer-lib/) are not supported.`);const n=e.endsWith("/");(0,r.V)(n,`The baseUrl must have a trailing slash in the URL (e.g. https://example.com/nutrient-viewer-lib/), but it is set to ${e}.`)}function a(e){return i(e)}function s(e){return i(e)}function l(e){const t=e.indexOf("://")>0;(0,r.V)(t,`The hostedBaseUrl must be an absolute URL (e.g. https://api.pspdfkit.com/, but it is set to ${e}.`);const n="/"===e.substr(-1);(0,r.V)(n,`The hostedBaseUrl must have a trailing slash in the URL (e.g. https://api.pspdfkit.com/), but it is set to ${e}.`)}function c(e){return e.endsWith("/")?e:`${e}/`}},78625:(e,t,n)=>{"use strict";n.d(t,{Uu:()=>w,Yr:()=>v,fu:()=>f,gj:()=>h,lj:()=>g,pw:()=>m});var r=n(41811),o=n(85409),i=n(37361),a=n(77270),s=n(93564),l=n(50960),c=n(28650),u=n(79900),d=n(76117);const p=(0,r.A)((function(e){const t=new FileReader;return new Promise(((n,r)=>{t.onerror=e=>r(new Error(e)),t.onload=e=>{const t=new Image;t.onload=()=>{n(new l.or({width:t.width,height:t.height}))},t.onerror=()=>n(new l.or({width:i.Pw,height:i.Gz})),t.src=e.target?.result},t.readAsDataURL(e)}))}));const h=async e=>{const{Sha256:t,bytes_to_hex:r}=await n.e(396).then(n.bind(n,21119)),o=new t,i=await(0,s.G)(e);return{hash:r(o.process(i).finish().result),dimensions:await p(e)}};function f(e){return`${e.imageAttachmentId}_${e.id}`}function m(e){let{backend:t,blob:n,annotation:r,isDetachedAnnotation:i=!1,zoomLevel:s,variant:c,hasZoomedIn:p=!1}=e,m=null,g=!1;const v=r?.rotation??0;(0,o.V1)(t);const b=r?f(r):void 0;if(r instanceof d.vU&&p&&b&&t.attachmentsCache.has(b)){const e=t.attachmentsCache.get(b);(void 0===e.zoomLevel||void 0===s||e.zoomLevel<s)&&(t.attachmentsCache=t.attachmentsCache.delete(b))}if(r&&"imageAttachmentId"in r&&r.imageAttachmentId&&b&&t.attachmentsCache.has(b)){const{dimensions:e,img:o,provisional:i,prevRotation:a}=t.attachmentsCache.get(b);if(t&&i&&n&&a===v)return w();n&&"image/png"!==n.type&&"image/jpeg"!==n.type&&"image/webp"!==n.type&&(g=!0),m=y(t,e,v,r,n,o).then((r=>(n&&"image/png"!==n.type&&"image/jpeg"!==n.type&&"image/webp"!==n.type&&r&&(t.attachmentsCache=t.attachmentsCache.set(b,{dimensions:e,img:o,provisional:!0,prevRotation:v,zoomLevel:s})),r)))}else{if(!n||"image/png"!==n.type&&"image/jpeg"!==n.type&&"image/webp"!==n.type)return w();m=h(n).then((e=>{let{dimensions:o}=e;return y(t,o,v,r,n)})).catch((()=>{throw new o.uE("Couldn't read data from the provided image.")}))}return{...(0,a.GJ)(m),isProvisional:g};function w(){(0,o.V1)(t,"Backend is required to render the image"),(0,o.V1)(r,"Annotation is required to render the image");const{boundingBox:e}=r,a=(0,u.I)()*(s??1);let p=Math.round(e.width*a),h=Math.round(e.height*a);if(!(r instanceof d.xY||r instanceof d.vU)){const e=Math.sqrt(p*h/1e7);e>1&&(p=Math.round(p*(1/e)),h=Math.round(h*(1/e)))}const f=new l.or({width:p,height:h}),m=i?t.renderDetachedAnnotation(r,n,p,h):t.cachedRenderAnnotation(r,n,p,h,c);return m.promise=m.promise.then((async e=>"imageAttachmentId"in r&&r.imageAttachmentId&&b&&e?.element?0!==v?y(t,f,360-v,r,n,e.element).then((n=>(n?.element&&(t.attachmentsCache=t.attachmentsCache.set(b,{dimensions:90===v||270===v?f.swapDimensions():f,img:n.element,prevRotation:v,zoomLevel:s})),e))):(t.attachmentsCache=t.attachmentsCache.set(b,{dimensions:f,img:e.element,prevRotation:v,zoomLevel:s}),e):e)),m}}function g(e,t){const n=new Uint8Array(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return new Blob([n.buffer],{type:t})}async function v(e,t,n){let r,o,{font:i,fontColor:a}=t;"OffscreenCanvas"in n?(r=new n.OffscreenCanvas(200,200),o=r.convertToBlob.bind(r)):(r=n.document.createElement("canvas"),o=()=>new Promise((e=>{r.toBlob(e)})));const s=r.getContext("2d");s.textBaseline="hanging";s.font=`100px "${i}"`;const{actualBoundingBoxLeft:l,actualBoundingBoxRight:c,width:u}=s.measureText(e);r.height=500;const d=2*(l||c?l+c:u);return r.width=d,s.textBaseline="hanging",s.font=`100px "${i}"`,s.fillStyle=a.toCSSValue(),s.fillText(e,d/4,125),function(e){const t=e.getContext("2d"),n=t.getImageData(0,0,e.width,e.height),r=n.data.length;let o=null,i=null,a=null,s=null,l=0,c=0;for(let t=0;t<r;t+=4)0!==n.data[t+3]&&(l=t/4%e.width,c=~~(t/4/e.width),null===o&&(o=c),(null===a||l<a)&&(a=l),(null===s||s<l)&&(s=l),(null===i||i<c)&&(i=c));o=o||0,i=i||0,a=a||0,s=s||0;const u=i-o,d=s-a;if(0===d||0===u)return;const p=t.getImageData(a,o,d,u);e.width=d,e.height=u,t.putImageData(p,0,0)}(r),o({type:"image/png"})}function y(e,t,n,r,o,i){if(i)return new Promise(((e,r)=>b(i,t,n).then(e,r)));if(o){const i=URL.createObjectURL(o),a=document.createElement("img");return new Promise(((s,l)=>{a.onload=()=>{o&&r&&(e.attachmentsCache=e.attachmentsCache.set(f(r),{dimensions:t,img:a,prevRotation:n})),b(a,t,n).then(s,l)},a.onerror=()=>{l(new Error("The attachment provided could not be rendered as image/jpeg, image/png or image/webp although the mime type suggests so."))},a.src=i}))}return new Promise((e=>e))}async function b(e,t,n){if(0===n)return e.onload=null,e.onerror=null,new c.A(e,(()=>{}));{const r=document.createElement("canvas"),{width:i,height:a}=t;90===n||270===n?(r.width=a,r.height=i):(r.width=i,r.height=a);const s=r.getContext("2d");return(0,o.V1)(s,"Could not get canvas context"),90===n||270===n?s.translate(a/2,i/2):s.translate(i/2,a/2),s.rotate(n*-Math.PI/180),s.drawImage(e,-i/2,-a/2),new c.A(r,(()=>{}))}}const w="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="},69371:(e,t,n)=>{"use strict";n.d(t,{C$:()=>s,EF:()=>i,lj:()=>a});var r=n(49568);function o(e,t){if(e===t||(0,r.is)(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;const i=Object.prototype.hasOwnProperty.bind(t);for(let o=0;o<n.length;o++)if(!i(n[o])||!(0,r.is)(e[n[o]],t[n[o]]))return!1;return!0}function i(e,t){return!o(this.props,e)||!o(this.state,t)}function a(e,t){if(e.length===t.length){let n=0;for(;n<e.length;){if(e[n]!==t[n])return e[n]<t[n]?-1:1;n++}return 0}return e.length<t.length?-1:1}function s(e){return function(t){return e(t)}}},83047:(e,t,n)=>{"use strict";n.d(t,{AJ:()=>d,B7:()=>p,Em:()=>f,F0:()=>g,Fe:()=>w,Gi:()=>y,Hj:()=>m,bV:()=>v,bv:()=>h,j$:()=>u});var r=n(49568),o=n(76117),i=n(81243),a=n(81083),s=n(9627),l=n(79900),c=n(75675);function u(e,t,n){return 0===n||0===e.size||e.last().distance(t)>n}function d(e){if(0===e.lines.size)return new o.rw;const t=e.lines.flatMap((e=>e)),n=Math.ceil(t.maxBy((e=>e.x))?.x+e.lineWidth/2),r=Math.ceil(t.maxBy((e=>e.y))?.y+e.lineWidth/2),i=Math.floor(t.minBy((e=>e.x))?.x-e.lineWidth/2),a=Math.floor(t.minBy((e=>e.y))?.y-e.lineWidth/2);return new o.rw({width:n-i,height:r-a,top:a,left:i})}function p(e,t,n){const{width:r,height:s}=e.boundingBox,l=(0,i.TQ)(new o.or({width:r,height:s}),t);return(0,i.gn)(e,new o.bR({x:l.width-r,y:l.height-s}),a.E.BOTTOM_RIGHT,n,!1)}const h=e=>e.reduce(((e,t)=>(null==t?e.push((0,r.B8)()):e[e.length-1]=e[e.length-1].push(t),e)),[(0,r.B8)()]).filter((e=>e.size>0)),f=e=>{const t=Math.abs(Math.ceil(Math.log10((0,l.I)()*e)));let n;return n=t>100?100:t,n},m=(e,t)=>{(0,c.V)(e.size>0);const n=e.first();if(1===e.size&&n)return[`L ${n.x},${n.y}`];const r=[`M ${n.x},${n.y}`],o=e.get(1);if(2===e.size&&o)return r.push(`L ${o.x},${o.y}`),r;for(let n=2,o=e.size;n<o;++n){const i=e.get(n-2),a=e.get(n-1);if(i&&a){const s={x:(2*i.x+a.x)/3,y:(2*i.y+a.y)/3},l={x:2*s.x-i.x,y:2*s.y-i.y},c=a,u=e.get(n);if(u){const e={x:(2*c.x+u.x)/3,y:(2*c.y+u.y)/3};if(r.push(`C ${s.x.toFixed(t)},${s.y.toFixed(t)} ${l.x.toFixed(t)},${l.y.toFixed(t)} ${(l.x+(e.x-l.x)/2).toFixed(t)},${(l.y+(e.y-l.y)/2).toFixed(t)}`),n===o-1){const n={x:2*e.x-c.x,y:2*e.y-c.y};r.push(`C ${e.x.toFixed(t)},${e.y.toFixed(t)} ${n.x.toFixed(t)},${n.y.toFixed(t)} ${u.x.toFixed(t)},${u.y.toFixed(t)}`)}}}}return r},g=e=>{(0,c.V)(e.size>0);const t=e.first();return 1===e.size&&t?[`L ${t.x},${t.y}`]:e.reduce(((e,t,n)=>(n>0&&e.push(`L ${t.x},${t.y}`),e)),[`M ${t.x},${t.y}`])},v=e=>e.reduce(((t,n,r)=>(e[r-1]&&"M 0,0"!==e[r-1]||!n.startsWith("L")||t.push(n.replace("L","M")),t.push(n),t)),[]).join(" ");function y(e,t,n){if(e.lines.size<2)return!0;const r=e.lines.last();if(null==e.lines.get(e.lines.size-2)||null==r||0===r.size||r.size>2)return!0;const o=.5*(t.width+t.height),i=e.lines.size<50?.15:.03,a=(Date.now()-n)/1e3;if(a<i)return!0;(0,c.V)(r.size>0);const s=r.first();return Boolean(e.lines.pop().some((e=>e.some((e=>e.distance(s)<o*i/a)))))}function b(e){const t=Math.ceil(2*e)+4,n=Math.ceil(2*e)+4,r=document.createElement("canvas");r.width=t,r.height=n;const o=r.getContext("2d");return(0,c.V)(o),o.beginPath(),o.arc(e+2,e+2,e,0,2*Math.PI,!1),o.lineWidth=1,o.strokeStyle="rgba(0,0,0,.7)",o.stroke(),o.beginPath(),o.arc(e+2,e+2,e+1,0,2*Math.PI,!1),o.lineWidth=1,o.strokeStyle="white",o.stroke(),r.toDataURL()}function w(e){if(e<3)return"crosshair";const t=b(e),n=s.Hi;if("webkit"===n||"blink"===n){return`-webkit-image-set(\n          url('${t}') 1x,\n          url('${b(2*e)}') 2x\n        ) ${e+2} ${e+2}, crosshair`}return`url('${t}') ${e+2} ${e+2}, crosshair`}},75675:(e,t,n)=>{"use strict";n.d(t,{V:()=>o});var r=n(85409);function o(e,t){if(!e)throw new r.uE(`Assertion failed: ${t||"Condition not met"}\n\nFor further assistance, please go to: https://www.nutrient.io/support/request`)}},64966:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r=n(85409),o=n(80018);function i(e){try{const t=e.split(".");if(3!==t.length)throw new r.uE("Invalid JWT token format");const n=o.o4.decode(t[1]);return JSON.parse(n)}catch(e){throw new r.uE(`Invalid auth token: ${e.message}`)}}},14631:(e,t,n)=>{"use strict";n.d(t,{Gm:()=>c,Jw:()=>d,Nh:()=>p,Of:()=>f,P1:()=>u,h1:()=>v,p0:()=>m,r$:()=>g});var r=n(80018),o=n(85409),i=n(41204),a=n(85410),s=n(9939),l=n(9945);function c(e){const t="The supplied JWT is invalid. Please refer to our guides on how to set up authentication:\n  https://pspdfkit.com/guides/web/current/server-backed/client-authentication/";if(-1!==e.indexOf('{"internal":'))return;let n;(0,o.V1)("string"==typeof e&&3===e.split(".").length,t);try{const t=r.o4.decode(e.split(".")[1]);n=JSON.parse(t)}catch(e){throw new o.uE(t)}(0,o.V1)("string"==typeof n.document_id,"The supplied JWT is invalid. The field 'document_id' has to be a string value.\n  Please refer to our guides for further information: https://pspdfkit.com/guides/web/current/server-backed/client-authentication/")}function u(e){if("string"!=typeof e)throw new o.uE("`accessToken` must be of type string.")}function d(e,t){(0,o.V1)("string"==typeof e,"`appName` must be a string."),(0,o.V1)((0,i.b8)()||(0,i.pI)(e,t)||(0,i.DT)(e,t),"`appName` should only be set when using Electron, Maui or Flutter for Web."),(0,o.V1)(!(0,i.HW)()||(0,i.pI)(e,t)||(0,i.DT)(e,t),"`appName` should only be set when using Electron without node integration, Maui or Flutter for Web.")}function p(e){return e.baseUrl?e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`:"authPayload"in e&&"object"==typeof e.authPayload&&"string"==typeof e.authPayload?.accessToken?"https://cdn.cloud.pspdfkit.com/pspdfkit-web@1.1.0/":(0,a.$_)(window.document)}const h="\n:host, body {\n  font-size: var(--PSPDFKit-fontSize-1);\n  font-family: var(--PSPDFKit-fontFamily-1);\n  line-height: var(--PSPDFKit-lineHeight-1);\n  background: var(--PSPDFKit-App-background);\n}\n";function f(e){const t=e instanceof ShadowRoot,n=t?e.ownerDocument:e.defaultView?.document;if(!n)return;const r=n.createRange().createContextualFragment(`<style data-pspdfkit="true">${h}</style>`);t?e.appendChild(r):n?.head.appendChild(r)}function m(e){const t="string"==typeof e?document.querySelector(e):e;if(!(0,s.sb)(t))throw new o.uE("`Configuration#container` must either be a valid element or a CSS selector");return t}function g(e){const t=m(e.container);if(t.childNodes.length>0)throw new o.uE('`Configuration#container` is expected to be an empty element but instead it contains child nodes.\nTo fix this, please make sure that the container is empty (e.g. by using an empty div `<div id="PSPDFKit"><div>`');const n=window.getComputedStyle(t).getPropertyValue("width"),r=window.getComputedStyle(t).getPropertyValue("height");if(!n||n&&"0px"===n)throw new o.uE("The mounting container has no width.\n      PSPDFKit for Web adapts to the dimensions of this element and will require this to be set. You can set it to 100% to adopt to the dimensions of the parent node.");if(!r||r&&"0px"===r)throw new o.uE("The mounting container has no height.\n      PSPDFKit for Web adapts to the dimensions of this element and will require this to be set. You can set it to 100% to adopt to the dimensions of the parent node.");return t}function v(e,t,n){if(e.styleSheets&&!(e.styleSheets instanceof Array))throw new o.uE("styleSheets must either be an Array of strings");let r=[];if(e.theme){if("string"!=typeof e.theme||!l.S[e.theme])throw new o.uE("Invalid theme. Configuration#theme must be a valid PSPDFKit.Theme");(e.theme===l.S.DARK||e.theme===l.S.AUTO&&window.matchMedia("(prefers-color-scheme: dark)").matches)&&r.push(`${t}nutrient-viewer-lib/dark-${n}.css`)}return e.styleSheets&&(r=r.concat(e.styleSheets)),r}},34551:(e,t,n)=>{"use strict";function r(e){return{name:e.name,scale:{unitFrom:e.scale.unitFrom,unitTo:e.scale.unitTo,from:Number(e.scale.fromValue),to:Number(e.scale.toValue)},precision:e.precision}}n.d(t,{U:()=>r})},44523:(e,t,n)=>{"use strict";n.d(t,{AK:()=>z,Cu:()=>B,JC:()=>O,KQ:()=>W,Kh:()=>S,MF:()=>L,ON:()=>j,Py:()=>U,T:()=>_,_7:()=>I,b4:()=>K,dD:()=>X,hm:()=>q,on:()=>F,p9:()=>G,pZ:()=>M,pq:()=>Z,qG:()=>H,tv:()=>R,w4:()=>Y,w6:()=>N,zc:()=>V});var r=n(85409),o=n(53996),i=n.n(o),a=n(49568),s=n(35224),l=n(76156),c=n(75439),u=n(10423),d=n(30235),p=n(54694),h=n(35014),f=n(27959),m=n(43800),g=n(92592),v=n(53428),y=n(20994),b=n(39679),w=n(9627),x=n(95342);const S=[{interactionMode:d.O.DISTANCE,icon:"distance",title:"Distance",className:"PSPDFKit-Measurement-Toolbar-Distance",class:g.A,preset:"distance",localeKey:"distanceMeasurement"},{interactionMode:d.O.PERIMETER,icon:"perimeter",title:"Perimeter",className:"PSPDFKit-Measurement-Toolbar-Perimeter",class:y.A,preset:"perimeter",localeKey:"perimeterMeasurement"},{interactionMode:d.O.RECTANGLE_AREA,icon:"rectangle-area",title:"Rectangle-Area",className:"PSPDFKit-Measurement-Toolbar-RectangleArea",class:b.A,preset:"rectangle-area",localeKey:"rectangularAreaMeasurement"},{interactionMode:d.O.POLYGON_AREA,icon:"polygon-area",title:"Polygon-Area",className:"PSPDFKit-Measurement-Toolbar-PolygonArea",class:v.A,preset:"polygon-area",localeKey:"polygonAreaMeasurement"},{interactionMode:d.O.ELLIPSE_AREA,icon:"ellipse-area",title:"Ellipse-Area",className:"PSPDFKit-Measurement-Toolbar-EllipseArea",class:m.A,preset:"ellipse-area",localeKey:"ellipseAreaMeasurement"}];function _(e,t){const n=e.strokeWidth/2+10,{coordinate:r,angleInDegrees:o}=function(e,t){if(e instanceof g.A){const{startPoint:t,endPoint:n}=e;return C(t,n)}if(e instanceof y.A){const{points:n}=e;if(n.size<2)return{};const r=n.last(),o=n.get(n.size-2);return r.y===o.y?C(o,r):r.y<o.y?{coordinate:[r.x,r.y-t]}:{coordinate:[r.x,r.y+t]}}if(e instanceof v.A){const{points:n}=e,r=n.sort(((e,t)=>e.y-t.y)).first();return{coordinate:[r.x,r.y-t]}}{const{boundingBox:t}=e;return{coordinate:[t.left+t.width/2,t.top+t.height/2]}}}(e,n);if(!r)return{display:"none"};const i={position:"absolute",transform:"translate(-50%, -50%) "+(e instanceof y.A||e instanceof b.A||e instanceof m.A?"":e instanceof g.A&&o?`rotate(${o}deg) translate(0, -${e.strokeWidth/2+10}px)`:o?`rotate(${o}deg) translate(0px, -${e.strokeWidth/2+10}px)`:`translate(0px, -${e.strokeWidth/2+10}px)`),transformOrigin:"center",fontSize:12,color:e.strokeColor?.toCSSValue(),width:"max-content",left:r[0],top:e instanceof g.A&&w.nr&&!o?r[1]-20:r[1]},{boundingBox:a}=e;return(e instanceof b.A||e instanceof m.A)&&(t&&a.width<200||a.width<80)?{...i,top:a.top-30}:i}function C(e,t){let n=e,r=t;t.x<e.x&&(n=t,r=e);const o=180*Math.atan2(r.y-n.y,r.x-n.x)/Math.PI;return{coordinate:[(e.x+t.x)/2,(e.y+t.y)/2],angleInDegrees:o}}const E={[p.x.WHOLE]:0,[p.x.ONE]:1,[p.x.TWO]:2,[p.x.THREE]:3,[p.x.FOUR]:4},k={[p.x.HALVES]:.5,[p.x.QUARTERS]:1/4,[p.x.EIGHTHS]:1/8,[p.x.SIXTEENTHS]:1/16},z={...E,...k};function P(e){let t=0;function n(e,t){const n=t.x-e.x,r=t.y-e.y;return Math.sqrt(n*n+r*r)}for(let r=0;r<e.size-1;r++)t+=n(e.get(r),e.get(r+1));return t}function A(e){return Math.abs(e)<=Number.EPSILON}var D=function(e){return e[e.in=0]="in",e[e.mm=1]="mm",e[e.cm=2]="cm",e[e.pt=3]="pt",e[e.ft=4]="ft",e[e.m=5]="m",e[e.yd=6]="yd",e[e.km=7]="km",e[e.mi=8]="mi",e}(D||{});const T=[[1,25.4,2.54,72,.083333,.0254,.0277778,254e-7,157828e-10],[.0393701,1,.1,2.83465,.00328084,.001,.00109361,1e-6,6.21371e-7],[.393701,10,1,28.34655,.0328084,.01,.0109361,1e-5,621371e-11],[.0138889,.352778,.0352778,1,.00115741,352778e-9,385802e-9,3.52778e-7,2.19206086473e-7]];function I(e){const{measurementPrecision:t,measurementScale:n}=e;(0,r.V1)(t,"measurementPrecision is required"),(0,r.V1)(n,"measurementScale is required");const o=A(n.toValue)||A(n.fromValue)?0:n.toValue/n.fromValue;let s,l,c=T[D[h.b.POINTS]][D[n.unitFrom]];if(e instanceof g.A){const{startPoint:t,endPoint:n}=e;s=P((0,a.B8)([t,n])),c*=o}else if(e instanceof y.A){const{points:t}=e;s=P(t),c*=o}else if(e instanceof v.A){const{points:t}=e;s=function(e){if(!e.size)return 0;let t=0;for(let n=0;n<e.size-1;n++)t+=e.get(n).x*e.get(n+1).y-e.get(n+1).x*e.get(n).y;return t+=e.get(e.size-1).x*e.get(0).y-e.get(0).x*e.get(e.size-1).y,t/=2,Math.abs(t)}(t),c=Math.pow(c,2)*Math.pow(o,2)}else if(e instanceof b.A){const{boundingBox:t}=e;s=t.width*t.height,c=Math.pow(c,2)*Math.pow(o,2)}else{const{boundingBox:t}=e;s=Math.PI*(t.width/2)*(t.height/2),c=Math.pow(c,2)*Math.pow(o,2)}if("1/2"===t){const e=2,t=Math.round(s*c*e);l=new(i())(t/e).toFraction(!0)}else if("1/4"===t){const e=4,t=Math.round(s*c*e);l=new(i())(t/e).toFraction(!0)}else if("1/8"===t){const e=8,t=Math.round(s*c*e);l=new(i())(t/e).toFraction(!0)}else if("1/16"===t){const e=16,t=Math.round(s*c*e);l=new(i())(t/e).toFraction(!0)}else l=(s*c).toFixed(z[t]);return{value:s*c,label:`${l} ${e instanceof g.A||e instanceof y.A?"":"sq "}${n.unitTo}`}}function M(e,t){const{measurementScale:n}=e;(0,r.V1)(n,"measurementScale is required");const o=t/(P(e instanceof y.A?e.points:(0,a.B8)([e.startPoint,e.endPoint]))*T[D[h.b.POINTS]][D[n.unitFrom]])*n.fromValue;return n?.set?.("toValue",o)}function N(e){return(e instanceof m.A||e instanceof b.A)&&e.isMeasurement()}function O(e,t){if(t&&e.measurementScale){const n=e.measurementScale.set("unitTo",t.unitTo);return I(e.set("measurementScale",n).set("measurementPrecision",t.precision))}return""}function R(e,t){const n=e.scale.unitFrom,r=e.scale.unitTo,o=Number(e.scale.fromValue),i=Number(e.scale.toValue),a=e.precision,s=t.scale.unitFrom,l=t.scale.unitTo,c=Number(t.scale.fromValue),u=Number(t.scale.toValue),d=t.precision;return n===s&&r===l&&o===c&&i===u&&a===d}const j=(0,x.ZG)(h.b).map((e=>({label:h.b[e],value:h.b[e],disabled:!1}))),F=function(){const e=[];return(0,x.ZG)(p.x).forEach((t=>{if(E.hasOwnProperty(p.x[t]))e.push((1/Math.pow(10,z[p.x[t]])).toString());else if(t&&k.hasOwnProperty(p.x[t])){const n=new(i())(z[p.x[t]]);e.push(n.toFraction(!0).toString())}})),e}(),B=(0,x.ZG)(p.x).map(((e,t)=>({label:F[t],value:p.x[e]}))),L=(0,x.ZG)(p.x).filter((e=>!Y(p.x[e]))).map(((e,t)=>({label:F[t],value:p.x[e]}))),V=(0,x.ZG)(f._).map((e=>({value:f._[e],label:f._[e]}))),K=(e,t)=>({added:t.filter((t=>!e.find((e=>JSON.stringify(e)===JSON.stringify(t))))),deleted:e.filter((e=>!t.find((t=>JSON.stringify(e)===JSON.stringify(t)))))});function H(e){return e.map(((e,t)=>{const n={...e,scale:{unitFrom:e.scale.unitFrom,unitTo:e.scale.unitTo,fromValue:e.scale.from,toValue:e.scale.to}};return n.name&&""!==n.name.trim()||(n.name=(0,l.AK)(n)?.label||`Scale ${t}`),n.precision in u.d&&(n.precision=u.d[n.precision]),n}))}async function $(e){let{operation:t,scale:n,getState:o,measurementUpdate:i,dispatch:l}=e;const u=o(),{backend:d,annotations:p,annotationManager:h}=u;const f=async(e,r)=>{const i=await(async e=>(await(h?.loadAnnotationsForPageIndex(e)),o().annotations))(r);!function(e,t,r){e.forEach((e=>{const o=t.find((t=>t.pdfObjectId===e.pdfObjectId));if(o)switch(r){case"edit":{const e=o.set("measurementScale",new s.A({fromValue:Number(n.scale.fromValue),toValue:Number(n.scale.toValue),unitFrom:n.scale.unitFrom,unitTo:n.scale.unitTo})).set("measurementPrecision",n.precision);l((0,c.g_)(e));break}case"delete":l((0,c.eS)(o))}}))}(e,i,t)};(0,r.V1)(d);const m="STANDALONE"===d.type?await d.getAnnotationsByScale(n):function(e,t){return t.filter((t=>{if(!("measurementScale"in t))return!1;const n=t.measurementScale,r=t.measurementPrecision;return!!n&&n.unitFrom===e.scale.unitFrom&&n.unitTo===e.scale.unitTo&&n.fromValue===e.scale.fromValue&&n.toValue===e.scale.toValue&&r===e.precision}))}(n,p),g=[];if(m.forEach((e=>{const n=p.find((t=>t.pdfObjectId?t.pdfObjectId===e.pdfObjectId:t.id===e.id));if(n&&"edit"===t&&i){const e=n.set("measurementScale",new s.A(i.scale)).set("measurementPrecision",i.precision);l((0,c.g_)(e))}else n&&"delete"===t?l((0,c.eS)(n)):g.push(e)})),g.length>0){const e=(0,a.NZ)(g.map((e=>e.pageIndex)));await Promise.all(e.map((async e=>{await f(g,e)})))}}async function U(e){let{scale:t,oldScale:n,getState:r,dispatch:o}=e;const i={scale:new s.A({fromValue:Number(t.scale.fromValue),toValue:Number(t.scale.toValue),unitFrom:t.scale.unitFrom,unitTo:t.scale.unitTo}),precision:t.precision};await $({operation:"edit",scale:n,getState:r,measurementUpdate:i,dispatch:o})}async function W(e){let{deletedScale:t,getState:n,dispatch:r}=e;await $({operation:"delete",scale:t,getState:n,dispatch:r})}function q(e){if(e.size<2)return!1;const t=e.toList(),n=t.first(),r={scale:n.measurementScale,precision:n.measurementPrecision};for(let e=1;e<t.size;e++){const n=t.get(e);if(!R(r,{scale:n.measurementScale,precision:n.measurementPrecision}))return!0}return!1}function G(e){if(e.size<2)return!1;const t=e.toList(),n=Z(e.first());for(let e=1;e<t.size;e++){if(n!==Z(t.get(e)))return!0}return!1}function Z(e){return e instanceof g.A?"Distance":e instanceof y.A?"Perimeter":e instanceof m.A?"Ellipse-Area":e instanceof b.A?"Rectangle-Area":e instanceof v.A?"Polygon-Area":void 0}function Y(e){return["1/2","1/4","1/8","1/16"].includes(e)}function X(e){return["mm","cm","m","km"].includes(e)}},15653:(e,t,n)=>{"use strict";n.d(t,{Sp:()=>s,aw:()=>u,tE:()=>l});var r=n(85409),o=n(76117),i=n(18738),a=n(89574);function s(e,t,n){let s;if(e instanceof o.MU)return s=e.set(["startPoint","endPoint"][n],e[["startPoint","endPoint"][n]].translate(t)),s.set("boundingBox",(0,i.s3)(o.MU)(s));if(e instanceof o.ug||e instanceof o.Si)return s=e.setIn(["points",n],e.points.get(n)?.translate(t)),s.set("boundingBox",(0,i.s3)(o.ug)(s));if((0,a.I2)(e)){(0,r.V1)(e instanceof o.dh,"Callout annotation must have a callout");const a=e.callout?.knee?["start","knee","end"]:["start","end"];if("end"===a[n])return e;s=e.setIn(["callout",a[n]],e.callout?.[a[n]]?.translate(t));const{callout:c}=s;(0,r.V1)(c,"Callout annotation must have a callout");const d=c.innerRectInset;(0,r.V1)(d,"Callout annotation must have an innerRectInset"),(0,r.V1)(c.start,"Callout annotation must have a start point");const p={left:e.boundingBox.left+d.left,top:e.boundingBox.top+d.top,right:e.boundingBox.left+e.boundingBox.width-d.right,bottom:e.boundingBox.top+e.boundingBox.height-d.bottom},h=l([[p.left,p.top],[p.right,p.top],[p.right,p.bottom],[p.left,p.bottom]]),f=(0,i.s3)(o.dh)(s),m=new o.Yy({left:p.left-f.left,top:p.top-f.top,right:f.left+f.width-p.right,bottom:f.top+f.height-p.bottom});return s.set("boundingBox",f).setIn(["callout","innerRectInset"],m).setIn(["callout","end"],u(c.knee||c.start,h))}return e}function l(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],i=e[(n+1)%e.length];t.push(new o.bR({x:(r[0]+i[0])/2,y:(r[1]+i[1])/2}))}return t}function c(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function u(e,t){let n=t[0],r=c(e,n);for(const o of t){const t=c(e,o);t<r&&(n=o,r=t)}return n}},77788:(e,t,n)=>{"use strict";n.d(t,{e:()=>o,s:()=>i});var r=n(37361);function o(e){return e.button===r.dc}function i(e){return e.buttons===r.s$}},43836:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,b:()=>a});var r=n(41204);const o=["http","https","mailto"];function i(e){const t=e.split(":")[0];if(t===e)e=/^[./#]/.test(e)?e:"http://"+e;else if(o.indexOf(t)<=-1)return;a(e,!0)}function a(e,t){if((0,r.HW)()){(0,r.xv)("electron").shell.openExternal(e)}else if(t){window.open(e,"_blank").opener=null}else window.opener=null,window.location.href=e}},89055:(e,t,n)=>{"use strict";n.d(t,{$X:()=>I,$n:()=>f,DI:()=>O,Ko:()=>m,Po:()=>h,Qe:()=>w,SH:()=>A,UX:()=>R,W3:()=>S,Wm:()=>D,Xm:()=>v,ah:()=>z,cP:()=>g,cY:()=>N,kH:()=>x,kl:()=>T,oj:()=>P,p9:()=>M,ru:()=>k,sj:()=>y,we:()=>C});var r=n(85409),o=n(76117),i=n(83145),a=n(43052),s=n(88140),l=n(85553),c=n(46692),u=n(78729),d=n(64337),p=n(30919);function h(e){return e.documentPermissions.printHighQuality}function f(e){return e.documentPermissions.printing&&e.printingEnabled&&e.backendPermissions.downloadingAllowed}function m(e){return e.exportEnabled&&e.backendPermissions.downloadingAllowed}function g(e){return e.documentPermissions.extract&&e.clientPermissions.extract}function v(e){return g(e)&&!e.clientPermissions.preventTextCopy}function y(e){return e.documentPermissions.toJS()}function b(e){let{backendPermissions:t,documentPermissions:n,readOnlyEnabled:r}=e;return!(!n.modification&&n.annotationsAndForms&&!t.readOnly&&r===p.g.NO)}function w(e,t){let{backend:n,annotations:i,formFields:l,features:u,backendPermissions:d,isEditableAnnotation:p,editableAnnotationTypes:h,documentPermissions:f,readOnlyEnabled:m}=t,g=!1;if((0,r.V1)(n),n.isCollaborationPermissionsEnabled()&&e instanceof o.sb){const t=(0,c.Wd)({annotations:i,formFields:l},e);g=!!t&&(0,s.wS)(t,{backend:n})}const v=!g&&!(0,s.q2)(e,{backend:n})&&!(0,s.db)(e,{backend:n});if(M({features:u})&&(!("isSignature"in e)||!e.isSignature))return!0;if(_({backendPermissions:d})||v)return!0;if(e instanceof a.iU&&(e=e.parentAnnotation),!(e instanceof o.dh||e instanceof o.s9)&&!e.note&&e.locked)return e.locked;if(e.locked&&e.lockedContents)return!0;if(e.readOnly&&(!(e instanceof o.sb)||!(e instanceof o.UL)))return e.readOnly;if(p)return!p(e);if(!C({backendPermissions:d,documentPermissions:f,readOnlyEnabled:m})||!b({backendPermissions:d,documentPermissions:f,readOnlyEnabled:m})){if(0===h.size)return!0;if(h.find((t=>e instanceof t)))return!1}return!0}function x(e,t){const n=!(0,s.Kt)(e,t)&&!(0,s.Fz)(e,t);return!(T({backend:t.backend,features:t.features})&&!_(t)&&!n)||(t.isEditableComment?!t.isEditableComment(e):!!C({backendPermissions:t.backendPermissions,documentPermissions:t.documentPermissions,readOnlyEnabled:t.readOnlyEnabled})&&b(t))}function S(e,t,n){let{features:r,backend:a,backendPermissions:s,documentPermissions:l,readOnlyEnabled:c,editableAnnotationTypes:u}=t;if(e===o.dG&&!T({features:r,backend:a}))return!0;if(e===i.A&&!r.includes(d.Y.REDACTIONS))return!0;if(e===o.pP&&n&&!r.includes(d.Y.MEASUREMENT_TOOLS))return!0;return!!M({features:r})||(!(!C({backendPermissions:s,documentPermissions:l,readOnlyEnabled:c})||!b({backendPermissions:s,documentPermissions:l,readOnlyEnabled:c}))||!u.find((t=>e===t||e.prototype instanceof t||t.prototype instanceof e)))}function _(e){let{backendPermissions:t}=e;return t.readOnly}function C(e){let{backendPermissions:t,documentPermissions:n,readOnlyEnabled:r}=e;return t.readOnly||!n.modification||r!==p.g.NO}function E(e){return(e.documentPermissions.annotationsAndForms||e.documentPermissions.fillForms)&&e.formsEnabled}function k(e){return E(e)&&z(e.backend)&&e.features.includes(d.Y.FORM_DESIGNER)}function z(e){return(0,r.V1)(e),e.isUsingInstantProvider()||"STANDALONE"===e.type}function P(e){return(0,r.V1)(e),e.isUsingInstantProvider()||"STANDALONE"===e.type}function A(e){let{features:t,backendPermissions:n,documentPermissions:r,readOnlyEnabled:o}=e;return t.includes(d.Y.DOCUMENT_EDITING)&&!(n.readOnly||!r.modification||o===p.g.VIA_VIEW_STATE||o===p.g.VIA_BACKEND_PERMISSIONS)}function D(e){let{features:t,backendPermissions:n,documentPermissions:r,readOnlyEnabled:o}=e;return t.includes(d.Y.CONTENT_EDITING)&&!(n.readOnly||!r.modification||o===p.g.VIA_VIEW_STATE||o===p.g.VIA_BACKEND_PERMISSIONS)}function T(e){let{features:t,backend:n}=e;return(0,r.V1)(n),t.includes(d.Y.COMMENTS)&&("STANDALONE"===n.type||"SERVER"===n.type&&n.isUsingInstantProvider())}function I(e){let{features:t,backend:n}=e;return(0,r.V1)(n),t.includes(d.Y.MEASUREMENT_TOOLS)&&("STANDALONE"===n.type||"SERVER"===n.type)}function M(e){let{features:t}=e;return!R(t)&&t.includes(d.Y.ELECTRONIC_SIGNATURES)}function N(e,t){return!!(t===l.g.LEGACY_SIGNATURES||e.includes(d.Y.FORMS)&&(e.includes(d.Y.ELECTRONIC_SIGNATURES)||e.includes(d.Y.DIGITAL_SIGNATURES)))}function O(e,t,n){let{backendPermissions:r,documentPermissions:i,isEditableAnnotation:a,editableAnnotationTypes:s,readOnlyEnabled:l}=n;return e.readOnly||a&&!a(t)||!s.has(o.sb)||!u.JY.IGNORE_DOCUMENT_PERMISSIONS&&!i.fillForms&&!i.annotationsAndForms||r.readOnly||l!==p.g.NO}function R(e){return e.includes(d.Y.WEB_ANNOTATION_EDITING)||e.includes(d.Y.ANNOTATION_EDITING)}},46188:(e,t,n)=>{"use strict";n.d(t,{D5:()=>s,HW:()=>i,NE:()=>l,b8:()=>o,xv:()=>c});var r=n(85409);function o(){return"object"==typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Electron/")>=0}function i(){const e=u()[atob("cmVxdWlyZQ==")];return o()&&"undefined"!=typeof window&&window&&window.process&&window.process.type&&"function"==typeof e}function a(){let e;try{e=c("@electron/remote")}catch(t){if("MODULE_NOT_FOUND"!==t.code)throw t;try{e=c("electron").remote}catch(e){(0,r.z3)(`Failed to load the remote module package. PSPDFKit for Web needs access to it in order to work in Electron.\n        Please read our Electron guides to help you set it up: https://pspdfkit.com/getting-started/electron/\n        ${t.message}\n        ${e.message}`)}}return e}function s(){if(!o())return null;if(!i())return null;try{const e=c("fs"),t=a().app.getAppPath()+"/package.json";return JSON.parse(e.readFileSync(t).toString()).name}catch(e){throw new Error(`There was an error parsing this project's \`package.json\`: ${e.message}`)}}function l(){if(!o())return null;try{return`file://${a().app.getAppPath()}/node_modules/@nutrient-sdk/viewer/dist/`}catch(e){return null}}function c(e){return(0,u()[atob("cmVxdWlyZQ==")])(e)}function u(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g}},18574:(e,t,n)=>{"use strict";n.d(t,{D:()=>o});var r=n(68322);function o(e,t){return"string"==typeof e&&t===r.v.FlutterForWeb}},41204:(e,t,n)=>{"use strict";n.d(t,{D5:()=>r.D5,DT:()=>i.D,HW:()=>r.HW,NE:()=>r.NE,b8:()=>r.b8,pI:()=>o.p,xv:()=>r.xv});var r=n(46188),o=n(44026),i=n(18574)},44026:(e,t,n)=>{"use strict";function r(e,t){return"string"==typeof e&&t?.startsWith("Maui_")}n.d(t,{p:()=>r})},77270:(e,t,n)=>{"use strict";function r(e){return new Promise(((t,n)=>{let r=0;const o=[];let i=!1;const a=()=>{r>=e.length&&(i?n(o):t(o))};a(),e.forEach(((e,t)=>{e.then((e=>{r+=1,o[t]=e,a()})).catch((e=>{r+=1,o[t]=e,i=!0,a()}))}))}))}function o(e,t){let n=!1;return{promise:new Promise(((t,r)=>{e.then((e=>!n&&t(e)),(e=>!n&&r(e)))})),cancel(){n=!0,t&&t()}}}function i(e,t){return new Promise((function(n,r){e.then(n,r),setTimeout((function(){r(Error("promise:timeout"))}),t)}))}function a(){let e,t;return{promise:new Promise(((n,r)=>{e=n,t=r})),resolve:e,reject:t}}n.d(t,{AV:()=>r,GJ:()=>o,wR:()=>i,yl:()=>a})},79900:(e,t,n)=>{"use strict";function r(){let e=1;return void 0!==window.devicePixelRatio&&(e=window.devicePixelRatio),e}n.d(t,{I:()=>r})},81243:(e,t,n)=>{"use strict";n.d(t,{M$:()=>p,TQ:()=>y,gn:()=>g,sS:()=>v,vd:()=>b});var r=n(49568),o=n(85409),i=n(78729),a=n(81083),s=n(76117),l=n(57892);function c(e){switch(e){case a.E.TOP:return{mx:0,my:-1};case a.E.BOTTOM:return{mx:0,my:1};case a.E.LEFT:return{mx:-1,my:0};case a.E.RIGHT:return{mx:1,my:0};case a.E.TOP_LEFT:return{mx:-1,my:-1};case a.E.TOP_RIGHT:return{mx:1,my:-1};case a.E.BOTTOM_RIGHT:return{mx:1,my:1};case a.E.BOTTOM_LEFT:return{mx:-1,my:1}}throw new o.uE("Expected `getMultipliersFromResizeStartingAnchor` to be called with a valid `ResizeStartingAnchor` value.")}function u(e,t){const n=c(t);return new s.bR({x:e.boundingBox.left+e.boundingBox.width/2+-1*n.mx*e.boundingBox.width/2,y:e.boundingBox.top+e.boundingBox.height/2+-1*n.my*e.boundingBox.height/2})}function d(e,t,n,o){let i;if(e instanceof s.MU)i=(0,r.B8)([e.startPoint,e.endPoint]);else{if(!(e instanceof s.Si||e instanceof s.ug))return(0,r.B8)();i=e.points}const a=u(e,o);return i=i.map((e=>e.translate(a.scale(-1)).scale(t,n).translate(a))),i}function p(e){const{MIN_IMAGE_ANNOTATION_SIZE:t,MIN_STAMP_ANNOTATION_SIZE:n,MIN_TEXT_ANNOTATION_SIZE:r,MIN_INK_ANNOTATION_SIZE:o,MIN_SHAPE_ANNOTATION_SIZE:a,MIN_WIDGET_ANNOTATION_SIZE:l}=i.JY;switch(e.constructor){case s.vU:return t;case s.xY:return n;case s.dh:return r;case s.Eo:return o;case s.MU:case s.Zx:case s.Go:case s.ug:case s.Si:return a;case s.sb:return l;default:return 0}}function h(e,t,n){if(!e)return function(e,t){if(0===e.height||0===e.width)return t;const n=e.width/e.height,r=(t.height+n*t.width)/(n**2+1);return t.set("height",r).set("width",r*n)}(t,n);if(0===t.width||0===t.height||0===n[e])return n;const r="width"===e?"height":"width",o=t[e]/t[r];return n.set(r,n[e]/o)}const f={0:a.E.BOTTOM_RIGHT,90:a.E.TOP_RIGHT,180:a.E.TOP_LEFT,270:a.E.BOTTOM_LEFT},m={[a.E.TOP]:a.E.TOP_RIGHT,[a.E.BOTTOM]:a.E.BOTTOM_RIGHT,[a.E.LEFT]:a.E.BOTTOM_LEFT,[a.E.RIGHT]:a.E.BOTTOM_RIGHT,[a.E.TOP_LEFT]:a.E.TOP_LEFT,[a.E.TOP_RIGHT]:a.E.TOP_RIGHT,[a.E.BOTTOM_LEFT]:a.E.BOTTOM_LEFT,[a.E.BOTTOM_RIGHT]:a.E.BOTTOM_RIGHT};function g(e,t,n,r){let o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=arguments.length>5?arguments[5]:void 0,g=arguments.length>6?arguments[6]:void 0,y=arguments.length>7?arguments[7]:void 0;const b=e.boundingBox;let w;if((0,l.nU)(e)&&!(0,l.U7)(e)){const r=c(n),o=new s.bR({x:b.width/2*r.mx,y:b.height/2*r.my}),i=o.rotate(e.rotation),a=new s.bR({x:i.x+t.x,y:i.y+t.y}).rotate(-e.rotation);w=new s.bR({x:a.x-o.x,y:a.y-o.y})}else w=t;const x=function(e,t,n,r,o){const i=c(t);let a,s=e.width+i.mx*n.x,l=e.height+i.my*n.y;return o&&r&&(i.mx>0&&e.left+s>r.width?(s=r.width-e.left,a="width"):i.mx<0&&s-e.width>e.left&&(s=e.left+e.width,a="width"),i.my>0&&e.top+l>r.height?(l=r.height-e.top,a="height"):i.my<0&&l-e.height>e.top&&(l=e.top+e.height,a="height")),{rect:e.set("width",s).set("height",l),keepToSide:a}}(b,n,w,i,g);let S=x.rect;if(r&&(S=h(x.keepToSide,b,S)),o&&y&&(y?.maxHeight||y?.maxWidth||y?.minHeight||y?.minWidth)){const t=p(e);y.minHeight=y.minHeight?y.minHeight:t,y.minWidth=y.minWidth?y.minWidth:t}else o&&(S=function(e,t,n){const r=p(e);if(r>0){const o=e.boundingBox,i=o.width<r?o.width:r;if(t.width<i){const e=t.width;if(t=n?h("width",o,t.set("width",i)):t.set("width",i),o.left!==t.left){const n=t.width-e;t=t.set("left",t.left+n)}}const a=o.height<r?o.height:r;if(t.height<a){const e=t.height;if(t=n?h("height",o,t.set("height",a)):t.set("height",a),o.top!==t.top){const n=t.height-e;t=t.set("top",t.top+n)}}}return t}(e,S,r));const _=0!==b.width?S.width/b.width:0,C=0!==b.height?S.height/b.height:0,{translation:E,dragDifference:k}=function(e,t,n,r,o){const i=c(t),a=-1*i.mx*(e.width-e.width*n),l=-1*i.my*(e.height-e.height*r),u=o?new s.bR({x:i.mx>=0?0:Math.max(-e.left,a),y:i.my>=0?0:Math.max(-e.top,l)}):new s.bR({x:i.mx>=0?0:a,y:i.my>=0?0:l});return{translation:u,dragDifference:o?new s.bR({x:i.mx>=0?0:a-u.x,y:i.my>=0?0:l-u.y}):new s.bR({x:0,y:0})}}(b,n,_,C,g);S=S.set("width",S.width+k.x).set("height",S.height+k.y),S=S.translate(E),(y?.maxHeight||y?.maxWidth||y?.minHeight||y?.minWidth)&&(S=function(e,t,n,r){const o=e.boundingBox;let i=t.width;r.maxWidth&&i>r.maxWidth&&(i=r.maxWidth),r.minWidth&&i<r.minWidth&&(i=r.minWidth);const a=t.width;if(t=n?h("width",o,t.set("width",i)):t.set("width",i),o.left!==t.left){const e=t.width-a;t=t.set("left",t.left+e)}let s=t.height;r.maxHeight&&t.height>r.maxHeight&&(s=r.maxHeight),r.minHeight&&t.height<r.minHeight&&(s=r.minHeight);const l=t.height;if(t=n?h("height",o,t.set("height",s)):t.set("height",s),o.top!==t.top){const e=t.height-l;t=t.set("top",t.top+e)}return t}(e,S,r,y));return v(function(){const t=e.set("boundingBox",S),o=Math.sqrt(_*C);let i;return t instanceof s.dh?(0,l.U7)(e)&&n===f[e.rotation]||!(0,l.U7)(e)&&n===a.E.BOTTOM_RIGHT?t.set("fontSize",t.fontSize*o).set("isFitting",!0):t.set("isFitting",!0):t instanceof s.Eo?t.withMutations((e=>{e.set("lines",function(e,t,n,r){let o=e.lines;const i=u(e,r);return o=o.map((e=>e.map((e=>e.translate(i.scale(-1)).scale(t,n).translate(i))))),o}(t,_,C,r?m[n]:n)),e.set("lineWidth",t.lineWidth*o)})):t instanceof s.MU?(i=d(t,_,C,n),t.withMutations((e=>{e.set("startPoint",i.get(0)),e.set("endPoint",i.get(1))}))):t instanceof s.Si||t instanceof s.ug?(i=d(t,_,C,n),t.withMutations((e=>{e.set("boundingBox",S),e.set("points",i)}))):t}(),b)}function v(e,t){if((0,l.nU)(e)&&!(0,l.U7)(e)){const n=new s.bR({x:e.boundingBox.getCenter().x-t.getCenter().x,y:e.boundingBox.getCenter().y-t.getCenter().y}).rotate(e.rotation);return e.update("boundingBox",(e=>e?.set("left",t.left+n.x-(e.width-t.width)/2).set("top",t.top+n.y-(e.height-t.height)/2)||null))}return e}function y(e,t){const{width:n,height:r}=e,o=t.width/n,i=t.height/r,a=Math.min(o,i);return new s.or({width:n*a,height:r*a})}function b(e){switch(e){case a.E.TOP_LEFT:return"Top-Left";case a.E.TOP:return"Top";case a.E.TOP_RIGHT:return"Top-Right";case a.E.LEFT:return"Left";case a.E.RIGHT:return"Right";case a.E.BOTTOM_LEFT:return"Bottom-Left";case a.E.BOTTOM:return"Bottom";case a.E.BOTTOM_RIGHT:return"Bottom-Right";default:(0,o.GQ)(e)}}},57892:(e,t,n)=>{"use strict";n.d(t,{Lz:()=>u,U7:()=>d,_1:()=>v,nU:()=>p,pE:()=>l,rK:()=>c,zq:()=>s});var r=n(76117),o=n(89574),i=n(85624),a=n.n(i);function s(e,t,n,i){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const s=e.set("rotation",t);if(n&&i){const t=l(s),i=(0,o.hI)(t,a);if(!new r.rw({left:0,top:0,width:n.width,height:n.height}).isRectInside(i))return e}return s}function l(e){const{boundingBox:t,rotation:n}=e,{width:o,height:i}=t;if(!p(e))return e;const a=new r.bR({x:-o/2,y:-i/2}),s=new r.bR({x:o/2,y:-i/2}),l=new r.bR({x:o/2,y:i/2}),c=new r.bR({x:-o/2,y:i/2}),u=a.rotate(n),d=s.rotate(n),h=l.rotate(n),f=c.rotate(n),m=Math.min(u.x,d.x,h.x,f.x),g=Math.min(u.y,d.y,h.y,f.y),v=Math.max(u.x,d.x,h.x,f.x),y=Math.max(u.y,d.y,h.y,f.y),b=t.getCenter();return e.set("boundingBox",new r.rw({left:b.x+m,top:b.y+g,width:v-m,height:y-g}))}function c(e,t){if(p(e)){const n=t||function(e,t){if(void 0===t||0===t)return e.getSize();const n=Math.floor(t/360);-1===Math.sign(t)&&(t+=360+360*n);let o=(t-=360*n)%180;const i=o>=90,a=i?e.height:e.width,s=i?e.width:e.height;if(o%=90,45===o){if(a!==s){const e=Math.min(a,s);return new r.or({width:Math.sqrt(2)*e,height:Math.sqrt(2)*e})}return new r.or({width:Math.sqrt(2)*a,height:Math.sqrt(2)*s})}const l=o*(Math.PI/180);return new r.or({width:(a*Math.cos(l)-s*Math.sin(l))/Math.cos(2*l),height:(s*Math.cos(l)-a*Math.sin(l))/Math.cos(2*l)})}(e.boundingBox,e.rotation);return e.set("boundingBox",new r.rw({left:e.boundingBox.left+(e.boundingBox.width-n.width)/2,top:e.boundingBox.top+(e.boundingBox.height-n.height)/2,width:n.width,height:n.height}))}return e}function u(e){return"number"==typeof e.rotation&&e.rotation%360!=0}function d(e){return"number"==typeof e.rotation&&Math.abs(e.rotation)%90==0&&Math.abs(e.rotation)%360!=0}function p(e){return(0,o.KQ)(e)&&u(e)}let h,f,m,g;function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"grab";if(h||(h=new DOMParser,f=h.parseFromString(a(),"image/svg+xml"),m=f.querySelector("svg"),g=new XMLSerializer),m&&(m.style.transform=`rotate(${-e}deg)`),g){return`url("${`data:image/svg+xml;utf8,${encodeURIComponent(g.serializeToString(f))}`}") 15 15, ${t}`}return t}},6329:(e,t,n)=>{"use strict";n.d(t,{LL:()=>f,Pm:()=>x,_z:()=>m,q4:()=>w,qR:()=>b});var r=n(49568),o=n(85409),i=n(63939),a=n(32784),s=n(89055),l=n(76117),c=n(9627),u=n(57916),d=n(29366),p=n(1886),h=n.n(p);function f(e){const{document:t}=e;if(c.HQ){const{activeElement:n,body:r}=t,i=n&&1===n.nodeType&&n!==r;if(e.getSelection()?.isCollapsed&&!i)return;const a=t.createElement("input");return a.style.position="fixed",a.style.left="50vw",a.style.top="50vh",a.readOnly=!0,(0,o.V1)(t.documentElement,"no document object found"),t.documentElement.appendChild(a),a.focus(),a.blur(),void a.remove()}e.getSelection()?.empty?e.getSelection()?.empty():e.getSelection()?.removeAllRanges&&e.getSelection()?.removeAllRanges()}function m(e,t){const n=t.startAndEndIds();if(!n)return(0,r.T5)();const{startTextLineId:i,endTextLineId:a,startPageIndex:s,endPageIndex:l}=n;return(0,r.T5)(e.pages.filter((e=>e.contentBlocks&&e.pageIndex>=s&&e.pageIndex<=l)).map((e=>{const t=y(e.contentBlocks);let n;return e.pageIndex===s&&e.pageIndex===l?n=t.filter((e=>((0,o.V1)((0,d.Et)(e.id)),e.id>=i&&e.id<=a))):e.pageIndex===s?n=t.filter((e=>((0,o.V1)((0,d.Et)(e.id)),e.id>=i))):e.pageIndex===l?n=t.filter((e=>((0,o.V1)((0,d.Et)(e.id)),e.id<=a))):((0,o.V1)(e.contentBlocks),n=y(e.contentBlocks)),[e.pageIndex,n]})))}const g=(e,t,n,r,i)=>{(0,o.V1)((0,d.Et)(t.pageIndex));const a={transform:n&&n.scaleX>0&&n.scaleY>0?`scale(${n.scaleX*e.viewportState.zoomLevel}, ${n.scaleY*e.viewportState.zoomLevel})`:"",fontFamily:r||""};return new u.a(e.frameWindow?.document,i,a,h().line,e.shadowRoot)},v=(e,t,n,r)=>{const i=e.pages.get(t);(0,o.V1)(i&&i.contentBlocks,"Page not found or page has no blocks");const a=function(e,t){const n=t.split(".").map(Number);function r(e,t){if(0===t.length)return e;const n=t[0],o=e.contentBlocks.find((e=>e.id===n));return o?r(o,t.slice(1)):null}for(let t=0;t<e.size;t++){const o=e.get(t);if(o&&o.id===n[0]){const e=r(o,n.slice(1));if(e)return e}}return null}(i.contentBlocks,r);(0,o.V1)(a,"ContentBlock not found");const s=a.textLines;(0,o.V1)(s,"TextLines not found");return s.find((e=>e.id===n))};function y(e){const t=[];function n(e,t){t.push(...e.textLines),e.contentBlocks.forEach((e=>{n(e,t)}))}return e.forEach((e=>{n(e,t)})),(0,r.B8)(t)}function b(e,t){const n=t.startAndEndIds();if(!n)return null;const{startTextLineId:i,endTextLineId:l,startNestedContentBlockId:c,endNestedContentBlockId:u,startPageIndex:p,endPageIndex:h}=n,f=e.pages.get(p);(0,o.V1)(f,"Index of start page is out of bounds");const m=e.pages.get(h);if((0,o.V1)(m,"Index of end page is out of bounds"),i===l&&p===h){const n=v(e,p,i,c);if(!n)return null;(0,o.V1)((0,d.Et)(n.id));const l=f.textLineScales&&f.textLineScales.get(n.id),u=f.textElementFonts?.[n.id]||"",h=(0,a.O6)((0,s.Xm)(e),n),m=h.substring(0,t.startOffset),y=h.substring(t.startOffset,t.endOffset),b=h.substring(t.endOffset),w=g(e,n,l,u,(0,r.B8)([m,y,b])),x=w.measure().get(1);(0,o.V1)(x);const S=x.scale(1/e.viewportState.zoomLevel).translate(n.boundingBox.getLocation());return w.remove(),{startRect:S,endRect:S}}{const n=v(e,p,i,c),y=v(e,h,l,u);if(!n||!y)return null;(0,o.V1)((0,d.Et)(n.id)),(0,o.V1)((0,d.Et)(y.id));const b=f.textLineScales&&f.textLineScales.get(n.id),w=f.textElementFonts?.[n.id]||"",x=m.textLineScales&&m.textLineScales.get(y.id),S=m.textElementFonts?.[y.id]||"",_=(0,a.O6)((0,s.Xm)(e),n),C=_.substring(0,t.startOffset),E=_.substring(t.startOffset),k=(0,a.O6)((0,s.Xm)(e),y),z=k.substring(0,t.endOffset),P=k.substring(t.endOffset),A=g(e,n,b,w,(0,r.B8)([C,E])),D=g(e,y,x,S,(0,r.B8)([z,P])),T=A.measure().last();(0,o.V1)(T);const I=T.scale(1/e.viewportState.zoomLevel).translate(n.boundingBox.getLocation()),M=D.measure().first();(0,o.V1)(M);const N=M.scale(1/e.viewportState.zoomLevel).translate(y.boundingBox.getLocation());return A.remove(),D.remove(),{startRect:I,endRect:N}}}function w(e,t){const{startTextLineId:n,endTextLineId:r,startNestedContentBlockId:i,endNestedContentBlockId:a,startPageIndex:s,endPageIndex:l,textRange:c}=t;(0,o.V1)((0,d.Et)(s));const u=e.pages.get(s);(0,o.V1)((0,d.Et)(l)),(0,o.V1)(u,"Index of start page is out of bounds");const p=e.pages.get(l);if((0,o.V1)(p,"Index of end page is out of bounds"),(0,o.V1)(c&&(0,d.Et)(n)&&(0,d.Et)(r)&&(0,d.Kg)(i)&&(0,d.Kg)(a)),n===r&&s===l){const t=v(e,s,n,i);return t?.contents.substring(c.startOffset,c.endOffset)??""}{const t=v(e,s,n,i),o=v(e,l,r,a);if(!t||!o)return"";const u=t.contents.substring(c.startOffset),d=o.contents.substring(0,c.endOffset);return m(e,c).map(((e,t)=>e.map((e=>e.id==n&&t==s?u:e.id==r&&t==l?d:e.contents)))).valueSeq().flatten(!0).join("")}}function x(e,t,n){const r=t.startAndEndIds(),o=b(e,t);if(!r||!o)return null;const{startTextLineId:a,endTextLineId:s,startPageIndex:c,endPageIndex:u}=r,{startRect:d,endRect:p}=o,h=m(e,t).map(((t,r)=>t.map((t=>{let o;if(o=t.id==a&&r==c?d:t.id==s&&r==u?p:t.boundingBox,n)return o;const l=(0,i.zo)(e.viewportState,r).translate(e.viewportState.scrollPosition.scale(e.viewportState.zoomLevel));return o.apply(l)})))).valueSeq().flatten(!0).toList();return l.rw.union(h)}},21055:(e,t,n)=>{"use strict";n.d(t,{m:()=>l,s:()=>s});var r=n(78729),o=n(50960),i=n(51946),a=n(37361);const s=e=>{const{SELECTION_OUTLINE_PADDING:t}=r.JY;return t(e)},l=e=>{let{annotation:t,zoomScaledBoundingBox:n,viewportSize:r}=e;return t instanceof i.dG?new o.rw({left:t.boundingBox.left+t.boundingBox.width/2-a.jw/2,top:t.boundingBox.top+t.boundingBox.height/2-a.jw/2,width:a.jw,height:a.jw}):n.grow(s(r))}},98899:(e,t,n)=>{"use strict";n.d(t,{Fz:()=>w,Ly:()=>u,Qn:()=>i,S7:()=>m,Wm:()=>g,_M:()=>f,gP:()=>v,lY:()=>a,ly:()=>p,tb:()=>s,wg:()=>h,zG:()=>c});var r=n(85409),o=n(9627);function i(e,t){return e?{document:e,addEventListener:((t,n,r)=>{const o=["touchstart","touchmove","scroll"].includes(t)?{...r,passive:!0}:r;e.addEventListener(t,n,o)}).bind(e),removeEventListener:e.removeEventListener.bind(e),Node:t.Node}:t}function a(e){if(e){const t=o.gm?e.ownerDocument.getSelection():function(e){if("function"==typeof e.getSelection)return e.getSelection();return null}(e);if(t)return function(e,t){const n=function(e,t){if(!e.isCollapsed)return!1;document.createRange().selectNodeContents(t);const n=document.createRange();return!(!e.anchorNode||!e.focusNode)&&(n.setStart(e.anchorNode,e.anchorOffset),n.setEnd(e.focusNode,e.focusOffset),l(n,t)&&function(e){return""!==e.toString()}(e))}(e,t);return{selection:e,isFalseCollapse:n}}(t,e)}return function(e,t){const n={selection:null,isFalseCollapse:!1};if(e&&!e.isCollapsed){l(e.getRangeAt(0),t)&&(n.selection=e)}return n}(document.getSelection(),e)}function s(e){return{selection:e?.getSelection(),isFalseCollapse:!1}}function l(e,t){return t.contains(e.startContainer)&&t.contains(e.endContainer)}function c(e,t,n){let r=function(e,t,n){let r=e;for(;r&&r.shadowRoot;){const e=r.shadowRoot.elementFromPoint(t,n);if(!e||e===r)break;r=e}return r}(e,t,n);return r||(r=function(e,t,n){let r,o=e;for(;!r&&o;){const e=o.parentElement||o.getRootNode().host;e&&(r=e.shadowRoot?e.shadowRoot.elementFromPoint(t,n):document.elementFromPoint(t,n)),o=e}return r}(e,t,n)),r&&r.nodeType===Node.ELEMENT_NODE?function(e,t,n){if("P"!==e.tagName&&"SPAN"!==e.tagName)return null;let r=null,o=1/0;const i=document.createRange();function a(e){i.selectNodeContents(e);const a=i.getBoundingClientRect(),s=Math.hypot(a.left-t,a.top-n);s<o&&(r=e,o=s)}for(const t of e.childNodes)if(t.nodeType===Node.TEXT_NODE)a(t);else if(t.nodeType===Node.ELEMENT_NODE&&"SPAN"===t.tagName)for(const e of t.childNodes)e.nodeType===Node.TEXT_NODE&&a(e);return r}(r,t,n):r||null}function u(e,t,n){const o=document.createRange();let i=0,a=1/0;const s=function(e){const t=document.createElement("span");return t.style.position="absolute",t.style.whiteSpace="pre",document.body.appendChild(t),function(e,t){const n=window.getComputedStyle(e);for(const e of n)t.style[e]=n[e]}(e.parentNode,t),t}(e);(0,r.V1)(e.textContent);for(let r=0;r<=e.textContent.length;r++){s.textContent=e.textContent.substring(0,r),o.setStart(e,r),o.setEnd(e,r);const l=d(o,t,n);l<a&&(a=l,i=r)}return s.remove(),i}function d(e,t,n){const r=e.getBoundingClientRect();return Math.hypot(r.left-t,r.top-n)}function p(e){for(;e;){if(e.classList?.contains("PSPDFKit-Rich-Text-Editor")||e.classList?.contains("BaselineUI-Editor"))return!0;e=e.parentNode}return!1}function h(e,t){let n,o,i,a;(0,r.V1)(e.node&&t.node);const s=e.node.compareDocumentPosition(t.node);return s&Node.DOCUMENT_POSITION_FOLLOWING?(({node:n,offset:o}=e),({node:i,offset:a}=t)):s&Node.DOCUMENT_POSITION_PRECEDING?(({node:n,offset:o}=t),({node:i,offset:a}=e)):(n=i=e.node,o=Math.min(e.offset,t.offset),a=Math.max(e.offset,t.offset)),(0,r.V1)(n&&i),{startNode:n,startOffset:o,endNode:i,endOffset:a}}function f(e){let t=e;for(;t&&!["P","DIV","SECTION","ARTICLE"].includes(t.nodeName);)t=t.parentNode;if(t){const e=document.createRange();return e.selectNodeContents(t),e}return null}function m(e,t,n){const r=document.createRange();let o=0,i=e.textContent?.length??0;const a=u(e,t,n),s=e.textContent??"";for(let e=a;e>=0;e--)if(" "===s?.[e]||0===e){o=0===e?0:e+1;break}for(let e=a;e<s.length;e++)if(" "===s[e]||e===s.length-1){i=e;break}return r.setStart(e,o),r.setEnd(e,i),r}function g(e,t){const n=e?e.getBoundingClientRect():null;if(!t)return{containerLeftOffset:0,containerTopOffset:0};return{containerLeftOffset:t.left-(n?n.left:0),containerTopOffset:t.top-(n?n.top:0)}}function v(e){let{x:t,y:n,shadowRoot:r,rootElement:o,containerRect:i}=e;if(!(r instanceof ShadowRoot))return{x:t,y:n,xOffset:0,yOffset:0};const{containerLeftOffset:a,containerTopOffset:s}=g(o,i);return{x:t+a,y:n+s,xOffset:a,yOffset:s}}function y(e,t,n){let r=null,o=0,i=null,a=0;for(const{node:s,startOffset:l,endOffset:c}of n)if(!r&&e>=l&&e<c&&(r=s,o=e-l),t>l&&t<=c){i=s,a=t-l;break}return{startNode:r,startNodeOffset:o,endNode:i,endNodeOffset:a}}function b(e,t,n){const r=e.getBoundingClientRect(),o=r.left+r.width/2,i=r.top+r.height/2;return Math.hypot(o-t,i-n)}function w(e,t,n,r,o){if(!e||!t||!n)return null;const i=n.closest(".PSPDFKit-Page");if(!i)return null;const a=function(e){let t;const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null);for(;null!==(t=r.nextNode());)n.push(t);return n}(i),{fullText:s,textNodeOffsets:l}=function(e){let t="";const n=[];for(const r of e){const e=t.length;t+=r.textContent||"";const o=t.length;n.push({node:r,startOffset:e,endOffset:o})}return{fullText:t,textNodeOffsets:n}}(a),c=function(e,t){const n=[];let r=0;for(;(r=e.indexOf(t,r))>-1;)n.push(r),r+=t.length;return n}(s,t);if(0===c.length)return null;const u=function(e,t,n,r,o){const i=[];for(const a of e){const e=a+t.length,{startNode:s,startNodeOffset:l,endNode:c,endNodeOffset:u}=y(a,e,n);if(s&&c){const e=document.createRange();e.setStart(s,l),e.setEnd(c,u);const t=b(e,r,o);i.push({startNode:s,startNodeOffset:l,endNode:c,endNodeOffset:u,distance:t})}}return i}(c,t,l,r,o);if(0===u.length)return null;u.sort(((e,t)=>e.distance-t.distance));const d=u[0],p=document.createRange();return p.setStart(d.startNode,d.startNodeOffset),p.setEnd(d.endNode,d.endNodeOffset),p}},18738:(e,t,n)=>{"use strict";n.d(t,{Ai:()=>y,Cr:()=>O,FG:()=>f,PZ:()=>b,WA:()=>v,Xz:()=>R,YC:()=>w,e8:()=>x,s3:()=>h,sI:()=>N,uq:()=>C,y4:()=>P});var r=n(49568),o=n(85409),i=n(76117),a=n(83145),s=n(41008),l=n(30235),c=n(37361),u=n(89574);const d=(e,t)=>e-t,p=(e,t)=>{const n=t.reduce(((t,n,r,o)=>{const i={x:t.x.concat([n.x]),y:t.y.concat([n.y])},a=o.get(r+1)||o.get(r-1)||n,s=a.x-n.x,l=a.y-n.y;if(0===s&&0===l)return i;const c=Math.sqrt(s**2+l**2),u=(0===r?"lineCaps"in e&&e.lineCaps?.start?2.5*e.strokeWidth:e.strokeWidth/2:r===o.size-1&&"lineCaps"in e&&e.lineCaps?.end?2.5*e.strokeWidth:e.strokeWidth/2)/c;return{x:i.x.concat([n.x-u*l,n.x+u*l]),y:i.y.concat([n.y-u*s,n.y+u*s])}}),{x:[],y:[]}),[r,...o]=n.x.sort(d),i=o.slice(-1)[0]||r,[a,...s]=n.y.sort(d);return{minX:r,maxX:i,minY:a,maxY:s.slice(-1)[0]||a}};function h(e){switch(e){case i.MU:return e=>{(0,o.V1)(e instanceof i.MU,"Expected `lineAnnotation` to be an instance of `LineAnnotation`");const{minX:t,maxX:n,minY:a,maxY:s}=p(e,(0,r.B8)([e.startPoint,e.endPoint]));return new i.rw({width:n-t+2*e.strokeWidth,height:s-a+2*e.strokeWidth,top:a-e.strokeWidth,left:t-e.strokeWidth})};case i.Zx:case i.Go:case a.A:return e=>e.boundingBox;case i.Si:case i.ug:return e=>{if((0,o.V1)(e instanceof i.ug||e instanceof i.Si,"Expected `polyshapeAnnotation` to be an instance of `PolylineAnnotation` or `PolygonAnnotation`"),0===e.points.size)return e.boundingBox;const{minX:t,maxX:n,minY:r,maxY:a}=p(e,e.points),s="cloudyBorderIntensity"in e&&e.cloudyBorderIntensity?e.cloudyBorderIntensity*c.Ss:0;return new i.rw({width:n-t+2*e.strokeWidth+2*s,height:a-r+2*e.strokeWidth+2*s,top:r-e.strokeWidth-s,left:t-e.strokeWidth-s})};case i.dh:return e=>{if((0,u.I2)(e)){(0,o.V1)(e instanceof i.dh,"Expected `annotation` to be a `TextAnnotation`");const{callout:t}=e;(0,o.V1)(t,"Expected `callout` to be defined");const{innerRectInset:n,knee:r,start:a,end:s}=t;(0,o.V1)(n&&a&&s,"Expected `innerRectInset`, `start` and `end` to be defined");const l=Math.min(e.boundingBox.left+n.left,a.x,s.x,r?r.x:1/0),c=Math.min(e.boundingBox.top+n.top,a.y,s.y,r?r.y:1/0),u=Math.max(e.boundingBox.left+e.boundingBox.width-n.right,a.x,s.x,r?r.x:-1/0),d=Math.max(e.boundingBox.top+e.boundingBox.height-n.bottom,a.y,s.y,r?r.y:-1/0),p=4*(e.borderWidth||2);let h=f(a,new i.rw({left:l,top:c,width:u-l,height:d-c}),p);return r&&(h=f(r,h,p)),h}return e.boundingBox}}throw new o.uE("Expected `getBoundingBoxCalculator` to be called with a valid shape annotation type class value.")}function f(e,t,n){const r=t.left===e.x,o=t.left+t.width===e.x,a=t.top===e.y,s=t.top+t.height===e.y;return new i.rw({left:r?t.left-n:t.left,top:a?t.top-n:t.top,width:r||o?t.width+n:t.width,height:a||s?t.height+n:t.height})}const m=(e,t)=>new i.bR({x:e.x+t.weightedStrokeWidthLineRatio*t.xOffset,y:e.y+t.weightedStrokeWidthLineRatio*t.yOffset}),g={xOffset:0,yOffset:0,weightedStrokeWidthLineRatio:0},v=6,y=25;function b(e,t,n){if(null===n)return e;const o=function(e){return Math.min(Math.max(e,v),y)}(t),a=n.start,l=n.end,c=t<1?Math.min(6*t,v):o,u=a?s.B[a].width:0,d=l?s.B[l].width:0;if(e.size<2||!u&&!d)return e;const p=e.get(0),h=e.get(e.size-1);if(!(p instanceof i.bR&&h instanceof i.bR))return e;const f=a?(()=>{const t=p,n=e.get(1)||t;if(!(n instanceof i.bR))return g;const r=n.x-t.x,o=n.y-t.y;return{xOffset:r,yOffset:o,weightedStrokeWidthLineRatio:0!==r||0!==o?u*c/Math.sqrt(r**2+o**2):0}})():g,b=l&&e.get(e.size-2)instanceof i.bR?(()=>{const t=h,n=e.get(e.size-2)||t,r=-(t.x-n.x),i=-(t.y-n.y);return{xOffset:r,yOffset:i,weightedStrokeWidthLineRatio:0!==r||0!==i?d*o/Math.sqrt(r**2+i**2):0}})():g;return e.size>2||!a||!l?e.map(((t,n)=>0===n?f.weightedStrokeWidthLineRatio<=1?m(t,f):t:n===e.size-1&&b.weightedStrokeWidthLineRatio<=1?m(t,b):t)):f.weightedStrokeWidthLineRatio+b.weightedStrokeWidthLineRatio<=1?(0,r.B8)([m(p,f),m(h,b)]):e}function w(e){return e instanceof i.Zx||e instanceof i.Go?e.delete("boundingBox"):e instanceof i.Si||e instanceof i.ug?e.delete("boundingBox").delete("points"):e instanceof i.MU?e.delete("boundingBox").delete("startPoint").delete("endPoint"):e}function x(e){switch(e){case i.MU:return l.O.SHAPE_LINE;case i.Zx:return l.O.SHAPE_RECTANGLE;case i.Go:return l.O.SHAPE_ELLIPSE;case i.ug:return l.O.SHAPE_POLYLINE;case i.Si:return l.O.SHAPE_POLYGON;default:return null}}const S=1.75,_=.3;function C(e){let{points:t,intensity:n,arcRadius:r=c.Ss*n}=e;const o=t.reduce(((e,n,o)=>{const i=o===t.length-1?t[0]:t[o+1];if(T(n,i,.01))return e;const a=D(n,i),s=Math.floor(a/(r*S));if(a>=a/(s+1)){const t=s+1,r=(i[0]-n[0])/t,o=(i[1]-n[1])/t;e.push(...Array.from({length:t},((e,t)=>[n[0]+r*t,n[1]+o*t])))}return e}),[]),i=A(t),a=i?"1":"0",s="1"===a?"0":"1",l=i?-_:_;return o.reduce(((e,t,n)=>{const c=o[n>0?n-1:o.length-1];if(T(t,c))return e;let u=o[(n+1)%o.length],d=n+1;for(;T(t,u);){if(d%o.length===n)return[];u=o[(1+ ++d)%o.length]}let p=I(t,c,r,i),h=I(t,u,r,!i);if(isNaN(p)&&isNaN(h))return e.push(`${u[0]} ${u[1]}`),e;isNaN(p)&&(p=h+Math.PI),isNaN(h)&&(h=p+Math.PI),h+=l;const f=i?h>p?p+(E-h)>Math.PI?"1":"0":p-h>Math.PI?"1":"0":h>p?p+(E-h)>Math.PI?"0":"1":p-h>Math.PI?"0":"1",m=[t[0]+Math.cos(p)*r,t[1]-Math.sin(p)*r],g=[t[0]+Math.cos(h)*r,t[1]-Math.sin(h)*r];return e.push(0===e.length?`M ${m[0]} ${m[1]} A ${r} ${r} 0 ${f} ${a} ${g[0]} ${g[1]}`:` A ${r} ${r} 0 0 ${s} ${m[0]} ${m[1]} A ${r} ${r} 0 ${f} ${a} ${g[0]} ${g[1]}`),e}),[]).join(" ")}const E=2*Math.PI,k=360,z=E/k;function P(e){let{boundingBox:t,cloudyBorderIntensity:n,cloudyBorderInset:r}=e;const o=r instanceof i.Yy?i.Yy.applyToRect(r,t):t,a=t.width/2,s=t.height/2;if(0===a||0===s)return"";const l=Math.min(a,s,c.Ss*n),u=o.width/2,d=o.height/2,p=o.left+u,h=o.top+d,f=Array.from({length:k},((e,t)=>{const n=z*t;return[p+u*Math.cos(n),h+d*Math.sin(n)]})),m=f.length;let g=l*S;const v=M(f),y=v/g;g+=y>0?v%g/y:0;let b=0;const w=f.reduce(((e,t,n)=>{const r=f[(n+1)%m],o=D(t,r)/g,i=(r[0]-t[0])/o,a=(r[1]-t[1])/o,s=i/g*b,l=a/g*b;let c=t[0]+s,u=t[1]+l;for(;(i<=0&&c>=r[0]||i>=0&&c<=r[0])&&(a<=0&&u>=r[1]||a>=0&&u<=r[1]);)e.push([c,u]),c+=i,u+=a;return b=Math.abs(r[0]-c)*(g/Math.abs(i)),e}),[]),x=w.length;return 0===x?"":w.reduce(((e,t,n)=>{const r=w[n>0?n-1:x-1],o=w[(n+1)%x];let i=I(t,r,l,!0),a=I(t,o,l,!1);if(isNaN(i)&&isNaN(a))return e.push(`${o[0]} ${o[1]}`),e;isNaN(i)&&(i=a+Math.PI),isNaN(a)&&(a=i+Math.PI),a-=_;const s=a>i?i+(E-a)>Math.PI?"1":"0":i-a>Math.PI?"1":"0",c=[t[0]+Math.cos(i)*l,t[1]-Math.sin(i)*l],u=[t[0]+Math.cos(a)*l,t[1]-Math.sin(a)*l];return e.push(0===e.length?`M ${c[0]} ${c[1]} A ${l} ${l} 0 ${s} 1 ${u[0]} ${u[1]}`:`A ${l} ${l} 0 0 0 ${c[0]} ${c[1]} A ${l} ${l} 0 ${s} 1 ${u[0]} ${u[1]}`),e}),[]).join(" ")}const A=e=>e.reduce(((t,n,r)=>r<e.length-1?t+(n[0]*e[r+1][1]-n[1]*e[r+1][0]):t+(n[0]*e[0][1]-n[1]*e[0][0])),0)>0,D=(e,t)=>{const n=t[0]-e[0],r=t[1]-e[1];return e[0]===t[0]?Math.abs(r):e[1]===t[1]?Math.abs(n):Math.sqrt(n**2+r**2)},T=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.001;return Math.abs(e[0]-t[0])<=n&&Math.abs(e[1]-t[1])<=n},I=(e,t,n,r)=>{const o=.5*Math.sqrt((e[0]-t[0])**2+(e[1]-t[1])**2),i=Math.acos(o/n),a=[t[0]-e[0],t[1]-e[1]];let s=Math.atan2(-a[1],a[0]);return s<0&&(s+=E),r?s-i:s+i},M=e=>e.reduce(((t,n,r)=>t+D(n,r<e.length-1?e[r+1]:e[0])),0),N=e=>e instanceof i.MU||e instanceof i.ug,O=e=>!N(e);function R(e,t,n){if(e.constructor===i.Go||e.constructor===i.Zx){if(t>0&&!e.cloudyBorderIntensity)return e.boundingBox.grow(c.R0+e.strokeWidth/2);if(!t&&e.cloudyBorderIntensity>0)return e.boundingBox.grow(-(c.R0+e.strokeWidth/2))}return e.constructor===i.Si?n(e.set("cloudyBorderIntensity",t)):n(e)}},90651:(e,t,n)=>{"use strict";function r(e,t,n,r){if(e.points?.size<3)return-1;const o=e.get("points"),i=r||o?.get(t);return o.findIndex((e=>{if(e.get("x")===i.get("x")&&e.get("y")===i.get("y"))return!1;return e.distance(i)<=n}))}function o(e,t,n){const r=e.get("points")?.get(n);return e.update("points",(e=>e.set(t,r)))}function i(e,t,n){return"STANDALONE"===e?.type&&"function"==typeof t.isMeasurement&&t.isMeasurement()&&!n}n.d(t,{RJ:()=>r,oC:()=>o,sC:()=>i})},67748:(e,t,n)=>{"use strict";n.d(t,{AO:()=>m,d0:()=>g,j5:()=>f,nn:()=>h});var r=n(85409),o=n(38849),i=n(51946),a=n(14063),s=n(24159),l=n(89398),c=n(37361),u=n(40556),d=n(29366);const p=(0,o.A)("StampAnnotationTemplate"),h=e=>{p(e instanceof i.xY||e instanceof i.vU,"`annotationTemplate` is not an instance of `PSPDFKit.Annotations.StampAnnotation` or ``PSPDFKit.Annotations.ImageAnnotation`")},f=function(e){let{includeDate:t,includeTime:n}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,o=arguments.length>2?arguments[2]:void 0;const i={};t&&(i.day="2-digit",i.month="2-digit",i.year="numeric"),n&&(i.hour="2-digit",i.minute="2-digit");return(t||n?o.formatDate(r,i):null)??null},m=e=>{let{annotation:t,intl:n}=e;const{formatMessage:r}=n;return t instanceof i.xY?"Custom"===t.stampType&&t.title?u.A[(0,d.$h)(t.title)]?r(u.A[(0,d.$h)(t.title)]):t.title:u.A[(0,d.$h)((0,a.rC)(t.stampType))]?r(u.A[(0,d.$h)((0,a.rC)(t.stampType))]):t.stampType:t.description||t.fileName||" "},g=l.A.filter((e=>[s.A.BLUE,s.A.RED,s.A.ORANGE,s.A.LIGHT_YELLOW,s.A.GREEN].includes(e.color)||"mauve"===e.localization.id)).map((e=>function(e){return(0,r.V1)(null!=e.color),{label:e.localization.description??"",color:Object.values(v(e.color))[0].color.toHex()??"#000000"}}(e)));function v(e){const t=e.lighter(c.aD);let n=e;const r=Math.max(n.r,n.g,n.b);for(let e=0;e<10&&t.contrastRatio(n)<4.5;e++)n=n.darker((255-r)/25.5);return{[`${n.toCSSValue()}`]:{color:n,backgroundColor:t}}}},90378:(e,t,n)=>{"use strict";n.d(t,{F:()=>o});var r=n(7737);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.Ng)(((t,n)=>e?.(t.reuseState?i(t,t.reuseState):t,n)),null,null,t)}const i=(0,n(41811).A)(((e,t)=>e.withMutations((n=>{n.merge(t),n.set("pages",e.pages.map((e=>{const n=e.pageKey,r=t.pages.find((e=>e.pageKey===n));return r&&r?e.set("annotationIds",r.annotationIds):e})))}))))},29366:(e,t,n)=>{"use strict";n.d(t,{$h:()=>a,EJ:()=>p,Et:()=>d,Kg:()=>u,Ow:()=>i,lq:()=>l,ui:()=>c});var r=n(85606),o=n.n(r);function i(e){return e.charAt(0)&&e.charAt(0).toUpperCase()+e.slice(1)}function a(e){return e.charAt(0).toLowerCase()+e.substr(1)}const s=e=>e[0]===o().INSERT;function l(e,t,n){const r=o()(e,t,n);let i="";const a=r.filter(s);return a.length>0&&(i=a[0][1]),{prev:e,next:t,change:i,diff:r,endCursorPosition:n+(r[1]?.[1]?.length||0)}}function c(e,t){if(t===e.change)return e.next;const{diff:n}=e,r=n.findIndex(s);return r>=0?n[r][1]=t:n.push([o().INSERT,t]),function(e){let t="";for(let n=0;n<e.length;n++){const[r,i]=e[n];switch(r){case o().DELETE:break;case o().INSERT:case o().EQUAL:t+=i}}return t}(n)}function u(e){return"string"==typeof e}function d(e){return"number"==typeof e}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:120;const n=e.trim();return n.length<t?n:n.slice(0,t)+"…"}},97028:(e,t,n)=>{"use strict";n.d(t,{OI:()=>l,TH:()=>d,ZH:()=>s,jG:()=>u,lb:()=>c});var r=n(85409),o=n(15653),i=n(76117),a=n(18738);function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}function l(e){return e.split(/[^a-zA-Z0-9]/g).reduce(((e,t)=>e+s(t)),"")}function c(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||""}function u(e){return"#00000000"===e?void 0:e}function d(e){let{rect:t,callout:n,zoomLevel:s,annotation:l,text:c=l.text}=e;const{height:u,width:d}=t,p=l.boundingBox.scale(s),h=l.borderWidth?l.borderWidth*s:void 0;if(!n?.innerRectInset||!d||!u)return;const f=n.innerRectInset.setScale(s),m=p.left+f.left,g=p.left+f.left+d,v=p.top+f.top,y=p.top+f.top+u,b=(h||2)/2,w=(0,o.tE)([[m+b,v+b],[g-b,v+b],[g-b,y-b],[m+b,y-b]]),x=n.knee||n.start;(0,r.V1)(x,"CalloutEditComponent: point is undefined");const S=(0,o.aw)(x.scale(s),w);(0,r.V1)(n.start);let _=i.rw.fromPoints(...[[m,v],[g,v],[g,y],[m,y]].map((e=>new i.bR({x:e[0],y:e[1]})))).expandToIncludePoints(...[n.start,n.knee].filter(Boolean).map((e=>e?.scale(s))));_=(0,a.FG)(n.start.scale(s),_,4*(l.borderWidth||2)),n.knee&&(_=(0,a.FG)(n.knee.scale(s),_,l.borderWidth||2));const C=S.scale(1/s);return{callout:n.set("end",C).set("innerRectInset",new i.Yy({bottom:(_.top+_.height-y)/s,left:(m-_.left)/s,right:(_.left+_.width-g)/s,top:(v-_.top)/s})),text:c,boundingBox:_.scale(1/s)}}},16192:(e,t,n)=>{"use strict";n.d(t,{Fz:()=>g,Nv:()=>h,VN:()=>p,Wi:()=>m,ar:()=>d,fk:()=>u,gh:()=>v});var r=n(85409),o=n(9939),i=n(76117),a=n(57916),s=n(37361),l=n(78729),c=n(57892);function u(e){let t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(!1===l.JY.TEXT_ANNOTATION_AUTOFIT_TEXT_ON_EXPORT)return e.set("isFitting",!1);try{if(t=(0,o.KU)(),!t.window||!t.window.document)return e;t.window.document.head.appendChild(t.window.document.createElement("style")).textContent="p { margin: 0; }",n=new a.a(t.window.document,e.text.value,h(e.set("rotation",0),r,!1));const i=!(0,o.RL)(n.wrapper);return e.set("isFitting",i)}finally{n&&n.remove(),t&&t.remove()}}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=(0,o.KU)();if(!n.window||!n.window.document)return n?.remove(),e.fontSize;n.window.document.head.appendChild(n.window.document.createElement("style")).textContent="p { margin: 0; }";const r=new a.a(n.window.document,e.text.value,h(e.set("rotation",0),t,!1)),i=!(0,o.RL)(r.wrapper);for(e=e.set("isFitting",i);!e.isFitting&&e.fontSize>=2;){e=e.set("fontSize",e.fontSize-1),r._setStyles(r.wrapper,{...a.a.defaultWrapperStyles,...h(e.set("rotation",0),t,!1)});const n=!(0,o.RL)(r.wrapper);e=e.set("isFitting",n)}return n?.remove(),e.fontSize}function p(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3?arguments[3]:void 0;try{const i=t.width-e.boundingBox.left,s=t.height-e.boundingBox.top;n=new a.a(document,e.text.value,{...h(e,r,!1),width:"auto",height:"auto",maxWidth:`${Math.ceil(i*r)}px`,maxHeight:`${Math.ceil(s*r)}px`,padding:"0px",margin:"0px",overflow:"visible"},void 0,o);const{width:l,height:c}=n.wrapper.getBoundingClientRect(),u=Math.max(l,n.wrapper.clientWidth,n.wrapper.scrollWidth),d=Math.max(c,n.wrapper.clientHeight,n.wrapper.scrollHeight);return e.set("boundingBox",e.boundingBox.set("width",Math.ceil(u/r)).set("height",Math.ceil(d/r)))}finally{n&&n.remove()}}function h(e,t,n,r){const o=r??e.fontSize,i={width:Math.ceil(e.boundingBox.width*t),height:Math.ceil(e.boundingBox.height*t),color:e.fontColor?e.fontColor.toCSSValue():"transparent",backgroundColor:e.backgroundColor&&!n?e.backgroundColor.toCSSValue():"transparent",fontSize:o*t+"px",fontFamily:`${v(e.font)}, sans-serif`,textAlign:e.horizontalAlign,...n?null:{opacity:e.opacity},fontWeight:e.isBold?"bold":"normal",fontStyle:e.isItalic?"italic":"normal",whiteSpace:"pre-wrap",wordBreak:"break-word",overflow:"hidden",lineHeight:"number"==typeof e.lineHeightFactor?e.lineHeightFactor*t*o+"px":"normal",flexDirection:"column",justifyContent:f(e.verticalAlign),display:"flex"};return(0,c.Lz)(e)&&!n&&(i.transformOrigin="50% 50%",i.transform=`rotate(${String(-e.rotation)}deg)`),i}function f(e){switch(e){case"top":return"flex-start";case"center":return"center";case"bottom":return"flex-end";default:return(0,r.GQ)(e)}}function m(e){return"string"==typeof e?e.split("\r\n").join("\n").split("\r").join("\n"):e}function g(e,t){let n;switch(t){case 0:n=new i.rw({left:e.x,top:e.y,width:s.TB,height:s.AN});break;case 90:n=new i.rw({left:e.x,top:e.y-s.AN,width:s.TB,height:s.AN});break;case 180:n=new i.rw({left:e.x-s.TB,top:e.y-s.AN,width:s.TB,height:s.AN});break;case 270:n=new i.rw({left:e.x-s.TB,top:e.y,width:s.TB,height:s.AN});break;default:throw(0,r.GQ)(t)}return n}function v(e){return/^[-_a-zA-Z0-9\\xA0-\\u{10FFFF}]*$/.test(e)?e:`"${e}"`}},17032:(e,t,n)=>{"use strict";n.d(t,{AD:()=>c,ZY:()=>l,l4:()=>u});var r=n(49568),o=n(85409),i=n(76117),a=n(6329),s=n(89574);function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return u(e).map((r=>{let{pageIndex:o,rects:a}=r;return new t({...(0,s.mN)(e),pageIndex:o,boundingBox:i.rw.union(a),rects:a,isCommentThreadRoot:n})}))}function c(e,t,n){return u(e).map((r=>{let{pageIndex:o,rects:a}=r;const l=t.get(o);return null==l?new n({...(0,s.mN)(e),pageIndex:o,boundingBox:i.rw.union(a),rects:a}):l.withMutations((e=>e.set("boundingBox",i.rw.union(a)).set("rects",a)))}))}function u(e){(0,o.V1)(e.currentTextSelection,"Cannot create markup annotation without text selection.");const{textRange:t,startTextLineId:n,endTextLineId:i,startPageIndex:s,endPageIndex:l}=e.currentTextSelection;(0,o.V1)(t);const c=(0,a.qR)(e,t);if(!c)return(0,r.B8)();const{startRect:u,endRect:d}=c;return(0,a._z)(e,t).map(((t,r)=>{const a=e.pages.get(r);(0,o.V1)(a);const c=t.map((e=>e.id==n&&r==s?u:e.id==i&&r==l?d:e.boundingBox));return{pageIndex:a.pageIndex,rects:c}})).valueSeq().toList()}},40411:(e,t,n)=>{"use strict";function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=null,o=null;return function(){const i=this;for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];if(r)n&&(o=s);else{e.apply(i,s);const a=()=>{r=null,o&&n&&(e.apply(i,o),o=null,r=setTimeout(a,t))};r=setTimeout(a,t)}}}n.d(t,{A:()=>r})},17704:(e,t,n)=>{"use strict";n.d(t,{KK:()=>a,LI:()=>l,Wf:()=>i});var r=n(9627),o=n(15168);function i(){const e="webkit"===r.Hi;let t;e&&(t=window.PointerEvent);const o=window.Hammer;e&&delete window.PointerEvent;const i=n(39609);return e&&(window.PointerEvent=t),window.Hammer=o,i}function a(e){let t;if(e.touches)t=e.touches;else{if(!e.changedTouches)return!1;t=e.changedTouches}return t.length<=1}const s="webkit"===r.Hi||"blink"===r.Hi;function l(e){if(!s)return()=>{};const t=e=>{a(e)||e.preventDefault()},n=["touchstart","touchmove"],r=o.fS?{passive:!1}:void 0;return n.forEach((n=>{e.addEventListener(n,t,r),document.addEventListener(n,t,r)})),()=>{n.forEach((n=>{e.removeEventListener(n,t,r),document.removeEventListener(n,t,r)}))}}},81309:(e,t,n)=>{"use strict";n.d(t,{C:()=>l,F:()=>s});var r=n(51946),o=n(50960),i=n(57892),a=n(89574);function s(e,t){const n=e.set("boundingBox",e.boundingBox.translate(t));return n instanceof r.Eo?n.update("lines",(e=>e.map((e=>e.map((e=>e.translate(t))))))):n instanceof r.MU?n.update("startPoint",(e=>e.translate(t))).update("endPoint",(e=>e.translate(t))):n instanceof r.Si||n instanceof r.ug?n.update("points",(e=>e?.map((e=>e.translate(t)))||null)):(0,a.I2)(e)?n.update("callout",(e=>(e?.knee&&(e=e.update("knee",(e=>e?.translate(t)||null))),e?.update("start",(e=>e?.translate(t)||null)).update("end",(e=>e?.translate(t)||null))||null))):n}function l(e,t,n,r,l){const c=function(e,t,n,r,s){let l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;const c=(0,i.pE)(e),u=(0,a.hI)(c,l),d=new o.rw({x:0,y:0,width:n.width,height:n.height}).isRectInside(u);s&&d?(u.left+t.x<0&&(t=t.set("x",-u.left)),u.left+u.width+t.x>n.width&&(t=t.set("x",n.width-u.width-u.left)),u.top+t.y<0&&(t=t.set("y",-u.top)),u.top+u.height+t.y>n.height&&(t=t.set("y",n.height-u.height-u.top))):(r.x+u.left+t.x<0&&(t=t.set("x",-r.x-u.left)),r.x+u.left+t.x>n.width&&(t=t.set("x",n.width-(r.x+u.left))),r.y+u.top+t.y<0&&(t=t.set("y",-r.y-u.top)),r.y+u.top+t.y>n.height&&(t=t.set("y",n.height-(r.y+u.top))));return t}(e,t,n,r,l,arguments.length>5&&void 0!==arguments[5]?arguments[5]:1);return s(e,c)}},95342:(e,t,n)=>{"use strict";function r(e){return Object.keys(e)}n.d(t,{ZG:()=>r})},16019:(e,t,n)=>{"use strict";n.d(t,{Q:()=>l});var r=n(96540),o=n(84387),i=n(40027),a=n(72776),s=n(74848);function l(e,t,n,l,c){return(0,r.useMemo)((()=>{const{content:r,decorator:u}=a.M[e]({props:n,instance:l});(0,i.V1)(r,"defaultContent is required"),(0,i.V1)(u,"defaultDecorator is required");const{content:d,decorator:p}=t({props:n,instance:l}),h=d||r,f=h instanceof Node?(0,s.jsx)(o.DomNodeRenderer,{node:h}):h,m={...c??{},content:f},g=p?p(m):u(m);return g instanceof Node?(0,s.jsx)(o.DomNodeRenderer,{node:g}):g}),[e,t,n,l,c])}},53793:(e,t,n)=>{"use strict";n.d(t,{J:()=>l,s:()=>c});var r=n(76117),o=n(50259),i=n(30830),a=n(63573),s=n(30919);function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"undefined"!=typeof location?location.hash:null;if(!t)return e;return t.replace("#","").split("&").map((e=>{const t=e.split("=");if(2===t.length)return[t[0],t[1]]})).filter(Boolean).forEach((t=>{let[n,r]=t;switch(n){case"page":{const t=parseInt(r,10);if("number"!=typeof t||Number.isNaN(t)||t<=0)break;e=e.set("currentPageIndex",t-1);break}}})),e}function c(e,t){return new i.A({currentPageIndex:e.viewportState.currentPageIndex,zoom:(0,o.IX)(e.viewportState),pagesRotation:e.viewportState.pagesRotation,layoutMode:e.viewportState.layoutMode,scrollMode:e.viewportState.scrollMode,showToolbar:e.showToolbar,enableAnnotationToolbar:e.enableAnnotationToolbar,disablePointSnapping:e.viewportState.disablePointSnapping,allowPrinting:e.printingEnabled,allowExport:e.exportEnabled,interactionMode:e.interactionMode,readOnly:e.readOnlyEnabled!==s.g.NO,showAnnotations:e.showAnnotations,showComments:e.showComments,showAnnotationNotes:e.showAnnotationNotes,sidebarMode:e.sidebarMode,sidebarOptions:e.sidebarOptions,sidebarPlacement:e.sidebarPlacement,spreadSpacing:e.viewportState.spreadSpacing,pageSpacing:e.viewportState.pageSpacing,keepFirstSpreadAsSinglePage:e.viewportState.keepFirstSpreadAsSinglePage,viewportPadding:new r.EN({horizontal:e.viewportState.viewportPadding.x,vertical:e.viewportState.viewportPadding.y}),instance:t||e.instance,formDesignMode:e.formDesignMode,showSignatureValidationStatus:e.showSignatureValidationStatus,previewRedactionMode:e.previewRedactionMode,keepSelectedTool:e.keepSelectedTool,resolvedLayoutMode:(0,a.uM)(e.viewportState),sidebarWidth:e.sidebarWidth,enableAlwaysScrollToZoom:e.viewportState.enableAlwaysScrollToZoom,forceRenderWidgetsInAnnotationsOrder:e.viewportState.forceRenderWidgetsInAnnotationsOrder,prerenderedPageSpreads:e.viewportState.prerenderedPageSpreads,showAIAssistant:e.aiAssistant.show})}},63939:(e,t,n)=>{"use strict";n.d(t,{A8:()=>S,FW:()=>A,JC:()=>y,Jn:()=>N,L7:()=>I,NJ:()=>v,U0:()=>D,ZT:()=>f,g2:()=>M,gK:()=>z,nV:()=>T,nx:()=>k,r7:()=>_,s4:()=>b,tE:()=>C,xd:()=>x,xw:()=>E,z1:()=>P,zA:()=>w,zo:()=>m});var r=n(41811),o=n(85409),i=n(63573),a=n(69979),s=n(17053),l=n(33091),c=n(50960),u=n(25028),d=n(96754),p=n(37361),h=n(45306);function f(e,t,n){if((e.scrollMode===u.V.PER_SPREAD||e.scrollMode===u.V.DISABLED)&&t!==e.currentPageIndex)return!1;const r=m(e,t),o=n.apply(r);return e.viewportRect.isRectOverlapping(o)}function m(e,t){if(e._pageToClientTransformation?.[t])return e._pageToClientTransformation[t];const n=(0,i.NZ)(e,t),r=function(e,t){return e.translate(t.viewportRect.getLocation()).translate(t.scrollPosition.scale(-t.zoomLevel))}(w(b(y(c.XF.IDENTITY,e,t,n),e,n),e),e);return e._pageToClientTransformation||(e._pageToClientTransformation={}),e._pageToClientTransformation[t]=r,r}const g=(0,r.A)(((e,t)=>m(e,t).inverse()));function v(e,t){return g(e,t)}function y(e,t,n,r){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const s=t.pageSizes.get(n);switch((0,o.V1)(s),0!==t.pagesRotation&&(e=e.rotate(-t.pagesRotation)),t.pagesRotation){case 0:break;case 90:e=e.translateX(s.height*a);break;case 180:e=e.translateX(s.width*a).translateY(s.height*a);break;case 270:e=e.translateY(s.width*a);break;default:throw new Error(`Unsupported pagesRotation: ${t.pagesRotation}. Only supporting: 0, 90, 180, 270.`)}switch((0,i.uM)(t)){case l.S.SINGLE:return(0,o.V1)(n===r,"In LayoutMode.SINGLE, pageIndex must equal spreadIndex."),e;case l.S.DOUBLE:{if(t.keepFirstSpreadAsSinglePage&&0==n&&0==r)return e;const o=t.keepFirstSpreadAsSinglePage?1:0,s=(0,i.DF)(t,n),l=(0,i.Bu)(t,r);return e.translateX((n+o)%2?parseInt((l.width-s.width)*a,10):0).translateY(parseInt((l.height-s.height)*a/2,10))}default:throw new Error("Unsupported layoutMode")}}function b(e,t,n){if(t.scrollMode===u.V.CONTINUOUS){const r=(0,i.Bu)(t,n).width,o=(0,i.kz)(t,n);return e.translateX(((0,i.Ym)(t)-r)/2).translateY(o)}return e}function w(e,t){return e.scale(t.zoomLevel).translate(P(t).getLocation())}function x(e,t,n,r){const o=e.set("viewportRect",new c.rw({width:t.width-r,height:t.height,top:t.top,left:t.left}));return I(A(e,o,n))}function S(e,t){const n=e.set("layoutMode",t);return I(A(e,n))}function _(e,t){const n=e.set("scrollMode",t);return I(A(e,n))}function C(e,t){return I(e.set("spreadSpacing",t))}function E(e,t){return I(e.set("pageSpacing",t))}function k(e,t){return I(e.set("keepFirstSpreadAsSinglePage",t))}function z(e,t){return I(e.set("viewportPadding",t))}function P(e){let t;if(e.scrollMode===u.V.CONTINUOUS)t=new c.or({width:(0,i.Ym)(e),height:(0,i.B6)(e)});else{const n=(0,i.NZ)(e,e.currentPageIndex);t=(0,i.Bu)(e,n)}let n=new c.rw({width:t.width,height:t.height}).scale(e.zoomLevel).translate(e.viewportPadding);const r=e.commentMode===h.X.SIDEBAR?p.Xm:0;e.viewportRect.width-r-2*e.viewportPadding.x>n.width&&(n=n.translateX((e.viewportRect.width-r-2*e.viewportPadding.x-n.width)/2));return e.viewportRect.height-2*e.viewportPadding.y>n.height&&(n=n.translateY((e.viewportRect.height-2*e.viewportPadding.y-n.height)/2)),n}function A(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=(0,i.uM)(e)!==(0,i.uM)(t),o=e.scrollMode!==t.scrollMode;if(!(n||r||o))return t;switch(t.scrollMode){case u.V.PER_SPREAD:case u.V.DISABLED:return t.set("zoomMode",d.d.FIT_TO_VIEWPORT);case u.V.CONTINUOUS:return t=I(t),(0,s.X_)(t,t.currentPageIndex,!0);default:throw new Error("Unsupported scrollMode")}}function D(e,t){return e.zoomLevel!==t.zoomLevel||e.zoomMode!==t.zoomMode||e.layoutMode!==t.layoutMode||e.scrollMode!==t.scrollMode||e.scrollPosition!==t.scrollPosition||e.currentPageIndex!==t.currentPageIndex||e.viewportRect!==t.viewportRect||e.pageSizes!==t.pageSizes||e.pagesRotation!==t.pagesRotation||e.viewportPadding!==t.viewportPadding||e.spreadSpacing!==t.spreadSpacing||e.pageSpacing!==t.pageSpacing||e.keepFirstSpreadAsSinglePage!==t.keepFirstSpreadAsSinglePage}function T(e){return[e.zoomLevel,e.zoomMode,e.layoutMode,e.scrollMode,e.scrollPosition,e.currentPageIndex,e.viewportRect,e.pageSizes,e.pagesRotation,e.viewportPadding,e.spreadSpacing,e.pageSpacing,e.keepFirstSpreadAsSinglePage]}function I(e){return e.zoomMode!==d.d.CUSTOM?e.set("zoomLevel",(0,a.eh)(e,e.zoomMode)):e}function M(e){return function(t,n){return t.apply(N(e(),n))}}function N(e,t){let{viewportState:n,scrollElement:r}=e;if(r){const e=new c.bR({x:r.scrollLeft/n.zoomLevel,y:r.scrollTop/n.zoomLevel});e.equals(n.scrollPosition)||(n=n.set("scrollPosition",e))}return v(n,t)}},26438:(e,t,n)=>{"use strict";n.d(t,{Kr:()=>s,X5:()=>c,e$:()=>a,hR:()=>l});var r=n(85409),o=n(63939),i=n(76117);function a(e,t){(0,r.V1)(t%90==0,"Only multiples of 90° allowed for rotation."),t=s(t);const n=e.update("pagesRotation",(e=>(e+t)%360));return(0,o.L7)((0,o.FW)(e,n,!0))}function s(e){return(0,r.V1)(e%90==0,"Only multiples of 90° allowed for rotation."),(360+e%360)%360}function l(e){return(360+Math.round(e)%360)%360}function c(e,t,n){switch(n){case 90:return new i.rw({left:e.top,top:Math.max(0,Math.round(t.height-e.right)),height:e.width,width:e.height});case 180:return e.merge({left:Math.max(0,Math.round(t.width-e.right)),top:Math.max(0,Math.round(t.height-e.bottom))});case 270:return new i.rw({left:Math.max(0,Math.round(t.width-e.bottom)),top:e.left,height:e.width,width:e.height});default:return e}}},17053:(e,t,n)=>{"use strict";n.d(t,{L7:()=>u,S8:()=>c,X_:()=>d,YQ:()=>p,ZA:()=>m,kw:()=>h,nr:()=>f});var r=n(63573),o=n(63939),i=n(69979),a=n(50960),s=n(25028),l=n(96754);function c(e,t,n){n||(n=new a.bR({x:.5*e.viewportRect.width,y:.1*e.viewportRect.height})),n=n.translate(e.viewportPadding.scale(-1));const r=t/e.zoomLevel-1;let o=0;const s=(0,i.cb)(e),l=t>s;if(l){o=t/Math.max(e.zoomLevel,s)-1}return new a.bR({x:l?e.scrollPosition.x+n.x*o/t:0,y:e.scrollPosition.y+n.y*r/t})}function u(e,t){const n=f(e);return new a.bR({x:Math.max(0,Math.min(t.x,n.x)),y:Math.max(0,Math.min(t.y,n.y))})}function d(e,t){if(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.currentPageIndex==t)return e;if(e.scrollMode==s.V.PER_SPREAD||e.scrollMode===s.V.DISABLED)return(0,i.Qp)(e.set("currentPageIndex",t),l.d.FIT_TO_VIEWPORT).set("scrollPosition",new a.bR).set("currentPageIndex",t);{const n=(0,r.NZ)(e,t),o=(0,r.kz)(e,n),i=f(e).y,a=Math.min(i,o);return e.set("currentPageIndex",t).setIn(["scrollPosition","y"],a)}}function p(e,t,n){if(!(arguments.length>3&&void 0!==arguments[3]&&arguments[3])&&(0,o.ZT)(e,t,n))return e;const r=(0,o.zo)(e,t),i=n.apply(r),a=e.viewportRect.getCenter(),s=i.getCenter().translate(a.scale(-1)),l=e.scrollPosition.translate(s.scale(1/e.zoomLevel));return e.merge({scrollPosition:u(e,l),currentPageIndex:t})}function h(e,t,n){const{viewportRect:r,viewportPadding:o}=e,a=(r.width-2*o.x)/n.width,s=(r.height-2*o.y)/n.height,l=Math.min(a,s);return p((0,i.Qp)(e,l),t,n,!0)}function f(e){const t=(0,o.z1)(e),n=t.left/e.zoomLevel+t.width/e.zoomLevel+e.viewportPadding.x/e.zoomLevel-e.viewportRect.width/e.zoomLevel,r=t.top/e.zoomLevel+t.height/e.zoomLevel+e.viewportPadding.y/e.zoomLevel-e.viewportRect.height/e.zoomLevel;return new a.bR({x:Math.max(0,n),y:Math.max(0,r)})}function m(e,t){return(0,r.Tr)(e.set("scrollPosition",t))}},63573:(e,t,n)=>{"use strict";n.d(t,{B6:()=>g,Bu:()=>x,DF:()=>w,NZ:()=>y,RQ:()=>S,Tr:()=>_,Ym:()=>m,dD:()=>v,kz:()=>f,lw:()=>k,og:()=>b,rY:()=>E,uM:()=>p});var r=n(49568),o=n(96540),i=n(85409),a=n(33091),s=n(63939),l=n(50960),c=n(25028),u=n(37361),d=n(92314);function p(e){if(e.layoutMode===a.S.AUTO){return e.viewportRect.width>e.viewportRect.height&&e.viewportRect.width>u.eV?a.S.DOUBLE:a.S.SINGLE}return e.layoutMode}function h(e){const t=b(e);let n=(0,r.B8)();for(let e=0;e<t;e++)n=n.push(e);return n}function f(e,t){return h(e).map((t=>x(e,t))).takeUntil(((e,n)=>n>=t)).reduce(((t,n)=>t+n.height+e.spreadSpacing),0)}function m(e){const t=h(e).map((t=>x(e,t))).maxBy((e=>e.width));return t?t.width:0}function g(e){const t=h(e).map((t=>x(e,t))),n=(t.size-1)*e.spreadSpacing;return t.map((e=>e.height)).reduce(((e,t)=>e+t),0)+n}function v(e,t){switch(p(e)){case a.S.SINGLE:return(0,i.V1)(t<b(e),"`spreadIndex` is out of bounds."),[t];case a.S.DOUBLE:{const n=e.pageSizes.count();if(e.keepFirstSpreadAsSinglePage&&0===t)return[0];const r=e.keepFirstSpreadAsSinglePage?1:0,o=[],i=2*t-r;i<n&&o.push(i);const a=2*t+1-r;return a<n&&o.push(a),o}default:throw new Error("Unsupported layoutMode")}}function y(e,t){if(t>=e.pageSizes.size)return 0;switch(p(e)){case a.S.SINGLE:return t;case a.S.DOUBLE:{const n=e.keepFirstSpreadAsSinglePage?1:0;return Math.floor((t+n)/2)}default:throw new Error("Unsupported layoutMode")}}function b(e){switch(p(e)){case a.S.SINGLE:return e.pageSizes.size;case a.S.DOUBLE:{if(e.pageSizes.size<=0)return 0;const t=e.keepFirstSpreadAsSinglePage?1:0;return Math.ceil((e.pageSizes.size+t)/2)}default:throw new Error("Unsupported layoutMode")}}function w(e,t){const n=e.pageSizes.get(t);return(0,i.V1)(n,"No such page size"),90===e.pagesRotation||270===e.pagesRotation?new l.or({width:n.height,height:n.width}):n}function x(e,t){const n=v(e,t);if(1===n.length)return w(e,n[0]);{let t=0,r=0;for(const o of n){const{width:n,height:i}=w(e,o);t+=n+(0!==o?e.pageSpacing:0),i>r&&(r=i)}return new l.or({width:t,height:r})}}function S(e){let{width:t}=e;return t<=u.UM?"width-xs":t<=u.DK?"width-sm":t<=u.eV?"width-md":t<=u.oY?"width-lg":"width-xl"}function _(e){let t=e.currentPageIndex,n=y(e,e.currentPageIndex);if(e.scrollMode===c.V.CONTINUOUS){const t=[0];let r=0;for(let n=0;n<b(e)-1;n++){const o=r+(x(e,n).height+(0!==n?e.spreadSpacing:0))*e.zoomLevel;r=o,t.push(o)}const o=e.scrollPosition.y*e.zoomLevel-e.viewportPadding.y+e.viewportRect.height/2;n=t.reduce(((e,t,n)=>t<o?n:e),0)}const r=v(e,n);if(r.length>1){const o=e.scrollPosition.x*e.zoomLevel-e.viewportPadding.x+e.viewportRect.width/2,i=r[1],a=(0,s.zA)((0,s.s4)((0,s.JC)(l.XF.IDENTITY,e,i,n),e,n),e);t=(new l.bR).apply(a).x<o?i:r[0]}else t=r[0];return e.set("currentPageIndex",t)}const C=500;function E(e,t,n){const[i,a]=o.useState(null),l=o.useRef((0,r.NZ)()),c=function(){const e=o.useRef({timeoutId:null,clear:function(){this.timeoutId&&clearTimeout(this.timeoutId),this.timeoutId=null},set:function(e,t){this.clear(),this.timeoutId=setTimeout(e,t)}});return o.useEffect((()=>{const t=e.current;return()=>t.clear()})),e.current}(),u=o.useCallback((e=>{n!==d.D.DOWNLOADING_DOCUMENT&&l.current.contains(t)&&(e?(c.clear(),c.set((()=>{a(t)}),C)):a(t))}),[t,c,a,n]);o.useEffect((()=>{c.clear();const r=n===d.D.DOWNLOADING_DOCUMENT?0:e.prerenderedPageSpreads??e.pageSizes.size;l.current=l.current.filter((e=>k(e,t,r))),u(!1)}),[...(0,s.nV)(e),t,c,u,e.prerenderedPageSpreads,e.pageSizes.size,n]);return[i,o.useCallback((e=>{l.current=l.current.add(e),u(!0)}),[u])]}function k(e,t,n){return e>=t-n&&e<=t+n}},49118:(e,t,n)=>{"use strict";n.d(t,{v:()=>o});var r=n(94045);function o(e,t,n){const o=e.viewportState.viewportRect.set("height",t.height);return e.sidebarMode?o.merge({width:e.containerRect.width-n,left:e.containerRect.left+(e.sidebarPlacement===r.A.START?n:0)}):o.merge({width:e.containerRect.width,left:e.containerRect.left})}},69979:(e,t,n)=>{"use strict";n.d(t,{Qp:()=>y,Zg:()=>x,bo:()=>m,cb:()=>f,eh:()=>v,lD:()=>b,m0:()=>p,m9:()=>h,qA:()=>S,qw:()=>g});var r=n(63573),o=n(37361),i=n(17053),a=n(25028),s=n(96754),l=n(75675),c=n(74963);let u=Number.POSITIVE_INFINITY,d=Number.NEGATIVE_INFINITY;function p(e){const t=Math.min(f(e),m(e),e.minDefaultZoomLevel,u);return u>t&&(u=t),t}function h(e){const t=Math.max(f(e),m(e),e.maxDefaultZoomLevel,d);return d<t&&(d=t),t}function f(e){if(0===e.pageSizes.size||0===e.viewportRect.width||0===e.viewportRect.height)return 1;let t;switch(e.scrollMode){case a.V.CONTINUOUS:t=(0,r.Ym)(e);break;case a.V.PER_SPREAD:case a.V.DISABLED:{const n=(0,r.NZ)(e,e.currentPageIndex);t=(0,r.Bu)(e,n).width;break}default:throw new Error("Unsupported scrollMode")}return(e.viewportRect.width-2*e.viewportPadding.x)/t}function m(e){if(0===e.pageSizes.size||0===e.viewportRect.width||0===e.viewportRect.height)return 1;const t=(0,r.NZ)(e,e.currentPageIndex),n=(0,r.Bu)(e,t).height;return 0===n?1:(e.viewportRect.height-2*e.viewportPadding.y)/n}function g(e){const t=f(e),n=m(e);return Math.min(t,n)}function v(e,t){switch(t){case s.d.AUTO:return function(e){const t=m(e),n=f(e),i=(0,r.DF)(e,0),a=i&&i.width>i.height?Math.min(t,n):n;return Math.min(a,o.W2)}(e);case s.d.FIT_TO_VIEWPORT:return g(e);case s.d.FIT_TO_WIDTH:return f(e);default:return(0,l.V)("number"==typeof t,"Unknown zoom mode"),t}}function y(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=v(e,t);const a="number"==typeof t?s.d.CUSTOM:t,l=p(e),c=h(e);if(o>=c)if(n.unbounded){const e=w((o-c)/25);o=c*(1+.5*e)}else o=c;else if(o<=l)if(n.unbounded){const e=w(4*(o-l));o=l*(1+.25*e)}else o=l;let u=(0,i.S8)(e,o,n.zoomCenter);return u=(0,i.L7)(e.set("zoomLevel",o),u),(0,r.Tr)(e.withMutations((e=>e.set("zoomLevel",o).set("scrollPosition",u).set("zoomMode",a))))}function b(e){const{zoomLevel:t}=e,n=p(e);return t>h(e)||t<n}function w(e){const t=Math.exp(+e),n=Math.exp(-e);return t==1/0?1:n==1/0?-1:(t-n)/(t+n)}const x=e=>"number"==typeof e||void 0===e||e===s.d.AUTO||e===s.d.FIT_TO_WIDTH||e===s.d.FIT_TO_VIEWPORT,S=e=>void 0===e||e===c.O.WITH_CTRL||e===c.O.ALWAYS||e===c.O.DISABLED},28301:(e,t,n)=>{"use strict";n.d(t,{$v:()=>h,PC:()=>f,Ss:()=>m,Vr:()=>v,vS:()=>b});var r=n(49568),o=n(85409),i=n(57916),a=n(9939),s=n(75157),l=n.n(s),c=n(83720);const u=4,d=.7,p=12,h=2,f=2,m=[1,2,3,4,6,8,9,10,12,14,16,18,20,25,30,35,40,45,50,55,60,70,80,90,100,110,120,130,144],g=m.slice(0,Math.floor(m.length/4));function v(e,t,n,a,s,c,v){if(s&&e&&10===e.charCodeAt(e.length-1)&&(e+="\n"),"auto"!==a)return a||Math.max(u,Math.min(n*d,p));let b,w;if(v){const e=window.getComputedStyle(v);b=e.getPropertyValue("font-family"),s||(w=e.getPropertyValue("line-height"))}if(s){const a=n-2*h,s=(0,r.B8)([e]),u=y(g,(e=>{const n=function(e){let{valueString:t,fontSize:n,fontFamily:r="inherit",availableWidth:a,element:s}=e;const c=new i.a(document,t,{fontSize:`${n}px`,width:`${a}px`,wordBreak:"break-word",whiteSpace:"pre-wrap",fontFamily:r,lineHeight:`${n}px`,margin:"0",padding:"0",border:"none",textAlign:s?.style.textAlign||"initial"},l().widget,s&&s.parentNode),u=c.measure().first();(0,o.V1)(u);const d=u.height;return c.remove(),d}({valueString:s,fontSize:e,fontFamily:b,availableWidth:t-2*f,element:v});let r=h;const u=a-e;return u-2*h<0&&(r=u>0?u/2:0),n+2*r+2*c>a?0:1}));return u}{const a=(0,r.B8)([e]),s=y(m,(e=>{const r=function(e){let{valueString:t,fontSize:n,fontFamily:r="inherit",lineHeight:a="inherit",element:s}=e;const c=new i.a(document,t,{fontSize:`${n}px`,fontFamily:r,lineHeight:a},l().widget,s&&s.parentNode),u=c.measure().first();(0,o.V1)(u);const d=u.width;return c.remove(),d}({valueString:a,fontSize:e,fontFamily:b,lineHeight:w,element:v});return r>t||e>n?0:1}));return s}}function y(e,t){let n=0,r=e.length-1,o=0,i=e[0];for(;n<=r;)o=Math.floor((n+r)/2),i=e[o],t(i)?n=o+1:r=o-1;return t(i)||(i=e[Math.max(0,o-1)]),i}function b(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;try{return n=(0,a.KU)(),r=new i.a(n.window.document,t,(0,c.i8)(e,o,!1)),!(0,a.RL)(r.wrapper)}finally{r&&r.remove(),n&&n.remove()}}},32485:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},97819:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(96540);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}const i=["is","onClick","disabled","tabIndex","onKeyPress"],a=r.forwardRef(((e,t)=>{const{is:n="span",onClick:a,disabled:s,tabIndex:l=0,onKeyPress:c}=e,u=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,i);return r.createElement(n,o({tabIndex:s?void 0:l,role:"button",onKeyPress:s?void 0:e=>{switch(e.key){case" ":case"Spacebar":e.preventDefault(),a&&c||c?c(e):a&&a(e);break;case"Enter":if(c&&(c(e),e.isDefaultPrevented()))return;a&&a(e)}},onClick:s?void 0:a,"aria-disabled":s?"true":void 0,ref:t},u))}));a.displayName="ClickableBox"},20053:(e,t,n)=>{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function o(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}n.r(t),n.d(t,{clsx:()=>o,default:()=>i});const i=o},24601:(e,t,n)=>{var r=n(78420),o=n(13838),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a function")}},73938:(e,t,n)=>{var r=n(65335),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not an object")}},58186:(e,t,n)=>{var r=n(5476),o=n(6539),i=n(23493),a=function(e){return function(t,n,a){var s,l=r(t),c=i(l),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},29609:(e,t,n)=>{var r=n(30281);e.exports=r([].slice)},18569:(e,t,n)=>{var r=n(30281),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},84361:(e,t,n)=>{var r=n(36490),o=n(15816),i=n(97632),a=n(43610);e.exports=function(e,t,n){for(var s=o(t),l=a.f,c=i.f,u=0;u<s.length;u++){var d=s[u];r(e,d)||n&&r(n,d)||l(e,d,c(t,d))}}},97712:(e,t,n)=>{var r=n(65077),o=n(43610),i=n(66843);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},66843:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7485:(e,t,n)=>{var r=n(78420),o=n(43610),i=n(48218),a=n(59430);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&i(n,c,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},59430:(e,t,n)=>{var r=n(30200),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},65077:(e,t,n)=>{var r=n(92074);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},96568:e=>{var t="object"==typeof document&&document.all,n=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},23262:(e,t,n)=>{var r=n(30200),o=n(65335),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},16874:e=>{e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},62050:(e,t,n)=>{var r=n(47061);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},75223:(e,t,n)=>{var r=n(18569),o=n(30200);e.exports="process"==r(o.process)},47061:(e,t,n)=>{var r=n(56492);e.exports=r("navigator","userAgent")||""},6845:(e,t,n)=>{var r,o,i=n(30200),a=n(47061),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(o=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},30290:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},51605:(e,t,n)=>{var r=n(30200),o=n(97632).f,i=n(97712),a=n(7485),s=n(59430),l=n(84361),c=n(84977);e.exports=function(e,t){var n,u,d,p,h,f=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[f]||s(f,{}):(r[f]||{}).prototype)for(u in t){if(p=t[u],d=e.dontCallGetSet?(h=o(n,u))&&h.value:n[u],!c(m?u:f+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),a(n,u,p,e)}}},92074:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},99070:(e,t,n)=>{var r=n(38823),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},46885:(e,t,n)=>{var r=n(43091),o=n(24601),i=n(38823),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},38823:(e,t,n)=>{var r=n(92074);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},72368:(e,t,n)=>{var r=n(38823),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},12071:(e,t,n)=>{var r=n(65077),o=n(36490),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),l=s&&"something"===function(){}.name,c=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},43091:(e,t,n)=>{var r=n(18569),o=n(30281);e.exports=function(e){if("Function"===r(e))return o(e)}},30281:(e,t,n)=>{var r=n(38823),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);e.exports=r?a:function(e){return function(){return i.apply(e,arguments)}}},56492:(e,t,n)=>{var r=n(30200),o=n(78420);e.exports=function(e,t){return arguments.length<2?(n=r[e],o(n)?n:void 0):r[e]&&r[e][t];var n}},46457:(e,t,n)=>{var r=n(24601),o=n(88406);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},30200:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},36490:(e,t,n)=>{var r=n(30281),o=n(92612),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},67708:e=>{e.exports={}},28890:(e,t,n)=>{var r=n(56492);e.exports=r("document","documentElement")},87694:(e,t,n)=>{var r=n(65077),o=n(92074),i=n(23262);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},48664:(e,t,n)=>{var r=n(30281),o=n(92074),i=n(18569),a=Object,s=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s(e,""):a(e)}:a},69965:(e,t,n)=>{var r=n(30281),o=n(78420),i=n(49310),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},99206:(e,t,n)=>{var r,o,i,a=n(8369),s=n(30200),l=n(65335),c=n(97712),u=n(36490),d=n(49310),p=n(25904),h=n(67708),f="Object already initialized",m=s.TypeError,g=s.WeakMap;if(a||d.state){var v=d.state||(d.state=new g);v.get=v.get,v.has=v.has,v.set=v.set,r=function(e,t){if(v.has(e))throw m(f);return t.facade=e,v.set(e,t),t},o=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var y=p("state");h[y]=!0,r=function(e,t){if(u(e,y))throw m(f);return t.facade=e,c(e,y,t),t},o=function(e){return u(e,y)?e[y]:{}},i=function(e){return u(e,y)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}}}},78420:(e,t,n)=>{var r=n(96568),o=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},84977:(e,t,n)=>{var r=n(92074),o=n(78420),i=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n==u||n!=c&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},88406:e=>{e.exports=function(e){return null==e}},65335:(e,t,n)=>{var r=n(78420),o=n(96568),i=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===i}:function(e){return"object"==typeof e?null!==e:r(e)}},6926:e=>{e.exports=!1},32328:(e,t,n)=>{var r=n(56492),o=n(78420),i=n(47658),a=n(5225),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},23493:(e,t,n)=>{var r=n(33747);e.exports=function(e){return r(e.length)}},48218:(e,t,n)=>{var r=n(92074),o=n(78420),i=n(36490),a=n(65077),s=n(12071).CONFIGURABLE,l=n(69965),c=n(99206),u=c.enforce,d=c.get,p=Object.defineProperty,h=a&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length})),f=String(String).split("String"),m=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||s&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),h&&n&&i(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=u(e);return i(r,"source")||(r.source=f.join("string"==typeof t?t:"")),e};Function.prototype.toString=m((function(){return o(this)&&d(this).source||l(this)}),"toString")},19830:e=>{var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},43610:(e,t,n)=>{var r=n(65077),o=n(87694),i=n(94491),a=n(73938),s=n(86032),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",h="writable";t.f=r?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var r=u(e,t);r&&r[h]&&(e[t]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:d in n?n[d]:r[d],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),o)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},97632:(e,t,n)=>{var r=n(65077),o=n(72368),i=n(9304),a=n(66843),s=n(5476),l=n(86032),c=n(36490),u=n(87694),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),u)try{return d(e,t)}catch(e){}if(c(e,t))return a(!o(i.f,e,t),e[t])}},64789:(e,t,n)=>{var r=n(16347),o=n(30290).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},18916:(e,t)=>{t.f=Object.getOwnPropertySymbols},47658:(e,t,n)=>{var r=n(30281);e.exports=r({}.isPrototypeOf)},16347:(e,t,n)=>{var r=n(30281),o=n(36490),i=n(5476),a=n(58186).indexOf,s=n(67708),l=r([].push);e.exports=function(e,t){var n,r=i(e),c=0,u=[];for(n in r)!o(s,n)&&o(r,n)&&l(u,n);for(;t.length>c;)o(r,n=t[c++])&&(~a(u,n)||l(u,n));return u}},9304:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},69751:(e,t,n)=>{var r=n(72368),o=n(78420),i=n(65335),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw a("Can't convert object to primitive value")}},15816:(e,t,n)=>{var r=n(56492),o=n(30281),i=n(64789),a=n(18916),s=n(73938),l=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?l(t,n(e)):t}},71229:(e,t,n)=>{var r=n(88406),o=TypeError;e.exports=function(e){if(r(e))throw o("Can't call method on "+e);return e}},18827:(e,t,n)=>{"use strict";var r=n(30200),o=n(99070),i=n(78420),a=n(16874),s=n(47061),l=n(29609),c=n(56589),u=r.Function,d=/MSIE .\./.test(s)||a&&function(){var e=r.Bun.version.split(".");return e.length<3||0==e[0]&&(e[1]<3||3==e[1]&&0==e[2])}();e.exports=function(e,t){var n=t?2:1;return d?function(r,a){var s=c(arguments.length,1)>n,d=i(r)?r:u(r),p=s?l(arguments,n):[],h=s?function(){o(d,this,p)}:d;return t?e(h,a):e(h)}:e}},25904:(e,t,n)=>{var r=n(50002),o=n(50665),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},49310:(e,t,n)=>{var r=n(30200),o=n(59430),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},50002:(e,t,n)=>{var r=n(6926),o=n(49310);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.27.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.1/LICENSE",source:"https://github.com/zloirock/core-js"})},82072:(e,t,n)=>{var r=n(6845),o=n(92074);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},74922:(e,t,n)=>{var r,o,i,a,s=n(30200),l=n(99070),c=n(46885),u=n(78420),d=n(36490),p=n(92074),h=n(28890),f=n(29609),m=n(23262),g=n(56589),v=n(62050),y=n(75223),b=s.setImmediate,w=s.clearImmediate,x=s.process,S=s.Dispatch,_=s.Function,C=s.MessageChannel,E=s.String,k=0,z={},P="onreadystatechange";try{r=s.location}catch(e){}var A=function(e){if(d(z,e)){var t=z[e];delete z[e],t()}},D=function(e){return function(){A(e)}},T=function(e){A(e.data)},I=function(e){s.postMessage(E(e),r.protocol+"//"+r.host)};b&&w||(b=function(e){g(arguments.length,1);var t=u(e)?e:_(e),n=f(arguments,1);return z[++k]=function(){l(t,void 0,n)},o(k),k},w=function(e){delete z[e]},y?o=function(e){x.nextTick(D(e))}:S&&S.now?o=function(e){S.now(D(e))}:C&&!v?(a=(i=new C).port2,i.port1.onmessage=T,o=c(a.postMessage,a)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!p(I)?(o=I,s.addEventListener("message",T,!1)):o=P in m("script")?function(e){h.appendChild(m("script"))[P]=function(){h.removeChild(this),A(e)}}:function(e){setTimeout(D(e),0)}),e.exports={set:b,clear:w}},6539:(e,t,n)=>{var r=n(79328),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},5476:(e,t,n)=>{var r=n(48664),o=n(71229);e.exports=function(e){return r(o(e))}},79328:(e,t,n)=>{var r=n(19830);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},33747:(e,t,n)=>{var r=n(79328),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},92612:(e,t,n)=>{var r=n(71229),o=Object;e.exports=function(e){return o(r(e))}},50874:(e,t,n)=>{var r=n(72368),o=n(65335),i=n(32328),a=n(46457),s=n(69751),l=n(31602),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,l=a(e,u);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!o(n)||i(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},86032:(e,t,n)=>{var r=n(50874),o=n(32328);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},13838:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},50665:(e,t,n)=>{var r=n(30281),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},5225:(e,t,n)=>{var r=n(82072);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},94491:(e,t,n)=>{var r=n(65077),o=n(92074);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},56589:e=>{var t=TypeError;e.exports=function(e,n){if(e<n)throw t("Not enough arguments");return e}},8369:(e,t,n)=>{var r=n(30200),o=n(78420),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},31602:(e,t,n)=>{var r=n(30200),o=n(50002),i=n(36490),a=n(50665),s=n(82072),l=n(5225),c=o("wks"),u=r.Symbol,d=u&&u.for,p=l?u:u&&u.withoutSetter||a;e.exports=function(e){if(!i(c,e)||!s&&"string"!=typeof c[e]){var t="Symbol."+e;s&&i(u,e)?c[e]=u[e]:c[e]=l&&d?d(t):p(t)}return c[e]}},61857:(e,t,n)=>{var r=n(51605),o=n(30200),i=n(74922).clear;r({global:!0,bind:!0,enumerable:!0,forced:o.clearImmediate!==i},{clearImmediate:i})},75417:(e,t,n)=>{n(61857),n(19708)},19708:(e,t,n)=>{var r=n(51605),o=n(30200),i=n(74922).set,a=n(18827),s=o.setImmediate?a(i,!1):i;r({global:!0,bind:!0,enumerable:!0,forced:o.setImmediate!==s},{setImmediate:s})},19086:e=>{"use strict";e.exports=function(e){if(e=String(e||""),r.test(e))return"rtl";if(o.test(e))return"ltr";return"neutral"};var t="֑-߿יִ-﷽ﹰ-ﻼ",n="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-",r=new RegExp("^[^"+n+"]*["+t+"]"),o=new RegExp("^[^"+t+"]*["+n+"]")},84997:(e,t,n)=>{"use strict";n.d(t,{A:()=>se});const{entries:r,setPrototypeOf:o,isFrozen:i,getPrototypeOf:a,getOwnPropertyDescriptor:s}=Object;let{freeze:l,seal:c,create:u}=Object,{apply:d,construct:p}="undefined"!=typeof Reflect&&Reflect;l||(l=function(e){return e}),c||(c=function(e){return e}),d||(d=function(e,t,n){return e.apply(t,n)}),p||(p=function(e,t){return new e(...t)});const h=P(Array.prototype.forEach),f=P(Array.prototype.lastIndexOf),m=P(Array.prototype.pop),g=P(Array.prototype.push),v=P(Array.prototype.splice),y=P(String.prototype.toLowerCase),b=P(String.prototype.toString),w=P(String.prototype.match),x=P(String.prototype.replace),S=P(String.prototype.indexOf),_=P(String.prototype.trim),C=P(Object.prototype.hasOwnProperty),E=P(RegExp.prototype.test),k=(z=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return p(z,t)});var z;function P(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return d(e,t,r)}}function A(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;o&&o(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(i(t)||(t[r]=e),o=e)}e[o]=!0}return e}function D(e){for(let t=0;t<e.length;t++){C(e,t)||(e[t]=null)}return e}function T(e){const t=u(null);for(const[n,o]of r(e)){C(e,n)&&(Array.isArray(o)?t[n]=D(o):o&&"object"==typeof o&&o.constructor===Object?t[n]=T(o):t[n]=o)}return t}function I(e,t){for(;null!==e;){const n=s(e,t);if(n){if(n.get)return P(n.get);if("function"==typeof n.value)return P(n.value)}e=a(e)}return function(){return null}}const M=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),N=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),O=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),R=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),j=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),F=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),B=l(["#text"]),L=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),V=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),K=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),H=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),$=c(/\{\{[\w\W]*|[\w\W]*\}\}/gm),U=c(/<%[\w\W]*|[\w\W]*%>/gm),W=c(/\$\{[\w\W]*/gm),q=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),G=c(/^aria-[\-\w]+$/),Z=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=c(/^(?:\w+script|data):/i),X=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J=c(/^html$/i),Q=c(/^[a-z][.\w]*(-[.\w]+)+$/i);var ee=Object.freeze({__proto__:null,ARIA_ATTR:G,ATTR_WHITESPACE:X,CUSTOM_ELEMENT:Q,DATA_ATTR:q,DOCTYPE_NAME:J,ERB_EXPR:U,IS_ALLOWED_URI:Z,IS_SCRIPT_OR_DATA:Y,MUSTACHE_EXPR:$,TMPLIT_EXPR:W});const te=1,ne=3,re=7,oe=8,ie=9,ae=function(){return"undefined"==typeof window?null:window};var se=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ae();const n=t=>e(t);if(n.version="3.2.4",n.removed=[],!t||!t.document||t.document.nodeType!==ie||!t.Element)return n.isSupported=!1,n;let{document:o}=t;const i=o,a=i.currentScript,{DocumentFragment:s,HTMLTemplateElement:c,Node:d,Element:p,NodeFilter:z,NamedNodeMap:P=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:D,DOMParser:$,trustedTypes:U}=t,W=p.prototype,q=I(W,"cloneNode"),G=I(W,"remove"),Y=I(W,"nextSibling"),X=I(W,"childNodes"),Q=I(W,"parentNode");if("function"==typeof c){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let se,le="";const{implementation:ce,createNodeIterator:ue,createDocumentFragment:de,getElementsByTagName:pe}=o,{importNode:he}=i;let fe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof r&&"function"==typeof Q&&ce&&void 0!==ce.createHTMLDocument;const{MUSTACHE_EXPR:me,ERB_EXPR:ge,TMPLIT_EXPR:ve,DATA_ATTR:ye,ARIA_ATTR:be,IS_SCRIPT_OR_DATA:we,ATTR_WHITESPACE:xe,CUSTOM_ELEMENT:Se}=ee;let{IS_ALLOWED_URI:_e}=ee,Ce=null;const Ee=A({},[...M,...N,...O,...j,...B]);let ke=null;const ze=A({},[...L,...V,...K,...H]);let Pe=Object.seal(u(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ae=null,De=null,Te=!0,Ie=!0,Me=!1,Ne=!0,Oe=!1,Re=!0,je=!1,Fe=!1,Be=!1,Le=!1,Ve=!1,Ke=!1,He=!0,$e=!1,Ue=!0,We=!1,qe={},Ge=null;const Ze=A({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ye=null;const Xe=A({},["audio","video","img","source","image","track"]);let Je=null;const Qe=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml";let rt=nt,ot=!1,it=null;const at=A({},[et,tt,nt],b);let st=A({},["mi","mo","mn","ms","mtext"]),lt=A({},["annotation-xml"]);const ct=A({},["title","style","font","a","script"]);let ut=null;const dt=["application/xhtml+xml","text/html"];let pt=null,ht=null;const ft=o.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},gt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ht||ht!==e){if(e&&"object"==typeof e||(e={}),e=T(e),ut=-1===dt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,pt="application/xhtml+xml"===ut?b:y,Ce=C(e,"ALLOWED_TAGS")?A({},e.ALLOWED_TAGS,pt):Ee,ke=C(e,"ALLOWED_ATTR")?A({},e.ALLOWED_ATTR,pt):ze,it=C(e,"ALLOWED_NAMESPACES")?A({},e.ALLOWED_NAMESPACES,b):at,Je=C(e,"ADD_URI_SAFE_ATTR")?A(T(Qe),e.ADD_URI_SAFE_ATTR,pt):Qe,Ye=C(e,"ADD_DATA_URI_TAGS")?A(T(Xe),e.ADD_DATA_URI_TAGS,pt):Xe,Ge=C(e,"FORBID_CONTENTS")?A({},e.FORBID_CONTENTS,pt):Ze,Ae=C(e,"FORBID_TAGS")?A({},e.FORBID_TAGS,pt):{},De=C(e,"FORBID_ATTR")?A({},e.FORBID_ATTR,pt):{},qe=!!C(e,"USE_PROFILES")&&e.USE_PROFILES,Te=!1!==e.ALLOW_ARIA_ATTR,Ie=!1!==e.ALLOW_DATA_ATTR,Me=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Oe=e.SAFE_FOR_TEMPLATES||!1,Re=!1!==e.SAFE_FOR_XML,je=e.WHOLE_DOCUMENT||!1,Le=e.RETURN_DOM||!1,Ve=e.RETURN_DOM_FRAGMENT||!1,Ke=e.RETURN_TRUSTED_TYPE||!1,Be=e.FORCE_BODY||!1,He=!1!==e.SANITIZE_DOM,$e=e.SANITIZE_NAMED_PROPS||!1,Ue=!1!==e.KEEP_CONTENT,We=e.IN_PLACE||!1,_e=e.ALLOWED_URI_REGEXP||Z,rt=e.NAMESPACE||nt,st=e.MATHML_TEXT_INTEGRATION_POINTS||st,lt=e.HTML_INTEGRATION_POINTS||lt,Pe=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Pe.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Pe.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Pe.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Oe&&(Ie=!1),Ve&&(Le=!0),qe&&(Ce=A({},B),ke=[],!0===qe.html&&(A(Ce,M),A(ke,L)),!0===qe.svg&&(A(Ce,N),A(ke,V),A(ke,H)),!0===qe.svgFilters&&(A(Ce,O),A(ke,V),A(ke,H)),!0===qe.mathMl&&(A(Ce,j),A(ke,K),A(ke,H))),e.ADD_TAGS&&(Ce===Ee&&(Ce=T(Ce)),A(Ce,e.ADD_TAGS,pt)),e.ADD_ATTR&&(ke===ze&&(ke=T(ke)),A(ke,e.ADD_ATTR,pt)),e.ADD_URI_SAFE_ATTR&&A(Je,e.ADD_URI_SAFE_ATTR,pt),e.FORBID_CONTENTS&&(Ge===Ze&&(Ge=T(Ge)),A(Ge,e.FORBID_CONTENTS,pt)),Ue&&(Ce["#text"]=!0),je&&A(Ce,["html","head","body"]),Ce.table&&(A(Ce,["tbody"]),delete Ae.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');se=e.TRUSTED_TYPES_POLICY,le=se.createHTML("")}else void 0===se&&(se=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(U,a)),null!==se&&"string"==typeof le&&(le=se.createHTML(""));l&&l(e),ht=e}},vt=A({},[...N,...O,...R]),yt=A({},[...j,...F]),bt=function(e){g(n.removed,{element:e});try{Q(e).removeChild(e)}catch(t){G(e)}},wt=function(e,t){try{g(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Le||Ve)try{bt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},xt=function(e){let t=null,n=null;if(Be)e="<remove></remove>"+e;else{const t=w(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ut&&rt===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=se?se.createHTML(e):e;if(rt===nt)try{t=(new $).parseFromString(r,ut)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(rt,"template",null);try{t.documentElement.innerHTML=ot?le:r}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),rt===nt?pe.call(t,je?"html":"body")[0]:je?t.documentElement:i},St=function(e){return ue.call(e.ownerDocument||e,e,z.SHOW_ELEMENT|z.SHOW_COMMENT|z.SHOW_TEXT|z.SHOW_PROCESSING_INSTRUCTION|z.SHOW_CDATA_SECTION,null)},_t=function(e){return e instanceof D&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof P)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Ct=function(e){return"function"==typeof d&&e instanceof d};function Et(e,t,r){h(e,(e=>{e.call(n,t,r,ht)}))}const kt=function(e){let t=null;if(Et(fe.beforeSanitizeElements,e,null),_t(e))return bt(e),!0;const r=pt(e.nodeName);if(Et(fe.uponSanitizeElement,e,{tagName:r,allowedTags:Ce}),e.hasChildNodes()&&!Ct(e.firstElementChild)&&E(/<[/\w]/g,e.innerHTML)&&E(/<[/\w]/g,e.textContent))return bt(e),!0;if(e.nodeType===re)return bt(e),!0;if(Re&&e.nodeType===oe&&E(/<[/\w]/g,e.data))return bt(e),!0;if(!Ce[r]||Ae[r]){if(!Ae[r]&&Pt(r)){if(Pe.tagNameCheck instanceof RegExp&&E(Pe.tagNameCheck,r))return!1;if(Pe.tagNameCheck instanceof Function&&Pe.tagNameCheck(r))return!1}if(Ue&&!Ge[r]){const t=Q(e)||e.parentNode,n=X(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const o=q(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,Y(e))}}}return bt(e),!0}return e instanceof p&&!function(e){let t=Q(e);t&&t.tagName||(t={namespaceURI:rt,tagName:"template"});const n=y(e.tagName),r=y(t.tagName);return!!it[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===r||st[r]):Boolean(vt[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&lt[r]:Boolean(yt[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!lt[r])&&!(t.namespaceURI===et&&!st[r])&&!yt[n]&&(ct[n]||!vt[n]):!("application/xhtml+xml"!==ut||!it[e.namespaceURI]))}(e)?(bt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!E(/<\/no(script|embed|frames)/i,e.innerHTML)?(Oe&&e.nodeType===ne&&(t=e.textContent,h([me,ge,ve],(e=>{t=x(t,e," ")})),e.textContent!==t&&(g(n.removed,{element:e.cloneNode()}),e.textContent=t)),Et(fe.afterSanitizeElements,e,null),!1):(bt(e),!0)},zt=function(e,t,n){if(He&&("id"===t||"name"===t)&&(n in o||n in ft))return!1;if(Ie&&!De[t]&&E(ye,t));else if(Te&&E(be,t));else if(!ke[t]||De[t]){if(!(Pt(e)&&(Pe.tagNameCheck instanceof RegExp&&E(Pe.tagNameCheck,e)||Pe.tagNameCheck instanceof Function&&Pe.tagNameCheck(e))&&(Pe.attributeNameCheck instanceof RegExp&&E(Pe.attributeNameCheck,t)||Pe.attributeNameCheck instanceof Function&&Pe.attributeNameCheck(t))||"is"===t&&Pe.allowCustomizedBuiltInElements&&(Pe.tagNameCheck instanceof RegExp&&E(Pe.tagNameCheck,n)||Pe.tagNameCheck instanceof Function&&Pe.tagNameCheck(n))))return!1}else if(Je[t]);else if(E(_e,x(n,xe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==S(n,"data:")||!Ye[e]){if(Me&&!E(we,x(n,xe,"")));else if(n)return!1}else;return!0},Pt=function(e){return"annotation-xml"!==e&&w(e,Se)},At=function(e){Et(fe.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||_t(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke,forceKeepAttr:void 0};let o=t.length;for(;o--;){const i=t[o],{name:a,namespaceURI:s,value:l}=i,c=pt(a);let u="value"===a?l:_(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,Et(fe.uponSanitizeAttribute,e,r),u=r.attrValue,!$e||"id"!==c&&"name"!==c||(wt(a,e),u="user-content-"+u),Re&&E(/((--!?|])>)|<\/(style|title)/i,u)){wt(a,e);continue}if(r.forceKeepAttr)continue;if(wt(a,e),!r.keepAttr)continue;if(!Ne&&E(/\/>/i,u)){wt(a,e);continue}Oe&&h([me,ge,ve],(e=>{u=x(u,e," ")}));const d=pt(e.nodeName);if(zt(d,c,u)){if(se&&"object"==typeof U&&"function"==typeof U.getAttributeType)if(s);else switch(U.getAttributeType(d,c)){case"TrustedHTML":u=se.createHTML(u);break;case"TrustedScriptURL":u=se.createScriptURL(u)}try{s?e.setAttributeNS(s,a,u):e.setAttribute(a,u),_t(e)?bt(e):m(n.removed)}catch(e){}}}Et(fe.afterSanitizeAttributes,e,null)},Dt=function e(t){let n=null;const r=St(t);for(Et(fe.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Et(fe.uponSanitizeShadowNode,n,null),kt(n),At(n),n.content instanceof s&&e(n.content);Et(fe.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,a=null,l=null;if(ot=!e,ot&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Ct(e)){if("function"!=typeof e.toString)throw k("toString is not a function");if("string"!=typeof(e=e.toString()))throw k("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Fe||gt(t),n.removed=[],"string"==typeof e&&(We=!1),We){if(e.nodeName){const t=pt(e.nodeName);if(!Ce[t]||Ae[t])throw k("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof d)r=xt("\x3c!----\x3e"),o=r.ownerDocument.importNode(e,!0),o.nodeType===te&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!Le&&!Oe&&!je&&-1===e.indexOf("<"))return se&&Ke?se.createHTML(e):e;if(r=xt(e),!r)return Le?null:Ke?le:""}r&&Be&&bt(r.firstChild);const c=St(We?e:r);for(;a=c.nextNode();)kt(a),At(a),a.content instanceof s&&Dt(a.content);if(We)return e;if(Le){if(Ve)for(l=de.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(ke.shadowroot||ke.shadowrootmode)&&(l=he.call(i,l,!0)),l}let u=je?r.outerHTML:r.innerHTML;return je&&Ce["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&E(J,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),Oe&&h([me,ge,ve],(e=>{u=x(u,e," ")})),se&&Ke?se.createHTML(u):u},n.setConfig=function(){gt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Fe=!0},n.clearConfig=function(){ht=null,Fe=!1},n.isValidAttribute=function(e,t,n){ht||gt({});const r=pt(e),o=pt(t);return zt(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&g(fe[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=f(fe[e],t);return-1===n?void 0:v(fe[e],n,1)[0]}return m(fe[e])},n.removeHooks=function(e){fe[e]=[]},n.removeAllHooks=function(){fe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}()},75453:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}n.d(t,{Ay:()=>W,WM:()=>qe});var s=n(5556),l=n.n(s),c=n(96540);n(44353);function u(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function d(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function p(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return d(n.overflowY,t)||d(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function h(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}var f=function(){return f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},f.apply(this,arguments)};Object.create;Object.create;var m=0;function g(e){return"function"==typeof e?e:v}function v(){}function y(e,t){if(e){var n=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!u(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,d=[],f=e;u(f)&&l(f);){if((f=f.parentElement)===c){d.push(f);break}null!=f&&f===document.body&&p(f)&&!p(document.documentElement)||null!=f&&p(f,s)&&d.push(f)}for(var m=n.visualViewport?n.visualViewport.width:innerWidth,g=n.visualViewport?n.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),w=b.height,x=b.width,S=b.top,_=b.right,C=b.bottom,E=b.left,k="start"===o||"nearest"===o?S:"end"===o?C:S+w/2,z="center"===i?E+x/2:"end"===i?_:E,P=[],A=0;A<d.length;A++){var D=d[A],T=D.getBoundingClientRect(),I=T.height,M=T.width,N=T.top,O=T.right,R=T.bottom,j=T.left;if("if-needed"===r&&S>=0&&E>=0&&C<=g&&_<=m&&S>=N&&C<=R&&E>=j&&_<=O)return P;var F=getComputedStyle(D),B=parseInt(F.borderLeftWidth,10),L=parseInt(F.borderTopWidth,10),V=parseInt(F.borderRightWidth,10),K=parseInt(F.borderBottomWidth,10),H=0,$=0,U="offsetWidth"in D?D.offsetWidth-D.clientWidth-B-V:0,W="offsetHeight"in D?D.offsetHeight-D.clientHeight-L-K:0;if(c===D)H="start"===o?k:"end"===o?k-g:"nearest"===o?h(y,y+g,g,L,K,y+k,y+k+w,w):k-g/2,$="start"===i?z:"center"===i?z-m/2:"end"===i?z-m:h(v,v+m,m,B,V,v+z,v+z+x,x),H=Math.max(0,H+y),$=Math.max(0,$+v);else{H="start"===o?k-N-L:"end"===o?k-R+K+W:"nearest"===o?h(N,R,I,L,K+W,k,k+w,w):k-(N+I/2)+W/2,$="start"===i?z-j-B:"center"===i?z-(j+M/2)+U/2:"end"===i?z-O+V+U:h(j,O,M,B,V+U,z,z+x,x);var q=D.scrollLeft,G=D.scrollTop;k+=G-(H=Math.max(0,Math.min(G+H,D.scrollHeight-I+W))),z+=q-($=Math.max(0,Math.min(q+$,D.scrollWidth-M+U)))}P.push({el:D,top:H,left:$})}return P}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}}function b(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function w(e,t){var n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r(),n=setTimeout((function(){n=null,e.apply(void 0,i)}),t)}return o.cancel=r,o}function x(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function S(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"==typeof t?t(e):t&&(t.current=e)}))}}function _(){return String(m++)}function C(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function E(e,t){return!(e=Array.isArray(e)?e[0]:e)&&t?t:e}function k(e){return"string"==typeof e.type}function z(e){return e.props}var P=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function A(e){void 0===e&&(e={});var t={};return P.forEach((function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}function D(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=T(t,r)?t[r]:e[r],n}),{})}function T(e,t){return void 0!==e[t]}function I(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function M(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;var i=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:i+1);var a=t+e;a<0?a=o?i:0:a>i&&(a=o?0:i);var s=N(e,a,n,r,o);return-1===s?t>=n?-1:t:s}function N(e,t,n,r,o){var i=r(t);if(!i||!i.hasAttribute("disabled"))return t;if(e>0){for(var a=t+1;a<n;a++)if(!r(a).hasAttribute("disabled"))return a}else for(var s=t-1;s>=0;s--)if(!r(s).hasAttribute("disabled"))return s;return o?e>0?N(1,0,n,r,!1):N(-1,n-1,n,r,!1):-1}function O(e,t,n,r){return void 0===r&&(r=!0),t.some((function(t){return t&&(b(t,e,n)||r&&b(t,n.document.activeElement,n))}))}var R=w((function(e){F(e).textContent=""}),500);function j(e,t){var n=F(t);e&&(n.textContent=e,R(t))}function F(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var B=Object.freeze({__proto__:null,unknown:0,mouseUp:1,itemMouseEnter:2,keyDownArrowUp:3,keyDownArrowDown:4,keyDownEscape:5,keyDownEnter:6,keyDownHome:7,keyDownEnd:8,clickItem:9,blurInput:10,changeInput:11,keyDownSpaceButton:12,clickButton:13,blurButton:14,controlledPropUpdatedSelectedItem:15,touchEnd:16}),L=["refKey","ref"],V=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],K=["onKeyDown","onBlur","onChange","onInput","onChangeText"],H=["refKey","ref"],$=["onMouseMove","onMouseDown","onClick","onPress","index","item"],U=function(){var e=function(e){var t,n;function s(t){var n;(n=e.call(this,t)||this).id=n.props.id||"downshift-"+_(),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e},n.input=null,n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var r=setTimeout((function(){n.timeoutIds=n.timeoutIds.filter((function(e){return e!==r})),e()}),t);n.timeoutIds.push(r)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.setHighlightedIndex=function(e,t){void 0===e&&(e=n.props.defaultHighlightedIndex),void 0===t&&(t={}),t=A(t),n.internalSetState(o({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,r){t=A(t),n.internalSetState(o({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),r)},n.selectItemAtIndex=function(e,t,r){var o=n.items[e];null!=o&&n.selectItem(o,t,r)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var r,i,a={},s="function"==typeof e;return!s&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,o({},n.getStateAndHelpers(),e)),n.setState((function(t){t=n.getState(t);var l=s?e(t):e;l=n.props.stateReducer(t,l),r=l.hasOwnProperty("selectedItem");var c={},u={};return r&&l.selectedItem!==t.selectedItem&&(i=l.selectedItem),l.type=l.type||0,Object.keys(l).forEach((function(e){t[e]!==l[e]&&(a[e]=l[e]),"type"!==e&&(u[e]=l[e],T(n.props,e)||(c[e]=l[e]))})),s&&l.hasOwnProperty("inputValue")&&n.props.onInputValueChange(l.inputValue,o({},n.getStateAndHelpers(),l)),c}),(function(){g(t)(),Object.keys(a).length>1&&n.props.onStateChange(a,n.getStateAndHelpers()),r&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==i&&n.props.onChange(i,n.getStateAndHelpers()),n.props.onUserAction(a,n.getStateAndHelpers())}))},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var i,a=void 0===e?{}:e,s=a.refKey,l=void 0===s?"ref":s,c=a.ref,u=r(a,L),d=(void 0===t?{}:t).suppressRefError,p=void 0!==d&&d;n.getRootProps.called=!0,n.getRootProps.refKey=l,n.getRootProps.suppressRefError=p;var h=n.getState().isOpen;return o(((i={})[l]=S(c,n.rootRef),i.role="combobox",i["aria-expanded"]=h,i["aria-haspopup"]="listbox",i["aria-owns"]=h?n.menuId:null,i["aria-labelledby"]=n.labelId,i),u)},n.keyDownHandlers={ArrowDown:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?5:1;this.moveHighlightedIndex(n,{type:4})}else this.internalSetState({isOpen:!0,type:4},(function(){var e=t.getItemCount();if(e>0){var n=M(1,t.getState().highlightedIndex,e,(function(e){return t.getItemNodeFromIndex(e)}));t.setHighlightedIndex(n,{type:4})}}))},ArrowUp:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?-5:-1;this.moveHighlightedIndex(n,{type:3})}else this.internalSetState({isOpen:!0,type:3},(function(){var e=t.getItemCount();if(e>0){var n=M(-1,t.getState().highlightedIndex,e,(function(e){return t.getItemNodeFromIndex(e)}));t.setHighlightedIndex(n,{type:3})}}))},Enter:function(e){if(229!==e.which){var t=this.getState(),n=t.isOpen,r=t.highlightedIndex;if(n&&null!=r){e.preventDefault();var o=this.items[r],i=this.getItemNodeFromIndex(r);if(null==o||i&&i.hasAttribute("disabled"))return;this.selectHighlightedItem({type:6})}}},Escape:function(e){e.preventDefault(),this.reset(o({type:5},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},n.buttonKeyDownHandlers=o({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:12})}}),n.inputKeyDownHandlers=o({},n.keyDownHandlers,{Home:function(e){var t=this,n=this.getState().isOpen;if(n){e.preventDefault();var r=this.getItemCount();if(!(r<=0)&&n){var o=N(1,0,r,(function(e){return t.getItemNodeFromIndex(e)}),!1);this.setHighlightedIndex(o,{type:7})}}},End:function(e){var t=this,n=this.getState().isOpen;if(n){e.preventDefault();var r=this.getItemCount();if(!(r<=0)&&n){var o=N(-1,r-1,r,(function(e){return t.getItemNodeFromIndex(e)}),!1);this.setHighlightedIndex(o,{type:8})}}}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,i=t.onClick;t.onPress;var a=t.onKeyDown,s=t.onKeyUp,l=t.onBlur,c=r(t,V),u=n.getState().isOpen,d={onClick:x(i,n.buttonHandleClick),onKeyDown:x(a,n.buttonHandleKeyDown),onKeyUp:x(s,n.buttonHandleKeyUp),onBlur:x(l,n.buttonHandleBlur)};return o({type:"button",role:"button","aria-label":u?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},c.disabled?{}:d,c)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=I(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call(i(n),e)},n.buttonHandleClick=function(e){e.preventDefault(),n.props.environment.document.activeElement===n.props.environment.document.body&&e.target.focus(),n.internalSetTimeout((function(){return n.toggleMenu({type:13})}))},n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout((function(){n.isMouseDown||null!=n.props.environment.document.activeElement&&n.props.environment.document.activeElement.id===n.inputId||n.props.environment.document.activeElement===t||n.reset({type:14})}))},n.getLabelProps=function(e){return o({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t=void 0===e?{}:e,i=t.onKeyDown,a=t.onBlur,s=t.onChange,l=t.onInput;t.onChangeText;var c=r(t,K),u={};var d,p=n.getState(),h=p.inputValue,f=p.isOpen,m=p.highlightedIndex;c.disabled||((d={}).onChange=x(s,l,n.inputHandleChange),d.onKeyDown=x(i,n.inputHandleKeyDown),d.onBlur=x(a,n.inputHandleBlur),u=d);return o({"aria-autocomplete":"list","aria-activedescendant":f&&"number"==typeof m&&m>=0?n.getItemId(m):null,"aria-controls":f?n.menuId:null,"aria-labelledby":n.labelId,autoComplete:"off",value:h,id:n.inputId},u,c)},n.inputHandleKeyDown=function(e){var t=I(e);t&&n.inputKeyDownHandlers[t]&&n.inputKeyDownHandlers[t].call(i(n),e)},n.inputHandleChange=function(e){n.internalSetState({type:11,isOpen:!0,inputValue:e.target.value,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleBlur=function(){n.internalSetTimeout((function(){var e=n.props.environment.document&&!!n.props.environment.document.activeElement&&!!n.props.environment.document.activeElement.dataset&&n.props.environment.document.activeElement.dataset.toggle&&n._rootNode&&n._rootNode.contains(n.props.environment.document.activeElement);n.isMouseDown||e||n.reset({type:10})}))},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var i,a=void 0===e?{}:e,s=a.refKey,l=void 0===s?"ref":s,c=a.ref,u=r(a,H),d=(void 0===t?{}:t).suppressRefError,p=void 0!==d&&d;return n.getMenuProps.called=!0,n.getMenuProps.refKey=l,n.getMenuProps.suppressRefError=p,o(((i={})[l]=S(c,n.menuRef),i.role="listbox",i["aria-labelledby"]=u&&u["aria-label"]?null:n.labelId,i.id=n.menuId,i),u)},n.getItemProps=function(e){var t,i=void 0===e?{}:e,a=i.onMouseMove,s=i.onMouseDown,l=i.onClick;i.onPress;var c=i.index,u=i.item,d=void 0===u?void 0:u,p=r(i,$);void 0===c?(n.items.push(d),c=n.items.indexOf(d)):n.items[c]=d;var h=l,f=((t={onMouseMove:x(a,(function(){c!==n.getState().highlightedIndex&&(n.setHighlightedIndex(c,{type:2}),n.avoidScrolling=!0,n.internalSetTimeout((function(){return n.avoidScrolling=!1}),250))})),onMouseDown:x(s,(function(e){e.preventDefault()}))}).onClick=x(h,(function(){n.selectItemAtIndex(c,{type:9})})),t),m=p.disabled?{onMouseDown:f.onMouseDown}:f;return o({id:n.getItemId(c),role:"option","aria-selected":n.getState().highlightedIndex===c},m,p)},n.clearItems=function(){n.items=[]},n.reset=function(e,t){void 0===e&&(e={}),e=A(e),n.internalSetState((function(t){var r=t.selectedItem;return o({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(r)},e)}),t)},n.toggleMenu=function(e,t){void 0===e&&(e={}),e=A(e),n.internalSetState((function(t){var r=t.isOpen;return o({isOpen:!r},r&&{highlightedIndex:n.props.defaultHighlightedIndex},e)}),(function(){var r=n.getState(),o=r.isOpen,i=r.highlightedIndex;o&&n.getItemCount()>0&&"number"==typeof i&&n.setHighlightedIndex(i,e),g(t)()}))},n.openMenu=function(e){n.internalSetState({isOpen:!0},e)},n.closeMenu=function(e){n.internalSetState({isOpen:!1},e)},n.updateStatus=w((function(){var e=n.getState(),t=n.items[e.highlightedIndex],r=n.getItemCount(),i=n.props.getA11yStatusMessage(o({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:r,highlightedItem:t},e));n.previousResultCount=r,j(i,n.props.environment.document)}),200);var a=n.props,s=a.defaultHighlightedIndex,l=a.initialHighlightedIndex,c=void 0===l?s:l,u=a.defaultIsOpen,d=a.initialIsOpen,p=void 0===d?u:d,h=a.initialInputValue,f=void 0===h?"":h,m=a.initialSelectedItem,v=void 0===m?null:m,y=n.getState({highlightedIndex:c,isOpen:p,inputValue:f,selectedItem:v});return null!=y.selectedItem&&void 0===n.props.initialInputValue&&(y.inputValue=n.props.itemToString(y.selectedItem)),n.state=y,n}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,a(t,n);var l=s.prototype;return l.internalClearTimeouts=function(){this.timeoutIds.forEach((function(e){clearTimeout(e)})),this.timeoutIds=[]},l.getState=function(e){return void 0===e&&(e=this.state),D(e,this.props)},l.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},l.getItemNodeFromIndex=function(e){return this.props.environment.document.getElementById(this.getItemId(e))},l.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)},l.moveHighlightedIndex=function(e,t){var n=this,r=this.getItemCount(),o=this.getState().highlightedIndex;if(r>0){var i=M(e,o,r,(function(e){return n.getItemNodeFromIndex(e)}));this.setHighlightedIndex(i,t)}},l.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,r=e.selectedItem,o=e.isOpen,i=this.props.itemToString,a=this.id,s=this.getRootProps,l=this.getToggleButtonProps,c=this.getLabelProps,u=this.getMenuProps,d=this.getInputProps,p=this.getItemProps,h=this.openMenu,f=this.closeMenu,m=this.toggleMenu,g=this.selectItem,v=this.selectItemAtIndex,y=this.selectHighlightedItem,b=this.setHighlightedIndex,w=this.clearSelection,x=this.clearItems;return{getRootProps:s,getToggleButtonProps:l,getLabelProps:c,getMenuProps:u,getInputProps:d,getItemProps:p,reset:this.reset,openMenu:h,closeMenu:f,toggleMenu:m,selectItem:g,selectItemAtIndex:v,selectHighlightedItem:y,setHighlightedIndex:b,clearSelection:w,clearItems:x,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:i,id:a,highlightedIndex:t,inputValue:n,isOpen:o,selectedItem:r}},l.componentDidMount=function(){var e=this;var t=function(){e.isMouseDown=!0},n=function(t){e.isMouseDown=!1,!O(t.target,[e._rootNode,e._menuNode],e.props.environment)&&e.getState().isOpen&&e.reset({type:1},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},r=function(){e.isTouchMove=!1},o=function(){e.isTouchMove=!0},i=function(t){var n=O(t.target,[e._rootNode,e._menuNode],e.props.environment,!1);e.isTouchMove||n||!e.getState().isOpen||e.reset({type:16},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},a=this.props.environment;a.addEventListener("mousedown",t),a.addEventListener("mouseup",n),a.addEventListener("touchstart",r),a.addEventListener("touchmove",o),a.addEventListener("touchend",i),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),a.removeEventListener("mousedown",t),a.removeEventListener("mouseup",n),a.removeEventListener("touchstart",r),a.removeEventListener("touchmove",o),a.removeEventListener("touchend",i)}},l.shouldScroll=function(e,t){var n=(void 0===this.props.highlightedIndex?this.getState():this.props).highlightedIndex,r=(void 0===t.highlightedIndex?e:t).highlightedIndex;return n&&this.getState().isOpen&&!e.isOpen||n!==r},l.componentDidUpdate=function(e,t){T(this.props,"selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:15,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},l.componentWillUnmount=function(){this.cleanup()},l.render=function(){var e=E(this.props.children,v);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=E(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:k(t)?(0,c.cloneElement)(t,this.getRootProps(z(t))):void 0:null},s}(c.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:C,itemToString:function(e){return null==e?"":String(e)},onStateChange:v,onInputValueChange:v,onUserAction:v,onChange:v,onSelect:v,onOuterClick:v,selectedItemChanged:function(e,t){return e!==t},environment:"undefined"==typeof window?{}:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:y},e.stateChangeTypes=B,e}(),W=U;var q=["isInitialMount","highlightedIndex","items","environment"],G={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Z(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach((function(r){!function(e,t,n,r){var i=t.props,a=t.type,s="on"+te(e)+"Change";i[s]&&void 0!==r[e]&&r[e]!==n[e]&&i[s](o({type:a},r))}(r,e,t,n),n[r]!==t[r]&&(a[r]=n[r])})),r.onStateChange&&Object.keys(a).length&&r.onStateChange(o({type:i},a))}var Y=w((function(e,t){j(e(),t)}),200),X="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?c.useLayoutEffect:c.useEffect;function J(e){var t=e.id,n=void 0===t?"downshift-"+_():t,r=e.labelId,o=e.menuId,i=e.getItemId,a=e.toggleButtonId,s=e.inputId;return(0,c.useRef)({labelId:r||n+"-label",menuId:o||n+"-menu",getItemId:i||function(e){return n+"-item-"+e},toggleButtonId:a||n+"-toggle-button",inputId:s||n+"-input"}).current}function Q(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function ee(e){return/^\S{1}$/.test(e)}function te(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function ne(e){var t=(0,c.useRef)(e);return t.current=e,t}function re(e,t,n){var r=(0,c.useRef)(),i=(0,c.useRef)(),a=(0,c.useCallback)((function(t,n){i.current=n,t=D(t,n.props);var r=e(t,n);return n.props.stateReducer(t,o({},n,{changes:r}))}),[e]),s=(0,c.useReducer)(a,t),l=s[0],u=s[1],d=ne(n),p=(0,c.useCallback)((function(e){return u(o({props:d.current},e))}),[d]),h=i.current;return(0,c.useEffect)((function(){h&&r.current&&r.current!==l&&Z(h,D(r.current,h.props),l),r.current=l}),[l,n,h]),[l,p]}function oe(e,t,n){var r=re(e,t,n),o=r[0],i=r[1];return[D(o,n),i]}var ie={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:y,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function ae(e,t,n){void 0===n&&(n=G);var r="default"+te(t);return r in e?e[r]:n[t]}function se(e,t,n){if(void 0===n&&(n=G),t in e)return e[t];var r="initial"+te(t);return r in e?e[r]:ae(e,t,n)}function le(e){var t=se(e,"selectedItem"),n=se(e,"isOpen"),r=se(e,"highlightedIndex"),o=se(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function ce(e,t,n,r){var o=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,s=t.selectedItem,l=t.highlightedIndex;return 0===o.length?-1:void 0!==i&&l===i?i:void 0!==a?a:s?0===n?o.indexOf(s):M(n,o.indexOf(s),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function ue(e,t,n,r){var o=(0,c.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,c.useEffect)((function(){var i=function(){o.current.isMouseDown=!0},a=function(i){o.current.isMouseDown=!1,e&&!O(i.target,t.map((function(e){return e.current})),n)&&r()},s=function(){o.current.isTouchMove=!1},l=function(){o.current.isTouchMove=!0},c=function(i){!e||o.current.isTouchMove||O(i.target,t.map((function(e){return e.current})),n,!1)||r()};return n.addEventListener("mousedown",i),n.addEventListener("mouseup",a),n.addEventListener("touchstart",s),n.addEventListener("touchmove",l),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",i),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",l),n.removeEventListener("touchend",c)}}),[e,n]),o}var de=function(){return v};function pe(e,t,n){var i=n.isInitialMount,a=n.highlightedIndex,s=n.items,l=n.environment,u=r(n,q);(0,c.useEffect)((function(){i||Y((function(){return e(o({highlightedIndex:a,highlightedItem:s[a],resultCount:s.length},u))}),l.document)}),t)}function he(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,o=e.getItemNodeFromIndex,i=e.menuElement,a=e.scrollIntoView,s=(0,c.useRef)(!0);return X((function(){t<0||!n||!Object.keys(r.current).length||(!1===s.current?s.current=!0:a(o(t),i))}),[t]),s}var fe=v;function me(e,t,n){var r,i=t.type,a=t.props;switch(i){case n.ItemMouseMove:r={highlightedIndex:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:ce(a,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:ce(a,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:ae(a,"highlightedIndex"),isOpen:ae(a,"isOpen"),selectedItem:ae(a,"selectedItem"),inputValue:ae(a,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return o({},e,r)}function ge(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,o=e.itemToString,i=e.getItemNodeFromIndex,a=t.toLowerCase(),s=0;s<r.length;s++){var l=(s+n+1)%r.length,c=r[l];if(void 0!==c&&o(c).toLowerCase().startsWith(a)){var u=i(l);if(!(null==u?void 0:u.hasAttribute("disabled")))return l}}return n}l().array.isRequired,l().func,l().func,l().func,l().bool,l().number,l().number,l().number,l().bool,l().bool,l().bool,l().any,l().any,l().any,l().string,l().string,l().string,l().func,l().string,l().func,l().func,l().func,l().func,l().func,l().shape({addEventListener:l().func,removeEventListener:l().func,document:l().shape({getElementById:l().func,activeElement:l().any,body:l().any})});var ve=f(f({},ie),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.":"":"No results are available.":""}}),ye=v;var be=0,we=1,xe=2,Se=3,_e=4,Ce=5,Ee=6,ke=7,ze=8,Pe=9,Ae=10,De=11,Te=12,Ie=13,Me=14,Ne=15,Oe=16,Re=17,je=18,Fe=19,Be=20,Le=21,Ve=22,Ke=Object.freeze({__proto__:null,MenuKeyDownArrowDown:be,MenuKeyDownArrowUp:we,MenuKeyDownEscape:xe,MenuKeyDownHome:Se,MenuKeyDownEnd:_e,MenuKeyDownEnter:Ce,MenuKeyDownSpaceButton:Ee,MenuKeyDownCharacter:ke,MenuBlur:ze,MenuMouseLeave:Pe,ItemMouseMove:Ae,ItemClick:De,ToggleButtonClick:Te,ToggleButtonKeyDownArrowDown:Ie,ToggleButtonKeyDownArrowUp:Me,ToggleButtonKeyDownCharacter:Ne,FunctionToggleMenu:Oe,FunctionOpenMenu:Re,FunctionCloseMenu:je,FunctionSetHighlightedIndex:Fe,FunctionSelectItem:Be,FunctionSetInputValue:Le,FunctionReset:Ve});function He(e,t){var n,r=t.type,i=t.props,a=t.shiftKey;switch(r){case De:n={isOpen:ae(i,"isOpen"),highlightedIndex:ae(i,"highlightedIndex"),selectedItem:i.items[t.index]};break;case Ne:var s=t.key,l=""+e.inputValue+s,c=ge({keysSoFar:l,highlightedIndex:e.selectedItem?i.items.indexOf(e.selectedItem):-1,items:i.items,itemToString:i.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=o({inputValue:l},c>=0&&{selectedItem:i.items[c]});break;case Ie:n={highlightedIndex:ce(i,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case Me:n={highlightedIndex:ce(i,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case Ce:case Ee:n=o({isOpen:ae(i,"isOpen"),highlightedIndex:ae(i,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex]});break;case Se:n={highlightedIndex:N(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case _e:n={highlightedIndex:N(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case xe:case ze:n={isOpen:!1,highlightedIndex:-1};break;case ke:var u=t.key,d=""+e.inputValue+u,p=ge({keysSoFar:d,highlightedIndex:e.highlightedIndex,items:i.items,itemToString:i.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});n=o({inputValue:d},p>=0&&{highlightedIndex:p});break;case be:n={highlightedIndex:M(a?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case we:n={highlightedIndex:M(a?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case Be:n={selectedItem:t.selectedItem};break;default:return me(e,t,Ke)}return o({},e,n)}var $e=["onMouseLeave","refKey","onKeyDown","onBlur","ref"],Ue=["onClick","onKeyDown","refKey","ref"],We=["item","index","onMouseMove","onClick","refKey","ref"];function qe(e){void 0===e&&(e={}),ye(e,qe);var t=o({},ve,e),n=t.items,i=t.scrollIntoView,a=t.environment,s=t.initialIsOpen,l=t.defaultIsOpen,u=t.itemToString,d=t.getA11ySelectionMessage,p=t.getA11yStatusMessage,h=oe(He,le(t),t),f=h[0],m=h[1],g=f.isOpen,v=f.highlightedIndex,y=f.selectedItem,b=f.inputValue,_=(0,c.useRef)(null),C=(0,c.useRef)(null),E=(0,c.useRef)({}),k=(0,c.useRef)(!0),z=(0,c.useRef)(null),P=J(t),A=(0,c.useRef)(),D=(0,c.useRef)(!0),T=ne({state:f,props:t}),M=(0,c.useCallback)((function(e){return E.current[P.getItemId(e)]}),[P]);pe(p,[g,v,b,n],o({isInitialMount:D.current,previousResultCount:A.current,items:n,environment:a,itemToString:u},f)),pe(d,[y],o({isInitialMount:D.current,previousResultCount:A.current,items:n,environment:a,itemToString:u},f));var N=he({menuElement:C.current,highlightedIndex:v,isOpen:g,itemRefs:E,scrollIntoView:i,getItemNodeFromIndex:M});(0,c.useEffect)((function(){return z.current=w((function(e){e({type:Le,inputValue:""})}),500),function(){z.current.cancel()}}),[]),(0,c.useEffect)((function(){b&&z.current(m)}),[m,b]),fe({isInitialMount:D.current,props:t,state:f}),(0,c.useEffect)((function(){D.current?(s||l||g)&&C.current&&C.current.focus():g?C.current&&C.current.focus():a.document.activeElement===C.current&&_.current&&(k.current=!1,_.current.focus())}),[g]),(0,c.useEffect)((function(){D.current||(A.current=n.length)}));var O=ue(g,[C,_],a,(function(){m({type:ze})})),R=de("getMenuProps","getToggleButtonProps");(0,c.useEffect)((function(){D.current=!1}),[]),(0,c.useEffect)((function(){g||(E.current={})}),[g]);var j=(0,c.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),m({type:Ie,getItemNodeFromIndex:M,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),m({type:Me,getItemNodeFromIndex:M,shiftKey:e.shiftKey})}}}),[m,M]),F=(0,c.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),m({type:be,getItemNodeFromIndex:M,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),m({type:we,getItemNodeFromIndex:M,shiftKey:e.shiftKey})},Home:function(e){e.preventDefault(),m({type:Se,getItemNodeFromIndex:M})},End:function(e){e.preventDefault(),m({type:_e,getItemNodeFromIndex:M})},Escape:function(){m({type:xe})},Enter:function(e){e.preventDefault(),m({type:Ce})}," ":function(e){e.preventDefault(),m({type:Ee})}}}),[m,M]),B=(0,c.useCallback)((function(){m({type:Oe})}),[m]),L=(0,c.useCallback)((function(){m({type:je})}),[m]),V=(0,c.useCallback)((function(){m({type:Re})}),[m]),K=(0,c.useCallback)((function(e){m({type:Fe,highlightedIndex:e})}),[m]),H=(0,c.useCallback)((function(e){m({type:Be,selectedItem:e})}),[m]),$=(0,c.useCallback)((function(){m({type:Ve})}),[m]),U=(0,c.useCallback)((function(e){m({type:Le,inputValue:e})}),[m]),W=(0,c.useCallback)((function(e){return o({id:P.labelId,htmlFor:P.toggleButtonId},e)}),[P]),q=(0,c.useCallback)((function(e,t){var n,i=void 0===e?{}:e,a=i.onMouseLeave,s=i.refKey,l=void 0===s?"ref":s,c=i.onKeyDown,u=i.onBlur,d=i.ref,p=r(i,$e),h=(void 0===t?{}:t).suppressRefError,f=void 0!==h&&h,g=T.current.state;return R("getMenuProps",f,l,C),o(((n={})[l]=S(d,(function(e){C.current=e})),n.id=P.menuId,n.role="listbox",n["aria-labelledby"]=P.labelId,n.tabIndex=-1,n),g.isOpen&&g.highlightedIndex>-1&&{"aria-activedescendant":P.getItemId(g.highlightedIndex)},{onMouseLeave:x(a,(function(){m({type:Pe})})),onKeyDown:x(c,(function(e){var t=I(e);t&&F[t]?F[t](e):ee(t)&&m({type:ke,key:t,getItemNodeFromIndex:M})})),onBlur:x(u,(function(){!1!==k.current?!O.current.isMouseDown&&m({type:ze}):k.current=!0}))},p)}),[m,T,F,O,R,P,M]);return{getToggleButtonProps:(0,c.useCallback)((function(e,t){var n,i=void 0===e?{}:e,a=i.onClick,s=i.onKeyDown,l=i.refKey,c=void 0===l?"ref":l,u=i.ref,d=r(i,Ue),p=(void 0===t?{}:t).suppressRefError,h=void 0!==p&&p,f=o(((n={})[c]=S(u,(function(e){_.current=e})),n.id=P.toggleButtonId,n["aria-haspopup"]="listbox",n["aria-expanded"]=T.current.state.isOpen,n["aria-labelledby"]=P.labelId+" "+P.toggleButtonId,n),d);return d.disabled||(f.onClick=x(a,(function(){m({type:Te})})),f.onKeyDown=x(s,(function(e){var t=I(e);t&&j[t]?j[t](e):ee(t)&&m({type:Ne,key:t,getItemNodeFromIndex:M})}))),R("getToggleButtonProps",h,c,_),f}),[m,T,j,R,P,M]),getLabelProps:W,getMenuProps:q,getItemProps:(0,c.useCallback)((function(e){var t,n=void 0===e?{}:e,i=n.item,a=n.index,s=n.onMouseMove,l=n.onClick,c=n.refKey,u=void 0===c?"ref":c,d=n.ref,p=r(n,We),h=T.current,f=h.state,g=h.props,v=Q(a,i,g.items);if(v<0)throw new Error("Pass either item or item index in getItemProps!");var y=o(((t={role:"option","aria-selected":""+(v===f.highlightedIndex),id:P.getItemId(v)})[u]=S(d,(function(e){e&&(E.current[P.getItemId(v)]=e)})),t),p);return p.disabled||(y.onMouseMove=x(s,(function(){a!==f.highlightedIndex&&(N.current=!1,m({type:Ae,index:a}))})),y.onClick=x(l,(function(){m({type:De,index:a})}))),y}),[m,T,N,P]),toggleMenu:B,openMenu:V,closeMenu:L,setHighlightedIndex:K,selectItem:H,reset:$,setInputValue:U,highlightedIndex:v,isOpen:g,selectedItem:y,inputValue:b}}qe.stateChangeTypes=Ke;l().array.isRequired,l().func,l().func,l().func,l().bool,l().number,l().number,l().number,l().bool,l().bool,l().bool,l().any,l().any,l().any,l().string,l().string,l().string,l().string,l().string,l().string,l().func,l().string,l().string,l().func,l().func,l().func,l().func,l().func,l().func,l().shape({addEventListener:l().func,removeEventListener:l().func,document:l().shape({getElementById:l().func,activeElement:l().any,body:l().any})});o({},ie,{getA11yStatusMessage:C,circularNavigation:!0});l().array,l().array,l().array,l().func,l().func,l().func,l().number,l().number,l().number,l().func,l().func,l().string,l().string,l().shape({addEventListener:l().func,removeEventListener:l().func,document:l().shape({getElementById:l().func,activeElement:l().any,body:l().any})})},85581:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,p=60115,h=60116,f=60121,m=60122,g=60117,v=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),d=b("react.suspense_list"),p=b("react.memo"),h=b("react.lazy"),f=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e.type){case o:case a:case i:case u:case d:return e;default:switch(e&&e.$$typeof){case l:case c:case h:case p:case s:return e;default:return t}}case r:return t}}}},44353:(e,t,n)=>{"use strict";n(85581)},32017:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},85606:e=>{var t=-1;function n(e,s,l,c){if(e===s)return e?[[0,e]]:[];if(null!=l){var u=function(e,t,n){var r="number"==typeof n?{index:n,length:0}:n.oldRange,o="number"==typeof n?null:n.newRange,i=e.length,a=t.length;if(0===r.length&&(null===o||0===o.length)){var s=r.index,l=e.slice(0,s),c=e.slice(s),u=o?o.index:null,p=s+a-i;if((null===u||u===p)&&!(p<0||p>a)){var h=t.slice(0,p);if((g=t.slice(p))===c){var f=Math.min(s,p);if((y=l.slice(0,f))===(w=h.slice(0,f)))return d(y,l.slice(f),h.slice(f),c)}}if(null===u||u===s){var m=s,g=(h=t.slice(0,m),t.slice(m));if(h===l){var v=Math.min(i-m,a-m);if((b=c.slice(c.length-v))===(x=g.slice(g.length-v)))return d(l,c.slice(0,c.length-v),g.slice(0,g.length-v),b)}}}if(r.length>0&&o&&0===o.length){var y=e.slice(0,r.index),b=e.slice(r.index+r.length);if(!(a<(f=y.length)+(v=b.length))){var w=t.slice(0,f),x=t.slice(a-v);if(y===w&&b===x)return d(y,e.slice(f,i-v),t.slice(f,a-v),b)}}return null}(e,s,l);if(u)return u}var p=o(e,s),h=e.substring(0,p);p=i(e=e.substring(p),s=s.substring(p));var f=e.substring(e.length-p),m=function(e,a){var s;if(!e)return[[1,a]];if(!a)return[[t,e]];var l=e.length>a.length?e:a,c=e.length>a.length?a:e,u=l.indexOf(c);if(-1!==u)return s=[[1,l.substring(0,u)],[0,c],[1,l.substring(u+c.length)]],e.length>a.length&&(s[0][0]=s[2][0]=t),s;if(1===c.length)return[[t,e],[1,a]];var d=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function a(e,t,n){for(var r,a,s,l,c=e.substring(n,n+Math.floor(e.length/4)),u=-1,d="";-1!==(u=t.indexOf(c,u+1));){var p=o(e.substring(n),t.substring(u)),h=i(e.substring(0,n),t.substring(0,u));d.length<h+p&&(d=t.substring(u-h,u)+t.substring(u,u+p),r=e.substring(0,n-h),a=e.substring(n+p),s=t.substring(0,u-h),l=t.substring(u+p))}return 2*d.length>=e.length?[r,a,s,l,d]:null}var s,l,c,u,d,p=a(n,r,Math.ceil(n.length/4)),h=a(n,r,Math.ceil(n.length/2));if(!p&&!h)return null;s=h?p&&p[4].length>h[4].length?p:h:p;e.length>t.length?(l=s[0],c=s[1],u=s[2],d=s[3]):(u=s[0],d=s[1],l=s[2],c=s[3]);var f=s[4];return[l,c,u,d,f]}(e,a);if(d){var p=d[0],h=d[1],f=d[2],m=d[3],g=d[4],v=n(p,f),y=n(h,m);return v.concat([[0,g]],y)}return function(e,n){for(var o=e.length,i=n.length,a=Math.ceil((o+i)/2),s=a,l=2*a,c=new Array(l),u=new Array(l),d=0;d<l;d++)c[d]=-1,u[d]=-1;c[s+1]=0,u[s+1]=0;for(var p=o-i,h=p%2!=0,f=0,m=0,g=0,v=0,y=0;y<a;y++){for(var b=-y+f;b<=y-m;b+=2){for(var w=s+b,x=(k=b===-y||b!==y&&c[w-1]<c[w+1]?c[w+1]:c[w-1]+1)-b;k<o&&x<i&&e.charAt(k)===n.charAt(x);)k++,x++;if(c[w]=k,k>o)m+=2;else if(x>i)f+=2;else if(h){if((C=s+p-b)>=0&&C<l&&-1!==u[C])if(k>=(_=o-u[C]))return r(e,n,k,x)}}for(var S=-y+g;S<=y-v;S+=2){for(var _,C=s+S,E=(_=S===-y||S!==y&&u[C-1]<u[C+1]?u[C+1]:u[C-1]+1)-S;_<o&&E<i&&e.charAt(o-_-1)===n.charAt(i-E-1);)_++,E++;if(u[C]=_,_>o)v+=2;else if(E>i)g+=2;else if(!h){if((w=s+p-S)>=0&&w<l&&-1!==c[w]){var k;x=s+(k=c[w])-w;if(k>=(_=o-_))return r(e,n,k,x)}}}}return[[t,e],[1,n]]}(e,a)}(e=e.substring(0,e.length-p),s=s.substring(0,s.length-p));return h&&m.unshift([0,h]),f&&m.push([0,f]),a(m,c),m}function r(e,t,r,o){var i=e.substring(0,r),a=t.substring(0,o),s=e.substring(r),l=t.substring(o),c=n(i,a),u=n(s,l);return c.concat(u)}function o(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(i,o)==t.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return s(e.charCodeAt(o-1))&&o--,o}function i(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(e.length-o,e.length-i)==t.substring(t.length-o,t.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return l(e.charCodeAt(e.length-o))&&o--,o}function a(e,n){e.push([0,""]);for(var r,s=0,l=0,d=0,p="",h="";s<e.length;)if(s<e.length-1&&!e[s][1])e.splice(s,1);else switch(e[s][0]){case 1:d++,h+=e[s][1],s++;break;case t:l++,p+=e[s][1],s++;break;case 0:var f=s-d-l-1;if(n){if(f>=0&&u(e[f][1])){var m=e[f][1].slice(-1);if(e[f][1]=e[f][1].slice(0,-1),p=m+p,h=m+h,!e[f][1]){e.splice(f,1),s--;var g=f-1;e[g]&&1===e[g][0]&&(d++,h=e[g][1]+h,g--),e[g]&&e[g][0]===t&&(l++,p=e[g][1]+p,g--),f=g}}if(c(e[s][1])){m=e[s][1].charAt(0);e[s][1]=e[s][1].slice(1),p+=m,h+=m}}if(s<e.length-1&&!e[s][1]){e.splice(s,1);break}if(p.length>0||h.length>0){p.length>0&&h.length>0&&(0!==(r=o(h,p))&&(f>=0?e[f][1]+=h.substring(0,r):(e.splice(0,0,[0,h.substring(0,r)]),s++),h=h.substring(r),p=p.substring(r)),0!==(r=i(h,p))&&(e[s][1]=h.substring(h.length-r)+e[s][1],h=h.substring(0,h.length-r),p=p.substring(0,p.length-r)));var v=d+l;0===p.length&&0===h.length?(e.splice(s-v,v),s-=v):0===p.length?(e.splice(s-v,v,[1,h]),s=s-v+1):0===h.length?(e.splice(s-v,v,[t,p]),s=s-v+1):(e.splice(s-v,v,[t,p],[1,h]),s=s-v+2)}0!==s&&0===e[s-1][0]?(e[s-1][1]+=e[s][1],e.splice(s,1)):s++,d=0,l=0,p="",h=""}""===e[e.length-1][1]&&e.pop();var y=!1;for(s=1;s<e.length-1;)0===e[s-1][0]&&0===e[s+1][0]&&(e[s][1].substring(e[s][1].length-e[s-1][1].length)===e[s-1][1]?(e[s][1]=e[s-1][1]+e[s][1].substring(0,e[s][1].length-e[s-1][1].length),e[s+1][1]=e[s-1][1]+e[s+1][1],e.splice(s-1,1),y=!0):e[s][1].substring(0,e[s+1][1].length)==e[s+1][1]&&(e[s-1][1]+=e[s+1][1],e[s][1]=e[s][1].substring(e[s+1][1].length)+e[s+1][1],e.splice(s+1,1),y=!0)),s++;y&&a(e,n)}function s(e){return e>=55296&&e<=56319}function l(e){return e>=56320&&e<=57343}function c(e){return l(e.charCodeAt(0))}function u(e){return s(e.charCodeAt(e.length-1))}function d(e,n,r,o){return u(e)||c(o)?null:function(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n]);return t}([[0,e],[t,n],[1,r],[0,o]])}function p(e,t,r){return n(e,t,r,!0)}p.INSERT=1,p.DELETE=t,p.EQUAL=0,e.exports=p},4213:function(e,t,n){var r,o,i;o=[],void 0===(i="function"==typeof(r=function(){"use strict";function t(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function r(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){l(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function o(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,s=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(e,t,n){var s=a.URL||a.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?i(l):o(l.href)?r(e,t,n):i(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){i(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,a){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,a),n);else if(o(e))r(e,n,a);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){i(s)}))}}:function(e,t,n,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return r(e,t,n);var i="application/octet-stream"===e.type,l=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||i&&l||s)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},u.readAsDataURL(e)}else{var d=a.URL||a.webkitURL,p=d.createObjectURL(e);o?o.location=p:location.href=p,o=null,setTimeout((function(){d.revokeObjectURL(p)}),4e4)}});a.saveAs=l.saveAs=l,e.exports=l})?r.apply(t,o):r)||(e.exports=i)},53996:function(e,t){var n;!function(){"use strict";var r={s:1,n:0,d:1};function o(e,t){if(isNaN(e=parseInt(e,10)))throw c.InvalidParameter;return e*t}function i(e,t){if(0===t)throw c.DivisionByZero;var n=Object.create(c.prototype);n.s=e<0?-1:1;var r=l(e=e<0?-e:e,t);return n.n=e/r,n.d=t/r,n}function a(e){for(var t={},n=e,r=2,o=4;o<=n;){for(;n%r==0;)n/=r,t[r]=(t[r]||0)+1;o+=1+2*r++}return n!==e?n>1&&(t[n]=(t[n]||0)+1):t[e]=(t[e]||0)+1,t}var s=function(e,t){var n,i=0,a=1,s=1,l=0,u=0,d=0,p=1,h=1,f=0,m=1,g=1,v=1,y=1e7;if(null==e);else if(void 0!==t){if(s=(i=e)*(a=t),i%1!=0||a%1!=0)throw c.NonIntegerParameter}else switch(typeof e){case"object":if("d"in e&&"n"in e)i=e.n,a=e.d,"s"in e&&(i*=e.s);else{if(!(0 in e))throw c.InvalidParameter;i=e[0],1 in e&&(a=e[1])}s=i*a;break;case"number":if(e<0&&(s=e,e=-e),e%1==0)i=e;else if(e>0){for(e>=1&&(e/=h=Math.pow(10,Math.floor(1+Math.log(e)/Math.LN10)));m<=y&&v<=y;){if(e===(n=(f+g)/(m+v))){m+v<=y?(i=f+g,a=m+v):v>m?(i=g,a=v):(i=f,a=m);break}e>n?(f+=g,m+=v):(g+=f,v+=m),m>y?(i=g,a=v):(i=f,a=m)}i*=h}else(isNaN(e)||isNaN(t))&&(a=i=NaN);break;case"string":if(null===(m=e.match(/\d+|./g)))throw c.InvalidParameter;if("-"===m[f]?(s=-1,f++):"+"===m[f]&&f++,m.length===f+1?u=o(m[f++],s):"."===m[f+1]||"."===m[f]?("."!==m[f]&&(l=o(m[f++],s)),(++f+1===m.length||"("===m[f+1]&&")"===m[f+3]||"'"===m[f+1]&&"'"===m[f+3])&&(u=o(m[f],s),p=Math.pow(10,m[f].length),f++),("("===m[f]&&")"===m[f+2]||"'"===m[f]&&"'"===m[f+2])&&(d=o(m[f+1],s),h=Math.pow(10,m[f+1].length)-1,f+=3)):"/"===m[f+1]||":"===m[f+1]?(u=o(m[f],s),p=o(m[f+2],1),f+=3):"/"===m[f+3]&&" "===m[f+1]&&(l=o(m[f],s),u=o(m[f+2],s),p=o(m[f+4],1),f+=5),m.length<=f){s=i=d+(a=p*h)*l+h*u;break}default:throw c.InvalidParameter}if(0===a)throw c.DivisionByZero;r.s=s<0?-1:1,r.n=Math.abs(i),r.d=Math.abs(a)};function l(e,t){if(!e)return t;if(!t)return e;for(;;){if(!(e%=t))return t;if(!(t%=e))return e}}function c(e,t){if(s(e,t),!(this instanceof c))return i(r.s*r.n,r.d);e=l(r.d,r.n),this.s=r.s,this.n=r.n/e,this.d=r.d/e}c.DivisionByZero=new Error("Division by Zero"),c.InvalidParameter=new Error("Invalid argument"),c.NonIntegerParameter=new Error("Parameters must be integer"),c.prototype={s:1,n:0,d:1,abs:function(){return i(this.n,this.d)},neg:function(){return i(-this.s*this.n,this.d)},add:function(e,t){return s(e,t),i(this.s*this.n*r.d+r.s*this.d*r.n,this.d*r.d)},sub:function(e,t){return s(e,t),i(this.s*this.n*r.d-r.s*this.d*r.n,this.d*r.d)},mul:function(e,t){return s(e,t),i(this.s*r.s*this.n*r.n,this.d*r.d)},div:function(e,t){return s(e,t),i(this.s*r.s*this.n*r.d,this.d*r.n)},clone:function(){return i(this.s*this.n,this.d)},mod:function(e,t){if(isNaN(this.n)||isNaN(this.d))return new c(NaN);if(void 0===e)return i(this.s*this.n%this.d,1);if(s(e,t),0===r.n&&0===this.d)throw c.DivisionByZero;return i(this.s*(r.d*this.n)%(r.n*this.d),r.d*this.d)},gcd:function(e,t){return s(e,t),i(l(r.n,this.n)*l(r.d,this.d),r.d*this.d)},lcm:function(e,t){return s(e,t),0===r.n&&0===this.n?i(0,1):i(r.n*this.n,l(r.n,this.n)*l(r.d,this.d))},ceil:function(e){return e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d)?new c(NaN):i(Math.ceil(e*this.s*this.n/this.d),e)},floor:function(e){return e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d)?new c(NaN):i(Math.floor(e*this.s*this.n/this.d),e)},round:function(e){return e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d)?new c(NaN):i(Math.round(e*this.s*this.n/this.d),e)},inverse:function(){return i(this.s*this.d,this.n)},pow:function(e,t){if(s(e,t),1===r.d)return r.s<0?i(Math.pow(this.s*this.d,r.n),Math.pow(this.n,r.n)):i(Math.pow(this.s*this.n,r.n),Math.pow(this.d,r.n));if(this.s<0)return null;var n=a(this.n),o=a(this.d),l=1,c=1;for(var u in n)if("1"!==u){if("0"===u){l=0;break}if(n[u]*=r.n,n[u]%r.d!=0)return null;n[u]/=r.d,l*=Math.pow(u,n[u])}for(var u in o)if("1"!==u){if(o[u]*=r.n,o[u]%r.d!=0)return null;o[u]/=r.d,c*=Math.pow(u,o[u])}return r.s<0?i(c,l):i(l,c)},equals:function(e,t){return s(e,t),this.s*this.n*r.d==r.s*r.n*this.d},compare:function(e,t){s(e,t);var n=this.s*this.n*r.d-r.s*r.n*this.d;return(0<n)-(n<0)},simplify:function(e){if(isNaN(this.n)||isNaN(this.d))return this;e=e||.001;for(var t=this.abs(),n=t.toContinued(),r=1;r<n.length;r++){for(var o=i(n[r-1],1),a=r-2;a>=0;a--)o=o.inverse().add(n[a]);if(o.sub(t).abs().valueOf()<e)return o.mul(this.s)}return this},divisible:function(e,t){return s(e,t),!(!(r.n*this.d)||this.n*r.d%(r.n*this.d))},valueOf:function(){return this.s*this.n/this.d},toFraction:function(e){var t,n="",r=this.n,o=this.d;return this.s<0&&(n+="-"),1===o?n+=r:(e&&(t=Math.floor(r/o))>0&&(n+=t,n+=" ",r%=o),n+=r,n+="/",n+=o),n},toLatex:function(e){var t,n="",r=this.n,o=this.d;return this.s<0&&(n+="-"),1===o?n+=r:(e&&(t=Math.floor(r/o))>0&&(n+=t,r%=o),n+="\\frac{",n+=r,n+="}{",n+=o,n+="}"),n},toContinued:function(){var e,t=this.n,n=this.d,r=[];if(isNaN(t)||isNaN(n))return r;do{r.push(Math.floor(t/n)),e=t%n,t=n,n=e}while(1!==t);return r},toString:function(e){var t=this.n,n=this.d;if(isNaN(t)||isNaN(n))return"NaN";e=e||15;var r=function(e,t){for(;t%2==0;t/=2);for(;t%5==0;t/=5);if(1===t)return 0;for(var n=10%t,r=1;1!==n;r++)if(n=10*n%t,r>2e3)return 0;return r}(0,n),o=function(e,t,n){for(var r=1,o=function(e,t,n){for(var r=1;t>0;e=e*e%n,t>>=1)1&t&&(r=r*e%n);return r}(10,n,t),i=0;i<300;i++){if(r===o)return i;r=10*r%t,o=10*o%t}return 0}(0,n,r),i=this.s<0?"-":"";if(i+=t/n|0,t%=n,(t*=10)&&(i+="."),r){for(var a=o;a--;)i+=t/n|0,t%=n,t*=10;i+="(";for(a=r;a--;)i+=t/n|0,t%=n,t*=10;i+=")"}else for(a=e;t&&a--;)i+=t/n|0,t%=n,t*=10;return i}},void 0===(n=function(){return c}.apply(t,[]))||(e.exports=n)}()},68106:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(96540),i=r(n(93186));t.default=(e,t,n)=>(0,i.default)(o.useCallback,e,t,n)},37104:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(96540),i=r(n(93186));t.default=(e,t,n)=>(0,i.default)(o.useEffect,e,t,n)},93186:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(96540);t.default=(e,t,n,o)=>{const i=(0,r.useRef)();return i.current&&n.every(((e,t)=>Object.is(e,i.current[t])))||(i.current=[...n,...o]),e(t,i.current)}},80122:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(96540),i=r(n(93186));t.default=(e,t,n)=>(0,i.default)(o.useLayoutEffect,e,t,n)},36339:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(96540),i=r(n(93186));t.default=(e,t,n)=>(0,i.default)(o.useMemo,e,t,n)},8521:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useGranularMemo=t.useGranularLayoutEffect=t.useGranularHook=t.useGranularEffect=t.useGranularCallback=void 0;var o=n(68106);Object.defineProperty(t,"useGranularCallback",{enumerable:!0,get:function(){return r(o).default}});var i=n(37104);Object.defineProperty(t,"useGranularEffect",{enumerable:!0,get:function(){return r(i).default}});var a=n(93186);Object.defineProperty(t,"useGranularHook",{enumerable:!0,get:function(){return r(a).default}});var s=n(80122);Object.defineProperty(t,"useGranularLayoutEffect",{enumerable:!0,get:function(){return r(s).default}});var l=n(36339);Object.defineProperty(t,"useGranularMemo",{enumerable:!0,get:function(){return r(l).default}})},4146:(e,t,n)=>{"use strict";var r=n(44363),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 l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var o=h(n);o&&o!==f&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||m&&m[v]||s&&s[v])){var y=p(n,v);try{c(t,v,y)}catch(e){}}}}return t}},73575:(e,t,n)=>{"use strict";n.d(t,{IP:()=>W,Qx:()=>l,a6:()=>c,ht:()=>Z,jM:()=>G,mq:()=>Y,ss:()=>$,vD:()=>X});var r=Symbol.for("immer-nothing"),o=Symbol.for("immer-draftable"),i=Symbol.for("immer-state");function a(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var s=Object.getPrototypeOf;function l(e){return!!e&&!!e[i]}function c(e){return!!e&&(d(e)||Array.isArray(e)||!!e[o]||!!e.constructor?.[o]||g(e)||v(e))}var u=Object.prototype.constructor.toString();function d(e){if(!e||"object"!=typeof e)return!1;const t=s(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===u}function p(e,t){0===h(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function h(e){const t=e[i];return t?t.type_:Array.isArray(e)?1:g(e)?2:v(e)?3:0}function f(e,t){return 2===h(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function m(e,t,n){const r=h(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function g(e){return e instanceof Map}function v(e){return e instanceof Set}function y(e){return e.copy_||e.base_}function b(e,t){if(g(e))return new Map(e);if(v(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&d(e)){if(!s(e)){const t=Object.create(null);return Object.assign(t,e)}return{...e}}const n=Object.getOwnPropertyDescriptors(e);delete n[i];let r=Reflect.ownKeys(n);for(let t=0;t<r.length;t++){const o=r[t],i=n[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(n[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(s(e),n)}function w(e,t=!1){return S(e)||l(e)||!c(e)||(h(e)>1&&(e.set=e.add=e.clear=e.delete=x),Object.freeze(e),t&&p(e,((e,t)=>w(t,!0)))),e}function x(){a(2)}function S(e){return Object.isFrozen(e)}var _,C={};function E(e){const t=C[e];return t||a(0),t}function k(e,t){C[e]||(C[e]=t)}function z(){return _}function P(e,t){t&&(E("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function A(e){D(e),e.drafts_.forEach(I),e.drafts_=null}function D(e){e===_&&(_=e.parent_)}function T(e){return _={drafts_:[],parent_:_,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function I(e){const t=e[i];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function M(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[i].modified_&&(A(t),a(4)),c(e)&&(e=N(t,e),t.parent_||R(t,e)),t.patches_&&E("Patches").generateReplacementPatches_(n[i].base_,e,t.patches_,t.inversePatches_)):e=N(t,n,[]),A(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==r?e:void 0}function N(e,t,n){if(S(t))return t;const r=t[i];if(!r)return p(t,((o,i)=>O(e,r,t,o,i,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return R(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),p(o,((o,a)=>O(e,r,t,o,a,n,i))),R(e,t,!1),n&&e.patches_&&E("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function O(e,t,n,r,o,i,a){if(l(o)){const a=N(e,o,i&&t&&3!==t.type_&&!f(t.assigned_,r)?i.concat(r):void 0);if(m(n,r,a),!l(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(c(o)&&!S(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;N(e,o),t&&t.scope_.parent_||R(e,o)}}function R(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&w(t,n)}var j={get(e,t){if(t===i)return e;const n=y(e);if(!f(n,t))return function(e,t,n){const r=L(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!c(r)?r:r===B(e.base_,t)?(K(e),e.copy_[t]=H(r,e)):r},has:(e,t)=>t in y(e),ownKeys:e=>Reflect.ownKeys(y(e)),set(e,t,n){const r=L(y(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=B(y(e),t),s=r?.[i];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((o=n)===(a=r)?0!==o||1/o==1/a:o!=o&&a!=a)&&(void 0!==n||f(e.base_,t)))return!0;K(e),V(e)}var o,a;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==B(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,K(e),V(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=y(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){a(11)},getPrototypeOf:e=>s(e.base_),setPrototypeOf(){a(12)}},F={};function B(e,t){const n=e[i];return(n?y(n):e)[t]}function L(e,t){if(!(t in e))return;let n=s(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=s(n)}}function V(e){e.modified_||(e.modified_=!0,e.parent_&&V(e.parent_))}function K(e){e.copy_||(e.copy_=b(e.base_,e.scope_.immer_.useStrictShallowCopy_))}p(j,((e,t)=>{F[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),F.deleteProperty=function(e,t){return F.set.call(this,e,t,void 0)},F.set=function(e,t,n){return j.set.call(this,e[0],t,n,e[0])};function H(e,t){const n=g(e)?E("MapSet").proxyMap_(e,t):v(e)?E("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:z(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=j;n&&(o=[r],i=F);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:z()).drafts_.push(n),n}function $(e){return l(e)||a(10),U(e)}function U(e){if(!c(e)||S(e))return e;const t=e[i];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=b(e,t.scope_.immer_.useStrictShallowCopy_)}else n=b(e,!0);return p(n,((e,t)=>{m(n,e,U(t))})),t&&(t.finalized_=!1),n}function W(){class e extends Map{constructor(e,t){super(),this[i]={type_:2,parent_:t,scope_:t?t.scope_:z(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:e,draft_:this,isManual_:!1,revoked_:!1}}get size(){return y(this[i]).size}has(e){return y(this[i]).has(e)}set(e,n){const r=this[i];return o(r),y(r).has(e)&&y(r).get(e)===n||(t(r),V(r),r.assigned_.set(e,!0),r.copy_.set(e,n),r.assigned_.set(e,!0)),this}delete(e){if(!this.has(e))return!1;const n=this[i];return o(n),t(n),V(n),n.base_.has(e)?n.assigned_.set(e,!1):n.assigned_.delete(e),n.copy_.delete(e),!0}clear(){const e=this[i];o(e),y(e).size&&(t(e),V(e),e.assigned_=new Map,p(e.base_,(t=>{e.assigned_.set(t,!1)})),e.copy_.clear())}forEach(e,t){y(this[i]).forEach(((n,r,o)=>{e.call(t,this.get(r),r,this)}))}get(e){const n=this[i];o(n);const r=y(n).get(e);if(n.finalized_||!c(r))return r;if(r!==n.base_.get(e))return r;const a=H(r,n);return t(n),n.copy_.set(e,a),a}keys(){return y(this[i]).keys()}values(){const e=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const t=e.next();if(t.done)return t;return{done:!1,value:this.get(t.value)}}}}entries(){const e=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const t=e.next();if(t.done)return t;const n=this.get(t.value);return{done:!1,value:[t.value,n]}}}}[Symbol.iterator](){return this.entries()}}function t(e){e.copy_||(e.assigned_=new Map,e.copy_=new Map(e.base_))}class n extends Set{constructor(e,t){super(),this[i]={type_:3,parent_:t,scope_:t?t.scope_:z(),modified_:!1,finalized_:!1,copy_:void 0,base_:e,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return y(this[i]).size}has(e){const t=this[i];return o(t),t.copy_?!!t.copy_.has(e)||!(!t.drafts_.has(e)||!t.copy_.has(t.drafts_.get(e))):t.base_.has(e)}add(e){const t=this[i];return o(t),this.has(e)||(r(t),V(t),t.copy_.add(e)),this}delete(e){if(!this.has(e))return!1;const t=this[i];return o(t),r(t),V(t),t.copy_.delete(e)||!!t.drafts_.has(e)&&t.copy_.delete(t.drafts_.get(e))}clear(){const e=this[i];o(e),y(e).size&&(r(e),V(e),e.copy_.clear())}values(){const e=this[i];return o(e),r(e),e.copy_.values()}entries(){const e=this[i];return o(e),r(e),e.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(e,t){const n=this.values();let r=n.next();for(;!r.done;)e.call(t,r.value,r.value,this),r=n.next()}}function r(e){e.copy_||(e.copy_=new Set,e.base_.forEach((t=>{if(c(t)){const n=H(t,e);e.drafts_.set(t,n),e.copy_.add(n)}else e.copy_.add(t)})))}function o(e){e.revoked_&&a(3,JSON.stringify(y(e)))}k("MapSet",{proxyMap_:function(t,n){return new e(t,n)},proxySet_:function(e,t){return new n(e,t)}})}var q=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,(e=>t.call(this,e,...o)))}}let o;if("function"!=typeof t&&a(6),void 0!==n&&"function"!=typeof n&&a(7),c(e)){const r=T(this),i=H(e,void 0);let a=!0;try{o=t(i),a=!1}finally{a?A(r):D(r)}return P(r,n),M(o,r)}if(!e||"object"!=typeof e){if(o=t(e),void 0===o&&(o=e),o===r&&(o=void 0),this.autoFreeze_&&w(o,!0),n){const t=[],r=[];E("Patches").generateReplacementPatches_(e,o,t,r),n(t,r)}return o}a(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){c(e)||a(8),l(e)&&(e=$(e));const t=T(this),n=H(e,void 0);return n[i].isManual_=!0,D(t),n}finishDraft(e,t){const n=e&&e[i];n&&n.isManual_||a(9);const{scope_:r}=n;return P(r,t),M(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=E("Patches").applyPatches_;return l(e)?r(e,t):this.produce(e,(e=>r(e,t)))}},G=q.produce,Z=(q.produceWithPatches.bind(q),q.setAutoFreeze.bind(q)),Y=(q.setUseStrictShallowCopy.bind(q),q.applyPatches.bind(q),q.createDraft.bind(q)),X=q.finishDraft.bind(q)},49568:(e,t,n)=>{"use strict";n.d(t,{B8:()=>Zt,CD:()=>Yn,G2:()=>q,NZ:()=>zn,T5:()=>Et,hZ:()=>nt,is:()=>ce,mS:()=>tr,ss:()=>lr,uY:()=>un});var r="delete",o=32,i=31,a={};function s(e){e&&(e.value=!0)}function l(){}function c(e){return void 0===e.size&&(e.size=e.__iterate(d)),e.size}function u(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?c(e)+t:t}function d(){return!0}function p(e,t,n){return(0===e&&!g(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function h(e,t){return m(e,t,0)}function f(e,t){return m(e,t,t)}function m(e,t,n){return void 0===e?n:g(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function g(e){return e<0||0===e&&1/e==-1/0}var v="@@__IMMUTABLE_ITERABLE__@@";function y(e){return Boolean(e&&e[v])}var b="@@__IMMUTABLE_KEYED__@@";function w(e){return Boolean(e&&e[b])}var x="@@__IMMUTABLE_INDEXED__@@";function S(e){return Boolean(e&&e[x])}function _(e){return w(e)||S(e)}var C=function(e){return y(e)?e:q(e)},E=function(e){function t(e){return w(e)?e:G(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(C),k=function(e){function t(e){return S(e)?e:Z(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(C),z=function(e){function t(e){return y(e)&&!_(e)?e:Y(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(C);C.Keyed=E,C.Indexed=k,C.Set=z;var P="@@__IMMUTABLE_SEQ__@@";function A(e){return Boolean(e&&e[P])}var D="@@__IMMUTABLE_RECORD__@@";function T(e){return Boolean(e&&e[D])}function I(e){return y(e)||T(e)}var M="@@__IMMUTABLE_ORDERED__@@";function N(e){return Boolean(e&&e[M])}var O="function"==typeof Symbol&&Symbol.iterator,R="@@iterator",j=O||R,F=function(e){this.next=e};function B(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function L(){return{value:void 0,done:!0}}function V(e){return!!$(e)}function K(e){return e&&"function"==typeof e.next}function H(e){var t=$(e);return t&&t.call(e)}function $(e){var t=e&&(O&&e[O]||e[R]);if("function"==typeof t)return t}F.prototype.toString=function(){return"[Iterator]"},F.KEYS=0,F.VALUES=1,F.ENTRIES=2,F.prototype.inspect=F.prototype.toSource=function(){return this.toString()},F.prototype[j]=function(){return this};var U=Object.prototype.hasOwnProperty;function W(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var q=function(e){function t(e){return null==e?te():I(e)?e.toSeq():function(e){var t=oe(e);if(t)return t;if("object"==typeof e)return new J(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,o=0;o!==r;){var i=n[t?r-++o:o++];if(!1===e(i[1],i[0],this))break}return o}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,o=0;return new F((function(){if(o===r)return{value:void 0,done:!0};var i=n[t?r-++o:o++];return B(e,i[0],i[1])}))}return this.__iteratorUncached(e,t)},t}(C),G=function(e){function t(e){return null==e?te().toKeyedSeq():y(e)?w(e)?e.toSeq():e.fromEntrySeq():T(e)?e.toSeq():ne(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(q),Z=function(e){function t(e){return null==e?te():y(e)?w(e)?e.entrySeq():e.toIndexedSeq():T(e)?e.toSeq().entrySeq():re(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(q),Y=function(e){function t(e){return(y(e)&&!_(e)?e:Z(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(q);q.isSeq=A,q.Keyed=G,q.Set=Y,q.Indexed=Z,q.prototype[P]=!0;var X=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[u(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,o=0;o!==r;){var i=t?r-++o:o++;if(!1===e(n[i],i,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,o=0;return new F((function(){if(o===r)return{value:void 0,done:!0};var i=t?r-++o:o++;return B(e,i,n[i])}))},t}(Z),J=function(e){function t(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return U.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length,i=0;i!==o;){var a=r[t?o-++i:i++];if(!1===e(n[a],a,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length,i=0;return new F((function(){if(i===o)return{value:void 0,done:!0};var a=r[t?o-++i:i++];return B(e,a,n[a])}))},t}(G);J.prototype[M]=!0;var Q,ee=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=H(this._collection),r=0;if(K(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=H(this._collection);if(!K(n))return new F(L);var r=0;return new F((function(){var t=n.next();return t.done?t:B(e,r++,t.value)}))},t}(Z);function te(){return Q||(Q=new X([]))}function ne(e){var t=Array.isArray(e)?new X(e):V(e)?new ee(e):void 0;if(t)return t.fromEntrySeq();if("object"==typeof e)return new J(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function re(e){var t=oe(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function oe(e){return W(e)?new X(e):V(e)?new ee(e):void 0}var ie="@@__IMMUTABLE_MAP__@@";function ae(e){return Boolean(e&&e[ie])}function se(e){return ae(e)&&N(e)}function le(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function ce(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!!(le(e)&&le(t)&&e.equals(t))}var ue="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function de(e){return e>>>1&1073741824|3221225471&e}function pe(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 n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return de(n)}if("string"===t)return e.length>we?function(e){var t=_e[e];void 0===t&&(t=he(e),Se===xe&&(Se=0,_e={}),Se++,_e[e]=t);return t}(e):he(e);if("function"==typeof e.hashCode)return de(e.hashCode());if("object"===t||"function"===t)return function(e){var t;if(ve&&void 0!==(t=ge.get(e)))return t;if(void 0!==(t=e[be]))return t;if(!me){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[be]))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}t=++ye,1073741824&ye&&(ye=0);if(ve)ge.set(e,t);else{if(void 0!==fe&&!1===fe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(me)Object.defineProperty(e,be,{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[be]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[be]=t}}return t}(e);if("function"==typeof e.toString)return he(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function he(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return de(t)}var fe=Object.isExtensible,me=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();var ge,ve="function"==typeof WeakMap;ve&&(ge=new WeakMap);var ye=0,be="__immutablehash__";"function"==typeof Symbol&&(be=Symbol(be));var we=16,xe=255,Se=0,_e={},Ce=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=De(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=Ae(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t,r){return e(t,r,n)}),t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(G);Ce.prototype[M]=!0;var Ee=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&c(this),this._iter.__iterate((function(o){return e(o,t?n.size-++r:r++,n)}),t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(1,t),o=0;return t&&c(this),new F((function(){var i=r.next();return i.done?i:B(e,t?n.size-++o:o++,i.value,i)}))},t}(Z),ke=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new F((function(){var t=n.next();return t.done?t:B(e,t.value,t.value,t)}))},t}(Y),ze=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Le(t);var r=y(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new F((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Le(r);var o=y(r);return B(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},t}(G);function Pe(e){var t=Ke(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=He,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new F((function(){var e=r.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,n)},t}function Ae(e,t,n){var r=Ke(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,a);return i===a?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(2,o);return new F((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return B(r,s,t.call(n,a[1],s,e),o)}))},r}function De(e,t){var n=this,r=Ke(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=Pe(e);return t.reverse=function(){return e.flip()},t}),r.get=function(n,r){return e.get(t?n:-1-n,r)},r.has=function(n){return e.has(t?n:-1-n)},r.includes=function(t){return e.includes(t)},r.cacheResult=He,r.__iterate=function(n,r){var o=this,i=0;return r&&c(e),e.__iterate((function(e,a){return n(e,t?a:r?o.size-++i:i++,o)}),!r)},r.__iterator=function(r,o){var i=0;o&&c(e);var a=e.__iterator(2,!o);return new F((function(){var e=a.next();if(e.done)return e;var s=e.value;return B(r,t?s[0]:o?n.size-++i:i++,s[1],e)}))},r}function Te(e,t,n,r){var o=Ke(e);return r&&(o.has=function(r){var o=e.get(r,a);return o!==a&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,a);return i!==a&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,l){if(t.call(n,e,i,l))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(2,i),s=0;return new F((function(){for(;;){var i=a.next();if(i.done)return i;var l=i.value,c=l[0],u=l[1];if(t.call(n,u,c,e))return B(o,r?c:s++,u,i)}}))},o}function Ie(e,t,n,r){var o=e.size;if(p(t,n,o))return e;var i=h(t,o),a=f(n,o);if(i!=i||a!=a)return Ie(e.toSeq().cacheResult(),t,n,r);var s,l=a-i;l==l&&(s=l<0?0:l);var c=Ke(e);return c.size=0===s?s:e.size&&s||void 0,!r&&A(e)&&s>=0&&(c.get=function(t,n){return(t=u(this,t))>=0&&t<s?e.get(t+i,n):n}),c.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,l=!0,c=0;return e.__iterate((function(e,n){if(!l||!(l=a++<i))return c++,!1!==t(e,r?n:c-1,o)&&c!==s})),c},c.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);if(0===s)return new F(L);var o=e.__iterator(t,n),a=0,l=0;return new F((function(){for(;a++<i;)o.next();if(++l>s)return{value:void 0,done:!0};var e=o.next();return r||1===t||e.done?e:B(t,l-1,0===t?void 0:e.value[1],e)}))},c}function Me(e,t,n,r){var o=Ke(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,l=0;return e.__iterate((function(e,i,c){if(!s||!(s=t.call(n,e,i,c)))return l++,o(e,r?i:l-1,a)})),l},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(2,i),l=!0,c=0;return new F((function(){var e,i,u;do{if((e=s.next()).done)return r||1===o?e:B(o,c++,0===o?void 0:e.value[1],e);var d=e.value;i=d[0],u=d[1],l&&(l=t.call(n,u,i,a))}while(l);return 2===o?e:B(o,i,u,e)}))},o}function Ne(e,t,n){var r=Ke(e);return r.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var a=0,s=!1;return function e(l,c){l.__iterate((function(i,l){return(!t||c<t)&&y(i)?e(i,c+1):(a++,!1===o(i,n?l:a-1,r)&&(s=!0)),!s}),i)}(e,0),a},r.__iteratorUncached=function(r,o){if(o)return this.cacheResult().__iterator(r,o);var i=e.__iterator(r,o),a=[],s=0;return new F((function(){for(;i;){var e=i.next();if(!1===e.done){var l=e.value;if(2===r&&(l=l[1]),t&&!(a.length<t)||!y(l))return n?e:B(r,s++,l,e);a.push(i),i=l.__iterator(r,o)}else i=a.pop()}return{value:void 0,done:!0}}))},r}function Oe(e,t,n){t||(t=$e);var r=w(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).valueSeq().toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?G(i):S(e)?Z(i):Y(i)}function Re(e,t,n){if(t||(t=$e),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return je(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return je(t,e,n)?n:e}))}function je(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Fe(e,t,n,r){var o=Ke(e),i=new X(n).map((function(e){return e.size}));return o.size=r?i.max():i.min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=n.map((function(e){return e=C(e),H(o?e.reverse():e)})),a=0,s=!1;return new F((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=r?n.every((function(e){return e.done})):n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:B(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function Be(e,t){return e===t?e:A(e)?t:e.constructor(t)}function Le(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ve(e){return w(e)?E:S(e)?k:z}function Ke(e){return Object.create((w(e)?G:S(e)?Z:Y).prototype)}function He(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):q.prototype.cacheResult.call(this)}function $e(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e<t?-1:0}function Ue(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function We(e,t){if(!e)throw new Error(t)}function qe(e){We(e!==1/0,"Cannot perform this action with an infinite size.")}function Ge(e){if(W(e)&&"string"!=typeof e)return e;if(N(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}function Ze(e){return e&&(e.constructor&&"Object"===e.constructor.name||void 0===e.constructor)}function Ye(e){return"object"==typeof e&&(I(e)||Array.isArray(e)||Ze(e))}function Xe(e){try{return"string"==typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function Je(e,t){return I(e)?e.has(t):Ye(e)&&U.call(e,t)}function Qe(e,t,n){return I(e)?e.get(t,n):Je(e,t)?"function"==typeof e.get?e.get(t):e[t]:n}function et(e){if(Array.isArray(e))return Ue(e);var t={};for(var n in e)U.call(e,n)&&(t[n]=e[n]);return t}function tt(e,t){if(!Ye(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(I(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!U.call(e,t))return e;var n=et(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function nt(e,t,n){if(!Ye(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(I(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(U.call(e,t)&&n===e[t])return e;var r=et(e);return r[t]=n,r}function rt(e,t,n,r){r||(r=n,n=void 0);var o=ot(I(e),e,Ge(t),0,n,r);return o===a?n:o}function ot(e,t,n,r,o,i){var s=t===a;if(r===n.length){var l=s?o:t,c=i(l);return c===l?t:c}if(!s&&!Ye(t))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,r).map(Xe)+"]: "+t);var u=n[r],d=s?a:Qe(t,u,a),p=ot(d===a?e:I(d),d,n,r+1,o,i);return p===d?t:p===a?tt(t,u):nt(s?e?jt():{}:t,u,p)}function it(e,t,n){return rt(e,t,a,(function(){return n}))}function at(e,t){return it(this,e,t)}function st(e,t){return rt(e,t,(function(){return a}))}function lt(e){return st(this,e)}function ct(e,t,n,r){return rt(e,[t],n,r)}function ut(e,t,n){return 1===arguments.length?e(this):ct(this,e,t,n)}function dt(e,t,n){return rt(this,e,t,n)}function pt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return ft(this,e)}function ht(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return ft(this,t,e)}function ft(e,t,n){for(var r=[],o=0;o<t.length;o++){var i=E(t[o]);0!==i.size&&r.push(i)}return 0===r.length?e:0!==e.toSeq().size||e.__ownerID||1!==r.length?e.withMutations((function(e){for(var t=n?function(t,r){ct(e,r,a,(function(e){return e===a?t:n(e,t,r)}))}:function(t,n){e.set(n,t)},o=0;o<r.length;o++)r[o].forEach(t)})):e.constructor(r[0])}function mt(e,t,n){return gt(e,t,function(e){function t(n,r,o){return Ye(n)&&Ye(r)?gt(n,[r],t):e?e(n,r,o):r}return t}(n))}function gt(e,t,n){if(!Ye(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(I(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),o=e,i=r?k:E,a=r?function(t){o===e&&(o=et(o)),o.push(t)}:function(t,r){var i=U.call(o,r),a=i&&n?n(o[r],t,r):t;i&&a===o[r]||(o===e&&(o=et(o)),o[r]=a)},s=0;s<t.length;s++)i(t[s]).forEach(a);return o}function vt(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return mt(this,e)}function yt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return mt(this,t,e)}function bt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return rt(this,e,jt(),(function(e){return gt(e,t)}))}function wt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return rt(this,e,jt(),(function(e){return mt(e,t)}))}function xt(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function St(){return this.__ownerID?this:this.__ensureOwner(new l)}function _t(){return this.__ensureOwner()}function Ct(){return this.__altered}Ee.prototype.cacheResult=Ce.prototype.cacheResult=ke.prototype.cacheResult=ze.prototype.cacheResult=He;var Et=function(e){function t(t){return null==t?jt():ae(t)&&!N(t)?t:jt().withMutations((function(n){var r=e(t);qe(r.size),r.forEach((function(e,t){return n.set(t,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return jt().withMutations((function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return Ft(this,e,t)},t.prototype.remove=function(e){return Ft(this,e,a)},t.prototype.deleteAll=function(e){var t=C(e);return 0===t.size?this:this.withMutations((function(e){t.forEach((function(t){return e.remove(t)}))}))},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):jt()},t.prototype.sort=function(e){return un(Oe(this,e))},t.prototype.sortBy=function(e,t){return un(Oe(this,t,e))},t.prototype.map=function(e,t){return this.withMutations((function(n){n.forEach((function(r,o){n.set(o,e.call(t,r,o,n))}))}))},t.prototype.__iterator=function(e,t){return new Mt(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Rt(this.size,this._root,e,this.__hash):0===this.size?jt():(this.__ownerID=e,this.__altered=!1,this)},t}(E);Et.isMap=ae;var kt=Et.prototype;kt[ie]=!0,kt[r]=kt.remove,kt.removeAll=kt.deleteAll,kt.setIn=at,kt.removeIn=kt.deleteIn=lt,kt.update=ut,kt.updateIn=dt,kt.merge=kt.concat=pt,kt.mergeWith=ht,kt.mergeDeep=vt,kt.mergeDeepWith=yt,kt.mergeIn=bt,kt.mergeDeepIn=wt,kt.withMutations=xt,kt.wasAltered=Ct,kt.asImmutable=_t,kt["@@transducer/init"]=kt.asMutable=St,kt["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},kt["@@transducer/result"]=function(e){return e.asImmutable()};var zt=function(e,t){this.ownerID=e,this.entries=t};zt.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ce(n,o[i][0]))return o[i][1];return r},zt.prototype.update=function(e,t,n,r,o,i,c){for(var u=o===a,d=this.entries,p=0,h=d.length;p<h&&!ce(r,d[p][0]);p++);var f=p<h;if(f?d[p][1]===o:u)return this;if(s(c),(u||!f)&&s(i),!u||1!==d.length){if(!f&&!u&&d.length>=$t)return function(e,t,n,r){e||(e=new l);for(var o=new Tt(e,pe(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}(e,d,r,o);var m=e&&e===this.ownerID,g=m?d:Ue(d);return f?u?p===h-1?g.pop():g[p]=g.pop():g[p]=[r,o]:g.push([r,o]),m?(this.entries=g,this):new zt(e,g)}};var Pt=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};Pt.prototype.get=function(e,t,n,r){void 0===t&&(t=pe(n));var o=1<<((0===e?t:t>>>e)&i),a=this.bitmap;return a&o?this.nodes[Kt(a&o-1)].get(e+5,t,n,r):r},Pt.prototype.update=function(e,t,n,r,s,l,c){void 0===n&&(n=pe(r));var u=(0===t?n:n>>>t)&i,d=1<<u,p=this.bitmap,h=!!(p&d);if(!h&&s===a)return this;var f=Kt(p&d-1),m=this.nodes,g=h?m[f]:void 0,v=Bt(g,e,t+5,n,r,s,l,c);if(v===g)return this;if(!h&&v&&m.length>=Ut)return function(e,t,n,r,i){for(var a=0,s=new Array(o),l=0;0!==n;l++,n>>>=1)s[l]=1&n?t[a++]:void 0;return s[r]=i,new At(e,a+1,s)}(e,m,p,u,v);if(h&&!v&&2===m.length&&Lt(m[1^f]))return m[1^f];if(h&&v&&1===m.length&&Lt(v))return v;var y=e&&e===this.ownerID,b=h?v?p:p^d:p|d,w=h?v?Ht(m,f,v,y):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}(m,f,y):function(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}(m,f,v,y);return y?(this.bitmap=b,this.nodes=w,this):new Pt(e,b,w)};var At=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};At.prototype.get=function(e,t,n,r){void 0===t&&(t=pe(n));var o=(0===e?t:t>>>e)&i,a=this.nodes[o];return a?a.get(e+5,t,n,r):r},At.prototype.update=function(e,t,n,r,o,s,l){void 0===n&&(n=pe(r));var c=(0===t?n:n>>>t)&i,u=o===a,d=this.nodes,p=d[c];if(u&&!p)return this;var h=Bt(p,e,t+5,n,r,o,s,l);if(h===p)return this;var f=this.count;if(p){if(!h&&--f<Wt)return function(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,l=1,c=t.length;s<c;s++,l<<=1){var u=t[s];void 0!==u&&s!==r&&(o|=l,a[i++]=u)}return new Pt(e,o,a)}(e,d,f,c)}else f++;var m=e&&e===this.ownerID,g=Ht(d,c,h,m);return m?(this.count=f,this.nodes=g,this):new At(e,f,g)};var Dt=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};Dt.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ce(n,o[i][0]))return o[i][1];return r},Dt.prototype.update=function(e,t,n,r,o,i,l){void 0===n&&(n=pe(r));var c=o===a;if(n!==this.keyHash)return c?this:(s(l),s(i),Vt(this,e,t,n,[r,o]));for(var u=this.entries,d=0,p=u.length;d<p&&!ce(r,u[d][0]);d++);var h=d<p;if(h?u[d][1]===o:c)return this;if(s(l),(c||!h)&&s(i),c&&2===p)return new Tt(e,this.keyHash,u[1^d]);var f=e&&e===this.ownerID,m=f?u:Ue(u);return h?c?d===p-1?m.pop():m[d]=m.pop():m[d]=[r,o]:m.push([r,o]),f?(this.entries=m,this):new Dt(e,this.keyHash,m)};var Tt=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};Tt.prototype.get=function(e,t,n,r){return ce(n,this.entry[0])?this.entry[1]:r},Tt.prototype.update=function(e,t,n,r,o,i,l){var c=o===a,u=ce(r,this.entry[0]);return(u?o===this.entry[1]:c)?this:(s(l),c?void s(i):u?e&&e===this.ownerID?(this.entry[1]=o,this):new Tt(e,this.keyHash,[r,o]):(s(i),Vt(this,e,t,pe(r),[r,o])))},zt.prototype.iterate=Dt.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Pt.prototype.iterate=At.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Tt.prototype.iterate=function(e,t){return e(this.entry)};var It,Mt=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Ot(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this,t=this._type,n=this._stack;n;){var r=n.node,o=n.index++,i=void 0;if(r.entry){if(0===o)return Nt(t,r.entry)}else if(r.entries){if(o<=(i=r.entries.length-1))return Nt(t,r.entries[e._reverse?i-o:o])}else if(o<=(i=r.nodes.length-1)){var a=r.nodes[e._reverse?i-o:o];if(a){if(a.entry)return Nt(t,a.entry);n=e._stack=Ot(a,n)}continue}n=e._stack=e._stack.__prev}return{value:void 0,done:!0}},t}(F);function Nt(e,t){return B(e,t[0],t[1])}function Ot(e,t){return{node:e,index:0,__prev:t}}function Rt(e,t,n,r){var o=Object.create(kt);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function jt(){return It||(It=Rt(0))}function Ft(e,t,n){var r,o;if(e._root){var i={value:!1},s={value:!1};if(r=Bt(e._root,e.__ownerID,0,void 0,t,n,i,s),!s.value)return e;o=e.size+(i.value?n===a?-1:1:0)}else{if(n===a)return e;o=1,r=new zt(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Rt(o,r):jt()}function Bt(e,t,n,r,o,i,l,c){return e?e.update(t,n,r,o,i,l,c):i===a?e:(s(c),s(l),new Tt(t,r,[o,i]))}function Lt(e){return e.constructor===Tt||e.constructor===Dt}function Vt(e,t,n,r,o){if(e.keyHash===r)return new Dt(t,r,[e.entry,o]);var a,s=(0===n?e.keyHash:e.keyHash>>>n)&i,l=(0===n?r:r>>>n)&i,c=s===l?[Vt(e,t,n+5,r,o)]:(a=new Tt(t,r,o),s<l?[e,a]:[a,e]);return new Pt(t,1<<s|1<<l,c)}function Kt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Ht(e,t,n,r){var o=r?e:Ue(e);return o[t]=n,o}var $t=8,Ut=16,Wt=8,qt="@@__IMMUTABLE_LIST__@@";function Gt(e){return Boolean(e&&e[qt])}var Zt=function(e){function t(t){var n=nn();if(null==t)return n;if(Gt(t))return t;var r=e(t),i=r.size;return 0===i?n:(qe(i),i>0&&i<o?tn(0,i,5,null,new Xt(r.toArray())):n.withMutations((function(e){e.setSize(i),r.forEach((function(t,n){return e.set(n,t)}))})))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=u(this,e))>=0&&e<this.size){var n=an(this,e+=this._origin);return n&&n.array[e&i]}return t},t.prototype.set=function(e,t){return function(e,t,n){if(t=u(e,t),t!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?sn(e,t).set(0,n):sn(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i={value:!1};t>=ln(e._capacity)?r=rn(r,e.__ownerID,0,t,n,i):o=rn(o,e.__ownerID,e._level,t,n,i);if(!i.value)return e;if(e.__ownerID)return e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e;return tn(e._origin,e._capacity,e._level,o,r)}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.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):nn()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){sn(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},t.prototype.pop=function(){return sn(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){sn(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},t.prototype.shift=function(){return sn(this,1)},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var o=t[r],i=e("string"!=typeof o&&V(o)?o:[o]);0!==i.size&&n.push(i)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations((function(e){n.forEach((function(t){return t.forEach((function(t){return e.push(t)}))}))})):this.constructor(n[0])},t.prototype.setSize=function(e){return sn(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){for(var o=0;o<n.size;o++)r.set(o,e.call(t,r.get(o),o,r))}))},t.prototype.slice=function(e,t){var n=this.size;return p(e,t,n)?this:sn(this,h(e,n),f(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=en(this,t);return new F((function(){var o=r();return o===Qt?{value:void 0,done:!0}:B(e,t?--n:n++,o)}))},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,o=en(this,t);(n=o())!==Qt&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?tn(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?nn():(this.__ownerID=e,this.__altered=!1,this)},t}(k);Zt.isList=Gt;var Yt=Zt.prototype;Yt[qt]=!0,Yt[r]=Yt.remove,Yt.merge=Yt.concat,Yt.setIn=at,Yt.deleteIn=Yt.removeIn=lt,Yt.update=ut,Yt.updateIn=dt,Yt.mergeIn=bt,Yt.mergeDeepIn=wt,Yt.withMutations=xt,Yt.wasAltered=Ct,Yt.asImmutable=_t,Yt["@@transducer/init"]=Yt.asMutable=St,Yt["@@transducer/step"]=function(e,t){return e.push(t)},Yt["@@transducer/result"]=function(e){return e.asImmutable()};var Xt=function(e,t){this.array=e,this.ownerID=t};Xt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&i;if(r>=this.array.length)return new Xt([],e);var o,a=0===r;if(t>0){var s=this.array[r];if((o=s&&s.removeBefore(e,t-5,n))===s&&a)return this}if(a&&!o)return this;var l=on(this,e);if(!a)for(var c=0;c<r;c++)l.array[c]=void 0;return o&&(l.array[r]=o),l},Xt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&i;if(o>=this.array.length)return this;if(t>0){var a=this.array[o];if((r=a&&a.removeAfter(e,t-5,n))===a&&o===this.array.length-1)return this}var s=on(this,e);return s.array.splice(o+1),r&&(s.array[o]=r),s};var Jt,Qt={};function en(e,t){var n=e._origin,r=e._capacity,i=ln(r),a=e._tail;return s(e._root,e._level,0);function s(e,l,c){return 0===l?function(e,s){var l=s===i?a&&a.array:e&&e.array,c=s>n?0:n-s,u=r-s;u>o&&(u=o);return function(){if(c===u)return Qt;var e=t?--u:c++;return l&&l[e]}}(e,c):function(e,i,a){var l,c=e&&e.array,u=a>n?0:n-a>>i,d=1+(r-a>>i);d>o&&(d=o);return function(){for(;;){if(l){var e=l();if(e!==Qt)return e;l=null}if(u===d)return Qt;var n=t?--d:u++;l=s(c&&c[n],i-5,a+(n<<i))}}}(e,l,c)}}function tn(e,t,n,r,o,i,a){var s=Object.create(Yt);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function nn(){return Jt||(Jt=tn(0,0,5))}function rn(e,t,n,r,o,a){var l,c=r>>>n&i,u=e&&c<e.array.length;if(!u&&void 0===o)return e;if(n>0){var d=e&&e.array[c],p=rn(d,t,n-5,r,o,a);return p===d?e:((l=on(e,t)).array[c]=p,l)}return u&&e.array[c]===o?e:(a&&s(a),l=on(e,t),void 0===o&&c===l.array.length-1?l.array.pop():l.array[c]=o,l)}function on(e,t){return t&&e&&t===e.ownerID?e:new Xt(e?e.array.slice():[],t)}function an(e,t){if(t>=ln(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&i],r-=5;return n}}function sn(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new l,o=e._origin,a=e._capacity,s=o+t,c=void 0===n?a:n<0?a+n:o+n;if(s===o&&c===a)return e;if(s>=c)return e.clear();for(var u=e._level,d=e._root,p=0;s+p<0;)d=new Xt(d&&d.array.length?[void 0,d]:[],r),p+=1<<(u+=5);p&&(s+=p,o+=p,c+=p,a+=p);for(var h=ln(a),f=ln(c);f>=1<<u+5;)d=new Xt(d&&d.array.length?[d]:[],r),u+=5;var m=e._tail,g=f<h?an(e,c-1):f>h?new Xt([],r):m;if(m&&f>h&&s<a&&m.array.length){for(var v=d=on(d,r),y=u;y>5;y-=5){var b=h>>>y&i;v=v.array[b]=on(v.array[b],r)}v.array[h>>>5&i]=m}if(c<a&&(g=g&&g.removeAfter(r,0,c)),s>=f)s-=f,c-=f,u=5,d=null,g=g&&g.removeBefore(r,0,s);else if(s>o||f<h){for(p=0;d;){var w=s>>>u&i;if(w!==f>>>u&i)break;w&&(p+=(1<<u)*w),u-=5,d=d.array[w]}d&&s>o&&(d=d.removeBefore(r,u,s-p)),d&&f<h&&(d=d.removeAfter(r,u,f-p)),p&&(s-=p,c-=p)}return e.__ownerID?(e.size=c-s,e._origin=s,e._capacity=c,e._level=u,e._root=d,e._tail=g,e.__hash=void 0,e.__altered=!0,e):tn(s,c,u,d,g)}function ln(e){return e<o?0:e-1>>>5<<5}var cn,un=function(e){function t(e){return null==e?pn():se(e)?e:pn().withMutations((function(t){var n=E(e);qe(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):pn()},t.prototype.set=function(e,t){return hn(this,e,t)},t.prototype.remove=function(e){return hn(this,e,a)},t.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?dn(t,n,e,this.__hash):0===this.size?pn():(this.__ownerID=e,this._map=t,this._list=n,this)},t}(Et);function dn(e,t,n,r){var o=Object.create(un.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function pn(){return cn||(cn=dn(jt(),nn()))}function hn(e,t,n){var r,i,s=e._map,l=e._list,c=s.get(t),u=void 0!==c;if(n===a){if(!u)return e;l.size>=o&&l.size>=2*s.size?(r=(i=l.filter((function(e,t){return void 0!==e&&c!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=s.remove(t),i=c===l.size-1?l.pop():l.set(c,void 0))}else if(u){if(n===l.get(c)[1])return e;r=s,i=l.set(c,[t,n])}else r=s.set(t,l.size),i=l.set(l.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):dn(r,i)}un.isOrderedMap=se,un.prototype[M]=!0,un.prototype[r]=un.prototype.remove;var fn="@@__IMMUTABLE_STACK__@@";function mn(e){return Boolean(e&&e[fn])}var gn=function(e){function t(e){return null==e?wn():mn(e)?e:wn().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=u(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):bn(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&mn(t))return t;qe(t.size);var n=this.size,r=this._head;return t.__iterate((function(e){n++,r={value:e,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):bn(n,r)},t.prototype.pop=function(){return this.slice(1)},t.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):wn()},t.prototype.slice=function(t,n){if(p(t,n,this.size))return this;var r=h(t,this.size);if(f(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var o=this.size-r,i=this._head;r--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):bn(o,i)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?bn(this.size,this._head,e,this.__hash):0===this.size?wn():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new X(this.toArray()).__iterate((function(t,r){return e(t,r,n)}),t);for(var r=0,o=this._head;o&&!1!==e(o.value,r++,n);)o=o.next;return r},t.prototype.__iterator=function(e,t){if(t)return new X(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new F((function(){if(r){var t=r.value;return r=r.next,B(e,n++,t)}return{value:void 0,done:!0}}))},t}(k);gn.isStack=mn;var vn,yn=gn.prototype;function bn(e,t,n,r){var o=Object.create(yn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function wn(){return vn||(vn=bn(0))}yn[fn]=!0,yn.shift=yn.pop,yn.unshift=yn.push,yn.unshiftAll=yn.pushAll,yn.withMutations=xt,yn.wasAltered=Ct,yn.asImmutable=_t,yn["@@transducer/init"]=yn.asMutable=St,yn["@@transducer/step"]=function(e,t){return e.unshift(t)},yn["@@transducer/result"]=function(e){return e.asImmutable()};var xn="@@__IMMUTABLE_SET__@@";function Sn(e){return Boolean(e&&e[xn])}function _n(e){return Sn(e)&&N(e)}function Cn(e,t){if(e===t)return!0;if(!y(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||w(e)!==w(t)||S(e)!==S(t)||N(e)!==N(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!_(e);if(N(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ce(o[1],e)&&(n||ce(o[0],t))}))&&r.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 s=!0,l=t.__iterate((function(t,r){if(n?!e.has(t):o?!ce(t,e.get(r,a)):!ce(e.get(r,a),t))return s=!1,!1}));return s&&e.size===l}function En(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function kn(e){if(!e||"object"!=typeof e)return e;if(!y(e)){if(!Ye(e))return e;e=q(e)}if(w(e)){var t={};return e.__iterate((function(e,n){t[n]=kn(e)})),t}var n=[];return e.__iterate((function(e){n.push(kn(e))})),n}var zn=function(e){function t(t){return null==t?In():Sn(t)&&!N(t)?t:In().withMutations((function(n){var r=e(t);qe(r.size),r.forEach((function(e){return n.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(E(e).keySeq())},t.intersect=function(e){return(e=C(e).toArray()).length?An.intersect.apply(t(e.pop()),e):In()},t.union=function(e){return(e=C(e).toArray()).length?An.union.apply(t(e.pop()),e):In()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Dn(this,this._map.set(e,e))},t.prototype.remove=function(e){return Dn(this,this._map.remove(e))},t.prototype.clear=function(){return Dn(this,this._map.clear())},t.prototype.map=function(e,t){var n=this;return Dn(this,this._map.map((function(t){return e(t,t,n)}),t))},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(n){for(var r=0;r<t.length;r++)e(t[r]).forEach((function(e){return n.add(e)}))})):this.constructor(t[0])},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.every((function(t){return t.includes(e)}))||r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.some((function(t){return t.includes(e)}))&&r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.sort=function(e){return Yn(Oe(this,e))},t.prototype.sortBy=function(e,t){return Yn(Oe(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(z);zn.isSet=Sn;var Pn,An=zn.prototype;function Dn(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 Tn(e,t){var n=Object.create(An);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function In(){return Pn||(Pn=Tn(jt()))}An[xn]=!0,An[r]=An.remove,An.merge=An.concat=An.union,An.withMutations=xt,An.asImmutable=_t,An["@@transducer/init"]=An.asMutable=St,An["@@transducer/step"]=function(e,t){return e.add(t)},An["@@transducer/result"]=function(e){return e.asImmutable()},An.__empty=In,An.__make=Tn;var Mn,Nn=function(e){function t(e,n,r){if(!(this instanceof t))return new t(e,n,r);if(We(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===n&&(n=1/0),r=void 0===r?1:Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),0===this.size){if(Mn)return Mn;Mn=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},t.prototype.get=function(e,t){return this.has(e)?this._start+u(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return p(e,n,this.size)?this:(e=h(e,this.size),(n=f(n,this.size))<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,o=t?this._start+(n-1)*r:this._start,i=0;i!==n&&!1!==e(o,t?n-++i:i++,this);)o+=t?-r:r;return i},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,o=t?this._start+(n-1)*r:this._start,i=0;return new F((function(){if(i===n)return{value:void 0,done:!0};var a=o;return o+=t?-r:r,B(e,t?n-++i:i++,a)}))},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:Cn(this,e)},t}(Z);function On(e,t,n){for(var r=Ge(t),o=0;o!==r.length;)if((e=Qe(e,r[o++],a))===a)return n;return e}function Rn(e,t){return On(this,e,t)}function jn(e,t){return On(e,t,a)!==a}function Fn(){qe(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e}C.isIterable=y,C.isKeyed=w,C.isIndexed=S,C.isAssociative=_,C.isOrdered=N,C.Iterator=F,En(C,{toArray:function(){qe(this.size);var e=new Array(this.size||0),t=w(this),n=0;return this.__iterate((function(r,o){e[n++]=t?[o,r]:r})),e},toIndexedSeq:function(){return new Ee(this)},toJS:function(){return kn(this)},toKeyedSeq:function(){return new Ce(this,!0)},toMap:function(){return Et(this.toKeyedSeq())},toObject:Fn,toOrderedMap:function(){return un(this.toKeyedSeq())},toOrderedSet:function(){return Yn(w(this)?this.valueSeq():this)},toSet:function(){return zn(w(this)?this.valueSeq():this)},toSetSeq:function(){return new ke(this)},toSeq:function(){return S(this)?this.toIndexedSeq():w(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return gn(w(this)?this.valueSeq():this)},toList:function(){return Zt(w(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Be(this,function(e,t){var n=w(e),r=[e].concat(t).map((function(e){return y(e)?n&&(e=E(e)):e=n?ne(e):re(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var o=r[0];if(o===e||n&&w(o)||S(e)&&S(o))return o}var i=new X(r);return n?i=i.toKeyedSeq():S(e)||(i=i.toSetSeq()),(i=i.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),i}(this,e))},includes:function(e){return this.some((function(t){return ce(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){qe(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return Be(this,Te(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return qe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){qe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return Be(this,Ae(this,e,t))},reduce:function(e,t,n){return Kn(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return Kn(this,e,t,n,arguments.length<2,!0)},reverse:function(){return Be(this,De(this,!0))},slice:function(e,t){return Be(this,Ie(this,e,t,!0))},some:function(e,t){return!this.every(Un(e),t)},sort:function(e){return Be(this,Oe(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 c(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Et().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return Cn(this,e)},entrySeq:function(){var e=this;if(e._cache)return new X(e._cache);var t=e.toSeq().map($n).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Un(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,o,i){if(e.call(t,n,o,i))return r=[o,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(d,null,e)},flatMap:function(e,t){return Be(this,function(e,t,n){var r=Ve(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Be(this,Ne(this,e,!0))},fromEntrySeq:function(){return new ze(this)},get:function(e,t){return this.find((function(t,n){return ce(n,e)}),void 0,t)},getIn:Rn,groupBy:function(e,t){return function(e,t,n){var r=w(e),o=(N(e)?un():Et()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=Ve(e);return o.map((function(t){return Be(e,i(t))})).asImmutable()}(this,e,t)},has:function(e){return this.get(e,a)!==a},hasIn:function(e){return jn(this,e)},isSubset:function(e){return e="function"==typeof e.includes?e:C(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:C(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return ce(t,e)}))},keySeq:function(){return this.toSeq().map(Hn).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Re(this,e)},maxBy:function(e,t){return Re(this,t,e)},min:function(e){return Re(this,e?Wn(e):Gn)},minBy:function(e,t){return Re(this,t?Wn(t):Gn,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return Be(this,Me(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Un(e),t)},sortBy:function(e,t){return Be(this,Oe(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return Be(this,function(e,t,n){var r=Ke(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(2,o),s=!0;return new F((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,l=o[0],c=o[1];return t.call(n,c,l,i)?2===r?e:B(r,l,c,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Un(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=N(e),n=w(e),r=t?1:0;return function(e,t){return t=ue(t,3432918353),t=ue(t<<15|t>>>-15,461845907),t=ue(t<<13|t>>>-13,5),t=t+3864292196^e,t=ue(t^t>>>16,2246822507),t=ue(t^t>>>13,3266489909),t=de(t^t>>>16),t}(e.__iterate(n?t?function(e,t){r=31*r+Zn(pe(e),pe(t))|0}:function(e,t){r=r+Zn(pe(e),pe(t))|0}:t?function(e){r=31*r+pe(e)|0}:function(e){r=r+pe(e)|0}),r)}(this))}});var Bn=C.prototype;Bn[v]=!0,Bn[j]=Bn.values,Bn.toJSON=Bn.toArray,Bn.__toStringMapper=Xe,Bn.inspect=Bn.toSource=function(){return this.toString()},Bn.chain=Bn.flatMap,Bn.contains=Bn.includes,En(E,{flip:function(){return Be(this,Pe(this))},mapEntries:function(e,t){var n=this,r=0;return Be(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Be(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Ln=E.prototype;Ln[b]=!0,Ln[j]=Bn.entries,Ln.toJSON=Fn,Ln.__toStringMapper=function(e,t){return Xe(t)+": "+Xe(e)},En(k,{toKeyedSeq:function(){return new Ce(this,!1)},filter:function(e,t){return Be(this,Te(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[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 Be(this,De(this,!1))},slice:function(e,t){return Be(this,Ie(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=h(e,e<0?this.count():this.size);var r=this.slice(0,e);return Be(this,1===n?r:r.concat(Ue(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return Be(this,Ne(this,e,!1))},get:function(e,t){return(e=u(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=u(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Be(this,function(e,t){var n=Ke(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(1,r),a=0;return new F((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?B(n,a++,t):B(n,a++,o.value,o)}))},n}(this,e))},interleave:function(){var e=[this].concat(Ue(arguments)),t=Fe(this.toSeq(),Z.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Be(this,n)},keySeq:function(){return Nn(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return Be(this,Me(this,e,t,!1))},zip:function(){return Be(this,Fe(this,qn,[this].concat(Ue(arguments))))},zipAll:function(){return Be(this,Fe(this,qn,[this].concat(Ue(arguments)),!0))},zipWith:function(e){var t=Ue(arguments);return t[0]=this,Be(this,Fe(this,e,t))}});var Vn=k.prototype;function Kn(e,t,n,r,o,i){return qe(e.size),e.__iterate((function(e,i,a){o?(o=!1,n=e):n=t.call(r,n,e,i,a)}),i),n}function Hn(e,t){return t}function $n(e,t){return[t,e]}function Un(e){return function(){return!e.apply(this,arguments)}}function Wn(e){return function(){return-e.apply(this,arguments)}}function qn(){return Ue(arguments)}function Gn(e,t){return e<t?1:e>t?-1:0}function Zn(e,t){return e^t+2654435769+(e<<6)+(e>>2)}Vn[x]=!0,Vn[M]=!0,En(z,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),z.prototype.has=Bn.includes,z.prototype.contains=z.prototype.includes,En(G,E.prototype),En(Z,k.prototype),En(Y,z.prototype);var Yn=function(e){function t(e){return null==e?er():_n(e)?e:er().withMutations((function(t){var n=z(e);qe(n.size),n.forEach((function(e){return t.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(E(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(zn);Yn.isOrderedSet=_n;var Xn,Jn=Yn.prototype;function Qn(e,t){var n=Object.create(Jn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function er(){return Xn||(Xn=Qn(pn()))}Jn[M]=!0,Jn.zip=Vn.zip,Jn.zipWith=Vn.zipWith,Jn.__empty=er,Jn.__make=Qn;var tr=function(e,t){var n,r=function(i){var a=this;if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var s=Object.keys(e),l=o._indices={};o._name=t,o._keys=s,o._defaultValues=e;for(var c=0;c<s.length;c++){var u=s[c];l[u]=c,o[u]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+or(a)+' with property "'+u+'" since that property name is part of the Record API.'):ar(o,u)}}this.__ownerID=void 0,this._values=Zt().withMutations((function(e){e.setSize(a._keys.length),E(i).forEach((function(t,n){e.set(a._indices[n],t===a._defaultValues[n]?void 0:t)}))}))},o=r.prototype=Object.create(nr);return o.constructor=r,r};tr.prototype.toString=function(){for(var e,t=or(this)+" { ",n=this._keys,r=0,o=n.length;r!==o;r++)t+=(r?", ":"")+(e=n[r])+": "+Xe(this.get(e));return t+" }"},tr.prototype.equals=function(e){return this===e||e&&this._keys===e._keys&&ir(this).equals(ir(e))},tr.prototype.hashCode=function(){return ir(this).hashCode()},tr.prototype.has=function(e){return this._indices.hasOwnProperty(e)},tr.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return void 0===r?this._defaultValues[e]:r},tr.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return rr(this,n)}return this},tr.prototype.remove=function(e){return this.set(e)},tr.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:rr(this,e)},tr.prototype.wasAltered=function(){return this._values.wasAltered()},tr.prototype.toSeq=function(){return ir(this)},tr.prototype.toJS=function(){return kn(this)},tr.prototype.entries=function(){return this.__iterator(2)},tr.prototype.__iterator=function(e,t){return ir(this).__iterator(e,t)},tr.prototype.__iterate=function(e,t){return ir(this).__iterate(e,t)},tr.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?rr(this,t,e):(this.__ownerID=e,this._values=t,this)},tr.isRecord=T,tr.getDescriptiveName=or;var nr=tr.prototype;function rr(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function or(e){return e._name||e.constructor.name||"Record"}function ir(e){return ne(e._keys.map((function(t){return[t,e.get(t)]})))}function ar(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){We(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(e){}}nr[D]=!0,nr[r]=nr.remove,nr.deleteIn=nr.removeIn=lt,nr.getIn=Rn,nr.hasIn=Bn.hasIn,nr.merge=pt,nr.mergeWith=ht,nr.mergeIn=bt,nr.mergeDeep=vt,nr.mergeDeepWith=yt,nr.mergeDeepIn=wt,nr.setIn=at,nr.update=ut,nr.updateIn=dt,nr.withMutations=xt,nr.asMutable=St,nr.asImmutable=_t,nr[j]=nr.entries,nr.toJSON=nr.toObject=Bn.toObject,nr.inspect=nr.toSource=function(){return this.toString()};var sr;!function(e){function t(e,n){if(!(this instanceof t))return new t(e,n);if(this._value=e,this.size=void 0===n?1/0:Math.max(0,n),0===this.size){if(sr)return sr;sr=this}}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},t.prototype.get=function(e,t){return this.has(e)?this._value:t},t.prototype.includes=function(e){return ce(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return p(e,n,r)?this:new t(this._value,f(n,r)-h(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return ce(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return ce(this._value,e)?this.size:-1},t.prototype.__iterate=function(e,t){for(var n=this.size,r=0;r!==n&&!1!==e(this._value,t?n-++r:r++,this););return r},t.prototype.__iterator=function(e,t){var n=this,r=this.size,o=0;return new F((function(){return o===r?{value:void 0,done:!0}:B(e,t?r-++o:o++,n._value)}))},t.prototype.equals=function(e){return e instanceof t?ce(this._value,e._value):Cn(e)}}(Z);function lr(e,t){return cr([],t||ur,e,"",t&&t.length>2?[]:void 0,{"":e})}function cr(e,t,n,r,o,i){var a=Array.isArray(n)?Z:Ze(n)?G:null;if(a){if(~e.indexOf(n))throw new TypeError("Cannot convert circular structure to Immutable");e.push(n),o&&""!==r&&o.push(r);var s=t.call(i,r,a(n).map((function(r,i){return cr(e,t,r,i,o,n)})),o&&o.slice());return e.pop(),o&&o.pop(),s}return n}function ur(e,t){return w(t)?t.toMap():t.toList()}},57746:(e,t)=>{"use strict";for(var n="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),r={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},o={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:n?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},a=1;a<20;a++)i["f"+a]=111+a;function s(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return l(e,t)})),o=function(e){return r.some((function(t){return c(t,e)}))};return null==n?o:o(n)}function l(e,t){var n=t&&t.byKey,a={},s=(e=e.replace("++","+add")).split("+"),l=s.length;for(var c in r)a[r[c]]=!1;var p=!0,h=!1,f=void 0;try{for(var m,g=s[Symbol.iterator]();!(p=(m=g.next()).done);p=!0){var v=m.value,y=v.endsWith("?")&&v.length>1;y&&(v=v.slice(0,-1));var b=d(v),w=r[b];if(v.length>1&&!w&&!o[v]&&!i[b])throw new TypeError('Unknown modifier: "'+v+'"');1!==l&&w||(n?a.key=b:a.which=u(v)),w&&(a[w]=!y||null)}}catch(e){h=!0,f=e}finally{try{!p&&g.return&&g.return()}finally{if(h)throw f}}return a}function c(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&((null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r))return!1}return!0}function u(e){return e=d(e),i[e]||e.toUpperCase().charCodeAt(0)}function d(e){return e=e.toLowerCase(),e=o[e]||e}t.v_=s,t.Sn=function(e,t){return s(e,{byKey:!0},t)}},31177:(e,t,n)=>{"use strict";function r(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(e){var t,n;return!1!==r(e)&&(void 0===(t=e.constructor)||!1!==r(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}n.d(t,{Q:()=>o})},80018:(e,t,n)=>{"use strict";n.d(t,{o4:()=>F});const r="3.7.7",o=r,i="function"==typeof Buffer,a="function"==typeof TextDecoder?new TextDecoder:void 0,s="function"==typeof TextEncoder?new TextEncoder:void 0,l=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),c=(e=>{let t={};return e.forEach(((e,n)=>t[e]=n)),t})(l),u=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,d=String.fromCharCode.bind(String),p="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),h=e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_")),f=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),m=e=>{let t,n,r,o,i="";const a=e.length%3;for(let a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|o,i+=l[t>>18&63]+l[t>>12&63]+l[t>>6&63]+l[63&t]}return a?i.slice(0,a-3)+"===".substring(a):i},g="function"==typeof btoa?e=>btoa(e):i?e=>Buffer.from(e,"binary").toString("base64"):m,v=i?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let n=0,r=e.length;n<r;n+=4096)t.push(d.apply(null,e.subarray(n,n+4096)));return g(t.join(""))},y=(e,t=!1)=>t?h(v(e)):v(e),b=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?d(192|t>>>6)+d(128|63&t):d(224|t>>>12&15)+d(128|t>>>6&63)+d(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return d(240|t>>>18&7)+d(128|t>>>12&63)+d(128|t>>>6&63)+d(128|63&t)},w=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,x=e=>e.replace(w,b),S=i?e=>Buffer.from(e,"utf8").toString("base64"):s?e=>v(s.encode(e)):e=>g(x(e)),_=(e,t=!1)=>t?h(S(e)):S(e),C=e=>_(e,!0),E=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,k=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return d(55296+(t>>>10))+d(56320+(1023&t));case 3:return d((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return d((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},z=e=>e.replace(E,k),P=e=>{if(e=e.replace(/\s+/g,""),!u.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,n,r,o="";for(let i=0;i<e.length;)t=c[e.charAt(i++)]<<18|c[e.charAt(i++)]<<12|(n=c[e.charAt(i++)])<<6|(r=c[e.charAt(i++)]),o+=64===n?d(t>>16&255):64===r?d(t>>16&255,t>>8&255):d(t>>16&255,t>>8&255,255&t);return o},A="function"==typeof atob?e=>atob(f(e)):i?e=>Buffer.from(e,"base64").toString("binary"):P,D=i?e=>p(Buffer.from(e,"base64")):e=>p(A(e).split("").map((e=>e.charCodeAt(0)))),T=e=>D(M(e)),I=i?e=>Buffer.from(e,"base64").toString("utf8"):a?e=>a.decode(D(e)):e=>z(A(e)),M=e=>f(e.replace(/[-_]/g,(e=>"-"==e?"+":"/"))),N=e=>I(M(e)),O=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),R=function(){const e=(e,t)=>Object.defineProperty(String.prototype,e,O(t));e("fromBase64",(function(){return N(this)})),e("toBase64",(function(e){return _(this,e)})),e("toBase64URI",(function(){return _(this,!0)})),e("toBase64URL",(function(){return _(this,!0)})),e("toUint8Array",(function(){return T(this)}))},j=function(){const e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,O(t));e("toBase64",(function(e){return y(this,e)})),e("toBase64URI",(function(){return y(this,!0)})),e("toBase64URL",(function(){return y(this,!0)}))},F={version:r,VERSION:o,atob:A,atobPolyfill:P,btoa:g,btoaPolyfill:m,fromBase64:N,toBase64:_,encode:_,encodeURI:C,encodeURL:C,utob:x,btou:z,decode:N,isValid:e=>{if("string"!=typeof e)return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:y,toUint8Array:T,extendString:R,extendUint8Array:j,extendBuiltins:()=>{R(),j()}}},20181:(e,t,n)=>{var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype.toString,p=Math.max,h=Math.min,f=function(){return u.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=i.test(e);return n||a.test(e)?s(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function b(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function w(){var e=f();if(b(e))return x(e);s=setTimeout(w,function(e){var n=t-(e-l);return d?h(n,i-(e-c)):n}(e))}function x(e){return s=void 0,v&&r?y(e):(r=o=void 0,a)}function S(){var e=f(),n=b(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(w,t),u?y(e):a}(l);if(d)return s=setTimeout(w,t),y(l)}return void 0===s&&(s=setTimeout(w,t)),a}return t=g(t)||0,m(n)&&(u=!!n.leading,i=(d="maxWait"in n)?p(g(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),S.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},S.flush=function(){return void 0===s?a:x(f())},S}},35798:(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",s="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",d="[object Map]",p="[object Number]",h="[object Object]",f="[object Promise]",m="[object RegExp]",g="[object Set]",v="[object String]",y="[object Symbol]",b="[object WeakMap]",w="[object ArrayBuffer]",x="[object DataView]",S=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_=/^\w*$/,C=/^\./,E=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,k=/\\(\\)?/g,z=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,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[i]=A[a]=A[w]=A[s]=A[x]=A[l]=A[c]=A[u]=A[d]=A[p]=A[h]=A[m]=A[g]=A[v]=A[b]=!1;var D="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,T="object"==typeof self&&self&&self.Object===Object&&self,I=D||T||Function("return this")(),M=t&&!t.nodeType&&t,N=M&&e&&!e.nodeType&&e,O=N&&N.exports===M&&D.process,R=function(){try{return O&&O.binding("util")}catch(e){}}(),j=R&&R.isTypedArray;function F(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function B(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function L(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function V(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var K,H=Array.prototype,$=Function.prototype,U=Object.prototype,W=I["__core-js_shared__"],q=(K=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||""))?"Symbol(src)_1."+K:"",G=$.toString,Z=U.hasOwnProperty,Y=U.toString,X=RegExp("^"+G.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),J=I.Symbol,Q=I.Uint8Array,ee=U.propertyIsEnumerable,te=H.splice,ne=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),re=Oe(I,"DataView"),oe=Oe(I,"Map"),ie=Oe(I,"Promise"),ae=Oe(I,"Set"),se=Oe(I,"WeakMap"),le=Oe(Object,"create"),ce=He(re),ue=He(oe),de=He(ie),pe=He(ae),he=He(se),fe=J?J.prototype:void 0,me=fe?fe.valueOf:void 0,ge=fe?fe.toString:void 0;function ve(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ye(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function be(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function we(e){var t=-1,n=e?e.length:0;for(this.__data__=new be;++t<n;)this.add(e[t])}function xe(e){this.__data__=new ye(e)}function Se(e,t){var n=qe(e)||We(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Z.call(e,i)||o&&("length"==i||je(i,r))||n.push(i);return n}function _e(e,t){for(var n=e.length;n--;)if(Ue(e[n][0],t))return n;return-1}ve.prototype.clear=function(){this.__data__=le?le(null):{}},ve.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},ve.prototype.get=function(e){var t=this.__data__;if(le){var n=t[e];return n===r?void 0:n}return Z.call(t,e)?t[e]:void 0},ve.prototype.has=function(e){var t=this.__data__;return le?void 0!==t[e]:Z.call(t,e)},ve.prototype.set=function(e,t){return this.__data__[e]=le&&void 0===t?r:t,this},ye.prototype.clear=function(){this.__data__=[]},ye.prototype.delete=function(e){var t=this.__data__,n=_e(t,e);return!(n<0)&&(n==t.length-1?t.pop():te.call(t,n,1),!0)},ye.prototype.get=function(e){var t=this.__data__,n=_e(t,e);return n<0?void 0:t[n][1]},ye.prototype.has=function(e){return _e(this.__data__,e)>-1},ye.prototype.set=function(e,t){var n=this.__data__,r=_e(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},be.prototype.clear=function(){this.__data__={hash:new ve,map:new(oe||ye),string:new ve}},be.prototype.delete=function(e){return Ne(this,e).delete(e)},be.prototype.get=function(e){return Ne(this,e).get(e)},be.prototype.has=function(e){return Ne(this,e).has(e)},be.prototype.set=function(e,t){return Ne(this,e).set(e,t),this},we.prototype.add=we.prototype.push=function(e){return this.__data__.set(e,r),this},we.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.clear=function(){this.__data__=new ye},xe.prototype.delete=function(e){return this.__data__.delete(e)},xe.prototype.get=function(e){return this.__data__.get(e)},xe.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ye){var r=n.__data__;if(!oe||r.length<199)return r.push([e,t]),this;n=this.__data__=new be(r)}return n.set(e,t),this};var Ce,Ee=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var s=i[Ce?a:++r];if(!1===t(o[s],s,o))break}return e};function ke(e,t){for(var n=0,r=(t=Fe(t,e)?[t]:Ie(t)).length;null!=e&&n<r;)e=e[Ke(t[n++])];return n&&n==r?e:void 0}function ze(e,t){return null!=e&&t in Object(e)}function Pe(e,t,n,r,o){return e===t||(null==e||null==t||!Xe(e)&&!Je(t)?e!=e&&t!=t:function(e,t,n,r,o,u){var f=qe(e),b=qe(t),S=a,_=a;f||(S=(S=Re(e))==i?h:S);b||(_=(_=Re(t))==i?h:_);var C=S==h&&!B(e),E=_==h&&!B(t),k=S==_;if(k&&!C)return u||(u=new xe),f||tt(e)?Me(e,t,n,r,o,u):function(e,t,n,r,o,i,a){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!r(new Q(e),new Q(t)));case s:case l:case p:return Ue(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case v:return e==t+"";case d:var u=L;case g:var h=2&i;if(u||(u=V),e.size!=t.size&&!h)return!1;var f=a.get(e);if(f)return f==t;i|=1,a.set(e,t);var b=Me(u(e),u(t),r,o,i,a);return a.delete(e),b;case y:if(me)return me.call(e)==me.call(t)}return!1}(e,t,S,n,r,o,u);if(!(2&o)){var z=C&&Z.call(e,"__wrapped__"),P=E&&Z.call(t,"__wrapped__");if(z||P){var A=z?e.value():e,D=P?t.value():t;return u||(u=new xe),n(A,D,r,o,u)}}if(!k)return!1;return u||(u=new xe),function(e,t,n,r,o,i){var a=2&o,s=nt(e),l=s.length,c=nt(t),u=c.length;if(l!=u&&!a)return!1;var d=l;for(;d--;){var p=s[d];if(!(a?p in t:Z.call(t,p)))return!1}var h=i.get(e);if(h&&i.get(t))return h==t;var f=!0;i.set(e,t),i.set(t,e);var m=a;for(;++d<l;){var g=e[p=s[d]],v=t[p];if(r)var y=a?r(v,g,p,t,e,i):r(g,v,p,e,t,i);if(!(void 0===y?g===v||n(g,v,r,o,i):y)){f=!1;break}m||(m="constructor"==p)}if(f&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(f=!1)}return i.delete(e),i.delete(t),f}(e,t,n,r,o,u)}(e,t,Pe,n,r,o))}function Ae(e){return!(!Xe(e)||(t=e,q&&q in t))&&(Ze(e)||B(e)?X:z).test(He(e));var t}function De(e){return"function"==typeof e?e:null==e?rt:"object"==typeof e?qe(e)?function(e,t){if(Fe(e)&&Be(t))return Le(Ke(e),t);return function(n){var r=function(e,t,n){var r=null==e?void 0:ke(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?function(e,t){return null!=e&&function(e,t,n){t=Fe(t,e)?[t]:Ie(t);var r,o=-1,i=t.length;for(;++o<i;){var a=Ke(t[o]);if(!(r=null!=e&&n(e,a)))break;e=e[a]}if(r)return r;i=e?e.length:0;return!!i&&Ye(i)&&je(a,i)&&(qe(e)||We(e))}(e,t,ze)}(n,e):Pe(t,r,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){var t=nt(e),n=t.length;for(;n--;){var r=t[n],o=e[r];t[n]=[r,o,Be(o)]}return t}(e);if(1==t.length&&t[0][2])return Le(t[0][0],t[0][1]);return function(n){return n===e||function(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var l=(s=n[o])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new xe;if(r)var p=r(c,u,l,e,t,d);if(!(void 0===p?Pe(u,c,r,3,d):p))return!1}}return!0}(n,e,t)}}(e):Fe(t=e)?(n=Ke(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return ke(t,e)}}(t);var t,n}function Te(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||U,t!==r)return ne(e);var t,n,r,o=[];for(var i in Object(e))Z.call(e,i)&&"constructor"!=i&&o.push(i);return o}function Ie(e){return qe(e)?e:Ve(e)}function Me(e,t,n,r,o,i){var a=2&o,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var u=-1,d=!0,p=1&o?new we:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var h=e[u],f=t[u];if(r)var m=a?r(f,h,u,t,e,i):r(h,f,u,e,t,i);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!F(t,(function(e,t){if(!p.has(t)&&(h===e||n(h,e,r,o,i)))return p.add(t)}))){d=!1;break}}else if(h!==f&&!n(h,f,r,o,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function Ne(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Oe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ae(n)?n:void 0}var Re=function(e){return Y.call(e)};function je(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||P.test(e))&&e>-1&&e%1==0&&e<t}function Fe(e,t){if(qe(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Qe(e))||(_.test(e)||!S.test(e)||null!=t&&e in Object(t))}function Be(e){return e==e&&!Xe(e)}function Le(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}(re&&Re(new re(new ArrayBuffer(1)))!=x||oe&&Re(new oe)!=d||ie&&Re(ie.resolve())!=f||ae&&Re(new ae)!=g||se&&Re(new se)!=b)&&(Re=function(e){var t=Y.call(e),n=t==h?e.constructor:void 0,r=n?He(n):void 0;if(r)switch(r){case ce:return x;case ue:return d;case de:return f;case pe:return g;case he:return b}return t});var Ve=$e((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Qe(e))return ge?ge.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return C.test(e)&&n.push(""),e.replace(E,(function(e,t,r,o){n.push(r?o.replace(k,"$1"):t||e)})),n}));function Ke(e){if("string"==typeof e||Qe(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function He(e){if(null!=e){try{return G.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function $e(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new($e.Cache||be),n}function Ue(e,t){return e===t||e!=e&&t!=t}function We(e){return function(e){return Je(e)&&Ge(e)}(e)&&Z.call(e,"callee")&&(!ee.call(e,"callee")||Y.call(e)==i)}$e.Cache=be;var qe=Array.isArray;function Ge(e){return null!=e&&Ye(e.length)&&!Ze(e)}function Ze(e){var t=Xe(e)?Y.call(e):"";return t==u||"[object GeneratorFunction]"==t}function Ye(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Xe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Je(e){return!!e&&"object"==typeof e}function Qe(e){return"symbol"==typeof e||Je(e)&&Y.call(e)==y}var et,tt=j?(et=j,function(e){return et(e)}):function(e){return Je(e)&&Ye(e.length)&&!!A[Y.call(e)]};function nt(e){return Ge(e)?Se(e):Te(e)}function rt(e){return e}e.exports=function(e,t){var n={};return t=De(t),function(e,t){e&&Ee(e,t,nt)}(e,(function(e,r,o){n[r]=t(e,r,o)})),n}},55580:(e,t,n)=>{var r=n(56110)(n(9325),"DataView");e.exports=r},21549:(e,t,n)=>{var r=n(22032),o=n(63862),i=n(66721),a=n(12749),s=n(35749);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},80079:(e,t,n)=>{var r=n(63702),o=n(70080),i=n(24739),a=n(48655),s=n(31175);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},68223:(e,t,n)=>{var r=n(56110)(n(9325),"Map");e.exports=r},53661:(e,t,n)=>{var r=n(63040),o=n(17670),i=n(90289),a=n(4509),s=n(72949);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},32804:(e,t,n)=>{var r=n(56110)(n(9325),"Promise");e.exports=r},76545:(e,t,n)=>{var r=n(56110)(n(9325),"Set");e.exports=r},38859:(e,t,n)=>{var r=n(53661),o=n(31380),i=n(51459);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},37217:(e,t,n)=>{var r=n(80079),o=n(51420),i=n(90938),a=n(63605),s=n(29817),l=n(80945);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},51873:(e,t,n)=>{var r=n(9325).Symbol;e.exports=r},37828:(e,t,n)=>{var r=n(9325).Uint8Array;e.exports=r},28303:(e,t,n)=>{var r=n(56110)(n(9325),"WeakMap");e.exports=r},91033:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},63945:e=>{e.exports=function(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}},83729:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},79770:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},70695:(e,t,n)=>{var r=n(78096),o=n(72428),i=n(56449),a=n(3656),s=n(30361),l=n(37167),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),d=!n&&!u&&a(e),p=!n&&!u&&!d&&l(e),h=n||u||d||p,f=h?r(e.length,String):[],m=f.length;for(var g in e)!t&&!c.call(e,g)||h&&("length"==g||d&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||f.push(g);return f}},34932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},14528:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},40882:e=>{e.exports=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}},14248:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},61074:e=>{e.exports=function(e){return e.split("")}},1733:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},87805:(e,t,n)=>{var r=n(43360),o=n(75288);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},16547:(e,t,n)=>{var r=n(43360),o=n(75288),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},26025:(e,t,n)=>{var r=n(75288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},62429:(e,t,n)=>{var r=n(80909);e.exports=function(e,t,n,o){return r(e,(function(e,r,i){t(o,e,n(e),i)})),o}},74733:(e,t,n)=>{var r=n(21791),o=n(95950);e.exports=function(e,t){return e&&r(t,o(t),e)}},43838:(e,t,n)=>{var r=n(21791),o=n(37241);e.exports=function(e,t){return e&&r(t,o(t),e)}},43360:(e,t,n)=>{var r=n(93243);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},9999:(e,t,n)=>{var r=n(37217),o=n(83729),i=n(16547),a=n(74733),s=n(43838),l=n(93290),c=n(23007),u=n(92271),d=n(48948),p=n(27621),h=n(83349),f=n(5861),m=n(76189),g=n(77199),v=n(35529),y=n(56449),b=n(3656),w=n(87730),x=n(23805),S=n(38440),_=n(95950),C=n(37241),E="[object Arguments]",k="[object Function]",z="[object Object]",P={};P[E]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[z]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[k]=P["[object WeakMap]"]=!1,e.exports=function e(t,n,A,D,T,I){var M,N=1&n,O=2&n,R=4&n;if(A&&(M=T?A(t,D,T,I):A(t)),void 0!==M)return M;if(!x(t))return t;var j=y(t);if(j){if(M=m(t),!N)return c(t,M)}else{var F=f(t),B=F==k||"[object GeneratorFunction]"==F;if(b(t))return l(t,N);if(F==z||F==E||B&&!T){if(M=O||B?{}:v(t),!N)return O?d(t,s(M,t)):u(t,a(M,t))}else{if(!P[F])return T?t:{};M=g(t,F,N)}}I||(I=new r);var L=I.get(t);if(L)return L;I.set(t,M),S(t)?t.forEach((function(r){M.add(e(r,n,A,r,t,I))})):w(t)&&t.forEach((function(r,o){M.set(o,e(r,n,A,o,t,I))}));var V=j?void 0:(R?O?h:p:O?C:_)(t);return o(V||t,(function(r,o){V&&(r=t[o=r]),i(M,o,e(r,n,A,o,t,I))})),M}},39344:(e,t,n)=>{var r=n(23805),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},80909:(e,t,n)=>{var r=n(30641),o=n(38329)(r);e.exports=o},83120:(e,t,n)=>{var r=n(14528),o=n(45891);e.exports=function e(t,n,i,a,s){var l=-1,c=t.length;for(i||(i=o),s||(s=[]);++l<c;){var u=t[l];n>0&&i(u)?n>1?e(u,n-1,i,a,s):r(s,u):a||(s[s.length]=u)}return s}},86649:(e,t,n)=>{var r=n(83221)();e.exports=r},30641:(e,t,n)=>{var r=n(86649),o=n(95950);e.exports=function(e,t){return e&&r(e,t,o)}},47422:(e,t,n)=>{var r=n(31769),o=n(77797);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},82199:(e,t,n)=>{var r=n(14528),o=n(56449);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},72552:(e,t,n)=>{var r=n(51873),o=n(659),i=n(59350),a=r?r.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)}},28077:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},27534:(e,t,n)=>{var r=n(72552),o=n(40346);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},60270:(e,t,n)=>{var r=n(87068),o=n(40346);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},87068:(e,t,n)=>{var r=n(37217),o=n(25911),i=n(21986),a=n(50689),s=n(5861),l=n(56449),c=n(3656),u=n(37167),d="[object Arguments]",p="[object Array]",h="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=l(e),b=l(t),w=y?p:s(e),x=b?p:s(t),S=(w=w==d?h:w)==h,_=(x=x==d?h:x)==h,C=w==x;if(C&&c(e)){if(!c(t))return!1;y=!0,S=!1}if(C&&!S)return v||(v=new r),y||u(e)?o(e,t,n,m,g,v):i(e,t,w,n,m,g,v);if(!(1&n)){var E=S&&f.call(e,"__wrapped__"),k=_&&f.call(t,"__wrapped__");if(E||k){var z=E?e.value():e,P=k?t.value():t;return v||(v=new r),g(z,P,n,m,v)}}return!!C&&(v||(v=new r),a(e,t,n,m,g,v))}},29172:(e,t,n)=>{var r=n(5861),o=n(40346);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},41799:(e,t,n)=>{var r=n(37217),o=n(60270);e.exports=function(e,t,n,i){var a=n.length,s=a,l=!i;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=n[a])[0],d=e[u],p=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var h=new r;if(i)var f=i(d,p,u,e,t,h);if(!(void 0===f?o(p,d,3,i,h):f))return!1}}return!0}},45083:(e,t,n)=>{var r=n(1882),o=n(87296),i=n(23805),a=n(47473),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:s).test(a(e))}},16038:(e,t,n)=>{var r=n(5861),o=n(40346);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},4901:(e,t,n)=>{var r=n(72552),o=n(30294),i=n(40346),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[r(e)]}},15389:(e,t,n)=>{var r=n(93663),o=n(87978),i=n(83488),a=n(56449),s=n(50583);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},88984:(e,t,n)=>{var r=n(55527),o=n(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},72903:(e,t,n)=>{var r=n(23805),o=n(55527),i=n(90181),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},5128:(e,t,n)=>{var r=n(80909),o=n(64894);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}},93663:(e,t,n)=>{var r=n(41799),o=n(10776),i=n(67197);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},87978:(e,t,n)=>{var r=n(60270),o=n(58156),i=n(80631),a=n(28586),s=n(30756),l=n(67197),c=n(77797);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},85250:(e,t,n)=>{var r=n(37217),o=n(87805),i=n(86649),a=n(42824),s=n(23805),l=n(37241),c=n(14974);e.exports=function e(t,n,u,d,p){t!==n&&i(n,(function(i,l){if(p||(p=new r),s(i))a(t,n,l,u,e,d,p);else{var h=d?d(c(t,l),i,l+"",t,n,p):void 0;void 0===h&&(h=i),o(t,l,h)}}),l)}},42824:(e,t,n)=>{var r=n(87805),o=n(93290),i=n(71961),a=n(23007),s=n(35529),l=n(72428),c=n(56449),u=n(83693),d=n(3656),p=n(1882),h=n(23805),f=n(11331),m=n(37167),g=n(14974),v=n(69884);e.exports=function(e,t,n,y,b,w,x){var S=g(e,n),_=g(t,n),C=x.get(_);if(C)r(e,n,C);else{var E=w?w(S,_,n+"",e,t,x):void 0,k=void 0===E;if(k){var z=c(_),P=!z&&d(_),A=!z&&!P&&m(_);E=_,z||P||A?c(S)?E=S:u(S)?E=a(S):P?(k=!1,E=o(_,!0)):A?(k=!1,E=i(_,!0)):E=[]:f(_)||l(_)?(E=S,l(S)?E=v(S):h(S)&&!p(S)||(E=s(_))):k=!1}k&&(x.set(_,E),b(E,_,y,w,x),x.delete(_)),r(e,n,E)}}},76001:(e,t,n)=>{var r=n(97420),o=n(80631);e.exports=function(e,t){return r(e,t,(function(t,n){return o(e,n)}))}},97420:(e,t,n)=>{var r=n(47422),o=n(73170),i=n(31769);e.exports=function(e,t,n){for(var a=-1,s=t.length,l={};++a<s;){var c=t[a],u=r(e,c);n(u,c)&&o(l,i(c,e),u)}return l}},47237:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},17255:(e,t,n)=>{var r=n(47422);e.exports=function(e){return function(t){return r(t,e)}}},54552:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},69302:(e,t,n)=>{var r=n(83488),o=n(56757),i=n(32865);e.exports=function(e,t){return i(o(e,t,r),e+"")}},73170:(e,t,n)=>{var r=n(16547),o=n(31769),i=n(30361),a=n(23805),s=n(77797);e.exports=function(e,t,n,l){if(!a(e))return e;for(var c=-1,u=(t=o(t,e)).length,d=u-1,p=e;null!=p&&++c<u;){var h=s(t[c]),f=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return e;if(c!=d){var m=p[h];void 0===(f=l?l(m,h,p):void 0)&&(f=a(m)?m:i(t[c+1])?[]:{})}r(p,h,f),p=p[h]}return e}},19570:(e,t,n)=>{var r=n(37334),o=n(93243),i=n(83488),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},25160:e=>{e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},78096:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},77556:(e,t,n)=>{var r=n(51873),o=n(34932),i=n(56449),a=n(44394),s=r?r.prototype:void 0,l=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 l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},54128:(e,t,n)=>{var r=n(31800),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},27301:e=>{e.exports=function(e){return function(t){return e(t)}}},19931:(e,t,n)=>{var r=n(31769),o=n(68090),i=n(68969),a=n(77797);e.exports=function(e,t){return t=r(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},30514:(e,t,n)=>{var r=n(34932);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},19219:e=>{e.exports=function(e,t){return e.has(t)}},31769:(e,t,n)=>{var r=n(56449),o=n(28586),i=n(61802),a=n(13222);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},28754:(e,t,n)=>{var r=n(25160);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},49653:(e,t,n)=>{var r=n(37828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},93290:(e,t,n)=>{e=n.nmd(e);var r=n(9325),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},76169:(e,t,n)=>{var r=n(49653);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},73201:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},93736:(e,t,n)=>{var r=n(51873),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},71961:(e,t,n)=>{var r=n(49653);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},23007:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},21791:(e,t,n)=>{var r=n(16547),o=n(43360);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=i?i(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?o(n,c,u):r(n,c,u)}return n}},92271:(e,t,n)=>{var r=n(21791),o=n(4664);e.exports=function(e,t){return r(e,o(e),t)}},48948:(e,t,n)=>{var r=n(21791),o=n(86375);e.exports=function(e,t){return r(e,o(e),t)}},55481:(e,t,n)=>{var r=n(9325)["__core-js_shared__"];e.exports=r},42e3:(e,t,n)=>{var r=n(63945),o=n(62429),i=n(15389),a=n(56449);e.exports=function(e,t){return function(n,s){var l=a(n)?r:o,c=t?t():{};return l(n,e,i(s,2),c)}}},20999:(e,t,n)=>{var r=n(69302),o=n(36800);e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t}))}},38329:(e,t,n)=>{var r=n(64894);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},83221:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},12507:(e,t,n)=>{var r=n(28754),o=n(49698),i=n(63912),a=n(13222);e.exports=function(e){return function(t){t=a(t);var n=o(t)?i(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},45539:(e,t,n)=>{var r=n(40882),o=n(50828),i=n(66645),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(i(o(t).replace(a,"")),e,"")}}},52606:(e,t,n)=>{var r=n(85250),o=n(23805);e.exports=function e(t,n,i,a,s,l){return o(t)&&o(n)&&(l.set(n,t),r(t,n,void 0,e,l),l.delete(n)),t}},53138:(e,t,n)=>{var r=n(11331);e.exports=function(e){return r(e)?void 0:e}},24647:(e,t,n)=>{var r=n(54552)({À:"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",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"});e.exports=r},93243:(e,t,n)=>{var r=n(56110),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},25911:(e,t,n)=>{var r=n(38859),o=n(14248),i=n(19219);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var f=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++f<u;){var v=e[f],y=t[f];if(a)var b=c?a(y,v,f,t,e,l):a(v,y,f,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!o(t,(function(e,t){if(!i(g,t)&&(v===e||s(v,e,n,a,l)))return g.push(t)}))){m=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},21986:(e,t,n)=>{var r=n(51873),o=n(37828),i=n(75288),a=n(25911),s=n(20317),l=n(84247),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,p){switch(n){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 h=s;case"[object Set]":var f=1&r;if(h||(h=l),e.size!=t.size&&!f)return!1;var m=p.get(e);if(m)return m==t;r|=2,p.set(e,t);var g=a(h(e),h(t),r,c,d,p);return p.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},50689:(e,t,n)=>{var r=n(27621),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var p=c[d];if(!(l?p in t:o.call(t,p)))return!1}var h=s.get(e),f=s.get(t);if(h&&f)return h==t&&f==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<u;){var v=e[p=c[d]],y=t[p];if(i)var b=l?i(y,v,p,t,e,s):i(v,y,p,e,t,s);if(!(void 0===b?v===y||a(v,y,n,i,s):b)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(m=!1)}return s.delete(e),s.delete(t),m}},38816:(e,t,n)=>{var r=n(35970),o=n(56757),i=n(32865);e.exports=function(e){return i(o(e,void 0,r),e+"")}},34840:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},27621:(e,t,n)=>{var r=n(82199),o=n(4664),i=n(95950);e.exports=function(e){return r(e,i,o)}},83349:(e,t,n)=>{var r=n(82199),o=n(86375),i=n(37241);e.exports=function(e){return r(e,i,o)}},12651:(e,t,n)=>{var r=n(74218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},10776:(e,t,n)=>{var r=n(30756),o=n(95950);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},56110:(e,t,n)=>{var r=n(45083),o=n(10392);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},28879:(e,t,n)=>{var r=n(74335)(Object.getPrototypeOf,Object);e.exports=r},659:(e,t,n)=>{var r=n(51873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},4664:(e,t,n)=>{var r=n(79770),o=n(63345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},86375:(e,t,n)=>{var r=n(14528),o=n(28879),i=n(4664),a=n(63345),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},5861:(e,t,n)=>{var r=n(55580),o=n(68223),i=n(32804),a=n(76545),s=n(28303),l=n(72552),c=n(47473),u="[object Map]",d="[object Promise]",p="[object Set]",h="[object WeakMap]",f="[object DataView]",m=c(r),g=c(o),v=c(i),y=c(a),b=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=f||o&&w(new o)!=u||i&&w(i.resolve())!=d||a&&w(new a)!=p||s&&w(new s)!=h)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return f;case g:return u;case v:return d;case y:return p;case b:return h}return t}),e.exports=w},10392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},49326:(e,t,n)=>{var r=n(31769),o=n(72428),i=n(56449),a=n(30361),s=n(30294),l=n(77797);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var p=l(t[c]);if(!(d=null!=e&&n(e,p)))break;e=e[p]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(p,u)&&(i(e)||o(e))}},49698:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},45434: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)}},22032:(e,t,n)=>{var r=n(81042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},63862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},66721:(e,t,n)=>{var r=n(81042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},12749:(e,t,n)=>{var r=n(81042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},35749:(e,t,n)=>{var r=n(81042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},76189:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},77199:(e,t,n)=>{var r=n(49653),o=n(76169),i=n(73201),a=n(93736),s=n(71961);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(e,n);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,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},35529:(e,t,n)=>{var r=n(39344),o=n(28879),i=n(55527);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},45891:(e,t,n)=>{var r=n(51873),o=n(72428),i=n(56449),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},30361:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},36800:(e,t,n)=>{var r=n(75288),o=n(64894),i=n(30361),a=n(23805);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},28586:(e,t,n)=>{var r=n(56449),o=n(44394),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},74218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},87296:(e,t,n)=>{var r,o=n(55481),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},55527:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},30756:(e,t,n)=>{var r=n(23805);e.exports=function(e){return e==e&&!r(e)}},63702:e=>{e.exports=function(){this.__data__=[],this.size=0}},70080:(e,t,n)=>{var r=n(26025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},24739:(e,t,n)=>{var r=n(26025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},48655:(e,t,n)=>{var r=n(26025);e.exports=function(e){return r(this.__data__,e)>-1}},31175:(e,t,n)=>{var r=n(26025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},63040:(e,t,n)=>{var r=n(21549),o=n(80079),i=n(68223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},17670:(e,t,n)=>{var r=n(12651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},90289:(e,t,n)=>{var r=n(12651);e.exports=function(e){return r(this,e).get(e)}},4509:(e,t,n)=>{var r=n(12651);e.exports=function(e){return r(this,e).has(e)}},72949:(e,t,n)=>{var r=n(12651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},20317:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},67197:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},62224:(e,t,n)=>{var r=n(50104);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},81042:(e,t,n)=>{var r=n(56110)(Object,"create");e.exports=r},3650:(e,t,n)=>{var r=n(74335)(Object.keys,Object);e.exports=r},90181:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},86009:(e,t,n)=>{e=n.nmd(e);var r=n(34840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},59350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},74335:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},56757:(e,t,n)=>{var r=n(91033),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=n(l),r(e,this,c)}}},68969:(e,t,n)=>{var r=n(47422),o=n(25160);e.exports=function(e,t){return t.length<2?e:r(e,o(t,0,-1))}},9325:(e,t,n)=>{var r=n(34840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},14974:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},31380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},51459:e=>{e.exports=function(e){return this.__data__.has(e)}},84247:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},32865:(e,t,n)=>{var r=n(19570),o=n(51811)(r);e.exports=o},51811:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},51420:(e,t,n)=>{var r=n(80079);e.exports=function(){this.__data__=new r,this.size=0}},90938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},63605:e=>{e.exports=function(e){return this.__data__.get(e)}},29817:e=>{e.exports=function(e){return this.__data__.has(e)}},80945:(e,t,n)=>{var r=n(80079),o=n(68223),i=n(53661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},63912:(e,t,n)=>{var r=n(61074),o=n(49698),i=n(42054);e.exports=function(e){return o(e)?i(e):r(e)}},61802:(e,t,n)=>{var r=n(62224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},77797:(e,t,n)=>{var r=n(44394);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},47473: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""}},31800:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},42054:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+o+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[i,a,s].join("|")+")"+c+l+")*"),d="(?:"+[i+r+"?",r,a,s,n].join("|")+")",p=RegExp(o+"(?="+o+")|"+d+u,"g");e.exports=function(e){return e.match(p)||[]}},22225:e=>{var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",r="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+",l="["+n+"]",c="["+r+"]",u="[^"+t+i+s+n+r+o+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",h="["+o+"]",f="(?:"+c+"|"+u+")",m="(?:"+h+"|"+u+")",g="(?:['’](?:d|ll|m|re|s|t|ve))?",v="(?:['’](?:D|LL|M|RE|S|T|VE))?",y="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",b="[\\ufe0e\\ufe0f]?",w=b+y+("(?:\\u200d(?:"+["[^"+t+"]",d,p].join("|")+")"+b+y+")*"),x="(?:"+[l,d,p].join("|")+")"+w,S=RegExp([h+"?"+c+"+"+g+"(?="+[a,h,"$"].join("|")+")",m+"+"+v+"(?="+[a,h+f,"$"].join("|")+")",h+"?"+f+"+"+g,h+"+"+v,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,x].join("|"),"g");e.exports=function(e){return e.match(S)||[]}},99084:(e,t,n)=>{var r=n(56449);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return r(e)?e:[e]}},88055:(e,t,n)=>{var r=n(9999);e.exports=function(e){return r(e,5)}},37334:e=>{e.exports=function(e){return function(){return e}}},38221:(e,t,n)=>{var r=n(23805),o=n(10124),i=n(99374),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,p,h,f=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,f=t,d=e.apply(r,n)}function b(e){var n=e-h;return void 0===h||n>=t||n<0||g&&e-f>=u}function w(){var e=o();if(b(e))return x(e);p=setTimeout(w,function(e){var n=t-(e-h);return g?s(n,u-(e-f)):n}(e))}function x(e){return p=void 0,v&&l?y(e):(l=c=void 0,d)}function S(){var e=o(),n=b(e);if(l=arguments,c=this,h=e,n){if(void 0===p)return function(e){return f=e,p=setTimeout(w,t),m?y(e):d}(h);if(g)return clearTimeout(p),p=setTimeout(w,t),y(h)}return void 0===p&&(p=setTimeout(w,t)),d}return t=i(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(i(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),S.cancel=function(){void 0!==p&&clearTimeout(p),f=0,l=h=c=p=void 0},S.flush=function(){return void 0===p?d:x(o())},S}},50828:(e,t,n)=>{var r=n(24647),o=n(13222),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,r).replace(a,"")}},84684:(e,t,n)=>{var r=n(69302),o=n(75288),i=n(36800),a=n(37241),s=Object.prototype,l=s.hasOwnProperty,c=r((function(e,t){e=Object(e);var n=-1,r=t.length,c=r>2?t[2]:void 0;for(c&&i(t[0],t[1],c)&&(r=1);++n<r;)for(var u=t[n],d=a(u),p=-1,h=d.length;++p<h;){var f=d[p],m=e[f];(void 0===m||o(m,s[f])&&!l.call(e,f))&&(e[f]=u[f])}return e}));e.exports=c},74354:(e,t,n)=>{var r=n(91033),o=n(69302),i=n(52606),a=n(6924),s=o((function(e){return e.push(void 0,i),r(a,void 0,e)}));e.exports=s},75288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},35970:(e,t,n)=>{var r=n(83120);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},58156:(e,t,n)=>{var r=n(47422);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},94394:(e,t,n)=>{var r=n(43360),o=n(42e3),i=Object.prototype.hasOwnProperty,a=o((function(e,t,n){i.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=a},80631:(e,t,n)=>{var r=n(28077),o=n(49326);e.exports=function(e,t){return null!=e&&o(e,t,r)}},83488:e=>{e.exports=function(e){return e}},72428:(e,t,n)=>{var r=n(27534),o=n(40346),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},56449:e=>{var t=Array.isArray;e.exports=t},64894:(e,t,n)=>{var r=n(1882),o=n(30294);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},83693:(e,t,n)=>{var r=n(64894),o=n(40346);e.exports=function(e){return o(e)&&r(e)}},3656:(e,t,n)=>{e=n.nmd(e);var r=n(9325),o=n(89935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},62193:(e,t,n)=>{var r=n(88984),o=n(5861),i=n(72428),a=n(56449),s=n(64894),l=n(3656),c=n(55527),u=n(37167),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||l(e)||u(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},2404:(e,t,n)=>{var r=n(60270);e.exports=function(e,t){return r(e,t)}},1882:(e,t,n)=>{var r=n(72552),o=n(23805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},30294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},87730:(e,t,n)=>{var r=n(29172),o=n(27301),i=n(86009),a=i&&i.isMap,s=a?o(a):r;e.exports=s},23805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},40346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},11331:(e,t,n)=>{var r=n(72552),o=n(28879),i=n(40346),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},38440:(e,t,n)=>{var r=n(16038),o=n(27301),i=n(86009),a=i&&i.isSet,s=a?o(a):r;e.exports=s},44394:(e,t,n)=>{var r=n(72552),o=n(40346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},37167:(e,t,n)=>{var r=n(4901),o=n(27301),i=n(86009),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},20249:(e,t,n)=>{var r=n(45539)((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}));e.exports=r},38970:(e,t,n)=>{var r=n(43360),o=n(42e3)((function(e,t,n){r(e,n,t)}));e.exports=o},95950:(e,t,n)=>{var r=n(70695),o=n(88984),i=n(64894);e.exports=function(e){return i(e)?r(e):o(e)}},37241:(e,t,n)=>{var r=n(70695),o=n(72903),i=n(64894);e.exports=function(e){return i(e)?r(e,!0):o(e)}},68090:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},2543:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=16,c=32,u=64,d=128,p=256,h=1/0,f=9007199254740991,m=NaN,g=4294967295,v=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",u],["rearg",p]],y="[object Arguments]",b="[object Array]",w="[object Boolean]",x="[object Date]",S="[object Error]",_="[object Function]",C="[object GeneratorFunction]",E="[object Map]",k="[object Number]",z="[object Object]",P="[object Promise]",A="[object RegExp]",D="[object Set]",T="[object String]",I="[object Symbol]",M="[object WeakMap]",N="[object ArrayBuffer]",O="[object DataView]",R="[object Float32Array]",j="[object Float64Array]",F="[object Int8Array]",B="[object Int16Array]",L="[object Int32Array]",V="[object Uint8Array]",K="[object Uint8ClampedArray]",H="[object Uint16Array]",$="[object Uint32Array]",U=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,Z=/[&<>"']/g,Y=RegExp(G.source),X=RegExp(Z.source),J=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),ae=/^\s+/,se=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Se=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,Ce="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",ze="a-z\\xdf-\\xf6\\xf8-\\xff",Pe="A-Z\\xc0-\\xd6\\xd8-\\xde",Ae="\\ufe0e\\ufe0f",De="\\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",Te="['’]",Ie="["+Ce+"]",Me="["+De+"]",Ne="["+Ee+"]",Oe="\\d+",Re="["+ke+"]",je="["+ze+"]",Fe="[^"+Ce+De+Oe+ke+ze+Pe+"]",Be="\\ud83c[\\udffb-\\udfff]",Le="[^"+Ce+"]",Ve="(?:\\ud83c[\\udde6-\\uddff]){2}",Ke="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+Pe+"]",$e="\\u200d",Ue="(?:"+je+"|"+Fe+")",We="(?:"+He+"|"+Fe+")",qe="(?:['’](?:d|ll|m|re|s|t|ve))?",Ge="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ze="(?:"+Ne+"|"+Be+")"+"?",Ye="["+Ae+"]?",Xe=Ye+Ze+("(?:"+$e+"(?:"+[Le,Ve,Ke].join("|")+")"+Ye+Ze+")*"),Je="(?:"+[Re,Ve,Ke].join("|")+")"+Xe,Qe="(?:"+[Le+Ne+"?",Ne,Ve,Ke,Ie].join("|")+")",et=RegExp(Te,"g"),tt=RegExp(Ne,"g"),nt=RegExp(Be+"(?="+Be+")|"+Qe+Xe,"g"),rt=RegExp([He+"?"+je+"+"+qe+"(?="+[Me,He,"$"].join("|")+")",We+"+"+Ge+"(?="+[Me,He+Ue,"$"].join("|")+")",He+"?"+Ue+"+"+qe,He+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oe,Je].join("|"),"g"),ot=RegExp("["+$e+Ce+Ee+Ae+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],st=-1,lt={};lt[R]=lt[j]=lt[F]=lt[B]=lt[L]=lt[V]=lt[K]=lt[H]=lt[$]=!0,lt[y]=lt[b]=lt[N]=lt[w]=lt[O]=lt[x]=lt[S]=lt[_]=lt[E]=lt[k]=lt[z]=lt[A]=lt[D]=lt[T]=lt[M]=!1;var ct={};ct[y]=ct[b]=ct[N]=ct[O]=ct[w]=ct[x]=ct[R]=ct[j]=ct[F]=ct[B]=ct[L]=ct[E]=ct[k]=ct[z]=ct[A]=ct[D]=ct[T]=ct[I]=ct[V]=ct[K]=ct[H]=ct[$]=!0,ct[S]=ct[_]=ct[M]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,pt=parseInt,ht="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ft="object"==typeof self&&self&&self.Object===Object&&self,mt=ht||ft||Function("return this")(),gt=t&&!t.nodeType&&t,vt=gt&&e&&!e.nodeType&&e,yt=vt&&vt.exports===gt,bt=yt&&ht.process,wt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(e){}}(),xt=wt&&wt.isArrayBuffer,St=wt&&wt.isDate,_t=wt&&wt.isMap,Ct=wt&&wt.isRegExp,Et=wt&&wt.isSet,kt=wt&&wt.isTypedArray;function zt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Pt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function At(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Dt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function It(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Mt(e,t){return!!(null==e?0:e.length)&&Ht(e,t,0)>-1}function Nt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Ot(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Rt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function jt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Ft(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Lt=qt("length");function Vt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Kt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Ht(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Kt(e,Ut,n)}function $t(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Ut(e){return e!=e}function Wt(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:m}function qt(e){return function(t){return null==t?o:t[e]}}function Gt(e){return function(t){return null==e?o:e[t]}}function Zt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Yt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Xt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Jt(e){return e?e.slice(0,gn(e)+1).replace(ae,""):e}function Qt(e){return function(t){return e(t)}}function en(e,t){return Ot(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Ht(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Ht(t,e[n],0)>-1;);return n}var on=Gt({À:"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",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"}),an=Gt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function sn(e){return"\\"+ut[e]}function ln(e){return ot.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function un(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function fn(e){return ln(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):Lt(e)}function mn(e){return ln(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function gn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var vn=Gt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var yn=function e(t){var n,r=(t=null==t?mt:yn.defaults(mt.Object(),t,yn.pick(mt,at))).Array,se=t.Date,Ce=t.Error,Ee=t.Function,ke=t.Math,ze=t.Object,Pe=t.RegExp,Ae=t.String,De=t.TypeError,Te=r.prototype,Ie=Ee.prototype,Me=ze.prototype,Ne=t["__core-js_shared__"],Oe=Ie.toString,Re=Me.hasOwnProperty,je=0,Fe=(n=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Be=Me.toString,Le=Oe.call(ze),Ve=mt._,Ke=Pe("^"+Oe.call(Re).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=yt?t.Buffer:o,$e=t.Symbol,Ue=t.Uint8Array,We=He?He.allocUnsafe:o,qe=un(ze.getPrototypeOf,ze),Ge=ze.create,Ze=Me.propertyIsEnumerable,Ye=Te.splice,Xe=$e?$e.isConcatSpreadable:o,Je=$e?$e.iterator:o,Qe=$e?$e.toStringTag:o,nt=function(){try{var e=hi(ze,"defineProperty");return e({},"",{}),e}catch(e){}}(),ot=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,ut=se&&se.now!==mt.Date.now&&se.now,ht=t.setTimeout!==mt.setTimeout&&t.setTimeout,ft=ke.ceil,gt=ke.floor,vt=ze.getOwnPropertySymbols,bt=He?He.isBuffer:o,wt=t.isFinite,Lt=Te.join,Gt=un(ze.keys,ze),bn=ke.max,wn=ke.min,xn=se.now,Sn=t.parseInt,_n=ke.random,Cn=Te.reverse,En=hi(t,"DataView"),kn=hi(t,"Map"),zn=hi(t,"Promise"),Pn=hi(t,"Set"),An=hi(t,"WeakMap"),Dn=hi(ze,"create"),Tn=An&&new An,In={},Mn=Bi(En),Nn=Bi(kn),On=Bi(zn),Rn=Bi(Pn),jn=Bi(An),Fn=$e?$e.prototype:o,Bn=Fn?Fn.valueOf:o,Ln=Fn?Fn.toString:o;function Vn(e){if(ns(e)&&!Ua(e)&&!(e instanceof Un)){if(e instanceof $n)return e;if(Re.call(e,"__wrapped__"))return Li(e)}return new $n(e)}var Kn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ge)return Ge(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Hn(){}function $n(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Zn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Gn;++t<n;)this.add(e[t])}function Yn(e){var t=this.__data__=new qn(e);this.size=t.size}function Xn(e,t){var n=Ua(e),r=!n&&$a(e),o=!n&&!r&&Za(e),i=!n&&!r&&!o&&us(e),a=n||r||o||i,s=a?Xt(e.length,Ae):[],l=s.length;for(var c in e)!t&&!Re.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||wi(c,l))||s.push(c);return s}function Jn(e){var t=e.length;return t?e[Zr(0,t-1)]:o}function Qn(e,t){return Ri(To(e),lr(t,0,e.length))}function er(e){return Ri(To(e))}function tr(e,t,n){(n!==o&&!Va(e[t],n)||n===o&&!(t in e))&&ar(e,t,n)}function nr(e,t,n){var r=e[t];Re.call(e,t)&&Va(r,n)&&(n!==o||t in e)||ar(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(Va(e[n][0],t))return n;return-1}function or(e,t,n,r){return hr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function ir(e,t){return e&&Io(t,Is(t),e)}function ar(e,t,n){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:zs(e,t[n]);return a}function lr(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function cr(e,t,n,r,i,a){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!ts(e))return e;var d=Ua(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return To(e,s)}else{var p=gi(e),h=p==_||p==C;if(Za(e))return Eo(e,l);if(p==z||p==y||h&&!i){if(s=c||h?{}:yi(e),!l)return c?function(e,t){return Io(e,mi(e),t)}(e,function(e,t){return e&&Io(t,Ms(t),e)}(s,e)):function(e,t){return Io(e,fi(e),t)}(e,ir(s,e))}else{if(!ct[p])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case N:return ko(e);case w:case x:return new r(+e);case O:return function(e,t){var n=t?ko(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case R:case j:case F:case B:case L:case V:case K:case H:case $:return zo(e,n);case E:return new r;case k:case T:return new r(e);case A:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case D:return new r;case I:return o=e,Bn?ze(Bn.call(o)):{}}var o}(e,p,l)}}a||(a=new Yn);var f=a.get(e);if(f)return f;a.set(e,s),ss(e)?e.forEach((function(r){s.add(cr(r,t,n,r,e,a))})):rs(e)&&e.forEach((function(r,o){s.set(o,cr(r,t,n,o,e,a))}));var m=d?o:(u?c?ai:ii:c?Ms:Is)(e);return At(m||e,(function(r,o){m&&(r=e[o=r]),nr(s,o,cr(r,t,n,o,e,a))})),s}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=ze(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function dr(e,t,n){if("function"!=typeof e)throw new De(i);return Ii((function(){e.apply(o,n)}),t)}function pr(e,t,n,r){var o=-1,i=Mt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Ot(t,Qt(n))),r?(i=Nt,a=!1):t.length>=200&&(i=tn,a=!1,t=new Zn(t));e:for(;++o<s;){var u=e[o],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var p=c;p--;)if(t[p]===d)continue e;l.push(u)}else i(t,d,r)||l.push(u)}return l}Vn.templateSettings={escape:J,evaluate:Q,interpolate:ee,variable:"",imports:{_:Vn}},Vn.prototype=Hn.prototype,Vn.prototype.constructor=Vn,$n.prototype=Kn(Hn.prototype),$n.prototype.constructor=$n,Un.prototype=Kn(Hn.prototype),Un.prototype.constructor=Un,Wn.prototype.clear=function(){this.__data__=Dn?Dn(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(Dn){var n=t[e];return n===a?o:n}return Re.call(t,e)?t[e]:o},Wn.prototype.has=function(e){var t=this.__data__;return Dn?t[e]!==o:Re.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Dn&&t===o?a:t,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ye.call(t,n,1),--this.size,!0)},qn.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?o:t[n][1]},qn.prototype.has=function(e){return rr(this.__data__,e)>-1},qn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(kn||qn),string:new Wn}},Gn.prototype.delete=function(e){var t=di(this,e).delete(e);return this.size-=t?1:0,t},Gn.prototype.get=function(e){return di(this,e).get(e)},Gn.prototype.has=function(e){return di(this,e).has(e)},Gn.prototype.set=function(e,t){var n=di(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Zn.prototype.add=Zn.prototype.push=function(e){return this.__data__.set(e,a),this},Zn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new qn,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!kn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gn(r)}return n.set(e,t),this.size=n.size,this};var hr=Oo(xr),fr=Oo(Sr,!0);function mr(e,t){var n=!0;return hr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function gr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(l===o?s==s&&!cs(s):n(s,l)))var l=s,c=a}return c}function vr(e,t){var n=[];return hr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function yr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=bi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?yr(s,t-1,n,r,o):Rt(o,s):r||(o[o.length]=s)}return o}var br=Ro(),wr=Ro(!0);function xr(e,t){return e&&br(e,t,Is)}function Sr(e,t){return e&&wr(e,t,Is)}function _r(e,t){return It(t,(function(t){return Ja(e[t])}))}function Cr(e,t){for(var n=0,r=(t=xo(t,e)).length;null!=e&&n<r;)e=e[Fi(t[n++])];return n&&n==r?e:o}function Er(e,t,n){var r=t(e);return Ua(e)?r:Rt(r,n(e))}function kr(e){return null==e?e===o?"[object Undefined]":"[object Null]":Qe&&Qe in ze(e)?function(e){var t=Re.call(e,Qe),n=e[Qe];try{e[Qe]=o;var r=!0}catch(e){}var i=Be.call(e);r&&(t?e[Qe]=n:delete e[Qe]);return i}(e):function(e){return Be.call(e)}(e)}function zr(e,t){return e>t}function Pr(e,t){return null!=e&&Re.call(e,t)}function Ar(e,t){return null!=e&&t in ze(e)}function Dr(e,t,n){for(var i=n?Nt:Mt,a=e[0].length,s=e.length,l=s,c=r(s),u=1/0,d=[];l--;){var p=e[l];l&&t&&(p=Ot(p,Qt(t))),u=wn(p.length,u),c[l]=!n&&(t||a>=120&&p.length>=120)?new Zn(l&&p):o}p=e[0];var h=-1,f=c[0];e:for(;++h<a&&d.length<u;){var m=p[h],g=t?t(m):m;if(m=n||0!==m?m:0,!(f?tn(f,g):i(d,g,n))){for(l=s;--l;){var v=c[l];if(!(v?tn(v,g):i(e[l],g,n)))continue e}f&&f.push(g),d.push(m)}}return d}function Tr(e,t,n){var r=null==(e=Ai(e,t=xo(t,e)))?e:e[Fi(Xi(t))];return null==r?o:zt(r,e,n)}function Ir(e){return ns(e)&&kr(e)==y}function Mr(e,t,n,r,i){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=Ua(e),l=Ua(t),c=s?b:gi(e),u=l?b:gi(t),d=(c=c==y?z:c)==z,p=(u=u==y?z:u)==z,h=c==u;if(h&&Za(e)){if(!Za(t))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new Yn),s||us(e)?ri(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case N:return!(e.byteLength!=t.byteLength||!i(new Ue(e),new Ue(t)));case w:case x:case k:return Va(+e,+t);case S:return e.name==t.name&&e.message==t.message;case A:case T:return e==t+"";case E:var s=cn;case D:var l=1&r;if(s||(s=pn),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=ri(s(e),s(t),r,o,i,a);return a.delete(e),u;case I:if(Bn)return Bn.call(e)==Bn.call(t)}return!1}(e,t,c,n,r,i,a);if(!(1&n)){var f=d&&Re.call(e,"__wrapped__"),m=p&&Re.call(t,"__wrapped__");if(f||m){var g=f?e.value():e,v=m?t.value():t;return a||(a=new Yn),i(g,v,n,r,a)}}if(!h)return!1;return a||(a=new Yn),function(e,t,n,r,i,a){var s=1&n,l=ii(e),c=l.length,u=ii(t),d=u.length;if(c!=d&&!s)return!1;var p=c;for(;p--;){var h=l[p];if(!(s?h in t:Re.call(t,h)))return!1}var f=a.get(e),m=a.get(t);if(f&&m)return f==t&&m==e;var g=!0;a.set(e,t),a.set(t,e);var v=s;for(;++p<c;){var y=e[h=l[p]],b=t[h];if(r)var w=s?r(b,y,h,t,e,a):r(y,b,h,e,t,a);if(!(w===o?y===b||i(y,b,n,r,a):w)){g=!1;break}v||(v="constructor"==h)}if(g&&!v){var x=e.constructor,S=t.constructor;x==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof S&&S instanceof S||(g=!1)}return a.delete(e),a.delete(t),g}(e,t,n,r,i,a)}(e,t,n,r,Mr,i))}function Nr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=ze(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var c=(l=n[i])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===o&&!(c in e))return!1}else{var p=new Yn;if(r)var h=r(u,d,c,e,t,p);if(!(h===o?Mr(d,u,3,r,p):h))return!1}}return!0}function Or(e){return!(!ts(e)||(t=e,Fe&&Fe in t))&&(Ja(e)?Ke:ye).test(Bi(e));var t}function Rr(e){return"function"==typeof e?e:null==e?ol:"object"==typeof e?Ua(e)?Kr(e[0],e[1]):Vr(e):hl(e)}function jr(e){if(!Ei(e))return Gt(e);var t=[];for(var n in ze(e))Re.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Fr(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in ze(e))t.push(n);return t}(e);var t=Ei(e),n=[];for(var r in e)("constructor"!=r||!t&&Re.call(e,r))&&n.push(r);return n}function Br(e,t){return e<t}function Lr(e,t){var n=-1,o=qa(e)?r(e.length):[];return hr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Vr(e){var t=pi(e);return 1==t.length&&t[0][2]?zi(t[0][0],t[0][1]):function(n){return n===e||Nr(n,e,t)}}function Kr(e,t){return Si(e)&&ki(t)?zi(Fi(e),t):function(n){var r=zs(n,e);return r===o&&r===t?Ps(n,e):Mr(t,r,3)}}function Hr(e,t,n,r,i){e!==t&&br(t,(function(a,s){if(i||(i=new Yn),ts(a))!function(e,t,n,r,i,a,s){var l=Di(e,n),c=Di(t,n),u=s.get(c);if(u)return void tr(e,n,u);var d=a?a(l,c,n+"",e,t,s):o,p=d===o;if(p){var h=Ua(c),f=!h&&Za(c),m=!h&&!f&&us(c);d=c,h||f||m?Ua(l)?d=l:Ga(l)?d=To(l):f?(p=!1,d=Eo(c,!0)):m?(p=!1,d=zo(c,!0)):d=[]:is(c)||$a(c)?(d=l,$a(l)?d=ys(l):ts(l)&&!Ja(l)||(d=yi(c))):p=!1}p&&(s.set(c,d),i(d,c,r,a,s),s.delete(c));tr(e,n,d)}(e,t,s,n,Hr,r,i);else{var l=r?r(Di(e,s),a,s+"",e,t,i):o;l===o&&(l=a),tr(e,s,l)}}),Ms)}function $r(e,t){var n=e.length;if(n)return wi(t+=t<0?n:0,n)?e[t]:o}function Ur(e,t,n){t=t.length?Ot(t,(function(e){return Ua(e)?function(t){return Cr(t,1===e.length?e[0]:e)}:e})):[ol];var r=-1;t=Ot(t,Qt(ui()));var o=Lr(e,(function(e,n,o){var i=Ot(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;for(;++r<a;){var l=Po(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Wr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Cr(e,a);n(s,a)&&eo(i,xo(a,e),s)}return i}function qr(e,t,n,r){var o=r?$t:Ht,i=-1,a=t.length,s=e;for(e===t&&(t=To(t)),n&&(s=Ot(e,Qt(n)));++i<a;)for(var l=0,c=t[i],u=n?n(c):c;(l=o(s,u,l,r))>-1;)s!==e&&Ye.call(s,l,1),Ye.call(e,l,1);return e}function Gr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;wi(o)?Ye.call(e,o,1):ho(e,o)}}return e}function Zr(e,t){return e+gt(_n()*(t-e+1))}function Yr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return Mi(Pi(e,t,ol),e+"")}function Jr(e){return Jn(Vs(e))}function Qr(e,t){var n=Vs(e);return Ri(n,lr(t,0,n.length))}function eo(e,t,n,r){if(!ts(e))return e;for(var i=-1,a=(t=xo(t,e)).length,s=a-1,l=e;null!=l&&++i<a;){var c=Fi(t[i]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var d=l[c];(u=r?r(d,c,l):o)===o&&(u=ts(d)?d:wi(t[i+1])?[]:{})}nr(l,c,u),l=l[c]}return e}var to=Tn?function(e,t){return Tn.set(e,t),e}:ol,no=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:ol;function ro(e){return Ri(Vs(e))}function oo(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function io(e,t){var n;return hr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ao(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!cs(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return so(e,t,ol,n)}function so(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,l=null===t,c=cs(t),u=t===o;i<a;){var d=gt((i+a)/2),p=n(e[d]),h=p!==o,f=null===p,m=p==p,g=cs(p);if(s)var v=r||m;else v=u?m&&(r||h):l?m&&h&&(r||!f):c?m&&h&&!f&&(r||!g):!f&&!g&&(r?p<=t:p<t);v?i=d+1:a=d}return wn(a,4294967294)}function lo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Va(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function co(e){return"number"==typeof e?e:cs(e)?m:+e}function uo(e){if("string"==typeof e)return e;if(Ua(e))return Ot(e,uo)+"";if(cs(e))return Ln?Ln.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function po(e,t,n){var r=-1,o=Mt,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=Nt;else if(i>=200){var c=t?null:Xo(e);if(c)return pn(c);a=!1,o=tn,l=new Zn}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else o(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function ho(e,t){return null==(e=Ai(e,t=xo(t,e)))||delete e[Fi(Xi(t))]}function fo(e,t,n,r){return eo(e,t,n(Cr(e,t)),r)}function mo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?oo(e,r?0:i,r?i+1:o):oo(e,r?i+1:0,r?o:i)}function go(e,t){var n=e;return n instanceof Un&&(n=n.value()),jt(t,(function(e,t){return t.func.apply(t.thisArg,Rt([e],t.args))}),n)}function vo(e,t,n){var o=e.length;if(o<2)return o?po(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],l=-1;++l<o;)l!=i&&(a[i]=pr(a[i]||s,e[l],t,n));return po(yr(a,1),t,n)}function yo(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var l=r<a?t[r]:o;n(s,e[r],l)}return s}function bo(e){return Ga(e)?e:[]}function wo(e){return"function"==typeof e?e:ol}function xo(e,t){return Ua(e)?e:Si(e,t)?[e]:ji(bs(e))}var So=Xr;function _o(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:oo(e,t,n)}var Co=ot||function(e){return mt.clearTimeout(e)};function Eo(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function ko(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function zo(e,t){var n=t?ko(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Po(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=cs(e),s=t!==o,l=null===t,c=t==t,u=cs(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||l&&n&&i||!s&&i||!c)return-1}return 0}function Ao(e,t,n,o){for(var i=-1,a=e.length,s=n.length,l=-1,c=t.length,u=bn(a-s,0),d=r(c+u),p=!o;++l<c;)d[l]=t[l];for(;++i<s;)(p||i<a)&&(d[n[i]]=e[i]);for(;u--;)d[l++]=e[i++];return d}function Do(e,t,n,o){for(var i=-1,a=e.length,s=-1,l=n.length,c=-1,u=t.length,d=bn(a-l,0),p=r(d+u),h=!o;++i<d;)p[i]=e[i];for(var f=i;++c<u;)p[f+c]=t[c];for(;++s<l;)(h||i<a)&&(p[f+n[s]]=e[i++]);return p}function To(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Io(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=r?r(n[l],e[l],l,n,e):o;c===o&&(c=e[l]),i?ar(n,l,c):nr(n,l,c)}return n}function Mo(e,t){return function(n,r){var o=Ua(n)?Pt:or,i=t?t():{};return o(n,e,ui(r,2),i)}}function No(e){return Xr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&xi(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=ze(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t}))}function Oo(e,t){return function(n,r){if(null==n)return n;if(!qa(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=ze(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Ro(e){return function(t,n,r){for(var o=-1,i=ze(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}function jo(e){return function(t){var n=ln(t=bs(t))?mn(t):o,r=n?n[0]:t.charAt(0),i=n?_o(n,1).join(""):t.slice(1);return r[e]()+i}}function Fo(e){return function(t){return jt(Js($s(t).replace(et,"")),e,"")}}function Bo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Kn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function Lo(e){return function(t,n,r){var i=ze(t);if(!qa(t)){var a=ui(n,3);t=Is(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function Vo(e){return oi((function(t){var n=t.length,r=n,a=$n.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new De(i);if(a&&!l&&"wrapper"==li(s))var l=new $n([],!0)}for(r=l?r:n;++r<n;){var c=li(s=t[r]),u="wrapper"==c?si(s):o;l=u&&_i(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[li(u[0])].apply(l,u[3]):1==s.length&&_i(s)?l[c]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Ua(r))return l.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Ko(e,t,n,i,a,s,l,c,u,p){var h=t&d,f=1&t,m=2&t,g=24&t,v=512&t,y=m?o:Bo(e);return function d(){for(var b=arguments.length,w=r(b),x=b;x--;)w[x]=arguments[x];if(g)var S=ci(d),_=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,S);if(i&&(w=Ao(w,i,a,g)),s&&(w=Do(w,s,l,g)),b-=_,g&&b<p){var C=dn(w,S);return Zo(e,t,Ko,d.placeholder,n,w,C,c,u,p-b)}var E=f?n:this,k=m?E[e]:e;return b=w.length,c?w=function(e,t){var n=e.length,r=wn(t.length,n),i=To(e);for(;r--;){var a=t[r];e[r]=wi(a,n)?i[a]:o}return e}(w,c):v&&b>1&&w.reverse(),h&&u<b&&(w.length=u),this&&this!==mt&&this instanceof d&&(k=y||Bo(k)),k.apply(E,w)}}function Ho(e,t){return function(n,r){return function(e,t,n,r){return xr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function $o(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=uo(n),r=uo(r)):(n=co(n),r=co(r)),i=e(n,r)}return i}}function Uo(e){return oi((function(t){return t=Ot(t,Qt(ui())),Xr((function(n){var r=this;return e(t,(function(e){return zt(e,r,n)}))}))}))}function Wo(e,t){var n=(t=t===o?" ":uo(t)).length;if(n<2)return n?Yr(t,e):t;var r=Yr(t,ft(e/fn(t)));return ln(t)?_o(mn(r),0,e).join(""):r.slice(0,e)}function qo(e){return function(t,n,i){return i&&"number"!=typeof i&&xi(t,n,i)&&(n=i=o),t=fs(t),n===o?(n=t,t=0):n=fs(n),function(e,t,n,o){for(var i=-1,a=bn(ft((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,i=i===o?t<n?1:-1:fs(i),e)}}function Go(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vs(t),n=vs(n)),e(t,n)}}function Zo(e,t,n,r,i,a,s,l,d,p){var h=8&t;t|=h?c:u,4&(t&=~(h?u:c))||(t&=-4);var f=[e,t,i,h?a:o,h?s:o,h?o:a,h?o:s,l,d,p],m=n.apply(o,f);return _i(e)&&Ti(m,f),m.placeholder=r,Ni(m,e,t)}function Yo(e){var t=ke[e];return function(e,n){if(e=vs(e),(n=null==n?0:wn(ms(n),292))&&wt(e)){var r=(bs(e)+"e").split("e");return+((r=(bs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Xo=Pn&&1/pn(new Pn([,-0]))[1]==h?function(e){return new Pn(e)}:cl;function Jo(e){return function(t){var n=gi(t);return n==E?cn(t):n==D?hn(t):function(e,t){return Ot(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qo(e,t,n,a,h,f,m,g){var v=2&t;if(!v&&"function"!=typeof e)throw new De(i);var y=a?a.length:0;if(y||(t&=-97,a=h=o),m=m===o?m:bn(ms(m),0),g=g===o?g:ms(g),y-=h?h.length:0,t&u){var b=a,w=h;a=h=o}var x=v?o:si(e),S=[e,t,n,a,h,b,w,f,m,g];if(x&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==d&&8==n||r==d&&n==p&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Ao(c,l,t[4]):l,e[4]=c?dn(e[3],s):t[4]}(l=t[5])&&(c=e[5],e[5]=c?Do(c,l,t[6]):l,e[6]=c?dn(e[5],s):t[6]);(l=t[7])&&(e[7]=l);r&d&&(e[8]=null==e[8]?t[8]:wn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(S,x),e=S[0],t=S[1],n=S[2],a=S[3],h=S[4],!(g=S[9]=S[9]===o?v?0:e.length:bn(S[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||t==l?function(e,t,n){var i=Bo(e);return function a(){for(var s=arguments.length,l=r(s),c=s,u=ci(a);c--;)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:dn(l,u);return(s-=d.length)<n?Zo(e,t,Ko,a.placeholder,o,l,d,o,o,n-s):zt(this&&this!==mt&&this instanceof a?i:e,this,l)}}(e,t,g):t!=c&&33!=t||h.length?Ko.apply(o,S):function(e,t,n,o){var i=1&t,a=Bo(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=o.length,d=r(u+l),p=this&&this!==mt&&this instanceof t?a:e;++c<u;)d[c]=o[c];for(;l--;)d[c++]=arguments[++s];return zt(p,i?n:this,d)}}(e,t,n,a);else var _=function(e,t,n){var r=1&t,o=Bo(e);return function t(){return(this&&this!==mt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Ni((x?to:Ti)(_,S),e,t)}function ei(e,t,n,r){return e===o||Va(e,Me[n])&&!Re.call(r,n)?t:e}function ti(e,t,n,r,i,a){return ts(e)&&ts(t)&&(a.set(t,e),Hr(e,t,o,ti,a),a.delete(t)),e}function ni(e){return is(e)?o:e}function ri(e,t,n,r,i,a){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var p=-1,h=!0,f=2&n?new Zn:o;for(a.set(e,t),a.set(t,e);++p<l;){var m=e[p],g=t[p];if(r)var v=s?r(g,m,p,t,e,a):r(m,g,p,e,t,a);if(v!==o){if(v)continue;h=!1;break}if(f){if(!Bt(t,(function(e,t){if(!tn(f,t)&&(m===e||i(m,e,n,r,a)))return f.push(t)}))){h=!1;break}}else if(m!==g&&!i(m,g,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function oi(e){return Mi(Pi(e,o,Wi),e+"")}function ii(e){return Er(e,Is,fi)}function ai(e){return Er(e,Ms,mi)}var si=Tn?function(e){return Tn.get(e)}:cl;function li(e){for(var t=e.name+"",n=In[t],r=Re.call(In,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ci(e){return(Re.call(Vn,"placeholder")?Vn:e).placeholder}function ui(){var e=Vn.iteratee||il;return e=e===il?Rr:e,arguments.length?e(arguments[0],arguments[1]):e}function di(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function pi(e){for(var t=Is(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,ki(o)]}return t}function hi(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Or(n)?n:o}var fi=vt?function(e){return null==e?[]:(e=ze(e),It(vt(e),(function(t){return Ze.call(e,t)})))}:gl,mi=vt?function(e){for(var t=[];e;)Rt(t,fi(e)),e=qe(e);return t}:gl,gi=kr;function vi(e,t,n){for(var r=-1,o=(t=xo(t,e)).length,i=!1;++r<o;){var a=Fi(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&es(o)&&wi(a,o)&&(Ua(e)||$a(e))}function yi(e){return"function"!=typeof e.constructor||Ei(e)?{}:Kn(qe(e))}function bi(e){return Ua(e)||$a(e)||!!(Xe&&e&&e[Xe])}function wi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}function xi(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?qa(n)&&wi(t,n.length):"string"==r&&t in n)&&Va(n[t],e)}function Si(e,t){if(Ua(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||(ne.test(e)||!te.test(e)||null!=t&&e in ze(t))}function _i(e){var t=li(e),n=Vn[t];if("function"!=typeof n||!(t in Un.prototype))return!1;if(e===n)return!0;var r=si(n);return!!r&&e===r[0]}(En&&gi(new En(new ArrayBuffer(1)))!=O||kn&&gi(new kn)!=E||zn&&gi(zn.resolve())!=P||Pn&&gi(new Pn)!=D||An&&gi(new An)!=M)&&(gi=function(e){var t=kr(e),n=t==z?e.constructor:o,r=n?Bi(n):"";if(r)switch(r){case Mn:return O;case Nn:return E;case On:return P;case Rn:return D;case jn:return M}return t});var Ci=Ne?Ja:vl;function Ei(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Me)}function ki(e){return e==e&&!ts(e)}function zi(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in ze(n)))}}function Pi(e,t,n){return t=bn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=bn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var l=r(t+1);++i<t;)l[i]=o[i];return l[t]=n(s),zt(e,this,l)}}function Ai(e,t){return t.length<2?e:Cr(e,oo(t,0,-1))}function Di(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ti=Oi(to),Ii=ht||function(e,t){return mt.setTimeout(e,t)},Mi=Oi(no);function Ni(e,t,n){var r=t+"";return Mi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return At(v,(function(n){var r="_."+n[0];t&n[1]&&!Mt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(ue):[]}(r),n)))}function Oi(e){var t=0,n=0;return function(){var r=xn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ri(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Zr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var ji=function(e){var t=Oa(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,o){t.push(r?o.replace(he,"$1"):n||e)})),t}));function Fi(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Bi(e){if(null!=e){try{return Oe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Li(e){if(e instanceof Un)return e.clone();var t=new $n(e.__wrapped__,e.__chain__);return t.__actions__=To(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Vi=Xr((function(e,t){return Ga(e)?pr(e,yr(t,1,Ga,!0)):[]})),Ki=Xr((function(e,t){var n=Xi(t);return Ga(n)&&(n=o),Ga(e)?pr(e,yr(t,1,Ga,!0),ui(n,2)):[]})),Hi=Xr((function(e,t){var n=Xi(t);return Ga(n)&&(n=o),Ga(e)?pr(e,yr(t,1,Ga,!0),o,n):[]}));function $i(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ms(n);return o<0&&(o=bn(r+o,0)),Kt(e,ui(t,3),o)}function Ui(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=ms(n),i=n<0?bn(r+i,0):wn(i,r-1)),Kt(e,ui(t,3),i,!0)}function Wi(e){return(null==e?0:e.length)?yr(e,1):[]}function qi(e){return e&&e.length?e[0]:o}var Gi=Xr((function(e){var t=Ot(e,bo);return t.length&&t[0]===e[0]?Dr(t):[]})),Zi=Xr((function(e){var t=Xi(e),n=Ot(e,bo);return t===Xi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Dr(n,ui(t,2)):[]})),Yi=Xr((function(e){var t=Xi(e),n=Ot(e,bo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Dr(n,o,t):[]}));function Xi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Ji=Xr(Qi);function Qi(e,t){return e&&e.length&&t&&t.length?qr(e,t):e}var ea=oi((function(e,t){var n=null==e?0:e.length,r=sr(e,t);return Gr(e,Ot(t,(function(e){return wi(e,n)?+e:e})).sort(Po)),r}));function ta(e){return null==e?e:Cn.call(e)}var na=Xr((function(e){return po(yr(e,1,Ga,!0))})),ra=Xr((function(e){var t=Xi(e);return Ga(t)&&(t=o),po(yr(e,1,Ga,!0),ui(t,2))})),oa=Xr((function(e){var t=Xi(e);return t="function"==typeof t?t:o,po(yr(e,1,Ga,!0),o,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=It(e,(function(e){if(Ga(e))return t=bn(e.length,t),!0})),Xt(t,(function(t){return Ot(e,qt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:Ot(n,(function(e){return zt(t,o,e)}))}var sa=Xr((function(e,t){return Ga(e)?pr(e,t):[]})),la=Xr((function(e){return vo(It(e,Ga))})),ca=Xr((function(e){var t=Xi(e);return Ga(t)&&(t=o),vo(It(e,Ga),ui(t,2))})),ua=Xr((function(e){var t=Xi(e);return t="function"==typeof t?t:o,vo(It(e,Ga),o,t)})),da=Xr(ia);var pa=Xr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,aa(e,n)}));function ha(e){var t=Vn(e);return t.__chain__=!0,t}function fa(e,t){return t(e)}var ma=oi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Un&&wi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:fa,args:[i],thisArg:o}),new $n(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));var ga=Mo((function(e,t,n){Re.call(e,n)?++e[n]:ar(e,n,1)}));var va=Lo($i),ya=Lo(Ui);function ba(e,t){return(Ua(e)?At:hr)(e,ui(t,3))}function wa(e,t){return(Ua(e)?Dt:fr)(e,ui(t,3))}var xa=Mo((function(e,t,n){Re.call(e,n)?e[n].push(t):ar(e,n,[t])}));var Sa=Xr((function(e,t,n){var o=-1,i="function"==typeof t,a=qa(e)?r(e.length):[];return hr(e,(function(e){a[++o]=i?zt(t,e,n):Tr(e,t,n)})),a})),_a=Mo((function(e,t,n){ar(e,n,t)}));function Ca(e,t){return(Ua(e)?Ot:Lr)(e,ui(t,3))}var Ea=Mo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ka=Xr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xi(e,t[0],t[1])?t=[]:n>2&&xi(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,yr(t,1),[])})),za=ut||function(){return mt.Date.now()};function Pa(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Qo(e,d,o,o,o,o,t)}function Aa(e,t){var n;if("function"!=typeof t)throw new De(i);return e=ms(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Da=Xr((function(e,t,n){var r=1;if(n.length){var o=dn(n,ci(Da));r|=c}return Qo(e,r,t,n,o)})),Ta=Xr((function(e,t,n){var r=3;if(n.length){var o=dn(n,ci(Ta));r|=c}return Qo(t,r,e,n,o)}));function Ia(e,t,n){var r,a,s,l,c,u,d=0,p=!1,h=!1,f=!0;if("function"!=typeof e)throw new De(i);function m(t){var n=r,i=a;return r=a=o,d=t,l=e.apply(i,n)}function g(e){var n=e-u;return u===o||n>=t||n<0||h&&e-d>=s}function v(){var e=za();if(g(e))return y(e);c=Ii(v,function(e){var n=t-(e-u);return h?wn(n,s-(e-d)):n}(e))}function y(e){return c=o,f&&r?m(e):(r=a=o,l)}function b(){var e=za(),n=g(e);if(r=arguments,a=this,u=e,n){if(c===o)return function(e){return d=e,c=Ii(v,t),p?m(e):l}(u);if(h)return Co(c),c=Ii(v,t),m(u)}return c===o&&(c=Ii(v,t)),l}return t=vs(t)||0,ts(n)&&(p=!!n.leading,s=(h="maxWait"in n)?bn(vs(n.maxWait)||0,t):s,f="trailing"in n?!!n.trailing:f),b.cancel=function(){c!==o&&Co(c),d=0,r=u=a=c=o},b.flush=function(){return c===o?l:y(za())},b}var Ma=Xr((function(e,t){return dr(e,1,t)})),Na=Xr((function(e,t,n){return dr(e,vs(t)||0,n)}));function Oa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new De(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Oa.Cache||Gn),n}function Ra(e){if("function"!=typeof e)throw new De(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Oa.Cache=Gn;var ja=So((function(e,t){var n=(t=1==t.length&&Ua(t[0])?Ot(t[0],Qt(ui())):Ot(yr(t,1),Qt(ui()))).length;return Xr((function(r){for(var o=-1,i=wn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return zt(e,this,r)}))})),Fa=Xr((function(e,t){var n=dn(t,ci(Fa));return Qo(e,c,o,t,n)})),Ba=Xr((function(e,t){var n=dn(t,ci(Ba));return Qo(e,u,o,t,n)})),La=oi((function(e,t){return Qo(e,p,o,o,o,t)}));function Va(e,t){return e===t||e!=e&&t!=t}var Ka=Go(zr),Ha=Go((function(e,t){return e>=t})),$a=Ir(function(){return arguments}())?Ir:function(e){return ns(e)&&Re.call(e,"callee")&&!Ze.call(e,"callee")},Ua=r.isArray,Wa=xt?Qt(xt):function(e){return ns(e)&&kr(e)==N};function qa(e){return null!=e&&es(e.length)&&!Ja(e)}function Ga(e){return ns(e)&&qa(e)}var Za=bt||vl,Ya=St?Qt(St):function(e){return ns(e)&&kr(e)==x};function Xa(e){if(!ns(e))return!1;var t=kr(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Ja(e){if(!ts(e))return!1;var t=kr(e);return t==_||t==C||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qa(e){return"number"==typeof e&&e==ms(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=_t?Qt(_t):function(e){return ns(e)&&gi(e)==E};function os(e){return"number"==typeof e||ns(e)&&kr(e)==k}function is(e){if(!ns(e)||kr(e)!=z)return!1;var t=qe(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Oe.call(n)==Le}var as=Ct?Qt(Ct):function(e){return ns(e)&&kr(e)==A};var ss=Et?Qt(Et):function(e){return ns(e)&&gi(e)==D};function ls(e){return"string"==typeof e||!Ua(e)&&ns(e)&&kr(e)==T}function cs(e){return"symbol"==typeof e||ns(e)&&kr(e)==I}var us=kt?Qt(kt):function(e){return ns(e)&&es(e.length)&&!!lt[kr(e)]};var ds=Go(Br),ps=Go((function(e,t){return e<=t}));function hs(e){if(!e)return[];if(qa(e))return ls(e)?mn(e):To(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=gi(e);return(t==E?cn:t==D?pn:Vs)(e)}function fs(e){return e?(e=vs(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ms(e){var t=fs(e),n=t%1;return t==t?n?t-n:t:0}function gs(e){return e?lr(ms(e),0,g):0}function vs(e){if("number"==typeof e)return e;if(cs(e))return m;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=ve.test(e);return n||be.test(e)?pt(e.slice(2),n?2:8):ge.test(e)?m:+e}function ys(e){return Io(e,Ms(e))}function bs(e){return null==e?"":uo(e)}var ws=No((function(e,t){if(Ei(t)||qa(t))Io(t,Is(t),e);else for(var n in t)Re.call(t,n)&&nr(e,n,t[n])})),xs=No((function(e,t){Io(t,Ms(t),e)})),Ss=No((function(e,t,n,r){Io(t,Ms(t),e,r)})),_s=No((function(e,t,n,r){Io(t,Is(t),e,r)})),Cs=oi(sr);var Es=Xr((function(e,t){e=ze(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&xi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=Ms(a),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===o||Va(d,Me[u])&&!Re.call(e,u))&&(e[u]=a[u])}return e})),ks=Xr((function(e){return e.push(o,ti),zt(Os,o,e)}));function zs(e,t,n){var r=null==e?o:Cr(e,t);return r===o?n:r}function Ps(e,t){return null!=e&&vi(e,t,Ar)}var As=Ho((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),e[t]=n}),tl(ol)),Ds=Ho((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),Re.call(e,t)?e[t].push(n):e[t]=[n]}),ui),Ts=Xr(Tr);function Is(e){return qa(e)?Xn(e):jr(e)}function Ms(e){return qa(e)?Xn(e,!0):Fr(e)}var Ns=No((function(e,t,n){Hr(e,t,n)})),Os=No((function(e,t,n,r){Hr(e,t,n,r)})),Rs=oi((function(e,t){var n={};if(null==e)return n;var r=!1;t=Ot(t,(function(t){return t=xo(t,e),r||(r=t.length>1),t})),Io(e,ai(e),n),r&&(n=cr(n,7,ni));for(var o=t.length;o--;)ho(n,t[o]);return n}));var js=oi((function(e,t){return null==e?{}:function(e,t){return Wr(e,t,(function(t,n){return Ps(e,n)}))}(e,t)}));function Fs(e,t){if(null==e)return{};var n=Ot(ai(e),(function(e){return[e]}));return t=ui(t),Wr(e,n,(function(e,n){return t(e,n[0])}))}var Bs=Jo(Is),Ls=Jo(Ms);function Vs(e){return null==e?[]:en(e,Is(e))}var Ks=Fo((function(e,t,n){return t=t.toLowerCase(),e+(n?Hs(t):t)}));function Hs(e){return Xs(bs(e).toLowerCase())}function $s(e){return(e=bs(e))&&e.replace(xe,on).replace(tt,"")}var Us=Fo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ws=Fo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),qs=jo("toLowerCase");var Gs=Fo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Zs=Fo((function(e,t,n){return e+(n?" ":"")+Xs(t)}));var Ys=Fo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Xs=jo("toUpperCase");function Js(e,t,n){return e=bs(e),(t=n?o:t)===o?function(e){return it.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Qs=Xr((function(e,t){try{return zt(e,o,t)}catch(e){return Xa(e)?e:new Ce(e)}})),el=oi((function(e,t){return At(t,(function(t){t=Fi(t),ar(e,t,Da(e[t],e))})),e}));function tl(e){return function(){return e}}var nl=Vo(),rl=Vo(!0);function ol(e){return e}function il(e){return Rr("function"==typeof e?e:cr(e,1))}var al=Xr((function(e,t){return function(n){return Tr(n,e,t)}})),sl=Xr((function(e,t){return function(n){return Tr(e,n,t)}}));function ll(e,t,n){var r=Is(t),o=_r(t,r);null!=n||ts(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=_r(t,Is(t)));var i=!(ts(n)&&"chain"in n&&!n.chain),a=Ja(e);return At(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=To(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Rt([this.value()],arguments))})})),e}function cl(){}var ul=Uo(Ot),dl=Uo(Tt),pl=Uo(Bt);function hl(e){return Si(e)?qt(Fi(e)):function(e){return function(t){return Cr(t,e)}}(e)}var fl=qo(),ml=qo(!0);function gl(){return[]}function vl(){return!1}var yl=$o((function(e,t){return e+t}),0),bl=Yo("ceil"),wl=$o((function(e,t){return e/t}),1),xl=Yo("floor");var Sl,_l=$o((function(e,t){return e*t}),1),Cl=Yo("round"),El=$o((function(e,t){return e-t}),0);return Vn.after=function(e,t){if("function"!=typeof t)throw new De(i);return e=ms(e),function(){if(--e<1)return t.apply(this,arguments)}},Vn.ary=Pa,Vn.assign=ws,Vn.assignIn=xs,Vn.assignInWith=Ss,Vn.assignWith=_s,Vn.at=Cs,Vn.before=Aa,Vn.bind=Da,Vn.bindAll=el,Vn.bindKey=Ta,Vn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ua(e)?e:[e]},Vn.chain=ha,Vn.chunk=function(e,t,n){t=(n?xi(e,t,n):t===o)?1:bn(ms(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,l=r(ft(i/t));a<i;)l[s++]=oo(e,a,a+=t);return l},Vn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Vn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Rt(Ua(n)?To(n):[n],yr(t,1))},Vn.cond=function(e){var t=null==e?0:e.length,n=ui();return e=t?Ot(e,(function(e){if("function"!=typeof e[1])throw new De(i);return[n(e[0]),e[1]]})):[],Xr((function(n){for(var r=-1;++r<t;){var o=e[r];if(zt(o[0],this,n))return zt(o[1],this,n)}}))},Vn.conforms=function(e){return function(e){var t=Is(e);return function(n){return ur(n,e,t)}}(cr(e,1))},Vn.constant=tl,Vn.countBy=ga,Vn.create=function(e,t){var n=Kn(e);return null==t?n:ir(n,t)},Vn.curry=function e(t,n,r){var i=Qo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Vn.curryRight=function e(t,n,r){var i=Qo(t,l,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Vn.debounce=Ia,Vn.defaults=Es,Vn.defaultsDeep=ks,Vn.defer=Ma,Vn.delay=Na,Vn.difference=Vi,Vn.differenceBy=Ki,Vn.differenceWith=Hi,Vn.drop=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=n||t===o?1:ms(t))<0?0:t,r):[]},Vn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,0,(t=r-(t=n||t===o?1:ms(t)))<0?0:t):[]},Vn.dropRightWhile=function(e,t){return e&&e.length?mo(e,ui(t,3),!0,!0):[]},Vn.dropWhile=function(e,t){return e&&e.length?mo(e,ui(t,3),!0):[]},Vn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&xi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ms(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ms(r))<0&&(r+=i),r=n>r?0:gs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Vn.filter=function(e,t){return(Ua(e)?It:vr)(e,ui(t,3))},Vn.flatMap=function(e,t){return yr(Ca(e,t),1)},Vn.flatMapDeep=function(e,t){return yr(Ca(e,t),h)},Vn.flatMapDepth=function(e,t,n){return n=n===o?1:ms(n),yr(Ca(e,t),n)},Vn.flatten=Wi,Vn.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,h):[]},Vn.flattenDepth=function(e,t){return(null==e?0:e.length)?yr(e,t=t===o?1:ms(t)):[]},Vn.flip=function(e){return Qo(e,512)},Vn.flow=nl,Vn.flowRight=rl,Vn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Vn.functions=function(e){return null==e?[]:_r(e,Is(e))},Vn.functionsIn=function(e){return null==e?[]:_r(e,Ms(e))},Vn.groupBy=xa,Vn.initial=function(e){return(null==e?0:e.length)?oo(e,0,-1):[]},Vn.intersection=Gi,Vn.intersectionBy=Zi,Vn.intersectionWith=Yi,Vn.invert=As,Vn.invertBy=Ds,Vn.invokeMap=Sa,Vn.iteratee=il,Vn.keyBy=_a,Vn.keys=Is,Vn.keysIn=Ms,Vn.map=Ca,Vn.mapKeys=function(e,t){var n={};return t=ui(t,3),xr(e,(function(e,r,o){ar(n,t(e,r,o),e)})),n},Vn.mapValues=function(e,t){var n={};return t=ui(t,3),xr(e,(function(e,r,o){ar(n,r,t(e,r,o))})),n},Vn.matches=function(e){return Vr(cr(e,1))},Vn.matchesProperty=function(e,t){return Kr(e,cr(t,1))},Vn.memoize=Oa,Vn.merge=Ns,Vn.mergeWith=Os,Vn.method=al,Vn.methodOf=sl,Vn.mixin=ll,Vn.negate=Ra,Vn.nthArg=function(e){return e=ms(e),Xr((function(t){return $r(t,e)}))},Vn.omit=Rs,Vn.omitBy=function(e,t){return Fs(e,Ra(ui(t)))},Vn.once=function(e){return Aa(2,e)},Vn.orderBy=function(e,t,n,r){return null==e?[]:(Ua(t)||(t=null==t?[]:[t]),Ua(n=r?o:n)||(n=null==n?[]:[n]),Ur(e,t,n))},Vn.over=ul,Vn.overArgs=ja,Vn.overEvery=dl,Vn.overSome=pl,Vn.partial=Fa,Vn.partialRight=Ba,Vn.partition=Ea,Vn.pick=js,Vn.pickBy=Fs,Vn.property=hl,Vn.propertyOf=function(e){return function(t){return null==e?o:Cr(e,t)}},Vn.pull=Ji,Vn.pullAll=Qi,Vn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,ui(n,2)):e},Vn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,o,n):e},Vn.pullAt=ea,Vn.range=fl,Vn.rangeRight=ml,Vn.rearg=La,Vn.reject=function(e,t){return(Ua(e)?It:vr)(e,Ra(ui(t,3)))},Vn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ui(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Gr(e,o),n},Vn.rest=function(e,t){if("function"!=typeof e)throw new De(i);return Xr(e,t=t===o?t:ms(t))},Vn.reverse=ta,Vn.sampleSize=function(e,t,n){return t=(n?xi(e,t,n):t===o)?1:ms(t),(Ua(e)?Qn:Qr)(e,t)},Vn.set=function(e,t,n){return null==e?e:eo(e,t,n)},Vn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:eo(e,t,n,r)},Vn.shuffle=function(e){return(Ua(e)?er:ro)(e)},Vn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&xi(e,t,n)?(t=0,n=r):(t=null==t?0:ms(t),n=n===o?r:ms(n)),oo(e,t,n)):[]},Vn.sortBy=ka,Vn.sortedUniq=function(e){return e&&e.length?lo(e):[]},Vn.sortedUniqBy=function(e,t){return e&&e.length?lo(e,ui(t,2)):[]},Vn.split=function(e,t,n){return n&&"number"!=typeof n&&xi(e,t,n)&&(t=n=o),(n=n===o?g:n>>>0)?(e=bs(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=uo(t))&&ln(e)?_o(mn(e),0,n):e.split(t,n):[]},Vn.spread=function(e,t){if("function"!=typeof e)throw new De(i);return t=null==t?0:bn(ms(t),0),Xr((function(n){var r=n[t],o=_o(n,0,t);return r&&Rt(o,r),zt(e,this,o)}))},Vn.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Vn.take=function(e,t,n){return e&&e.length?oo(e,0,(t=n||t===o?1:ms(t))<0?0:t):[]},Vn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=r-(t=n||t===o?1:ms(t)))<0?0:t,r):[]},Vn.takeRightWhile=function(e,t){return e&&e.length?mo(e,ui(t,3),!1,!0):[]},Vn.takeWhile=function(e,t){return e&&e.length?mo(e,ui(t,3)):[]},Vn.tap=function(e,t){return t(e),e},Vn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new De(i);return ts(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ia(e,t,{leading:r,maxWait:t,trailing:o})},Vn.thru=fa,Vn.toArray=hs,Vn.toPairs=Bs,Vn.toPairsIn=Ls,Vn.toPath=function(e){return Ua(e)?Ot(e,Fi):cs(e)?[e]:To(ji(bs(e)))},Vn.toPlainObject=ys,Vn.transform=function(e,t,n){var r=Ua(e),o=r||Za(e)||us(e);if(t=ui(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ts(e)&&Ja(i)?Kn(qe(e)):{}}return(o?At:xr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Vn.unary=function(e){return Pa(e,1)},Vn.union=na,Vn.unionBy=ra,Vn.unionWith=oa,Vn.uniq=function(e){return e&&e.length?po(e):[]},Vn.uniqBy=function(e,t){return e&&e.length?po(e,ui(t,2)):[]},Vn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?po(e,o,t):[]},Vn.unset=function(e,t){return null==e||ho(e,t)},Vn.unzip=ia,Vn.unzipWith=aa,Vn.update=function(e,t,n){return null==e?e:fo(e,t,wo(n))},Vn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:fo(e,t,wo(n),r)},Vn.values=Vs,Vn.valuesIn=function(e){return null==e?[]:en(e,Ms(e))},Vn.without=sa,Vn.words=Js,Vn.wrap=function(e,t){return Fa(wo(t),e)},Vn.xor=la,Vn.xorBy=ca,Vn.xorWith=ua,Vn.zip=da,Vn.zipObject=function(e,t){return yo(e||[],t||[],nr)},Vn.zipObjectDeep=function(e,t){return yo(e||[],t||[],eo)},Vn.zipWith=pa,Vn.entries=Bs,Vn.entriesIn=Ls,Vn.extend=xs,Vn.extendWith=Ss,ll(Vn,Vn),Vn.add=yl,Vn.attempt=Qs,Vn.camelCase=Ks,Vn.capitalize=Hs,Vn.ceil=bl,Vn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=vs(n))==n?n:0),t!==o&&(t=(t=vs(t))==t?t:0),lr(vs(e),t,n)},Vn.clone=function(e){return cr(e,4)},Vn.cloneDeep=function(e){return cr(e,5)},Vn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:o)},Vn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:o)},Vn.conformsTo=function(e,t){return null==t||ur(e,t,Is(t))},Vn.deburr=$s,Vn.defaultTo=function(e,t){return null==e||e!=e?t:e},Vn.divide=wl,Vn.endsWith=function(e,t,n){e=bs(e),t=uo(t);var r=e.length,i=n=n===o?r:lr(ms(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Vn.eq=Va,Vn.escape=function(e){return(e=bs(e))&&X.test(e)?e.replace(Z,an):e},Vn.escapeRegExp=function(e){return(e=bs(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},Vn.every=function(e,t,n){var r=Ua(e)?Tt:mr;return n&&xi(e,t,n)&&(t=o),r(e,ui(t,3))},Vn.find=va,Vn.findIndex=$i,Vn.findKey=function(e,t){return Vt(e,ui(t,3),xr)},Vn.findLast=ya,Vn.findLastIndex=Ui,Vn.findLastKey=function(e,t){return Vt(e,ui(t,3),Sr)},Vn.floor=xl,Vn.forEach=ba,Vn.forEachRight=wa,Vn.forIn=function(e,t){return null==e?e:br(e,ui(t,3),Ms)},Vn.forInRight=function(e,t){return null==e?e:wr(e,ui(t,3),Ms)},Vn.forOwn=function(e,t){return e&&xr(e,ui(t,3))},Vn.forOwnRight=function(e,t){return e&&Sr(e,ui(t,3))},Vn.get=zs,Vn.gt=Ka,Vn.gte=Ha,Vn.has=function(e,t){return null!=e&&vi(e,t,Pr)},Vn.hasIn=Ps,Vn.head=qi,Vn.identity=ol,Vn.includes=function(e,t,n,r){e=qa(e)?e:Vs(e),n=n&&!r?ms(n):0;var o=e.length;return n<0&&(n=bn(o+n,0)),ls(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ht(e,t,n)>-1},Vn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ms(n);return o<0&&(o=bn(r+o,0)),Ht(e,t,o)},Vn.inRange=function(e,t,n){return t=fs(t),n===o?(n=t,t=0):n=fs(n),function(e,t,n){return e>=wn(t,n)&&e<bn(t,n)}(e=vs(e),t,n)},Vn.invoke=Ts,Vn.isArguments=$a,Vn.isArray=Ua,Vn.isArrayBuffer=Wa,Vn.isArrayLike=qa,Vn.isArrayLikeObject=Ga,Vn.isBoolean=function(e){return!0===e||!1===e||ns(e)&&kr(e)==w},Vn.isBuffer=Za,Vn.isDate=Ya,Vn.isElement=function(e){return ns(e)&&1===e.nodeType&&!is(e)},Vn.isEmpty=function(e){if(null==e)return!0;if(qa(e)&&(Ua(e)||"string"==typeof e||"function"==typeof e.splice||Za(e)||us(e)||$a(e)))return!e.length;var t=gi(e);if(t==E||t==D)return!e.size;if(Ei(e))return!jr(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},Vn.isEqual=function(e,t){return Mr(e,t)},Vn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Mr(e,t,o,n):!!r},Vn.isError=Xa,Vn.isFinite=function(e){return"number"==typeof e&&wt(e)},Vn.isFunction=Ja,Vn.isInteger=Qa,Vn.isLength=es,Vn.isMap=rs,Vn.isMatch=function(e,t){return e===t||Nr(e,t,pi(t))},Vn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Nr(e,t,pi(t),n)},Vn.isNaN=function(e){return os(e)&&e!=+e},Vn.isNative=function(e){if(Ci(e))throw new Ce("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Or(e)},Vn.isNil=function(e){return null==e},Vn.isNull=function(e){return null===e},Vn.isNumber=os,Vn.isObject=ts,Vn.isObjectLike=ns,Vn.isPlainObject=is,Vn.isRegExp=as,Vn.isSafeInteger=function(e){return Qa(e)&&e>=-9007199254740991&&e<=f},Vn.isSet=ss,Vn.isString=ls,Vn.isSymbol=cs,Vn.isTypedArray=us,Vn.isUndefined=function(e){return e===o},Vn.isWeakMap=function(e){return ns(e)&&gi(e)==M},Vn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==kr(e)},Vn.join=function(e,t){return null==e?"":Lt.call(e,t)},Vn.kebabCase=Us,Vn.last=Xi,Vn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ms(n))<0?bn(r+i,0):wn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Kt(e,Ut,i,!0)},Vn.lowerCase=Ws,Vn.lowerFirst=qs,Vn.lt=ds,Vn.lte=ps,Vn.max=function(e){return e&&e.length?gr(e,ol,zr):o},Vn.maxBy=function(e,t){return e&&e.length?gr(e,ui(t,2),zr):o},Vn.mean=function(e){return Wt(e,ol)},Vn.meanBy=function(e,t){return Wt(e,ui(t,2))},Vn.min=function(e){return e&&e.length?gr(e,ol,Br):o},Vn.minBy=function(e,t){return e&&e.length?gr(e,ui(t,2),Br):o},Vn.stubArray=gl,Vn.stubFalse=vl,Vn.stubObject=function(){return{}},Vn.stubString=function(){return""},Vn.stubTrue=function(){return!0},Vn.multiply=_l,Vn.nth=function(e,t){return e&&e.length?$r(e,ms(t)):o},Vn.noConflict=function(){return mt._===this&&(mt._=Ve),this},Vn.noop=cl,Vn.now=za,Vn.pad=function(e,t,n){e=bs(e);var r=(t=ms(t))?fn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Wo(gt(o),n)+e+Wo(ft(o),n)},Vn.padEnd=function(e,t,n){e=bs(e);var r=(t=ms(t))?fn(e):0;return t&&r<t?e+Wo(t-r,n):e},Vn.padStart=function(e,t,n){e=bs(e);var r=(t=ms(t))?fn(e):0;return t&&r<t?Wo(t-r,n)+e:e},Vn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Sn(bs(e).replace(ae,""),t||0)},Vn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&xi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=fs(e),t===o?(t=e,e=0):t=fs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=_n();return wn(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Zr(e,t)},Vn.reduce=function(e,t,n){var r=Ua(e)?jt:Zt,o=arguments.length<3;return r(e,ui(t,4),n,o,hr)},Vn.reduceRight=function(e,t,n){var r=Ua(e)?Ft:Zt,o=arguments.length<3;return r(e,ui(t,4),n,o,fr)},Vn.repeat=function(e,t,n){return t=(n?xi(e,t,n):t===o)?1:ms(t),Yr(bs(e),t)},Vn.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Vn.result=function(e,t,n){var r=-1,i=(t=xo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Fi(t[r])];a===o&&(r=i,a=n),e=Ja(a)?a.call(e):a}return e},Vn.round=Cl,Vn.runInContext=e,Vn.sample=function(e){return(Ua(e)?Jn:Jr)(e)},Vn.size=function(e){if(null==e)return 0;if(qa(e))return ls(e)?fn(e):e.length;var t=gi(e);return t==E||t==D?e.size:jr(e).length},Vn.snakeCase=Gs,Vn.some=function(e,t,n){var r=Ua(e)?Bt:io;return n&&xi(e,t,n)&&(t=o),r(e,ui(t,3))},Vn.sortedIndex=function(e,t){return ao(e,t)},Vn.sortedIndexBy=function(e,t,n){return so(e,t,ui(n,2))},Vn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ao(e,t);if(r<n&&Va(e[r],t))return r}return-1},Vn.sortedLastIndex=function(e,t){return ao(e,t,!0)},Vn.sortedLastIndexBy=function(e,t,n){return so(e,t,ui(n,2),!0)},Vn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ao(e,t,!0)-1;if(Va(e[n],t))return n}return-1},Vn.startCase=Zs,Vn.startsWith=function(e,t,n){return e=bs(e),n=null==n?0:lr(ms(n),0,e.length),t=uo(t),e.slice(n,n+t.length)==t},Vn.subtract=El,Vn.sum=function(e){return e&&e.length?Yt(e,ol):0},Vn.sumBy=function(e,t){return e&&e.length?Yt(e,ui(t,2)):0},Vn.template=function(e,t,n){var r=Vn.templateSettings;n&&xi(e,t,n)&&(t=o),e=bs(e),t=Ss({},t,r,ei);var i,a,s=Ss({},t.imports,r.imports,ei),l=Is(s),c=en(s,l),u=0,d=t.interpolate||Se,p="__p += '",h=Pe((t.escape||Se).source+"|"+d.source+"|"+(d===ee?fe:Se).source+"|"+(t.evaluate||Se).source+"|$","g"),f="//# sourceURL="+(Re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++st+"]")+"\n";e.replace(h,(function(t,n,r,o,s,l){return r||(r=o),p+=e.slice(u,l).replace(_e,sn),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),p+="';\n";var m=Re.call(t,"variable")&&t.variable;if(m){if(pe.test(m))throw new Ce("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(U,""):p).replace(W,"$1").replace(q,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Qs((function(){return Ee(l,f+"return "+p).apply(o,c)}));if(g.source=p,Xa(g))throw g;return g},Vn.times=function(e,t){if((e=ms(e))<1||e>f)return[];var n=g,r=wn(e,g);t=ui(t),e-=g;for(var o=Xt(r,t);++n<e;)t(n);return o},Vn.toFinite=fs,Vn.toInteger=ms,Vn.toLength=gs,Vn.toLower=function(e){return bs(e).toLowerCase()},Vn.toNumber=vs,Vn.toSafeInteger=function(e){return e?lr(ms(e),-9007199254740991,f):0===e?e:0},Vn.toString=bs,Vn.toUpper=function(e){return bs(e).toUpperCase()},Vn.trim=function(e,t,n){if((e=bs(e))&&(n||t===o))return Jt(e);if(!e||!(t=uo(t)))return e;var r=mn(e),i=mn(t);return _o(r,nn(r,i),rn(r,i)+1).join("")},Vn.trimEnd=function(e,t,n){if((e=bs(e))&&(n||t===o))return e.slice(0,gn(e)+1);if(!e||!(t=uo(t)))return e;var r=mn(e);return _o(r,0,rn(r,mn(t))+1).join("")},Vn.trimStart=function(e,t,n){if((e=bs(e))&&(n||t===o))return e.replace(ae,"");if(!e||!(t=uo(t)))return e;var r=mn(e);return _o(r,nn(r,mn(t))).join("")},Vn.truncate=function(e,t){var n=30,r="...";if(ts(t)){var i="separator"in t?t.separator:i;n="length"in t?ms(t.length):n,r="omission"in t?uo(t.omission):r}var a=(e=bs(e)).length;if(ln(e)){var s=mn(e);a=s.length}if(n>=a)return e;var l=n-fn(r);if(l<1)return r;var c=s?_o(s,0,l).join(""):e.slice(0,l);if(i===o)return c+r;if(s&&(l+=c.length-l),as(i)){if(e.slice(l).search(i)){var u,d=c;for(i.global||(i=Pe(i.source,bs(me.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var p=u.index;c=c.slice(0,p===o?l:p)}}else if(e.indexOf(uo(i),l)!=l){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h))}return c+r},Vn.unescape=function(e){return(e=bs(e))&&Y.test(e)?e.replace(G,vn):e},Vn.uniqueId=function(e){var t=++je;return bs(e)+t},Vn.upperCase=Ys,Vn.upperFirst=Xs,Vn.each=ba,Vn.eachRight=wa,Vn.first=qi,ll(Vn,(Sl={},xr(Vn,(function(e,t){Re.call(Vn.prototype,t)||(Sl[t]=e)})),Sl),{chain:!1}),Vn.VERSION="4.17.21",At(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Vn[e].placeholder=Vn})),At(["drop","take"],(function(e,t){Un.prototype[e]=function(n){n=n===o?1:bn(ms(n),0);var r=this.__filtered__&&!t?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=wn(n,r.__takeCount__):r.__views__.push({size:wn(n,g),type:e+(r.__dir__<0?"Right":"")}),r},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),At(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ui(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),At(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),At(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(ol)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=Xr((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return Tr(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(Ra(ui(e)))},Un.prototype.slice=function(e,t){e=ms(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Un(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ms(t))<0?n.dropRight(-t):n.take(t-e)),n)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(g)},xr(Un.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Vn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Vn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Un,c=s[0],u=l||Ua(t),d=function(e){var t=i.apply(Vn,Rt([e],s));return r&&p?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,h=!!this.__actions__.length,f=a&&!p,m=l&&!h;if(!a&&u){t=m?t:new Un(this);var g=e.apply(t,s);return g.__actions__.push({func:fa,args:[d],thisArg:o}),new $n(g,p)}return f&&m?e.apply(this,s):(g=this.thru(d),f?r?g.value()[0]:g.value():g)})})),At(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Vn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ua(o)?o:[],e)}return this[n]((function(n){return t.apply(Ua(n)?n:[],e)}))}})),xr(Un.prototype,(function(e,t){var n=Vn[t];if(n){var r=n.name+"";Re.call(In,r)||(In[r]=[]),In[r].push({name:t,func:n})}})),In[Ko(o,2).name]=[{name:"wrapper",func:o}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=To(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=To(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=To(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ua(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=wn(t,e+a);break;case"takeRight":e=bn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,p=0,h=wn(l,this.__takeCount__);if(!n||!r&&o==l&&h==l)return go(e,this.__actions__);var f=[];e:for(;l--&&p<h;){for(var m=-1,g=e[c+=t];++m<d;){var v=u[m],y=v.iteratee,b=v.type,w=y(g);if(2==b)g=w;else if(!w){if(1==b)continue e;break e}}f[p++]=g}return f},Vn.prototype.at=ma,Vn.prototype.chain=function(){return ha(this)},Vn.prototype.commit=function(){return new $n(this.value(),this.__chain__)},Vn.prototype.next=function(){this.__values__===o&&(this.__values__=hs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Vn.prototype.plant=function(e){for(var t,n=this;n instanceof Hn;){var r=Li(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Vn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:fa,args:[ta],thisArg:o}),new $n(t,this.__chain__)}return this.thru(ta)},Vn.prototype.toJSON=Vn.prototype.valueOf=Vn.prototype.value=function(){return go(this.__wrapped__,this.__actions__)},Vn.prototype.first=Vn.prototype.head,Je&&(Vn.prototype[Je]=function(){return this}),Vn}();mt._=yn,(r=function(){return yn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},55378:(e,t,n)=>{var r=n(34932),o=n(15389),i=n(5128),a=n(56449);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},50104:(e,t,n)=>{var r=n(53661);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},55364:(e,t,n)=>{var r=n(85250),o=n(20999)((function(e,t,n){r(e,t,n)}));e.exports=o},6924:(e,t,n)=>{var r=n(85250),o=n(20999)((function(e,t,n,o){r(e,t,n,o)}));e.exports=o},10124:(e,t,n)=>{var r=n(9325);e.exports=function(){return r.Date.now()}},90179:(e,t,n)=>{var r=n(34932),o=n(9999),i=n(19931),a=n(31769),s=n(21791),l=n(53138),c=n(38816),u=n(83349),d=c((function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,(function(t){return t=a(t,e),c||(c=t.length>1),t})),s(e,u(e),n),c&&(n=o(n,7,l));for(var d=t.length;d--;)i(n,t[d]);return n}));e.exports=d},44383:(e,t,n)=>{var r=n(76001),o=n(38816)((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},50583:(e,t,n)=>{var r=n(47237),o=n(17255),i=n(28586),a=n(77797);e.exports=function(e){return i(e)?r(a(e)):o(e)}},90128:(e,t,n)=>{var r=n(45539),o=n(55808),i=r((function(e,t,n){return e+(n?" ":"")+o(t)}));e.exports=i},63345:e=>{e.exports=function(){return[]}},89935:e=>{e.exports=function(){return!1}},7350:(e,t,n)=>{var r=n(38221),o=n(23805);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},99374:(e,t,n)=>{var r=n(54128),o=n(23805),i=n(44394),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=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=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},69884:(e,t,n)=>{var r=n(21791),o=n(37241);e.exports=function(e){return r(e,o(e))}},13222:(e,t,n)=>{var r=n(77556);e.exports=function(e){return null==e?"":r(e)}},55808:(e,t,n)=>{var r=n(12507)("toUpperCase");e.exports=r},35880:(e,t,n)=>{var r=n(30514),o=n(95950);e.exports=function(e){return null==e?[]:r(e,o(e))}},66645:(e,t,n)=>{var r=n(1733),o=n(45434),i=n(13222),a=n(22225);e.exports=function(e,t,n){return e=i(e),void 0===(t=n?void 0:t)?o(e)?a(e):r(e):e.match(t)||[]}},41811:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function o(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(o=e[n],i=t[n],!(o===i||r(o)&&r(i)))return!1;var o,i;return!0}function i(e,t){void 0===t&&(t=o);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}},50843:e=>{e.exports={general:"PSPDFKit-au2y6ump4kfh59dxhzebebxuk",default:"PSPDFKit-rnby3kbjng3wxrprufma34mec",primary:"PSPDFKit-2pntgtgpg8fsv3qg8w5fqacy4h",disabled:"PSPDFKit-8gpjtx5az7b1eem7nk5gvydakg",inverted:"PSPDFKit-268tqp6xe3scp42vzy5s2eg3gw",danger:"PSPDFKit-948yzas5m1v89qgwznr168uzt",group:"PSPDFKit-3k3q1afeauc3dkyydsfhd7rcnf",groupAlignStart:"PSPDFKit-5rgcz4b9h8c8cna578xznnvwj9",groupAlignEnd:"PSPDFKit-7hx4xwaavengsmnusu1bgqjqxm",groupSpacer:"PSPDFKit-5s4by7ab9qyy27f25vvhggw9a1"}},43100:e=>{e.exports={controlButton:"PSPDFKit-2vhjpczqartzetc7h7a1xe2swv",contentHidden:"PSPDFKit-2nr4hbrfacpy6asgcy579kavvy",wrapper:"PSPDFKit-54fzg7z8tvnck7852u5y8tje7y",pickerWidget:"PSPDFKit-6e5m92eu677mvmp8771tt8vjp4",picker:"PSPDFKit-4z6z5fvcvgzmwxqzw9312q7pbd",firefoxDatePicker:"PSPDFKit-ggstmpcjv8fc924cxp4hqu6cx"}},28841:e=>{e.exports={center:"PSPDFKit-38tjaczw7mwm22y3raq5wmyy1j"}},46492:e=>{e.exports={label:"PSPDFKit-4x5dznaux2fnhttuhjv8qpnrxj",root:"PSPDFKit-79691ssynn76fuqcjks69dk3ms",input:"PSPDFKit-7sgqtcguswky89v7b7fn8q2nc4"}},46323:e=>{e.exports={container:"PSPDFKit-8gjpn8p7xvprbe81bs4qegz9b5",dragPreview:"PSPDFKit-49jnx4hscrumgdkjrg64zuk14q",item:"PSPDFKit-7ax9upudu4ydm6jd89kdj7c6yp",content:"PSPDFKit-2x9bkxefr59ns3waswhn3y72cg"}},50994:e=>{e.exports={}},55511:e=>{e.exports={wrapper:"PSPDFKit-65g4dzzwf1baxctk21rdyms5mr",trigger:"PSPDFKit-8argm94ptuprgj7y3vhw6dr8au",triggerNative:"PSPDFKit-8bsn2442emy52wh8sckmyyq3b6",triggerIcon:"PSPDFKit-4e1fn8va5ecagrevznyumqpt8k",content:"PSPDFKit-5mvfn68qgpc7atqubnfuc3f4b4",contentNative:"PSPDFKit-8bk7wp33b8n1aehgs8mmv32j4t",item:"PSPDFKit-399auf99f4y73aujcw9743yw3g",checkboxItem:"PSPDFKit-59ey17e4mhkgymzb2eu552tv9e",itemCheckmark:"PSPDFKit-6pvqs8xmu549e8xwas52rsdn3a",separatorItem:"PSPDFKit-23nsg5e8wvhgwkuwtf7s7yajjk",itemNative:"PSPDFKit-7hgwsfrfptbsjff1w8wp3vs3fh",itemHelperText:"PSPDFKit-8319n6q61cgvbywqraddyzzq4g"}},56986:e=>{e.exports={richTextEditor:"PSPDFKit-5dmn7sg6ek1rhdxkvkqcbqh9k",wrapper:"PSPDFKit-5uzk3qfr7fcvb4g9gra8chacg8"}},48673:e=>{e.exports={controlButton:"PSPDFKit-4nwgurkrevp1yuf43kw3pw6n4x",contentHidden:"PSPDFKit-617nrrn3mfmnddnq1twgtfg8r6"}},21459:e=>{e.exports={wrapper:"PSPDFKit-2sdtmn12dteusjwrjqrdg811d9"}},15285:e=>{e.exports={dialog:"PSPDFKit-72w9tuwnjsamr2knxvc63vmsar",squareCorners:"PSPDFKit-4xwm59bykq6v7gwcyxwek1ydrn",backdropContainer:"PSPDFKit-3284fys8g583pzu3bk5ga8zefu",backdropFixed:"PSPDFKit-6hden7azu9tyt1ymku7cdkfkat",section:"PSPDFKit-7765ngjsv6cemmhcayzhemjc2z",divider:"PSPDFKit-3mw4zj9p2e4tyy78h5yqq4qax7",dividerSpaced:"PSPDFKit-47ev9d7dyk4ccum2tcjz3a3r35",sectionSpaced:"PSPDFKit-z6uw3esrcxb9v43jgpz5fvnmt",shaking:"PSPDFKit-38d49zqp894x7hvhpr4zu4cbhn",shake:"PSPDFKit-73sp85tuvq7xtryqz19u273z9z"}},70673:e=>{e.exports={progress:"PSPDFKit-7ed17gy5t5hdnc4rekhbhwue9z",appear:"PSPDFKit-28ac9mfnscmu7fw7gy316sv7bn",progressBar:"PSPDFKit-35yq8vgyqdkq1cwb6v94z64det",progressFill:"PSPDFKit-4dwvz8ana6tddzhfs85f6mnnp8",progressText:"PSPDFKit-c8eg9u7nftba2p6d1jj8d8kzb",loader:"PSPDFKit-7ndmeze8gd8de3z4btdkfg1dtd",loaderDot:"PSPDFKit-3kawgqfqrbzkay9qu26fpcdsef",loading:"PSPDFKit-58k69thdd3ken25z2cjaqd7zx3"}},36570:e=>{e.exports={radioGroup:"PSPDFKit-f9rncje5vypsb5267rnrdcs85",iconLabel:"PSPDFKit-3uur2bmk3hqenhtsm6vtpkds4a",iconLabelIsActive:"PSPDFKit-6xcnmm7jxc3re1cmuv5z4j6sk7",icon:"PSPDFKit-8c6mhtrbbsa2js16uaq25bwfa1",selectedLabel:"PSPDFKit-7xbq3geyeftt96vccbps1yn6n7",radioGroupLabel:"PSPDFKit-6d1dypxk3mwh24wj647gqjdppa",fullWidthRadio:"PSPDFKit-4psvp5qh3p6sm4qkr5q2ax9kw5",radioGroupIcon:"PSPDFKit-57yjxnefe1fy6tdx3g76jf6qzv"}},58138:e=>{e.exports={default:"PSPDFKit-38cjpvxsadupm25h2qyxa7n5gd",error:"PSPDFKit-6x4yhy9ph7pfrk6h8kw9utwu6",success:"PSPDFKit-2ymexjhtn4dy2ktzjafxvn4mcm"}},39089:e=>{e.exports={h1:"PSPDFKit-8t7e487v5yhvt5nw4msux95yx4",p:"PSPDFKit-4u8kmkyf5hdjhe4qvnt5a975a7"}},36431:e=>{e.exports={}},23709:e=>{e.exports={treeView:"PSPDFKit-ydd8cegvmd6regsgpmcgpjavb",textWithOverflowEllipsis:"PSPDFKit-5ut2mzy5pm9dnbz7ja1zst4yn2",title:"PSPDFKit-2rfzkq6tdmadkygrfktbk5dv6h",treeItemContainer:"PSPDFKit-4fvzv33kkp5365eup7k2z8g2uv",treeItem:"PSPDFKit-54acf21hdpzkaxsw4swhxn23be",notLocked:"PSPDFKit-2n4dy8ne2zanmq1sp3a24av7j1",selected:"PSPDFKit-4674xx3wq5atu14x3amc4taev3",childRoot:"PSPDFKit-41pkx32asvdjt6wkzw79g1wrxz","icon-eye-open":"PSPDFKit-6uas11jy8s88sc3e3ya6z8ud3d",hiddenChildRoot:"PSPDFKit-8f8u5sdz1zn1xx15x5czq3f5rq",list:"PSPDFKit-6928zz3253n8zmwwxzbfm4gnar",visibilityIcon:"PSPDFKit-86gcd8xxhutnfcqpteyvv1y3e",itemContainer:"PSPDFKit-bxggf97x1sqaeqjt8fdxsymen",icon:"PSPDFKit-4m2n36dgsyk38wswut9tppx4cd",arrowIcon:"PSPDFKit-37j14254rfgde16q2ndmgytjqd",hidden:"PSPDFKit-55tte6ysse2zym23stes4hx5u7",iconContainer:"PSPDFKit-7r73uu3zuph6p89dbz5hjwb15k",itemContainerWithChildren:"PSPDFKit-kqc5fs14zg179hps3hqywya7s",noOcgId:"PSPDFKit-7gya8mn8mystvwa3qb5te8k64b",visibilityIconLocked:"PSPDFKit-8j6zbad6ngwwmbuncnzs1pnhp6"}},68942:e=>{e.exports={visuallyHidden:"PSPDFKit-8aptmp24g12z3cd4gbhkz59kk"}},44047:e=>{e.exports={dialog:"PSPDFKit-36p7d1r74dd1gvqbcxhhshnb6u",attachmentViewer:"PSPDFKit-6ztqmxxme3bpxqcm2s8xa2cbb9"}},76830:e=>{e.exports={container:"PSPDFKit-37y8jyguj8pacvfe5xhztdrrvh",hoverContainer:"PSPDFKit-5wkfpeyned7c4yt1mthjm2byaz",innerHoverContainer:"PSPDFKit-273bhz15uvme1jcsnfahrnpqhm",innerContainer:"PSPDFKit-6c7xfncwch6xyvu2c9ht4628jr",title:"PSPDFKit-7pv18yphuz8xnmy775ru1vhcxe",label:"PSPDFKit-35atxysv8qfd3f8r6vuxhqfqdg",content:"PSPDFKit-3771qspwv8ehjtp2dy2fzju48j",contentRow:"PSPDFKit-2yrnzfc2gx8w1fwmkqaw1avw1e",radioGroupWrapper:"PSPDFKit-88mdrcgzvp2729thzbev99hpvr"}},43609:e=>{e.exports={wrapper:"PSPDFKit-3g9zhcucr422ntc7f1j5r7d642",handles:"PSPDFKit-5jju3cq115q7jyhsr5tbbc9k5v",handleBottom:"PSPDFKit-7crnzth1tunbc1y11dsmm25d3d",handleTop:"PSPDFKit-6jhwapspg9juffwvb74ngnheyk",vertical:"PSPDFKit-72wh5syb1qx2wkvnqjh2ts7ghz",handleLeft:"PSPDFKit-3532cjnqew5bhzac79j6tsgba9",handleRight:"PSPDFKit-2mzfwjn4a49rq62m884wpsqvwe",horizontal:"PSPDFKit-4xstjgjt6yzwy52577u1uxmq58",handleTopLeft:"PSPDFKit-75mze7fkqv4saep8aun4y1qf7n",handleTopRight:"PSPDFKit-q2hk1mcaqqvf11djfan91yrhz",handleBottomLeft:"PSPDFKit-7w3jyr3yvfr7hpbmmha8uc2wr7",handleBottomRight:"PSPDFKit-3n3x1jyrwpd789w22qhc6nrscf",cropBox:"PSPDFKit-7mmux7swq1uq9t5m59se9qu3u4"}},89054:e=>{e.exports={wrapper:"PSPDFKit-5eynqxckhbqrz8a4f77yujbh2k",tooltipFont:"PSPDFKit-42pbth2eu2zrmgpae4jhg6h8en",arrow:"PSPDFKit-6nx2uf6vhf6v33bnb1j4ganvvd"}},3602:e=>{e.exports={textBlock:"PSPDFKit-nxtuykwdsyjh6y7z8brn21b7",activeTextBlock:"PSPDFKit-7qanggak6kh1whzh64vrkx4krz",focusIn:"PSPDFKit-6jc5m1b3ck8fqehqqd9b7th6gt",movingTextBlock:"PSPDFKit-7mzzrbnpvegtq3qm6jswkervc3",selectedTextBlock:"PSPDFKit-f7jcky6yaxh4m5617uaekk3cj",tooltipButton:"PSPDFKit-3mngkstqybyrr7k8f5kgqf5ksn",tooltipSVG:"PSPDFKit-7eywttjpush5dwpejjm2b1edg3",blinkingCaret:"PSPDFKit-4tgb9n39czt6qk8ajacqjv5xdj","blink-effect":"PSPDFKit-nep7zs4azb55r7cpy9m8vdf9w",resizeHandle:"PSPDFKit-7mpkqw7nbbw6tju4s46mm141sc",resizeHandleCircle:"PSPDFKit-3wksyn2d8kqsw1kg6b3vqztpfr",resizeHandleRight:"PSPDFKit-2dv6u2bf1w5g4e17qeenc78qhu",resizeHandleLeft:"PSPDFKit-4fvhxnqd5sg3bad4pr5gsqshv2"}},83137:e=>{e.exports={label:"PSPDFKit-5w3r6933jce2abq346fpwgue51",input:"PSPDFKit-45ug7rn2wuu9n7de4t3y1vuqwa"}},51655:e=>{e.exports={wrapper:"PSPDFKit-9kt28ket9qkhevfbz7cbbw1hb",controlContent:"PSPDFKit-4qbtrs7uku7m1vc5hra33bpuyg",icon:"PSPDFKit-3wag8ffkyv8h2tybvhe7amk9nm",content:"PSPDFKit-5sx5qx4udha76yjmqjkh932ffg"}},51587:e=>{e.exports={wrapper:"PSPDFKit-5ndr2a8v593wmzbkugj7mhpkx6",title:"PSPDFKit-8a1r68duucnwazuve1yp3nbng9",option:"PSPDFKit-4wma8z492shc4ep1hmy6t4vqut",icon:"PSPDFKit-4tmeja8e4gtumrdf83gvhyrcc4",button:"PSPDFKit-2ajb1c5391tmr11mqhaytx273m",optionContent:"PSPDFKit-42c2zme6zggmdzdxcpyafgegx3",deleteButton:"PSPDFKit-4muygv9es2v72qv85d9qdw6e96",deleteIcon:"PSPDFKit-7qr7fr949c5zy3chtgst1aqgnh",addOptionButton:"PSPDFKit-2ds9qudjp9zf1adda74rdu1zrf",addOptionInputWrapper:"PSPDFKit-4h68nb316qa6qx4sztcx3gjhnt",addOptionInput:"PSPDFKit-7squ9wp4ashk5qmgwbchusb3aq",hamburger:"PSPDFKit-62ry3uufpzt87bj49pdg2g3nbm",preview:"PSPDFKit-35d4wvwwd43nxvufv3g9vaexbe",invalidOptionInput:"PSPDFKit-2qjmywkp4vpcrjshnshk8bang7",addOptionInputWrapperInvalid:"PSPDFKit-2jz3pq39c872g9k317nqj88ts4"}},11559:e=>{e.exports={item:"PSPDFKit-6zammky19ps21racepzhy8rr4j",itemIcon:"PSPDFKit-2973scygnut2d1y23dq3gdzwkg",itemLabel:"PSPDFKit-257gq35az6dtxxmtvu6h8s17rt",advancedItemLabel:"PSPDFKit-4jkuv1k2kb5b4d6b929psybced",colorDropdown:"PSPDFKit-5n1c5d9upb23g6mdj3vrzdqj7c",colorDropdownMenu:"PSPDFKit-78jtbtb2j2q11tpjx4jn1wvwvk",sliderDropdown:"PSPDFKit-6s5q3xcggvrp6jet4dfsc14pgv",colorSvg:"PSPDFKit-6gk4p1adjfr1kg7hjpk3dgvtwc",colorItem:"PSPDFKit-4eqdajsqgt941vw7crd9u82kmt",nativeDropdown:"PSPDFKit-837ytb7vykc59sv5yrbgvzw1yp",dropdownGroupComponent:"PSPDFKit-6u23tbh3mu8cm8awxqyzn1zyru",dropdownGroupMenu:"PSPDFKit-5rw15mhzf9ycre4r1g7q2ptv9h",selectBox:"PSPDFKit-3691qqtsdq1317y5z7k3ak5jgk",advancedItem:"PSPDFKit-68nrp97epj74ah3dwvjg79nfmr",advancedItemValue:"PSPDFKit-5fqyghhu3ajdj6t464j4ufdk6q",radioButtonWarning:"PSPDFKit-7qt3uxz4r5wpssw2bbe778ga4g",radioButtonWarningIcon:"PSPDFKit-edsr1ac3tdhjwcufzhwq9jz98",radioButtonWarningLabel:"PSPDFKit-8fdb8fsm3rux9gpz8ggdyhhsyb",formFieldNameReadOnly:"PSPDFKit-71h65asx9k85mdns4n8j2kt3ag",inputReadOnly:"PSPDFKit-8drrc5pnvxucen4e82mywhscj3",lastInputField:"PSPDFKit-6eg6h7jnq9b1wjwv6kf3eqsd7b",footerButton:"PSPDFKit-7kqbgjh4u33aw27zwkrtu57p2e",deleteButton:"PSPDFKit-68w1xn1tjp178f46bwdhvjg7f1",doneButton:"PSPDFKit-8jb23wpy76fvg2x2vsvwy4rwvx"}},65615:e=>{e.exports={wrapper:"PSPDFKit-4q6rf47rhqhrpm9gdfefxt7qxa",label:"PSPDFKit-nt12adttbyb52awsgj2pvucxy",dateSelect:"PSPDFKit-3wx3w3pvjj3upy6569x74y56pt",formatSelect:"PSPDFKit-gcyutzqwxqe8x4u9j7mbfz1ub",input:"PSPDFKit-3yju2u277834cy3gahr2r5pxwa",inputError:"PSPDFKit-42bq6cs954sqg5h9qybewg7j71",errorLabel:"PSPDFKit-m39r8ehbhmf2d2t2fhn5emy6h",formatSelectWrapper:"PSPDFKit-ef4eqctrqnwdwaphd17x3zhbd",disabled:"PSPDFKit-u8tjzsmapgm69zq2qzyaxhxkn"}},21856:e=>{e.exports={wrapper:"PSPDFKit-21tdya9vwjkb9467d89dpj3dz5",guide:"PSPDFKit-6hysu1r6uydnrqrhfk1pps1pr8",hGuide:"PSPDFKit-7dhdpumpuhp8jg295a51ffsd9j",vGuide:"PSPDFKit-8csd1vhppnqgu7uyk8b5mf7czf",buttonWidget:"PSPDFKit-68un8hbc6qvj9x9s9g5q6t21ve",checkboxWidget:"PSPDFKit-5ah6dzjmznmmkdumesdneq7wz7",comboBoxWidget:"PSPDFKit-6fnpakckpk47tsnm8uz3m17u6y",dateWidget:"PSPDFKit-4yuxudxn8gpqg5ask3mtg2zakk",listBoxWidget:"PSPDFKit-51yew4ehdjn7cbsyfq5njb69ma",radioWidget:"PSPDFKit-41fvab9cypgzqfakdc8v95dcb3",signWidget:"PSPDFKit-7w2dawdet2j2kdxg5sat88d5bq",textWidget:"PSPDFKit-ecnxn5u4wzb7hzydwhayukxj",widgets:"PSPDFKit-737nkwy7w9s6vc4dtbb23bs54a"}},32291:e=>{e.exports={hintLineSvg:"PSPDFKit-34rw6dd52chrrk7xv2jr6zquew",line:"PSPDFKit-3eg3ptc58eu1dbczvddeqqmn75"}},52160:e=>{e.exports={root:"PSPDFKit-6eekmx2r3rzpn49557vdt2e5tj"}},9083:e=>{e.exports={colorDeleteButton:"PSPDFKit-996xvngvf7q6px5aesbyjcvt5",colorItemContainer:"PSPDFKit-43z4uam4dc2twts8dzzjr863sc"}},69309:e=>{e.exports={calibration:"PSPDFKit-2s9j7gu6ht55v3fyhb7xkheuuq",item:"PSPDFKit-fn2f5n9d9n8sgj4djs9y86gau",scale:"PSPDFKit-3jgnu7ag1ffzarpqmuquune258",itemIcon:"PSPDFKit-nmsane1s7x9rp49pa42tzpgya",itemLabel:"PSPDFKit-2r48s2je9bp19zqfbs8mgk7184",advancedItemLabel:"PSPDFKit-24yucwgnrz6dxz6nmkt9jremkb",areaLabel:"PSPDFKit-4cuxks564t1dxgzbv7nvjy4yuc",colorDropdown:"PSPDFKit-9rhw3adf6wbfa7qrq615fjqaf",colorDropdownMenu:"PSPDFKit-6e6bk97ea2ucn9vbtxktfajm2p",sliderDropdown:"PSPDFKit-82a458mhumnurhq39us7zu6hyz",colorSvg:"PSPDFKit-5nmcjw7r4p1h2nd2mexfegg2rt",colorItem:"PSPDFKit-3cbxsq6nmh9r4f5756r6c95c7m",nativeDropdown:"PSPDFKit-86jxsd27b1jv4t4ubqhrx633pn",dropdownGroupComponent:"PSPDFKit-6ts2t8acharjbuq54t5wy2eb74",dropdownGroupMenu:"PSPDFKit-u1vpgqn2y5rje53z63f7mq5er",selectBox:"PSPDFKit-51c4fjecxrh9h4tcuygx1te5q8",advancedItem:"PSPDFKit-ncuqwmdusv2msxq73z6fzb24z",advancedItemValue:"PSPDFKit-4ua7xnacac2pm8hhds1kq2me5u",radioButtonWarning:"PSPDFKit-2abxjf7c5m54s1fbpjybj51p2m",radioButtonWarningIcon:"PSPDFKit-4enmf2wc85hnr4743bkg1tyeer",radioButtonWarningLabel:"PSPDFKit-6z22nmct2crec69qf41ena61ub",formFieldNameReadOnly:"PSPDFKit-4nrcak3ru32krpendekckcwwv8",inputReadOnly:"PSPDFKit-5x7gnppfkuuynrhwnep13pak49",lastInputField:"PSPDFKit-8zzdqsxn1q94q3wn44vjes6g2r",footerButton:"PSPDFKit-71vy88q3wndydgre2e58gj53rd",deleteButton:"PSPDFKit-5np2yc2xrsd6y7kt22abt9hb6d",doneButton:"PSPDFKit-4n879bzvk8q7g195cmz6yr433b",calibrationTop:"PSPDFKit-6ckerwnts2h4dqbxrjurcef6dc",scaleTop:"PSPDFKit-4fbe83fym7dgut61w2nf74r473",calibrationBottom:"PSPDFKit-7j9yftqvyfsbxszyryvg4tugmg",scaleBottom:"PSPDFKit-5naa93y6vbhdeeygcvssv2w99g",calibrateRight:"PSPDFKit-83b7zxjm332wqcc4s5gvrxfucj",nativeButton:"PSPDFKit-5xp4qfj9u68z92e75mcf5nqkcg",scaleDropdownContainer:"PSPDFKit-3bdhuh7gr82rtyrxt33vmpj2hk",itemHeader:"PSPDFKit-76y3uq9zy9ugrnh25fwthbtxdy",spacer:"PSPDFKit-4kxzb9uytx6jnhjtkwnzccwcb1",icon:"PSPDFKit-29u9ktdbpp3nysqgxn6naha4m8"}},43907:e=>{e.exports={modal:"PSPDFKit-52vp1wxnkrwaqvutwh9kdyma98",contentRow:"PSPDFKit-5rsrw7ak9xvqnc7bwahsasngx9",spaceBetweenRow:"PSPDFKit-6zjmyma75e4rfma6ujstg3d11u",scaleRow:"PSPDFKit-2ybdx86p6v4nqn1zrarhep8fhd",scaleRowContent:"PSPDFKit-6xaquyhkgnnz83eh3tcntmwpqp",addNewScale:"PSPDFKit-7zz1pa7xv6wgt2y9szvhke9935",rowSeparator:"PSPDFKit-4smtt8g7weze8w3e3n9ht93ak4",scaleMiddleSection:"PSPDFKit-37dv4qsruvxu93evjeh9gtqdna",scaleContent:"PSPDFKit-3766zw48tmq7b2dbzcgstgzxpt",footer:"PSPDFKit-43ubpyc1q299xrwh4k5xrxtk4m",header:"PSPDFKit-32yn21p1rhkx6139tfee43rskf",sectionTitle:"PSPDFKit-88em62dff33bjz4dpcz217kgw1",title:"PSPDFKit-5dpchy3cupj5bxucqn5nt8anr5",scale:"PSPDFKit-8cfu1mwm1ccfxda8tyh14s93v5",signatureValidationCloseIcon:"PSPDFKit-7ypv327ggsprw7wtqh3ggzwtt5",closeButton:"PSPDFKit-6t3gx31kbfuvg7pvvv3m4y2ud6",isActive:"PSPDFKit-7u52vd8vcqhwm46mqm3f6x3u4n",error:"PSPDFKit-4mb9ffzr14xj4f7cmnqkgcrcmq",scalesDropdownItem:"PSPDFKit-65q27ak2bn51hh1r3q8bw6pvrm",calibrationSuccessModal:"PSPDFKit-27a27t78xjc4pkkn8fs1enm4up",calibrationSuccessModalContainer:"PSPDFKit-6g6xvejv8dd1pf35kx6ba8gp5e",calibrationSuccessRow:"PSPDFKit-41haxjcx7ed6crwc23x62ewb7t",calibrationSuccessTitle:"PSPDFKit-68duutqz7ut9qftzm7ns95kbsg",nativeDropdown:"PSPDFKit-6zd1ytwjwxzumcawqamehzyaqs",dropdownGroupComponent:"PSPDFKit-49whdesn68fq294wzdzda443yx",dropdownGroupMenu:"PSPDFKit-3xxzytnemnzg22awfk9rymr2m7",scaleError:"PSPDFKit-75ga4kp46pkcv4peqbsu45nk79",icon:"PSPDFKit-5d5cb99rrfftnfraj6ve1wxtcw",activeScaleRadio:"PSPDFKit-5ypdmxk3tukb91thbuegtp28ry"}},6273:e=>{e.exports={container:"PSPDFKit-7d2gpuvu6pf58ndvvr6gvsje7q",warningIcon:"PSPDFKit-89fc7eud4xcjy12ca7j2haddwk",modalRoot:"PSPDFKit-47ced6qn4nruzv5vuz287qtd7z",heading:"PSPDFKit-2cqd842dczj7tmreu8ur1v9s39",description:"PSPDFKit-yuc41qrmjjetqv8krhsnx78k4",closeButton:"PSPDFKit-6xed4xk58tjqt3b2cq9x86gehh",closeIcon:"PSPDFKit-5zfc76hv99gw27ybkmbk7ebzep",buttonsGroupSection:"PSPDFKit-5wvh17kef4x55jrrzkh3hkaga3",buttonsGroup:"PSPDFKit-4qu4e2qh9g4wt4vaj7wc7rek98",button:"PSPDFKit-8etcg5412u6jyxe6wcw49n4eev",dropdownSection:"PSPDFKit-3hxqujdr5scngtpmjesahhytzq",mainSection:"PSPDFKit-3nd9gpwyygjwssm1a6vvyp2m5n",mobileWrapper:"PSPDFKit-8p7rfubnucmdpxjpsw31xbf5mm",formWrapper:"PSPDFKit-v7ryn5whw1cfrp237m7h2y2mz"}},33806:e=>{e.exports={wrapper:"PSPDFKit-6zm9nnbwvmtst5hnt9v1yhtmta",selectionBox:"PSPDFKit-4rqhxj4gybrps8vxa7fy7a3ssd"}},56157:e=>{e.exports={root:"PSPDFKit-8ffg9gawq78kbmz1r4tzjvvqc9",button:"PSPDFKit-8xy9jsj7mkgjmn242vthsdvebm"}},28561:e=>{e.exports={root:"PSPDFKit-8ehcbhz241z1tfyhjztbe12ube",isDisabled:"PSPDFKit-86bf3wbtmfc5xa3yfd4fazea9y",withLabel:"PSPDFKit-5734rhbbfgd613g81qs13md49y",disabledWrapper:"PSPDFKit-2n6h3jcy1kke81pjgewmpnqa34"}},75401:e=>{e.exports={root:"PSPDFKit-7kgnbhpp26m2rect3yjw1u1693",disabled:"PSPDFKit-314s1es5hfe28mgs9tnhkzb1de",annotationToolbar:"PSPDFKit-812ak3qykd2u5n22qxdy661rhr"}},20482:e=>{e.exports={root:"PSPDFKit-32xak74au7weyz9ycbwytr2c3f",item:"PSPDFKit-5j1459s9zq1zket63h26xjmr1j"}},65473:e=>{e.exports={container:"PSPDFKit-8cswfxve74abt7a5ua2r512q67",empty:"PSPDFKit-7ukwuhzxh3rd8yp7euuxw4jn9b",annotationCounter:"PSPDFKit-4qgb7hxxn2r4g3fdet5bn1pzv8",pageNumber:"PSPDFKit-7pcrw4sjytqdrvwzpes48axkkj",annotations:"PSPDFKit-4uh3zdrahzskzstfsa5v48m76w",icon:"PSPDFKit-65qjuaube253zzcqdz1q4ku4y9",layout:"PSPDFKit-6dxjd7dzqt7trrg39dqjupckv3",layoutNavigationDisabled:"PSPDFKit-6ek4wb89x2x5x1vhr1s1xdux9n",layoutContent:"PSPDFKit-7uyteqpmrzbvazvysj6dcy32h8",footer:"PSPDFKit-5c6ug4g42fqed2454e7qctd4sn",delete:"PSPDFKit-3jftjfjas9mc5fnfn3nvfw9rbs",lock:"PSPDFKit-52gz8466br5ea9fb7c841e2syj",flagsContainer:"PSPDFKit-8wr83uqbdd33rfwu128mj5gnh2",flagWrapper:"PSPDFKit-8d9gtv8zjahaxqn3hdsa2t7tea",label:"PSPDFKit-6qg835argr8knewku8zy5hfyqv"}},98238:e=>{e.exports={root:"PSPDFKit-3g5zqud1wjmcd71kwst6gjbcds",main:"PSPDFKit-6qc6bjvev7sffhewvpkas9njsf",mainContent:"PSPDFKit-2f9xn5bkkrt3h6fsmstdexegkk",mainContentResizing:"PSPDFKit-61bk1385h5ss7vmr9n4d26y7wj",viewportContent:"PSPDFKit-ejvfc31fwjv43pf6dxbymn8xw",overscrollDisabled:"PSPDFKit-gec7bey8wdz7abca1kbpqjncb",progressSpinner:"PSPDFKit-677uxd34863fgw6v55c3187a5v"}},26846:e=>{e.exports={sidebar:"PSPDFKit-782wvn8nd2z21ay1wm9bswvcp1",label:"PSPDFKit-w1axvmcfgbax371sujm939kwb",header:"PSPDFKit-3h7ufh5hp8xyrybwgd87eweh94",item:"PSPDFKit-j7m6aynsm1vr25cuy7avpasuy"}},13178:e=>{e.exports={loader:"PSPDFKit-7386u3hksvwqrk1txdsf6yjwh7"}},98763:e=>{e.exports={root:"PSPDFKit-rmf34nztrfgm2bcf7ccec8zhz",header:"PSPDFKit-3xkskd39bk5c2rsxpw7jwbmnn6",textarea:"PSPDFKit-8m2ghddxnzm27ad3jnnphw522j"}},60941:e=>{e.exports={root:"PSPDFKit-59dey26v49qmxgx7zfh1ehxqag",message:"PSPDFKit-4dct27k6q3q9d4c4atrzr75u79",icon:"PSPDFKit-6pphz7vq2cfumupsmn27tmjjzb"}},1549:e=>{e.exports={root:"PSPDFKit-61pwj551swb751vsvtncfs97hr",hiddenMenu:"PSPDFKit-3txgs1brv6djswfx9c7deps2u2",hiddenMenuEdge:"PSPDFKit-8f8f78v7f3wp5n55qwjfz6qd98",item:"PSPDFKit-33kurg23vuastg415g558n9d74",selectBox:"PSPDFKit-4dvm3x8wyss7tgunnpgjqt7f8r",dropdownIcon:"PSPDFKit-2npkau1bttsh6zan1r4gdrzpzd",disabled:"PSPDFKit-2dk2qm9asz7my783w1r6n44gcq",isSelected:"PSPDFKit-5nr9hus8pqrwezzkgpd829srq5",isOpen:"PSPDFKit-5qky4ks8vy64a1wucbs25k86sv",measurementDropdownText:"PSPDFKit-7e9vp9ptc17dn5jtjsppjv8j8d"}},3624:e=>{e.exports={root:"PSPDFKit-5y28nfkmugyqqwevkxsjrpvq3c",box:"PSPDFKit-3gr2ksq6zccy3zdrbnfy8nh55j",error:"PSPDFKit-6eb3kcqgd5y9q8r7d8xtqz4649",errorMessage:"PSPDFKit-scv92vgvrnxnyc284zcn6hjk3",icon:"PSPDFKit-4wf98g1ha47f4tw6p5xpr51nn7"}},88549:e=>{e.exports={root:"PSPDFKit-6wak7k5y4nxmyh4g8xnd4zxf8d"}},89428:e=>{e.exports={layer:"PSPDFKit-2z5hjphww7fvh1z69wxptsw1b9",cursorPointer:"PSPDFKit-3hfxfy9zqj8jprbtu9vf3epp17",cursorText:"PSPDFKit-3p9u592y96exhe2r2ntk5vbyxu"}},38660:e=>{e.exports={imageAnnotation:"PSPDFKit-5jn8feeuubm369vnx3evcba1rp",stampAnnotation:"PSPDFKit-5b8wstcs14vckqa7tw77vr685r","imageAnnotation-error":"PSPDFKit-6anvx47kar5w253fz6rqg9hxcr","imageAnnotation-loading":"PSPDFKit-rfgw2ucjvptvmzh7zu271n4x2",wrapper:"PSPDFKit-4jv7s61cvh1pcgqnvbxqubx8xv",errorIcon:"PSPDFKit-3z5svj219typgks4atm97b4y6h",notContainedImg:"PSPDFKit-7kevtqukx2j121vwemdz3hztp6",containedImg:"PSPDFKit-56vfsb9q6rq86j9dwdwt9edsp5",wideImg:"PSPDFKit-7yuetahtedwdfmawkggfhnmc8",highImg:"PSPDFKit-4bu7pjnhzjnq6m5wh7z589mw3t",placeHolder:"PSPDFKit-4dw6z4dcs45pn73rp3uakt52q2"}},31428:e=>{e.exports={layer:"PSPDFKit-26jegsvp6ufypbu8pxdv7fr1zz",deadCenter:"PSPDFKit-2wjxpeaermrgg7maxgnqmz9nc3",selectable:"PSPDFKit-3g43gj4at3dwbty7y7kctavd8b",withLayers:"PSPDFKit-85dfpszurcp74kqrua8y455s3x",relativeContainer:"PSPDFKit-247rksk7kd3gvyvzwg1npvhbdy"}},46005:e=>{e.exports={loader:"PSPDFKit-xe2ftya3wdjvwwhx6d5stmz59",loaderDot:"PSPDFKit-6wzqbae66q9h6nya7ye8mvy8kt",loaderShown:"PSPDFKit-64xwysuhvuuphryhjd9kj5nvy3",loading:"PSPDFKit-3u75qfne74tt2wqf8tq6zfy48n"}},20774:e=>{e.exports={canvas:"PSPDFKit-3tr6q51qastpckz1pg3zrtz3rw",svg:"PSPDFKit-2t63tjx7ps8wa34htwyhg1avhr",rect:"PSPDFKit-zxyvguvek2ym1z7dekdnq5v1z",rectStrokeBetween:"PSPDFKit-brx4byv7qnas5ky1tfgt6ba6x"}},33785:e=>{e.exports={OCGsContainer:"PSPDFKit-7w1nxb8aashzh6vn7hwaahzr8r",title:"PSPDFKit-5q31p223rz3j4rbvjs1pf1t3p5"}},13587:e=>{e.exports={layer:"PSPDFKit-4vgck46zhyuscqkznsp8pabh68",isPanning:"PSPDFKit-4cbfb2m7vt4aq7g21z3gxtzzde"}},8431:e=>{e.exports={root:"PSPDFKit-6m9gupd1vyy1fr4bpfheg6wwdk",progress:"PSPDFKit-8nwc6qm7s426c5g16sqaykh38n",progressBar:"PSPDFKit-3mu82vxhmw13y36qrsu6ya81cc",progressText:"PSPDFKit-489xz3n1mhssjcqb9fqcbey276"}},16821:e=>{e.exports={root:"PSPDFKit-5w2de1uyy445puycu46qkgmvar",message:"PSPDFKit-6w84556468p7ssdr8cqmyn8mjr",icon:"PSPDFKit-75vqhz2zk4qrae8pgcsegd1jf9"}},51230:e=>{e.exports={root:"PSPDFKit-6mny4jk3t426w24d83deht33rn"}},4255:e=>{e.exports={selectionRect:"PSPDFKit-41x845wgwdrzef1yhewvdke7jq",isDragging:"PSPDFKit-4xr8ttj6ez7ht327cw29e7egf4",draggingRect:"PSPDFKit-3zx2hhrb4ywt7dnp33xe4gkwb3",resizeAnchor:"PSPDFKit-dhbnhykfyudwqtjr6bkvb411g",rotateAnchor:"PSPDFKit-m9u6yjwr7kv5hrxj2edskfkgq",nwseCursor:"PSPDFKit-39325679hnnu7x4wvxu6tbzens",neswCursor:"PSPDFKit-4d596dtje8pvaa57j35a6jumtj",ewCursor:"PSPDFKit-24ebukh9y4t3vv23sz65xrazp3",nsCursor:"PSPDFKit-3vgs6mrf1dabs2kb4pj7s49g45",rotationLine:"PSPDFKit-h4n5vrr4a9j6mcbt75ygqk7hf",svg:"PSPDFKit-8edbp12fj3btvvzys6786f1fgj",rotationHandleSvg:"PSPDFKit-cb345hgmyvpuvgnewsbd7dmq6"}},92180:e=>{e.exports={container:"PSPDFKit-62axfp2anyb8xpk75p9y1ex6p9",empty:"PSPDFKit-7jkmh5d31sfmdb3qmnnkp6a7fa",header:"PSPDFKit-3zs2wgyxgxdfjh9gpg7wspausy",itemList:"PSPDFKit-2crjcengr1ceqrunvecud8qq94",item:"PSPDFKit-7wa9h3ptey4wt56e8y9w94736m",title:"PSPDFKit-35h6ezfp489wdhvnnpt5mhpkw9",icon:"PSPDFKit-8vqyb7s2ww33zaax9tzz18gfwb",iconUnsigned:"PSPDFKit-7mkxxp5qgadfweavgqfx3f87tv",iconSigned:"PSPDFKit-87hht5q4ypqsrmw4k7stqxv4w1",iconValid:"PSPDFKit-2xxan7ne4sertfng4p9e9m9wu9",iconWarning:"PSPDFKit-86zqb11dkjaszvm3c7cdnwkcgh",iconError:"PSPDFKit-47uqz9mnbhc3j74nzn3bhbq28m"}},46822:e=>{e.exports={root:"PSPDFKit-7dzbfgjr5hhbb3rc1z1j74nw53",signatureInfoContainer:"PSPDFKit-67qcupwvpz7h59x97s5hu3w8y9",signatureValidationStatusIconContainer:"PSPDFKit-5hnd1py888z6q6dqpr2kp2cq2e",signatureValidationStatusIcon:"PSPDFKit-6ee193drjzesd61tu19hcvekb6",signatureValidationCloseButton:"PSPDFKit-67meud5692v5j5a61jw2681xzk",signatureValidationCloseIcon:"PSPDFKit-6u1j5sk8ayvj3gvkxqkswrcet2","status-valid":"PSPDFKit-44csr6tj4teuj9fhfz8ee71tfx","status-valid-icon":"PSPDFKit-2e9udw15t4gp8scnfddhxz9hsd","status-warning":"PSPDFKit-4ppb4buhu7rwnjufcn6ajpkskn","status-warning-icon":"PSPDFKit-86f3yc46j85tr3gsnftm482dk","status-error":"PSPDFKit-2c4pxuv49a7x173nj5nzfauxbt","status-error-icon":"PSPDFKit-8zs1teqnye2ksnaxmemgknn6pv"}},22118:e=>{e.exports={root:"PSPDFKit-6rzkyc987bqyetscyfvr4nf3f2",stickToBottom:"PSPDFKit-2fwepfwm4jpbvv9evy3bh2cmsu"}},91897:e=>{e.exports={slideDownEnter:"PSPDFKit-7q656qfg6merpmvr8kzt9szzpm",slideDownEnterActive:"PSPDFKit-2uctbmt9nj99yrpxdk24951hsm",slideDownExit:"PSPDFKit-5v5jfhfemf1mxc5ret8j9wh9sh",slideDownExitActive:"PSPDFKit-3a46uu7aytzncpnz4ppsu1ucnd",slideUpEnter:"PSPDFKit-7yg9b82v4xahqj93wys6tpbu1f",slideUpEnterActive:"PSPDFKit-44rpp3fvbs9mj6uu6g6my1392",slideUpExit:"PSPDFKit-4pjqt364whvu7b81yv22fwa1ve",slideUpExitActive:"PSPDFKit-4sea6h8efz1kfffbq87vcmq3qu",moveDownSignatureBarEnter:"PSPDFKit-6hdgn11y1ecgvxga69t6p78b9a",moveDownSignatureBarEnterActive:"PSPDFKit-2b6tmwyq1x3rcswb7k71f8vurh",moveDownSignatureBarExit:"PSPDFKit-7hwkgbqv2uvce8qyhqnq7n9vdp",moveDownSignatureBarExitActive:"PSPDFKit-4b3k2aksgt8h7qfz8vz5nbnvfz",moveUpSignatureBarEnter:"PSPDFKit-6rtd66rsbcpdy21mbkethcajk1",moveUpSignatureBarEnterActive:"PSPDFKit-6jy41y1rpnd5deemk7hqpbq4m1",moveUpSignatureBarExit:"PSPDFKit-21nc3yzh856bkm3mw7smrrzb5w",moveUpSignatureBarExitActive:"PSPDFKit-4zmvpm3c2adfnu8qnuw79cjh3s",fadeEnter:"PSPDFKit-79rm2zddjaxgzdkx4w8mqnqa8c",fadeEnterActive:"PSPDFKit-7trwsc5j1bg69wa1vf9qt5e2ve",fadeExit:"PSPDFKit-8t2qrt9phw91wb7a8wwmgdce7p",fadeExitActive:"PSPDFKit-7e9n9mfhw378wrt55c2j4gpdxm",scaleInEnter:"PSPDFKit-67d6x1qnthds5d58mamrx9qpu3",scaleInEnterTop:"PSPDFKit-3dfszxf6jpx5tm2y1gn1ehxgtw",scaleInEnterBottom:"PSPDFKit-8kb8kruw3xcx17v1486van1ttq",scaleInEnterActive:"PSPDFKit-3c4mxzjgy4m6n8r275v2uyp4we",scaleInExit:"PSPDFKit-3uce8apgqwt65tqd63cq5zuvpm",scaleInExitTop:"PSPDFKit-3hsvwu5hjq1a44vcrtkv5fhpnr",scaleInExitBottom:"PSPDFKit-5r2r1t3f6q5zqjq84zbr69ejuk",scaleInExitActive:"PSPDFKit-35xj9c4azp7m511gxuzzvr1k5d",scaleInExitActiveTop:"PSPDFKit-t8mvndx8cr8ydw9bm2vyh2wgw",scaleInExitActiveBottom:"PSPDFKit-378kvahbp4zr42u1gb4cqyxsad"}},47104:e=>{e.exports={container:"PSPDFKit-5b8n6ax7uyfq7q2zt9n9en17ab",wrapper:"PSPDFKit-2jffvae4wwchr5476dpvz5z5ch",header:"PSPDFKit-2ehyk369yxm1zk369m6mttkt22",hideButton:"PSPDFKit-7agv7htc7d2j2xf6ugmwrw1ppu",hint:"PSPDFKit-6qzybrgcrc8sfgmwkc749exk9n",icon:"PSPDFKit-32x2pcstxyeubux789j773s9rc"}},22265:e=>{e.exports={root:"PSPDFKit-8jp8nm1hj7szh4vv5aurdvd5j9"}},64104:e=>{e.exports={placeholder:"PSPDFKit-611629rcz14kzt4fxq9cun8r55",stampAnnotation:"PSPDFKit-291h7cpg24qsc3uyjkzbr88w1y",widgetAnnotation:"PSPDFKit-3k8pvf98ypg7cfxdw2h4s9hks8",error:"PSPDFKit-6kn9fwrhmcn5ws8thfmrbawkps",loading:"PSPDFKit-4668kvbgmy9yr757xzersy788h",wrapper:"PSPDFKit-3gs4z9rtc1a83dstvmn7mamwfd",errorIcon:"PSPDFKit-4vsf7ppa6vgpu72s69w4p6cheb",APStreamParent:"PSPDFKit-6gjytkd24fh19g96hp4rxaukmu",focusWithinOutline:"PSPDFKit-7duaya572p1aupn3x6vrce4kb8"}},87289:e=>{e.exports={annotation:"PSPDFKit-6nx1rtuadk913zxen95pax5hz5",icon:"PSPDFKit-8qpben4cgdt355xztxuqcrcxvg",iconActive:"PSPDFKit-5ty8mmke3as9vprwxv67knqxcc",noteIndicator:"PSPDFKit-4cgbq7rdg2pm33fadjsppnpuux",noteIndicatorActive:"PSPDFKit-2aywxsct3x3wxc4d46re3nssxu"}},30141:e=>{e.exports={btn:"PSPDFKit-7ynwexufv1hs2a9qe2gqaegb69",btnFormDesigner:"PSPDFKit-4cfxcba5wt87u69f2dw7v6xter"}},20985:e=>{e.exports={checkradio:"PSPDFKit-24sm6mv9bd2n715byv1c75x3p1",input:"PSPDFKit-8zz118e9x2cbq64jj7xe4juhtg",checked:"PSPDFKit-5d2c15vj7t3amwwn2yqea1bcas",inputRadio:"PSPDFKit-yun3fvwa7cmcs36wxdpy8barj",check:"PSPDFKit-5kxx5vfzwztr2mwa4mzj18jqrq"}},27946:e=>{e.exports={layer:"PSPDFKit-5pebxrpmqgkrf7vcxe4371geyh",comboBox:"PSPDFKit-7fyvzesvuhuugesmttmj91m4nm",expanded:"PSPDFKit-2a2g4zggqmewex1vm5v4zpgb56",comboBoxTop:"PSPDFKit-6s31a1f931synspdjrnvzxnfgc",valueBtn:"PSPDFKit-4bd1e6vbjnuczspgvgas5tb4us",arrowBtn:"PSPDFKit-3hahgu1xkd2v4363x5d3e6rryn",menu:"PSPDFKit-3vaw2awbbx1p5zjtdh9v5dhtts",comboBoxInput:"PSPDFKit-89gzhtz3mw6xunsgtyr2eum9s6",comboBoxList:"PSPDFKit-88t5fcsjadwffxkef3gfkzaksk",comboBoxListItem:"PSPDFKit-844vbxfxwv5rq9arab8e8gd5de",comboBoxListItemSelected:"PSPDFKit-rrhtfqn9ehag1af8v4xkdd8au",comboBoxListItemActive:"PSPDFKit-49532ws826dtcr1m8n5e4dcjzu",empty:"PSPDFKit-57p3ubjwqmm7d4cs2pftzys4tx",listContainer:"PSPDFKit-s2y6sy6212w5uexa3d23a5asn",list:"PSPDFKit-2waaja9crmechfes91ghkmsmbj"}},83106:e=>{e.exports={annotation:"PSPDFKit-6mcjw1j7tzm5hepajxw83pzakp",icon:"PSPDFKit-5cbbkpsrtp7h1aheyyz5jh553f",iconActive:"PSPDFKit-gfh2n7ye6agxztvft95yj26j6"}},70589:e=>{e.exports={layer:"PSPDFKit-334y8gbu8r2jjjn87nzvuevc59"}},84937:e=>{e.exports={canvas:"PSPDFKit-3w2n2qdrr23cmdk4q8whx3tsxf",container:"PSPDFKit-2gh7qt7mp38bkn5x9qf3y99zu3",path:"PSPDFKit-39tt5mrp55ku7xxg9u7mh41a33",selectable:"PSPDFKit-6wrq4aekz4kq4fgt2pvnb9w6a3",rect:"PSPDFKit-57qn9qb3ug1rpk9v33hd5cxd1d",svg:"PSPDFKit-5q9h4djx3kcxba1qj815pdz3fs",cursorNotAllowed:"PSPDFKit-252bad36x484xaffc25n3h9thg"}},58433:e=>{e.exports={layer:"PSPDFKit-3ncb69xb2ve1sqjjdtyc6cd8g4",annotationRect:"PSPDFKit-5mur5qgg6vwc2wpggzustr83j9"}},18888:e=>{e.exports={listBoxRotated:"PSPDFKit-4epuuwuap9pk3ntjcv5zf9djsb",listBox:"PSPDFKit-7xq92qy48k696v9kfs77d7f216"}},92661:e=>{e.exports={layer:"PSPDFKit-2wu94uj3duvdnqa6qcf42ezs6d",annotation:"PSPDFKit-54pg5n9qt6pj2u219my1yv9v14",wrapper:"PSPDFKit-4ywhmukc4gwqac7ntzy2uz9x6h",content:"PSPDFKit-8tznpz6dg1zmer4mxt1kj4d367",fullScreen:"PSPDFKit-77mpcyuxmy88vcuvt1qbfqn1bg",button:"PSPDFKit-4sup5zkzxcndck1xbaquyw5tat",hidden:"PSPDFKit-3zbd56btxsp72du8mq44gc68pf",header:"PSPDFKit-7t4t5t39c8gj689nypcn8sy1n4",title:"PSPDFKit-8jdq4qfwqhh5yzunhf1nvu3sxs",tools:"PSPDFKit-5ns5z6cwaq7uvb37ejfqcck6cj",tool:"PSPDFKit-28m2z472nqzne4jhz5hvqkzp78",footer:"PSPDFKit-53wjfdyupu3zpctpt74eumsq2b",label:"PSPDFKit-39sru8fstgk9ukw59vdxw6fxkm",icon:"PSPDFKit-2rbb4rpjnbmgu1bj6enchp1549",noteIconInPage:"PSPDFKit-6zth72zst4nvzumuemnjxzum5p"}},9776:e=>{e.exports={container:"PSPDFKit-87g1wera6smataxregkeucdz7u",wrapper:"PSPDFKit-7nzf5ygyxf3ft1vwqded1vys1c",canvas:"PSPDFKit-7ckwm8p8x63jumkemns7vefj6u",rectContainer:"PSPDFKit-8629afaazd1efzub8c3z1qfnae",active:"PSPDFKit-4vzt6kbkqqcu93437rphdgn7xj",selectable:"PSPDFKit-8qst6ht79xb7qug95szm7j35vv",textContainer:"PSPDFKit-86f9zgw71s8n95n7rxd3uqn3c",textSpan:"PSPDFKit-82f4yxbm2u7ssyqxr8sztm7qzb",svg:"PSPDFKit-7vkn9dyk6rhen2hjabdgskypgp"}},62348:e=>{e.exports={canvas:"PSPDFKit-86u6qqcu5qd2p78j3sasqcq3r4",container:"PSPDFKit-6euxnwumsrs547zhsd467cw4p9",visible:"PSPDFKit-2gqt93vqwz7akw64wyn6tk2eqn",cloudy:"PSPDFKit-67t1bptsfdkkkbpn6jgsm9ktd9",selectable:"PSPDFKit-xydzth3k7ns3nahap4gpxayej",strokeDashArray:"PSPDFKit-3zmy52u71trzxmdvbycck28tg7",svg:"PSPDFKit-68femat6jd47qrav117uen51r",cursorNotAllowed:"PSPDFKit-btun3r6cqwxytpv1u8kdyngqc"}},97107:e=>{e.exports={sign:"PSPDFKit-6b7je6w7pq8q3htgsu22kkv6jy",signReadOnly:"PSPDFKit-7181s3qkmmn7fdexydqff3quq3",modal:"PSPDFKit-4kv9rhr6nzpkdjsr5xsjyfaqju",editorCanvasContainer:"PSPDFKit-3nvj481sp2nd9z1gjhvh4xnak2",signaturePickerContainer:"PSPDFKit-3v4b4f9nkt7wjjd26afq8763k5",viewRoot:"PSPDFKit-2g5n99kjfbnxh1che778jg7tjb",viewSignaturePicker:"PSPDFKit-6qtbckagb6bfbdepc3443v6ywj",header:"PSPDFKit-4su78ec7s1c5mkz65pjuq22xsv",footer:"PSPDFKit-5ru14aj6muejw948tvdz1gb3ks",colorPicker:"PSPDFKit-3bexu72w84xp6s2e361sj7711b",title:"PSPDFKit-5r5vdeqd1th8znbb9ygk279qt7",button:"PSPDFKit-8c4vuvw13bebs9s1s79remb5de",group:"PSPDFKit-4kzbv64jk7wgnrp27w38k26bj3",editorCanvas:"PSPDFKit-5ngq82qgx5cxz4uz5mzjkchjr4",signHere:"PSPDFKit-2ju133936zwp42hg96a2f41uec",signHereHidden:"PSPDFKit-2ttca3yjnqndu3nqu48x21jqwz",checkbox:"PSPDFKit-6uvk92p73etnn6mk5qcbqwj9yx",checkboxLabel:"PSPDFKit-642395esq5512gt252k1kx6gg2",signaturePickerList:"PSPDFKit-6p71pj5wv5hqqjxncy9s2zhp6z",signaturePickerListItem:"PSPDFKit-4yhszj3k6pkfr9qjx6zw41fd3g",selectSignatureButton:"PSPDFKit-4nbyd35stvtu3bz3kk4yr18ed3",imageAnnotation:"PSPDFKit-353zxjn4cwq7f5trcamndrkw3j",deleteSignatureButton:"PSPDFKit-7urkar9j36rp4ztzeaqz3jjm6x"}},72254:e=>{e.exports={readOnlyOutline:"PSPDFKit-4rfp7ee9191kd8ynnn3bq8u33p"}},17278:e=>{e.exports={layer:"PSPDFKit-4dwy35ce5zzs8fcuzm4z5qyj9j",annotation:"PSPDFKit-4rhmvvkqbbeztw9z4seq55hdh4",editorWrapper:"PSPDFKit-5sgjnpxkms74d5uhcrs1xnpjkh",editor:"PSPDFKit-c8up8r9n155axqjtb8dat8e5t",richEditor:"PSPDFKit-3g965ce6b38z92kn57ymc33d93",readOnlyOutline:"PSPDFKit-4f28b7qs5h6nk9v4ngh8xr9zsb"}},63622:e=>{e.exports={annotationRect:"PSPDFKit-8py43zrk8tdwczbp1rgu5zkpcc",activeTextMarkup:"PSPDFKit-4111jnwhknt7c61pjq82hshdjm",highlight:"PSPDFKit-68rke3v2mwfersk9s87pby4xqz",active:"PSPDFKit-2wyzkwftushgxqvheqv9gc1qz7",markup:"PSPDFKit-6jx1pd841ynqrzk4be2rtgtwnc",strikeout:"PSPDFKit-4hm8gjadpcvqnu18qte7mqnfey",underline:"PSPDFKit-8hws43jkrgjxj8tajvc3qfhyfr",squiggle:"PSPDFKit-78vd6wa19gxf1ecyped1w9etsw"}},31807:e=>{e.exports={layer:"PSPDFKit-73459dse4nv5d9mqecpwp57s3d",annotation:"PSPDFKit-8wsgnacdwb75d488xzar24jqkq"}},75157:e=>{e.exports={widget:"PSPDFKit-7fx816mm5dnp6e45vtkbeu7u6h",readOnly:"PSPDFKit-53uhn3hvzxffzgk8gjs3fbkn19",focusedWidget:"PSPDFKit-2j44z8y92gejua2pwvgm8sjhm4",onFocus:"PSPDFKit-2kwn8pyc4wfu8r2pfah6fq7qfx",combNoPaddingLeftOnFocus:"PSPDFKit-x9z86ubc4peun53ye7m7udhyp",flexText:"PSPDFKit-cr6q4n8xfg6vtzd5q658psukz"}},54977:e=>{e.exports={docComparison:"PSPDFKit-6xbbtf8p2qcsg9fyy1cuyj7gw5",source:"PSPDFKit-5vy62kz7ms89nk2k2k3swztwdt",sourceTouch:"PSPDFKit-2bqfqmutsr41ycmfq7rs53uqxa",referencePoint:"PSPDFKit-3r5sb26jgasuxhwabq3dunx45u",crosshair:"PSPDFKit-83td1duhyv22mhv3yff4qtza4s",selectPoint:"PSPDFKit-4fgfk59wcke21gwwxhuq8mm7n7",hidden:"PSPDFKit-3dkk2vqpcthpdtrchghtj4ssn4",comparisonPin:"PSPDFKit-7kr3xjykvj7fr643ccby96g62n",page:"PSPDFKit-76gy17tgphy3rkqc839s5j1pzc","deg-0":"PSPDFKit-5pzb826nhfhqp1g5p1ks17fq77","deg-90":"PSPDFKit-427zszzm3g9rt685w6err79657","deg-180":"PSPDFKit-2ymsd6xds9g7m3tn384wexbs7d","deg-270":"PSPDFKit-36rheuktx5sb8ecxck9vutfh9y",magnifierContainer:"PSPDFKit-4y67gffktarr3dzsdm3be4tkxg",magnifier:"PSPDFKit-5dnneume1xfsb52nce5gmkwws3",magnifierGridContainer:"PSPDFKit-5vm17u78a9y73z4fns92w8pcmh",magnifierGridStroke:"PSPDFKit-5r343876m2a2k85cus2jjxh8fw",magnifierCenterOutlineStroke:"PSPDFKit-54zz8rzg9jq31dvzq91d2qkgg5",magnifierCenterStroke:"PSPDFKit-5ct94rndvza9jt8fdk5kj434wf",magnifierZoomValueBackground:"PSPDFKit-jyeb8qr8rp75utm5jpsrrw1xb",magnifierZoomValueText:"PSPDFKit-41ur68urabv2z38jg19c3pcx39",documentComparisonPageLoading:"PSPDFKit-4kmrm9dhgkuczunfzmxs26b83p",pointerLayer:"PSPDFKit-4t23dm96wzfwsfr5116ky9f96y"}},74847:e=>{e.exports={importedDocument:"PSPDFKit-36mc2jhmhw8s6j455stsmh6k7t",importedDocumentIconCircle:"PSPDFKit-7mtmexx6nf2jzpxs9vv5ukyjhk",importedDocumentMovePreview:"PSPDFKit-bx6vky4fzf7e375qv4fgmyffe",importedDocumentInfo:"PSPDFKit-3hs8zjffpgsz41nr4dp7ybdkt5",documentEditorDialog:"PSPDFKit-4z4b7ehrwfy6h6uu3mzbg2v7v4",imageGalleryContent:"PSPDFKit-4rtbqh1sf586seb35p5j8kx2u7"}},50652:e=>{e.exports={root:"PSPDFKit-er87znp11z8wa56gmt1nr1adc"}},97328:e=>{e.exports={root:"PSPDFKit-8ytejk69dm72arac6kecrv7jgs",input:"PSPDFKit-4mck9x4g933qtvsqa6g63nq21j",focusRing:"PSPDFKit-5z85yf9u7uzqx732cjqehyhd3s",swatch:"PSPDFKit-7899cbm2djcuh9uzvh8y9mhq12",inputIsActive:"PSPDFKit-7m6c5mvk9zc3ccp4w9ckt76p5q",swatchIsTransparent:"PSPDFKit-6ge99vaebv8tjqjjwz2pg1qzd6",swatchIsWhite:"PSPDFKit-3eaf5m5zxe8hsj1wptbbs2ru3r"}},84809:e=>{e.exports={nativeColorInputWrapper:"PSPDFKit-3rtr4tx6y919hj63k8j6veyfvu",nativeColorInput:"PSPDFKit-2f2ahvz6xw42cz6ppqg7qrnv5w"}},12497:e=>{e.exports={root:"PSPDFKit-4knn6qcs6mfzubc11j3jn3kdh9",label:"PSPDFKit-5sa85wwcx2g58bvnwu3e9vxux8",input:"PSPDFKit-27139754tezpaj4xtjvqyqphqa",value:"PSPDFKit-6b7xgm3nqzh79vcp4knygzskc2"}},6838:e=>{e.exports={root:"PSPDFKit-877ty5wd8zf2uk8mwxy3vm7ra1",slider:"PSPDFKit-8mewb5unfae7pfb8a3vhx2pfe4",label:"PSPDFKit-7s1evqenghjbnmpkjx46g7aj7a",value:"PSPDFKit-4tsachwba3d2gug8ut8n2k7kw2",dropdownItems:"PSPDFKit-339qy9bx9b7sqbvd31hpseqnhm",dropDownItemsUp:"PSPDFKit-86g1a3rfhteap5bxhyrt2js27u",button:"PSPDFKit-7dtmrym3urvgecwht2mvnd78yn",toggle:"PSPDFKit-4ukn6hggdcjm9mj167e7f6hqx1",flexContainer:"PSPDFKit-7bepqp75z28r5jat89hqdhcjva",show:"PSPDFKit-9f949cfpq924euep2ae47njjm",dropdownItem:"PSPDFKit-5zut7thxsf86fddq8rgtbtrenu",isFocused:"PSPDFKit-5bqkg9v7er35bgbtaqq2vnq3z8",selected:"PSPDFKit-y9nzknrtb2kq52c2xfb4715p7",disabled:"PSPDFKit-6baefa9vw8uyyrsvfez7h3ewrq",dropdown:"PSPDFKit-4xjmg49gjvk5zp5p42ms81uw4h",srLabel:"PSPDFKit-2cuzr66tz354vn9dgkzb1pwq4b"}},62741:e=>{e.exports={magnifierContainer:"PSPDFKit-5u5zg1p821mpfkbnn2k5uwyj5f",magnifierContainerMobile:"PSPDFKit-8wd7v7mnz2rcxvt87ua26mzc6b",magnifier:"PSPDFKit-5nkfqsjv5yud4v1dqua4t23fay",magnifierGridContainer:"PSPDFKit-4ucp3vtq371cyq6rjfnyr48ke9",magnifierGridStroke:"PSPDFKit-2mrwgj2fjj6868616ds613yrym",magnifierCenterOutlineStroke:"PSPDFKit-7sk5hhk6ycrf96cdxc48xy41us",magnifierCenterStroke:"PSPDFKit-4cc9nv4wau5sr77yxnn4p9c6vn",magnifierLabelBackground:"PSPDFKit-61a71yusrshwesstskqk1ts821",magnifierLabelText:"PSPDFKit-zd3q5csyfkc4sst1n5gwd6ynd"}},53455:e=>{e.exports={confirmGroup:"PSPDFKit-6sv7sqb53n124u6fj1tms89hna",content:"PSPDFKit-654mqarkz9bpasgehzef4652nz",button:"PSPDFKit-3db8msn3nmbe95zjws8yr4m8q6"}},13800:e=>{e.exports={noLicenseTimeoutModal:"PSPDFKit-4uccwfpffynm27eb199wcvgfa6",content:"PSPDFKit-6duc25m5r8gy5rgntee7kp4489",header:"PSPDFKit-3fuuhwa21xs9tcx2tz4png1tpx",text:"PSPDFKit-3176nt5ytqfasruqx2cb7426zk",link:"PSPDFKit-321y6pgcakckhny2k21wpdad3b",button:"PSPDFKit-4ujhjvq5wfhu2712d8utd4h7kb",icon:"PSPDFKit-4rbfyr87rf5tqtuqbp52tvzdkj",modalSeparator:"PSPDFKit-5g75rf83wkybmsqshvx3hx9gf9",topSection:"PSPDFKit-k2d9eapy94sjetk94kep995vs",bottomSection:"PSPDFKit-8727zt9sqkbkpmkyjv42frxabg",signUpButton:"PSPDFKit-77ehu16zxj84xk3794yaypyfn"}},37271:e=>{e.exports={blockContainer:"PSPDFKit-8am3xt8zzjm64r49rez8ukprpf"}},92726:e=>{e.exports={element:"PSPDFKit-5adgrb7yvngqk7tujcpr5rc3aj"}},10442:e=>{e.exports={root:"PSPDFKit-5e6tnwkxw9ka415svsdkkptcvx","deg-0":"PSPDFKit-5scxecvmyvz7wahnvpvhqf1u6n","deg-90":"PSPDFKit-4f127napxmw48wj78u1h4t24d5","deg-180":"PSPDFKit-6ncgj8zzkc4v2az5nh5414n95b","deg-270":"PSPDFKit-2a2y9pvb8su899gfj1wsz2ta6n",image:"PSPDFKit-863nmkfmtuh7z8chsq5cfw6y9h",textHighlighterMode:"PSPDFKit-q7ejbjhybhuyqgmj1yb6a4f56",focusPage:"PSPDFKit-8hbgq8hdkhtfm5abztpkrkdp87",hideCursor:"PSPDFKit-87pd6mukheqbugejr1g1n3es7w"}},1886:e=>{e.exports={layer:"PSPDFKit-7v6us4bgaesz3ux74pvm4adq66",overlay:"PSPDFKit-3p1jq2xuq7kt61btvzbmcvfsdg",linePadding:"PSPDFKit-4sqvdfhz56pzjs657n5gmfjv4t",preventUserSelect:"PSPDFKit-7mqrwx6ruetyxx1crt7g8tj53b",lineSelection:"PSPDFKit-87rsspmjgdj1nr79j5xt1zpxef",line:"PSPDFKit-8ayy4hjz5h5sb5mqfjxzpc42zw",lineTextCursor:"PSPDFKit-3npj2ht4kppfp95hepqhfjb49x",vertical:"PSPDFKit-68wd7m2jrz9c462vgy6yvba62f",enableTextSelection:"PSPDFKit-2tg9p1utsyyke5vpebq5gc3413",debug:"PSPDFKit-3a9hp6ezp9vyzwpeksepg43552",selectableText:"PSPDFKit-6fq5ysqkmc2gc1fek9b659qfh8",panModeEnabledInWindows:"PSPDFKit-6d2sxmrfm4vw6wrerzeb1gwxf3"}},2861:e=>{e.exports={tile:"PSPDFKit-2ef7r6efsekvzma2acw68z2wsd",tileChrome:"PSPDFKit-74yvexyjr8t4ns42jhvu6euzjz",crispTile:"PSPDFKit-8qymj2kknqsa216hrbd9qhuh5b",tileSafari:"PSPDFKit-8yevkzm64ywt19z5trdgvvvu8n",tileFirefox:"PSPDFKit-43q2x5xuukayeyf9pnsf3s8vxv",tilePlaceholder:"PSPDFKit-4uahg5akq9ua7h3n6r45t9pnv1"}},42866:e=>{e.exports={tooltip:"PSPDFKit-818uepd2971vwf3fmcn6tbacgg",arrow:"PSPDFKit-5zd14p1pfpmy1ny1f8skcknw3j"}},41143:e=>{e.exports={popover:"PSPDFKit-538wj3bujswdrqewakmmxa9fyf",popoverHidden:"PSPDFKit-8ahxg2rbtxn2ubnutukzs28dqn",container:"PSPDFKit-4jrgdk842q6nrzgfag4cvz7hsa",innerContainer:"PSPDFKit-7bx43nrztecej9c1j8qw9tshdy",title:"PSPDFKit-7w1dhbtytq2jfdb48gs1ywe8jm",content:"PSPDFKit-7dajp2vmg4zxw9ambet64n9umu",footer:"PSPDFKit-2wtzexryxvzwm2ffu1e1vh391u",footerButton:"PSPDFKit-239sjtxdzvwfjbe3ass6aqfp77",shakeEffect:"PSPDFKit-41mt66hwvjgy4qa89c1mtspd1a",shake:"PSPDFKit-7y3ggnb1s18b42w9z9msgq8hr6",centeredTitle:"PSPDFKit-79jfh5ner7hhtyf4y5s4u8az38"}},81162:e=>{e.exports={root:"PSPDFKit-8djq2v9hms33ptxdax4spyth66",arrow:"PSPDFKit-3msp5htb4zsdjjpxv5m6zezhpm",arrowTop:"PSPDFKit-6b9stttuxax9qewr2yxczpv3yz",arrowBottom:"PSPDFKit-6zjksunaugtab91x5bucrc5pa6",arrowLeft:"PSPDFKit-6bfp163dnjfdkd9f9m84znw1uj",arrowRight:"PSPDFKit-7es6pryn4pwz64rxf4payggfh1"}},86585:e=>{e.exports={root:"PSPDFKit-twmttjfcv6j7rzbc8ybn7jhdf",inner:"PSPDFKit-6stgnz1576bk1x1pc2nvf8mswa",separator:"PSPDFKit-47apua2t9uqk8xayrhg2x6bxwp",button:"PSPDFKit-dcqzrnymm6bk9dm2mrhum7xwe"}},91715:e=>{e.exports={root:"PSPDFKit-m8vcznd3skqsshg6rhqg119mc"}},79260:e=>{e.exports={highlight:"PSPDFKit-2y6hbtung363773g77d4418ywh",focused:"PSPDFKit-2b8xs3a5rbg41kx76p2vf3xhs1","fade-out":"PSPDFKit-4fuj5g2pcgnb29m5suwktv921g",pulse:"PSPDFKit-ktyk9aa3ytdrvr4grgjxf6v1j"}},44660:e=>{e.exports={layer:"PSPDFKit-4hndx219v53cj6xkbemwdxxfbp"}},27678:e=>{e.exports={sidebar:"PSPDFKit-wqnk7x3sp9sp2zkcvbfawsb6r",sidebarHeader:"PSPDFKit-6zdf5v5224wp5vu92pkacn6sx3",dragger:"PSPDFKit-4bvu69j78qa67c4wqqxaxrqbs5",draggerHandle:"PSPDFKit-6dtj44vm5qz5vw1njqxgaem7na",container:"PSPDFKit-2x4gzue77m9rd4f4ax5y9e5wj1"}},86601:e=>{e.exports={root:"PSPDFKit-6r17fy6uh5kqy3cfjb73vq9v1v",expanded:"PSPDFKit-2uhz161knhrkpzrb5mn5na3aqr",content:"PSPDFKit-6jgwts4kv8dr7cftse42cxk2z3",left:"PSPDFKit-4hphv7cb89h1ffw9ptvmg9xjt8",right:"PSPDFKit-86nhzcde1runqybnpjzcykq7ex",mobileTextMarkup:"PSPDFKit-2qbav5sard6dxefsy6p5gufajq",stickToBottom:"PSPDFKit-318vz1kpftbtjp8eccy824g4m6",fixedHeight:"PSPDFKit-78mpt2swt4apfep3ag7quqq6me",control:"PSPDFKit-2uws3ww83fja6b3syxj88szuvh",selectBox:"PSPDFKit-532n3mbvmujvwmv3zweh7u59u7",textFormatControls:"PSPDFKit-8b7caq86m7x4bkzf3ecjwqesrz",controlWrapper:"PSPDFKit-xmyz8vgna6pqfkw4wx1twayf1",controlWrapperAutoWidth:"PSPDFKit-559g7qqwsyx86ydrj6d8x6kwqz",separator:"PSPDFKit-4cjwhud83czuezgnpqtt8t1g4y",form:"PSPDFKit-6x3mktvp3y8yqny5uh5ph6t27s",formGroup:"PSPDFKit-6f2cfyrxss9tgjemae8n6d2v6x",button:"PSPDFKit-5qha63wcjhyk977pmb11w183gf",rotateButton:"PSPDFKit-3zswrctphfm56abme3mhe89x7j",measurementToolbarButton:"PSPDFKit-5d6y6gzx57mzvk4ghwgz8bysng",iconOnlyMobile:"PSPDFKit-56zcn74uwt3jmwt9eqt4nkmm3w",blendModeSelect:"PSPDFKit-7tafq9cxvp7fp9488nkv4gt1q2",fontFamilySelect:"PSPDFKit-6panjxae2rqax33e2x13v8zhd7",fontSizeSelect:"PSPDFKit-4aap34xg2exyha2wvgep2kbrsr",colorSelect:"PSPDFKit-63mkqz864gr762bjh37u3z33ks",endLineCapSelect:"PSPDFKit-7ahby6faw9zgpdmzru1qdud52z",startLineCapSelect:"PSPDFKit-7bb9twn4c2xfchvdyv1arjd4y1",strokeDashArraySelect:"PSPDFKit-64yekz19k5s2s3kk34sutarr9w",colorSelectButton:"PSPDFKit-6e37e5hxgedzhdzpj3bgcfw8wg",controlIsDisabled:"PSPDFKit-4b2dydfrvtffvsbyz6hjmmskx3",textAnnotationOpacitySlider:"PSPDFKit-xjmpbe2ndu31ngzn7k6thcce2",annotationNoteButton:"PSPDFKit-8b5wugfkhy83qz3mrt12xxee7b",deleteButton:"PSPDFKit-3pw5d71zmdn7g2d7f7cezqab2k",buttonNoBorder:"PSPDFKit-7hhujt42dfa3wavves9fezeqju",noteIconLabel:"PSPDFKit-6kwwztxzkww77985knzv4yj25t",applyRedactionsButton:"PSPDFKit-dh9zgevasabjjq92gftvq7d1s",formDesignerButton:"PSPDFKit-6hwd5kb669g2rktq8z7tch8zey",isActive:"PSPDFKit-7hajh57r86sbfab9agdabjpdus",disableEditing:"PSPDFKit-qq4v7j3ztmbsu7sszn7n6eedz",disabledButton:"PSPDFKit-53qj5y7xwpxf385e5qupnueez4",icon:"PSPDFKit-67g1s4jvmu1dwuq693983pavtq",focusRing:"PSPDFKit-p3fhayknwfc2wy838mm6uf6ts",fontFamily:"PSPDFKit-7pxe4xgby27sg3gch3hgymc65k",dropdownMenu:"PSPDFKit-3fr3j3qzhb8zms4ha22gf8ap4w",warningButton:"PSPDFKit-7vux3363c2h5bhhue8x2tgc2d8",warningButtonIcon:"PSPDFKit-55tsnvt1cbusd6n1b314embzfj",radioButtonWarningLabel:"PSPDFKit-ve8hjm9h24pnag6snsj5hqyba",colorPickerDropdownMenu:"PSPDFKit-364rxkqcrexqk43jvg479qt5us",colorItem:"PSPDFKit-7fb12eurd4ysp5ys7tc9wgnuqm",deleteButtonIsVisibleInTouchDevices:"PSPDFKit-5rx1gxu9ku1pmjedwxt4bb8tcs",colorSvg:"PSPDFKit-2v57cb7nenh6qvs2r55dm7ftbf",lineCapsDashArrayMenu:"PSPDFKit-42uwtdws1bb24aernmbsz8ndnc",strokeDashArrayMenu:"PSPDFKit-8497hrdu98kjamf5s4gjf2bqmd",nativeDropdown:"PSPDFKit-3c6frtkm4xmn7hkv9bmpghx53j",fontFamilyNativeFlexbox:"PSPDFKit-3smmwjpf56cyb4zkshtg21jz2s",fontSizeNativeFlexbox:"PSPDFKit-7bwhutmv5jg6hggz6hp8kfcaxy",fontColorControl:"PSPDFKit-2zvhj3he31vtfrqjkjpsjb1694",overlayTextInput:"PSPDFKit-823r5gtrunhm37br45pwje8e5c",overlayTextMargin:"PSPDFKit-65ynqjj3xqcettebe26255q3ky",groupWrapper:"PSPDFKit-j3u5td7da5d2g12j3qb8kpqeq",groupDescription:"PSPDFKit-74acavk6n23dwq957gtnmbyyrf",overlayInput:"PSPDFKit-6dqybwsyjvqprdkfh1d5t3w2yj",radioInput:"PSPDFKit-87t3tq755fdm56p5111u2h5a4g",applyRedactionsWrapper:"PSPDFKit-4ssbr6rxv19yz6yh7bjp4pfgeq",customIconSvg:"PSPDFKit-p9ftrww9ym9pd2eqpps4xf6fp",snappingCheckbox:"PSPDFKit-68jg3chhe27v2qnds97q2btw4c",radioGroupWrapper:"PSPDFKit-3hf9zjqgg3t2aehba45fzmw9nc",reverseRow:"PSPDFKit-4g9caken58dfxv7snyka36rppq",measurementToolbar:"PSPDFKit-4pfvumqbpr5cct3yusfvsb8cza",measurementBackButton:"PSPDFKit-5mpcapg77fbdwa2sj3mz1x79hy",pointSnappingToggleButtonWrapper:"PSPDFKit-8bdhrea5ynkgph4wjuf7eenccs",pointSnappingToggleButton:"PSPDFKit-3jwjxf3q3tc2mjebw5qwnndfvn",customExpandedSpacer:"PSPDFKit-213y239hvmwyywskz6w98gk6ny",cancelButton:"PSPDFKit-2xp3dpn7gjfma23f6vj4hucxt",selectedNoteIcon:"PSPDFKit-2yt5nc3dhhss85jaarp6xpg6ue"}},47010:e=>{e.exports={toolbarReferencePoints:"PSPDFKit-3j4jdq7qz2dwxa1279k9vazwef",documentTabActive:"PSPDFKit-69m56fu4j9n82gdbujywja2gvt",toolbarReferencePointsSet:"PSPDFKit-8eej8fpcv5wjeexf54uv82ajge",referencePointParent:"PSPDFKit-5ryk8gx2yq84us8ukyczpsxy3m",documentText:"PSPDFKit-8rqw29ppj2w4yuvy43x1xrr11j",mobileText:"PSPDFKit-2we2fxduv62wzemn8q1msf1mgz",documentTabActiveText:"PSPDFKit-4dxpfmdzs1ahjnhcn4j2824q7j",separator:"PSPDFKit-xy1ab3hf7etfk3xyw2jg4queq",toolbarReferencePoint:"PSPDFKit-3wymx3u415ps1255jfa43bguba",documentTab:"PSPDFKit-4a9v7b75g9brahh3mp79eahacf",toolbarReferencePointMobile:"PSPDFKit-4negp1qnzp2hght5fzzkb948bq",second:"PSPDFKit-4aha149mn5fr2qf7nm9vv3s1e8",checkMarkSvg:"PSPDFKit-8vq8197jb1dah7zkt2cj4puza6",checkMark:"PSPDFKit-5vyjan5cx19u6zqmpkyk5y6n4m",documentCheckMark:"PSPDFKit-8y45regm71axdj29fvpdnyyqw9",referencePoint:"PSPDFKit-8kjh85hafnnbaywytk891yszzy",referencePointSet:"PSPDFKit-5u4fqe6u9h9335r2untkufbfcj",autoCompareTab:"PSPDFKit-3a6ss6w8kz4a9bg1ppdxs9wfjn",mobileTab:"PSPDFKit-4ws5865r8ddf7waw5w994xbgka",resultTab:"PSPDFKit-63wgvxgkew5y5nngyepzsvu4me",root:"PSPDFKit-5g2uumfazey6jk28fuu62t1ku1",content:"PSPDFKit-49apg3ban7f6z5tha93nkbxpj4",left:"PSPDFKit-46dnp15jxsmbmfb4w9u1ffee2p",right:"PSPDFKit-3bsbcmmu6v14v6bf89hvv51u6r",mobileTextMarkup:"PSPDFKit-54wvq7waj941tcr6uq8dg63zsm",stickToBottom:"PSPDFKit-84kxsxx785v52177eqww89wnfu",controlButtonContainer:"PSPDFKit-7vccbh9nhre14pssj1cjg5ykph",tabsContainer:"PSPDFKit-6q2z53f1kt5u3frhayfupey174",buttonAlignDocuments:"PSPDFKit-6qd7xqnwwt5spedkqzrq2xxd1y",buttonExport:"PSPDFKit-v7w7h5tnf2m47yzqtd84h1drm",buttonReset:"PSPDFKit-kfexhdzwencygrragmhzwd8v3",mobileButton:"PSPDFKit-67ced71xr6v9qcqegyjdb8f9h2",buttonAlignDocumentsActive:"PSPDFKit-2wue8e3wfu7w9cxehmz4e88ktt",buttonExportActive:"PSPDFKit-5p1uejfqckjn5s61nuatmaqbme",buttonResetActive:"PSPDFKit-5jfgm1cjfd1sp4z1fkd6a1hcc7",form:"PSPDFKit-6s9dcaafj7ab6mc6ktq5xn5tw6"}},96936:e=>{e.exports={root:"PSPDFKit-8m5dgcvdub44eff6cqg7ts2cjr",expanded:"PSPDFKit-8yknxd1f4y981tccz8dh4g8ysu",content:"PSPDFKit-g8vvta241sfp35m3q1txf2jms",left:"PSPDFKit-544yped2u4234vsvdkekqquah6",right:"PSPDFKit-56r3x6wd7mh3j4tucykvsz7fr2",mobileTextMarkup:"PSPDFKit-8nn2u8h2gbt32e7mxxtmv2mec3",stickToBottom:"PSPDFKit-564xzhwe6w5ae5481dfhmug33m",fixedHeight:"PSPDFKit-8y8ry1skx1gktbxfpy533vnr4s",control:"PSPDFKit-6z1mew8dvz5q19qxady7tu38qy",selectBox:"PSPDFKit-3hevqn5c1jq4ax3d5qn32rg1mp",textFormatControls:"PSPDFKit-w75ywbd65n9gbzrxn7mna9xkm",controlWrapper:"PSPDFKit-6wc4has8zn7dbv9cm9pkt67tnz",controlWrapperAutoWidth:"PSPDFKit-34v628gkw2fc9p67fr19w64gc1",separator:"PSPDFKit-5hjbdnvs13e2ca5eqjxf7zp9yg",form:"PSPDFKit-4h156avy977cp99f9qf725u3k1",formGroup:"PSPDFKit-4e4avvgasjwn8h73v6jkpa8gk8",button:"PSPDFKit-2bjxf569mbv7gzye1wgct21whh",rotateButton:"PSPDFKit-2swafsutj3asv69k2haadjr4s9",measurementButton:"PSPDFKit-546c2hkpdw9snxp424pnsmhxq9",measurementToolbarButton:"PSPDFKit-8s3tc4ue5ws71ctyfxvwtqhz3q",iconOnlyMobile:"PSPDFKit-5bfphs999e8wvdw5v2n7e8qp87",blendModeSelect:"PSPDFKit-3n2rb2c97888yn3d3wnx15et31",fontFamilySelect:"PSPDFKit-4a8538xvj1fpxnurprwxaz5nw2",fontSizeSelect:"PSPDFKit-4czf9ft9rp8d2sceu3fs8fv8dk",colorSelect:"PSPDFKit-ay3yd5gs5js4wgubdg7tnzux5",endLineCapSelect:"PSPDFKit-6h82uh898r9tmu1358eeytvck",startLineCapSelect:"PSPDFKit-39nwuj2asd2yq6vf3sxrxc2euk",strokeDashArraySelect:"PSPDFKit-6am1xaab718uw2s2zx61cnrgme",colorSelectButton:"PSPDFKit-59zgkcyc8ryzxmvfxeq1vskngf",controlIsDisabled:"PSPDFKit-2wzdpw37cmm388kp3zpw3545mg",textAnnotationOpacitySlider:"PSPDFKit-af61db8fea4n741cgams6p1fr",annotationNoteButton:"PSPDFKit-568wz4phqwhvqwfq6gm97yjswm",deleteButton:"PSPDFKit-2gk718yxj2nztcwss87xwfqk3e",buttonNoBorder:"PSPDFKit-44tteyter4ej5tw7k5xdux3gkk",noteIconLabel:"PSPDFKit-6pem85p2cu36qv1qeg93m3hzgh",applyRedactionsButton:"PSPDFKit-78g2au2vadphegheenf6ytxef5",formDesignerButton:"PSPDFKit-2qtkre6jjjsu8ujtbptn5xxhu1",isActive:"PSPDFKit-47e8hwmgnjdfjfnh49nyvxhbe8",disableEditing:"PSPDFKit-88p7c6js2c1ph59rk855hmpat9",disabledButton:"PSPDFKit-48kafbpmcg6sf9mg1pfwwh57s8",icon:"PSPDFKit-66rdvf16zzb27y44j8mygzhqch",focusRing:"PSPDFKit-24ap44wbdb7eaa6snmpmcaq1yr",fontFamily:"PSPDFKit-3xjv4ss1d5svdx3r177bbd6xgg",dropdownMenu:"PSPDFKit-3xmxvd5qkadgkzcwjhp79r36t5",warningButton:"PSPDFKit-3gasg9psnz26xrxfg39a2gtdxw",warningButtonIcon:"PSPDFKit-73gdptks8f9tu5gx9bp8pfrb5h",radioButtonWarningLabel:"PSPDFKit-5a3ck4rw1ph548j9x8w87njk2",colorPickerDropdownMenu:"PSPDFKit-5wuxyspdnrjx29v2ccppfhqtc5",colorItem:"PSPDFKit-3wa72t6gu1burajhtdv3q87aw8",deleteButtonIsVisibleInTouchDevices:"PSPDFKit-4zv479yzcawr4mq39q9hjug54",colorSvg:"PSPDFKit-389ta3kc7a99j37x169z5z5fj4",lineCapsDashArrayMenu:"PSPDFKit-3ags6m965w7w7zdt5sjbcf13dg",strokeDashArrayMenu:"PSPDFKit-n3e7jwgku1xhhv3e55x24vekr",nativeDropdown:"PSPDFKit-8xwh536rwypxgpabkcj14t26cf",fontFamilyNativeFlexbox:"PSPDFKit-6hu6r63mwerfp977knmfp21vhj",fontSizeNativeFlexbox:"PSPDFKit-3db9xcq5wmwtruwkq4bv9rhu2q",fontColorControl:"PSPDFKit-dgzsw4xt23w8mft3nqh65hk98",overlayTextInput:"PSPDFKit-7mk4hktvgsjn9mj4cd1jejs5am",overlayTextMargin:"PSPDFKit-7u8e4kwz2agp7pqy8cpr5f14hb",groupWrapper:"PSPDFKit-6zxcr9xe59nj2tvdnac3bz4ayj",groupDescription:"PSPDFKit-cgv7v9ckzek87cqvdc26zshz7",overlayInput:"PSPDFKit-552eq57219yazmkax7mg9jsxt2",radioInput:"PSPDFKit-3veyxx9c8v4naukrt5fpr1wh9k",applyRedactionsWrapper:"PSPDFKit-4wm88wjy69u9jph1j3bjjv5acd",customIconSvg:"PSPDFKit-5ym1weayfp457gmy8zwg45273n",snappingCheckbox:"PSPDFKit-241tea2hcbavwv3hwj91z2p87h",radioGroupWrapper:"PSPDFKit-mjtc77hphbqfkxz33e6x6bu7c",reverseRow:"PSPDFKit-646k8j99rd5dvpd2nms499pcp1",measurementToolbar:"PSPDFKit-6mwweyf6n9pc7mzrggyprwhped",measurementBackButton:"PSPDFKit-28pc1yw7p2vezs227aqvkyf279",pointSnappingToggleButtonWrapper:"PSPDFKit-2pr864tm22yt1ezvpucxnfs17j",pointSnappingToggleButton:"PSPDFKit-85wxyae3f7cfe7ffnjrdegb4md",customExpandedSpacer:"PSPDFKit-3ts6v6mtmwgmftd676q9cajwer",cancelButton:"PSPDFKit-4spnjdhtjscn83tke6jwww8g14",selectedNoteIcon:"PSPDFKit-3yy6ne9ksxqn6rg9szsnjz7wey",measurementButtonActive:"PSPDFKit-8mm3cx4nx5w3erxa2zk8psb5uw",spacer:"PSPDFKit-2tezn54ngcs3tf84wze6c41e8g",measurementValue:"PSPDFKit-2kchu94ayc3faexk2kn8u99u6p"}},92862:e=>{e.exports={dropdown:"PSPDFKit-2h6u1uvepb29aceyswrhabn442",root:"PSPDFKit-5hqvpgcgpf1769cn35dvtg4ktz",withDropdown:"PSPDFKit-59hpcfye46ptznzj6qnfjzxmw5",icon:"PSPDFKit-3dcfza4a2zm1e2eg4echhrm6g5",isDisabled:"PSPDFKit-43cceb3p2mywgnc9ah1q5apjh4",withDropdownDisabled:"PSPDFKit-5wps7sscy34hpgrmzwbrb2k8h8",wrapper:"PSPDFKit-8nyvpcm5qq23nzqvwdfzqayryh",disabledWrapper:"PSPDFKit-8mq4c412r44dvy4qtvyfp64p1k",discreteDropdown:"PSPDFKit-32j2tkxs7yf83d9vrqs2np1xja",dropdownIcon:"PSPDFKit-6511p928m8fcbcd7nb8arydjxe",withDropdownIcon:"PSPDFKit-7t6uf3numwbvg2qg3x9sx7rkjx",withDropdownIdle:"PSPDFKit-6s8pjz7ybfkbm9j34ce4qsz32w",withLabel:"PSPDFKit-67e5xx7a8j97ze41fv1th56sbu",isActive:"PSPDFKit-yyu2s7s1tuqk1ww7hvgfnef81",disabledDropdownIcon:"PSPDFKit-7mpjdpbxyc5gttymwetaz47j3q"}},18891:e=>{e.exports={responsiveGroup:"PSPDFKit-7s54nnph7yayfgqvb7rcy9q2r9",primary:"PSPDFKit-6zy881tctu9r8st5vfwvpcfxja",stickToBottom:"PSPDFKit-2sm51vztwj4mjbhd5pehvnauwk",secondary:"PSPDFKit-272tn91arpsx8j7fngtk874eyz",button:"PSPDFKit-8tf4984hks13xr145qxkvqh5x2",animatedArrow:"PSPDFKit-3skkbnpn3gm9d5fp6b75tc96pe",isActive:"PSPDFKit-3jvcxjeemxp6228839um72qy4t",items:"PSPDFKit-2n3akw6g2m6zcpdwrxfqcdm28q","arrow-left":"PSPDFKit-6t665x89dpp83cptuahpm823v9","arrow-bottom":"PSPDFKit-3ta9x8afg61d6nxtq9yhdeq5k2",slideRightEnter:"PSPDFKit-5g7enmsbf45swnff2zwyxdwmd8",slideRightEnterActive:"PSPDFKit-h2x5j64f4qrks9ntdqzgenamu",slideRightExit:"PSPDFKit-4hcst5bakcb11gphagzdemmaj2",slideRightExitActive:"PSPDFKit-2f4rg8arx4myttw4gnp6m4cj6f",slideRightEnterDone:"PSPDFKit-3zhxpze9bhbrk5wqq7cnx6rrcz"}},71052:e=>{e.exports={focusVisible:"PSPDFKit-224gyk59mnmuy1j6u58s8bcf2p",focusedFocusVisible:"PSPDFKit-3mxmx3p3whct5a2qk5bsb3v7rg"}},27913:e=>{e.exports={container:"PSPDFKit-3sfryrauuv8z7rsrhvwjp9v7b4",innerDocumentContainer:"PSPDFKit-3737zr7bezjtn49bwf9xwk49nq",diffViewer:"PSPDFKit-6t7bwhe645jzh3hy8f71642rh5"}},15772:(e,t,n)=>{"use strict";n.d(t,{Ny:()=>y,xe:()=>R,W9:()=>S,PY:()=>vs,Ib:()=>ys});var r=n(74848),o=n(96540);const i=(0,o.createContext)({});function a(e){const t=(0,o.useRef)(null);return null===t.current&&(t.current=e()),t.current}const s=(0,o.createContext)(null),l=(0,o.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class c extends o.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=t.offsetParent,n=e instanceof HTMLElement&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function u({children:e,isPresent:t,anchorX:n}){const i=(0,o.useId)(),a=(0,o.useRef)(null),s=(0,o.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=(0,o.useContext)(l);return(0,o.useInsertionEffect)((()=>{const{width:e,height:r,top:o,left:l,right:c}=s.current;if(t||!a.current||!e||!r)return;const d="left"===n?`left: ${l}`:`right: ${c}`;a.current.dataset.motionPopId=i;const p=document.createElement("style");return u&&(p.nonce=u),document.head.appendChild(p),p.sheet&&p.sheet.insertRule(`\n          [data-motion-pop-id="${i}"] {\n            position: absolute !important;\n            width: ${e}px !important;\n            height: ${r}px !important;\n            ${d}px !important;\n            top: ${o}px !important;\n          }\n        `),()=>{document.head.removeChild(p)}}),[t]),(0,r.jsx)(c,{isPresent:t,childRef:a,sizeRef:s,children:o.cloneElement(e,{ref:a})})}const d=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:l,presenceAffectsLayout:c,mode:d,anchorX:h})=>{const f=a(p),m=(0,o.useId)(),g=(0,o.useCallback)((e=>{f.set(e,!0);for(const e of f.values())if(!e)return;i&&i()}),[f,i]),v=(0,o.useMemo)((()=>({id:m,initial:t,isPresent:n,custom:l,onExitComplete:g,register:e=>(f.set(e,!1),()=>f.delete(e))})),c?[Math.random(),g]:[n,g]);return(0,o.useMemo)((()=>{f.forEach(((e,t)=>f.set(t,!1)))}),[n]),o.useEffect((()=>{!n&&!f.size&&i&&i()}),[n]),"popLayout"===d&&(e=(0,r.jsx)(u,{isPresent:n,anchorX:h,children:e})),(0,r.jsx)(s.Provider,{value:v,children:e})};function p(){return new Map}function h(e=!0){const t=(0,o.useContext)(s);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=(0,o.useId)();(0,o.useEffect)((()=>{e&&i(a)}),[e]);const l=(0,o.useCallback)((()=>e&&r&&r(a)),[a,r,e]);return!n&&r?[!1,l]:[!0]}const f=e=>e.key||"";function m(e){const t=[];return o.Children.forEach(e,(e=>{(0,o.isValidElement)(e)&&t.push(e)})),t}const g="undefined"!=typeof window,v=g?o.useLayoutEffect:o.useEffect,y=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:l=!0,mode:c="sync",propagate:u=!1,anchorX:p="left"})=>{const[g,y]=h(u),b=(0,o.useMemo)((()=>m(e)),[e]),w=u&&!g?[]:b.map(f),x=(0,o.useRef)(!0),S=(0,o.useRef)(b),_=a((()=>new Map)),[C,E]=(0,o.useState)(b),[k,z]=(0,o.useState)(b);v((()=>{x.current=!1,S.current=b;for(let e=0;e<k.length;e++){const t=f(k[e]);w.includes(t)?_.delete(t):!0!==_.get(t)&&_.set(t,!1)}}),[k,w.length,w.join("-")]);const P=[];if(b!==C){let e=[...b];for(let t=0;t<k.length;t++){const n=k[t],r=f(n);w.includes(r)||(e.splice(t,0,n),P.push(n))}return"wait"===c&&P.length&&(e=P),z(m(e)),void E(b)}const{forceRender:A}=(0,o.useContext)(i);return(0,r.jsx)(r.Fragment,{children:k.map((e=>{const o=f(e),i=!(u&&!g)&&(b===k||w.includes(o));return(0,r.jsx)(d,{isPresent:i,initial:!(x.current&&!n)&&void 0,custom:i?void 0:t,presenceAffectsLayout:l,mode:c,onExitComplete:i?void 0:()=>{if(!_.has(o))return;_.set(o,!0);let e=!0;_.forEach((t=>{t||(e=!1)})),e&&(null==A||A(),z(S.current),u&&(null==y||y()),s&&s())},anchorX:p,children:e},o)}))})};(0,o.createContext)(null);const b=e=>e;let w=b,x=b;const S={skipAnimations:!1,useManualTiming:!1};const _=["read","resolveKeyframes","update","preRender","render","postRender"];function C(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=_.reduce(((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function s(t){i.has(t)&&(l.schedule(t),e()),t(a)}const l={schedule:(e,o=!1,a=!1)=>{const s=a&&r?t:n;return o&&i.add(e),s.has(e)||s.add(e),e},cancel:e=>{n.delete(e),i.delete(e)},process:e=>{a=e,r?o=!0:(r=!0,[t,n]=[n,t],t.forEach(s),t.clear(),r=!1,o&&(o=!1,l.process(e)))}};return l}(i),e)),{}),{read:s,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:p}=a,h=()=>{const i=S.useManualTiming?o.timestamp:performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,s.process(o),l.process(o),c.process(o),u.process(o),d.process(o),p.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(h))};return{schedule:_.reduce(((t,i)=>{const s=a[i];return t[i]=(t,i=!1,a=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(h)),s.schedule(t,i,a)),t}),{}),cancel:e=>{for(let t=0;t<_.length;t++)a[_[t]].cancel(e)},state:o,steps:a}}const{schedule:E,cancel:k,state:z,steps:P}=C("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:b,!0);const A=(0,o.createContext)({strict:!1}),D={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},T={};for(const e in D)T[e]={isEnabled:t=>D[e].some((e=>!!t[e]))};const I=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function M(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||I.has(e)}let N=e=>!M(e);function O(e){e&&(N=t=>t.startsWith("on")?!M(t):e(t))}try{O(n(39316).A)}catch(e){}function R({children:e,isValidProp:t,...n}){t&&O(t),(n={...(0,o.useContext)(l),...n}).isStatic=a((()=>n.isStatic));const i=(0,o.useMemo)((()=>n),[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return(0,r.jsx)(l.Provider,{value:i,children:e})}new Set;function j(e){if("undefined"==typeof Proxy)return e;const t=new Map;return new Proxy(((...t)=>e(...t)),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}const F=(0,o.createContext)({});function B(e){return"string"==typeof e||Array.isArray(e)}function L(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const V=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],K=["initial",...V];function H(e){return L(e.animate)||K.some((t=>B(e[t])))}function $(e){return Boolean(H(e)||e.variants)}function U(e){const{initial:t,animate:n}=function(e,t){if(H(e)){const{initial:t,animate:n}=e;return{initial:!1===t||B(t)?t:void 0,animate:B(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,o.useContext)(F));return(0,o.useMemo)((()=>({initial:t,animate:n})),[W(t),W(n)])}function W(e){return Array.isArray(e)?e.join(" "):e}const q=Symbol.for("motionComponentSymbol");function G(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Z(e,t,n){return(0,o.useCallback)((r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):G(n)&&(n.current=r))}),[t])}const Y=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),X="data-"+Y("framerAppearId"),{schedule:J,cancel:Q}=C(queueMicrotask,!1),ee=(0,o.createContext)({});function te(e,t,n,r,i){var a,c;const{visualElement:u}=(0,o.useContext)(F),d=(0,o.useContext)(A),p=(0,o.useContext)(s),h=(0,o.useContext)(l).reducedMotion,f=(0,o.useRef)(null);r=r||d.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:u,props:n,presenceContext:p,blockInitialAnimation:!!p&&!1===p.initial,reducedMotionConfig:h}));const m=f.current,g=(0,o.useContext)(ee);!m||m.projection||!i||"html"!==m.type&&"svg"!==m.type||function(e,t,n,r){const{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:ne(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(a)||s&&G(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}(f.current,n,i,g);const y=(0,o.useRef)(!1);(0,o.useInsertionEffect)((()=>{m&&y.current&&m.update(n,p)}));const b=n[X],w=(0,o.useRef)(Boolean(b)&&!(null===(a=window.MotionHandoffIsComplete)||void 0===a?void 0:a.call(window,b))&&(null===(c=window.MotionHasOptimisedAnimation)||void 0===c?void 0:c.call(window,b)));return v((()=>{m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),J.render(m.render),w.current&&m.animationState&&m.animationState.animateChanges())})),(0,o.useEffect)((()=>{m&&(!w.current&&m.animationState&&m.animationState.animateChanges(),w.current&&(queueMicrotask((()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,b)})),w.current=!1))})),m}function ne(e){if(e)return!1!==e.options.allowProjection?e.projection:ne(e.parent)}function re({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:i,Component:a}){var s,c;function u(e,s){let c;const u={...(0,o.useContext)(l),...e,layoutId:oe(e)},{isStatic:d}=u,p=U(e),h=i(e,d);if(!d&&g){!function(){(0,o.useContext)(A).strict;0}();const e=function(e){const{drag:t,layout:n}=T;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(u);c=e.MeasureLayout,p.visualElement=te(a,h,u,t,e.ProjectionNode)}return(0,r.jsxs)(F.Provider,{value:p,children:[c&&p.visualElement?(0,r.jsx)(c,{visualElement:p.visualElement,...u}):null,n(a,e,Z(h,p.visualElement,s),h,d,p.visualElement)]})}e&&function(e){for(const t in e)T[t]={...T[t],...e[t]}}(e),u.displayName=`motion.${"string"==typeof a?a:`create(${null!==(c=null!==(s=a.displayName)&&void 0!==s?s:a.name)&&void 0!==c?c:""})`}`;const d=(0,o.forwardRef)(u);return d[q]=a,d}function oe({layoutId:e}){const t=(0,o.useContext)(i).id;return t&&void 0!==e?t+"-"+e:e}const ie=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ae(e){return"string"==typeof e&&!e.includes("-")&&!!(ie.indexOf(e)>-1||/[A-Z]/u.test(e))}function se(e){const t=[{},{}];return null==e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function le(e,t,n,r){if("function"==typeof t){const[o,i]=se(r);t=t(void 0!==n?n:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=se(r);t=t(void 0!==n?n:e.custom,o,i)}return t}const ce=e=>Array.isArray(e),ue=e=>Boolean(e&&e.getVelocity);function de(e){const t=ue(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const pe=e=>(t,n)=>{const r=(0,o.useContext)(F),i=(0,o.useContext)(s),l=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,i){const a={latestValues:he(r,o,i,e),renderState:t()};return n&&(a.onMount=e=>n({props:r,current:e,...a}),a.onUpdate=e=>n(e)),a}(e,t,r,i);return n?l():a(l)};function he(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=de(i[e]);let{initial:a,animate:s}=e;const l=H(e),c=$(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!L(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=le(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const e in n){let t=n[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const t in e)o[t]=e[t]}}}return o}const fe=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],me=new Set(fe),ge=e=>t=>"string"==typeof t&&t.startsWith(e),ve=ge("--"),ye=ge("var(--"),be=e=>!!ye(e)&&we.test(e.split("/*")[0].trim()),we=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,xe=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Se=(e,t,n)=>n>t?t:n<e?e:n,_e={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Ce={..._e,transform:e=>Se(0,1,e)},Ee={..._e,default:1},ke=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ze=ke("deg"),Pe=ke("%"),Ae=ke("px"),De=ke("vh"),Te=ke("vw"),Ie={...Pe,parse:e=>Pe.parse(e)/100,transform:e=>Pe.transform(100*e)},Me={borderWidth:Ae,borderTopWidth:Ae,borderRightWidth:Ae,borderBottomWidth:Ae,borderLeftWidth:Ae,borderRadius:Ae,radius:Ae,borderTopLeftRadius:Ae,borderTopRightRadius:Ae,borderBottomRightRadius:Ae,borderBottomLeftRadius:Ae,width:Ae,maxWidth:Ae,height:Ae,maxHeight:Ae,top:Ae,right:Ae,bottom:Ae,left:Ae,padding:Ae,paddingTop:Ae,paddingRight:Ae,paddingBottom:Ae,paddingLeft:Ae,margin:Ae,marginTop:Ae,marginRight:Ae,marginBottom:Ae,marginLeft:Ae,backgroundPositionX:Ae,backgroundPositionY:Ae},Ne={rotate:ze,rotateX:ze,rotateY:ze,rotateZ:ze,scale:Ee,scaleX:Ee,scaleY:Ee,scaleZ:Ee,skew:ze,skewX:ze,skewY:ze,distance:Ae,translateX:Ae,translateY:Ae,translateZ:Ae,x:Ae,y:Ae,z:Ae,perspective:Ae,transformPerspective:Ae,opacity:Ce,originX:Ie,originY:Ie,originZ:Ae},Oe={..._e,transform:Math.round},Re={...Me,...Ne,zIndex:Oe,size:Ae,fillOpacity:Ce,strokeOpacity:Ce,numOctaves:Oe},je={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Fe=fe.length;function Be(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let a=!1,s=!1;for(const e in t){const n=t[e];if(me.has(e))a=!0;else if(ve(e))o[e]=n;else{const t=xe(n,Re[e]);e.startsWith("origin")?(s=!0,i[e]=t):r[e]=t}}if(t.transform||(a||n?r.transform=function(e,t,n){let r="",o=!0;for(let i=0;i<Fe;i++){const a=fe[i],s=e[a];if(void 0===s)continue;let l=!0;if(l="number"==typeof s?s===(a.startsWith("scale")?1:0):0===parseFloat(s),!l||n){const e=xe(s,Re[a]);l||(o=!1,r+=`${je[a]||a}(${e}) `),n&&(t[a]=e)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:n=0}=i;r.transformOrigin=`${e} ${t} ${n}`}}const Le={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ve={offset:"strokeDashoffset",array:"strokeDasharray"};function Ke(e,t,n){return"string"==typeof e?e:Ae.transform(t+n*e)}function He(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,d){if(Be(e,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:p,style:h,dimensions:f}=e;p.transform&&(f&&(h.transform=p.transform),delete p.transform),f&&(void 0!==o||void 0!==i||h.transform)&&(h.transformOrigin=function(e,t,n){return`${Ke(t,e.x,e.width)} ${Ke(n,e.y,e.height)}`}(f,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(p.x=t),void 0!==n&&(p.y=n),void 0!==r&&(p.scale=r),void 0!==a&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Le:Ve;e[i.offset]=Ae.transform(-r);const a=Ae.transform(t),s=Ae.transform(n);e[i.array]=`${a} ${s}`}(p,a,s,l,!1)}const $e=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Ue=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),We=e=>"string"==typeof e&&"svg"===e.toLowerCase();function qe(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const Ge=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ze(e,t,n,r){qe(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(Ge.has(n)?n:Y(n),t.attrs[n])}const Ye={};function Xe(e,{layout:t,layoutId:n}){return me.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Ye[e]||"opacity"===e)}function Je(e,t,n){var r;const{style:o}=e,i={};for(const a in o)(ue(o[a])||t.style&&ue(t.style[a])||Xe(a,e)||void 0!==(null===(r=null==n?void 0:n.getValue(a))||void 0===r?void 0:r.liveStyle))&&(i[a]=o[a]);return i}function Qe(e,t,n){const r=Je(e,t,n);for(const n in e)if(ue(e[n])||ue(t[n])){r[-1!==fe.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]}return r}const et=["x","y","width","height","cx","cy","r"],tt={useVisualState:pe({scrapeMotionValuesFromProps:Qe,createRenderState:Ue,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let i=!!e.drag;if(!i)for(const e in o)if(me.has(e)){i=!0;break}if(!i)return;let a=!t;if(t)for(let n=0;n<et.length;n++){const r=et[n];e[r]!==t[r]&&(a=!0)}a&&E.read((()=>{!function(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(e){t.dimensions={x:0,y:0,width:0,height:0}}}(n,r),E.render((()=>{He(r,o,We(n.tagName),e.transformTemplate),Ze(n,r)}))}))}})},nt={useVisualState:pe({scrapeMotionValuesFromProps:Je,createRenderState:$e})};function rt(e,t,n){for(const r in t)ue(t[r])||Xe(r,n)||(e[r]=t[r])}function ot(e,t){const n={};return rt(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return(0,o.useMemo)((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return Be(n,t,e),Object.assign({},n.vars,n.style)}),[t])}(e,t)),n}function it(e,t){const n={},r=ot(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function at(e,t,n,r){const i=(0,o.useMemo)((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return He(n,t,We(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};rt(t,e.style,e),i.style={...t,...i.style}}return i}function st(e=!1){return(t,n,r,{latestValues:i},a)=>{const s=(ae(t)?at:it)(n,i,a,t),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(N(o)||!0===n&&M(o)||!t&&!M(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),c=t!==o.Fragment?{...l,...s,ref:r}:{},{children:u}=n,d=(0,o.useMemo)((()=>ue(u)?u.get():u),[u]);return(0,o.createElement)(t,{...c,children:d})}}function lt(e,t){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){return re({...ae(n)?tt:nt,preloadedFeatures:e,useRender:st(r),createVisualElement:t,Component:n})}}function ct(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function ut(e,t,n){const r=e.getProps();return le(r,t,void 0!==n?n:r.custom,e)}function dt(e,t){return e?e[t]||e.default||e:void 0}const pt=new Set(["width","height","top","left","right","bottom",...fe]);let ht;function ft(){ht=void 0}const mt={now:()=>(void 0===ht&&mt.set(z.isProcessing||S.useManualTiming?z.timestamp:performance.now()),ht),set:e=>{ht=e,queueMicrotask(ft)}};function gt(e,t){-1===e.indexOf(t)&&e.push(t)}function vt(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class yt{constructor(){this.subscriptions=[]}add(e){return gt(this.subscriptions,e),()=>vt(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function bt(e,t){return t?e*(1e3/t):0}const wt={current:void 0};class xt{constructor(e,t={}){this.version="12.0.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=mt.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=mt.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new yt);const n=this.events[e].add(t);return"change"===e?()=>{n(),E.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return wt.current&&wt.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=mt.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return bt(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function St(e,t){return new xt(e,t)}function _t(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,St(n))}function Ct(e,t){const n=e.getValue("willChange");if(r=n,Boolean(ue(r)&&r.add))return n.add(t);var r}function Et(e){return e.props[X]}function kt(e){let t;return()=>(void 0===t&&(t=e()),t)}const zt=kt((()=>void 0!==window.ScrollTimeline));class Pt{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map((e=>"finished"in e?e.finished:e)))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){const n=this.animations.map((n=>zt()&&n.attachTimeline?n.attachTimeline(e):"function"==typeof t?t(n):void 0));return()=>{n.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach((t=>t[e]()))}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class At extends Pt{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}const Dt=e=>1e3*e,Tt=e=>e/1e3,It=!1;function Mt(e){return"function"==typeof e}function Nt(e,t){e.timeline=t,e.onfinish=null}const Ot=e=>Array.isArray(e)&&"number"==typeof e[0],Rt={linearEasing:void 0};function jt(e,t){const n=kt(e);return()=>{var e;return null!==(e=Rt[t])&&void 0!==e?e:n()}}const Ft=jt((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),"linearEasing"),Bt=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Lt=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let t=0;t<o;t++)r+=e(Bt(0,o-1,t))+", ";return`linear(${r.substring(0,r.length-2)})`};function Vt(e){return Boolean("function"==typeof e&&Ft()||!e||"string"==typeof e&&(e in Ht||Ft())||Ot(e)||Array.isArray(e)&&e.every(Vt))}const Kt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ht={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Kt([0,.65,.55,1]),circOut:Kt([.55,0,1,.45]),backIn:Kt([.31,.01,.66,-.59]),backOut:Kt([.33,1.53,.69,.99])};function $t(e,t){return e?"function"==typeof e&&Ft()?Lt(e,t):Ot(e)?Kt(e):Array.isArray(e)?e.map((e=>$t(e,t)||Ht.easeOut)):Ht[e]:void 0}const Ut=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Wt(e,t,n,r){if(e===t&&n===r)return b;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=Ut(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<12);return a}(t,0,1,e,n);return e=>0===e||1===e?e:Ut(o(e),t,r)}const qt=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Gt=e=>t=>1-e(1-t),Zt=Wt(.33,1.53,.69,.99),Yt=Gt(Zt),Xt=qt(Yt),Jt=e=>(e*=2)<1?.5*Yt(e):.5*(2-Math.pow(2,-10*(e-1))),Qt=e=>1-Math.sin(Math.acos(e)),en=Gt(Qt),tn=qt(Qt),nn=e=>/^0[^.\s]+$/u.test(e);const rn=e=>Math.round(1e5*e)/1e5,on=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const an=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,sn=(e,t)=>n=>Boolean("string"==typeof n&&an.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),ln=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[o,i,a,s]=r.match(on);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},cn={..._e,transform:e=>Math.round((e=>Se(0,255,e))(e))},un={test:sn("rgb","red"),parse:ln("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+cn.transform(e)+", "+cn.transform(t)+", "+cn.transform(n)+", "+rn(Ce.transform(r))+")"};const dn={test:sn("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:un.transform},pn={test:sn("hsl","hue"),parse:ln("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Pe.transform(rn(t))+", "+Pe.transform(rn(n))+", "+rn(Ce.transform(r))+")"},hn={test:e=>un.test(e)||dn.test(e)||pn.test(e),parse:e=>un.test(e)?un.parse(e):pn.test(e)?pn.parse(e):dn.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?un.transform(e):pn.transform(e)},fn=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const mn="number",gn="color",vn=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function yn(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(vn,(e=>(hn.test(e)?(r.color.push(i),o.push(gn),n.push(hn.parse(e))):e.startsWith("var(")?(r.var.push(i),o.push("var"),n.push(e)):(r.number.push(i),o.push(mn),n.push(parseFloat(e))),++i,"${}"))).split("${}");return{values:n,split:a,indexes:r,types:o}}function bn(e){return yn(e).values}function wn(e){const{split:t,types:n}=yn(e),r=t.length;return e=>{let o="";for(let i=0;i<r;i++)if(o+=t[i],void 0!==e[i]){const t=n[i];o+=t===mn?rn(e[i]):t===gn?hn.transform(e[i]):e[i]}return o}}const xn=e=>"number"==typeof e?0:e;const Sn={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(on))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(fn))||void 0===n?void 0:n.length)||0)>0},parse:bn,createTransformer:wn,getAnimatableNone:function(e){const t=bn(e);return wn(e)(t.map(xn))}},_n=new Set(["brightness","contrast","saturate","opacity"]);function Cn(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(on)||[];if(!r)return e;const o=n.replace(r,"");let i=_n.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const En=/\b([a-z-]*)\(.*?\)/gu,kn={...Sn,getAnimatableNone:e=>{const t=e.match(En);return t?t.map(Cn).join(" "):e}},zn={...Re,color:hn,backgroundColor:hn,outlineColor:hn,fill:hn,stroke:hn,borderColor:hn,borderTopColor:hn,borderRightColor:hn,borderBottomColor:hn,borderLeftColor:hn,filter:kn,WebkitFilter:kn},Pn=e=>zn[e];function An(e,t){let n=Pn(e);return n!==kn&&(n=Sn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Dn=new Set(["auto","none","0"]);const Tn=e=>e===_e||e===Ae,In=(e,t)=>parseFloat(e.split(", ")[t]),Mn=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return In(o[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?In(t[1],e):0}},Nn=new Set(["x","y","z"]),On=fe.filter((e=>!Nn.has(e)));const Rn={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Mn(4,13),y:Mn(5,14)};Rn.translateX=Rn.x,Rn.translateY=Rn.y;const jn=new Set;let Fn=!1,Bn=!1;function Ln(){if(Bn){const e=Array.from(jn).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return On.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}Bn=!1,Fn=!1,jn.forEach((e=>e.complete())),jn.clear()}function Vn(){jn.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(Bn=!0)}))}class Kn{constructor(e,t,n,r,o,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(jn.add(this),Fn||(Fn=!0,E.read(Vn),E.resolveKeyframes(Ln))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let o=0;o<e.length;o++)if(null===e[o])if(0===o){const o=null==r?void 0:r.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,i);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=i),r&&void 0===o&&r.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),jn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,jn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Hn=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),$n=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Un(e,t,n=1){x(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=$n.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${null!=n?n:r}`,o]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return Hn(e)?parseFloat(e):e}return be(o)?Un(o,t,n+1):o}const Wn=e=>t=>t.test(e),qn=[_e,Ae,Pe,ze,Te,De,{test:e=>"auto"===e,parse:e=>e}],Gn=e=>qn.find(Wn(e));class Zn extends Kn{constructor(e,t,n,r,o){super(e,t,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),be(r))){const o=Un(r,t.current);void 0!==o&&(e[n]=o),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!pt.has(n)||2!==e.length)return;const[r,o]=e,i=Gn(r),a=Gn(o);if(i!==a)if(Tn(i)&&Tn(a))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||nn(r))&&n.push(t);var r;n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;){const t=e[o];"string"==typeof t&&!Dn.has(t)&&yn(t).values.length&&(r=e[o]),o++}if(r&&n)for(const o of t)e[o]=An(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Rn[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,a=r[i];r[i]=Rn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((([e,n])=>{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}const Yn=(e,t)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!Sn.test(e)&&"0"!==e||e.startsWith("url(")));function Xn(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],a=Yn(o,t),s=Yn(i,t);return w(a===s,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||Mt(n))&&r)}const Jn=e=>null!==e;function Qn(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(Jn),i=t&&"loop"!==n&&t%2==1?0:o.length-1;return i&&void 0!==r?r:o[i]}class er{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=mt.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:i,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(Vn(),Ln()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=mt.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:o,delay:i,onComplete:a,onUpdate:s,isGenerator:l}=this.options;if(!l&&!Xn(e,n,r,o)){if(It||!i)return s&&s(Qn(e,this.options,t)),a&&a(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}const tr=2e4;function nr(e){let t=0;let n=e.next(t);for(;!n.done&&t<tr;)t+=50,n=e.next(t);return t>=tr?1/0:t}const rr=(e,t,n)=>e+(t-e)*n;function or(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ir(e,t){return n=>n>0?t:e}const ar=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},sr=[dn,un,pn];function lr(e){const t=(n=e,sr.find((e=>e.test(n))));var n;if(w(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let r=t.parse(e);return t===pn&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=or(s,r,e+1/3),i=or(s,r,e),a=or(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(r)),r}const cr=(e,t)=>{const n=lr(e),r=lr(t);if(!n||!r)return ir(e,t);const o={...n};return e=>(o.red=ar(n.red,r.red,e),o.green=ar(n.green,r.green,e),o.blue=ar(n.blue,r.blue,e),o.alpha=rr(n.alpha,r.alpha,e),un.transform(o))},ur=(e,t)=>n=>t(e(n)),dr=(...e)=>e.reduce(ur),pr=new Set(["none","hidden"]);function hr(e,t){return n=>rr(e,t,n)}function fr(e){return"number"==typeof e?hr:"string"==typeof e?be(e)?ir:hn.test(e)?cr:vr:Array.isArray(e)?mr:"object"==typeof e?hn.test(e)?cr:gr:ir}function mr(e,t){const n=[...e],r=n.length,o=e.map(((e,n)=>fr(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function gr(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=fr(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const vr=(e,t)=>{const n=Sn.createTransformer(t),r=yn(e),o=yn(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?pr.has(e)&&!o.values.length||pr.has(t)&&!r.values.length?function(e,t){return pr.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):dr(mr(function(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][o[a]],l=null!==(n=e.values[s])&&void 0!==n?n:0;r[i]=l,o[a]++}return r}(r,o),o.values),n):(w(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),ir(e,t))};function yr(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return rr(e,t,n);return fr(e)(e,t)}function br(e,t,n){const r=Math.max(t-5,0);return bt(n-e(r),t-r)}const wr=100,xr=10,Sr=1,_r=0,Cr=800,Er=.3,kr=.3,zr={granular:.01,default:2},Pr={granular:.005,default:.5},Ar=.01,Dr=10,Tr=.05,Ir=1,Mr=.001;function Nr({duration:e=Cr,bounce:t=Er,velocity:n=_r,mass:r=Sr}){let o,i;w(e<=Dt(Dr),"Spring duration must be 10 seconds or less");let a=1-t;a=Se(Tr,Ir,a),e=Se(Ar,Dr,Tt(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=Rr(t,a),l=Math.exp(-o);return Mr-i/s*l},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=Rr(Math.pow(t,2),a);return(-o(t)+Mr>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<Or;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=Dt(e),isNaN(s))return{stiffness:wr,damping:xr,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}const Or=12;function Rr(e,t){return e*Math.sqrt(1-t*t)}const jr=["duration","bounce"],Fr=["stiffness","damping","mass"];function Br(e,t){return t.some((t=>void 0!==e[t]))}function Lr(e=kr,t=Er){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],s={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:p,isResolvedFromDuration:h}=function(e){let t={velocity:_r,stiffness:wr,damping:xr,mass:Sr,isResolvedFromDuration:!1,...e};if(!Br(e,Fr)&&Br(e,jr))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),o=r*r,i=2*Se(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Sr,stiffness:o,damping:i}}else{const n=Nr(e);t={...t,...n,mass:Sr},t.isResolvedFromDuration=!0}return t}({...n,velocity:-Tt(n.velocity||0)}),f=p||0,m=c/(2*Math.sqrt(l*u)),g=a-i,v=Tt(Math.sqrt(l/u)),y=Math.abs(g)<5;let b;if(r||(r=y?zr.granular:zr.default),o||(o=y?Pr.granular:Pr.default),m<1){const e=Rr(v,m);b=t=>{const n=Math.exp(-m*v*t);return a-n*((f+m*v*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===m)b=e=>a-Math.exp(-v*e)*(g+(f+v*g)*e);else{const e=v*Math.sqrt(m*m-1);b=t=>{const n=Math.exp(-m*v*t),r=Math.min(e*t,300);return a-n*((f+m*v*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}const w={calculatedDuration:h&&d||null,next:e=>{const t=b(e);if(h)s.done=e>=d;else{let n=0;m<1&&(n=0===e?Dt(f):br(b,e,t));const i=Math.abs(n)<=r,l=Math.abs(a-t)<=o;s.done=i&&l}return s.value=s.done?a:t,s},toString:()=>{const e=Math.min(nr(w),tr),t=Lt((t=>w.next(e*t).value),e,30);return e+"ms "+t}};return w}function Vr({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],p={done:!1,value:d},h=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let f=n*t;const m=d+f,g=void 0===a?m:a(m);g!==m&&(f=g-d);const v=e=>-f*Math.exp(-e/r),y=e=>g+v(e),b=e=>{const t=v(e),n=y(e);p.done=Math.abs(t)<=c,p.value=p.done?g:n};let w,x;const S=e=>{var t;(t=p.value,void 0!==s&&t<s||void 0!==l&&t>l)&&(w=e,x=Lr({keyframes:[p.value,h(p.value)],velocity:br(y,e,p.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==w||(t=!0,b(e),S(e)),void 0!==w&&e>=w?x.next(e-w):(!t&&b(e),p)}}}const Kr=Wt(.42,0,1,1),Hr=Wt(0,0,.58,1),$r=Wt(.42,0,.58,1),Ur=e=>Array.isArray(e)&&"number"!=typeof e[0],Wr={linear:b,easeIn:Kr,easeInOut:$r,easeOut:Hr,circIn:Qt,circInOut:tn,circOut:en,backIn:Yt,backInOut:Xt,backOut:Zt,anticipate:Jt},qr=e=>{if(Ot(e)){x(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Wt(t,n,r,o)}return"string"==typeof e?(x(void 0!==Wr[e],`Invalid easing type '${e}'`),Wr[e]):e};function Gr(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(x(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];if(2===i&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=function(e,t,n){const r=[],o=n||yr,i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||b:t;i=dr(e,i)}r.push(i)}return r}(t,r,o),l=s.length,c=n=>{if(a&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const o=Bt(e[r],e[r+1],n);return s[r](o)};return n?t=>c(Se(e[0],e[i-1],t)):c}function Zr(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Bt(0,t,r);e.push(rr(n,1,o))}}function Yr(e){const t=[0];return Zr(t,e.length-1),t}function Xr(e,t){return e.map((()=>t||$r)).splice(0,e.length-1)}function Jr({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Ur(r)?r.map(qr):qr(r),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:Yr(t),e),s=Gr(a,t,{ease:Array.isArray(o)?o:Xr(t,o)});return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}const Qr=e=>{const t=({timestamp:t})=>e(t);return{start:()=>E.update(t,!0),stop:()=>k(t),now:()=>z.isProcessing?z.timestamp:mt.now()}},eo={decay:Vr,inertia:Vr,tween:Jr,keyframes:Jr,spring:Lr},to=e=>e/100;class no extends er{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:t,motionValue:n,element:r,keyframes:o}=this.options,i=(null==r?void 0:r.KeyframeResolver)||Kn;this.resolver=new i(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:i=0}=this.options,a=Mt(t)?t:eo[t]||Jr;let s,l;a!==Jr&&"number"!=typeof e[0]&&(s=dr(to,yr(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});"mirror"===o&&(l=a({...this.options,keyframes:[...e].reverse(),velocity:-i})),null===c.calculatedDuration&&(c.calculatedDuration=nr(c));const{calculatedDuration:u}=c,d=u+r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:s,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:i,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return o.next(0);const{delay:d,repeat:p,repeatType:h,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let y=this.currentTime,b=o;if(p){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,p+1);Boolean(t%2)&&("reverse"===h?(n=1-n,f&&(n-=f/u)):"mirror"===h&&(b=i)),y=Se(0,1,n)*u}const w=v?{done:!1,value:s[0]}:b.next(y);a&&(w.value=a(w.value));let{done:x}=w;v||null===l||(x=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return S&&void 0!==r&&(w.value=Qn(s,this.options,r)),m&&m(w.value),S&&this.finish(),w}get duration(){const{resolved:e}=this;return e?Tt(e.calculatedDuration):0}get time(){return Tt(this.currentTime)}set time(e){e=Dt(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Tt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=Qr,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const ro=new Set(["opacity","clipPath","filter","transform"]);function oo(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=$t(s,o);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}const io=kt((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));const ao={anticipate:Jt,backInOut:Xt,circInOut:tn};class so extends er{constructor(e){super(e);const{name:t,motionValue:n,element:r,keyframes:o}=this.options;this.resolver=new Zn(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){let{duration:n=300,times:r,ease:o,type:i,motionValue:a,name:s,startTime:l}=this.options;if(!a.owner||!a.owner.current)return!1;var c;if("string"==typeof o&&Ft()&&o in ao&&(o=ao[o]),Mt((c=this.options).type)||"spring"===c.type||!Vt(c.ease)){const{onComplete:t,onUpdate:a,motionValue:s,element:l,...c}=this.options,u=function(e,t){const n=new no({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<2e4;)r=n.sample(i),o.push(r.value),i+=10;return{times:void 0,keyframes:o,duration:i-10,ease:"linear"}}(e,c);1===(e=u.keyframes).length&&(e[1]=e[0]),n=u.duration,r=u.times,o=u.ease,i="keyframes"}const u=oo(a.owner.current,s,e,{...this.options,duration:n,times:r,ease:o});return u.startTime=null!=l?l:this.calcStartTime(),this.pendingTimeline?(Nt(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:n}=this.options;a.set(Qn(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:n,times:r,type:i,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return Tt(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return Tt(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=Dt(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return b;const{animation:n}=t;Nt(n,e)}else this.pendingTimeline=e;return b}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:o,ease:i,times:a}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:s,element:l,...c}=this.options,u=new no({...c,keyframes:n,duration:r,type:o,ease:i,times:a,isGenerator:!0}),d=Dt(this.time);e.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}const{onStop:s}=this.options;s&&s(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:a}=e;if(!(t&&t.owner&&t.owner.current instanceof HTMLElement))return!1;const{onUpdate:s,transformTemplate:l}=t.owner.getProps();return io()&&n&&ro.has(n)&&!s&&!l&&!r&&"mirror"!==o&&0!==i&&"inertia"!==a}}const lo={type:"spring",stiffness:500,damping:25,restSpeed:10},co={type:"keyframes",duration:.8},uo={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},po=(e,{keyframes:t})=>t.length>2?co:me.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:lo:uo;const ho=(e,t,n,r={},o,i)=>a=>{const s=dt(r,e)||{},l=s.delay||r.delay||0;let{elapsed:c=0}=r;c-=Dt(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(s)||(u={...u,...po(e,u)}),u.duration&&(u.duration=Dt(u.duration)),u.repeatDelay&&(u.repeatDelay=Dt(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(u.duration=0,0===u.delay&&(d=!0)),(It||S.skipAnimations)&&(d=!0,u.duration=0,u.delay=0),d&&!i&&void 0!==t.get()){const e=Qn(u.keyframes,s);if(void 0!==e)return E.update((()=>{u.onUpdate(e),u.onComplete()})),new At([])}return!i&&so.supports(u)?new so(u):new no(u)};function fo({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function mo(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;r&&(a=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in l){const r=e.getValue(t,null!==(i=e.latestValues[t])&&void 0!==i?i:null),o=l[t];if(void 0===o||u&&fo(u,t))continue;const s={delay:n,...dt(a||{},t)};let d=!1;if(window.MotionHandoffAnimation){const n=Et(e);if(n){const e=window.MotionHandoffAnimation(n,t,E);null!==e&&(s.startTime=e,d=!0)}}Ct(e,t),r.start(ho(t,r,o,e.shouldReduceMotion&&pt.has(t)?{type:!1}:s,e,d));const p=r.animation;p&&c.push(p)}return s&&Promise.all(c).then((()=>{E.update((()=>{s&&function(e,t){const n=ut(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const t in i)_t(e,t,(a=i[t],ce(a)?a[a.length-1]||0:a));var a}(e,s)}))})),c}function go(e,t,n={}){var r;const o=ut(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const a=o?()=>Promise.all(mo(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(vo).forEach(((e,r)=>{e.notify("AnimationStart",t),a.push(go(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,o+r,a,s,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then((()=>t()))}return Promise.all([a(),s(n.delay)])}function vo(e,t){return e.sortNodePosition(t)}const yo=K.length;function bo(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&bo(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<yo;n++){const r=K[n],o=e.props[r];(B(o)||!1===o)&&(t[r]=o)}return t}const wo=[...V].reverse(),xo=V.length;function So(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>go(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=go(e,t,n);else{const o="function"==typeof t?ut(e,t,n.custom):t;r=Promise.all(mo(e,o,n))}return r.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,n))))}function _o(e){let t=So(e),n=ko(),r=!0;const o=t=>(n,r)=>{var o;const i=ut(e,r,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(i){const{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function i(i){const{props:a}=e,s=bo(e.parent)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<xo;t++){const p=wo[t],h=n[p],f=void 0!==a[p]?a[p]:s[p],m=B(f),g=p===i?h.isActive:null;!1===g&&(d=t);let v=f===s[p]&&f!==a[p]&&m;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys={...u},!h.isActive&&null===g||!f&&!h.prevProp||L(f)||"boolean"==typeof f)continue;const y=Co(h.prevProp,f);let b=y||p===i&&h.isActive&&!v&&m||t>d&&m,w=!1;const x=Array.isArray(f)?f:[f];let S=x.reduce(o(p),{});!1===g&&(S={});const{prevResolvedValues:_={}}=h,C={..._,...S},E=t=>{b=!0,c.has(t)&&(w=!0,c.delete(t)),h.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in C){const t=S[e],n=_[e];if(u.hasOwnProperty(e))continue;let r=!1;r=ce(t)&&ce(n)?!ct(t,n):t!==n,r?null!=t?E(e):c.add(e):void 0!==t&&c.has(e)?E(e):h.protectedKeys[e]=!0}h.prevProp=f,h.prevResolvedValues=S,h.isActive&&(u={...u,...S}),r&&e.blockInitialAnimation&&(b=!1);b&&(!(v&&y)||w)&&l.push(...x.map((e=>({animation:e,options:{type:p}}))))}if(c.size){const t={};c.forEach((n=>{const r=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=null!=r?r:null})),l.push({animation:t})}let p=Boolean(l.length);return!r||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(p=!1),r=!1,p?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,r){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const a=i(t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=ko(),r=!0}}}function Co(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!ct(t,e)}function Eo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ko(){return{animate:Eo(!0),whileInView:Eo(),whileHover:Eo(),whileTap:Eo(),whileDrag:Eo(),whileFocus:Eo(),exit:Eo()}}class zo{constructor(e){this.isMounted=!1,this.node=e}update(){}}let Po=0;const Ao={animation:{Feature:class extends zo{constructor(e){super(e),e.animationState||(e.animationState=_o(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();L(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends zo{constructor(){super(...arguments),this.id=Po++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Do={x:!1,y:!1};function To(){return Do.x||Do.y}const Io=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function Mo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function No(e){return{point:{x:e.pageX,y:e.pageY}}}function Oo(e,t,n,r){return Mo(e,t,(e=>t=>Io(t)&&e(t,No(t)))(n),r)}const Ro=(e,t)=>Math.abs(e-t);class jo{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Lo(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Ro(e.x,t.x),r=Ro(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=z;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Fo(t,this.transformPagePoint),E.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=Lo("pointercancel"===e.type?this.lastMoveEventInfo:Fo(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!Io(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const i=Fo(No(e),this.transformPagePoint),{point:a}=i,{timestamp:s}=z;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,Lo(i,this.history)),this.removeListeners=dr(Oo(this.contextWindow,"pointermove",this.handlePointerMove),Oo(this.contextWindow,"pointerup",this.handlePointerUp),Oo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),k(this.updatePoint)}}function Fo(e,t){return t?{point:t(e.point)}:e}function Bo(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Lo({point:e},t){return{point:e,delta:Bo(e,Ko(t)),offset:Bo(e,Vo(t)),velocity:Ho(t,.1)}}function Vo(e){return e[0]}function Ko(e){return e[e.length-1]}function Ho(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Ko(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Dt(t)));)n--;if(!r)return{x:0,y:0};const i=Tt(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function $o(e){return e.max-e.min}function Uo(e,t,n,r=.5){e.origin=r,e.originPoint=rr(t.min,t.max,e.origin),e.scale=$o(n)/$o(t),e.translate=rr(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function Wo(e,t,n,r){Uo(e.x,t.x,n.x,r?r.originX:void 0),Uo(e.y,t.y,n.y,r?r.originY:void 0)}function qo(e,t,n){e.min=n.min+t.min,e.max=e.min+$o(t)}function Go(e,t,n){e.min=t.min-n.min,e.max=e.min+$o(t)}function Zo(e,t,n){Go(e.x,t.x,n.x),Go(e.y,t.y,n.y)}function Yo(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Xo(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const Jo=.35;function Qo(e,t,n){return{min:ei(e,t),max:ei(e,n)}}function ei(e,t){return"number"==typeof e?e:e[t]||0}const ti=()=>({x:{min:0,max:0},y:{min:0,max:0}});function ni(e){return[e("x"),e("y")]}function ri({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function oi(e){return void 0===e||1===e}function ii({scale:e,scaleX:t,scaleY:n}){return!oi(e)||!oi(t)||!oi(n)}function ai(e){return ii(e)||si(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function si(e){return li(e.x)||li(e.y)}function li(e){return e&&"0%"!==e}function ci(e,t,n){return n+t*(e-n)}function ui(e,t,n,r,o){return void 0!==o&&(e=ci(e,o,r)),ci(e,n,r)+t}function di(e,t=0,n=1,r,o){e.min=ui(e.min,t,n,r,o),e.max=ui(e.max,t,n,r,o)}function pi(e,{x:t,y:n}){di(e.x,t.translate,t.scale,t.originPoint),di(e.y,n.translate,n.scale,n.originPoint)}const hi=.999999999999,fi=1.0000000000001;function mi(e,t){e.min=e.min+t,e.max=e.max+t}function gi(e,t,n,r,o=.5){di(e,t,n,rr(e.min,e.max,o),r)}function vi(e,t){gi(e.x,t.x,t.scaleX,t.scale,t.originX),gi(e.y,t.y,t.scaleY,t.scale,t.originY)}function yi(e,t){return ri(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const bi=({current:e})=>e?e.ownerDocument.defaultView:null,wi=new WeakMap;class xi{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new jo(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(No(e).point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(i=n)||"y"===i?Do[i]?null:(Do[i]=!0,()=>{Do[i]=!1}):Do.x||Do.y?null:(Do.x=Do.y=!0,()=>{Do.x=Do.y=!1}),!this.openDragLock))return;var i;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ni((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Pe.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=$o(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&E.postRender((()=>o(e,t))),Ct(this.visualElement,"transform");const{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>ni((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:bi(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&E.postRender((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!Si(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?rr(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?rr(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&G(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:Yo(e.x,n,o),y:Yo(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=Jo){return!1===e?e=0:!0===e&&(e=Jo),{x:Qo(e,"left","right"),y:Qo(e,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ni((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!G(e))return!1;const n=e.current;x(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=yi(e,n),{scroll:o}=t;return o&&(mi(r.x,o.offset.x),mi(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:Xo(e.x,t.x),y:Xo(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=ri(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=ni((a=>{if(!Si(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return Ct(this.visualElement,e),n.start(ho(e,n,0,t,this.visualElement,!1))}stopAnimation(){ni((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){ni((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){ni((t=>{const{drag:n}=this.getProps();if(!Si(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-rr(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!G(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};ni((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=$o(e),o=$o(t);return o>r?n=Bt(t.min,t.max-r,e.min):r>o&&(n=Bt(e.min,e.max-o,t.min)),Se(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ni((t=>{if(!Si(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(rr(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;wi.set(this.visualElement,this);const e=Oo(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();G(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),E.read(t);const o=Mo(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(ni((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Jo,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function Si(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const _i=e=>(t,n)=>{e&&E.postRender((()=>e(t,n)))};const Ci={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ei(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ki={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Ae.test(e))return e;e=parseFloat(e)}return`${Ei(e,t.target.x)}% ${Ei(e,t.target.y)}%`}},zi={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Sn.parse(e);if(o.length>5)return r;const i=Sn.createTransformer(e),a="number"!=typeof o[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=rr(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=c),"number"==typeof o[3+a]&&(o[3+a]/=c),i(o)}};class Pi extends o.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;!function(e){for(const t in e)Ye[t]=e[t],ve(t)&&(Ye[t].isCSSVariable=!0)}(Di),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Ci.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||E.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),J.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ai(e){const[t,n]=h(),a=(0,o.useContext)(i);return(0,r.jsx)(Pi,{...e,layoutGroup:a,switchLayoutGroup:(0,o.useContext)(ee),isPresent:t,safeToRemove:n})}const Di={borderRadius:{...ki,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ki,borderTopRightRadius:ki,borderBottomLeftRadius:ki,borderBottomRightRadius:ki,boxShadow:zi};function Ti(e,t,n){const r=ue(e)?e:St(e);return r.start(ho("",r,t,n)),r.animation}function Ii(e){return e instanceof SVGElement&&"svg"!==e.tagName}const Mi=(e,t)=>e.depth-t.depth;class Ni{constructor(){this.children=[],this.isDirty=!1}add(e){gt(this.children,e),this.isDirty=!0}remove(e){vt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Mi),this.isDirty=!1,this.children.forEach(e)}}function Oi(e,t){const n=mt.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(k(r),e(i-t))};return E.read(r,!0),()=>k(r)}const Ri=["TopLeft","TopRight","BottomLeft","BottomRight"],ji=Ri.length,Fi=e=>"string"==typeof e?parseFloat(e):e,Bi=e=>"number"==typeof e||Ae.test(e);function Li(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Vi=Hi(0,.5,en),Ki=Hi(.5,.95,b);function Hi(e,t,n){return r=>r<e?0:r>t?1:n(Bt(e,t,r))}function $i(e,t){e.min=t.min,e.max=t.max}function Ui(e,t){$i(e.x,t.x),$i(e.y,t.y)}function Wi(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function qi(e,t,n,r,o){return e=ci(e-=t,1/n,r),void 0!==o&&(e=ci(e,1/o,r)),e}function Gi(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){Pe.test(t)&&(t=parseFloat(t),t=rr(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=rr(i.min,i.max,r);e===i&&(s-=t),e.min=qi(e.min,t,n,s,o),e.max=qi(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const Zi=["x","scaleX","originX"],Yi=["y","scaleY","originY"];function Xi(e,t,n,r){Gi(e.x,t,Zi,n?n.x:void 0,r?r.x:void 0),Gi(e.y,t,Yi,n?n.y:void 0,r?r.y:void 0)}function Ji(e){return 0===e.translate&&1===e.scale}function Qi(e){return Ji(e.x)&&Ji(e.y)}function ea(e,t){return e.min===t.min&&e.max===t.max}function ta(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function na(e,t){return ta(e.x,t.x)&&ta(e.y,t.y)}function ra(e){return $o(e.x)/$o(e.y)}function oa(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class ia{constructor(){this.members=[]}add(e){gt(this.members,e),e.scheduleRender()}remove(e){if(vt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const aa={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},sa="undefined"!=typeof window&&void 0!==window.MotionDebug,la=["","X","Y","Z"],ca={visibility:"hidden"};let ua=0;function da(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function pa(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Et(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",E,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&pa(r)}function ha({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=ua++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,sa&&(aa.totalNodes=aa.resolvedTargetDeltas=aa.recalculatedProjection=0),this.nodes.forEach(ga),this.nodes.forEach(_a),this.nodes.forEach(Ca),this.nodes.forEach(va),sa&&window.MotionDebug.record(aa)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ni)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new yt),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Ii(t),this.instance=t;const{layoutId:r,layout:o,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(o||r)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=Oi(r,250),Ci.hasAnimatedSinceResize&&(Ci.hasAnimatedSinceResize=!1,this.nodes.forEach(Sa))}))}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&i&&(r||o)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||i.getDefaultTransition()||Da,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!na(this.targetLayout,r),c=!t&&n;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...dt(o,"layout"),onPlay:a,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Sa(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,k(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ea),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&pa(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(ba);this.isUpdating||this.nodes.forEach(wa),this.isUpdating=!1,this.nodes.forEach(xa),this.nodes.forEach(fa),this.nodes.forEach(ma),this.clearAllSnapshots();const e=mt.now();z.delta=Se(0,1e3/60,e-z.timestamp),z.timestamp=e,z.isProcessing=!0,P.update.process(z),P.preRender.process(z),P.render.process(z),z.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,J.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ya),this.sharedNodes.forEach(ka)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,E.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){E.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||$o(this.snapshot.measuredBox.x)||$o(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Qi(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||ai(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),Ma((r=n).x),Ma(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const n=t.measureViewportBox();if(!((null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)||this.path.some(Oa))){const{scroll:e}=this.root;e&&(mi(n.x,e.offset.x),mi(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n={x:{min:0,max:0},y:{min:0,max:0}};if(Ui(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let t=0;t<this.path.length;t++){const r=this.path[t],{scroll:o,options:i}=r;r!==this.root&&o&&i.layoutScroll&&(o.wasRoot&&Ui(n,e),mi(n.x,o.offset.x),mi(n.y,o.offset.y))}return n}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Ui(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&vi(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),ai(r.latestValues)&&vi(n,r.latestValues)}return ai(this.latestValues)&&vi(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Ui(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!ai(n.latestValues))continue;ii(n.latestValues)&&n.updateSnapshot();const r={x:{min:0,max:0},y:{min:0,max:0}};Ui(r,n.measurePageBox()),Xi(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return ai(this.latestValues)&&Xi(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==z.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=z.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Zo(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Ui(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,qo(a.x,s.x,l.x),qo(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Ui(this.target,this.layout.layoutBox),pi(this.target,this.targetDelta)):Ui(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Zo(this.relativeTargetOrigin,this.target,e.target),Ui(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}sa&&aa.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!ii(this.parent.latestValues)&&!si(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===z.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;Ui(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const{visualElement:o}=i.options;o&&o.props.style&&"contents"===o.props.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&vi(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,pi(e,a)),r&&ai(i.latestValues)&&vi(e,i.latestValues))}t.x<fi&&t.x>hi&&(t.x=1),t.y<fi&&t.y>hi&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(Wi(this.prevProjectionDelta.x,this.projectionDelta.x),Wi(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Wo(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&oa(this.projectionDelta.x,this.prevProjectionDelta.x)&&oa(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),sa&&aa.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a={x:{min:0,max:0},y:{min:0,max:0}},s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(Aa));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,p,h,f,m,g;za(i.x,e.x,n),za(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Zo(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,f=this.relativeTargetOrigin,m=a,g=n,Pa(h.x,f.x,m.x,g),Pa(h.y,f.y,m.y,g),d&&(l=this.relativeTarget,p=d,ea(l.x,p.x)&&ea(l.y,p.y))&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),Ui(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=rr(0,void 0!==n.opacity?n.opacity:1,Vi(r)),e.opacityExit=rr(void 0!==t.opacity?t.opacity:1,0,Ki(r))):i&&(e.opacity=rr(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<ji;o++){const i=`border${Ri[o]}Radius`;let a=Li(t,i),s=Li(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||Bi(a)===Bi(s)?(e[i]=Math.max(rr(Fi(a),Fi(s),r),0),(Pe.test(s)||Pe.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=rr(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(k(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=E.update((()=>{Ci.hasAnimatedSinceResize=!0,this.currentAnimation=Ti(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Na(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=$o(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=$o(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Ui(t,n),vi(t,o),Wo(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new ia);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&da("z",e,r,this.animationValues);for(let t=0;t<la.length;t++)da(`rotate${la[t]}`,e,r,this.animationValues),da(`skew${la[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ca;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=de(null==e?void 0:e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=de(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!ai(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=(null==n?void 0:n.z)||0;if((o||i||a)&&(r=`translate3d(${o}px, ${i}px, ${a}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:i,skewX:a,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),o&&(r+=`rotateX(${o}deg) `),i&&(r+=`rotateY(${i}deg) `),a&&(r+=`skewX(${a}deg) `),s&&(r+=`skewY(${s}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in Ye){if(void 0===a[e])continue;const{correct:t,applyTo:n,isCSSVariable:o}=Ye[e],s="none"===r.transform?a[e]:t(a[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=s}else o?this.options.visualElement.renderState.vars[e]=s:r[e]=s}return this.options.layoutId&&(r.pointerEvents=i===this?de(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(ba),this.root.sharedNodes.clear()}}}function fa(e){e.updateLayout()}function ma(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?ni((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=$o(r);r.min=t[e].min,r.max=r.min+o})):Na(o,n.layoutBox,t)&&ni((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=$o(t[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)}));const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Wo(a,t,n.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?Wo(s,e.applyTransform(r,!0),n.measuredBox):Wo(s,t,n.layoutBox);const l=!Qi(a);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a={x:{min:0,max:0},y:{min:0,max:0}};Zo(a,n.layoutBox,o.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};Zo(s,t,i.layoutBox),na(a,s)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ga(e){sa&&aa.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function va(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ya(e){e.clearSnapshot()}function ba(e){e.clearMeasurements()}function wa(e){e.isLayoutDirty=!1}function xa(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Sa(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function _a(e){e.resolveTargetDelta()}function Ca(e){e.calcProjection()}function Ea(e){e.resetSkewAndRotation()}function ka(e){e.removeLeadSnapshot()}function za(e,t,n){e.translate=rr(t.translate,0,n),e.scale=rr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Pa(e,t,n,r){e.min=rr(t.min,n.min,r),e.max=rr(t.max,n.max,r)}function Aa(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Da={duration:.45,ease:[.4,0,.1,1]},Ta=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ia=Ta("applewebkit/")&&!Ta("chrome/")?Math.round:b;function Ma(e){e.min=Ia(e.min),e.max=Ia(e.max)}function Na(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=ra(t),o=ra(n),i=.2,!(Math.abs(r-o)<=i));var r,o,i}function Oa(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const Ra=ha({attachResizeListener:(e,t)=>Mo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ja={current:void 0},Fa=ha({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ja.current){const e=new Ra({});e.mount(window),e.setOptions({layoutScroll:!0}),ja.current=e}return ja.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Ba={pan:{Feature:class extends zo{constructor(){super(...arguments),this.removePointerDownListener=b}onPointerDown(e){this.session=new jo(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:bi(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:_i(e),onStart:_i(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&E.postRender((()=>r(e,t)))}}}mount(){this.removePointerDownListener=Oo(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends zo{constructor(e){super(e),this.removeGroupControls=b,this.removeListeners=b,this.controls=new xi(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||b}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Fa,MeasureLayout:Ai}};function La(e,t,n){var r;if(e instanceof Element)return[e];if("string"==typeof e){let o=document;t&&(o=t.current);const i=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:o.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function Va(e,t){const n=La(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Ka(e){return!("touch"===e.pointerType||To())}function Ha(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const o=r["onHover"+n];o&&E.postRender((()=>o(t,No(t))))}const $a=(e,t)=>!!t&&(e===t||$a(e,t.parentElement)),Ua=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const Wa=new WeakSet;function qa(e){return t=>{"Enter"===t.key&&e(t)}}function Ga(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function Za(e){return Io(e)&&!To()}function Ya(e,t,n={}){const[r,o,i]=Va(e,n),a=e=>{const r=e.currentTarget;if(!Za(e)||Wa.has(r))return;Wa.add(r);const i=t(r,e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),Za(e)&&Wa.has(r)&&(Wa.delete(r),"function"==typeof i&&i(e,{success:t}))},s=e=>{a(e,n.useGlobalTarget||$a(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,o),window.addEventListener("pointercancel",l,o)};return r.forEach((e=>{(function(e){return Ua.has(e.tagName)||-1!==e.tabIndex})(e)||null!==e.getAttribute("tabindex")||(e.tabIndex=0);(n.useGlobalTarget?window:e).addEventListener("pointerdown",a,o),e.addEventListener("focus",(e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=qa((()=>{if(Wa.has(n))return;Ga(n,"down");const e=qa((()=>{Ga(n,"up")}));n.addEventListener("keyup",e,t),n.addEventListener("blur",(()=>Ga(n,"cancel")),t)}));n.addEventListener("keydown",r,t),n.addEventListener("blur",(()=>n.removeEventListener("keydown",r)),t)})(e,o)),o)})),i}function Xa(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const o=r["onTap"+("End"===n?"":n)];o&&E.postRender((()=>o(t,No(t))))}const Ja=new WeakMap,Qa=new WeakMap,es=e=>{const t=Ja.get(e.target);t&&t(e)},ts=e=>{e.forEach(es)};function ns(e,t,n){const r=function({root:e,...t}){const n=e||document;Qa.has(n)||Qa.set(n,{});const r=Qa.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(ts,{root:e,...t})),r[o]}(t);return Ja.set(e,n),r.observe(e),()=>{Ja.delete(e),r.unobserve(e)}}const rs={some:0,all:1};const os={inView:{Feature:class extends zo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:rs[r]};return ns(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends zo{mount(){const{current:e}=this.node;e&&(this.unmount=Ya(e,((e,t)=>(Xa(this.node,t,"Start"),(e,{success:t})=>Xa(this.node,e,t?"End":"Cancel"))),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends zo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=dr(Mo(this.node.current,"focus",(()=>this.onFocus())),Mo(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends zo{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,i]=Va(e,n),a=e=>{if(!Ka(e))return;const{target:n}=e,r=t(n,e);if("function"!=typeof r||!n)return;const i=e=>{Ka(e)&&(r(e),n.removeEventListener("pointerleave",i))};n.addEventListener("pointerleave",i,o)};return r.forEach((e=>{e.addEventListener("pointerenter",a,o)})),i}(e,((e,t)=>(Ha(this.node,t,"Start"),e=>Ha(this.node,e,"End")))))}unmount(){}}}},is={layout:{ProjectionNode:Fa,MeasureLayout:Ai}},as={current:null},ss={current:!1};function ls(){if(ss.current=!0,g)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>as.current=e.matches;e.addListener(t),t()}else as.current=!1}const cs=[...qn,hn,Sn],us=new WeakMap;const ds=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ps{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Kn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=mt.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,E.render(this.render,!1,!0))};const{latestValues:s,renderState:l,onUpdate:c}=i;this.onUpdate=c,this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=H(t),this.isVariantNode=$(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==s[e]&&ue(t)&&t.set(s[e],!1)}}mount(e){this.current=e,us.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),ss.current||ls(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||as.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){us.delete(this.current),this.projection&&this.projection.unmount(),k(this.notifyUpdate),k(this.render),this.valueSubscriptions.forEach((e=>e())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=me.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&E.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{r(),o(),i&&i(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in T){const t=T[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<ds.length;t++){const n=ds[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const o=t[r],i=n[r];if(ue(o))e.addValue(r,o);else if(ue(i))e.addValue(r,St(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(r);e.addValue(r,St(void 0!==t?t:o,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=St(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];var o;return null!=r&&("string"==typeof r&&(Hn(r)||nn(r))?r=parseFloat(r):(o=r,!cs.find(Wn(o))&&Sn.test(t)&&(r=An(e,t))),this.setBaseTarget(e,ue(r)?r.get():r)),ue(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const o=le(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(r=o[e])}if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||ue(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new yt),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class hs extends ps{constructor(){super(...arguments),this.KeyframeResolver=Zn}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ue(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}class fs extends hs{constructor(){super(...arguments),this.type="html",this.renderInstance=qe}readValueFromInstance(e,t){if(me.has(t)){const e=Pn(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(ve(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return yi(e,t)}build(e,t,n){Be(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Je(e,t,n)}}class ms extends hs{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ti}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(me.has(t)){const e=Pn(t);return e&&e.default||0}return t=Ge.has(t)?t:Y(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Qe(e,t,n)}build(e,t,n){He(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){Ze(e,t,0,r)}mount(e){this.isSVGTag=We(e.tagName),super.mount(e)}}const gs=(e,t)=>ae(e)?new ms(t):new fs(t,{allowProjection:e!==o.Fragment}),vs=j(lt({...Ao,...os,...Ba,...is},gs));new WeakMap;new Set;new WeakMap,new WeakMap,new WeakMap;new Map;function ys(){!ss.current&&ls();const[e]=(0,o.useState)(as.current);return e}new WeakMap;new Map,new Map;new Set;const bs=()=>({});pe({scrapeMotionValuesFromProps:bs,createRenderState:bs});_.reduce(((e,t)=>(e[t]=e=>k(e),e)),{});(0,o.createContext)(null)},55480:()=>{},2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},65221:(e,t,n)=>{"use strict";n.d(t,{$Z:()=>u.$Z,$c:()=>k.$c,B2:()=>s.B2,Bi:()=>D.Bi,CY:()=>c.CY,Dr:()=>A.D,EB:()=>y.E,Gh:()=>z.n,H8:()=>l.H8,HJ:()=>x.HJ,Hd:()=>s.Hd,IZ:()=>p.IZ,JY:()=>c.JY,Jn:()=>k.Jn,Kc:()=>E.K,MW:()=>d.t,Mk:()=>u.Mk,Mt:()=>d.M,OG:()=>s.OG,Ok:()=>z.O,Os:()=>m.Os,PF:()=>C.P,QM:()=>c.QM,Ql:()=>w.Q,Rz:()=>v.Rz,TG:()=>s.TG,U2:()=>c.U2,UH:()=>D.UH,Vh:()=>k.Vh,Vi:()=>m.Vi,WM:()=>x.WM,Xv:()=>f.Xv,Y0:()=>u.Y0,Ym:()=>c.Ym,_z:()=>s._z,b:()=>m.b,dD:()=>u.dD,de:()=>u.de,fP:()=>v.fP,fS:()=>A.f,hJ:()=>v.hJ,iD:()=>s.iD,iE:()=>h.i,iF:()=>c.iF,iQ:()=>u.iQ,ln:()=>v.ln,mP:()=>b.m,mp:()=>s.mp,n1:()=>l.n1,nW:()=>S.nW,ns:()=>p.ns,oJ:()=>v.oJ,og:()=>l.og,pn:()=>c.pn,qQ:()=>r.q,rE:()=>i.r,ry:()=>_.r,s6:()=>T.s,sL:()=>r.s,sp:()=>a.s,u4:()=>f.u4,v:()=>g.v,v0:()=>p.v0,v6:()=>D.v6,v8:()=>v.v8,vZ:()=>P.v,vp:()=>o.vp,xW:()=>f.xW,xX:()=>C.x,y7:()=>m.y7,z2:()=>s.z2,zU:()=>b.z});n(77937);var r=n(18855),o=(n(49899),n(5642)),i=n(55418),a=(n(93828),n(23808)),s=n(87874),l=n(74373),c=n(20381),u=n(37555),d=n(2973),p=n(11104),h=n(42116),f=n(68116),m=n(43773),g=(n(44784),n(35934)),v=n(76423),y=n(2078),b=n(97015),w=n(22305),x=n(12224),S=n(38783),_=n(14232),C=(n(96411),n(39760)),E=n(12485),k=(n(37952),n(32231)),z=n(25638),P=n(99008),A=n(48026),D=n(86025),T=n(46473)},81214:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.DebounceInput=void 0;var o=s(n(96540)),i=s(n(20181)),a=["element","onChange","value","minLength","debounceTimeout","forceNotifyByEnter","forceNotifyOnBlur","onKeyDown","onBlur","inputRef"];function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}(this,n)}}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(c,e);var t,n,r,s=h(c);function c(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),g(f(t=s.call(this,e)),"onChange",(function(e){e.persist();var n=t.state.value,r=t.props.minLength;t.setState({value:e.target.value},(function(){var o=t.state.value;o.length>=r?t.notify(e):n.length>o.length&&t.notify(u(u({},e),{},{target:u(u({},e.target),{},{value:""})}))}))})),g(f(t),"onKeyDown",(function(e){"Enter"===e.key&&t.forceNotify(e);var n=t.props.onKeyDown;n&&(e.persist(),n(e))})),g(f(t),"onBlur",(function(e){t.forceNotify(e);var n=t.props.onBlur;n&&(e.persist(),n(e))})),g(f(t),"createNotifier",(function(e){if(e<0)t.notify=function(){return null};else if(0===e)t.notify=t.doNotify;else{var n=(0,i.default)((function(e){t.isDebouncing=!1,t.doNotify(e)}),e);t.notify=function(e){t.isDebouncing=!0,n(e)},t.flush=function(){return n.flush()},t.cancel=function(){t.isDebouncing=!1,n.cancel()}}})),g(f(t),"doNotify",(function(){t.props.onChange.apply(void 0,arguments)})),g(f(t),"forceNotify",(function(e){var n=t.props.debounceTimeout;if(t.isDebouncing||!(n>0)){t.cancel&&t.cancel();var r=t.state.value,o=t.props.minLength;r.length>=o?t.doNotify(e):t.doNotify(u(u({},e),{},{target:u(u({},e.target),{},{value:r})}))}})),t.isDebouncing=!1,t.state={value:void 0===e.value||null===e.value?"":e.value};var n=t.props.debounceTimeout;return t.createNotifier(n),t}return t=c,(n=[{key:"componentDidUpdate",value:function(e){if(!this.isDebouncing){var t=this.props,n=t.value,r=t.debounceTimeout,o=e.debounceTimeout,i=e.value,a=this.state.value;void 0!==n&&i!==n&&a!==n&&this.setState({value:n}),r!==o&&this.createNotifier(r)}}},{key:"componentWillUnmount",value:function(){this.flush&&this.flush()}},{key:"render",value:function(){var e,t,n=this.props,r=n.element,i=(n.onChange,n.value,n.minLength,n.debounceTimeout,n.forceNotifyByEnter),s=n.forceNotifyOnBlur,c=n.onKeyDown,d=n.onBlur,p=n.inputRef,h=l(n,a),f=this.state.value;e=i?{onKeyDown:this.onKeyDown}:c?{onKeyDown:c}:{},t=s?{onBlur:this.onBlur}:d?{onBlur:d}:{};var m=p?{ref:p}:{};return o.default.createElement(r,u(u(u(u({},h),{},{onChange:this.onChange,value:f},e),t),m))}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.default.PureComponent);t.DebounceInput=v,g(v,"defaultProps",{element:"input",type:"text",onKeyDown:void 0,onBlur:void 0,value:void 0,minLength:0,debounceTimeout:100,forceNotifyByEnter:!0,forceNotifyOnBlur:!0,inputRef:void 0})},24677:(e,t,n)=>{"use strict";var r=n(81214).DebounceInput;r.DebounceInput=r,e.exports=r},22551:(e,t,n)=>{"use strict";var r=n(96540),o=n(20194);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},f={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(f,e)||!d.call(h,e)&&(p.test(e)?f[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),S=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),z=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var N=Symbol.iterator;function O(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=N&&e[N]||e["@@iterator"])?e:null}var R,j=Object.assign;function F(e){if(void 0===R)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||""}return"\n"+R+e}var B=!1;function L(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function V(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=L(e.type,!1);case 11:return e=L(e.type.render,!1);case 1:return e=L(e.type,!0);default:return""}}function K(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case _:return"Fragment";case S:return"Portal";case E:return"Profiler";case C:return"StrictMode";case A:return"Suspense";case D:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case z:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case T:return null!==(t=e.displayName||null)?t:K(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return K(e(t))}catch(e){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return K(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function $(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(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}}function Z(e,t){var n=t.checked;return j({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=$(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){X(e,t);var n=$(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,$(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Q(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return j({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:$(n)}}function ie(e,t){var n=$(t.value),r=$(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(he).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ve=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,_e=null,Ce=null;function Ee(e){if(e=wo(e)){if("function"!=typeof Se)throw Error(i(280));var t=e.stateNode;t&&(t=So(t),Se(e.stateNode,e.type,t))}}function ke(e){_e?Ce?Ce.push(e):Ce=[e]:_e=e}function ze(){if(_e){var e=_e,t=Ce;if(Ce=_e=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Pe(e,t){return e(t)}function Ae(){}var De=!1;function Te(e,t,n){if(De)return e(t,n);De=!0;try{return Pe(e,t,n)}finally{De=!1,(null!==_e||null!==Ce)&&(Ae(),ze())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var r=So(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Me=!1;if(u)try{var Ne={};Object.defineProperty(Ne,"passive",{get:function(){Me=!0}}),window.addEventListener("test",Ne,Ne),window.removeEventListener("test",Ne,Ne)}catch(ue){Me=!1}function Oe(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Re=!1,je=null,Fe=!1,Be=null,Le={onError:function(e){Re=!0,je=e}};function Ve(e,t,n,r,o,i,a,s,l){Re=!1,je=null,Oe.apply(Le,arguments)}function Ke(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function $e(e){if(Ke(e)!==e)throw Error(i(188))}function Ue(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ke(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return $e(o),e;if(a===r)return $e(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var qe=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,Ze=o.unstable_shouldYield,Ye=o.unstable_requestPaint,Xe=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Qe=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=dt(s):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return!(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var xt,St,_t,Ct,Et,kt=!1,zt=[],Pt=null,At=null,Dt=null,Tt=new Map,It=new Map,Mt=[],Nt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ot(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":Dt=null;break;case"pointerover":case"pointerout":Tt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Rt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=wo(t))&&St(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function jt(e){var t=bo(e.target);if(null!==t){var n=Ke(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void Et(e.priority,(function(){_t(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Bt(e,t,n){Ft(e)&&n.delete(t)}function Lt(){kt=!1,null!==Pt&&Ft(Pt)&&(Pt=null),null!==At&&Ft(At)&&(At=null),null!==Dt&&Ft(Dt)&&(Dt=null),Tt.forEach(Bt),It.forEach(Bt)}function Vt(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Lt)))}function Kt(e){function t(t){return Vt(t,e)}if(0<zt.length){Vt(zt[0],e);for(var n=1;n<zt.length;n++){var r=zt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Pt&&Vt(Pt,e),null!==At&&Vt(At,e),null!==Dt&&Vt(Dt,e),Tt.forEach(t),It.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)jt(n),null===n.blockedOn&&Mt.shift()}var Ht=w.ReactCurrentBatchConfig,$t=!0;function Ut(e,t,n,r){var o=bt,i=Ht.transition;Ht.transition=null;try{bt=1,qt(e,t,n,r)}finally{bt=o,Ht.transition=i}}function Wt(e,t,n,r){var o=bt,i=Ht.transition;Ht.transition=null;try{bt=4,qt(e,t,n,r)}finally{bt=o,Ht.transition=i}}function qt(e,t,n,r){if($t){var o=Zt(e,t,n,r);if(null===o)$r(e,t,r,Gt,n),Ot(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Pt=Rt(Pt,e,t,n,r,o),!0;case"dragenter":return At=Rt(At,e,t,n,r,o),!0;case"mouseover":return Dt=Rt(Dt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Tt.set(i,Rt(Tt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,It.set(i,Rt(It.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Ot(e,r),4&t&&-1<Nt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&xt(i),null===(i=Zt(e,t,n,r))&&$r(e,t,r,Gt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else $r(e,t,r,null,n)}}var Gt=null;function Zt(e,t,n,r){if(Gt=null,null!==(e=bo(e=xe(r))))if(null===(t=Ke(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Qe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Jt=null,Qt=null;function en(){if(Qt)return Qt;var e,t,n=Jt,r=n.length,o="value"in Xt?Xt.value:Xt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Qt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=j({},cn,{view:0,detail:0}),pn=on(dn),hn=j({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),fn=on(hn),mn=on(j({},hn,{dataTransfer:0})),gn=on(j({},dn,{relatedTarget:0})),vn=on(j({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=j({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on(j({},cn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_n={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_n[e])&&!!t[e]}function En(){return Cn}var kn=j({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),zn=on(kn),Pn=on(j({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=on(j({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Dn=on(j({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Tn=j({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=on(Tn),Mn=[9,13,27,32],Nn=u&&"CompositionEvent"in window,On=null;u&&"documentMode"in document&&(On=document.documentMode);var Rn=u&&"TextEvent"in window&&!On,jn=u&&(!Nn||On&&8<On&&11>=On),Fn=String.fromCharCode(32),Bn=!1;function Ln(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Kn=!1;var Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Un(e,t,n,r){ke(r),0<(t=Wr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,qn=null;function Gn(e){Fr(e,0)}function Zn(e){if(q(xo(e)))return e}function Yn(e,t){if("change"===e)return t}var Xn=!1;if(u){var Jn;if(u){var Qn="oninput"in document;if(!Qn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Qn="function"==typeof er.oninput}Jn=Qn}else Jn=!1;Xn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Wn&&(Wn.detachEvent("onpropertychange",nr),qn=Wn=null)}function nr(e){if("value"===e.propertyName&&Zn(qn)){var t=[];Un(t,qn,e,xe(e)),Te(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Wn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zn(qn)}function ir(e,t){if("click"===e)return Zn(t)}function ar(e,t){if("input"===e||"change"===e)return Zn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==G(r)||("selectionStart"in(r=gr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Wr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},_r={},Cr={};function Er(e){if(_r[e])return _r[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return _r[e]=n[t];return e}u&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var kr=Er("animationend"),zr=Er("animationiteration"),Pr=Er("animationstart"),Ar=Er("transitionend"),Dr=new Map,Tr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(e,t){Dr.set(e,t),l(t,[e])}for(var Mr=0;Mr<Tr.length;Mr++){var Nr=Tr[Mr];Ir(Nr.toLowerCase(),"on"+(Nr[0].toUpperCase()+Nr.slice(1)))}Ir(kr,"onAnimationEnd"),Ir(zr,"onAnimationIteration"),Ir(Pr,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Ar,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Or="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Rr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Or));function jr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,s,l,c){if(Ve.apply(this,arguments),Re){if(!Re)throw Error(i(198));var u=je;Re=!1,je=null,Fe||(Fe=!0,Be=u)}}(r,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;jr(o,s,c),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;jr(o,s,c),i=l}}}if(Fe)throw e=Be,Fe=!1,Be=null,e}function Br(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Hr(t,e,2,!1),n.add(r))}function Lr(e,t,n){var r=0;t&&(r|=4),Hr(n,e,r,t)}var Vr="_reactListening"+Math.random().toString(36).slice(2);function Kr(e){if(!e[Vr]){e[Vr]=!0,a.forEach((function(t){"selectionchange"!==t&&(Rr.has(t)||Lr(t,!1,e),Lr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Vr]||(t[Vr]=!0,Lr("selectionchange",!1,t))}}function Hr(e,t,n,r){switch(Yt(t)){case 1:var o=Ut;break;case 4:o=Wt;break;default:o=qt}n=o.bind(null,t,n,e),o=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function $r(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=bo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Te((function(){var r=i,o=xe(n),a=[];e:{var s=Dr.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=zn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=An;break;case kr:case zr:case Pr:l=vn;break;case Ar:l=Dn;break;case"scroll":l=pn;break;case"wheel":l=In;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Pn}var u=!!(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var h,f=r;null!==f;){var m=(h=f).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==p&&(null!=(m=Ie(f,p))&&u.push(Ur(f,m,h)))),d)break;f=f.return}0<u.length&&(s=new l(s,c,null,n,o),a.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!bo(c)&&!c[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?bo(c):null)&&(c!==(d=Ke(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=fn,m="onMouseLeave",p="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(u=Pn,m="onPointerLeave",p="onPointerEnter",f="pointer"),d=null==l?s:xo(l),h=null==c?s:xo(c),(s=new u(m,f+"leave",l,n,o)).target=d,s.relatedTarget=h,m=null,bo(o)===r&&((u=new u(p,f+"enter",c,n,o)).target=h,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(p=c,f=0,h=u=l;h;h=qr(h))f++;for(h=0,m=p;m;m=qr(m))h++;for(;0<f-h;)u=qr(u),f--;for(;0<h-f;)p=qr(p),h--;for(;f--;){if(u===p||null!==p&&u===p.alternate)break e;u=qr(u),p=qr(p)}u=null}else u=null;null!==l&&Gr(a,s,l,u,!1),null!==c&&null!==d&&Gr(a,d,c,u,!0)}if("select"===(l=(s=r?xo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Yn;else if($n(s))if(Xn)g=ar;else{g=or;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ir);switch(g&&(g=g(e,r))?Un(a,g,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?xo(r):window,e){case"focusin":($n(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,o)}var y;if(Nn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Kn?Ln(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(jn&&"ko"!==n.locale&&(Kn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Kn&&(y=en()):(Jt="value"in(Xt=o)?Xt.value:Xt.textContent,Kn=!0)),0<(v=Wr(r,b)).length&&(b=new wn(b,e,null,n,o),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=Vn(n))&&(b.data=y))),(y=Rn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Bn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Kn)return"compositionend"===e||!Nn&&Ln(e,t)?(e=en(),Qt=Jt=Xt=null,Kn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Wr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}Fr(a,t)}))}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ie(e,n))&&r.unshift(Ur(e,i,o)),null!=(i=Ie(e,t))&&r.push(Ur(e,i,o))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Ie(n,i))&&a.unshift(Ur(n,l,s)):o||null!=(l=Ie(n,i))&&a.push(Ur(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Zr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(Zr,"\n").replace(Yr,"")}function Jr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(i(425))}function Qr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Kt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Kt(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),ho="__reactFiber$"+po,fo="__reactProps$"+po,mo="__reactContainer$"+po,go="__reactEvents$"+po,vo="__reactListeners$"+po,yo="__reactHandles$"+po;function bo(e){var t=e[ho];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[ho]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[ho])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[ho]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function So(e){return e[fo]||null}var _o=[],Co=-1;function Eo(e){return{current:e}}function ko(e){0>Co||(e.current=_o[Co],_o[Co]=null,Co--)}function zo(e,t){Co++,_o[Co]=e.current,e.current=t}var Po={},Ao=Eo(Po),Do=Eo(!1),To=Po;function Io(e,t){var n=e.type.contextTypes;if(!n)return Po;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Mo(e){return null!=(e=e.childContextTypes)}function No(){ko(Do),ko(Ao)}function Oo(e,t,n){if(Ao.current!==Po)throw Error(i(168));zo(Ao,t),zo(Do,n)}function Ro(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,H(e)||"Unknown",o));return j({},n,r)}function jo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Po,To=Ao.current,zo(Ao,e),zo(Do,Do.current),!0}function Fo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Ro(e,t,To),r.__reactInternalMemoizedMergedChildContext=e,ko(Do),ko(Ao),zo(Ao,e)):ko(Do),zo(Do,n)}var Bo=null,Lo=!1,Vo=!1;function Ko(e){null===Bo?Bo=[e]:Bo.push(e)}function Ho(){if(!Vo&&null!==Bo){Vo=!0;var e=0,t=bt;try{var n=Bo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Bo=null,Lo=!1}catch(t){throw null!==Bo&&(Bo=Bo.slice(e+1)),qe(Qe,Ho),t}finally{bt=t,Vo=!1}}return null}var $o=[],Uo=0,Wo=null,qo=0,Go=[],Zo=0,Yo=null,Xo=1,Jo="";function Qo(e,t){$o[Uo++]=qo,$o[Uo++]=Wo,Wo=e,qo=t}function ei(e,t,n){Go[Zo++]=Xo,Go[Zo++]=Jo,Go[Zo++]=Yo,Yo=e;var r=Xo;e=Jo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Xo=1<<32-at(t)+o|n<<o|r,Jo=i+e}else Xo=1<<i|n<<o|r,Jo=e}function ti(e){null!==e.return&&(Qo(e,1),ei(e,1,0))}function ni(e){for(;e===Wo;)Wo=$o[--Uo],$o[Uo]=null,qo=$o[--Uo],$o[Uo]=null;for(;e===Yo;)Yo=Go[--Zo],Go[Zo]=null,Jo=Go[--Zo],Go[Zo]=null,Xo=Go[--Zo],Go[Zo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Tc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yo?{id:Xo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Tc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ci(e){return!(!(1&e.mode)||128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ci(e))throw Error(i(418));t=co(n.nextSibling);var r=ri;t&&li(e,t)?si(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ci(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function pi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ci(e))throw hi(),Error(i(418));for(;t;)si(e,t),t=co(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?co(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=oi;e;)e=co(e.nextSibling)}function fi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var gi=w.ReactCurrentBatchConfig;function vi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Mc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=jc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===_?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===I&&bi(i)===t.type)?((r=o(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Nc(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Oc(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=jc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Nc(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case S:return(t=Fc(t,e.mode,n)).return=e,t;case I:return p(e,(0,t._init)(t._payload),n)}if(te(t)||O(t))return(t=Oc(t,e.mode,n,null)).return=e,t;yi(e,t)}return null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===o?c(e,t,n,r):null;case S:return n.key===o?u(e,t,n,r):null;case I:return h(e,t,(o=n._init)(n._payload),r)}if(te(n)||O(n))return null!==o?null:d(e,t,n,r,null);yi(e,n)}return null}function f(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case S:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case I:return f(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||O(r))return d(t,e=e.get(n)||null,r,o,null);yi(t,r)}return null}function m(o,i,s,l){for(var c=null,u=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=h(o,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(o,d),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(o,d),ii&&Qo(o,m),c;if(null===d){for(;m<s.length;m++)null!==(d=p(o,s[m],l))&&(i=a(d,i,m),null===u?c=d:u.sibling=d,u=d);return ii&&Qo(o,m),c}for(d=r(o,d);m<s.length;m++)null!==(g=f(d,o,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),ii&&Qo(o,m),c}function g(o,s,l,c){var u=O(l);if("function"!=typeof u)throw Error(i(150));if(null==(l=u.call(l)))throw Error(i(151));for(var d=u=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=h(o,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),s=a(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(o,m),ii&&Qo(o,g),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=p(o,y.value,c))&&(s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return ii&&Qo(o,g),u}for(m=r(o,m);!y.done;g++,y=l.next())null!==(y=f(m,o,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(o,e)})),ii&&Qo(o,g),u}return function e(r,i,a,l){if("object"==typeof a&&null!==a&&a.type===_&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var c=a.key,u=i;null!==u;){if(u.key===c){if((c=a.type)===_){if(7===u.tag){n(r,u.sibling),(i=o(u,a.props.children)).return=r,r=i;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===I&&bi(c)===u.type){n(r,u.sibling),(i=o(u,a.props)).ref=vi(r,u,a),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===_?((i=Oc(a.props.children,r.mode,l,a.key)).return=r,r=i):((l=Nc(a.type,a.key,a.props,null,r.mode,l)).ref=vi(r,i,a),l.return=r,r=l)}return s(r);case S:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Fc(a,r.mode,l)).return=r,r=i}return s(r);case I:return e(r,i,(u=a._init)(a._payload),l)}if(te(a))return m(r,i,a,l);if(O(a))return g(r,i,a,l);yi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=jc(a,r.mode,l)).return=r,r=i),s(r)):n(r,i)}}var xi=wi(!0),Si=wi(!1),_i=Eo(null),Ci=null,Ei=null,ki=null;function zi(){ki=Ei=Ci=null}function Pi(e){var t=_i.current;ko(_i),e._currentValue=t}function Ai(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Di(e,t){Ci=e,ki=Ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Ti(e){var t=e._currentValue;if(ki!==e)if(e={context:e,memoizedValue:t,next:null},null===Ei){if(null===Ci)throw Error(i(308));Ei=e,Ci.dependencies={lanes:0,firstContext:e}}else Ei=Ei.next=e;return t}var Ii=null;function Mi(e){null===Ii?Ii=[e]:Ii.push(e)}function Ni(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Mi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Oi(e,r)}function Oi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ri=!1;function ji(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Li(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Pl){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Oi(e,n)}return null===(o=r.interleaved)?(t.next=t,Mi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Oi(e,n)}function Vi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Ki(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Hi(e,t,n,r){var o=e.updateQueue;Ri=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,u=c=l=null,s=i;;){var p=s.lane,h=s.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,m=s;switch(p=t,h=n,m.tag){case 1:if("function"==typeof(f=m.payload)){d=f.call(h,d,p);break e}d=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(p="function"==typeof(f=m.payload)?f.call(h,d,p):f))break e;d=j({},d,p);break e;case 2:Ri=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,a|=p;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(p=s).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Rl|=a,e.lanes=a,e.memoizedState=d}}function $i(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Ui={},Wi=Eo(Ui),qi=Eo(Ui),Gi=Eo(Ui);function Zi(e){if(e===Ui)throw Error(i(174));return e}function Yi(e,t){switch(zo(Gi,t),zo(qi,e),zo(Wi,Ui),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ko(Wi),zo(Wi,t)}function Xi(){ko(Wi),ko(qi),ko(Gi)}function Ji(e){Zi(Gi.current);var t=Zi(Wi.current),n=le(t,e.type);t!==n&&(zo(qi,e),zo(Wi,n))}function Qi(e){qi.current===e&&(ko(Wi),ko(qi))}var ea=Eo(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=w.ReactCurrentDispatcher,ia=w.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,da=!1,pa=0,ha=0;function fa(){throw Error(i(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ga(e,t,n,r,o,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Qa:es,e=n(r,o),da){a=0;do{if(da=!1,pa=0,25<=a)throw Error(i(301));a+=1,ca=la=null,t.updateQueue=null,oa.current=ts,e=n(r,o)}while(da)}if(oa.current=Ja,t=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,t)throw Error(i(300));return e}function va(){var e=0!==pa;return pa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=e:ca=ca.next=e,ca}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ca?sa.memoizedState:ca.next;if(null!==t)ca=t,la=e;else{if(null===e)throw Error(i(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?sa.memoizedState=ca=e:ca=ca.next=e}return ca}function wa(e,t){return"function"==typeof t?t(e):t}function xa(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=la,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,s=r):c=c.next=p,sa.lanes|=d,Rl|=d}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,sa.lanes|=a,Rl|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sa(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function _a(){}function Ca(e,t){var n=sa,r=ba(),o=t(),a=!sr(r.memoizedState,o);if(a&&(r.memoizedState=o,bs=!0),r=r.queue,Ra(za.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(n.flags|=2048,Ta(9,ka.bind(null,n,r,o,t),void 0,null),null===Al)throw Error(i(349));30&aa||Ea(n,t,o)}return o}function Ea(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ka(e,t,n,r){t.value=n,t.getSnapshot=r,Pa(t)&&Aa(e)}function za(e,t,n){return n((function(){Pa(t)&&Aa(e)}))}function Pa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Aa(e){var t=Oi(e,1);null!==t&&nc(t,e,1,-1)}function Da(e){var t=ya();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ga.bind(null,sa,e),[t.memoizedState,e]}function Ta(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ia(){return ba().memoizedState}function Ma(e,t,n,r){var o=ya();sa.flags|=e,o.memoizedState=Ta(1|t,n,void 0,void 0===r?null:r)}function Na(e,t,n,r){var o=ba();r=void 0===r?null:r;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=Ta(t,n,i,r))}sa.flags|=e,o.memoizedState=Ta(1|t,n,i,r)}function Oa(e,t){return Ma(8390656,8,e,t)}function Ra(e,t){return Na(2048,8,e,t)}function ja(e,t){return Na(4,2,e,t)}function Fa(e,t){return Na(4,4,e,t)}function Ba(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function La(e,t,n){return n=null!=n?n.concat([e]):null,Na(4,4,Ba.bind(null,t,e),n)}function Va(){}function Ka(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ha(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function $a(e,t,n){return 21&aa?(sr(n,t)||(n=mt(),sa.lanes|=n,Rl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n)}function Ua(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=n,ia.transition=r}}function Wa(){return ba().memoizedState}function qa(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Za(e))Ya(t,n);else if(null!==(n=Ni(e,t,n,r))){nc(n,e,r,ec()),Xa(n,t,r)}}function Ga(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Za(e))Ya(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Mi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ni(e,t,o,r))&&(nc(n,e,r,o=ec()),Xa(n,t,r))}}function Za(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Ya(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Ja={readContext:Ti,useCallback:fa,useContext:fa,useEffect:fa,useImperativeHandle:fa,useInsertionEffect:fa,useLayoutEffect:fa,useMemo:fa,useReducer:fa,useRef:fa,useState:fa,useDebugValue:fa,useDeferredValue:fa,useTransition:fa,useMutableSource:fa,useSyncExternalStore:fa,useId:fa,unstable_isNewReconciler:!1},Qa={readContext:Ti,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Ti,useEffect:Oa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ma(4194308,4,Ba.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ma(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ma(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=qa.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Da,useDebugValue:Va,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Da(!1),t=e[0];return e=Ua.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,o=ya();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Al)throw Error(i(349));30&aa||Ea(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Oa(za.bind(null,r,a,e),[e]),r.flags|=2048,Ta(9,ka.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Al.identifierPrefix;if(ii){var n=Jo;t=":"+t+"R"+(n=(Xo&~(1<<32-at(Xo)-1)).toString(32)+n),0<(n=pa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Ti,useCallback:Ka,useContext:Ti,useEffect:Ra,useImperativeHandle:La,useInsertionEffect:ja,useLayoutEffect:Fa,useMemo:Ha,useReducer:xa,useRef:Ia,useState:function(){return xa(wa)},useDebugValue:Va,useDeferredValue:function(e){return $a(ba(),la.memoizedState,e)},useTransition:function(){return[xa(wa)[0],ba().memoizedState]},useMutableSource:_a,useSyncExternalStore:Ca,useId:Wa,unstable_isNewReconciler:!1},ts={readContext:Ti,useCallback:Ka,useContext:Ti,useEffect:Ra,useImperativeHandle:La,useInsertionEffect:ja,useLayoutEffect:Fa,useMemo:Ha,useReducer:Sa,useRef:Ia,useState:function(){return Sa(wa)},useDebugValue:Va,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:$a(t,la.memoizedState,e)},useTransition:function(){return[Sa(wa)[0],ba().memoizedState]},useMutableSource:_a,useSyncExternalStore:Ca,useId:Wa,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=j({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:j({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&Ke(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Bi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Li(e,i,o))&&(nc(t,e,o,r),Vi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Bi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Li(e,i,o))&&(nc(t,e,o,r),Vi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=Bi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Li(e,o,r))&&(nc(t,e,r,n),Vi(t,e,r))}};function is(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,i))}function as(e,t,n){var r=!1,o=Po,i=t.contextType;return"object"==typeof i&&null!==i?i=Ti(i):(o=Mo(t)?To:Ao.current,i=(r=null!=(r=t.contextTypes))?Io(e,o):Po),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ss(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},ji(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ti(i):(i=Mo(t)?To:Ao.current,o.context=Io(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(rs(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),Hi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=V(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ps="function"==typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=Bi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$l||($l=!0,Ul=r),ds(0,t)},n}function fs(e,t,n){(n=Bi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof r&&(null===Wl?Wl=new Set([this]):Wl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ec.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Bi(-1,1)).tag=2,Li(n,t,1))),n.lanes|=1),e)}var ys=w.ReactCurrentOwner,bs=!1;function ws(e,t,n,r){t.child=null===e?Si(t,null,n,r):xi(t,e.child,n,r)}function xs(e,t,n,r,o){n=n.render;var i=t.ref;return Di(t,o),r=ga(e,t,n,r,i,o),n=va(),null===e||bs?(ii&&n&&ti(t),t.flags|=1,ws(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,$s(e,t,o))}function Ss(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Ic(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,_s(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return $s(e,t,o)}return t.flags|=1,(e=Mc(i,r)).ref=t.ref,e.return=t,t.child=e}function _s(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,$s(e,t,o);131072&e.flags&&(bs=!0)}}return ks(e,t,n,r,o)}function Cs(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,zo(Ml,Il),Il|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,zo(Ml,Il),Il|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},zo(Ml,Il),Il|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,zo(Ml,Il),Il|=r;return ws(e,t,o,n),t.child}function Es(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ks(e,t,n,r,o){var i=Mo(n)?To:Ao.current;return i=Io(t,i),Di(t,o),n=ga(e,t,n,r,i,o),r=va(),null===e||bs?(ii&&r&&ti(t),t.flags|=1,ws(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,$s(e,t,o))}function zs(e,t,n,r,o){if(Mo(n)){var i=!0;jo(t)}else i=!1;if(Di(t,o),null===t.stateNode)Hs(e,t),as(t,n,r),ls(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=Ti(c):c=Io(t,c=Mo(n)?To:Ao.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&ss(t,a,r,c),Ri=!1;var p=t.memoizedState;a.state=p,Hi(t,r,a,o),l=t.memoizedState,s!==r||p!==l||Do.current||Ri?("function"==typeof u&&(rs(t,n,u,r),l=t.memoizedState),(s=Ri||is(t,n,s,r,p,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Fi(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),a.props=c,d=t.pendingProps,p=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Ti(l):l=Io(t,l=Mo(n)?To:Ao.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||p!==l)&&ss(t,a,r,l),Ri=!1,p=t.memoizedState,a.state=p,Hi(t,r,a,o);var f=t.memoizedState;s!==d||p!==f||Do.current||Ri?("function"==typeof h&&(rs(t,n,h,r),f=t.memoizedState),(c=Ri||is(t,n,c,r,p,f,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Ps(e,t,n,r,i,o)}function Ps(e,t,n,r,o,i){Es(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Fo(t,n,!1),$s(e,t,i);r=t.stateNode,ys.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=xi(t,e.child,null,i),t.child=xi(t,null,s,i)):ws(e,t,s,i),t.memoizedState=r.state,o&&Fo(t,n,!0),t.child}function As(e){var t=e.stateNode;t.pendingContext?Oo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Oo(0,t.context,!1),Yi(e,t.containerInfo)}function Ds(e,t,n,r,o){return fi(),mi(o),t.flags|=256,ws(e,t,n,r),t.child}var Ts,Is,Ms,Ns,Os={dehydrated:null,treeContext:null,retryLane:0};function Rs(e){return{baseLanes:e,cachePool:null,transitions:null}}function js(e,t,n){var r,o=t.pendingProps,a=ea.current,s=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),zo(ea,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},1&o||null===s?s=Rc(l,o,0,null):(s.childLanes=0,s.pendingProps=l),e=Oc(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Rs(n),t.memoizedState=Os,e):Fs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,Bs(e,t,s,r=us(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Rc({mode:"visible",children:r.children},o,0,null),(a=Oc(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&xi(t,e.child,null,s),t.child.memoizedState=Rs(s),t.memoizedState=Os,a);if(!(1&t.mode))return Bs(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Bs(e,t,s,r=us(a=Error(i(419)),r,void 0))}if(l=!!(s&e.childLanes),bs||l){if(null!==(r=Al)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|s)?0:o)&&o!==a.retryLane&&(a.retryLane=o,Oi(e,o),nc(r,e,o,-1))}return mc(),Bs(e,t,s,r=us(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=zc.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=co(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Go[Zo++]=Xo,Go[Zo++]=Jo,Go[Zo++]=Yo,Xo=e.id,Jo=e.overflow,Yo=t),t=Fs(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,a,n);if(s){s=o.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:o.children};return 1&l||t.child===a?(o=Mc(a,c)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null),null!==r?s=Mc(r,s):(s=Oc(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Rs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Os,o}return e=(s=e.child).sibling,o=Mc(s,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Fs(e,t){return(t=Rc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,n,r){return null!==r&&mi(r),xi(t,e.child,null,n),(e=Fs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ls(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ai(e.return,t,n)}function Vs(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Ks(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ws(e,t,r.children,n),2&(r=ea.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ls(e,n,t);else if(19===e.tag)Ls(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(zo(ea,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Vs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Vs(t,!0,n,null,i);break;case"together":Vs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Hs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $s(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Rl|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Mc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Mc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Us(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ws(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function qs(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ws(t),null;case 1:case 17:return Mo(t.type)&&No(),Ws(t),null;case 3:return r=t.stateNode,Xi(),ko(Do),ko(Ao),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(pi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(ac(ai),ai=null))),Is(e,t),Ws(t),null;case 5:Qi(t);var o=Zi(Gi.current);if(n=t.type,null!==e&&null!=t.stateNode)Ms(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Ws(t),null}if(e=Zi(Wi.current),pi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[ho]=t,r[fo]=a,e=!!(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(o=0;o<Or.length;o++)Br(Or[o],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":Y(r,a),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Br("invalid",r);break;case"textarea":oe(r,a),Br("invalid",r)}for(var l in ye(n,a),o=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"==typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),o=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Br("scroll",r)}switch(n){case"input":W(r),Q(r,a,!0);break;case"textarea":W(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Qr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ho]=t,e[fo]=r,Ts(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Br("cancel",e),Br("close",e),o=r;break;case"iframe":case"object":case"embed":Br("load",e),o=r;break;case"video":case"audio":for(o=0;o<Or.length;o++)Br(Or[o],e);o=r;break;case"source":Br("error",e),o=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),o=r;break;case"details":Br("toggle",e),o=r;break;case"input":Y(e,r),o=Z(e,r),Br("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=j({},r,{value:void 0}),Br("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Br("invalid",e)}for(a in ye(n,o),c=o)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?ge(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"==typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"==typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Br("scroll",e):null!=u&&b(e,a,u,l))}switch(n){case"input":W(e),Q(e,r,!1);break;case"textarea":W(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+$(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Qr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ws(t),null;case 6:if(e&&null!=t.stateNode)Ns(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=Zi(Gi.current),Zi(Wi.current),pi(t)){if(r=t.stateNode,n=t.memoizedProps,r[ho]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Jr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ho]=t,t.stateNode=r}return Ws(t),null;case 13:if(ko(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))hi(),fi(),t.flags|=98560,a=!1;else if(a=pi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[ho]=t}else fi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ws(t),a=!1}else null!==ai&&(ac(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ea.current?0===Nl&&(Nl=3):mc())),null!==t.updateQueue&&(t.flags|=4),Ws(t),null);case 4:return Xi(),Is(e,t),null===e&&Kr(t.stateNode.containerInfo),Ws(t),null;case 10:return Pi(t.type._context),Ws(t),null;case 19:if(ko(ea),null===(a=t.memoizedState))return Ws(t),null;if(r=!!(128&t.flags),null===(l=a.rendering))if(r)Us(a,!1);else{if(0!==Nl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Us(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return zo(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Xe()>Kl&&(t.flags|=128,r=!0,Us(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Us(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ii)return Ws(t),null}else 2*Xe()-a.renderingStartTime>Kl&&1073741824!==n&&(t.flags|=128,r=!0,Us(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,n=ea.current,zo(ea,r?1&n|2:1&n),t):(Ws(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Il)&&(Ws(t),6&t.subtreeFlags&&(t.flags|=8192)):Ws(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Gs(e,t){switch(ni(t),t.tag){case 1:return Mo(t.type)&&No(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xi(),ko(Do),ko(Ao),ra(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Qi(t),null;case 13:if(ko(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));fi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ko(ea),null;case 4:return Xi(),null;case 10:return Pi(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Ts=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Is=function(){},Ms=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Zi(Wi.current);var i,a=null;switch(n){case"input":o=Z(e,o),r=Z(e,r),a=[];break;case"select":o=j({},o,{value:void 0}),r=j({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Qr)}for(u in ye(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Br("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ns=function(e,t,n,r){n!==r&&(t.flags|=4)};var Zs=!1,Ys=!1,Xs="function"==typeof WeakSet?WeakSet:Set,Js=null;function Qs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Cc(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){Cc(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ho],delete t[fo],delete t[go],delete t[vo],delete t[yo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Qr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function pl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Ys||Qs(n,t);case 6:var r=ul,o=dl;ul=null,pl(e,t,n),dl=o,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Kt(e)):lo(ul,n.stateNode));break;case 4:r=ul,o=dl,ul=n.stateNode.containerInfo,dl=!0,pl(e,t,n),ul=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Ys&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&el(n,t,a),o=o.next}while(o!==r)}pl(e,t,n);break;case 1:if(!Ys&&(Qs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Cc(n,t,e)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Ys=(r=Ys)||null!==n.memoizedState,pl(e,t,n),Ys=r):pl(e,t,n);break;default:pl(e,t,n)}}function fl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xs),t.forEach((function(t){var r=Pc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(i(160));hl(a,s,o),ul=null,dl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(e){Cc(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(t){Cc(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Cc(e,e.return,t)}}break;case 1:ml(t,e),vl(e),512&r&&null!==n&&Qs(n,n.return);break;case 5:if(ml(t,e),vl(e),512&r&&null!==n&&Qs(n,n.return),32&e.flags){var o=e.stateNode;try{pe(o,"")}catch(t){Cc(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&X(o,a),be(l,s);var u=be(l,a);for(s=0;s<c.length;s+=2){var d=c[s],p=c[s+1];"style"===d?ge(o,p):"dangerouslySetInnerHTML"===d?de(o,p):"children"===d?pe(o,p):b(o,d,p,u)}switch(l){case"input":J(o,a);break;case"textarea":ie(o,a);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var f=a.value;null!=f?ne(o,!!a.multiple,f,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[fo]=a}catch(t){Cc(e,e.return,t)}}break;case 6:if(ml(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Cc(e,e.return,t)}}break;case 3:if(ml(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Kt(t.containerInfo)}catch(t){Cc(e,e.return,t)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Vl=Xe())),4&r&&fl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ys=(u=Ys)||d,ml(t,e),Ys=u):ml(t,e),vl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Js=e,d=e.child;null!==d;){for(p=Js=d;null!==Js;){switch(f=(h=Js).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:Qs(h,h.return);var m=h.stateNode;if("function"==typeof m.componentWillUnmount){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Cc(r,n,e)}}break;case 5:Qs(h,h.return);break;case 22:if(null!==h.memoizedState){xl(p);continue}}null!==f?(f.return=h,Js=f):xl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{o=p.stateNode,u?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=p.stateNode,s=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(t){Cc(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(t){Cc(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:ml(t,e),vl(e),4&r&&fl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(pe(o,""),r.flags&=-33),cl(e,sl(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(i(161))}}catch(t){Cc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Js=e,bl(e,t,n)}function bl(e,t,n){for(var r=!!(1&e.mode);null!==Js;){var o=Js,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Zs;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ys;s=Zs;var c=Ys;if(Zs=a,(Ys=l)&&!c)for(Js=o;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?Sl(o):null!==l?(l.return=a,Js=l):Sl(o);for(;null!==i;)Js=i,bl(i,t,n),i=i.sibling;Js=o,Zs=s,Ys=c}wl(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Js=i):wl(e)}}function wl(e){for(;null!==Js;){var t=Js;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ys||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ys)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&$i(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}$i(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Kt(p)}}}break;default:throw Error(i(163))}Ys||512&t.flags&&ol(t)}catch(e){Cc(t,t.return,e)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function xl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function Sl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Cc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Cc(t,o,e)}}var i=t.return;try{ol(t)}catch(e){Cc(t,i,e)}break;case 5:var a=t.return;try{ol(t)}catch(e){Cc(t,a,e)}}}catch(e){Cc(t,t.return,e)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var _l,Cl=Math.ceil,El=w.ReactCurrentDispatcher,kl=w.ReactCurrentOwner,zl=w.ReactCurrentBatchConfig,Pl=0,Al=null,Dl=null,Tl=0,Il=0,Ml=Eo(0),Nl=0,Ol=null,Rl=0,jl=0,Fl=0,Bl=null,Ll=null,Vl=0,Kl=1/0,Hl=null,$l=!1,Ul=null,Wl=null,ql=!1,Gl=null,Zl=0,Yl=0,Xl=null,Jl=-1,Ql=0;function ec(){return 6&Pl?Xe():-1!==Jl?Jl:Jl=Xe()}function tc(e){return 1&e.mode?2&Pl&&0!==Tl?Tl&-Tl:null!==gi.transition?(0===Ql&&(Ql=mt()),Ql):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Yt(e.type):1}function nc(e,t,n,r){if(50<Yl)throw Yl=0,Xl=null,Error(i(185));vt(e,n,r),2&Pl&&e===Al||(e===Al&&(!(2&Pl)&&(jl|=n),4===Nl&&sc(e,Tl)),rc(e,r),1===n&&0===Pl&&!(1&t.mode)&&(Kl=Xe()+500,Lo&&Ho()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?s&n&&!(s&r)||(o[a]=ht(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=pt(e,e===Al?Tl:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Lo=!0,Ko(e)}(lc.bind(null,e)):Ko(lc.bind(null,e)),ao((function(){!(6&Pl)&&Ho()})),n=null;else{switch(wt(r)){case 1:n=Qe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ac(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Jl=-1,Ql=0,6&Pl)throw Error(i(327));var n=e.callbackNode;if(Sc()&&e.callbackNode!==n)return null;var r=pt(e,e===Al?Tl:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=gc(e,r);else{t=r;var o=Pl;Pl|=2;var a=fc();for(Al===e&&Tl===t||(Hl=null,Kl=Xe()+500,pc(e,t));;)try{yc();break}catch(t){hc(e,t)}zi(),El.current=a,Pl=o,null!==Dl?t=0:(Al=null,Tl=0,t=Nl)}if(0!==t){if(2===t&&(0!==(o=ft(e))&&(r=o,t=ic(e,o))),1===t)throw n=Ol,pc(e,0),sc(e,r),rc(e,Xe()),n;if(6===t)sc(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=gc(e,r),2===t&&(a=ft(e),0!==a&&(r=a,t=ic(e,a))),1!==t)))throw n=Ol,pc(e,0),sc(e,r),rc(e,Xe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:xc(e,Ll,Hl);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=Vl+500-Xe())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(xc.bind(null,e,Ll,Hl),t);break}xc(e,Ll,Hl);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cl(r/1960))-r)){e.timeoutHandle=ro(xc.bind(null,e,Ll,Hl),r);break}xc(e,Ll,Hl);break;default:throw Error(i(329))}}}return rc(e,Xe()),e.callbackNode===n?oc.bind(null,e):null}function ic(e,t){var n=Bl;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Ll,Ll=n,null!==t&&ac(t)),e}function ac(e){null===Ll?Ll=e:Ll.push.apply(Ll,e)}function sc(e,t){for(t&=~Fl,t&=~jl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(6&Pl)throw Error(i(327));Sc();var t=pt(e,0);if(!(1&t))return rc(e,Xe()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=ft(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=Ol,pc(e,0),sc(e,t),rc(e,Xe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,Ll,Hl),rc(e,Xe()),null}function cc(e,t){var n=Pl;Pl|=1;try{return e(t)}finally{0===(Pl=n)&&(Kl=Xe()+500,Lo&&Ho())}}function uc(e){null!==Gl&&0===Gl.tag&&!(6&Pl)&&Sc();var t=Pl;Pl|=1;var n=zl.transition,r=bt;try{if(zl.transition=null,bt=1,e)return e()}finally{bt=r,zl.transition=n,!(6&(Pl=t))&&Ho()}}function dc(){Il=Ml.current,ko(Ml)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Dl)for(n=Dl.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&No();break;case 3:Xi(),ko(Do),ko(Ao),ra();break;case 5:Qi(r);break;case 4:Xi();break;case 13:case 19:ko(ea);break;case 10:Pi(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Al=e,Dl=e=Mc(e.current,null),Tl=Il=t,Nl=0,Ol=null,Fl=jl=Rl=0,Ll=Bl=null,null!==Ii){for(t=0;t<Ii.length;t++)if(null!==(r=(n=Ii[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ii=null}return e}function hc(e,t){for(;;){var n=Dl;try{if(zi(),oa.current=Ja,ua){for(var r=sa.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ua=!1}if(aa=0,ca=la=sa=null,da=!1,pa=0,kl.current=null,null===n||null===n.return){Nl=1,Ol=t,Dl=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Tl,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,p=d.tag;if(!(1&d.mode||0!==p&&11!==p&&15!==p)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=gs(s);if(null!==f){f.flags&=-257,vs(f,s,l,0,t),1&f.mode&&ms(a,u,t),c=u;var m=(t=f).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(!(1&t)){ms(a,u,t),mc();break e}c=Error(i(426))}else if(ii&&1&l.mode){var v=gs(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),mi(cs(c,l));break e}}a=c=cs(c,l),4!==Nl&&(Nl=2),null===Bl?Bl=[a]:Bl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ki(a,hs(0,c,t));break e;case 1:l=c;var y=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Wl&&Wl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Ki(a,fs(a,l,t));break e}}a=a.return}while(null!==a)}wc(n)}catch(e){t=e,Dl===n&&null!==n&&(Dl=n=n.return);continue}break}}function fc(){var e=El.current;return El.current=Ja,null===e?Ja:e}function mc(){0!==Nl&&3!==Nl&&2!==Nl||(Nl=4),null===Al||!(268435455&Rl)&&!(268435455&jl)||sc(Al,Tl)}function gc(e,t){var n=Pl;Pl|=2;var r=fc();for(Al===e&&Tl===t||(Hl=null,pc(e,t));;)try{vc();break}catch(t){hc(e,t)}if(zi(),Pl=n,El.current=r,null!==Dl)throw Error(i(261));return Al=null,Tl=0,Nl}function vc(){for(;null!==Dl;)bc(Dl)}function yc(){for(;null!==Dl&&!Ze();)bc(Dl)}function bc(e){var t=_l(e.alternate,e,Il);e.memoizedProps=e.pendingProps,null===t?wc(e):Dl=t,kl.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Dl=n);if(null===e)return Nl=6,void(Dl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=qs(n,t,Il)))return void(Dl=n);if(null!==(t=t.sibling))return void(Dl=t);Dl=t=e}while(null!==t);0===Nl&&(Nl=5)}function xc(e,t,n){var r=bt,o=zl.transition;try{zl.transition=null,bt=1,function(e,t,n,r){do{Sc()}while(null!==Gl);if(6&Pl)throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Al&&(Dl=Al=null,Tl=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||ql||(ql=!0,Ac(tt,(function(){return Sc(),null}))),a=!!(15990&n.flags),!!(15990&n.subtreeFlags)||a){a=zl.transition,zl.transition=null;var s=bt;bt=1;var l=Pl;Pl|=4,kl.current=null,function(e,t){if(eo=$t,hr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,p=e,h=null;t:for(;;){for(var f;p!==n||0!==o&&3!==p.nodeType||(l=s+o),p!==a||0!==r&&3!==p.nodeType||(c=s+r),3===p.nodeType&&(s+=p.nodeValue.length),null!==(f=p.firstChild);)h=p,p=f;for(;;){if(p===e)break t;if(h===n&&++u===o&&(l=s),h===a&&++d===r&&(c=s),null!==(f=p.nextSibling))break;h=(p=h).parentNode}p=f}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},$t=!1,Js=t;null!==Js;)if(e=(t=Js).child,1028&t.subtreeFlags&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(e){Cc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=tl,tl=!1}(e,n),gl(n,e),fr(to),$t=!!eo,to=eo=null,e.current=n,yl(n,e,o),Ye(),Pl=l,bt=s,zl.transition=a}else e.current=n;if(ql&&(ql=!1,Gl=e,Zl=o),a=e.pendingLanes,0===a&&(Wl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),rc(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if($l)throw $l=!1,e=Ul,Ul=null,e;!!(1&Zl)&&0!==e.tag&&Sc(),a=e.pendingLanes,1&a?e===Xl?Yl++:(Yl=0,Xl=e):Yl=0,Ho()}(e,t,n,r)}finally{zl.transition=o,bt=r}return null}function Sc(){if(null!==Gl){var e=wt(Zl),t=zl.transition,n=bt;try{if(zl.transition=null,bt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Zl=0,6&Pl)throw Error(i(331));var o=Pl;for(Pl|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(16&Js.flags){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var p=d.child;if(null!==p)p.return=d,Js=p;else for(;null!==Js;){var h=(d=Js).sibling,f=d.return;if(il(d),d===u){Js=null;break}if(null!==h){h.return=f,Js=h;break}Js=f}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Js=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(2048&(a=Js).flags)switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Js=y;break e}Js=a.return}}var b=e.current;for(Js=b;null!==Js;){var w=(s=Js).child;if(2064&s.subtreeFlags&&null!==w)w.return=s,Js=w;else e:for(s=b;null!==Js;){if(2048&(l=Js).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Cc(l,l.return,e)}if(l===s){Js=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Js=x;break e}Js=l.return}}if(Pl=o,Ho(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,zl.transition=t}}return!1}function _c(e,t,n){e=Li(e,t=hs(0,t=cs(n,t),1),1),t=ec(),null!==e&&(vt(e,1,t),rc(e,t))}function Cc(e,t,n){if(3===e.tag)_c(e,e,n);else for(;null!==t;){if(3===t.tag){_c(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Wl||!Wl.has(r))){t=Li(t,e=fs(t,e=cs(n,e),1),1),e=ec(),null!==t&&(vt(t,1,e),rc(t,e));break}}t=t.return}}function Ec(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Al===e&&(Tl&n)===n&&(4===Nl||3===Nl&&(130023424&Tl)===Tl&&500>Xe()-Vl?pc(e,0):Fl|=n),rc(e,t)}function kc(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var n=ec();null!==(e=Oi(e,t))&&(vt(e,t,n),rc(e,n))}function zc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),kc(e,n)}function Pc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),kc(e,n)}function Ac(e,t){return qe(e,t)}function Dc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tc(e,t,n,r){return new Dc(e,t,n,r)}function Ic(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mc(e,t){var n=e.alternate;return null===n?((n=Tc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nc(e,t,n,r,o,a){var s=2;if(r=e,"function"==typeof e)Ic(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case _:return Oc(n.children,o,a,t);case C:s=8,o|=8;break;case E:return(e=Tc(12,n,t,2|o)).elementType=E,e.lanes=a,e;case A:return(e=Tc(13,n,t,o)).elementType=A,e.lanes=a,e;case D:return(e=Tc(19,n,t,o)).elementType=D,e.lanes=a,e;case M:return Rc(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case z:s=9;break e;case P:s=11;break e;case T:s=14;break e;case I:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Tc(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Oc(e,t,n,r){return(e=Tc(7,e,r,t)).lanes=n,e}function Rc(e,t,n,r){return(e=Tc(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function jc(e,t,n){return(e=Tc(6,e,null,t)).lanes=n,e}function Fc(e,t,n){return(t=Tc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Lc(e,t,n,r,o,i,a,s,l){return e=new Bc(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Tc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ji(i),e}function Vc(e){if(!e)return Po;e:{if(Ke(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Mo(n))return Ro(e,n,t)}return t}function Kc(e,t,n,r,o,i,a,s,l){return(e=Lc(n,r,!0,e,0,i,0,s,l)).context=Vc(null),n=e.current,(i=Bi(r=ec(),o=tc(n))).callback=null!=t?t:null,Li(n,i,o),e.current.lanes=o,vt(e,o,r),rc(e,r),e}function Hc(e,t,n,r){var o=t.current,i=ec(),a=tc(o);return n=Vc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Bi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Li(o,t,a))&&(nc(e,o,a,i),Vi(e,o,a)),a}function $c(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Uc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wc(e,t){Uc(e,t),(e=e.alternate)&&Uc(e,t)}_l=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Do.current)bs=!0;else{if(!(e.lanes&n||128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:As(t),fi();break;case 5:Ji(t);break;case 1:Mo(t.type)&&jo(t);break;case 4:Yi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;zo(_i,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(zo(ea,1&ea.current),t.flags|=128,null):n&t.child.childLanes?js(e,t,n):(zo(ea,1&ea.current),null!==(e=$s(e,t,n))?e.sibling:null);zo(ea,1&ea.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Ks(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),zo(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Cs(e,t,n)}return $s(e,t,n)}(e,t,n);bs=!!(131072&e.flags)}else bs=!1,ii&&1048576&t.flags&&ei(t,qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hs(e,t),e=t.pendingProps;var o=Io(t,Ao.current);Di(t,n),o=ga(null,t,r,e,o,n);var a=va();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mo(r)?(a=!0,jo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ji(t),o.updater=os,t.stateNode=o,o._reactInternals=t,ls(t,r,e,n),t=Ps(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),ws(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hs(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Ic(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===T)return 14}return 2}(r),e=ns(r,e),o){case 0:t=ks(null,t,r,e,n);break e;case 1:t=zs(null,t,r,e,n);break e;case 11:t=xs(null,t,r,e,n);break e;case 14:t=Ss(null,t,r,ns(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,ks(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 1:return r=t.type,o=t.pendingProps,zs(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 3:e:{if(As(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Fi(e,t),Hi(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ds(e,t,r,n,o=cs(Error(i(423)),t));break e}if(r!==o){t=Ds(e,t,r,n,o=cs(Error(i(424)),t));break e}for(oi=co(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Si(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fi(),r===o){t=$s(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return Ji(t),null===e&&ui(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==a&&no(r,a)&&(t.flags|=32),Es(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&ui(t),null;case 13:return js(e,t,n);case 4:return Yi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xi(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xs(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,zo(_i,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===o.children&&!Do.current){t=$s(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Bi(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),Ai(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Ai(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Di(t,n),r=r(o=Ti(o)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return o=ns(r=t.type,t.pendingProps),Ss(e,t,r,o=ns(r.type,o),n);case 15:return _s(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ns(r,o),Hs(e,t),t.tag=1,Mo(r)?(e=!0,jo(t)):e=!1,Di(t,n),as(t,r,o),ls(t,r,o,n),Ps(null,t,r,!0,e,n);case 19:return Ks(e,t,n);case 22:return Cs(e,t,n)}throw Error(i(156,t.tag))};var qc="function"==typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Zc(e){this._internalRoot=e}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function Qc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=$c(a);s.call(e)}}Hc(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=$c(a);i.call(e)}}var a=Kc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=a,e[mo]=a.current,Kr(8===e.nodeType?e.parentNode:e),uc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=$c(l);s.call(e)}}var l=Lc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[mo]=l.current,Kr(8===e.nodeType?e.parentNode:e),uc((function(){Hc(t,l,n,r)})),l}(n,t,e,o,r);return $c(a)}Zc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Hc(e,t,null,null)},Zc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Hc(null,e,null,null)})),t[mo]=null}},Zc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&jt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),rc(t,Xe()),!(6&Pl)&&(Kl=Xe()+500,Ho()))}break;case 13:uc((function(){var t=Oi(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Wc(e,1)}},St=function(e){if(13===e.tag){var t=Oi(e,134217728);if(null!==t)nc(t,e,134217728,ec());Wc(e,134217728)}},_t=function(e){if(13===e.tag){var t=tc(e),n=Oi(e,t);if(null!==n)nc(n,e,t,ec());Wc(e,t)}},Ct=function(){return bt},Et=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=So(r);if(!o)throw Error(i(90));q(r),J(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Pe=cc,Ae=uc;var eu={usingClientEntryPoint:!1,Events:[wo,xo,So,ke,ze,cc]},tu={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"},ru={isDisabled:!0};if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),it=ru}catch(ue){}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yc(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yc(e))throw Error(i(299));var n=!1,r="",o=qc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Lc(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,Kr(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=Ue(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Xc(t))throw Error(i(200));return Qc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yc(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",s=qc;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Kc(t,null,e,1,null!=n?n:null,o,0,a,s),e[mo]=t.current,Kr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Zc(t)},t.render=function(e,t,n){if(!Xc(t))throw Error(i(200));return Qc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(i(40));return!!e._reactRootContainer&&(uc((function(){Qc(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xc(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Qc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},5338:(e,t,n)=>{"use strict";var r=n(40961);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},40961:(e,t,n)=>{"use strict";!function e(){if("function"==typeof{isDisabled:!0}.checkDCE)try{({isDisabled:!0}).checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(22551)},98731:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,n))c<o&&0>i(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,p=null,h=3,f=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(g=!1,w(e),!m)if(null!==r(c))m=!0,M(S);else{var t=r(u);null!==t&&N(x,t.startTime-e)}}function S(e,n){m=!1,g&&(g=!1,y(k),k=-1),f=!0;var i=h;try{for(w(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!A());){var a=p.callback;if("function"==typeof a){p.callback=null,h=p.priorityLevel;var s=a(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?p.callback=s:p===r(c)&&o(c),w(n)}else o(c);p=r(c)}if(null!==p)var l=!0;else{var d=r(u);null!==d&&N(x,d.startTime-n),l=!1}return l}finally{p=null,h=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,C=!1,E=null,k=-1,z=5,P=-1;function A(){return!(t.unstable_now()-P<z)}function D(){if(null!==E){var e=t.unstable_now();P=e;var n=!0;try{n=E(!0,e)}finally{n?_():(C=!1,E=null)}}else C=!1}if("function"==typeof b)_=function(){b(D)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,I=T.port2;T.port1.onmessage=D,_=function(){I.postMessage(null)}}else _=function(){v(D,0)};function M(e){E=e,C||(C=!0,_())}function N(e,n){k=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||f||(m=!0,M(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(g?(y(k),k=-1):g=!0,N(x,i-a))):(e.sortIndex=s,n(c,e),m||f||(m=!0,M(S))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},20194:(e,t,n)=>{"use strict";e.exports=n(98731)},86027:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return u.default}}),t.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(96540)),o=p(n(92443)),i=p(n(40961)),a=p(n(20053)),s=n(71089),l=n(81726),c=n(77056),u=p(n(6888)),d=p(n(18696));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class g extends r.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,d.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),m(this,"onDragStart",((e,t)=>{(0,d.default)("Draggable: onDragStart: %j",t);if(!1===this.props.onStart(e,(0,l.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})})),m(this,"onDrag",((e,t)=>{if(!this.state.dragging)return!1;(0,d.default)("Draggable: onDrag: %j",t);const n=(0,l.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[o,i]=(0,l.getBoundPosition)(this,r.x,r.y);r.x=o,r.y=i,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)})),m(this,"onDragStop",((e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,l.createDraggableData)(this,t)))return!1;(0,d.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)})),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var e,t;return null!==(e=null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current)&&void 0!==e?e:i.default.findDOMNode(this)}render(){const{axis:e,bounds:t,children:n,defaultPosition:o,defaultClassName:i,defaultClassNameDragging:c,defaultClassNameDragged:d,position:p,positionOffset:h,scale:m,...g}=this.props;let v={},y=null;const b=!Boolean(p)||this.state.dragging,w=p||o,x={x:(0,l.canDragX)(this)&&b?this.state.x:w.x,y:(0,l.canDragY)(this)&&b?this.state.y:w.y};this.state.isElementSVG?y=(0,s.createSVGTransform)(x,h):v=(0,s.createCSSTransform)(x,h);const S=(0,a.default)(n.props.className||"",i,{[c]:this.state.dragging,[d]:this.state.dragged});return r.createElement(u.default,f({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),r.cloneElement(r.Children.only(n),{className:S,style:{...n.props.style,...v},transform:y}))}}t.default=g,m(g,"displayName","Draggable"),m(g,"propTypes",{...u.default.propTypes,axis:o.default.oneOf(["both","x","y","none"]),bounds:o.default.oneOfType([o.default.shape({left:o.default.number,right:o.default.number,top:o.default.number,bottom:o.default.number}),o.default.string,o.default.oneOf([!1])]),defaultClassName:o.default.string,defaultClassNameDragging:o.default.string,defaultClassNameDragged:o.default.string,defaultPosition:o.default.shape({x:o.default.number,y:o.default.number}),positionOffset:o.default.shape({x:o.default.oneOfType([o.default.number,o.default.string]),y:o.default.oneOfType([o.default.number,o.default.string])}),position:o.default.shape({x:o.default.number,y:o.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),m(g,"defaultProps",{...u.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})},6888:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(96540)),o=u(n(92443)),i=u(n(40961)),a=n(71089),s=n(81726),l=n(77056),c=u(n(18696));function u(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const h={start:"touchstart",move:"touchmove",stop:"touchend"},f={start:"mousedown",move:"mousemove",stop:"mouseup"};let m=f;class g extends r.Component{constructor(){super(...arguments),p(this,"dragging",!1),p(this,"lastX",NaN),p(this,"lastY",NaN),p(this,"touchIdentifier",null),p(this,"mounted",!1),p(this,"handleDragStart",(e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,a.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,a.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"===e.type&&e.preventDefault();const r=(0,a.getTouchIdentifier)(e);this.touchIdentifier=r;const o=(0,s.getControlPosition)(e,r,this);if(null==o)return;const{x:i,y:l}=o,u=(0,s.createCoreData)(this,i,l);(0,c.default)("DraggableCore: handleDragStart: %j",u),(0,c.default)("calling",this.props.onStart);!1!==this.props.onStart(e,u)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,a.addUserSelectStyles)(n),this.dragging=!0,this.lastX=i,this.lastY=l,(0,a.addEvent)(n,m.move,this.handleDrag),(0,a.addEvent)(n,m.stop,this.handleDragStop))})),p(this,"handleDrag",(e=>{const t=(0,s.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,s.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const o=(0,s.createCoreData)(this,n,r);(0,c.default)("DraggableCore: handleDrag: %j",o);if(!1!==this.props.onDrag(e,o)&&!1!==this.mounted)this.lastX=n,this.lastY=r;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}})),p(this,"handleDragStop",(e=>{if(!this.dragging)return;const t=(0,s.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=(0,s.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}const o=(0,s.createCoreData)(this,n,r);if(!1===this.props.onStop(e,o)||!1===this.mounted)return!1;const i=this.findDOMNode();i&&this.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(i.ownerDocument),(0,c.default)("DraggableCore: handleDragStop: %j",o),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,i&&((0,c.default)("DraggableCore: Removing handlers"),(0,a.removeEvent)(i.ownerDocument,m.move,this.handleDrag),(0,a.removeEvent)(i.ownerDocument,m.stop,this.handleDragStop))})),p(this,"onMouseDown",(e=>(m=f,this.handleDragStart(e)))),p(this,"onMouseUp",(e=>(m=f,this.handleDragStop(e)))),p(this,"onTouchStart",(e=>(m=h,this.handleDragStart(e)))),p(this,"onTouchEnd",(e=>(m=h,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,a.addEvent)(e,h.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,a.removeEvent)(t,f.move,this.handleDrag),(0,a.removeEvent)(t,h.move,this.handleDrag),(0,a.removeEvent)(t,f.stop,this.handleDragStop),(0,a.removeEvent)(t,h.stop,this.handleDragStop),(0,a.removeEvent)(e,h.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current:i.default.findDOMNode(this)}render(){return r.cloneElement(r.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}t.default=g,p(g,"displayName","DraggableCore"),p(g,"propTypes",{allowAnyClick:o.default.bool,children:o.default.node.isRequired,disabled:o.default.bool,enableUserSelectHack:o.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:o.default.arrayOf(o.default.number),handle:o.default.string,cancel:o.default.string,nodeRef:o.default.object,onStart:o.default.func,onDrag:o.default.func,onStop:o.default.func,onMouseDown:o.default.func,scale:o.default.number,className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),p(g,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},55794:(e,t,n)=>{"use strict";const{default:r,DraggableCore:o}=n(86027);e.exports=r,e.exports.default=r,e.exports.DraggableCore=o},71089:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addClassName=c,t.addEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},t.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&c(e.body,"react-draggable-transparent-selection")},t.createCSSTransform=function(e,t){const n=l(e,t,"px");return{[(0,o.browserPrefixToKey)("transform",o.default)]:n}},t.createSVGTransform=function(e,t){return l(e,t,"")},t.getTouch=function(e,t){return e.targetTouches&&(0,r.findInArray)(e.targetTouches,(e=>t===e.identifier))||e.changedTouches&&(0,r.findInArray)(e.changedTouches,(e=>t===e.identifier))},t.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},t.getTranslation=l,t.innerHeight=function(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,r.int)(n.paddingTop),t-=(0,r.int)(n.paddingBottom),t},t.innerWidth=function(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,r.int)(n.paddingLeft),t-=(0,r.int)(n.paddingRight),t},t.matchesSelector=s,t.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(s(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},t.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-r.left)/n,i=(e.clientY+t.scrollTop-r.top)/n;return{x:o,y:i}},t.outerHeight=function(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,r.int)(n.borderTopWidth),t+=(0,r.int)(n.borderBottomWidth),t},t.outerWidth=function(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,r.int)(n.borderLeftWidth),t+=(0,r.int)(n.borderRightWidth),t},t.removeClassName=u,t.removeEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},t.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&u(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var r=n(77056),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(33514));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}let a="";function s(e,t){return a||(a=(0,r.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return(0,r.isFunction)(e[t])}))),!!(0,r.isFunction)(e[a])&&e[a](t)}function l(e,t,n){let{x:r,y:o}=e,i="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){const e="".concat("string"==typeof t.x?t.x:t.x+n),r="".concat("string"==typeof t.y?t.y:t.y+n);i="translate(".concat(e,", ").concat(r,")")+i}return i}function c(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function u(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}},33514:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browserPrefixToKey=o,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0,t.getPrefix=r;const n=["Moz","Webkit","O","ms"];function r(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const r=null===(e=window.document)||void 0===e||null===(e=e.documentElement)||void 0===e?void 0:e.style;if(!r)return"";if(t in r)return"";for(let e=0;e<n.length;e++)if(o(t,n[e])in r)return n[e];return""}function o(e,t){return t?"".concat(t).concat(function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}t.default=r()},18696:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){0}},81726:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.createCoreData=function(e,t,n){const o=!(0,r.isNum)(e.lastX),a=i(e);return o?{node:a,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:a,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}},t.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},t.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:a}=e.props;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);const s=i(e);if("string"==typeof a){const{ownerDocument:e}=s,t=e.defaultView;let n;if(n="parent"===a?s.parentNode:e.querySelector(a),!(n instanceof t.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const i=n,l=t.getComputedStyle(s),c=t.getComputedStyle(i);a={left:-s.offsetLeft+(0,r.int)(c.paddingLeft)+(0,r.int)(l.marginLeft),top:-s.offsetTop+(0,r.int)(c.paddingTop)+(0,r.int)(l.marginTop),right:(0,o.innerWidth)(i)-(0,o.outerWidth)(s)-s.offsetLeft+(0,r.int)(c.paddingRight)-(0,r.int)(l.marginRight),bottom:(0,o.innerHeight)(i)-(0,o.outerHeight)(s)-s.offsetTop+(0,r.int)(c.paddingBottom)-(0,r.int)(l.marginBottom)}}(0,r.isNum)(a.right)&&(t=Math.min(t,a.right));(0,r.isNum)(a.bottom)&&(n=Math.min(n,a.bottom));(0,r.isNum)(a.left)&&(t=Math.max(t,a.left));(0,r.isNum)(a.top)&&(n=Math.max(n,a.top));return[t,n]},t.getControlPosition=function(e,t,n){const r="number"==typeof t?(0,o.getTouch)(e,t):null;if("number"==typeof t&&!r)return null;const a=i(n),s=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,o.offsetXYFromParent)(r||e,s,n.props.scale)},t.snapToGrid=function(e,t,n){const r=Math.round(t/e[0])*e[0],o=Math.round(n/e[1])*e[1];return[r,o]};var r=n(77056),o=n(71089);function i(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}},77056:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},t.findInArray=function(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},t.int=function(e){return parseInt(e,10)},t.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"==typeof e&&!isNaN(e)}},52551:(e,t,n)=>{"use strict";var r=n(74672);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},92443:(e,t,n)=>{e.exports=n(52551)()},74672:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},22799:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case o:return t}}}function S(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||x(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===h||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},44363:(e,t,n)=>{"use strict";e.exports=n(22799)},45849:(e,t,n)=>{"use strict";n.d(t,{S:()=>h,W:()=>f});var r=n(96540),o=n(40961),i=(0,r.createContext)(),a=i.Provider,s=i.Consumer,l=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},p=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},h=function(e){function t(){var e,n,o;l(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=o=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),o.root=r.createRef(),o.host=r.createRef(),o.state={root:o.root.current,host:o.host.current},p(o,n)}return d(t,e),c(t,[{key:"componentDidMount",value:function(){this.setState({root:this.root.current,host:this.host.current})}},{key:"render",value:function(){return r.createElement(a,{value:this.state},r.createElement("div",{ref:this.root,style:{opacity:.9999999}},this.props.children),r.createElement("div",{ref:this.host,style:{opacity:.9999999}}))}}]),t}(r.Component),f=function(e){return r.createElement(s,null,(function(t){var n=t.host,o=t.root;return n&&o&&r.createElement(m,u({},e,{host:n,root:o}))}))},m=function(e){function t(){var e,n,r;l(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={container:null},p(r,n)}return d(t,e),c(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.host,n=e.index,r=e.onMount,o=e.root,i=t.ownerDocument.createElement("div"),a="number"==typeof n&&t.children[n];a?t.insertBefore(i,a):t.appendChild(i),this.setState({container:i},(function(){o&&r&&r(o)}))}},{key:"componentWillUnmount",value:function(){var e=this.state.container,t=this.props,n=t.root,r=t.host,o=t.onUnmount;n&&o&&o(n),r&&e&&r.removeChild(e)}},{key:"render",value:function(){var e=this.state.container;return e&&(0,o.createPortal)(this.props.children,e)}}]),t}(r.Component)},7737:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>H,vA:()=>i.unstable_batchedUpdates,Ng:()=>K,bN:()=>R,wA:()=>q,d4:()=>b});var r=n(19888),o=n(69242),i=n(40961);let a=function(e){e()};const s=()=>a;var l=n(96540);const c=Symbol.for("react-redux-context"),u="undefined"!=typeof globalThis?globalThis:{};function d(){var e;if(!l.createContext)return{};const t=null!=(e=u[c])?e:u[c]=new Map;let n=t.get(l.createContext);return n||(n=l.createContext(null),t.set(l.createContext,n)),n}const p=d();function h(e=p){return function(){return(0,l.useContext)(e)}}const f=h(),m=()=>{throw new Error("uSES not initialized!")};let g=m;const v=(e,t)=>e===t;function y(e=p){const t=e===p?f:h(e);return function(e,n={}){const{equalityFn:r=v,stabilityCheck:o,noopCheck:i}="function"==typeof n?{equalityFn:n}:n;const{store:a,subscription:s,getServerState:c,stabilityCheck:u,noopCheck:d}=t(),p=((0,l.useRef)(!0),(0,l.useCallback)({[e.name]:t=>e(t)}[e.name],[e,u,o])),h=g(s.addNestedSub,a.getState,c||a.getState,p,r);return(0,l.useDebugValue)(h),h}}const b=y();function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w.apply(this,arguments)}function x(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var S=n(4146),_=n.n(S),C=n(54737);const E=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function k(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,l,c,u,d,p=!1;function h(p,h){const f=!i(h,l),m=!o(p,s,h,l);return s=p,l=h,f&&m?(c=e(s,l),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):f?(e.dependsOnOwnProps&&(c=e(s,l)),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):m?function(){const t=e(s,l),r=!a(t,c);return c=t,r&&(d=n(c,u,l)),d}():d}return function(o,i){return p?h(o,i):(s=o,l=i,c=e(s,l),u=t(r,l),d=n(c,u,l),p=!0,d)}}function z(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function P(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function A(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=P(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=P(o),o=r(t,n)),o},r}}function D(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function T(e,t,n){return w({},n,e,t)}const I={notify(){},get:()=>[]};function M(e,t){let n,r=I,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function l(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){const e=s();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}function c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=I)}const u={addNestedSub:function(e){l();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,l())},tryUnsubscribe:function(){i&&(i=!1,c())},getListeners:()=>r};return u}const N=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?l.useLayoutEffect:l.useEffect;function O(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function R(e,t){if(O(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!O(e[n[r]],t[n[r]]))return!1;return!0}const j=["reactReduxForwardedRef"];let F=m;const B=[null,null];function L(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function V(e,t){return e===t}const K=function(e,t,n,{pure:r,areStatesEqual:o=V,areOwnPropsEqual:i=R,areStatePropsEqual:a=R,areMergedPropsEqual:s=R,forwardRef:c=!1,context:u=p}={}){const d=u,h=function(e){return e?"function"==typeof e?A(e):D(e,"mapStateToProps"):z((()=>({})))}(e),f=function(e){return e&&"object"==typeof e?z((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t))):e?"function"==typeof e?A(e):D(e,"mapDispatchToProps"):z((e=>({dispatch:e})))}(t),m=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){const s=e(t,n,a);return i?r(s,o)||(o=s):(i=!0,o=s),o}}}(e):D(e,"mergeProps"):()=>T}(n),g=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:g,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:h,initMapDispatchToProps:f,initMergeProps:m,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:s};function u(t){const[n,o,i]=l.useMemo((()=>{const{reactReduxForwardedRef:e}=t,n=x(t,j);return[t.context,e,n]}),[t]),a=l.useMemo((()=>n&&n.Consumer&&(0,C.isContextConsumer)(l.createElement(n.Consumer,null))?n:d),[n,d]),s=l.useContext(a),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(s)&&Boolean(s.store);const p=c?t.store:s.store,h=u?s.getServerState:p.getState,f=l.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:o}=t,i=x(t,E);return k(n(e,i),r(e,i),o(e,i),e,i)}(p.dispatch,r)),[p]),[m,v]=l.useMemo((()=>{if(!g)return B;const e=M(p,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,c,s]),y=l.useMemo((()=>c?s:w({},s,{subscription:m})),[c,s,m]),b=l.useRef(),S=l.useRef(i),_=l.useRef(),z=l.useRef(!1),P=(l.useRef(!1),l.useRef(!1)),A=l.useRef();N((()=>(P.current=!0,()=>{P.current=!1})),[]);const D=l.useMemo((()=>()=>_.current&&i===S.current?_.current:f(p.getState(),i)),[p,i]),T=l.useMemo((()=>e=>m?function(e,t,n,r,o,i,a,s,l,c,u){if(!e)return()=>{};let d=!1,p=null;const h=()=>{if(d||!s.current)return;const e=t.getState();let n,h;try{n=r(e,o.current)}catch(e){h=e,p=e}h||(p=null),n===i.current?a.current||c():(i.current=n,l.current=n,a.current=!0,u())};return n.onStateChange=h,n.trySubscribe(),h(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(g,p,m,f,S,b,z,P,_,v,e):()=>{}),[m]);var I,O,R;let V;I=L,O=[S,b,z,i,_,v],N((()=>I(...O)),R);try{V=F(T,D,h?()=>f(h(),i):D)}catch(e){throw A.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${A.current.stack}\n\n`),e}N((()=>{A.current=void 0,_.current=void 0,b.current=V}));const K=l.useMemo((()=>l.createElement(e,w({},V,{ref:o}))),[o,e,V]);return l.useMemo((()=>g?l.createElement(a.Provider,{value:y},K):K),[a,K,y])}const p=l.memo(u);if(p.WrappedComponent=e,p.displayName=u.displayName=n,c){const t=l.forwardRef((function(e,t){return l.createElement(p,w({},e,{reactReduxForwardedRef:t}))}));return t.displayName=n,t.WrappedComponent=e,_()(t,e)}return _()(p,e)}};const H=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",noopCheck:i="once"}){const a=l.useMemo((()=>{const t=M(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,noopCheck:i}}),[e,r,o,i]),s=l.useMemo((()=>e.getState()),[e]);N((()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]);const c=t||p;return l.createElement(c.Provider,{value:a},n)};function $(e=p){const t=e===p?f:h(e);return function(){const{store:e}=t();return e}}const U=$();function W(e=p){const t=e===p?U:$(e);return function(){return t().dispatch}}const q=W();var G,Z;G=o.useSyncExternalStoreWithSelector,g=G,(e=>{F=e})(r.useSyncExternalStore),Z=i.unstable_batchedUpdates,a=Z},28989:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case p:case h:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case f:case l:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return v(e)===c}},54737:(e,t,n)=>{"use strict";e.exports=n(28989)},48074:(e,t,n)=>{"use strict";n.d(t,{Hn:()=>g.H,Iq:()=>l.I,O1:()=>v.O,Sp:()=>f.S,Tl:()=>u.T,Vk:()=>p.V,Zf:()=>d.Z,ek:()=>o.e,gv:()=>m.g,kf:()=>r.k,nj:()=>h.n,pE:()=>s.pE,pk:()=>y.p,q7:()=>i.q7,sb:()=>c.s,uA:()=>o.u,um:()=>a.um,wn:()=>i.wn});n(48602),n(29279);var r=n(18486),o=(n(94825),n(96879)),i=n(72114),a=n(33939),s=n(25414),l=n(46827),c=n(49858),u=n(16154),d=n(63536),p=n(58366),h=n(44841),f=n(43635),m=(n(26591),n(99113),n(1568)),g=n(27538),v=n(79291),y=n(88173);n(32144)},21020:(e,t,n)=>{"use strict";var r=n(96540),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},15287:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,_={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,o)&&!C.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:_.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var z=/\/+/g;function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===i?"."+P(l,0):i,x(a)?(o="",null!=e&&(o=e.replace(z,"$&/")+"/"),A(a,t,o,"",(function(e){return e}))):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(z,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",x(e))for(var c=0;c<e.length;c++){var u=i+P(s=e[c],c);l+=A(s,t,o,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=A(s=s.value,t,o,u=i+P(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function D(e,t,n){if(null==e)return e;var r=[],o=0;return A(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function T(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},M={transition:null},N={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:M,ReactCurrentOwner:_};function O(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:D,forEach:function(e,t,n){D(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return D(e,(function(){t++})),t},toArray:function(e){return D(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.act=O,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=_.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)S.call(t,c)&&!C.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=O,t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.3.1"},96540:(e,t,n)=>{"use strict";e.exports=n(15287)},74848:(e,t,n)=>{"use strict";e.exports=n(21020)},7463:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,n))c<o&&0>i(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,p=null,h=3,f=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(g=!1,w(e),!m)if(null!==r(c))m=!0,M(S);else{var t=r(u);null!==t&&N(x,t.startTime-e)}}function S(e,n){m=!1,g&&(g=!1,y(k),k=-1),f=!0;var i=h;try{for(w(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!A());){var a=p.callback;if("function"==typeof a){p.callback=null,h=p.priorityLevel;var s=a(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?p.callback=s:p===r(c)&&o(c),w(n)}else o(c);p=r(c)}if(null!==p)var l=!0;else{var d=r(u);null!==d&&N(x,d.startTime-n),l=!1}return l}finally{p=null,h=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,C=!1,E=null,k=-1,z=5,P=-1;function A(){return!(t.unstable_now()-P<z)}function D(){if(null!==E){var e=t.unstable_now();P=e;var n=!0;try{n=E(!0,e)}finally{n?_():(C=!1,E=null)}}else C=!1}if("function"==typeof b)_=function(){b(D)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,I=T.port2;T.port1.onmessage=D,_=function(){I.postMessage(null)}}else _=function(){v(D,0)};function M(e){E=e,C||(C=!0,_())}function N(e,n){k=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||f||(m=!0,M(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(g?(y(k),k=-1):g=!0,N(x,i-a))):(e.sortIndex=s,n(c,e),m||f||(m=!0,M(S))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},69982:(e,t,n)=>{"use strict";n(7463)},71761:(e,t,n)=>{"use strict";n.d(t,{Fo:()=>St,rL:()=>be,A:()=>Tt,o$:()=>Rt});var r=n(19086),o=n.n(r),i=n(38221),a=n.n(i),s=n(7350),l=n.n(s),c=n(96540);function u(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function d(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function p(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return d(n.overflowY,t)||d(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function h(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}var f=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!u(e))throw new TypeError("Invalid target");for(var c,d,f=document.scrollingElement||document.documentElement,m=[],g=e;u(g)&&l(g);){if((g=null==(d=(c=g).parentElement)?c.getRootNode().host||null:d)===f){m.push(g);break}null!=g&&g===document.body&&p(g)&&!p(document.documentElement)||null!=g&&p(g,s)&&m.push(g)}for(var v=n.visualViewport?n.visualViewport.width:innerWidth,y=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,w=window.scrollY||pageYOffset,x=e.getBoundingClientRect(),S=x.height,_=x.width,C=x.top,E=x.right,k=x.bottom,z=x.left,P="start"===o||"nearest"===o?C:"end"===o?k:C+S/2,A="center"===i?z+_/2:"end"===i?E:z,D=[],T=0;T<m.length;T++){var I=m[T],M=I.getBoundingClientRect(),N=M.height,O=M.width,R=M.top,j=M.right,F=M.bottom,B=M.left;if("if-needed"===r&&C>=0&&z>=0&&k<=y&&E<=v&&C>=R&&k<=F&&z>=B&&E<=j)return D;var L=getComputedStyle(I),V=parseInt(L.borderLeftWidth,10),K=parseInt(L.borderTopWidth,10),H=parseInt(L.borderRightWidth,10),$=parseInt(L.borderBottomWidth,10),U=0,W=0,q="offsetWidth"in I?I.offsetWidth-I.clientWidth-V-H:0,G="offsetHeight"in I?I.offsetHeight-I.clientHeight-K-$:0,Z="offsetWidth"in I?0===I.offsetWidth?0:O/I.offsetWidth:0,Y="offsetHeight"in I?0===I.offsetHeight?0:N/I.offsetHeight:0;if(f===I)U="start"===o?P:"end"===o?P-y:"nearest"===o?h(w,w+y,y,K,$,w+P,w+P+S,S):P-y/2,W="start"===i?A:"center"===i?A-v/2:"end"===i?A-v:h(b,b+v,v,V,H,b+A,b+A+_,_),U=Math.max(0,U+w),W=Math.max(0,W+b);else{U="start"===o?P-R-K:"end"===o?P-F+$+G:"nearest"===o?h(R,F,N,K,$+G,P,P+S,S):P-(R+N/2)+G/2,W="start"===i?A-B-V:"center"===i?A-(B+O/2)+q/2:"end"===i?A-j+H+q:h(B,j,O,V,H+q,A,A+_,_);var X=I.scrollLeft,J=I.scrollTop;P+=J-(U=Math.max(0,Math.min(J+U/Y,I.scrollHeight-N/Y+G))),A+=X-(W=Math.max(0,Math.min(X+W/Z,I.scrollWidth-O/Z+q)))}D.push({el:I,top:U,left:W})}return D};function m(e){return e===Object(e)&&0!==Object.keys(e).length}const g=function(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(m(t)&&"function"==typeof t.behavior)return t.behavior(n?f(e,t):[]);if(n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:m(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(f(e,r),r.behavior)}};var v=n(69101),y=n(44564),b=n(91448),w=n(40961);function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var _=0;class C{constructor(){x(this,"id",void 0),this.id="".concat(_++)}}var E=new WeakMap,k=new WeakMap,z=new WeakMap,P=new WeakMap,A=new WeakMap,D=new WeakMap,T=new WeakMap,I=new WeakMap,M=new WeakMap,N=new WeakMap,O=new WeakMap,R=new WeakMap,j=new WeakMap,F=new WeakMap,B=new WeakMap,L=new WeakMap,V=new WeakMap,K=new WeakMap,H=new WeakMap,$=new WeakMap,U=new WeakMap,W=Symbol("placeholder"),q=Symbol("mark-placeholder"),G=globalThis.Text,Z=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,Y=e=>X(e)&&1===e.nodeType,X=e=>{var t=Z(e);return!!t&&e instanceof t.Node},J=e=>!!(e&&e.anchorNode&&Z(e.anchorNode)),Q=e=>X(e)&&3===e.nodeType,ee=(e,t,n)=>{for(var r,{childNodes:o}=e,i=o[t],a=t,s=!1,l=!1;(X(r=i)&&8===r.nodeType||Y(i)&&0===i.childNodes.length||Y(i)&&"false"===i.getAttribute("contenteditable"))&&(!s||!l);)a>=o.length?(s=!0,a=t-1,n="backward"):a<0?(l=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]},te=(e,t,n)=>{var[r]=ee(e,t,n);return r},ne=e=>{var t="";if(Q(e)&&e.nodeValue)return e.nodeValue;if(Y(e)){for(var n of Array.from(e.childNodes))t+=ne(n);var r=getComputedStyle(e).getPropertyValue("display");"block"!==r&&"list"!==r&&"BR"!==e.tagName||(t+="\n")}return t},re=/data-slate-fragment="(.+?)"/m,oe=(e,t,n)=>{var{target:r}=t;if(Y(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:o}=be.getWindow(e);if(o.contains(r))return be.hasDOMNode(e,r,{editable:!0});var i=n.find((e=>{var{addedNodes:t,removedNodes:n}=e;for(var o of t)if(o===r||o.contains(r))return!0;for(var i of n)if(i===r||i.contains(r))return!0}));return!(!i||i===t)&&oe(e,i,n)};var ie=parseInt(c.version.split(".")[0],10)>=17,ae="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,se="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),le="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),ce="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ue="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),de="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),pe="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),he="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),fe="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),me="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),ge="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent),ve=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),ye=!he&&!de&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,be={isComposing:e=>!!R.get(e),getWindow(e){var t=z.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey(e,t){var n=I.get(t);return n||(n=new C,I.set(t,n)),n},findPath(e,t){for(var n=[],r=t;;){var o=k.get(r);if(null==o){if(v.KE.isEditor(r))return n;break}var i=E.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: ".concat(v.h6.stringify(t)))},findDocumentOrShadowRoot(e){var t=be.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},isFocused:e=>!!O.get(e),isReadOnly:e=>!!N.get(e),blur(e){var t=be.toDOMNode(e,e),n=be.findDocumentOrShadowRoot(e);O.set(e,!1),n.activeElement===t&&t.blur()},focus(e){var t=be.toDOMNode(e,e),n=be.findDocumentOrShadowRoot(e);O.set(e,!0),n.activeElement!==t&&t.focus({preventScroll:!0})},deselect(e){var{selection:t}=e,n=be.findDocumentOrShadowRoot(e).getSelection();n&&n.rangeCount>0&&n.removeAllRanges(),t&&v.gB.deselect(e)},hasDOMNode(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:o=!1}=r,i=be.toDOMNode(e,e);try{n=Y(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!n&&!(n.closest("[data-slate-editor]")!==i||o&&!n.isContentEditable&&("boolean"!=typeof n.isContentEditable||n.closest('[contenteditable="false"]')!==i)&&!n.getAttribute("data-slate-zero-width"))},insertData(e,t){e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),setFragmentData(e,t,n){e.setFragmentData(t,n)},toDOMNode(e,t){var n=M.get(e),r=v.KE.isEditor(t)?P.get(e):null==n?void 0:n.get(be.findKey(e,t));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(v.h6.stringify(t)));return r},toDOMPoint(e,t){var n,[r]=v.KE.node(e,t.path),o=be.toDOMNode(e,r);v.KE.void(e,{at:t})&&(t={path:t.path,offset:0});for(var i=Array.from(o.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),a=0,s=0;s<i.length;s++){var l=i[s],c=l.childNodes[0];if(null!=c&&null!=c.textContent){var{length:u}=c.textContent,d=l.getAttribute("data-slate-length"),p=a+(null==d?u:parseInt(d,10)),h=i[s+1];if(t.offset===p&&null!=h&&h.hasAttribute("data-slate-mark-placeholder")){var f,m=h.childNodes[0];n=[m instanceof G?m:h,null!==(f=h.textContent)&&void 0!==f&&f.startsWith("\ufeff")?1:0];break}if(t.offset<=p){n=[c,Math.min(u,Math.max(0,t.offset-a))];break}a=p}}if(!n)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(v.h6.stringify(t)));return n},toDOMRange(e,t){var{anchor:n,focus:r}=t,o=v.Q6.isBackward(t),i=be.toDOMPoint(e,n),a=v.Q6.isCollapsed(t)?i:be.toDOMPoint(e,r),s=be.getWindow(e).document.createRange(),[l,c]=o?a:i,[u,d]=o?i:a,p=!!(Y(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),h=!!(Y(u)?u:u.parentElement).getAttribute("data-slate-zero-width");return s.setStart(l,p?1:c),s.setEnd(u,h?1:d),s},toSlateNode(e,t){var n=Y(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?D.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},findEventRange(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:n,clientY:r,target:o}=t;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var i,a=be.toSlateNode(e,t.target),s=be.findPath(e,a);if(v.Hg.isElement(a)&&v.KE.isVoid(e,a)){var l=o.getBoundingClientRect(),c=e.isInline(a)?n-l.left<l.left+l.width-n:r-l.top<l.top+l.height-r,u=v.KE.point(e,s,{edge:c?"start":"end"}),d=c?v.KE.before(e,u):v.KE.after(e,u);if(d)return v.KE.range(e,d)}var{document:p}=be.getWindow(e);if(p.caretRangeFromPoint)i=p.caretRangeFromPoint(n,r);else{var h=p.caretPositionFromPoint(n,r);h&&((i=p.createRange()).setStart(h.offsetNode,h.offset),i.setEnd(h.offsetNode,h.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));return be.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlatePoint(e,t,n){var{exactMatch:r,suppressThrow:o}=n,[i,a]=r?t:(e=>{var[t,n]=e;if(Y(t)&&t.childNodes.length){var r=n===t.childNodes.length,o=r?n-1:n;for([t,o]=ee(t,o,r?"backward":"forward"),r=o<n;Y(t)&&t.childNodes.length;){var i=r?t.childNodes.length-1:0;t=te(t,i,r?"backward":"forward")}n=r&&null!=t.textContent?t.textContent.length:0}return[t,n]})(t),s=i.parentNode,l=null,c=0;if(s){var u,d,p=be.toDOMNode(e,e),h=s.closest('[data-slate-void="true"]'),f=h&&p.contains(h)?h:null,m=s.closest("[data-slate-leaf]"),g=null;if(m){if(l=m.closest('[data-slate-node="text"]')){var y=be.getWindow(e).document.createRange();y.setStart(l,0),y.setEnd(i,a);var b=y.cloneContents();[...Array.prototype.slice.call(b.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(b.querySelectorAll("[contenteditable=false]"))].forEach((e=>{le&&!r&&e.hasAttribute("data-slate-zero-width")&&e.textContent.length>0&&"\ufeff"!==e.textContext?e.textContent.startsWith("\ufeff")&&(e.textContent=e.textContent.slice(1)):e.parentNode.removeChild(e)})),c=b.textContent.length,g=l}}else if(f){for(var w=f.querySelectorAll("[data-slate-leaf]"),x=0;x<w.length;x++){var S=w[x];if(be.hasDOMNode(e,S)){m=S;break}}m?(l=m.closest('[data-slate-node="text"]'),c=(g=m).textContent.length,g.querySelectorAll("[data-slate-zero-width]").forEach((e=>{c-=e.textContent.length}))):c=1}g&&c===g.textContent.length&&le&&"z"===g.getAttribute("data-slate-zero-width")&&null!==(u=g.textContent)&&void 0!==u&&u.startsWith("\ufeff")&&(s.hasAttribute("data-slate-zero-width")||ce&&null!==(d=g.textContent)&&void 0!==d&&d.endsWith("\n\n"))&&c--}if(le&&!l&&!r){var _=s.hasAttribute("data-slate-node")?s:s.closest("[data-slate-node]");if(_&&be.hasDOMNode(e,_,{editable:!0})){var C=be.toSlateNode(e,_),{path:E,offset:k}=v.KE.start(e,be.findPath(e,C));return _.querySelector("[data-slate-leaf]")||(k=a),{path:E,offset:k}}}if(!l){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var z=be.toSlateNode(e,l);return{path:be.findPath(e,z),offset:c}},toSlateRange(e,t,n){var r,o,i,a,s,{exactMatch:l,suppressThrow:c}=n;if((J(t)?t.anchorNode:t.startContainer)&&(J(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,s=pe&&(e=>{for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1})(r)?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,s=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));var u=be.toSlatePoint(e,[r,o],{exactMatch:l,suppressThrow:c});if(!u)return null;var d=s?u:be.toSlatePoint(e,[i,a],{exactMatch:l,suppressThrow:c});if(!d)return null;if(ce&&!s&&r!==i){var p=v.KE.isEnd(e,u,u.path),h=v.KE.isStart(e,d,d.path);if(p)u=v.KE.after(e,u)||u;if(h)d=v.KE.before(e,d)||d}var f={anchor:u,focus:d};return v.Q6.isExpanded(f)&&v.Q6.isForward(f)&&Y(i)&&v.KE.void(e,{at:f.focus,mode:"highest"})&&(f=v.KE.unhangRange(e,f,{voids:!0})),f},hasRange(e,t){var{anchor:n,focus:r}=t;return v.KE.hasPath(e,n.path)&&v.KE.hasPath(e,r.path)},hasTarget:(e,t)=>X(t)&&be.hasDOMNode(e,t),hasEditableTarget:(e,t)=>X(t)&&be.hasDOMNode(e,t,{editable:!0}),hasSelectableTarget:(e,t)=>be.hasEditableTarget(e,t)||be.isTargetInsideNonReadonlyVoid(e,t),isTargetInsideNonReadonlyVoid(e,t){if(N.get(e))return!1;var n=be.hasTarget(e,t)&&be.toSlateNode(e,t);return v.Hg.isElement(n)&&v.KE.isVoid(e,n)},androidScheduleFlush(e){var t;null===(t=B.get(e))||void 0===t||t()},androidPendingDiffs:e=>K.get(e)},we=ve?c.useLayoutEffect:c.useEffect,xe=["anchor","focus"],Se=["anchor","focus"],_e=(e,t)=>{var n,r,o=S(e,xe),i=S(t,Se);return e[W]===t[W]&&(n=o,r=i,Object.keys(n).length===Object.keys(r).length&&Object.keys(n).every((e=>r.hasOwnProperty(e)&&n[e]===r[e])))};function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ee=e=>{var{isLast:t,leaf:n,parent:r,text:o}=e,i=Ae(),a=be.findPath(i,o),s=v.wA.parent(a),l=!0===n[q];return i.isVoid(r)?c.createElement(ze,{length:v.bP.string(r).length}):""!==n.text||r.children[r.children.length-1]!==o||i.isInline(r)||""!==v.KE.string(i,s)?""===n.text?c.createElement(ze,{isMarkPlaceholder:l}):t&&"\n"===n.text.slice(-1)?c.createElement(ke,{isTrailing:!0,text:n.text}):c.createElement(ke,{text:n.text}):c.createElement(ze,{isLineBreak:!0,isMarkPlaceholder:l})},ke=e=>{var{text:t,isTrailing:n=!1}=e,r=(0,c.useRef)(null),o=()=>"".concat(null!=t?t:"").concat(n?"\n":"");return we((()=>{var e=o();r.current&&r.current.textContent!==e&&(r.current.textContent=e)})),r.current?c.createElement("span",{"data-slate-string":!0,ref:r}):c.createElement("span",{"data-slate-string":!0,ref:r},o())},ze=e=>{var{length:t=0,isLineBreak:n=!1,isMarkPlaceholder:r=!1}=e,o={"data-slate-zero-width":n?"n":"z","data-slate-length":t};return r&&(o["data-slate-mark-placeholder"]=!0),c.createElement("span",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o),le&&n?null:"\ufeff",n?c.createElement("br",null):null)},Pe=(0,c.createContext)(null),Ae=()=>{var e=(0,c.useContext)(Pe);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e};function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ie=e=>{var{leaf:t,isLast:n,text:r,parent:o,renderPlaceholder:i,renderLeaf:a=e=>c.createElement(Ne,Te({},e))}=e,s=(0,c.useRef)(null),l=(0,c.useRef)(null),u=Ae(),d=(0,c.useRef)(null);(0,c.useEffect)((()=>()=>{d.current&&d.current.disconnect()}),[]),(0,c.useEffect)((()=>{var e=null==l?void 0:l.current;if(e?A.set(u,e):A.delete(u),d.current)d.current.disconnect(),e&&d.current.observe(e);else if(e){var t=window.ResizeObserver||y.tb;d.current=new t((()=>{var e=U.get(u);null==e||e()})),d.current.observe(e)}if(!e&&s.current){var n=U.get(u);null==n||n()}return s.current=l.current,()=>{A.delete(u)}}),[l,t]);var p=c.createElement(Ee,{isLast:n,leaf:t,parent:o,text:r});if(t[W]){var h={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none"},contentEditable:!1,ref:l}};p=c.createElement(c.Fragment,null,i(h),p)}return a({attributes:{"data-slate-leaf":!0},children:p,leaf:t,text:r})},Me=c.memo(Ie,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&v.EY.equals(t.leaf,e.leaf)&&t.leaf[W]===e.leaf[W])),Ne=e=>{var{attributes:t,children:n}=e;return c.createElement("span",Te({},t),n)},Oe=e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:o,renderLeaf:i,text:a}=e,s=Ae(),l=(0,c.useRef)(null),u=v.EY.decorations(a,t),d=be.findKey(s,a),p=[],h=0;h<u.length;h++){var f=u[h];p.push(c.createElement(Me,{isLast:n&&h===u.length-1,key:"".concat(d.id,"-").concat(h),renderPlaceholder:o,leaf:f,text:a,parent:r,renderLeaf:i}))}return we((()=>{var e=M.get(s);l.current?(null==e||e.set(d,l.current),T.set(a,l.current),D.set(l.current,a)):(null==e||e.delete(d),T.delete(a))})),c.createElement("span",{"data-slate-node":"text",ref:l},p)},Re=c.memo(Oe,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.text===e.text&&((e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(r.anchor.offset!==o.anchor.offset||r.focus.offset!==o.focus.offset||!_e(r,o))return!1}return!0})(t.decorations,e.decorations)));function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Be=e=>{var{decorations:t,element:n,renderElement:r=e=>c.createElement(Ve,Fe({},e)),renderPlaceholder:i,renderLeaf:a,selection:s}=e,l=Ae(),u=We(),d=l.isInline(n),p=be.findKey(l,n),h=(0,c.useCallback)((e=>{var t=M.get(l);e?(null==t||t.set(p,e),T.set(n,e),D.set(e,n)):(null==t||t.delete(p),T.delete(n))}),[l,p,n]),f=$e({decorations:t,node:n,renderElement:r,renderPlaceholder:i,renderLeaf:a,selection:s}),m={"data-slate-node":"element",ref:h};if(d&&(m["data-slate-inline"]=!0),!d&&v.KE.hasInlines(l,n)){var g=v.bP.string(n),y=o()(g);"rtl"===y&&(m.dir=y)}if(v.KE.isVoid(l,n)){m["data-slate-void"]=!0,!u&&d&&(m.contentEditable=!1);var b=d?"span":"div",[[w]]=v.bP.texts(n);f=c.createElement(b,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},c.createElement(Re,{renderPlaceholder:i,decorations:[],isLast:!1,parent:n,text:w})),E.set(w,0),k.set(w,n)}return r({attributes:m,children:f,element:n})},Le=c.memo(Be,((e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&((e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(!v.Q6.equals(r,o)||!_e(r,o))return!1}return!0})(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&v.Q6.equals(e.selection,t.selection)))),Ve=e=>{var{attributes:t,children:n,element:r}=e,o=Ae().isInline(r)?"span":"div";return c.createElement(o,Fe(Fe({},t),{},{style:{position:"relative"}}),n)},Ke=(0,c.createContext)((()=>[])),He=(0,c.createContext)(!1),$e=e=>{for(var{decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:i,selection:a}=e,s=(0,c.useContext)(Ke),l=Ae(),u=be.findPath(l,n),d=[],p=v.Hg.isElement(n)&&!l.isInline(n)&&v.KE.hasInlines(l,n),h=0;h<n.children.length;h++){var f=u.concat(h),m=n.children[h],g=be.findKey(l,m),y=v.KE.range(l,f),b=a&&v.Q6.intersection(y,a),w=s([m,f]);for(var x of t){var S=v.Q6.intersection(x,y);S&&w.push(S)}v.Hg.isElement(m)?d.push(c.createElement(He.Provider,{key:"provider-".concat(g.id),value:!!b},c.createElement(Le,{decorations:w,element:m,key:g.id,renderElement:r,renderPlaceholder:o,renderLeaf:i,selection:b}))):d.push(c.createElement(Re,{decorations:w,key:g.id,isLast:p&&h===n.children.length-1,parent:n,renderPlaceholder:o,renderLeaf:i,text:m})),E.set(m,h),k.set(m,n)}return d},Ue=(0,c.createContext)(!1),We=()=>(0,c.useContext)(Ue),qe=(0,c.createContext)(null),Ge={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",extendWordBackward:"opt+shift+left",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},Ze={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",extendWordBackward:"opt+shift+left",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},Ye={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Xe=e=>{var t=Ge[e],n=Ze[e],r=Ye[e],o=t&&(0,b.Sn)(t),i=n&&(0,b.Sn)(n),a=r&&(0,b.Sn)(r);return e=>!(!o||!o(e))||(!!(se&&i&&i(e))||!(se||!a||!a(e)))},Je={isBold:Xe("bold"),isCompose:Xe("compose"),isMoveBackward:Xe("moveBackward"),isMoveForward:Xe("moveForward"),isDeleteBackward:Xe("deleteBackward"),isDeleteForward:Xe("deleteForward"),isDeleteLineBackward:Xe("deleteLineBackward"),isDeleteLineForward:Xe("deleteLineForward"),isDeleteWordBackward:Xe("deleteWordBackward"),isDeleteWordForward:Xe("deleteWordForward"),isExtendBackward:Xe("extendBackward"),isExtendForward:Xe("extendForward"),isExtendLineBackward:Xe("extendLineBackward"),isExtendLineForward:Xe("extendLineForward"),isExtendWordBackward:Xe("extendWordBackward"),isItalic:Xe("italic"),isMoveLineBackward:Xe("moveLineBackward"),isMoveLineForward:Xe("moveLineForward"),isMoveWordBackward:Xe("moveWordBackward"),isMoveWordForward:Xe("moveWordForward"),isRedo:Xe("redo"),isSoftBreak:Xe("insertSoftBreak"),isSplitBlock:Xe("splitBlock"),isTransposeCharacter:Xe("transposeCharacter"),isUndo:Xe("undo")},Qe={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class et extends c.Component{constructor(){super(...arguments),x(this,"context",null),x(this,"manager",null),x(this,"mutationObserver",null)}observe(){var e,{node:t}=this.props;if(!t.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");null===(e=this.mutationObserver)||void 0===e||e.observe(t.current,Qe)}componentDidMount(){var{receivedUserInput:e}=this.props,t=this.context;this.manager=((e,t)=>{var n=[],r=()=>{n=[]};return{registerMutations:r=>{if(t.current){var o=r.filter((t=>oe(e,t,r)));n.push(...o)}},restoreDOM:function(){n.reverse().forEach((e=>{"characterData"!==e.type?(e.removedNodes.forEach((t=>{e.target.insertBefore(t,e.nextSibling)})),e.addedNodes.forEach((t=>{e.target.removeChild(t)}))):e.target.textContent=e.oldValue})),r()},clear:r}})(t,e),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var e,t,n,r,o=null===(e=this.mutationObserver)||void 0===e?void 0:e.takeRecords();null!=o&&o.length&&(null===(r=this.manager)||void 0===r||r.registerMutations(o));return null===(t=this.mutationObserver)||void 0===t||t.disconnect(),null===(n=this.manager)||void 0===n||n.restoreDOM(),null}componentDidUpdate(){var e;null===(e=this.manager)||void 0===e||e.clear(),this.observe()}componentWillUnmount(){var e;null===(e=this.mutationObserver)||void 0===e||e.disconnect()}render(){return this.props.children}}x(et,"contextType",Pe);var tt=le?et:e=>{var{children:t}=e;return c.createElement(c.Fragment,null,t)};function nt(e,t){var{path:n,diff:r}=t;if(!v.KE.hasPath(e,n))return!1;var o=v.bP.get(e,n);if(!v.EY.isText(o))return!1;if(r.start!==o.text.length||0===r.text.length)return o.text.slice(r.start,r.start+r.text.length)===r.text;var i=v.wA.next(n);if(!v.KE.hasPath(e,i))return!1;var a=v.bP.get(e,i);return v.EY.isText(a)&&a.text.startsWith(r.text)}function rt(e,t){var{start:n,end:r,text:o}=t,i=e.slice(n,r),a=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return n}(i,o),s=function(e,t,n){for(var r=Math.min(e.length,t.length,n),o=0;o<r;o++)if(e.charAt(e.length-o-1)!==t.charAt(t.length-o-1))return o;return r}(i,o,Math.min(i.length-a,o.length-a)),l={start:n+a,end:r-s,text:o.slice(a,o.length-s)};return l.start===l.end&&0===l.text.length?null:l}function ot(e,t,n){var r=Math.min(t.start,n.start),o=Math.max(0,Math.min(t.start+t.text.length,n.end)-n.start),i=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce(((e,t)=>e.slice(0,t.start)+t.text+e.slice(t.end)),e)}(e,t,n),a=Math.max(n.start+n.text.length,t.start+t.text.length+(t.start+t.text.length>n.start?n.text.length:0)-o),s=i.slice(r,a);return rt(e,{start:r,end:Math.max(t.end,n.end-t.text.length+(t.end-t.start)),text:s})}function it(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function at(e,t){var{path:n,offset:r}=t;if(!v.KE.hasPath(e,n))return null;var o=v.bP.get(e,n);if(!v.EY.isText(o))return null;var i=v.KE.above(e,{match:t=>v.Hg.isElement(t)&&v.KE.isBlock(e,t),at:n});if(!i)return null;for(;r>o.text.length;){var a=v.KE.next(e,{at:n,match:v.EY.isText});if(!a||!v.wA.isDescendant(a[1],i[1]))return null;r-=o.text.length,o=a[0],n=a[1]}return{path:n,offset:r}}function st(e,t){var n=at(e,t.anchor);if(!n)return null;if(v.Q6.isCollapsed(t))return{anchor:n,focus:n};var r=at(e,t.focus);return r?{anchor:n,focus:r}:null}function lt(e,t,n){var r=K.get(e),o=null==r?void 0:r.find((e=>{var{path:n}=e;return v.wA.equals(n,t.path)}));if(!o||t.offset<=o.diff.start)return v.bR.transform(t,n,{affinity:"backward"});var{diff:i}=o;if(t.offset<=i.start+i.text.length){var a={path:t.path,offset:i.start},s=v.bR.transform(a,n,{affinity:"backward"});return s?{path:s.path,offset:s.offset+t.offset-i.start}:null}var l={path:t.path,offset:t.offset-i.text.length+i.end-i.start},c=v.bR.transform(l,n,{affinity:"backward"});return c?"split_node"===n.type&&v.wA.equals(n.path,t.path)&&l.offset<n.position&&i.start<n.position?c:{path:c.path,offset:c.offset+i.text.length-i.end+i.start}:null}function ct(e,t,n){var r=lt(e,t.anchor,n);if(!r)return null;if(v.Q6.isCollapsed(t))return{anchor:r,focus:r};var o=lt(e,t.focus,n);return o?{anchor:r,focus:o}:null}function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pt(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=e,o=!1,i=null,a=null,s=null,l=0,c=!1,u=()=>{var e=$.get(t);if($.delete(t),e){var{selection:n}=t,r=st(t,e);!r||n&&v.Q6.equals(r,n)||v.gB.select(t,r)}},d=()=>{var e;if(a&&(clearTimeout(a),a=null),s&&(clearTimeout(s),s=null),g()||m()){o||(o=!0,setTimeout((()=>o=!1))),m()&&(o="action");var i=t.selection&&v.KE.rangeRef(t,t.selection,{affinity:"forward"});V.set(t,t.marks),H.get(t),K.get(t);for(var l,d=!(null===(e=K.get(t))||void 0===e||!e.length);l=null===(p=K.get(t))||void 0===p?void 0:p[0];){var p,h,f=L.get(t);void 0!==f&&(L.delete(t),t.marks=f),f&&!1===c&&(c=null);var y=it(l);t.selection&&v.Q6.equals(t.selection,y)||v.gB.select(t,y),l.diff.text?v.KE.insertText(t,l.diff.text):v.KE.deleteFragment(t),K.set(t,null===(h=K.get(t))||void 0===h?void 0:h.filter((e=>{var{id:t}=e;return t!==l.id}))),nt(t,l)||(d=!1,H.delete(t),V.delete(t),o="action",$.delete(t),n.cancel(),r.cancel(),null==i||i.unref())}var b=null==i?void 0:i.unref();if(!b||$.get(t)||t.selection&&v.Q6.equals(b,t.selection)||v.gB.select(t,b),m())(()=>{var e=H.get(t);if(H.delete(t),e){if(e.at){var n=v.bR.isPoint(e.at)?at(t,e.at):st(t,e.at);if(!n)return;var r=v.KE.range(t,n);t.selection&&v.Q6.equals(t.selection,r)||v.gB.select(t,n)}e.run()}})();else{d&&n(),n.flush(),r.flush(),u();var w=V.get(t);V.delete(t),void 0!==w&&(t.marks=w,t.onChange())}}else u()},p=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=A.get(t);n&&(g()||e?n.style.display="none":n.style.removeProperty("display"))},h=(e,n)=>{var r,o=null!==(r=K.get(t))&&void 0!==r?r:[];K.set(t,o);var i=v.bP.leaf(t,e),a=o.findIndex((t=>v.wA.equals(t.path,e)));if(a<0)return rt(i.text,n)&&o.push({path:e,diff:n,id:l++}),void p();var s=ot(i.text,o[a].diff,n);if(!s)return o.splice(a,1),void p();o[a]=dt(dt({},o[a]),{},{diff:s})},f=function(e){var{at:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c=!1,$.delete(t),n.cancel(),r.cancel(),m()&&d(),H.set(t,{at:o,run:e}),s=setTimeout(d)},m=()=>!!H.get(t),g=()=>{var e;return!(null===(e=K.get(t))||void 0===e||!e.length)},y=e=>{$.set(t,e),a&&(clearTimeout(a),a=null);var{selection:n}=t;if(e){var r=!n||!v.wA.equals(n.anchor.path,e.anchor.path),o=!n||!v.wA.equals(n.anchor.path.slice(0,-1),e.anchor.path.slice(0,-1));(r&&c||o)&&(c=!1),!r&&g()||(a=setTimeout(d,200))}},b=()=>{m()||(s=setTimeout(d))};return{flush:d,scheduleFlush:b,hasPendingDiffs:g,hasPendingAction:m,hasPendingChanges:()=>m()||g(),isFlushing:()=>o,handleUserSelect:y,handleCompositionEnd:e=>{i&&clearTimeout(i),i=setTimeout((()=>{R.set(t,!1),d()}),25)},handleCompositionStart:e=>{R.set(t,!0),i&&(clearTimeout(i),i=null)},handleDOMBeforeInput:e=>{var n;a&&(clearTimeout(a),a=null);var{inputType:r}=e,o=null,i=e.dataTransfer||e.data||void 0;!1!==c&&"insertText"!==r&&"insertCompositionText"!==r&&(c=!1);var[s]=e.getTargetRanges();s&&(o=be.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!0}));var l=be.getWindow(t).getSelection();if(!o&&l&&(s=l,o=be.toSlateRange(t,l,{exactMatch:!1,suppressThrow:!0})),o=null!==(n=o)&&void 0!==n?n:t.selection){if(v.Q6.isExpanded(o)&&r.startsWith("delete")){var[u,d]=v.Q6.edges(o);if(v.bP.leaf(t,u.path).text.length===u.offset&&0===d.offset){var p=v.KE.next(t,{at:u.path,match:v.EY.isText});p&&v.wA.equals(p[1],d.path)&&(o={anchor:d,focus:d})}}if(v.Q6.isExpanded(o)&&r.startsWith("delete")){if(v.wA.equals(o.anchor.path,o.focus.path)){var[m,g]=v.Q6.edges(o),w={path:o.anchor.path,offset:m.offset},x=v.KE.range(t,w,w);return y(x),h(o.anchor.path,{text:"",end:g.offset,start:m.offset})}var S=r.endsWith("Backward")?"backward":"forward";return f((()=>v.KE.deleteFragment(t,{direction:S})),{at:o})}switch(r){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return f((()=>v.KE.deleteFragment(t)),{at:o});case"deleteContent":case"deleteContentForward":var{anchor:_}=o;if(v.Q6.isCollapsed(o)){var C=v.bP.leaf(t,_.path);if(_.offset<C.text.length)return h(_.path,{text:"",start:_.offset,end:_.offset+1})}return f((()=>v.KE.deleteForward(t)),{at:o});case"deleteContentBackward":var E,{anchor:k}=o;return(J(s)?s.isCollapsed:!(null===(E=s)||void 0===E||!E.collapsed))&&v.Q6.isCollapsed(o)&&k.offset>0?h(k.path,{text:"",start:k.offset-1,end:k.offset}):f((()=>v.KE.deleteBackward(t)),{at:o});case"deleteEntireSoftLine":return f((()=>{v.KE.deleteBackward(t,{unit:"line"}),v.KE.deleteForward(t,{unit:"line"})}),{at:o});case"deleteHardLineBackward":return f((()=>v.KE.deleteBackward(t,{unit:"block"})),{at:o});case"deleteSoftLineBackward":return f((()=>v.KE.deleteBackward(t,{unit:"line"})),{at:o});case"deleteHardLineForward":return f((()=>v.KE.deleteForward(t,{unit:"block"})),{at:o});case"deleteSoftLineForward":return f((()=>v.KE.deleteForward(t,{unit:"line"})),{at:o});case"deleteWordBackward":return f((()=>v.KE.deleteBackward(t,{unit:"word"})),{at:o});case"deleteWordForward":return f((()=>v.KE.deleteForward(t,{unit:"word"})),{at:o});case"insertLineBreak":return f((()=>v.KE.insertSoftBreak(t)),{at:o});case"insertParagraph":return f((()=>v.KE.insertBreak(t)),{at:o});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("DataTransfer"===(null==i?void 0:i.constructor.name))return f((()=>be.insertData(t,i)),{at:o});if("string"==typeof i&&i.includes("\n"))return f((()=>v.KE.insertSoftBreak(t)),{at:v.Q6.end(o)});var z=null!=i?i:"";if(L.get(t)&&(z=z.replace("\ufeff","")),v.wA.equals(o.anchor.path,o.focus.path)){var[P,A]=v.Q6.edges(o),D={start:P.offset,end:A.offset,text:z};if(z&&c&&"insertCompositionText"===r){var T=c.start+c.text.search(/\S|$/);D.start+D.text.search(/\S|$/)===T+1&&D.end===c.start+c.text.length?(D.start-=1,c=null,b()):c=!1}else c="insertText"===r&&(null===c?D:!(!c||!v.Q6.isCollapsed(o)||c.end+c.text.length!==P.offset)&&dt(dt({},c),{},{text:c.text+z}));return void h(P.path,D)}return f((()=>v.KE.insertText(t,z)),{at:o})}}},handleKeyDown:e=>{g()||(p(!0),setTimeout(p))},handleDomMutations:e=>{var n;g()||m()||e.some((n=>oe(t,n,e)))&&(null===(n=U.get(t))||void 0===n||n())},handleInput:()=>{!m()&&g()||d()}}}var ht=["node"];function ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var mt={subtree:!0,childList:!0,characterData:!0};function gt(e){var{node:t}=e,n=S(e,ht);if(!le)return null;var r,o=Ae(),i=(r=(0,c.useRef)(!1),(0,c.useEffect)((()=>(r.current=!0,()=>{r.current=!1})),[]),r.current),[a]=(0,c.useState)((()=>pt(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({editor:o},n))));return function(e,t,n){var[r]=(0,c.useState)((()=>new MutationObserver(t)));we((()=>{r.takeRecords()})),(0,c.useEffect)((()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(e.current,n),()=>r.disconnect()}),[])}(t,a.handleDomMutations,mt),B.set(o,a.scheduleFlush),i&&a.flush(),a}var vt=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],yt=["text"];function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xt=e=>c.createElement(c.Fragment,null,$e(e)),St=e=>{var t,n,{autoFocus:r,decorate:i=Ct,onDOMBeforeInput:s,placeholder:u,readOnly:d=!1,renderElement:p,renderLeaf:h,renderPlaceholder:f=e=>c.createElement(_t,wt({},e)),scrollSelectionIntoView:m=Et,style:g={},as:y="div",disableDefaultStyles:b=!1}=e,w=S(e,vt),x=(()=>{var e=(0,c.useContext)(qe);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t})(),[_,C]=(0,c.useState)(!1),E=(0,c.useRef)(null),k=(0,c.useRef)([]),I=(0,c.useRef)(!1),{onUserInput:M,receivedUserInput:F}=function(){var e=Ae(),t=(0,c.useRef)(!1),n=(0,c.useRef)(0),r=(0,c.useCallback)((()=>{if(!t.current){t.current=!0;var r=be.getWindow(e);r.cancelAnimationFrame(n.current),n.current=r.requestAnimationFrame((()=>{t.current=!1}))}}),[]);return(0,c.useEffect)((()=>()=>cancelAnimationFrame(n.current)),[]),{receivedUserInput:t,onUserInput:r}}(),[,B]=(0,c.useReducer)((e=>e+1),0);U.set(x,B),N.set(x,d);var K=(0,c.useMemo)((()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1})),[]);(0,c.useEffect)((()=>{E.current&&r&&E.current.focus()}),[r]);var H=(0,c.useCallback)(l()((()=>{var e=be.findDocumentOrShadowRoot(x),t=navigator.userAgent.match(/Version\/(\d+\.\d+)/),n=ue&&t&&parseFloat(t[1])<17;if(!I.current&&ue&&e instanceof ShadowRoot&&n)return I.current=!0,function(){for(var e=document.activeElement;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}()?document.execCommand("indent"):v.gB.deselect(x),void(I.current=!1);if((le||!be.isComposing(x))&&(!K.isUpdatingSelection||null!=G&&G.isFlushing())&&!K.isDraggingInternally){var r=be.findDocumentOrShadowRoot(x),{activeElement:o}=r,i=be.toDOMNode(x,x),a=r.getSelection();if(o===i?(K.latestElement=o,O.set(x,!0)):O.delete(x),!a)return v.gB.deselect(x);var{anchorNode:s,focusNode:l}=a,c=be.hasEditableTarget(x,s)||be.isTargetInsideNonReadonlyVoid(x,s),u=be.hasEditableTarget(x,l)||be.isTargetInsideNonReadonlyVoid(x,l);if(c&&u){var p=be.toSlateRange(x,a,{exactMatch:!1,suppressThrow:!0});p&&(be.isComposing(x)||null!=G&&G.hasPendingChanges()||null!=G&&G.isFlushing()?null==G||G.handleUserSelect(p):v.gB.select(x,p))}!d||c&&u||v.gB.deselect(x)}}),100),[d]),$=(0,c.useMemo)((()=>a()(H,0)),[H]),G=gt({node:E,onDOMSelectionChange:H,scheduleOnDOMSelectionChange:$});we((()=>{var e;E.current&&(e=Z(E.current))?(z.set(x,e),P.set(x,E.current),T.set(x,E.current),D.set(E.current,x)):T.delete(x);var{selection:t}=x,n=be.findDocumentOrShadowRoot(x).getSelection();if(n&&be.isFocused(x)&&(null==G||!G.hasPendingAction())){var r=e=>{var r="None"!==n.type;if(t||r){var o=P.get(x),i=!1;if(o.contains(n.anchorNode)&&o.contains(n.focusNode)&&(i=!0),r&&i&&t&&!e){var a=be.toSlateRange(x,n,{exactMatch:!0,suppressThrow:!0});if(a&&v.Q6.equals(a,t)){var s;if(!K.hasMarkPlaceholder)return;var{anchorNode:l}=n;if(null!=l&&null!==(s=l.parentElement)&&void 0!==s&&s.hasAttribute("data-slate-mark-placeholder"))return}}if(!t||be.hasRange(x,t)){K.isUpdatingSelection=!0;var c=t&&be.toDOMRange(x,t);return c?(v.Q6.isBackward(t)?n.setBaseAndExtent(c.endContainer,c.endOffset,c.startContainer,c.startOffset):n.setBaseAndExtent(c.startContainer,c.startOffset,c.endContainer,c.endOffset),m(x,c)):n.removeAllRanges(),c}x.selection=be.toSlateRange(x,n,{exactMatch:!1,suppressThrow:!0})}},o=r(),i="action"===(null==G?void 0:G.isFlushing());if(le&&i){var a=null,s=requestAnimationFrame((()=>{if(i){var e=e=>{try{be.toDOMNode(x,x).focus(),r(e)}catch(e){}};e(),a=setTimeout((()=>{e(!0),K.isUpdatingSelection=!1}))}}));return()=>{cancelAnimationFrame(s),a&&clearTimeout(a)}}setTimeout((()=>{o&&ce&&be.toDOMNode(x,x).focus();K.isUpdatingSelection=!1}))}}));var J=(0,c.useCallback)((e=>{var t=be.findDocumentOrShadowRoot(x),n=navigator.userAgent.match(/Version\/(\d+\.\d+)/),r=ue&&n&&parseFloat(n[1])<17;if(null!=I&&I.current&&ue&&t instanceof ShadowRoot&&r){var o=e.getTargetRanges()[0],i=new window.Range;i.setStart(o.startContainer,o.startOffset),i.setEnd(o.endContainer,o.endOffset);var a=be.toSlateRange(x,i,{exactMatch:!1,suppressThrow:!1});return v.gB.select(x,a),e.preventDefault(),void e.stopImmediatePropagation()}if(M(),!d&&be.hasEditableTarget(x,e.target)&&!zt(e,s)){var l;if(G)return G.handleDOMBeforeInput(e);$.flush(),H.flush();var{selection:c}=x,{inputType:u}=e,p=e.dataTransfer||e.data||void 0,h="insertCompositionText"===u||"deleteCompositionText"===u;if(h&&be.isComposing(x))return;var f=!1;if("insertText"===u&&c&&v.Q6.isCollapsed(c)&&e.data&&1===e.data.length&&/[a-z ]/i.test(e.data)&&0!==c.anchor.offset){var m,g;f=!0,x.marks&&(f=!1);var{anchor:y}=c,[b,w]=be.toDOMPoint(x,y),S=null===(m=b.parentElement)||void 0===m?void 0:m.closest("a"),_=be.getWindow(x);if(f&&S&&be.hasDOMNode(x,S)){var E,z=null==_?void 0:_.document.createTreeWalker(S,NodeFilter.SHOW_TEXT).lastChild();z===b&&(null===(E=z.textContent)||void 0===E?void 0:E.length)===w&&(f=!1)}if(f&&b.parentElement&&"pre"===(null==_||null===(g=_.getComputedStyle(b.parentElement))||void 0===g?void 0:g.whiteSpace)){var P=v.KE.above(x,{at:y.path,match:e=>v.Hg.isElement(e)&&v.KE.isBlock(x,e)});P&&v.bP.string(P[0]).includes("\t")&&(f=!1)}}if(!u.startsWith("delete")||u.startsWith("deleteBy")){var[A]=e.getTargetRanges();if(A){var D=be.toSlateRange(x,A,{exactMatch:!1,suppressThrow:!1});if(!c||!v.Q6.equals(c,D)){f=!1;var T=!h&&x.selection&&v.KE.rangeRef(x,x.selection);v.gB.select(x,D),T&&j.set(x,T)}}}if(h)return;if(f||e.preventDefault(),c&&v.Q6.isExpanded(c)&&u.startsWith("delete")){var N=u.endsWith("Backward")?"backward":"forward";return void v.KE.deleteFragment(x,{direction:N})}switch(u){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":v.KE.deleteFragment(x);break;case"deleteContent":case"deleteContentForward":v.KE.deleteForward(x);break;case"deleteContentBackward":v.KE.deleteBackward(x);break;case"deleteEntireSoftLine":v.KE.deleteBackward(x,{unit:"line"}),v.KE.deleteForward(x,{unit:"line"});break;case"deleteHardLineBackward":v.KE.deleteBackward(x,{unit:"block"});break;case"deleteSoftLineBackward":v.KE.deleteBackward(x,{unit:"line"});break;case"deleteHardLineForward":v.KE.deleteForward(x,{unit:"block"});break;case"deleteSoftLineForward":v.KE.deleteForward(x,{unit:"line"});break;case"deleteWordBackward":v.KE.deleteBackward(x,{unit:"word"});break;case"deleteWordForward":v.KE.deleteForward(x,{unit:"word"});break;case"insertLineBreak":v.KE.insertSoftBreak(x);break;case"insertParagraph":v.KE.insertBreak(x);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":"insertFromComposition"===u&&be.isComposing(x)&&(C(!1),R.set(x,!1)),"DataTransfer"===(null==p?void 0:p.constructor.name)?be.insertData(x,p):"string"==typeof p&&(f?k.current.push((()=>v.KE.insertText(x,p))):v.KE.insertText(x,p))}var O=null===(l=j.get(x))||void 0===l?void 0:l.unref();j.delete(x),!O||x.selection&&v.Q6.equals(x.selection,O)||v.gB.select(x,O)}}),[d,s]);we((()=>(E.current&&ye&&E.current.addEventListener("beforeinput",J),()=>{E.current&&ye&&E.current.removeEventListener("beforeinput",J)})),[J]),we((()=>{var e=be.getWindow(x);return e.document.addEventListener("selectionchange",$),()=>{e.document.removeEventListener("selectionchange",$)}}),[$]);var Q=i([x,[]]);if(u&&1===x.children.length&&1===Array.from(v.bP.texts(x)).length&&""===v.bP.string(x)&&!_){var ee=v.KE.start(x,[]);Q.push({[W]:!0,placeholder:u,anchor:ee,focus:ee})}var{marks:te}=x;if(K.hasMarkPlaceholder=!1,x.selection&&v.Q6.isCollapsed(x.selection)&&te){var{anchor:ne}=x.selection,re=v.bP.leaf(x,ne.path),oe=S(re,yt);if(!v.EY.equals(re,te,{loose:!0})){K.hasMarkPlaceholder=!0;var ie=Object.fromEntries(Object.keys(oe).map((e=>[e,null])));Q.push(wt(wt(wt({[q]:!0},ie),te),{},{anchor:ne,focus:ne}))}}(0,c.useEffect)((()=>{setTimeout((()=>{var{selection:e}=x;if(e){var{anchor:t}=e,n=v.bP.leaf(x,t.path);if(te&&!v.EY.equals(n,te,{loose:!0}))return void L.set(x,te)}L.delete(x)}))}));var se=null===(t=A.get(x))||void 0===t||null===(n=t.getBoundingClientRect())||void 0===n?void 0:n.height;return c.createElement(Ue.Provider,{value:d},c.createElement(Ke.Provider,{value:i},c.createElement(tt,{node:E,receivedUserInput:F},c.createElement(y,wt(wt({role:d?void 0:"textbox","aria-multiline":!d||void 0},w),{},{spellCheck:!(!ye&&ve)&&w.spellCheck,autoCorrect:ye||!ve?w.autoCorrect:"false",autoCapitalize:ye||!ve?w.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!d,zindex:-1,suppressContentEditableWarning:!0,ref:E,style:wt(wt({},b?{}:wt({position:"relative",outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},se?{minHeight:se}:{})),g),onBeforeInput:(0,c.useCallback)((e=>{if(!ye&&!d&&!kt(e,w.onBeforeInput)&&be.hasSelectableTarget(x,e.target)&&(e.preventDefault(),!be.isComposing(x))){var t=e.data;v.KE.insertText(x,t)}}),[d]),onInput:(0,c.useCallback)((e=>{if(G)G.handleInput();else{for(var t of k.current)t();k.current=[]}}),[]),onBlur:(0,c.useCallback)((e=>{if(!d&&!K.isUpdatingSelection&&be.hasSelectableTarget(x,e.target)&&!kt(e,w.onBlur)){var t=be.findDocumentOrShadowRoot(x);if(K.latestElement!==t.activeElement){var{relatedTarget:n}=e;if(!(n===be.toDOMNode(x,x)||Y(n)&&n.hasAttribute("data-slate-spacer"))){if(null!=n&&X(n)&&be.hasDOMNode(x,n)){var r=be.toSlateNode(x,n);if(v.Hg.isElement(r)&&!x.isVoid(r))return}if(ue){var o=t.getSelection();null==o||o.removeAllRanges()}O.delete(x)}}}}),[d,w.onBlur]),onClick:(0,c.useCallback)((e=>{if(be.hasTarget(x,e.target)&&!kt(e,w.onClick)&&X(e.target)){var t=be.toSlateNode(x,e.target),n=be.findPath(x,t);if(!v.KE.hasPath(x,n)||v.bP.get(x,n)!==t)return;if(3===e.detail&&n.length>=1){var r=n;if(!v.Hg.isElement(t)||!v.KE.isBlock(x,t)){var o,i=v.KE.above(x,{match:e=>v.Hg.isElement(e)&&v.KE.isBlock(x,e),at:n});r=null!==(o=null==i?void 0:i[1])&&void 0!==o?o:n.slice(0,1)}var a=v.KE.range(x,r);return void v.gB.select(x,a)}if(d)return;var s=v.KE.start(x,n),l=v.KE.end(x,n),c=v.KE.void(x,{at:s}),u=v.KE.void(x,{at:l});if(c&&u&&v.wA.equals(c[1],u[1])){var p=v.KE.range(x,s);v.gB.select(x,p)}}}),[d,w.onClick]),onCompositionEnd:(0,c.useCallback)((e=>{if(be.hasSelectableTarget(x,e.target)){if(be.isComposing(x)&&(C(!1),R.set(x,!1)),null==G||G.handleCompositionEnd(e),kt(e,w.onCompositionEnd)||le)return;if(!ue&&!fe&&!ae&&!ge&&!me&&e.data){var t=L.get(x);L.delete(x),void 0!==t&&(V.set(x,x.marks),x.marks=t),v.KE.insertText(x,e.data);var n=V.get(x);V.delete(x),void 0!==n&&(x.marks=n)}}}),[w.onCompositionEnd]),onCompositionUpdate:(0,c.useCallback)((e=>{be.hasSelectableTarget(x,e.target)&&!kt(e,w.onCompositionUpdate)&&(be.isComposing(x)||(C(!0),R.set(x,!0)))}),[w.onCompositionUpdate]),onCompositionStart:(0,c.useCallback)((e=>{if(be.hasSelectableTarget(x,e.target)){if(null==G||G.handleCompositionStart(e),kt(e,w.onCompositionStart)||le)return;C(!0);var{selection:t}=x;if(t){if(v.Q6.isExpanded(t))return void v.KE.deleteFragment(x);var n=v.KE.above(x,{match:e=>v.Hg.isElement(e)&&v.KE.isInline(x,e),mode:"highest"});if(n){var[,r]=n;if(v.KE.isEnd(x,t.anchor,r)){var o=v.KE.after(x,r);v.gB.setSelection(x,{anchor:o,focus:o})}}}}}),[w.onCompositionStart]),onCopy:(0,c.useCallback)((e=>{be.hasSelectableTarget(x,e.target)&&!kt(e,w.onCopy)&&(e.preventDefault(),be.setFragmentData(x,e.clipboardData,"copy"))}),[w.onCopy]),onCut:(0,c.useCallback)((e=>{if(!d&&be.hasSelectableTarget(x,e.target)&&!kt(e,w.onCut)){e.preventDefault(),be.setFragmentData(x,e.clipboardData,"cut");var{selection:t}=x;if(t)if(v.Q6.isExpanded(t))v.KE.deleteFragment(x);else{var n=v.bP.parent(x,t.anchor.path);v.KE.isVoid(x,n)&&v.gB.delete(x)}}}),[d,w.onCut]),onDragOver:(0,c.useCallback)((e=>{if(be.hasTarget(x,e.target)&&!kt(e,w.onDragOver)){var t=be.toSlateNode(x,e.target);v.Hg.isElement(t)&&v.KE.isVoid(x,t)&&e.preventDefault()}}),[w.onDragOver]),onDragStart:(0,c.useCallback)((e=>{if(!d&&be.hasTarget(x,e.target)&&!kt(e,w.onDragStart)){var t=be.toSlateNode(x,e.target),n=be.findPath(x,t);if(v.Hg.isElement(t)&&v.KE.isVoid(x,t)||v.KE.void(x,{at:n,voids:!0})){var r=v.KE.range(x,n);v.gB.select(x,r)}K.isDraggingInternally=!0,be.setFragmentData(x,e.dataTransfer,"drag")}}),[d,w.onDragStart]),onDrop:(0,c.useCallback)((e=>{if(!d&&be.hasTarget(x,e.target)&&!kt(e,w.onDrop)){e.preventDefault();var t=x.selection,n=be.findEventRange(x,e),r=e.dataTransfer;v.gB.select(x,n),K.isDraggingInternally&&(!t||v.Q6.equals(t,n)||v.KE.void(x,{at:n,voids:!0})||v.gB.delete(x,{at:t})),be.insertData(x,r),be.isFocused(x)||be.focus(x)}K.isDraggingInternally=!1}),[d,w.onDrop]),onDragEnd:(0,c.useCallback)((e=>{!d&&K.isDraggingInternally&&w.onDragEnd&&be.hasTarget(x,e.target)&&w.onDragEnd(e),K.isDraggingInternally=!1}),[d,w.onDragEnd]),onFocus:(0,c.useCallback)((e=>{if(!d&&!K.isUpdatingSelection&&be.hasEditableTarget(x,e.target)&&!kt(e,w.onFocus)){var t=be.toDOMNode(x,x),n=be.findDocumentOrShadowRoot(x);if(K.latestElement=n.activeElement,ce&&e.target!==t)return void t.focus();O.set(x,!0)}}),[d,w.onFocus]),onKeyDown:(0,c.useCallback)((e=>{if(!d&&be.hasEditableTarget(x,e.target)){null==G||G.handleKeyDown(e);var{nativeEvent:t}=e;if(be.isComposing(x)&&!1===t.isComposing&&(R.set(x,!1),C(!1)),kt(e,w.onKeyDown)||be.isComposing(x))return;var{selection:n}=x,r=x.children[null!==n?n.focus.path[0]:0],i="rtl"===o()(v.bP.string(r));if(Je.isRedo(t)){e.preventDefault();var a=x;return void("function"==typeof a.redo&&a.redo())}if(Je.isUndo(t)){e.preventDefault();var s=x;return void("function"==typeof s.undo&&s.undo())}if(Je.isMoveLineBackward(t))return e.preventDefault(),void v.gB.move(x,{unit:"line",reverse:!0});if(Je.isMoveLineForward(t))return e.preventDefault(),void v.gB.move(x,{unit:"line"});if(Je.isExtendLineBackward(t))return e.preventDefault(),void v.gB.move(x,{unit:"line",edge:"focus",reverse:!0});if(Je.isExtendLineForward(t))return e.preventDefault(),void v.gB.move(x,{unit:"line",edge:"focus"});if(Je.isMoveBackward(t))return e.preventDefault(),void(n&&v.Q6.isCollapsed(n)?v.gB.move(x,{reverse:!i}):v.gB.collapse(x,{edge:"start"}));if(Je.isMoveForward(t))return e.preventDefault(),void(n&&v.Q6.isCollapsed(n)?v.gB.move(x,{reverse:i}):v.gB.collapse(x,{edge:"end"}));if(Je.isMoveWordBackward(t))return e.preventDefault(),n&&v.Q6.isExpanded(n)&&v.gB.collapse(x,{edge:"focus"}),void v.gB.move(x,{unit:"word",reverse:!i});if(Je.isMoveWordForward(t))return e.preventDefault(),n&&v.Q6.isExpanded(n)&&v.gB.collapse(x,{edge:"focus"}),void v.gB.move(x,{unit:"word",reverse:i});if(ye){if((pe||ue)&&n&&(Je.isDeleteBackward(t)||Je.isDeleteForward(t))&&v.Q6.isCollapsed(n)){var l=v.bP.parent(x,n.anchor.path);if(v.Hg.isElement(l)&&v.KE.isVoid(x,l)&&(v.KE.isInline(x,l)||v.KE.isBlock(x,l)))return e.preventDefault(),void v.KE.deleteBackward(x,{unit:"block"})}}else{if(Je.isBold(t)||Je.isItalic(t)||Je.isTransposeCharacter(t))return void e.preventDefault();if(Je.isSoftBreak(t))return e.preventDefault(),void v.KE.insertSoftBreak(x);if(Je.isSplitBlock(t))return e.preventDefault(),void v.KE.insertBreak(x);if(Je.isDeleteBackward(t))return e.preventDefault(),void(n&&v.Q6.isExpanded(n)?v.KE.deleteFragment(x,{direction:"backward"}):v.KE.deleteBackward(x));if(Je.isDeleteForward(t))return e.preventDefault(),void(n&&v.Q6.isExpanded(n)?v.KE.deleteFragment(x,{direction:"forward"}):v.KE.deleteForward(x));if(Je.isDeleteLineBackward(t))return e.preventDefault(),void(n&&v.Q6.isExpanded(n)?v.KE.deleteFragment(x,{direction:"backward"}):v.KE.deleteBackward(x,{unit:"line"}));if(Je.isDeleteLineForward(t))return e.preventDefault(),void(n&&v.Q6.isExpanded(n)?v.KE.deleteFragment(x,{direction:"forward"}):v.KE.deleteForward(x,{unit:"line"}));if(Je.isDeleteWordBackward(t))return e.preventDefault(),void(n&&v.Q6.isExpanded(n)?v.KE.deleteFragment(x,{direction:"backward"}):v.KE.deleteBackward(x,{unit:"word"}));if(Je.isDeleteWordForward(t))return e.preventDefault(),void(n&&v.Q6.isExpanded(n)?v.KE.deleteFragment(x,{direction:"forward"}):v.KE.deleteForward(x,{unit:"word"}))}}}),[d,w.onKeyDown]),onPaste:(0,c.useCallback)((e=>{d||!be.hasSelectableTarget(x,e.target)||kt(e,w.onPaste)||ye&&!(e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length)(e.nativeEvent)||(e.preventDefault(),be.insertData(x,e.clipboardData))}),[d,w.onPaste])}),c.createElement(xt,{decorations:Q,node:x,renderElement:p,renderPlaceholder:f,renderLeaf:h,selection:x.selection})))))},_t=e=>{var{attributes:t,children:n}=e;return c.createElement("span",wt({},t),n,le&&c.createElement("br",null))},Ct=()=>[],Et=(e,t)=>{if(t.getBoundingClientRect&&(!e.selection||e.selection&&v.Q6.isCollapsed(e.selection))){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),g(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},kt=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.isDefaultPrevented()||e.isPropagationStopped()},zt=(e,t)=>{if(!t)return!1;var n=t(e);return null!=n?n:e.defaultPrevented},Pt=(0,c.createContext)(!1);var At=(0,c.createContext)({});var Dt=["editor","children","onChange","value"],Tt=e=>{var{editor:t,children:n,onChange:r,value:o}=e,i=S(e,Dt),a=(0,c.useRef)(!1),[s,l]=c.useState((()=>{if(!v.bP.isNodeList(o))throw new Error("[Slate] value is invalid! Expected a list of elements but got: ".concat(v.h6.stringify(o)));if(!v.KE.isEditor(t))throw new Error("[Slate] editor is invalid! You passed: ".concat(v.h6.stringify(t)));return t.children=o,Object.assign(t,i),{v:0,editor:t}})),{selectorContext:u,onChange:d}=function(e){var t=(0,c.useRef)([]).current,n=(0,c.useRef)({editor:e}).current,r=(0,c.useCallback)((e=>{n.editor=e,t.forEach((t=>t(e)))}),[]);return{selectorContext:(0,c.useMemo)((()=>({getSlate:()=>n.editor,addEventListener:e=>(t.push(e),()=>{t.splice(t.indexOf(e),1)})})),[t,n]),onChange:r}}(t),p=(0,c.useCallback)((()=>{r&&r(t.children),l((e=>({v:e.v+1,editor:t}))),d(t)}),[r]);(0,c.useEffect)((()=>(F.set(t,p),()=>{F.set(t,(()=>{})),a.current=!0})),[]);var[h,f]=(0,c.useState)(be.isFocused(t));return(0,c.useEffect)((()=>{f(be.isFocused(t))})),we((()=>{var e=()=>f(be.isFocused(t));return ie?(document.addEventListener("focusin",e),document.addEventListener("focusout",e),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",e)}):(document.addEventListener("focus",e,!0),document.addEventListener("blur",e,!0),()=>{document.removeEventListener("focus",e,!0),document.removeEventListener("blur",e,!0)})}),[]),c.createElement(At.Provider,{value:u},c.createElement(qe.Provider,{value:s},c.createElement(Pe.Provider,{value:s.editor},c.createElement(Pt.Provider,{value:h},n))))},It=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},Mt=(e,t,n)=>{var r=be.toDOMRange(e,t).getBoundingClientRect(),o=be.toDOMRange(e,n).getBoundingClientRect();return It(r,o)&&It(o,r)};function Nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nt(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Rt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x-slate-fragment",n=e,{apply:r,onChange:o,deleteBackward:i,addMark:a,removeMark:s}=n;return M.set(n,new WeakMap),n.addMark=(e,t)=>{var r,o;null===(r=B.get(n))||void 0===r||r(),!L.get(n)&&null!==(o=K.get(n))&&void 0!==o&&o.length&&L.set(n,null),V.delete(n),a(e,t)},n.removeMark=e=>{var t;!L.get(n)&&null!==(t=K.get(n))&&void 0!==t&&t.length&&L.set(n,null),V.delete(n),s(e)},n.deleteBackward=e=>{if("line"!==e)return i(e);if(n.selection&&v.Q6.isCollapsed(n.selection)){var t=v.KE.above(n,{match:e=>v.Hg.isElement(e)&&v.KE.isBlock(n,e),at:n.selection});if(t){var[,r]=t,o=v.KE.range(n,r,n.selection.anchor),a=((e,t)=>{var n=v.KE.range(e,v.Q6.end(t)),r=Array.from(v.KE.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(Mt(e,v.KE.range(e,r[o]),n))return v.KE.range(e,r[o],n);if(r.length<2)return v.KE.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)Mt(e,v.KE.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return v.KE.range(e,r[i],n)})(n,o);v.Q6.isCollapsed(a)||v.gB.delete(n,{at:a})}}},n.apply=e=>{var t=[],o=K.get(n);if(null!=o&&o.length){var i=o.map((t=>function(e,t){var{path:n,diff:r,id:o}=e;switch(t.type){case"insert_text":return!v.wA.equals(t.path,n)||t.offset>=r.end?e:t.offset<=r.start?{diff:{start:t.text.length+r.start,end:t.text.length+r.end,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end+t.text.length,text:r.text},id:o,path:n};case"remove_text":return!v.wA.equals(t.path,n)||t.offset>=r.end?e:t.offset+t.text.length<=r.start?{diff:{start:r.start-t.text.length,end:r.end-t.text.length,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end-t.text.length,text:r.text},id:o,path:n};case"split_node":return!v.wA.equals(t.path,n)||t.position>=r.end?{diff:r,id:o,path:v.wA.transform(n,t,{affinity:"backward"})}:t.position>r.start?{diff:{start:r.start,end:Math.min(t.position,r.end),text:r.text},id:o,path:n}:{diff:{start:r.start-t.position,end:r.end-t.position,text:r.text},id:o,path:v.wA.transform(n,t,{affinity:"forward"})};case"merge_node":return v.wA.equals(t.path,n)?{diff:{start:r.start+t.position,end:r.end+t.position,text:r.text},id:o,path:v.wA.transform(n,t)}:{diff:r,id:o,path:v.wA.transform(n,t)}}var i=v.wA.transform(n,t);return i?{diff:r,path:i,id:o}:null}(t,e))).filter(Boolean);K.set(n,i)}var a=$.get(n);a&&$.set(n,ct(n,a,e));var s=H.get(n);if(null!=s&&s.at){var l=v.bR.isPoint(null==s?void 0:s.at)?lt(n,s.at,e):ct(n,s.at,e);H.set(n,l?Ot(Ot({},s),{},{at:l}):null)}switch(e.type){case"insert_text":case"remove_text":case"set_node":case"split_node":t.push(...jt(n,e.path));break;case"set_selection":var c;null===(c=j.get(n))||void 0===c||c.unref(),j.delete(n);break;case"insert_node":case"remove_node":t.push(...jt(n,v.wA.parent(e.path)));break;case"merge_node":var u=v.wA.previous(e.path);t.push(...jt(n,u));break;case"move_node":var d=v.wA.common(v.wA.parent(e.path),v.wA.parent(e.newPath));t.push(...jt(n,d))}for(var[p,h]of(r(e),t)){var[f]=v.KE.node(n,p);I.set(f,h)}},n.setFragmentData=e=>{var{selection:r}=n;if(r){var[o,i]=v.Q6.edges(r),a=v.KE.void(n,{at:o.path}),s=v.KE.void(n,{at:i.path});if(!v.Q6.isCollapsed(r)||a){var l=be.toDOMRange(n,r),c=l.cloneContents(),u=c.childNodes[0];if(c.childNodes.forEach((e=>{e.textContent&&""!==e.textContent.trim()&&(u=e)})),s){var[d]=s,p=l.cloneRange(),h=be.toDOMNode(n,d);p.setEndAfter(h),c=p.cloneContents()}if(a&&(u=c.querySelector("[data-slate-spacer]")),Array.from(c.querySelectorAll("[data-slate-zero-width]")).forEach((e=>{var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),Q(u)){var f=u.ownerDocument.createElement("span");f.style.whiteSpace="pre",f.appendChild(u),c.appendChild(f),u=f}var m=n.getFragment(),g=JSON.stringify(m),y=window.btoa(encodeURIComponent(g));u.setAttribute("data-slate-fragment",y),e.setData("application/".concat(t),y);var b=c.ownerDocument.createElement("div");return b.appendChild(c),b.setAttribute("hidden","true"),c.ownerDocument.body.appendChild(b),e.setData("text/html",b.innerHTML),e.setData("text/plain",ne(b)),c.ownerDocument.body.removeChild(b),e}}},n.insertData=e=>{n.insertFragmentData(e)||n.insertTextData(e)},n.insertFragmentData=e=>{var r=e.getData("application/".concat(t))||(e=>{var t=e.getData("text/html"),[,n]=t.match(re)||[];return n})(e);if(r){var o=decodeURIComponent(window.atob(r)),i=JSON.parse(o);return n.insertFragment(i),!0}return!1},n.insertTextData=e=>{var t=e.getData("text/plain");if(t){var r=t.split(/\r\n|\r|\n/),o=!1;for(var i of r)o&&v.gB.splitNodes(n,{always:!0}),n.insertText(i),o=!0;return!0}return!1},n.onChange=()=>{w.unstable_batchedUpdates((()=>{var e=F.get(n);e&&e(),o()}))},n},jt=(e,t)=>{var n=[];for(var[r,o]of v.KE.levels(e,{at:t})){var i=be.findKey(e,r);n.push([o,i])}return n}},91448:(e,t)=>{"use strict";for(var n="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),r={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},o={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:n?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},i={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},a=1;a<20;a++)i["f"+a]=111+a;function s(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return l(e,t)})),o=function(e){return r.some((function(t){return c(t,e)}))};return null==n?o:o(n)}function l(e,t){var n=t&&t.byKey,o={},i=(e=e.replace("++","+add")).split("+"),a=i.length;for(var s in r)o[r[s]]=!1;var l=!0,c=!1,p=void 0;try{for(var h,f=i[Symbol.iterator]();!(l=(h=f.next()).done);l=!0){var m=h.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=d(m),y=r[v];1!==a&&y||(n?o.key=v:o.which=u(m)),y&&(o[y]=!g||null)}}catch(e){c=!0,p=e}finally{try{!l&&f.return&&f.return()}finally{if(c)throw p}}return o}function c(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&((null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r))return!1}return!0}function u(e){return e=d(e),i[e]||e.toUpperCase().charCodeAt(0)}function d(e){return e=e.toLowerCase(),e=o[e]||e}t.Sn=function(e,t){return s(e,{byKey:!0},t)}},59184:(e,t,n)=>{"use strict";n.d(t,{$k:()=>c});var r=n(31177),o=n(69101),i={isHistory:e=>(0,r.Q)(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||o.I.isOperationList(e.redos[0].operations))&&(0===e.undos.length||o.I.isOperationList(e.undos[0].operations))},a=(new WeakMap,new WeakMap),s=new WeakMap,l={isHistoryEditor:e=>i.isHistory(e.history)&&o.KE.isEditor(e),isMerging:e=>s.get(e),isSaving:e=>a.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=l.isMerging(e);s.set(e,!1),t(),s.set(e,n)},withoutSaving(e,t){var n=l.isSaving(e);a.set(e,!1),t(),a.set(e,n)}},c=e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];r.selectionBefore&&o.gB.setSelection(t,r.selectionBefore),l.withoutSaving(t,(()=>{o.KE.withoutNormalizing(t,(()=>{for(var e of r.operations)t.apply(e)}))})),e.redos.pop(),t.writeHistory("undos",r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];l.withoutSaving(t,(()=>{o.KE.withoutNormalizing(t,(()=>{var e=r.operations.map(o.I.inverse).reverse();for(var n of e)t.apply(n);r.selectionBefore&&o.gB.setSelection(t,r.selectionBefore)}))})),t.writeHistory("redos",r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:o}=t,{undos:i}=o,a=i[i.length-1],s=a&&a.operations[a.operations.length-1],c=l.isSaving(t),p=l.isMerging(t);if(null==c&&(c=d(e)),c){if(null==p&&(p=null!=a&&(0!==r.length||u(e,s))),a&&p)a.operations.push(e);else{var h={operations:[e],selectionBefore:t.selection};t.writeHistory("undos",h)}for(;i.length>100;)i.shift();o.redos=[]}n(e)},t.writeHistory=(e,n)=>{t.history[e].push(n)},t},u=(e,t)=>!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!o.wA.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!o.wA.equals(e.path,t.path)),d=(e,t)=>"set_selection"!==e.type},20265:(e,t,n)=>{"use strict";n.d(t,{Y:()=>E});var r=n(31177),o=n(69101);function i(e){return i="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},i(e)}function a(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}function s(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=new WeakMap,c=new WeakMap;class u{}class d extends u{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),s(this,"offset",void 0),s(this,"path",void 0);var{offset:t,path:n}=e;this.offset=t,this.path=n}}class p extends u{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),s(this,"offset",void 0),s(this,"path",void 0);var{offset:t,path:n}=e;this.offset=t,this.path=n}}var h=e=>c.get(e);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g=new WeakSet,v=e=>{var t=[],n=e=>{if(null!=e){var r=t[t.length-1];if("string"==typeof e){var i={text:e};g.add(i),e=i}if(o.EY.isText(e)){var a=e;o.EY.isText(r)&&g.has(r)&&g.has(a)&&o.EY.equals(r,a,{loose:!0})?r.text+=a.text:t.push(a)}else if(o.Hg.isElement(e))t.push(e);else{if(!(e instanceof u))throw new Error("Unexpected hyperscript child object: ".concat(e));var s=t[t.length-1];o.EY.isText(s)||(n(""),s=t[t.length-1]),e instanceof d?((e,t)=>{var n=e.text.length;l.set(e,[n,t])})(s,e):e instanceof p&&((e,t)=>{var n=e.text.length;c.set(e,[n,t])})(s,e)}}};for(var r of e.flat(1/0))n(r);return t};function y(e,t,n){return m(m({},t),{},{children:v(n)})}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x,S={anchor:function(e,t,n){return new d(t)},cursor:function(e,t,n){return[new d(t),new p(t)]},editor:(x=o.ie,(e,t,n)=>{var r,i=[];for(var a of n)o.Q6.isRange(a)?r=a:i.push(a);var s,c=v(i),u={},d=x();for(var[p,f]of(Object.assign(d,t),d.children=c,o.bP.texts(d))){var m=(s=p,l.get(s)),g=h(p);if(null!=m){var[y]=m;u.anchor={path:f,offset:y}}if(null!=g){var[b]=g;u.focus={path:f,offset:b}}}if(u.anchor&&!u.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<anchor />`. For collapsed selections, use `<cursor />` instead.");if(!u.anchor&&u.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<focus />`. For collapsed selections, use `<cursor />` instead.");return null!=r?d.selection=r:o.Q6.isRange(u)&&(d.selection=u),d}),element:y,focus:function(e,t,n){return new p(t)},fragment:function(e,t,n){return v(n)},selection:function(e,t,n){var r=n.find((e=>e instanceof d)),o=n.find((e=>e instanceof p));if(!r||null==r.offset||null==r.path)throw new Error("The <selection> hyperscript tag must have an <anchor> tag as a child with `path` and `offset` attributes defined.");if(!o||null==o.offset||null==o.path)throw new Error("The <selection> hyperscript tag must have a <focus> tag as a child with `path` and `offset` attributes defined.");return m({anchor:{offset:r.offset,path:r.path},focus:{offset:o.offset,path:o.path}},t)},text:function(e,t,n){var r=v(n);if(r.length>1)throw new Error("The <text> hyperscript tag must only contain a single node's worth of children.");var[i]=r;if(null==i&&(i={text:""}),!o.EY.isText(i))throw new Error("\n    The <text> hyperscript tag can only contain text content as children.");return g.delete(i),Object.assign(i,t),i}},_=e=>function(t,n){for(var o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];var s=e[t];if(!s)throw new Error("No hyperscript creator found for tag: <".concat(t,">"));return null==n&&(n={}),(0,r.Q)(n)||(i=[n].concat(i),n={}),s(t,n,i=i.filter((e=>Boolean(e))).flat())},C=e=>{var t={},n=function(){var n=e[r];if("object"!=typeof n)throw new Error("Properties specified for a hyperscript shorthand should be an object, but for the custom element <".concat(r,">  tag you passed: ").concat(n));t[r]=(e,t,r)=>y(0,w(w({},n),t),r)};for(var r in e)n();return t},E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{elements:t={}}=e,n=C(t),r=w(w(w({},S),n),e.creators);return _(r)}()},69101:(e,t,n)=>{"use strict";n.d(t,{EY:()=>X,Hg:()=>D,I:()=>j,KE:()=>B,Q6:()=>P,bP:()=>N,bR:()=>H,gB:()=>Ae,h6:()=>U,ie:()=>lt,if:()=>ot,rx:()=>Xe,wA:()=>m});var r=n(31177),o=n(73575),i={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=m.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},a={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=H.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},s={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=P.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,m={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=m.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return m.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return m.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return m.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===m.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===m.compare(e,t),isBefore:(e,t)=>-1===m.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===m.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===m.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===m.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===m.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&m.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!m.isAncestor(t,e)&&!m.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return null;var r=[...e],{affinity:o="forward"}=n;if(0===e.length)return r;switch(t.type){case"insert_node":var{path:i}=t;(m.equals(i,r)||m.endsBefore(i,r)||m.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(m.equals(a,r)||m.isAncestor(a,r))return null;m.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:s,position:l}=t;m.equals(s,r)||m.endsBefore(s,r)?r[s.length-1]-=1:m.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=l);break;case"split_node":var{path:c,position:u}=t;if(m.equals(c,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else m.endsBefore(c,r)?r[c.length-1]+=1:m.isAncestor(c,r)&&e[c.length]>=u&&(r[c.length-1]+=1,r[c.length]-=u);break;case"move_node":var{path:d,newPath:p}=t;if(m.equals(d,p))return r;if(m.isAncestor(d,r)||m.equals(d,r)){var h=p.slice();return m.endsBefore(d,p)&&d.length<p.length&&(h[d.length-1]-=1),h.concat(r.slice(d.length))}m.isSibling(d,p)&&(m.isAncestor(p,r)||m.equals(p,r))?m.endsBefore(d,r)?r[d.length-1]-=1:r[d.length-1]+=1:m.endsBefore(p,r)||m.equals(p,r)||m.isAncestor(p,r)?(m.endsBefore(d,r)&&(r[d.length-1]-=1),r[p.length-1]+=1):m.endsBefore(d,r)&&(m.equals(p,r)&&(r[p.length-1]+=1),r[d.length-1]-=1)}return r}};function g(e){return g="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},g(e)}function v(e){var t=function(e,t){if("object"!==g(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===g(t)?t:String(t)}function y(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x={transform(e,t){e.children=(0,o.mq)(e.children);var n=e.selection&&(0,o.mq)(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=N.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[s,l]of P.points(t))t[l]=H.transform(s,n);break;case"insert_text":var{path:c,offset:u,text:d}=n;if(0===d.length)break;var p=N.leaf(e,c),h=p.text.slice(0,u),f=p.text.slice(u);if(p.text=h+d+f,t)for(var[g,v]of P.points(t))t[v]=H.transform(g,n);break;case"merge_node":var{path:y}=n,b=N.get(e,y),x=m.previous(y),S=N.get(e,x),_=N.parent(e,y),C=y[y.length-1];if(X.isText(b)&&X.isText(S))S.text+=b.text;else{if(X.isText(b)||X.isText(S))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(U.stringify(b)," ").concat(U.stringify(S)));S.children.push(...b.children)}if(_.children.splice(C,1),t)for(var[E,k]of P.points(t))t[k]=H.transform(E,n);break;case"move_node":var{path:z,newPath:A}=n;if(m.isAncestor(z,A))throw new Error("Cannot move a path [".concat(z,"] to new path [").concat(A,"] because the destination is inside itself."));var D=N.get(e,z),T=N.parent(e,z),I=z[z.length-1];T.children.splice(I,1);var M=m.transform(z,n),O=N.get(e,m.parent(M)),R=M[M.length-1];if(O.children.splice(R,0,D),t)for(var[j,F]of P.points(t))t[F]=H.transform(j,n);break;case"remove_node":var{path:B}=n,L=B[B.length-1];if(N.parent(e,B).children.splice(L,1),t)for(var[V,K]of P.points(t)){var $=H.transform(V,n);if(null!=t&&null!=$)t[K]=$;else{var W=void 0,q=void 0;for(var[G,Z]of N.texts(e)){if(-1!==m.compare(Z,B)){q=[G,Z];break}W=[G,Z]}var Y=!1;W&&q&&(Y=m.equals(q[1],B)?!m.hasPrevious(q[1]):m.common(W[1],B).length<m.common(q[1],B).length),W&&!Y?(V.path=W[1],V.offset=W[0].text.length):q?(V.path=q[1],V.offset=0):t=null}}break;case"remove_text":var{path:J,offset:Q,text:ee}=n;if(0===ee.length)break;var te=N.leaf(e,J),ne=te.text.slice(0,Q),re=te.text.slice(Q+ee.length);if(te.text=ne+re,t)for(var[oe,ie]of P.points(t))t[ie]=H.transform(oe,n);break;case"set_node":var{path:ae,properties:se,newProperties:le}=n;if(0===ae.length)throw new Error("Cannot set properties on the root node!");var ce=N.get(e,ae);for(var ue in le){if("children"===ue||"text"===ue)throw new Error('Cannot set the "'.concat(ue,'" property of nodes!'));var de=le[ue];null==de?delete ce[ue]:ce[ue]=de}for(var pe in se)le.hasOwnProperty(pe)||delete ce[pe];break;case"set_selection":var{newProperties:he}=n;if(null==he)t=he;else{if(null==t){if(!P.isRange(he))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(U.stringify(he)," when there is no current selection."));t=w({},he)}for(var fe in he){var me=he[fe];if(null==me){if("anchor"===fe||"focus"===fe)throw new Error('Cannot remove the "'.concat(fe,'" selection property'));delete t[fe]}else t[fe]=me}}break;case"split_node":var{path:ge,position:ve,properties:ye}=n;if(0===ge.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(ge,"] because the root node cannot be split."));var be,we=N.get(e,ge),xe=N.parent(e,ge),Se=ge[ge.length-1];if(X.isText(we)){var _e=we.text.slice(0,ve),Ce=we.text.slice(ve);we.text=_e,be=w(w({},ye),{},{text:Ce})}else{var Ee=we.children.slice(0,ve),ke=we.children.slice(ve);we.children=Ee,be=w(w({},ye),{},{children:ke})}if(xe.children.splice(Se+1,0,be),t)for(var[ze,Pe]of P.points(t))t[Pe]=H.transform(ze,n)}return t})(e,n,t)}finally{e.children=(0,o.vD)(e.children),e.selection=n?(0,o.Qx)(n)?(0,o.vD)(n):n:null}}},S={insertNodes(e,t,n){e.insertNodes(t,n)},liftNodes(e,t){e.liftNodes(t)},mergeNodes(e,t){e.mergeNodes(t)},moveNodes(e,t){e.moveNodes(t)},removeNodes(e,t){e.removeNodes(t)},setNodes(e,t,n){e.setNodes(t,n)},splitNodes(e,t){e.splitNodes(t)},unsetNodes(e,t,n){e.unsetNodes(t,n)},unwrapNodes(e,t){e.unwrapNodes(t)},wrapNodes(e,t,n){e.wrapNodes(t,n)}},_={collapse(e,t){e.collapse(t)},deselect(e){e.deselect()},move(e,t){e.move(t)},select(e,t){e.select(t)},setPoint(e,t,n){e.setPoint(t,n)},setSelection(e,t){e.setSelection(t)}},C=(e,t)=>{for(var n in e){var o=e[n],i=t[n];if((0,r.Q)(o)&&(0,r.Q)(i)){if(!C(o,i))return!1}else if(Array.isArray(o)&&Array.isArray(i)){if(o.length!==i.length)return!1;for(var a=0;a<o.length;a++)if(o[a]!==i[a])return!1}else if(o!==i)return!1}for(var s in t)if(void 0===e[s]&&void 0!==t[s])return!1;return!0};function E(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var k=["anchor","focus"];function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var P={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return P.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=P.edges(e);return t},equals:(e,t)=>H.equals(e.anchor,t.anchor)&&H.equals(e.focus,t.focus),includes(e,t){if(P.isRange(t)){if(P.includes(e,t.anchor)||P.includes(e,t.focus))return!0;var[n,r]=P.edges(e),[o,i]=P.edges(t);return H.isBefore(n,o)&&H.isAfter(r,i)}var[a,s]=P.edges(e),l=!1,c=!1;return H.isPoint(t)?(l=H.compare(t,a)>=0,c=H.compare(t,s)<=0):(l=m.compare(t,a.path)>=0,c=m.compare(t,s.path)<=0),l&&c},intersection(e,t){var n=E(e,k),[r,o]=P.edges(e),[i,a]=P.edges(t),s=H.isBefore(r,i)?i:r,l=H.isBefore(o,a)?o:a;return H.isBefore(l,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:s,focus:l},n)},isBackward(e){var{anchor:t,focus:n}=e;return H.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return H.equals(t,n)},isExpanded:e=>!P.isCollapsed(e),isForward:e=>!P.isBackward(e),isRange:e=>(0,r.Q)(e)&&H.isPoint(e.anchor)&&H.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=P.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,o.jM)(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=P.isCollapsed(e);P.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?P.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var s=H.transform(e.anchor,t,{affinity:r}),l=H.transform(e.focus,t,{affinity:o});if(!s||!l)return null;e.anchor=s,e.focus=l}))}},A=e=>(0,r.Q)(e)&&N.isNodeList(e.children)&&!B.isEditor(e),D={isAncestor:e=>(0,r.Q)(e)&&N.isNodeList(e.children),isElement:A,isElementList:e=>Array.isArray(e)&&e.every((e=>D.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return A(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},T=["children"],I=["text"],M=new WeakMap,N={ancestor(e,t){var n=N.get(e,t);if(X.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(U.stringify(n)));return n},ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var r of m.ancestors(t,n)){var o=[N.ancestor(e,r),r];yield o}}()},child(e,t){if(X.isText(e))throw new Error("Cannot get the child of a text node: ".concat(U.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(U.stringify(e)));return n},children(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var{reverse:r=!1}=n,o=N.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var s=N.child(o,a),l=t.concat(a);yield[s,l],a=r?a-1:a+1}}()},common(e,t,n){var r=m.common(t,n);return[N.get(e,r),r]},descendant(e,t){var n=N.get(e,t);if(B.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(U.stringify(n)));return n},descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[n,r]of N.nodes(e,t))0!==r.length&&(yield[n,r])}()},elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[n,r]of N.nodes(e,t))D.isElement(n)&&(yield[n,r])}()},extractProps:e=>D.isAncestor(e)?E(e,T):E(e,I),first(e,t){for(var n=t.slice(),r=N.get(e,n);r&&!X.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(X.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(U.stringify(e)));var n=(0,o.jM)({children:e.children},(e=>{var[n,r]=P.edges(t),o=N.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!P.includes(t,n)}});for(var[,i]of o){if(!P.includes(t,i)){var a=N.parent(e,i),s=i[i.length-1];a.children.splice(s,1)}if(m.equals(i,r.path)){var l=N.leaf(e,i);l.text=l.text.slice(0,r.offset)}if(m.equals(i,n.path)){var c=N.leaf(e,i);c.text=c.text.slice(n.offset)}}B.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(X.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(U.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(X.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>X.isText(e)||D.isElement(e)||B.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=M.get(e);if(void 0!==t)return t;var n=e.every((e=>N.isNode(e)));return M.set(e,n),n},last(e,t){for(var n=t.slice(),r=N.get(e,n);r&&!X.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=N.get(e,t);if(!X.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(U.stringify(n)));return n},levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){for(var r of m.levels(t,n)){var o=N.get(e,r);yield[o,r]}}()},matches:(e,t)=>D.isElement(e)&&D.isElementProps(t)&&D.matches(e,t)||X.isText(e)&&X.isTextProps(t)&&X.matches(e,t),nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,s=[],l=e;!i||!(r?m.isBefore(s,i):m.isAfter(s,i));)if(a.has(l)||(yield[l,s]),a.has(l)||X.isText(l)||0===l.children.length||null!=n&&!1!==n([l,s])){if(0===s.length)break;if(!r){var c=m.next(s);if(N.has(e,c)){s=c,l=N.get(e,s);continue}}if(r&&0!==s[s.length-1])s=m.previous(s),l=N.get(e,s);else s=m.parent(s),l=N.get(e,s),a.add(l)}else{a.add(l);var u=r?l.children.length-1:0;m.isAncestor(s,o)&&(u=o[s.length]),s=s.concat(u),l=N.get(e,s)}}()},parent(e,t){var n=m.parent(t),r=N.get(e,n);if(X.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>X.isText(e)?e.text:e.children.map(N.string).join(""),texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(var[n,r]of N.nodes(e,t))X.isText(n)&&(yield[n,r])}()}};function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var j={isNodeOperation:e=>j.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!(0,r.Q)(e))return!1;switch(e.type){case"insert_node":case"remove_node":return m.isPath(e.path)&&N.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&m.isPath(e.path);case"merge_node":return"number"==typeof e.position&&m.isPath(e.path)&&(0,r.Q)(e.properties);case"move_node":return m.isPath(e.path)&&m.isPath(e.newPath);case"set_node":return m.isPath(e.path)&&(0,r.Q)(e.properties)&&(0,r.Q)(e.newProperties);case"set_selection":return null===e.properties&&P.isRange(e.newProperties)||null===e.newProperties&&P.isRange(e.properties)||(0,r.Q)(e.properties)&&(0,r.Q)(e.newProperties);case"split_node":return m.isPath(e.path)&&"number"==typeof e.position&&(0,r.Q)(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>j.isOperation(e))),isSelectionOperation:e=>j.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>j.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return R(R({},e),{},{type:"remove_node"});case"insert_text":return R(R({},e),{},{type:"remove_text"});case"merge_node":return R(R({},e),{},{type:"split_node",path:m.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(m.equals(t,n))return e;if(m.isSibling(n,t))return R(R({},e),{},{path:t,newPath:n});var r=m.transform(n,e),o=m.transform(m.next(n),e);return R(R({},e),{},{path:r,newPath:o});case"remove_node":return R(R({},e),{},{type:"insert_node"});case"remove_text":return R(R({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return R(R({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:s,newProperties:l}=e;return R(R({},e),{},null==s?{properties:l,newProperties:null}:null==l?{properties:null,newProperties:s}:{properties:l,newProperties:s});case"split_node":return R(R({},e),{},{type:"merge_node",path:m.next(e.path)})}}},F=new WeakMap,B={above:(e,t)=>e.above(t),addMark(e,t,n){e.addMark(t,n)},after:(e,t,n)=>e.after(t,n),before:(e,t,n)=>e.before(t,n),deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e,t){e.deleteFragment(t)},edges:(e,t)=>e.edges(t),elementReadOnly(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.elementReadOnly(t)},end:(e,t)=>e.end(t),first:(e,t)=>e.first(t),fragment:(e,t)=>e.fragment(t),hasBlocks:(e,t)=>e.hasBlocks(t),hasInlines:(e,t)=>e.hasInlines(t),hasPath:(e,t)=>e.hasPath(t),hasTexts:(e,t)=>e.hasTexts(t),insertBreak(e){e.insertBreak()},insertFragment(e,t,n){e.insertFragment(t,n)},insertNode(e,t){e.insertNode(t)},insertSoftBreak(e){e.insertSoftBreak()},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>e.isBlock(t),isEdge:(e,t,n)=>e.isEdge(t,n),isEditor:e=>(e=>{var t=F.get(e);if(void 0!==t)return t;if(!(0,r.Q)(e))return!1;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertSoftBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isElementReadOnly&&"function"==typeof e.isInline&&"function"==typeof e.isSelectable&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&"function"==typeof e.getDirtyPaths&&(null===e.marks||(0,r.Q)(e.marks))&&(null===e.selection||P.isRange(e.selection))&&N.isNodeList(e.children)&&j.isOperationList(e.operations);return F.set(e,n),n})(e),isElementReadOnly:(e,t)=>e.isElementReadOnly(t),isEmpty:(e,t)=>e.isEmpty(t),isEnd:(e,t,n)=>e.isEnd(t,n),isInline:(e,t)=>e.isInline(t),isNormalizing:e=>e.isNormalizing(),isSelectable:(e,t)=>e.isSelectable(t),isStart:(e,t,n)=>e.isStart(t,n),isVoid:(e,t)=>e.isVoid(t),last:(e,t)=>e.last(t),leaf:(e,t,n)=>e.leaf(t,n),levels:(e,t)=>e.levels(t),marks:e=>e.getMarks(),next:(e,t)=>e.next(t),node:(e,t,n)=>e.node(t,n),nodes:(e,t)=>e.nodes(t),normalize(e,t){e.normalize(t)},parent:(e,t,n)=>e.parent(t,n),path:(e,t,n)=>e.path(t,n),pathRef:(e,t,n)=>e.pathRef(t,n),pathRefs:e=>e.pathRefs(),point:(e,t,n)=>e.point(t,n),pointRef:(e,t,n)=>e.pointRef(t,n),pointRefs:e=>e.pointRefs(),positions:(e,t)=>e.positions(t),previous:(e,t)=>e.previous(t),range:(e,t,n)=>e.range(t,n),rangeRef:(e,t,n)=>e.rangeRef(t,n),rangeRefs:e=>e.rangeRefs(),removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start:(e,t)=>e.start(t),string:(e,t,n)=>e.string(t,n),unhangRange:(e,t,n)=>e.unhangRange(t,n),void:(e,t)=>e.void(t),withoutNormalizing(e,t){e.withoutNormalizing(t)},shouldMergeNodesRemovePrevNode:(e,t,n)=>e.shouldMergeNodesRemovePrevNode(t,n)},L={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(m.isPath)};function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var H={compare(e,t){var n=m.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===H.compare(e,t),isBefore:(e,t)=>-1===H.compare(e,t),equals:(e,t)=>e.offset===t.offset&&m.equals(e.path,t.path),isPoint:e=>(0,r.Q)(e)&&"number"==typeof e.offset&&m.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,o.jM)(e,(e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=m.transform(o,t,n);break;case"insert_text":m.equals(t.path,o)&&(t.offset<i||t.offset===i&&"forward"===r)&&(e.offset+=t.text.length);break;case"merge_node":m.equals(t.path,o)&&(e.offset+=t.position),e.path=m.transform(o,t,n);break;case"remove_text":m.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(m.equals(t.path,o)||m.isAncestor(t.path,o))return null;e.path=m.transform(o,t,n);break;case"split_node":if(m.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=m.transform(o,t,K(K({},n),{},{affinity:"forward"})))}else e.path=m.transform(o,t,n)}}))}},$=void 0,U={setScrubber(e){$=e},stringify:e=>JSON.stringify(e,$)},W=["text"],q=["anchor","focus"];function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Y,X={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return E(e,W)}return C(r?o(e):e,r?o(t):t)},isText:e=>(0,r.Q)(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>X.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[Z({},e)];for(var r of t){var o=E(r,q),[i,a]=P.edges(r),s=[],l=0,c=i.offset,u=a.offset;for(var d of n){var{length:p}=d.text,h=l;if(l+=p,c<=h&&l<=u)Object.assign(d,o),s.push(d);else if(c!==u&&(c===l||u===h)||c>l||u<h||u===h&&0!==h)s.push(d);else{var f=d,m=void 0,g=void 0;if(u<l){var v=u-h;g=Z(Z({},f),{},{text:f.text.slice(v)}),f=Z(Z({},f),{},{text:f.text.slice(0,v)})}if(c>h){var y=c-h;m=Z(Z({},f),{},{text:f.text.slice(0,y)}),f=Z(Z({},f),{},{text:f.text.slice(y)})}Object.assign(f,o),m&&s.push(m),s.push(f),g&&s.push(g)}}n=s}return n}},J=e=>e.selection?e.selection:e.children.length>0?B.end(e,[]):[0],Q=(e,t)=>{var[n]=B.node(e,t);return e=>e===n},ee=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?ae(e):e,o=Y.None,i=Y.None,a=0,s=null;for(var l of r){var c=l.codePointAt(0);if(!c)break;var u=ye(l,c);if([o,i]=n?[i,u]:[u,o],be(o,Y.ZWJ)&&be(i,Y.ExtPict)&&!_e(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(be(o,Y.RI)&&be(i,Y.RI)&&!(s=null!==s?!s:!!n||Ee(e.substring(0,e.length-a))))break;if(o!==Y.None&&i!==Y.None&&xe(o,i))break;a+=l.length}return a||1},te=/\s/,ne=/[\u002B\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,re=/['\u2018\u2019]/,oe=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},ie=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(te.test(t))return!1;if(re.test(t)){var o=ee(n,r),[i,a]=oe(n,o,r);if(e(i,a,r))return!0}return!ne.test(t)},ae=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(le(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(se(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},se=e=>e>=55296&&e<=56319,le=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(Y||(Y={}));var ce=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,ue=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,de=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,pe=/^[\u1100-\u115F\uA960-\uA97C]$/,he=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,fe=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,me=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,ge=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,ve=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,ye=(e,t)=>{var n=Y.Any;return-1!==e.search(ce)&&(n|=Y.Extend),8205===t&&(n|=Y.ZWJ),t>=127462&&t<=127487&&(n|=Y.RI),-1!==e.search(ue)&&(n|=Y.Prepend),-1!==e.search(de)&&(n|=Y.SpacingMark),-1!==e.search(pe)&&(n|=Y.L),-1!==e.search(he)&&(n|=Y.V),-1!==e.search(fe)&&(n|=Y.T),-1!==e.search(me)&&(n|=Y.LV),-1!==e.search(ge)&&(n|=Y.LVT),-1!==e.search(ve)&&(n|=Y.ExtPict),n};function be(e,t){return!!(e&t)}var we=[[Y.L,Y.L|Y.V|Y.LV|Y.LVT],[Y.LV|Y.V,Y.V|Y.T],[Y.LVT|Y.T,Y.T],[Y.Any,Y.Extend|Y.ZWJ],[Y.Any,Y.SpacingMark],[Y.Prepend,Y.Any],[Y.ZWJ,Y.ExtPict],[Y.RI,Y.RI]];function xe(e,t){return-1===we.findIndex((n=>be(e,n[0])&&be(t,n[1])))}var Se=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,_e=e=>-1!==e.search(Se),Ce=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Ee=e=>{var t=e.match(Ce);return null!==t&&t[0].length/2%2==1},ke={delete(e,t){e.delete(t)},insertFragment(e,t,n){e.insertFragment(t,n)},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};B.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=J(e)}=n;if(m.isPath(o)&&(o=B.range(e,o)),P.isRange(o))if(P.isCollapsed(o))o=o.anchor;else{var i=P.end(o);if(!r&&B.void(e,{at:i}))return;var a=P.start(o),s=B.pointRef(e,a),l=B.pointRef(e,i);Ae.delete(e,{at:o,voids:r});var c=s.unref(),u=l.unref();o=c||u,Ae.setSelection(e,{anchor:o,focus:o})}if(!(!r&&B.void(e,{at:o})||B.elementReadOnly(e,{at:o}))){var{path:d,offset:p}=o;t.length>0&&e.apply({type:"insert_text",path:d,offset:p,text:t})}}))}};function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ae=Pe(Pe(Pe(Pe({},x),S),_),ke),De=new WeakMap;function Te(e,t,n){var r,o,i=l.get(e)||[],a=c.get(e)||new Set,s=e=>{if(e){var t=e.join(",");o.has(t)||(o.add(t),r.push(e))}};if(n)for(var u of(r=[],o=new Set,i)){s(n(u))}else r=i,o=a;for(var d of t)s(d);l.set(e,r),c.set(e,o)}var Ie=(e,t)=>{for(var n of B.pathRefs(e))i.transform(n,t);for(var r of B.pointRefs(e))a.transform(r,t);for(var o of B.rangeRefs(e))s.transform(o,t);if(!(e=>De.get(e)||!1)(e)){var l=m.operationCanTransformPath(t)?e=>m.transform(e,t):void 0;Te(e,e.getDirtyPaths(t),l)}Ae.transform(e,t),e.operations.push(t),B.normalize(e,{operation:t}),"set_selection"===t.type&&(e.marks=null),u.get(e)||(u.set(e,!0),Promise.resolve().then((()=>{u.set(e,!1),e.onChange({operation:t}),e.operations=[]})))};function Me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function He(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var $e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r,marks:o}=e;if(r){if(o){var i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?He(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):He(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({text:t},o);Ae.insertNodes(e,i,{at:n.at,voids:n.voids})}else Ae.insertText(e,t,n);e.marks=null}};var Ue=["text"],We=["text"];var qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1,operation:r}=t,o=e=>l.get(e)||[],i=e=>{var t=o(e).pop(),n=t.join(",");return(e=>c.get(e)||new Set)(e).delete(n),t};if(B.isNormalizing(e)){if(n){var a=Array.from(N.nodes(e),(e=>{var[,t]=e;return t})),s=new Set(a.map((e=>e.join(","))));l.set(e,a),c.set(e,s)}0!==o(e).length&&B.withoutNormalizing(e,(()=>{for(var t of o(e))if(N.has(e,t)){var n=B.node(e,t),[a,s]=n;D.isElement(a)&&0===a.children.length&&e.normalizeNode(n,{operation:r})}for(var l=o(e),c=l.length,u=0;0!==l.length;){if(!e.shouldNormalize({dirtyPaths:l,iteration:u,initialDirtyPathsLength:c,operation:r}))return;var d=i(e);if(N.has(e,d)){var p=B.node(e,d);e.normalizeNode(p,{operation:r})}u++,l=o(e)}}))}};function Ge(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1,ignoreNonSelectable:a=!1}=t;if(n){var s=B.range(e,n),[l,c]=P.edges(s),u=o?c:l,d=!1,p="",h=0,f=0,g=0;for(var[v,y]of B.nodes(e,{at:n,reverse:o,voids:i,ignoreNonSelectable:a})){if(D.isElement(v)){if(!i&&(e.isVoid(v)||e.isElementReadOnly(v))){yield B.start(e,y);continue}if(e.isInline(v))continue;if(B.hasInlines(e,v)){var b=m.isAncestor(y,c.path)?c:B.end(e,y),w=m.isAncestor(y,l.path)?l:B.start(e,y);p=B.string(e,{anchor:w,focus:b},{voids:i}),d=!0}}if(X.isText(v)){var x=m.equals(y,u.path);for(x?(f=o?u.offset:v.text.length-u.offset,g=u.offset):(f=v.text.length,g=o?f:0),(x||d||"offset"===r)&&(yield{path:y,offset:g},d=!1);;){if(0===h){if(""===p)break;h=S(p,r,o),p=oe(p,h,o)[1]}if(g=o?g-h:g+h,(f-=h)<0){h=-f;break}h=0,yield{path:y,offset:g}}}}}function S(e,t,n){return"character"===t?ee(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=ee(e,t),[i,a]=oe(e,o,t);if(ie(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}}()}function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ye=(e,t)=>{var{selection:n}=e;if(n){var r=(t,n)=>{if(!X.isText(t))return!1;var[r,o]=B.parent(e,n);return!e.isVoid(r)||e.markableVoid(r)},o=P.isExpanded(n),i=!1;if(!o){var[a,s]=B.node(e,n);if(a&&r(a,s)){var[l]=B.parent(e,s);i=l&&e.markableVoid(l)}}if(o||i)Ae.unsetNodes(e,t,{match:r,split:!0,voids:!0});else{var c=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},B.marks(e)||{});delete c[t],e.marks=c,u.get(e)||e.onChange()}}},Xe=(e,t)=>{var n=B.isNormalizing(e);B.setNormalizing(e,!1);try{t()}finally{B.setNormalizing(e,n)}B.normalize(e)};function Je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var et=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};B.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest",batchDirty:a=!0}=n,{at:s,match:l,select:c}=n;if(N.isNode(t)&&(t=[t]),0!==t.length){var[u]=t;if(s||(s=J(e),!1!==c&&(c=!0)),null==c&&(c=!1),P.isRange(s))if(r||(s=B.unhangRange(e,s,{voids:o})),P.isCollapsed(s))s=s.anchor;else{var[,d]=P.edges(s),p=B.pointRef(e,d);Ae.delete(e,{at:s}),s=p.unref()}if(H.isPoint(s)){null==l&&(l=X.isText(u)?e=>X.isText(e):e.isInline(u)?t=>X.isText(t)||B.isInline(e,t):t=>D.isElement(t)&&B.isBlock(e,t));var[h]=B.nodes(e,{at:s.path,match:l,mode:i,voids:o});if(!h)return;var[,f]=h,g=B.pathRef(e,f),v=B.isEnd(e,s,f);Ae.splitNodes(e,{at:s,match:l,mode:i,voids:o});var y=g.unref();s=v?m.next(y):y}var b=m.parent(s),w=s[s.length-1];if(o||!B.void(e,{at:b})){if(a){var x=[],S=m.levels(b);((e,t,n)=>{var r=De.get(e)||!1;De.set(e,!0);try{t(),n()}finally{De.set(e,r)}})(e,(()=>{var n=function(){var t=b.concat(w);w++;var n={type:"insert_node",path:t,node:r};e.apply(n),s=m.next(s),x.push(n),X.isText?S.push(...Array.from(N.nodes(r),(e=>{var[,n]=e;return t.concat(n)}))):S.push(t)};for(var r of t)n()}),(()=>{Te(e,S,(e=>{var t=e;for(var n of x)if(m.operationCanTransformPath(n)&&!(t=m.transform(t,n)))return null;return t}))}))}else for(var _ of t){var C=b.concat(w);w++,e.apply({type:"insert_node",path:C,node:_}),s=m.next(s)}if(s=m.previous(s),c){var E=B.end(e,s);E&&Ae.select(e,E)}}}}))},tt=["text"],nt=["children"],rt=(e,t)=>{if(D.isElement(t)){var n=t;return!!B.isVoid(e,t)||1===n.children.length&&rt(e,n.children[0])}return!B.isEditor(t)},ot=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};B.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=m.isPath(i)?Q(e,i):t=>D.isElement(t)&&B.isBlock(e,t)),!n&&P.isRange(i)&&(i=B.unhangRange(e,i,{voids:r}));var s=B.nodes(e,{at:i,match:a,mode:o,voids:r}),l=Array.from(s,(t=>{var[,n]=t;return B.pathRef(e,n)}));for(var c of l){var u=c.unref();if(u){var[d]=B.node(e,u);e.apply({type:"remove_node",path:u,node:d})}}}}))},it=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};B.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:s=!1}=t;if(null==o&&(o=t=>D.isElement(t)&&B.isBlock(e,t)),P.isRange(i)&&(i=((e,t)=>{if(P.isCollapsed(t))return t.anchor;var[,n]=P.edges(t),r=B.pointRef(e,n);return Ae.delete(e,{at:t}),r.unref()})(e,i)),m.isPath(i)){var l=i,c=B.point(e,l),[u]=B.parent(e,l);o=e=>e===u,a=c.path.length-l.length+1,i=c,s=!0}if(i){var d,p=B.pointRef(e,i,{affinity:"backward"});try{var[h]=B.nodes(e,{at:i,match:o,mode:n,voids:r});if(!h)return;var f=B.void(e,{at:i,mode:"highest"});if(!r&&f){var[g,v]=f;if(D.isElement(g)&&e.isInline(g)){var y=B.after(e,v);if(!y){var b=m.next(v);Ae.insertNodes(e,{text:""},{at:b,voids:r}),y=B.point(e,b)}i=y,s=!0}a=i.path.length-v.length+1,s=!0}d=B.pointRef(e,i);var w=i.path.length-a,[,x]=h,S=i.path.slice(0,w),_=0===a?i.offset:i.path[w]+0;for(var[C,E]of B.levels(e,{at:S,reverse:!0,voids:r})){var k=!1;if(E.length<x.length||0===E.length||!r&&D.isElement(C)&&B.isVoid(e,C))break;var z=p.current,A=B.isEnd(e,z,E);if(s||!p||!B.isEdge(e,z,E)){k=!0;var T=N.extractProps(C);e.apply({type:"split_node",path:E,position:_,properties:T})}_=E[E.length-1]+(k||A?1:0)}if(null==t.at){var I=d.current||B.end(e,[]);Ae.select(e,I)}}finally{var M;p.unref(),null===(M=d)||void 0===M||M.unref()}}}))};function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lt=()=>{var e={children:[],operations:[],selection:null,marks:null,isElementReadOnly:()=>!1,isInline:()=>!1,isSelectable:()=>!0,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ie(e,...n)},addMark:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t,n)=>{var{selection:r}=e;if(r){var o=(t,n)=>{if(!X.isText(t))return!1;var[r,o]=B.parent(e,n);return!e.isVoid(r)||e.markableVoid(r)},i=P.isExpanded(r),a=!1;if(!i){var[s,l]=B.node(e,r);if(s&&o(s,l)){var[c]=B.parent(e,l);a=c&&e.markableVoid(c)}}if(i||a)Ae.setNodes(e,{[t]:n},{match:o,split:!0,voids:!0});else{var d=Ne(Ne({},B.marks(e)||{}),{},{[t]:n});e.marks=d,u.get(e)||e.onChange()}}})(e,...n)},deleteBackward:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t)=>{var{selection:n}=e;n&&P.isCollapsed(n)&&Ae.delete(e,{unit:t,reverse:!0})})(e,...n)},deleteForward:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t)=>{var{selection:n}=e;n&&P.isCollapsed(n)&&Ae.delete(e,{unit:t})})(e,...n)},deleteFragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var{direction:t="forward"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e;n&&P.isExpanded(n)&&Ae.delete(e,{reverse:"backward"===t})}(e,...n)},getFragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=>{var{selection:t}=e;return t?N.fragment(e,t):[]})(e,...n)},insertBreak:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=>{Ae.splitNodes(e,{always:!0})})(e,...n)},insertSoftBreak:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=>{Ae.splitNodes(e,{always:!0})})(e,...n)},insertFragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};B.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=J(e),batchDirty:a=!0}=n;if(t.length){if(P.isRange(i))if(r||(i=B.unhangRange(e,i,{voids:o})),P.isCollapsed(i))i=i.anchor;else{var[,s]=P.edges(i);if(!o&&B.void(e,{at:s}))return;var l=B.pointRef(e,s);Ae.delete(e,{at:i}),i=l.unref()}else m.isPath(i)&&(i=B.start(e,i));if(o||!B.void(e,{at:i})){var c=B.above(e,{at:i,match:t=>D.isElement(t)&&B.isInline(e,t),mode:"highest",voids:o});if(c){var[,u]=c;B.isEnd(e,i,u)?i=B.after(e,u):B.isStart(e,i,u)&&(i=B.before(e,u))}var d=B.above(e,{match:t=>D.isElement(t)&&B.isBlock(e,t),at:i,voids:o}),[,p]=d,h=B.isStart(e,i,p),f=B.isEnd(e,i,p),g=h&&f,v=!h||h&&f,y=!f,[,b]=N.first({children:t},[]),[,w]=N.last({children:t},[]),x=[],S=t=>{var[n,r]=t;return!(0===r.length||!g&&(v&&m.isAncestor(r,b)&&D.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)||y&&m.isAncestor(r,w)&&D.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var _ of N.nodes({children:t},{pass:S}))S(_)&&x.push(_);var C=[],E=[],k=[],z=!0,A=!1;for(var[T]of x)D.isElement(T)&&!e.isInline(T)?(z=!1,A=!0,E.push(T)):z?C.push(T):k.push(T);var[I]=B.nodes(e,{at:i,match:t=>X.isText(t)||B.isInline(e,t),mode:"highest",voids:o}),[,M]=I,O=B.isStart(e,i,M),R=B.isEnd(e,i,M),j=B.pathRef(e,f&&!k.length?m.next(p):p),F=B.pathRef(e,R?m.next(M):M);Ae.splitNodes(e,{at:i,match:t=>A?D.isElement(t)&&B.isBlock(e,t):X.isText(t)||B.isInline(e,t),mode:A?"lowest":"highest",always:A&&(!h||C.length>0)&&(!f||k.length>0),voids:o});var L,V=B.pathRef(e,!O||O&&R?m.next(M):M);if(Ae.insertNodes(e,C,{at:V.current,match:t=>X.isText(t)||B.isInline(e,t),mode:"highest",voids:o,batchDirty:a}),g&&!C.length&&E.length&&!k.length&&Ae.delete(e,{at:p,voids:o}),Ae.insertNodes(e,E,{at:j.current,match:t=>D.isElement(t)&&B.isBlock(e,t),mode:"lowest",voids:o,batchDirty:a}),Ae.insertNodes(e,k,{at:F.current,match:t=>X.isText(t)||B.isInline(e,t),mode:"highest",voids:o,batchDirty:a}),!n.at&&(k.length>0&&F.current?L=m.previous(F.current):E.length>0&&j.current?L=m.previous(j.current):V.current&&(L=m.previous(V.current)),L)){var K=B.end(e,L);Ae.select(e,K)}V.unref(),j.unref(),F.unref()}}}))}(e,...n)},insertNode:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t,n)=>{Ae.insertNodes(e,t,n)})(e,...n)},insertText:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $e(e,...n)},normalizeNode:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t)=>{var[n,r]=t;if(!X.isText(n))if(D.isElement(n)&&0===n.children.length)Ae.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!B.isEditor(n)&&D.isElement(n)&&(e.isInline(n)||0===n.children.length||X.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var s=N.get(e,r);if(!X.isText(s)){var l=s.children[i],c=s.children[i-1],u=a===n.children.length-1;(X.isText(l)||D.isElement(l)&&e.isInline(l))!==o?(Ae.removeNodes(e,{at:r.concat(i),voids:!0}),i--):D.isElement(l)?e.isInline(l)&&(null!=c&&X.isText(c)?u&&(Ae.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(Ae.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):(X.isText(l)||"children"in l||(l.children=[]),null!=c&&X.isText(c)&&(X.equals(l,c,{loose:!0})?(Ae.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===c.text?(Ae.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===l.text&&(Ae.removeNodes(e,{at:r.concat(i),voids:!0}),i--)))}}})(e,...n)},removeMark:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ye(e,...n)},getDirtyPaths:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t)=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":var{path:n}=t;return m.levels(n);case"insert_node":var{node:r,path:o}=t,i=m.levels(o),a=X.isText(r)?[]:Array.from(N.nodes(r),(e=>{var[,t]=e;return o.concat(t)}));return[...i,...a];case"merge_node":var{path:s}=t;return[...m.ancestors(s),m.previous(s)];case"move_node":var{path:l,newPath:c}=t;if(m.equals(l,c))return[];var u=[],d=[];for(var p of m.ancestors(l)){var h=m.transform(p,t);u.push(h)}for(var f of m.ancestors(c)){var g=m.transform(f,t);d.push(g)}var v=d[d.length-1],y=c[c.length-1],b=v.concat(y);return[...u,...d,b];case"remove_node":var{path:w}=t;return[...m.ancestors(w)];case"split_node":var{path:x}=t;return[...m.levels(x),m.next(x)];default:return[]}})(e,...n)},shouldNormalize:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t)=>{var{iteration:n,initialDirtyPathsLength:r}=t,o=42*r;if(n>o)throw new Error("Could not completely normalize the editor after ".concat(o," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0})(e,...n)},above:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=B.path(e,o),s="lowest"===r;for(var[l,c]of B.levels(e,{at:a,voids:n,match:i,reverse:s}))if(!X.isText(l))if(P.isRange(o)){if(m.isAncestor(c,o.anchor.path)&&m.isAncestor(c,o.focus.path))return[l,c]}else if(!m.equals(a,c))return[l,c]}}(e,...n)},after:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:B.point(e,t,{edge:"end"}),focus:B.end(e,[])},{distance:i=1}=r,a=0;for(var s of B.positions(e,Re(Re({},r),{},{at:o}))){if(a>i)break;0!==a&&(n=s),a++}return n}(e,...n)},before:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:B.start(e,[]),focus:B.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var s of B.positions(e,Fe(Fe({},r),{},{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=s),a++}return n}(e,...n)},collapse:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)Ae.select(e,r.anchor);else if("focus"===n)Ae.select(e,r.focus);else if("start"===n){var[o]=P.edges(r);Ae.select(e,o)}else if("end"===n){var[,i]=P.edges(r);Ae.select(e,i)}}(e,...n)},delete:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};B.withoutNormalizing(e,(()=>{var n,r,{reverse:o=!1,unit:i="character",distance:a=1,voids:s=!1}=t,{at:l=e.selection,hanging:c=!1}=t;if(l){var u=!1;if(P.isRange(l)&&P.isCollapsed(l)&&(u=!0,l=l.anchor),H.isPoint(l)){var d=B.void(e,{at:l,mode:"highest"});if(!s&&d){var[,p]=d;l=p}else{var h={unit:i,distance:a};l={anchor:l,focus:o?B.before(e,l,h)||B.start(e,[]):B.after(e,l,h)||B.end(e,[])},c=!0}}if(m.isPath(l))Ae.removeNodes(e,{at:l,voids:s});else if(!P.isCollapsed(l)){if(!c){var[,f]=P.edges(l),g=B.end(e,[]);H.equals(f,g)||(l=B.unhangRange(e,l,{voids:s}))}var[v,y]=P.edges(l),b=B.above(e,{match:t=>D.isElement(t)&&B.isBlock(e,t),at:v,voids:s}),w=B.above(e,{match:t=>D.isElement(t)&&B.isBlock(e,t),at:y,voids:s}),x=b&&w&&!m.equals(b[1],w[1]),S=m.equals(v.path,y.path),_=s?null:null!==(n=B.void(e,{at:v,mode:"highest"}))&&void 0!==n?n:B.elementReadOnly(e,{at:v,mode:"highest"}),C=s?null:null!==(r=B.void(e,{at:y,mode:"highest"}))&&void 0!==r?r:B.elementReadOnly(e,{at:y,mode:"highest"});if(_){var E=B.before(e,v);E&&b&&m.isAncestor(b[1],E.path)&&(v=E)}if(C){var k=B.after(e,y);k&&w&&m.isAncestor(w[1],k.path)&&(y=k)}var z,A=[];for(var T of B.nodes(e,{at:l,voids:s})){var[I,M]=T;z&&0===m.compare(M,z)||(!s&&D.isElement(I)&&(B.isVoid(e,I)||B.isElementReadOnly(e,I))||!m.isCommon(M,v.path)&&!m.isCommon(M,y.path))&&(A.push(T),z=M)}var N=Array.from(A,(t=>{var[,n]=t;return B.pathRef(e,n)})),O=B.pointRef(e,v),R=B.pointRef(e,y),j="";if(!S&&!_){var F=O.current,[L]=B.leaf(e,F),{path:V}=F,{offset:K}=v,$=L.text.slice(K);$.length>0&&(e.apply({type:"remove_text",path:V,offset:K,text:$}),j=$)}if(N.reverse().map((e=>e.unref())).filter((e=>null!==e)).forEach((t=>Ae.removeNodes(e,{at:t,voids:s}))),!C){var U=R.current,[W]=B.leaf(e,U),{path:q}=U,G=S?v.offset:0,Z=W.text.slice(G,y.offset);Z.length>0&&(e.apply({type:"remove_text",path:q,offset:G,text:Z}),j=Z)}!S&&x&&R.current&&O.current&&Ae.mergeNodes(e,{at:R.current,hanging:!0,voids:s}),u&&o&&"character"===i&&j.length>1&&j.match(/[\u0E00-\u0E7F]+/)&&Ae.insertText(e,j.slice(0,j.length-a));var Y=O.unref(),X=R.unref(),J=o?Y||X:X||Y;null==t.at&&J&&Ae.select(e,J)}}}))}(e,...n)},deselect:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=>{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})})(e,...n)},edges:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t)=>[B.start(e,t),B.end(e,t)])(e,...n)},elementReadOnly:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return B.above(e,Le(Le({},t),{},{match:t=>D.isElement(t)&&B.isElementReadOnly(e,t)}))}(e,...n)},end:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t)=>B.point(e,t,{edge:"end"}))(e,...n)},first:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t)=>{var n=B.path(e,t,{edge:"start"});return B.node(e,n)})(e,...n)},fragment:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t)=>{var n=B.range(e,t);return N.fragment(e,n)})(e,...n)},getMarks:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var{marks:t,selection:n}=e;if(!n)return null;var{anchor:r,focus:o}=n;if(t)return t;if(P.isExpanded(n)){if(B.isEnd(e,r,r.path)){var i=B.after(e,r);i&&(r=i)}var[a]=B.nodes(e,{match:X.isText,at:{anchor:r,focus:o}});if(a){var[s]=a;return E(s,Ue)}return{}}var{path:l}=r,[c]=B.leaf(e,l);if(0===r.offset){var u=B.previous(e,{at:l,match:X.isText});if(!B.above(e,{match:t=>D.isElement(t)&&B.isVoid(e,t)&&e.markableVoid(t)})){var d=B.above(e,{match:t=>D.isElement(t)&&B.isBlock(e,t)});if(u&&d){var[p,h]=u,[,f]=d;m.isAncestor(f,h)&&(c=p)}}}return E(c,We)}(e,...n)},hasBlocks:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t)=>t.children.some((t=>D.isElement(t)&&B.isBlock(e,t))))(e,...n)},hasInlines:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t)=>t.children.some((t=>X.isText(t)||B.isInline(e,t))))(e,...n)},hasPath:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t)=>N.has(e,t))(e,...n)},hasTexts:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t)=>t.children.every((e=>X.isText(e))))(e,...n)},insertNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return et(e,...n)},isBlock:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t)=>!e.isInline(t))(e,...n)},isEdge:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t,n)=>B.isStart(e,t,n)||B.isEnd(e,t,n))(e,...n)},isEmpty:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t)=>{var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&X.isText(r)&&""===r.text&&!e.isVoid(t)})(e,...n)},isEnd:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t,n)=>{var r=B.end(e,n);return H.equals(t,r)})(e,...n)},isNormalizing:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=>{var t=d.get(e);return void 0===t||t})(e,...n)},isStart:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t,n)=>{if(0!==t.offset)return!1;var r=B.start(e,n);return H.equals(t,r)})(e,...n)},last:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t)=>{var n=B.path(e,t,{edge:"end"});return B.node(e,n)})(e,...n)},leaf:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=B.path(e,t,n);return[N.leaf(e,r),r]}(e,...n)},levels:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],s=B.path(e,n);for(var[l,c]of N.levels(e,s))if(i(l,c)&&(a.push([l,c]),!o&&D.isElement(l)&&B.isVoid(e,l)))break;r&&a.reverse(),yield*a}}()}(e,...n)},liftNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};B.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=m.isPath(n)?Q(e,n):t=>D.isElement(t)&&B.isBlock(e,t)),n){var a=B.nodes(e,{at:n,match:i,mode:r,voids:o}),s=Array.from(a,(t=>{var[,n]=t;return B.pathRef(e,n)}));for(var l of s){var c=l.unref();if(c.length<2)throw new Error("Cannot lift node at a path [".concat(c,"] because it has a depth of less than `2`."));var u=B.node(e,m.parent(c)),[d,p]=u,h=c[c.length-1],{length:f}=d.children;if(1===f){var g=m.next(p);Ae.moveNodes(e,{at:c,to:g,voids:o}),Ae.removeNodes(e,{at:p,voids:o})}else if(0===h)Ae.moveNodes(e,{at:c,to:p,voids:o});else if(h===f-1){var v=m.next(p);Ae.moveNodes(e,{at:c,to:v,voids:o})}else{var y=m.next(c),b=m.next(p);Ae.splitNodes(e,{at:y,voids:o}),Ae.moveNodes(e,{at:c,to:b,voids:o})}}}}))}(e,...n)},mergeNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};B.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(m.isPath(r)){var[s]=B.parent(e,r);n=e=>s.children.includes(e)}else n=t=>D.isElement(t)&&B.isBlock(e,t);if(!o&&P.isRange(r)&&(r=B.unhangRange(e,r,{voids:i})),P.isRange(r))if(P.isCollapsed(r))r=r.anchor;else{var[,l]=P.edges(r),c=B.pointRef(e,l);Ae.delete(e,{at:r}),r=c.unref(),null==t.at&&Ae.select(e,r)}var[u]=B.nodes(e,{at:r,match:n,voids:i,mode:a}),d=B.previous(e,{at:r,match:n,voids:i,mode:a});if(u&&d){var[p,h]=u,[f,g]=d;if(0!==h.length&&0!==g.length){var v,y,b=m.next(g),w=m.common(h,g),x=m.isSibling(h,g),S=Array.from(B.levels(e,{at:h}),(e=>{var[t]=e;return t})).slice(w.length).slice(0,-1),_=B.above(e,{at:h,mode:"highest",match:t=>S.includes(t)&&rt(e,t)}),C=_&&B.pathRef(e,_[1]);if(X.isText(p)&&X.isText(f)){var k=E(p,tt);y=f.text.length,v=k}else{if(!D.isElement(p)||!D.isElement(f))throw new Error("Cannot merge the node at path [".concat(h,"] with the previous sibling because it is not the same kind: ").concat(U.stringify(p)," ").concat(U.stringify(f)));k=E(p,nt),y=f.children.length,v=k}x||Ae.moveNodes(e,{at:h,to:b,voids:i}),C&&Ae.removeNodes(e,{at:C.current,voids:i}),B.shouldMergeNodesRemovePrevNode(e,d,u)?Ae.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:b,position:y,properties:v}),C&&C.unref()}}}}))}(e,...n)},move:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=P.isBackward(n)?"focus":"anchor"),"end"===a&&(a=P.isBackward(n)?"anchor":"focus");var{anchor:s,focus:l}=n,c={distance:r,unit:o,ignoreNonSelectable:!0},u={};if(null==a||"anchor"===a){var d=i?B.before(e,s,c):B.after(e,s,c);d&&(u.anchor=d)}if(null==a||"focus"===a){var p=i?B.before(e,l,c):B.after(e,l,c);p&&(u.focus=p)}Ae.setSelection(e,u)}}(e,...n)},moveNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t)=>{B.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=m.isPath(r)?Q(e,r):t=>D.isElement(t)&&B.isBlock(e,t));var s=B.pathRef(e,n),l=B.nodes(e,{at:r,match:a,mode:o,voids:i}),c=Array.from(l,(t=>{var[,n]=t;return B.pathRef(e,n)}));for(var u of c){var d=u.unref(),p=s.current;0!==d.length&&e.apply({type:"move_node",path:d,newPath:p}),s.current&&m.isSibling(p,d)&&m.isAfter(p,d)&&(s.current=m.next(s.current))}s.unref()}}))})(e,...n)},next:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=B.after(e,i,{voids:r});if(a){var[,s]=B.last(e,[]),l=[a.path,s];if(m.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(m.isPath(i)){var[c]=B.parent(e,i);o=e=>c.children.includes(e)}else o=()=>!0;var[u]=B.nodes(e,{at:l,match:o,mode:n,voids:r});return u}}}(e,...n)},node:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=B.path(e,t,n),o=N.get(e,r);return[o,r]}(e,...n)},nodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1,ignoreNonSelectable:s=!1}=t,{match:l}=t;if(l||(l=()=>!0),n){var c,u;if(L.isSpan(n))c=n[0],u=n[1];else{var d=B.path(e,n,{edge:"start"}),p=B.path(e,n,{edge:"end"});c=i?p:d,u=i?d:p}var h,f=N.nodes(e,{reverse:i,from:c,to:u,pass:t=>{var[n]=t;return!(!D.isElement(n)||(a||!B.isVoid(e,n)&&!B.isElementReadOnly(e,n))&&(!s||B.isSelectable(e,n)))}}),g=[];for(var[v,y]of f)if(!s||!D.isElement(v)||B.isSelectable(e,v)){var b=h&&0===m.compare(y,h[1]);if("highest"!==r||!b)if(l(v,y))if("lowest"===r&&b)h=[v,y];else{var w="lowest"===r?h:[v,y];w&&(o?g.push(w):yield w),h=[v,y]}else if(o&&!b&&X.isText(v))return}"lowest"===r&&h&&(o?g.push(h):yield h),o&&(yield*g)}}()}(e,...n)},normalize:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return qe(e,...n)},parent:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=B.path(e,t,n),o=m.parent(r);return B.node(e,o)}(e,...n)},path:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(m.isPath(t))if("start"===o){var[,i]=N.first(e,t);t=i}else if("end"===o){var[,a]=N.last(e,t);t=a}return P.isRange(t)&&(t="start"===o?P.start(t):"end"===o?P.end(t):m.common(t.anchor.path,t.focus.path)),H.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t}(e,...n)},pathRef:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return B.pathRefs(e).delete(o),o.current=null,t}};return B.pathRefs(e).add(o),o}(e,...n)},pathRefs:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=>{var t=p.get(e);return t||(t=new Set,p.set(e,t)),t})(e,...n)},point:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(m.isPath(t)){var o;if("end"===r){var[,i]=N.last(e,t);o=i}else{var[,a]=N.first(e,t);o=a}var s=N.get(e,o);if(!X.isText(s))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?s.text.length:0}}if(P.isRange(t)){var[l,c]=P.edges(t);return"start"===r?l:c}return t}(e,...n)},pointRef:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return B.pointRefs(e).delete(o),o.current=null,t}};return B.pointRefs(e).add(o),o}(e,...n)},pointRefs:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=>{var t=h.get(e);return t||(t=new Set,h.set(e,t)),t})(e,...n)},positions:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ge(e,...n)},previous:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=B.before(e,i,{voids:r});if(a){var[,s]=B.first(e,[]),l=[a.path,s];if(m.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(m.isPath(i)){var[c]=B.parent(e,i);o=e=>c.children.includes(e)}else o=()=>!0;var[u]=B.nodes(e,{reverse:!0,at:l,match:o,mode:n,voids:r});return u}}}(e,...n)},range:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t,n)=>P.isRange(t)&&!n?t:{anchor:B.start(e,t),focus:B.end(e,n||t)})(e,...n)},rangeRef:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return B.rangeRefs(e).delete(o),o.current=null,t}};return B.rangeRefs(e).add(o),o}(e,...n)},rangeRefs:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=>{var t=f.get(e);return t||(t=new Set,f.set(e,t)),t})(e,...n)},removeNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ot(e,...n)},select:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t)=>{var{selection:n}=e;if(t=B.range(e,t),n)Ae.setSelection(e,t);else{if(!P.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(U.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}})(e,...n)},setNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};B.withoutNormalizing(e,(()=>{var{match:r,at:o=e.selection,compare:i,merge:a}=n,{hanging:s=!1,mode:l="lowest",split:c=!1,voids:u=!1}=n;if(o){if(null==r&&(r=m.isPath(o)?Q(e,o):t=>D.isElement(t)&&B.isBlock(e,t)),!s&&P.isRange(o)&&(o=B.unhangRange(e,o,{voids:u})),c&&P.isRange(o)){if(P.isCollapsed(o)&&B.leaf(e,o.anchor)[0].text.length>0)return;var d=B.rangeRef(e,o,{affinity:"inward"}),[p,h]=P.edges(o),f="lowest"===l?"lowest":"highest",g=B.isEnd(e,h,h.path);Ae.splitNodes(e,{at:h,match:r,mode:f,voids:u,always:!g});var v=B.isStart(e,p,p.path);Ae.splitNodes(e,{at:p,match:r,mode:f,voids:u,always:!v}),o=d.unref(),null==n.at&&Ae.select(e,o)}for(var[y,b]of(i||(i=(e,t)=>e!==t),B.nodes(e,{at:o,match:r,mode:l,voids:u}))){var w={},x={};if(0!==b.length){var S=!1;for(var _ in t)"children"!==_&&"text"!==_&&i(t[_],y[_])&&(S=!0,y.hasOwnProperty(_)&&(w[_]=y[_]),a?null!=t[_]&&(x[_]=a(y[_],t[_])):null!=t[_]&&(x[_]=t[_]));S&&e.apply({type:"set_node",path:b,properties:w,newProperties:x})}}}}))}(e,...n)},setNormalizing:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t)=>{d.set(e,t)})(e,...n)},setPoint:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=P.isBackward(r)?"focus":"anchor"),"end"===o&&(o=P.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,s="anchor"===o?i:a;Ae.setSelection(e,{["anchor"===o?"anchor":"focus"]:Qe(Qe({},s),t)})}}(e,...n)},setSelection:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t)=>{var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!H.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!H.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}})(e,...n)},splitNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return it(e,...n)},start:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t)=>B.point(e,t,{edge:"start"}))(e,...n)},string:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=B.range(e,t),[i,a]=P.edges(o),s="";for(var[l,c]of B.nodes(e,{at:o,match:X.isText,voids:r})){var u=l.text;m.equals(c,a.path)&&(u=u.slice(0,a.offset)),m.equals(c,i.path)&&(u=u.slice(i.offset)),s+=u}return s}(e,...n)},unhangRange:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=P.edges(t);if(0!==o.offset||0!==i.offset||P.isCollapsed(t)||m.hasPrevious(i.path))return t;var a=B.above(e,{at:i,match:t=>D.isElement(t)&&B.isBlock(e,t),voids:r}),s=a?a[1]:[],l={anchor:B.start(e,o),focus:i},c=!0;for(var[u,d]of B.nodes(e,{at:l,match:X.isText,reverse:!0,voids:r}))if(c)c=!1;else if(""!==u.text||m.isBefore(d,s)){i={path:d,offset:u.text.length};break}return{anchor:o,focus:i}}(e,...n)},unsetNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;Ae.setNodes(e,r,n)}(e,...n)},unwrapNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};B.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=m.isPath(i)?Q(e,i):t=>D.isElement(t)&&B.isBlock(e,t)),m.isPath(i)&&(i=B.range(e,i));var s=P.isRange(i)?B.rangeRef(e,i):null,l=B.nodes(e,{at:i,match:a,mode:n,voids:o}),c=Array.from(l,(t=>{var[,n]=t;return B.pathRef(e,n)})).reverse(),u=function(){var t=d.unref(),[n]=B.node(e,t),i=B.range(e,t);r&&s&&(i=P.intersection(s.current,i)),Ae.liftNodes(e,{at:i,match:e=>D.isAncestor(n)&&n.children.includes(e),voids:o})};for(var d of c)u();s&&s.unref()}}))}(e,...n)},void:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return B.above(e,Ke(Ke({},t),{},{match:t=>D.isElement(t)&&B.isVoid(e,t)}))}(e,...n)},withoutNormalizing:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Xe(e,...n)},wrapNodes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};B.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:s=e.selection}=n;if(s){if(null==a&&(a=m.isPath(s)?Q(e,s):e.isInline(t)?t=>D.isElement(t)&&B.isInline(e,t)||X.isText(t):t=>D.isElement(t)&&B.isBlock(e,t)),o&&P.isRange(s)){var[l,c]=P.edges(s),u=B.rangeRef(e,s,{affinity:"inward"});Ae.splitNodes(e,{at:c,match:a,voids:i}),Ae.splitNodes(e,{at:l,match:a,voids:i}),s=u.unref(),null==n.at&&Ae.select(e,s)}var d=Array.from(B.nodes(e,{at:s,match:e.isInline(t)?t=>D.isElement(t)&&B.isBlock(e,t):e=>B.isEditor(e),mode:"lowest",voids:i})),p=function(){var n=P.isRange(s)?P.intersection(s,B.range(e,h)):s;if(!n)return 0;var o=Array.from(B.nodes(e,{at:n,match:a,mode:r,voids:i}));if(o.length>0){var[l]=o,c=o[o.length-1],[,u]=l,[,d]=c;if(0===u.length&&0===d.length)return 0;var p=m.equals(u,d)?m.parent(u):m.common(u,d),f=B.range(e,u,d),g=B.node(e,p),[v]=g,y=p.length+1,b=m.next(d.slice(0,y)),w=st(st({},t),{},{children:[]});Ae.insertNodes(e,w,{at:b,voids:i}),Ae.moveNodes(e,{at:f,match:e=>D.isAncestor(v)&&v.children.includes(e),to:b.concat(0),voids:i})}};for(var[,h]of d)p()}}))}(e,...n)},shouldMergeNodesRemovePrevNode:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return((e,t)=>{var[n,r]=t;return D.isElement(n)&&B.isEmpty(e,n)||X.isText(n)&&""===n.text&&0!==r[r.length-1]})(e,...n)}};return e}},52781:e=>{e.exports='<svg viewBox="0 0 16 5" fill="black" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="2" r="1.5" transform="rotate(-180 8 2)"></circle><circle cx="14.5" cy="2" r="1.5" transform="rotate(-180 14.5 2)"></circle><circle cx="1.5" cy="2" r="1.5" transform="rotate(-180 1.5 2)"></circle></svg>'},41278:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M4 4.25c-.41 0-.75.34-.75.75v2.73c0 .41.34.75.75.75s.75-.34.75-.75V5.75h5.5v13.5H8.2c-.41 0-.75.34-.75.75s.34.75.75.75h5.6c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-2.05V5.75h5.5v1.98c0 .41.34.75.75.75s.75-.34.75-.75V5c0-.41-.34-.75-.75-.75H4ZM20.75 17c0-.41-.34-.75-.75-.75s-.75.34-.75.75v2.25H17c-.41 0-.75.34-.75.75s.34.75.75.75h2.25V23c0 .41.34.75.75.75s.75-.34.75-.75v-2.25H23c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-2.25V17Z"></path></svg>'},72522:e=>{e.exports='<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><path d="M20 12.043v17.204m8.602-8.602H11.398" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round"></path><circle cx="20" cy="20" r="19" stroke="currentColor" stroke-width="2"></circle></svg>'},41160:e=>{e.exports='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M23 11.25C17.34 11.25 12.75 6.66 12.75 1C12.75 0.59 12.41 0.25 12 0.25C11.59 0.25 11.25 0.59 11.25 1C11.25 6.66 6.66 11.25 1 11.25C0.59 11.25 0.25 11.59 0.25 12C0.25 12.41 0.59 12.75 1 12.75C6.66 12.75 11.25 17.34 11.25 23C11.25 23.41 11.59 23.75 12 23.75C12.41 23.75 12.75 23.41 12.75 23C12.75 17.34 17.34 12.75 23 12.75C23.41 12.75 23.75 12.41 23.75 12C23.75 11.59 23.41 11.25 23 11.25ZM12 18.86C10.81 15.7 8.3 13.19 5.14 12C8.3 10.81 10.81 8.3 12 5.14C13.19 8.3 15.7 10.81 18.86 12C15.7 13.19 13.19 15.7 12 18.86Z" fill="currentColor"></path></svg>'},45625:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="31" height="31" viewBox="-6 -6 37 37" fill="currentColor"><path fill-rule="evenodd" d="M10.5 2c0-.83.67-1.5 1.5-1.5h6c.4 0 .78.16 1.06.44l4 4c.28.28.44.66.44 1.06v10c0 .83-.67 1.5-1.5 1.5H12c-.83 0-1.5-.67-1.5-1.5V2ZM12 16V2h6v3c0 .55.45 1 1 1h3v10H12ZM7 3.5h2V5H7v14h11.5c0 .83-.67 1.5-1.5 1.5H7c-.83 0-1.5-.67-1.5-1.5V5c0-.83.67-1.5 1.5-1.5Zm-5 3h2V8H2v14h11.5c0 .83-.67 1.5-1.5 1.5H2c-.83 0-1.5-.67-1.5-1.5V8c0-.83.67-1.5 1.5-1.5Z" clip-rule="evenodd"></path></svg>'},78683:e=>{e.exports='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="4" fill="currentColor" fill-opacity="0.5"></circle></svg>'},28089:e=>{e.exports='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="4" fill="currentColor" fill-opacity="0.5"></circle></svg>'},45129:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m20.12 5.063-.68-.68a2.746 2.746 0 0 0-3.88 0l-12.8 12.8c-.33.32-.51.77-.51 1.23v3.34h4.34c.46 0 .91-.18 1.23-.51l12.3-12.3a2.746 2.746 0 0 0 0-3.88ZM6.76 20.183s-.11.07-.17.07H3.75v-1.84c0-.06.03-.13.07-.17L14 8.063l2.44 2.44-9.68 9.68Zm12.3-12.3-1.56 1.56-2.44-2.44 1.56-1.56c.48-.48 1.28-.48 1.76 0l.68.68c.48.48.48 1.28 0 1.76ZM23 21.753H9.43l1.5-1.5H23c.41 0 .75.34.75.75s-.34.75-.75.75Z" clip-rule="evenodd"></path></svg>'},71884:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M14.12 1.101c1.65-1.16 3.95-.48 4.72 1.38l2.11 5.11h1.56c.5 0 .9.4.9.9s-.4.9-.9.9H1.5c-.5 0-.9-.4-.9-.9s.4-.9.9-.9h1.56l2.11-5.11c.76-1.86 3.06-2.53 4.71-1.38l1.17.82c.57.4 1.32.4 1.89 0l1.17-.82h.01Zm3.33 1.96 1.87 4.54H4.68l1.87-4.54c.4-.98 1.61-1.33 2.47-.72l1.17.82c1.08.76 2.53.76 3.61 0l1.17-.82c.87-.61 2.07-.25 2.47.72h.01Zm-13.7 7.69h16.5v1c0 2.21-1.79 4-4 4-2.04 0-3.72-1.53-3.97-3.5h-.56a4.007 4.007 0 0 1-3.97 3.5c-2.21 0-4-1.79-4-4v-1Zm1.55 1.5a2.5 2.5 0 0 0 4.9 0H5.3Zm8.5 0a2.5 2.5 0 0 0 4.9 0h-4.9Zm-11.8 5a.76.76 0 0 0-.67.41c-.13.25-.11.55.06.78l2.03 2.84-1.8 1.08c-.36.21-.47.67-.26 1.03.21.36.67.47 1.03.26l2.5-1.5c.18-.11.31-.29.35-.49.04-.2 0-.42-.12-.59l-1.65-2.31h7.79v4.25c0 .41.34.75.75.75s.75-.34.75-.75v-4.25h7.79l-1.65 2.31c-.12.17-.17.38-.12.59.04.2.17.38.35.49l2.5 1.5c.36.21.82.1 1.03-.26.21-.36.1-.82-.26-1.03l-1.8-1.08 2.03-2.84c.16-.23.19-.53.06-.78a.76.76 0 0 0-.67-.41H2Z" clip-rule="evenodd"></path></svg>'},63873:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M10.97 3.97a.75.75 0 0 1 1.06 0L20.06 12l-8.03 8.03a.75.75 0 1 1-1.06-1.06l6.22-6.22H4a.75.75 0 0 1 0-1.5h13.19l-6.22-6.22a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd"></path></svg>'},38798:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3.47 12.53a.75.75 0 0 0 1.06 0l6.22-6.22V19.5a.75.75 0 0 0 1.5 0V6.31l6.22 6.22a.75.75 0 1 0 1.06-1.06L11.5 3.44l-8.03 8.03a.75.75 0 0 0 0 1.06Z" clip-rule="evenodd"></path></svg>'},7728:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M15.25 2a.75.75 0 0 1 .75-.75h6a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0V3.81L2.53 22.53a.75.75 0 0 1-1.06-1.06L20.19 2.75H16a.75.75 0 0 1-.75-.75Z" clip-rule="evenodd"></path></svg>'},55892:e=>{e.exports='<svg width="9" height="14" viewBox="0 0 9 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path id="Vector 527" d="M1 1L7 7L1 13" stroke="currentColor" stroke-width="2"></path></svg>'},56926:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3.5 3.5v12H7V8a1 1 0 0 1 1-1h7.5V3.5h-12ZM3 17h4v4a1 1 0 0 0 1 1h13a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1h-4V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1Zm17.5-8.5H17V16a1 1 0 0 1-1 1H8.5v3.5h12v-12Zm-5 1.94V8.5h-1.94l1.94 1.94Zm0 2.06-.03.03-4-4 .03-.03H9.56l5.94 5.94V12.5Zm-1.06 3L8.5 9.56v1.94l.03-.03 4 4-.03.03h1.94Zm-4 0L8.5 13.56v1.94h1.94Z" clip-rule="evenodd"></path></svg>'},11772:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M6 18.74c0 .696.564 1.26 1.26 1.26h5.79c3.321 0 5.357-1.586 5.357-4.221 0-1.8-1.028-3.172-2.871-3.579 1.543-.579 2.293-1.693 2.293-3.321C17.829 6.543 16.093 5 13.22 5H7.26A1.26 1.26 0 0 0 6 6.26v12.48Zm3.6-7.89V8h2.807c1.136 0 1.757.557 1.757 1.393 0 .921-.685 1.457-1.693 1.457H9.6Zm0 6.15v-3.15h3.171c1.286 0 1.993.6 1.993 1.564 0 1.029-.793 1.586-1.928 1.586H9.6Z"></path></svg>'},61448:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M9 1.25A2.75 2.75 0 0 0 6.25 4v18a.75.75 0 0 0 1.296.515L12 17.793l4.454 4.722A.75.75 0 0 0 17.75 22V4A2.75 2.75 0 0 0 15 1.25H9Z"></path></svg>'},43221:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3.5 14.5v-11h11v11h-11ZM2 3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3Zm13 14.5a2.5 2.5 0 0 0 2.5-2.5V8H21a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-3.5h7Z" clip-rule="evenodd"></path></svg>'},53504:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 5.25a.75.75 0 0 1 .75.75v8a.75.75 0 0 1-1.5 0V6A.75.75 0 0 1 2 5.25Zm8 0a.75.75 0 0 1 .75.75v8a.75.75 0 0 1-1.5 0V6a.75.75 0 0 1 .75-.75Zm8.75.75a.75.75 0 0 0-1.5 0v8a.75.75 0 0 0 1.5 0V6ZM6 9.25a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-1.5 0v-4A.75.75 0 0 1 6 9.25Zm8.75.75a.75.75 0 0 0-1.5 0v4a.75.75 0 0 0 1.5 0v-4ZM22 9.25a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-1.5 0v-4a.75.75 0 0 1 .75-.75ZM15.584 21H8.416a.2.2 0 0 1-.156-.325l3.584-4.48a.2.2 0 0 1 .312 0l3.584 4.48a.2.2 0 0 1-.156.325Z" clip-rule="evenodd"></path></svg>'},97783:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M11 4.24c-.41 0-.75.34-.75.75s.34.75.75.75h2.25v5.25c0 .41.34.75.75.75s.75-.34.75-.75V5.74H17c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-6Zm8-4H9c-2.62 0-4.75 2.13-4.75 4.75v6c0 2.62 2.13 4.75 4.75 4.75h10c2.62 0 4.75-2.13 4.75-4.75v-6c0-2.62-2.13-4.75-4.75-4.75Zm3.25 10.75c0 1.79-1.46 3.25-3.25 3.25H9c-1.79 0-3.25-1.46-3.25-3.25v-6C5.75 3.2 7.21 1.74 9 1.74h10c1.79 0 3.25 1.46 3.25 3.25v6Zm-9 6h1.5v3c0 .37-.27.68-.63.74l-10.17 1.7c-.2.9-1 1.57-1.95 1.57-1.1 0-2-.9-2-2s.9-2 2-2c.72 0 1.35.38 1.71.96l9.54-1.59v-2.38Z"></path></svg>'},92803:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 17l9-9H3z" fill="currentColor"></path></svg>'},62159:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" viewBox="0 0 12 12"><path fill-rule="evenodd" d="M9.53 3.97a.75.75 0 0 0-1.06 0L6 6.44 3.53 3.97a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l3-3a.75.75 0 0 0 0-1.06Z" clip-rule="evenodd"></path></svg>'},73648:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" viewBox="0 0 12 12"><path fill-rule="evenodd" d="M8.03 9.53a.75.75 0 0 0 0-1.06L5.56 6l2.47-2.47a.75.75 0 0 0-1.06-1.06l-3 3a.75.75 0 0 0 0 1.06l3 3a.75.75 0 0 0 1.06 0Z" clip-rule="evenodd"></path></svg>'},4479:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" viewBox="0 0 12 12"><path fill-rule="evenodd" d="M3.97 2.47a.75.75 0 0 0 0 1.06L6.44 6 3.97 8.47a.75.75 0 0 0 1.06 1.06l3-3a.75.75 0 0 0 0-1.06l-3-3a.75.75 0 0 0-1.06 0Z" clip-rule="evenodd"></path></svg>'},14016:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" viewBox="0 0 12 12"><path fill-rule="evenodd" d="M2.47 8.03a.75.75 0 0 0 1.06 0L6 5.56l2.47 2.47a.75.75 0 0 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 0 0 0 1.06Z" clip-rule="evenodd"></path></svg>'},32998:e=>{e.exports='<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 8l4 4m0 0l-4 4m4-4H7" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round"></path></svg>'},40452:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11Zm5.07-13.512a.75.75 0 0 0-1.14-.976l-5.422 6.326-1.932-2.318a.75.75 0 0 0-1.152.96l2.374 2.849a.917.917 0 0 0 1.4.01l5.872-6.85Z" clip-rule="evenodd"></path></svg>'},9447:e=>{e.exports='<svg width="12" height="12" viewBox="0 0 10 10" style="fill: none;" xmlns="http://www.w3.org/2000/svg"><path d="M1 5L3.5 8.5C3.5 8.5 5.5 5.5 9 1.5" stroke="currentColor" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path></svg>'},41504:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><circle cx="8" cy="8" r="7.5" stroke="currentColor"></circle><circle cx="8" cy="8" r="4" fill="currentColor"></circle></svg>'},95272:e=>{e.exports='<svg width="12" height="12" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.5 5L3.5 8L9.5 2" stroke="currentColor" stroke-width="1.25"></path></svg>'},53204:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 8 8" fill="none"><path d="M0 1L8 1L4 7L0 1Z" fill="currentColor"></path></svg>'},16652:e=>{e.exports='<svg width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path id="icon" d="M1 8L1 0L7 4L1 8Z" fill="currentColor"></path></svg>'},63645:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M11.006 2.564a.75.75 0 0 1 .988-1.128l4 3.5a.75.75 0 0 1 0 1.128l-4 3.5a.75.75 0 0 1-.988-1.128l2.558-2.239a6.25 6.25 0 1 0 4.686 6.053.75.75 0 0 1 1.5 0 7.75 7.75 0 1 1-6.397-7.632l-2.347-2.054Z"></path></svg>'},95072:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11ZM9.03 7.97a.75.75 0 0 0-1.06 1.06L10.94 12l-2.97 2.97a.75.75 0 1 0 1.06 1.06L12 13.06l2.97 2.97a.75.75 0 1 0 1.06-1.06L13.06 12l2.97-2.97a.75.75 0 0 0-1.06-1.06L12 10.94 9.03 7.97Z" clip-rule="evenodd"></path></svg>'},11899:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M5.105 18.894a.75.75 0 0 1 0-1.06L10.94 12 5.105 6.166a.75.75 0 0 1 1.061-1.06L12 10.939l5.833-5.833a.75.75 0 0 1 1.061 1.06L13.06 12l5.834 5.834a.75.75 0 1 1-1.06 1.06L12 13.061l-5.834 5.833a.75.75 0 0 1-1.06 0Z" clip-rule="evenodd"></path></svg>'},76536:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M6.5 9.75a2.75 2.75 0 0 0-2.75 2.75.75.75 0 0 1-1.5 0 4.25 4.25 0 0 1 7-3.24A4.235 4.235 0 0 1 12 8.25a4.23 4.23 0 0 1 2.75 1.01 4.25 4.25 0 0 1 5.724 6.276.75.75 0 1 1-1.05-1.072 2.75 2.75 0 0 0-3.72-4.048 4.23 4.23 0 0 1 .546 2.084 4.24 4.24 0 0 1-1.275 3.036.75.75 0 1 1-1.05-1.072c.51-.5.825-1.194.825-1.964 0-.612-.2-1.177-.538-1.634a.75.75 0 0 1-.104-.132A2.744 2.744 0 0 0 12 9.75c-.686 0-1.313.25-1.795.666a4.23 4.23 0 0 1 .545 2.084 4.24 4.24 0 0 1-1.276 3.036.75.75 0 1 1-1.05-1.072c.51-.5.826-1.194.826-1.964 0-.572-.175-1.103-.474-1.543l-.005-.004a.747.747 0 0 1-.229-.294A2.743 2.743 0 0 0 6.5 9.75Z"></path></svg>'},52296:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" fill="currentColor" viewBox="0 0 26 26"><path fill-rule="evenodd" d="M10.021 2.148a3.576 3.576 0 0 1 1.487-1.136 3.56 3.56 0 0 1 1.38-.262 3.45 3.45 0 0 1 2.846 1.414 3.607 3.607 0 0 1 2.585-.146 3.61 3.61 0 0 1 2.486 3.05 3.669 3.669 0 0 1 2.663 1.713 3.49 3.49 0 0 1 .173 3.19 3.561 3.561 0 0 1 1.2 1.537c.178.438.266.908.26 1.381a3.45 3.45 0 0 1-1.479 2.886 3.62 3.62 0 0 1-2.835 4.99 3.62 3.62 0 0 1-4.982 2.926 3.562 3.562 0 0 1-1.504 1.145 3.55 3.55 0 0 1-1.39.254 3.62 3.62 0 0 1-2.89-1.463 3.67 3.67 0 0 1-3.179-.203l-.003-.002a3.61 3.61 0 0 1-1.787-2.64 3.62 3.62 0 0 1-2.894-4.976 3.578 3.578 0 0 1-1.149-1.503A3.56 3.56 0 0 1 .75 12.92a3.46 3.46 0 0 1 1.453-2.87 3.667 3.667 0 0 1 .182-3.206l.004-.005a3.61 3.61 0 0 1 2.68-1.793l.012-.085a3.62 3.62 0 0 1 4.94-2.813Zm2.885.102a1.95 1.95 0 0 1 1.618.8 3.61 3.61 0 0 0-.445.619.75.75 0 1 0 1.303.742c.12-.21.273-.395.453-.551a.745.745 0 0 0 .166-.13 2.11 2.11 0 0 1 3.308 1.458 3.67 3.67 0 0 0-.754.317.75.75 0 1 0 .732 1.31 2.17 2.17 0 0 1 2.892.733 1.99 1.99 0 0 1 .09 1.815 3.55 3.55 0 0 0-.795-.073.75.75 0 0 0 .032 1.5 2.05 2.05 0 0 1 2.095 2.115 1.95 1.95 0 0 1-.835 1.639 3.621 3.621 0 0 0-.595-.454.75.75 0 1 0-.781 1.28 2.12 2.12 0 0 1-.743 3.9 3.613 3.613 0 0 0-.316-.723.75.75 0 1 0-1.3.746c.134.235.222.492.26.757 0 .048.005.095.014.141a2.123 2.123 0 0 1-1.946 2.27 2.12 2.12 0 0 1-.917-.13c.064-.28.094-.566.089-.854a.75.75 0 0 0-1.5.027 2.05 2.05 0 0 1-2.094 2.086h-.014a2.12 2.12 0 0 1-1.654-.801 3.66 3.66 0 0 0 .488-.622.75.75 0 0 0-1.273-.794 2.17 2.17 0 0 1-2.903.744 2.11 2.11 0 0 1-1.03-1.462c.26-.078.513-.187.752-.324a.75.75 0 0 0-.746-1.302 2.118 2.118 0 0 1-.648.242.746.746 0 0 0-.398.04 2.125 2.125 0 0 1-1.56-.676 2.12 2.12 0 0 1-.432-2.193c.28.063.567.093.855.088a.75.75 0 0 0-.027-1.5 2.06 2.06 0 0 1-2.097-2.124 1.96 1.96 0 0 1 .803-1.619c.179.172.376.325.59.459a.75.75 0 1 0 .795-1.272 2.17 2.17 0 0 1-.745-2.895 2.11 2.11 0 0 1 1.5-1.036c.079.263.188.519.327.76a.75.75 0 1 0 1.3-.746A2.12 2.12 0 0 1 9.382 3.51a3.56 3.56 0 0 0-.09.865.75.75 0 1 0 1.5-.027 2.058 2.058 0 0 1 2.115-2.097Z" clip-rule="evenodd"></path></svg>'},54116:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M21.79 11.552c-.08-.77-.42-1.51-.95-2.08-.53-.56-1.24-.95-2-1.08-.45-.08-.92-.06-1.36.03-.09-.27-.22-.54-.38-.78-.32-.5-.75-.91-1.25-1.19-.51-.3-1.08-.47-1.67-.49-.28-.01-.55.01-.82.06-.09-.26-.2-.52-.34-.76-.32-.48-.75-.9-1.26-1.19-.51-.29-1.08-.46-1.67-.49-.3-.02-.6.01-.9.07a3.54 3.54 0 0 0-1.9-2.06c-.62-.3-1.3-.4-1.97-.31-.66.09-1.29.36-1.81.78-.53.43-.92.99-1.14 1.63-.21.64-.25 1.33-.1 1.98.13.57.4 1.09.81 1.57-.17.2-.32.43-.45.66-.26.52-.4 1.1-.4 1.68 0 .58.14 1.16.42 1.71.14.24.3.47.49.67-.19.21-.36.44-.5.7-.26.52-.4 1.1-.4 1.68 0 .58.14 1.16.41 1.7.14.25.3.48.5.69-.22.24-.41.51-.56.81-.3.61-.43 1.29-.36 1.98.07.67.32 1.3.73 1.84s.97.96 1.6 1.2c.41.16.84.23 1.28.23.24 0 .48-.02.72-.07.65-.14 1.26-.45 1.75-.9.45-.42.78-.95.98-1.55.23.05.47.08.71.08h.17c.58-.03 1.15-.2 1.67-.5.51-.31.94-.74 1.24-1.24.14-.22.25-.46.34-.71.22.04.44.07.66.07h.16c.59-.03 1.16-.2 1.67-.49a3.715 3.715 0 0 0 1.62-1.96c.23.04.45.07.68.07.31 0 .63-.04.94-.12.84-.23 1.56-.75 2.05-1.47.49-.72.7-1.59.61-2.44l-.02-.01Zm-1.85 1.6c-.29.42-.72.73-1.2.86-.44.12-.9.09-1.33-.08-.43-.17-.78-.46-1.03-.84a.747.747 0 0 0-1.04-.22c-.35.22-.45.69-.22 1.04.26.41.6.75 1 1.02-.06.2-.13.39-.25.56-.19.29-.44.53-.74.71-.3.17-.64.27-.98.29-.27.01-.54-.04-.8-.13-.03-.03-.06-.06-.1-.08 0 0-.02-.01-.03-.02-.38-.21-.71-.51-.93-.88a.748.748 0 0 0-1.29.76c.26.46.62.86 1.04 1.16-.06.19-.14.37-.25.55-.19.3-.45.56-.73.74-.3.17-.64.27-.98.29-.34.01-.68-.05-.99-.2-.25-.14-.48-.32-.67-.53a.746.746 0 0 0-1.06-.06c-.31.27-.34.75-.06 1.06.18.21.39.39.61.56v.04c-.11.39-.32.73-.61 1s-.66.46-1.04.54c-.39.08-.79.04-1.17-.1-.37-.14-.7-.38-.94-.7-.24-.32-.39-.7-.43-1.09-.04-.4.04-.8.21-1.15.18-.36.46-.65.8-.86.34-.21.73-.32 1.13-.32.41 0 .75-.34.75-.75 0-.02-.01-.04-.01-.06v-.02c0-.41-.33-.74-.74-.75-.53 0-1.06.1-1.54.32-.13-.13-.24-.28-.33-.44-.16-.31-.24-.66-.24-1 0-.35.08-.69.22-.97.17-.3.4-.56.68-.75.05-.04.08-.08.12-.13.34-.18.7-.29 1.09-.3.41 0 .74-.35.73-.76 0-.41-.34-.74-.75-.74-.53 0-1.05.11-1.53.33-.13-.14-.25-.28-.33-.44a2.21 2.21 0 0 1-.24-1.01c0-.35.08-.69.24-.99.15-.29.37-.54.63-.74.25-.14.52-.25.8-.29a.76.76 0 0 0 .62-.86.76.76 0 0 0-.86-.62c-.31.05-.61.14-.89.26-.26-.28-.45-.62-.53-1-.09-.39-.07-.79.06-1.16.13-.37.36-.7.66-.95a2.14 2.14 0 0 1 2.22-.29c.36.16.66.42.89.76.22.32.34.7.35 1.11 0 .19-.01.37-.06.55-.02.09-.06.17-.09.25-.04.1-.07.21-.13.31a.752.752 0 1 0 1.3.76l.03-.06s.01 0 .01-.02c.02-.04.04-.09.06-.13.06-.12.11-.23.16-.35.13-.32.23-.65.26-1 .19-.04.38-.06.57-.05.35.02.69.12.99.29.3.18.56.42.73.69.17.29.27.62.29.95 0 .44-.1.87-.31 1.25-.2.36-.07.81.29 1.01.36.2.81.08 1.02-.28.26-.46.43-.96.48-1.48.19-.05.4-.07.6-.06.34.01.68.11.98.29.3.17.55.41.74.7.18.29.29.61.33.95 0 .3-.05.59-.13.87a.75.75 0 0 0 .72.97c.32 0 .62-.21.72-.53.08-.25.12-.5.16-.76.31-.09.63-.14.95-.08.45.08.86.31 1.17.63.31.33.5.76.55 1.21a2.1 2.1 0 0 1-.36 1.44h-.02Z"></path></svg>'},62849:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M19.143 1.25a3.74 3.74 0 0 0-2.381.86 3.739 3.739 0 0 0-2.38-.86c-.854 0-1.726.306-2.382.86a3.739 3.739 0 0 0-2.38-.86c-.854 0-1.726.306-2.382.86a3.739 3.739 0 0 0-2.38-.86c-2.034 0-3.608 1.574-3.608 3.607 0 .853.306 1.726.86 2.381a3.739 3.739 0 0 0-.86 2.381c0 .853.306 1.725.86 2.381a3.739 3.739 0 0 0-.86 2.38c0 .854.306 1.726.86 2.382a3.739 3.739 0 0 0-.86 2.38c0 2.034 1.574 3.608 3.607 3.608.853 0 1.726-.306 2.381-.86.656.554 1.528.86 2.381.86.853 0 1.726-.306 2.381-.86.656.554 1.528.86 2.381.86.853 0 1.725-.306 2.38-.86.657.554 1.529.86 2.382.86 2.033 0 3.607-1.574 3.607-3.607a3.74 3.74 0 0 0-.861-2.381c.555-.656.86-1.528.86-2.381 0-.853-.305-1.725-.86-2.381.555-.656.86-1.528.86-2.38 0-.854-.305-1.726-.86-2.382.555-.655.86-1.528.86-2.38 0-2.034-1.573-3.608-3.606-3.608Zm-3.024 2.375c-.323-.508-1.013-.875-1.738-.875-.572 0-1.121.228-1.486.573.2.436.331.924.331 1.534a.75.75 0 0 1-1.5 0c0-.41-.139-.85-.368-1.232-.324-.508-1.013-.875-1.739-.875a2.21 2.21 0 0 0-1.486.573c.2.436.332.924.332 1.534a.75.75 0 1 1-1.5 0c0-.405-.136-.839-.36-1.218l-.003-.003c-.32-.514-1.015-.886-1.745-.886-1.205 0-2.107.902-2.107 2.107 0 .572.228 1.121.573 1.487.436-.2.924-.332 1.534-.332a.75.75 0 1 1 0 1.5c-.408 0-.845.138-1.227.366-.51.322-.88 1.013-.88 1.741 0 .572.228 1.121.573 1.487.436-.2.924-.332 1.534-.332a.75.75 0 0 1 0 1.5c-.408 0-.845.138-1.227.366-.51.322-.88 1.013-.88 1.74 0 .573.228 1.122.573 1.487.436-.2.924-.331 1.534-.331a.75.75 0 0 1 0 1.5c-.408 0-.845.138-1.227.365-.51.323-.88 1.014-.88 1.742 0 1.205.902 2.107 2.107 2.107a2.21 2.21 0 0 0 1.487-.573 3.558 3.558 0 0 1-.332-1.534.75.75 0 0 1 1.5 0c0 .405.136.839.36 1.219l.002.002c.321.514 1.015.886 1.745.886a2.21 2.21 0 0 0 1.487-.573 3.558 3.558 0 0 1-.332-1.534.75.75 0 1 1 1.5 0c0 .41.14.85.369 1.232.323.508 1.013.875 1.738.875a2.21 2.21 0 0 0 1.487-.573 3.556 3.556 0 0 1-.332-1.534.75.75 0 1 1 1.5 0c0 .41.14.85.369 1.232.323.508 1.012.875 1.738.875 1.205 0 2.107-.902 2.107-2.107 0-.572-.228-1.121-.574-1.487-.435.2-.923.332-1.533.332a.75.75 0 0 1 0-1.5c.407 0 .842-.137 1.223-.363.512-.322.884-1.015.884-1.744 0-.572-.228-1.121-.574-1.487-.435.2-.923.332-1.533.332a.75.75 0 0 1 0-1.5c.408 0 .845-.138 1.227-.366.51-.322.88-1.013.88-1.74 0-.573-.228-1.122-.574-1.488-.435.2-.923.332-1.533.332a.75.75 0 0 1 0-1.5c.41 0 .848-.138 1.23-.367.509-.324.877-1.014.877-1.74 0-1.205-.902-2.107-2.107-2.107a2.21 2.21 0 0 0-1.487.573c.2.436.332.924.332 1.534a.75.75 0 0 1-1.5 0c0-.41-.14-.85-.369-1.232Z" clip-rule="evenodd"></path></svg>'},1937:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M5 3.25A2.75 2.75 0 0 0 2.25 6v10A2.75 2.75 0 0 0 5 18.75h1.25V22a.75.75 0 0 0 1.248.56l4.287-3.81H19A2.75 2.75 0 0 0 21.75 16V6A2.75 2.75 0 0 0 19 3.25H5ZM3.75 6c0-.69.56-1.25 1.25-1.25h14c.69 0 1.25.56 1.25 1.25v10c0 .69-.56 1.25-1.25 1.25h-7.5a.75.75 0 0 0-.498.19L7.75 20.33V18a.75.75 0 0 0-.75-.75H5c-.69 0-1.25-.56-1.25-1.25V6ZM8 12a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm9-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" clip-rule="evenodd"></path></svg>'},59144:e=>{e.exports='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_8282_94801)"><g filter="url(#filter0_d_8282_94801)"><path d="M3 6C3 4.89543 3.89543 4 5 4H19C20.1046 4 21 4.89543 21 6V16C21 17.1046 20.1046 18 19 18H11.5L7 22V18H5C3.89543 18 3 17.1046 3 16V6Z" fill="#FFEB84"></path><path d="M3 6C3 4.89543 3.89543 4 5 4H19C20.1046 4 21 4.89543 21 6V16C21 17.1046 20.1046 18 19 18H11.5L7 22V18H5C3.89543 18 3 17.1046 3 16V6Z" stroke="#E8B500" stroke-width="1.5" stroke-linejoin="round"></path></g><circle cx="8" cy="11" r="1" fill="black"></circle><circle cx="16" cy="11" r="1" fill="black"></circle><circle cx="12" cy="11" r="1" fill="black"></circle></g><defs><filter id="filter0_d_8282_94801" x="1.25" y="3.25" width="21.5" height="21.5" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="1"></feOffset><feGaussianBlur stdDeviation="0.5"></feGaussianBlur><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_8282_94801"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_8282_94801" result="shape"></feBlend></filter><clipPath id="clip0_8282_94801"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg>'},33260:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M5 3.25A2.75 2.75 0 0 0 2.25 6v10A2.75 2.75 0 0 0 5 18.75h1.25V22a.75.75 0 0 0 1.248.56l4.287-3.81H19A2.75 2.75 0 0 0 21.75 16V6A2.75 2.75 0 0 0 19 3.25H5ZM3.75 6c0-.69.56-1.25 1.25-1.25h14c.69 0 1.25.56 1.25 1.25v10c0 .69-.56 1.25-1.25 1.25h-7.5a.75.75 0 0 0-.498.19L7.75 20.33V18a.75.75 0 0 0-.75-.75H5c-.69 0-1.25-.56-1.25-1.25V6ZM8 12a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm9-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" clip-rule="evenodd"></path></svg>'},80069:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M7 2.25a.75.75 0 0 0-.75.75v.558a2.75 2.75 0 0 0 1.88 2.61l.789.262a.25.25 0 0 1 .165.288l-.752 3.615A6.745 6.745 0 0 0 5.25 16c0 .414.336.75.75.75h5.25V22l.75 1.75.75-1.75v-5.25H18a.75.75 0 0 0 .75-.75 6.745 6.745 0 0 0-3.082-5.667l-.752-3.615a.25.25 0 0 1 .165-.288l.789-.263a2.75 2.75 0 0 0 1.88-2.609V3a.75.75 0 0 0-.75-.75H7Zm10.197 13a5.253 5.253 0 0 0-7.821-3.798 5.253 5.253 0 0 0-2.573 3.798h10.394ZM12 9.25a6.75 6.75 0 0 0-1.972.293l.525-2.519a1.75 1.75 0 0 0-1.16-2.017l-.788-.263a1.25 1.25 0 0 1-.84-.994h8.47a1.25 1.25 0 0 1-.84.994l-.788.263a1.75 1.75 0 0 0-1.16 2.017l.525 2.519A6.75 6.75 0 0 0 12 9.25Z" clip-rule="evenodd"></path></svg>'},60652:e=>{e.exports='<svg width="84" height="84" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M40 42H0M84 42H44M42 84V44M42 40V0M3 12V0M81 72v12M72 3h11M12 81H1M12 3H1M72 81h11M81 12V0M3 72v12" stroke="#fff" stroke-width="6"></path><path d="M40 42H1M83 42H44M42 83V44M42 40V1M3 11V1M81 73v10M73 3h10M11 81H1M11 3H1M73 81h10M81 11V1M3 73v10" stroke="#000" stroke-width="4"></path></svg>'},75778:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M3.5 6H2V2h4v1.5H3.5V6Zm2.75 2c0-.41.34-.75.75-.75h10c.41 0 .75.34.75.75s-.34.75-.75.75H7c-.41 0-.75-.34-.75-.75Zm0 4c0-.41.34-.75.75-.75h10c.41 0 .75.34.75.75s-.34.75-.75.75H7c-.41 0-.75-.34-.75-.75ZM7 15.25c-.41 0-.75.34-.75.75s.34.75.75.75h6c.41 0 .75-.34.75-.75s-.34-.75-.75-.75H7ZM18 2v1.5h2.5V6H22V2h-4ZM3.5 18H2v4h4v-1.5H3.5V18ZM18 22v-1.5h2.5V18H22v4h-4Zm-9 0v-1.5h6V22H9ZM9 2v1.5h6V2H9ZM2 9h1.5v6H2V9Zm20 0h-1.5v6H22V9Z"></path></svg>'},86103:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M12.994 2.564a.75.75 0 0 0-.988-1.128l-4 3.5a.75.75 0 0 0 0 1.128l4 3.5a.75.75 0 0 0 .988-1.128l-2.558-2.239A6.25 6.25 0 1 1 5.75 12.25a.75.75 0 0 0-1.5 0 7.75 7.75 0 1 0 6.397-7.632l2.347-2.054Z"></path></svg>'},42543:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m21.878 13.565-1.482-.233a8.583 8.583 0 0 0 0-2.664l1.482-.233a10.079 10.079 0 0 1 0 3.13Zm-.54-5.15-1.4.538a8.489 8.489 0 0 0-1.331-2.302l1.165-.944a9.991 9.991 0 0 1 1.566 2.708Zm-3.045-4.187-.944 1.165a8.49 8.49 0 0 0-2.302-1.331l.538-1.4a10 10 0 0 1 2.708 1.566Zm-4.728-2.106-.233 1.482a8.575 8.575 0 0 0-2.664 0l-.233-1.482a10.075 10.075 0 0 1 3.13 0Zm-5.15.54.538 1.4a8.49 8.49 0 0 0-2.302 1.331l-.944-1.165a9.99 9.99 0 0 1 2.708-1.566ZM4.228 5.707l1.165.944a8.49 8.49 0 0 0-1.331 2.302l-1.4-.538a9.99 9.99 0 0 1 1.566-2.708Zm-2.106 4.728a10.075 10.075 0 0 0 0 3.13l1.482-.233a8.575 8.575 0 0 1 0-2.664l-1.482-.233Zm.54 5.15 1.4-.538a8.49 8.49 0 0 0 1.331 2.302l-1.165.944a9.99 9.99 0 0 1-1.566-2.708Zm3.045 4.187.944-1.165a8.49 8.49 0 0 0 2.302 1.331l-.538 1.4a9.991 9.991 0 0 1-2.708-1.566Zm4.728 2.106.233-1.482a8.583 8.583 0 0 0 2.664 0l.233 1.482a10.079 10.079 0 0 1-3.13 0Zm5.15-.54-.538-1.4a8.49 8.49 0 0 0 2.302-1.331l.944 1.165a9.992 9.992 0 0 1-2.708 1.566Zm4.187-3.045-1.165-.944a8.49 8.49 0 0 0 1.331-2.302l1.4.538a10 10 0 0 1-1.566 2.708Z" clip-rule="evenodd"></path></svg>'},623:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="m6.72 4.594.73-1.3-2.71-1.53c-1-.56-2.24.16-2.24 1.31v2.99H4v-3l2.72 1.53Zm4.35 2.45-2.61-1.47.74-1.31 2.61 1.47-.74 1.31Zm9.68 3.72c1.02.57 1.02 2.04 0 2.61l-2.84 1.6-.73-1.31 2.84-1.59-2.84-1.6.73-1.31 2.84 1.59v.01Zm-4.58 5.2-2.61 1.47-.74-1.31 2.61-1.47.74 1.31Zm-6.97 3.92 2.61-1.47-.74-1.31-2.61 1.47.74 1.31Zm-1.75.98-2.71 1.53c-1 .56-2.24-.16-2.24-1.31v-3.02H4v3.02l2.72-1.53.73 1.31Zm5.37-12.83 2.61 1.47.74-1.31-2.61-1.47-.74 1.31ZM4 16.064v-3H2.5v3H4Zm0-8v3H2.5v-3H4Z"></path></svg>'},35470:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M21 6h-1.5V4.5H18V3h2c.55 0 1 .45 1 1v2ZM3 18h1.5v1.5H6V21H4c-.55 0-1-.45-1-1v-2ZM4.5 6H3V4c0-.55.45-1 1-1h2v1.5H4.5V6ZM21 18h-1.5v1.5H18V21h2c.55 0 1-.45 1-1v-2ZM8 4.5V3h3v1.5H8Zm0 15V21h3v-1.5H8ZM3 8h1.5v3H3V8Zm18 0h-1.5v3H21V8Zm-8-3.5V3h3v1.5h-3Zm0 15V21h3v-1.5h-3ZM3 13h1.5v3H3v-3Zm18 0h-1.5v3H21v-3Z"></path></svg>'},7022:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M15.03 11.8c-.47-.18-.78-.64-.78-1.15V6.41c0-.64-.52-1.16-1.16-1.16h-.34v-1h.75a1.25 1.25 0 0 0 0-2.5h-.75V1.5c0-.69-.56-1.25-1.25-1.25h-3c-.69 0-1.25.56-1.25 1.25v3.75h-.34c-.64 0-1.16.52-1.16 1.16v4.24c0 .51-.31.97-.78 1.15a2.75 2.75 0 0 0-1.72 2.55v5.24c0 2.3 1.86 4.16 4.16 4.16h5.18c2.3 0 4.16-1.86 4.16-4.16v-5.24c0-1.12-.68-2.13-1.72-2.55ZM8.75 1.75h2.5v3.5h-2.5v-3.5Zm6.5 17.84c0 1.47-1.19 2.66-2.66 2.66H7.41c-1.47 0-2.66-1.19-2.66-2.66v-5.24c0-.51.31-.97.78-1.15a2.75 2.75 0 0 0 1.72-2.55v-3.9h5.5v3.9c0 1.12.68 2.13 1.72 2.55.47.18.78.64.78 1.15v5.24Zm1.72-15.62c.29-.29.77-.29 1.06 0l.5.5c.26.26.68.26.94 0 .85-.85 2.22-.85 3.06 0l.5.5c.29.29.29.77 0 1.06-.29.29-.77.29-1.06 0l-.5-.5a.664.664 0 0 0-.94 0c-.85.85-2.22.85-3.06 0l-.5-.5a.754.754 0 0 1 0-1.06Zm1.06-3a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06l.5.5c.85.85 2.22.85 3.06 0 .26-.26.68-.26.94 0l.5.5c.29.29.77.29 1.06 0 .29-.29.29-.77 0-1.06l-.5-.5c-.85-.85-2.22-.85-3.06 0-.26.26-.68.26-.94 0l-.5-.5Z" clip-rule="evenodd"></path></svg>'},53992:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M9.75 4a2.25 2.25 0 0 1 4.5 0v.25h-4.5V4Zm6 0a3.75 3.75 0 1 0-7.5 0v.25H3a.75.75 0 0 0 0 1.5h1.25V20A2.75 2.75 0 0 0 7 22.75h10A2.75 2.75 0 0 0 19.75 20V5.75H21a.75.75 0 0 0 0-1.5h-5.25V4Zm-10 16V5.75h12.5V20c0 .69-.56 1.25-1.25 1.25H7c-.69 0-1.25-.56-1.25-1.25Zm7-11a.75.75 0 0 0-1.5 0v9a.75.75 0 0 0 1.5 0V9ZM8.5 8.25a.75.75 0 0 1 .75.75v9a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm7.75.75a.75.75 0 0 0-1.5 0v9a.75.75 0 0 0 1.5 0V9Z" clip-rule="evenodd"></path></svg>'},78155:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11Zm4.03-13.97a.75.75 0 0 0-1.06-1.06l-7 7a.75.75 0 1 0 1.06 1.06l7-7Z" clip-rule="evenodd"></path></svg>'},83691:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11Zm5.07-13.512a.75.75 0 0 0-1.14-.976l-5.422 6.326-1.932-2.318a.75.75 0 0 0-1.152.96l2.374 2.849a.917.917 0 0 0 1.4.01l5.872-6.85Z" clip-rule="evenodd"></path></svg>'},69876:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M.75 5.25A.75.75 0 0 1 1.5 6v5.996l4.466-4.523a.75.75 0 1 1 1.068 1.054l-2.69 2.723h15.311l-2.689-2.723a.75.75 0 1 1 1.068-1.054l4.466 4.523V6A.75.75 0 0 1 24 6v12a.75.75 0 0 1-1.5 0v-5.996l-4.466 4.523a.75.75 0 0 1-1.067-1.054l2.689-2.723H4.345l2.689 2.723a.75.75 0 0 1-1.068 1.054L1.5 12.004V18A.75.75 0 0 1 0 18V6a.75.75 0 0 1 .75-.75Z"></path></svg>'},28488:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M9.5 19.75A1.75 1.75 0 0 0 11.25 18v-3h-1.5v3a.25.25 0 0 1-.25.25H2a.25.25 0 0 1-.25-.25V6A.25.25 0 0 1 2 5.75h7.5a.25.25 0 0 1 .25.25v3h1.5V6A1.75 1.75 0 0 0 9.5 4.25H2A1.75 1.75 0 0 0 .25 6v12c0 .966.784 1.75 1.75 1.75h7.5ZM12.75 6c0-.966.784-1.75 1.75-1.75H22c.966 0 1.75.784 1.75 1.75v12A1.75 1.75 0 0 1 22 19.75h-7.5A1.75 1.75 0 0 1 12.75 18v-3h1.5v3c0 .138.112.25.25.25H22a.25.25 0 0 0 .25-.25V6a.25.25 0 0 0-.25-.25h-7.5a.25.25 0 0 0-.25.25v3h-1.5V6ZM7.53 8.47a.75.75 0 0 1 0 1.06l-1.72 1.72h12.38l-1.72-1.72a.75.75 0 0 1 1.06-1.06l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06l1.72-1.72H5.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 0 1 1.06 0Z" clip-rule="evenodd"></path></svg>'},60113:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M7 3a.75.75 0 0 0-1.5 0v13.5c0 .966.784 1.75 1.75 1.75H16v-1.5H7.25A.25.25 0 0 1 7 16.5V3Zm10.5 17.5a.75.75 0 0 0 1.5 0V7a1.75 1.75 0 0 0-1.75-1.75H8.5v1.5h8.75a.25.25 0 0 1 .25.25v13.5Zm5.5-2.25h-2.5v-1.5H23a.75.75 0 0 1 0 1.5Zm-19-13H1a.75.75 0 0 0 0 1.5h3v-1.5Z" clip-rule="evenodd"></path></svg>'},29628:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2.5 2A1.5 1.5 0 0 1 4 .5h8a1.5 1.5 0 0 1 1.06.44l4 4A1.5 1.5 0 0 1 17.5 6v.366a4.024 4.024 0 0 0-.293.266L16 7.84V6h-3a1 1 0 0 1-1-1V2H4v16h2.093c-.22.463-.325.979-.298 1.5H4A1.5 1.5 0 0 1 2.5 18V2Zm20.363 6.782a2.48 2.48 0 0 1 0 3.507L12.32 22.833a1.615 1.615 0 0 1-1.142.473H7.25V19.38c0-.428.17-.839.473-1.142L18.267 7.693a2.48 2.48 0 0 1 3.507 0l1.09 1.09Zm-1.06 2.446a.98.98 0 0 0 0-1.385l-1.09-1.09a.98.98 0 0 0-1.385 0l-1.075 1.075 2.475 2.475 1.075-1.075Zm-2.136 2.136-2.475-2.475-8.408 8.409a.115.115 0 0 0-.034.081v2.427h2.427a.12.12 0 0 0 .082-.033l8.408-8.409Z" clip-rule="evenodd"></path></svg>'},14478:e=>{e.exports='<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="28.5" cy="28.5" r="3" fill="black" stroke="white"></circle><circle cx="5.99992" cy="5.99992" r="4.99992" fill="white"></circle><circle cx="5.99992" cy="5.99992" r="4.24992" stroke="#4537DE" stroke-width="1.5"></circle><g filter="url(#filter0_d_9235_307392)"><path fill-rule="evenodd" clip-rule="evenodd" d="M22.0852 19.2713C23.2183 17.0319 22.8204 14.35 20.8917 12.4213C18.9965 10.5262 16.6054 9.96035 14.0173 9.34793C11.4553 8.74167 8.70028 8.08975 6.04248 6.05731C8.07492 8.71512 8.72683 11.4702 9.33307 14.0322C9.94547 16.6203 10.5113 19.0115 12.4064 20.9066C14.3352 22.8354 17.0173 23.2332 19.2568 22.0999L21.5991 24.4421L24.4276 21.6137L22.0852 19.2713Z" fill="white"></path><path d="M22.0852 19.2713L21.4903 18.9704L21.2723 19.4013L21.6138 19.7427L22.0852 19.2713ZM14.0173 9.34793L14.1709 8.69918L14.0173 9.34793ZM6.04248 6.05731L6.44745 5.52774L5.51291 6.46228L6.04248 6.05731ZM9.33307 14.0322L9.98182 13.8787L9.33307 14.0322ZM19.2568 22.0999L19.7283 21.6285L19.3868 21.2869L18.9558 21.505L19.2568 22.0999ZM21.5991 24.4421L21.1277 24.9135L21.5991 25.3849L22.0705 24.9135L21.5991 24.4421ZM24.4276 21.6137L24.899 22.0851L25.3704 21.6137L24.899 21.1423L24.4276 21.6137ZM20.4203 12.8927C22.1507 14.6231 22.4899 16.9948 21.4903 18.9704L22.6801 19.5723C23.9466 17.0691 23.4901 14.077 21.3631 11.9499L20.4203 12.8927ZM13.8638 9.99668C16.4809 10.616 18.6795 11.1519 20.4203 12.8927L21.3631 11.9499C19.3136 9.90044 16.7299 9.30474 14.1709 8.69918L13.8638 9.99668ZM5.63751 6.58688C8.42122 8.7156 11.3074 9.39175 13.8638 9.99668L14.1709 8.69918C11.6032 8.0916 8.97935 7.4639 6.44745 5.52774L5.63751 6.58688ZM9.98182 13.8787C9.3769 11.3223 8.70077 8.43605 6.57205 5.65235L5.51291 6.46228C7.44907 8.99419 8.07675 11.6181 8.68432 14.1857L9.98182 13.8787ZM12.8778 20.4352C11.137 18.6944 10.6011 16.4958 9.98182 13.8787L8.68432 14.1857C9.28986 16.7448 9.88554 19.3285 11.935 21.378L12.8778 20.4352ZM18.9558 21.505C16.9802 22.5048 14.6083 22.1657 12.8778 20.4352L11.935 21.378C14.0622 23.5052 17.0545 23.9615 19.5579 22.6947L18.9558 21.505ZM22.0705 23.9707L19.7283 21.6285L18.7854 22.5713L21.1277 24.9135L22.0705 23.9707ZM23.9562 21.1423L21.1277 23.9707L22.0705 24.9135L24.899 22.0851L23.9562 21.1423ZM21.6138 19.7427L23.9562 22.0851L24.899 21.1423L22.5566 18.7999L21.6138 19.7427Z" fill="black"></path><path d="M6.74951 6.7644L15.9419 15.9568" stroke="black" stroke-width="1.33333"></path><circle cx="16.6492" cy="16.6639" r="2" transform="rotate(-45 16.6492 16.6639)" fill="black"></circle></g><defs><filter id="filter0_d_9235_307392" x="2.84603" y="4.63882" width="25.1912" height="25.1906" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="1.77778"></feOffset><feGaussianBlur stdDeviation="1.33333"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_9235_307392"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_9235_307392" result="shape"></feBlend></filter></defs></svg>'},69356:e=>{e.exports='<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="5.99992" cy="5.99992" r="4.99992" fill="white"></circle><circle cx="5.99992" cy="5.99992" r="4.24992" stroke="#4537DE" stroke-width="1.5"></circle><g filter="url(#filter0_d_9235_307392)"><path fill-rule="evenodd" clip-rule="evenodd" d="M22.0852 19.2713C23.2183 17.0319 22.8204 14.35 20.8917 12.4213C18.9965 10.5262 16.6054 9.96035 14.0173 9.34793C11.4553 8.74167 8.70028 8.08975 6.04248 6.05731C8.07492 8.71512 8.72683 11.4702 9.33307 14.0322C9.94547 16.6203 10.5113 19.0115 12.4064 20.9066C14.3352 22.8354 17.0173 23.2332 19.2568 22.0999L21.5991 24.4421L24.4276 21.6137L22.0852 19.2713Z" fill="white"></path><path d="M22.0852 19.2713L21.4903 18.9704L21.2723 19.4013L21.6138 19.7427L22.0852 19.2713ZM14.0173 9.34793L14.1709 8.69918L14.0173 9.34793ZM6.04248 6.05731L6.44745 5.52774L5.51291 6.46228L6.04248 6.05731ZM9.33307 14.0322L9.98182 13.8787L9.33307 14.0322ZM19.2568 22.0999L19.7283 21.6285L19.3868 21.2869L18.9558 21.505L19.2568 22.0999ZM21.5991 24.4421L21.1277 24.9135L21.5991 25.3849L22.0705 24.9135L21.5991 24.4421ZM24.4276 21.6137L24.899 22.0851L25.3704 21.6137L24.899 21.1423L24.4276 21.6137ZM20.4203 12.8927C22.1507 14.6231 22.4899 16.9948 21.4903 18.9704L22.6801 19.5723C23.9466 17.0691 23.4901 14.077 21.3631 11.9499L20.4203 12.8927ZM13.8638 9.99668C16.4809 10.616 18.6795 11.1519 20.4203 12.8927L21.3631 11.9499C19.3136 9.90044 16.7299 9.30474 14.1709 8.69918L13.8638 9.99668ZM5.63751 6.58688C8.42122 8.7156 11.3074 9.39175 13.8638 9.99668L14.1709 8.69918C11.6032 8.0916 8.97935 7.4639 6.44745 5.52774L5.63751 6.58688ZM9.98182 13.8787C9.3769 11.3223 8.70077 8.43605 6.57205 5.65235L5.51291 6.46228C7.44907 8.99419 8.07675 11.6181 8.68432 14.1857L9.98182 13.8787ZM12.8778 20.4352C11.137 18.6944 10.6011 16.4958 9.98182 13.8787L8.68432 14.1857C9.28986 16.7448 9.88554 19.3285 11.935 21.378L12.8778 20.4352ZM18.9558 21.505C16.9802 22.5048 14.6083 22.1657 12.8778 20.4352L11.935 21.378C14.0622 23.5052 17.0545 23.9615 19.5579 22.6947L18.9558 21.505ZM22.0705 23.9707L19.7283 21.6285L18.7854 22.5713L21.1277 24.9135L22.0705 23.9707ZM23.9562 21.1423L21.1277 23.9707L22.0705 24.9135L24.899 22.0851L23.9562 21.1423ZM21.6138 19.7427L23.9562 22.0851L24.899 21.1423L22.5566 18.7999L21.6138 19.7427Z" fill="black"></path><path d="M6.74951 6.7644L15.9419 15.9568" stroke="black" stroke-width="1.33333"></path><circle cx="16.6492" cy="16.6639" r="2" transform="rotate(-45 16.6492 16.6639)" fill="black"></circle></g><defs><filter id="filter0_d_9235_307392" x="2.84603" y="4.63882" width="25.1912" height="25.1906" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="1.77778"></feOffset><feGaussianBlur stdDeviation="1.33333"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_9235_307392"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_9235_307392" result="shape"></feBlend></filter></defs></svg>'},15157:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M15.556 3.384a2.75 2.75 0 0 1 3.889 0l1.171 1.171a2.75 2.75 0 0 1 0 3.89L7.823 21.236a1.75 1.75 0 0 1-1.237.513H2.25v-4.336c0-.464.184-.91.513-1.237L15.556 3.384Zm2.828 1.06a1.25 1.25 0 0 0-1.768 0L15.061 6 18 8.94l1.555-1.556a1.25 1.25 0 0 0 0-1.768l-1.171-1.172ZM16.939 10 14 7.06 3.823 17.238a.25.25 0 0 0-.073.177v2.836h2.836a.25.25 0 0 0 .177-.073L16.939 10Z" clip-rule="evenodd"></path></svg>'},48482:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M12.75 12c0-.41-.34-.75-.75-.75s-.75.34-.75.75v2.25H9c-.41 0-.75.34-.75.75s.34.75.75.75h2.25V18c0 .41.34.75.75.75s.75-.34.75-.75v-2.25H15c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-2.25V12Zm7.78-6.03-5.5-5.5a.75.75 0 0 0-.53-.22H5c-.97 0-1.75.78-1.75 1.75v20c0 .97.78 1.75 1.75 1.75h14c.97 0 1.75-.78 1.75-1.75V6.5c0-.2-.08-.39-.22-.53ZM19.25 22c0 .14-.11.25-.25.25H5c-.14 0-.25-.11-.25-.25V2c0-.14.11-.25.25-.25h8.75V6.5c0 .41.34.75.75.75h4.75V22Z"></path></svg>'},20196:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M10 .5c-.83 0-1.5.67-1.5 1.5v1H10V2h8v3c0 .55.45 1 1 1h3v12h-3v1.5h3c.83 0 1.5-.67 1.5-1.5V6c0-.4-.16-.78-.44-1.06l-4-4C18.78.66 18.4.5 18 .5h-8Zm.75 12.5c0-.41-.34-.75-.75-.75s-.75.34-.75.75v2.25H7c-.41 0-.75.34-.75.75s.34.75.75.75h2.25V19c0 .41.34.75.75.75s.75-.34.75-.75v-2.25H13c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-2.25V13Zm6.31-4.06-4-4c-.28-.28-.66-.44-1.06-.44H4c-.83 0-1.5.67-1.5 1.5v16c0 .83.67 1.5 1.5 1.5h12c.83 0 1.5-.67 1.5-1.5V10c0-.4-.16-.78-.44-1.06ZM16 22H4V6h8v3c0 .55.45 1 1 1h3v12Z"></path></svg>'},38984:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M.25 13.06c0 .41.34.75.75.75s.75-.34.75-.75v-2c0-.69.56-1.25 1.25-1.25h18c.69 0 1.25.56 1.25 1.25v2c0 .41.34.75.75.75s.75-.34.75-.75v-2c0-1.52-1.23-2.75-2.75-2.75h-8.25V2.87l1.72 1.72c.29.29.77.29 1.06 0 .29-.29.29-.77 0-1.06L12 0 8.47 3.53c-.29.29-.29.77 0 1.06.29.29.77.29 1.06 0l1.72-1.72v5.44H3C1.48 8.31.25 9.54.25 11.06v2ZM2 23.81c-.97 0-1.75-.78-1.75-1.75v-5c0-.97.78-1.75 1.75-1.75h3c.97 0 1.75.78 1.75 1.75v5c0 .97-.78 1.75-1.75 1.75H2Zm-.25-1.75c0 .14.11.25.25.25h3c.14 0 .25-.11.25-.25v-5c0-.14-.11-.25-.25-.25H2c-.14 0-.25.11-.25.25v5Zm7 0c0 .97.78 1.75 1.75 1.75h3c.97 0 1.75-.78 1.75-1.75v-5c0-.97-.78-1.75-1.75-1.75h-3c-.97 0-1.75.78-1.75 1.75v5Zm1.75.25c-.14 0-.25-.11-.25-.25v-5c0-.14.11-.25.25-.25h3c.14 0 .25.11.25.25v5c0 .14-.11.25-.25.25h-3Zm8.5 1.5c-.97 0-1.75-.78-1.75-1.75v-5c0-.97.78-1.75 1.75-1.75h3c.97 0 1.75.78 1.75 1.75v5c0 .97-.78 1.75-1.75 1.75h-3Zm-.25-1.75c0 .14.11.25.25.25h3c.14 0 .25-.11.25-.25v-5c0-.14-.11-.25-.25-.25h-3c-.14 0-.25.11-.25.25v5Z"></path></svg>'},65856:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 21.5a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19Zm0 1.5c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11Zm1.25-5.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0ZM9.75 9a2.25 2.25 0 1 1 2.986 2.127c-.678.235-1.486.87-1.486 1.873v.5a.75.75 0 0 0 1.5 0V13c0-.056.02-.13.102-.219a.92.92 0 0 1 .375-.237A3.751 3.751 0 0 0 12 5.25 3.75 3.75 0 0 0 8.25 9a.75.75 0 0 0 1.5 0Z" clip-rule="evenodd"></path></svg>'},4789:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M.25 10.94c0-.41.34-.75.75-.75s.75.34.75.75v2c0 .69.56 1.25 1.25 1.25h18c.69 0 1.25-.56 1.25-1.25v-2c0-.41.34-.75.75-.75s.75.34.75.75v2c0 1.52-1.23 2.75-2.75 2.75h-8.25v5.44l1.72-1.72c.29-.29.77-.29 1.06 0 .29.29.29.77 0 1.06L12 24l-3.53-3.53a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l1.72 1.72v-5.44H3c-1.52 0-2.75-1.23-2.75-2.75v-2ZM2 .19C1.03.19.25.97.25 1.94v5c0 .97.78 1.75 1.75 1.75h3c.97 0 1.75-.78 1.75-1.75v-5C6.75.97 5.97.19 5 .19H2Zm-.25 1.75c0-.14.11-.25.25-.25h3c.14 0 .25.11.25.25v5c0 .14-.11.25-.25.25H2c-.14 0-.25-.11-.25-.25v-5Zm7 0c0-.97.78-1.75 1.75-1.75h3c.97 0 1.75.78 1.75 1.75v5c0 .97-.78 1.75-1.75 1.75h-3c-.97 0-1.75-.78-1.75-1.75v-5Zm1.75-.25c-.14 0-.25.11-.25.25v5c0 .14.11.25.25.25h3c.14 0 .25-.11.25-.25v-5c0-.14-.11-.25-.25-.25h-3ZM19 .19c-.97 0-1.75.78-1.75 1.75v5c0 .97.78 1.75 1.75 1.75h3c.97 0 1.75-.78 1.75-1.75v-5c0-.97-.78-1.75-1.75-1.75h-3Zm-.25 1.75c0-.14.11-.25.25-.25h3c.14 0 .25.11.25.25v5c0 .14-.11.25-.25.25h-3c-.14 0-.25-.11-.25-.25v-5Z"></path></svg>'},82822:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M18.53 7.47a.75.75 0 1 0-1.06 1.06l2.72 2.72H3.81l2.72-2.72a.75.75 0 1 0-1.06-1.06L.94 12l4.53 4.53a.75.75 0 0 0 1.06-1.06l-2.72-2.72h16.38l-2.72 2.72a.75.75 0 1 0 1.06 1.06L23.06 12l-4.53-4.53Z"></path></svg>'},46389:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M9.5 4A1.5 1.5 0 0 1 11 2.5h7a1.5 1.5 0 0 1 1.06.44l4 4A1.5 1.5 0 0 1 23.5 8v12a1.5 1.5 0 0 1-1.5 1.5H11A1.5 1.5 0 0 1 9.5 20v-2H11v2h11V8h-4V4h-7v6H9.5V4ZM5.591 9.47a.75.75 0 0 0-1.06 0L0 14l4.53 4.53a.75.75 0 0 0 1.061-1.06l-2.72-2.72H16a.75.75 0 0 0 0-1.5H2.871l2.72-2.72a.75.75 0 0 0 0-1.06Z" clip-rule="evenodd"></path></svg>'},85240:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M.5 4c0-.83.67-1.5 1.5-1.5h7c.4 0 .78.16 1.06.44l4 4c.28.28.44.66.44 1.06v2H13V8H9V4H2v16h11v-2h1.5v2c0 .83-.67 1.5-1.5 1.5H2c-.83 0-1.5-.67-1.5-1.5V4Zm17.91 5.47c.29-.29.77-.29 1.06 0L24 14l-4.53 4.53c-.29.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06l2.72-2.72H8c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h13.13l-2.72-2.72a.754.754 0 0 1 0-1.06Z"></path></svg>'},81887:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M10.5 2c0-.83.67-1.5 1.5-1.5h6c.4 0 .78.16 1.06.44l4 4c.28.28.44.66.44 1.06v10c0 .83-.67 1.5-1.5 1.5H12c-.83 0-1.5-.67-1.5-1.5V2ZM12 16V2h6v3c0 .55.45 1 1 1h3v10H12ZM7 3.5h2V5H7v14h11.5c0 .83-.67 1.5-1.5 1.5H7c-.83 0-1.5-.67-1.5-1.5V5c0-.83.67-1.5 1.5-1.5Zm-5 3h2V8H2v14h11.5c0 .83-.67 1.5-1.5 1.5H2c-.83 0-1.5-.67-1.5-1.5V8c0-.83.67-1.5 1.5-1.5Z" clip-rule="evenodd"></path></svg>'},86437:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M15.47 3.47a.75.75 0 0 0 0 1.06l2.72 2.72H10a6.75 6.75 0 0 0 0 13.5h2a.75.75 0 0 0 0-1.5h-2a5.25 5.25 0 1 1 0-10.5h8.19l-2.72 2.72a.75.75 0 1 0 1.06 1.06L21.06 8l-4.53-4.53a.75.75 0 0 0-1.06 0Z" clip-rule="evenodd"></path></svg>'},42397:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M8.25 15c0-.41.34-.75.75-.75h6c.41 0 .75.34.75.75s-.34.75-.75.75H9c-.41 0-.75-.34-.75-.75Zm12.28-9.03-5.5-5.5a.75.75 0 0 0-.53-.22H5c-.97 0-1.75.78-1.75 1.75v20c0 .97.78 1.75 1.75 1.75h14c.97 0 1.75-.78 1.75-1.75V6.5c0-.2-.08-.39-.22-.53ZM19.25 22c0 .14-.11.25-.25.25H5c-.14 0-.25-.11-.25-.25V2c0-.14.11-.25.25-.25h8.75V6.5c0 .41.34.75.75.75h4.75V22Z"></path></svg>'},61259:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M12.994 2.564a.75.75 0 0 0-.988-1.128l-4 3.5a.75.75 0 0 0 0 1.128l4 3.5a.75.75 0 0 0 .988-1.128l-2.558-2.239A6.25 6.25 0 1 1 5.75 12.25a.75.75 0 0 0-1.5 0 7.75 7.75 0 1 0 6.397-7.632l2.347-2.054Z"></path></svg>'},26094:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M11.006 2.564a.75.75 0 0 1 .988-1.128l4 3.5a.75.75 0 0 1 0 1.128l-4 3.5a.75.75 0 0 1-.988-1.128l2.558-2.239a6.25 6.25 0 1 0 4.686 6.053.75.75 0 0 1 1.5 0 7.75 7.75 0 1 1-6.397-7.632l-2.347-2.054Z"></path></svg>'},74466:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M.5 4H2V2h2V.5H2C1.17.5.5 1.17.5 2v2Zm23 0H22V2h-2V.5h2c.83 0 1.5.67 1.5 1.5v2Zm0 3H22v3.5h1.5V7Zm0 6.5H22V17h1.5v-3.5Zm0 6.5H22v2h-2v1.5h2c.83 0 1.5-.67 1.5-1.5v-2ZM.5 7H2v3.5H.5V7Zm0 6.5H2V17H.5v-3.5Zm0 6.5H2v2h2v1.5H2c-.83 0-1.5-.67-1.5-1.5v-2ZM7 23.5V22h3.5v1.5H7Zm6.5 0V22H17v1.5h-3.5ZM17 .5V2h-3.5V.5H17Zm-6.5 0V2H7V.5h3.5ZM4 5.5C4 4.67 4.67 4 5.5 4h4c.83 0 1.5.67 1.5 1.5v4c0 .83-.67 1.5-1.5 1.5h-4C4.67 11 4 10.33 4 9.5v-4Zm1.5 0v4h4v-4h-4Zm-1.5 9c0-.83.67-1.5 1.5-1.5h4c.83 0 1.5.67 1.5 1.5v4c0 .83-.67 1.5-1.5 1.5h-4c-.83 0-1.5-.67-1.5-1.5v-4Zm1.5 0v4h4v-4h-4Zm9-10.5c-.83 0-1.5.67-1.5 1.5v4c0 .83.67 1.5 1.5 1.5h4c.83 0 1.5-.67 1.5-1.5v-4c0-.83-.67-1.5-1.5-1.5h-4Zm0 5.5v-4h4v4h-4Zm-1.5 5c0-.83.67-1.5 1.5-1.5h4c.83 0 1.5.67 1.5 1.5v4c0 .83-.67 1.5-1.5 1.5h-4c-.83 0-1.5-.67-1.5-1.5v-4Zm1.5 0v4h4v-4h-4Z"></path></svg>'},8063:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M.5 4H2V2h2V.5H2C1.17.5.5 1.17.5 2v2Zm23 0H22V2h-2V.5h2c.83 0 1.5.67 1.5 1.5v2Zm0 3H22v3.5h1.5V7Zm0 6.5H22V17h1.5v-3.5Zm0 6.5H22v2h-2v1.5h2c.83 0 1.5-.67 1.5-1.5v-2ZM.5 7H2v3.5H.5V7Zm0 6.5H2V17H.5v-3.5Zm0 6.5H2v2h2v1.5H2c-.83 0-1.5-.67-1.5-1.5v-2ZM7 23.5V22h3.5v1.5H7Zm6.5 0V22H17v1.5h-3.5ZM17 .5V2h-3.5V.5H17Zm-6.5 0V2H7V.5h3.5Zm6.03 8.03c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-8 8c-.29.29-.29.77 0 1.06.29.29.77.29 1.06 0l8-8Z"></path></svg>'},96759:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M8.53 3.47a.75.75 0 0 1 0 1.06L5.81 7.25H14a6.75 6.75 0 0 1 0 13.5h-2a.75.75 0 0 1 0-1.5h2a5.25 5.25 0 1 0 0-10.5H5.81l2.72 2.72a.75.75 0 1 1-1.06 1.06L2.94 8l4.53-4.53a.75.75 0 0 1 1.06 0Z" clip-rule="evenodd"></path></svg>'},49729:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M18.5 10c0 2.077-.745 3.98-1.983 5.457l.013.013 5 5a.75.75 0 0 1-1.06 1.06l-5-5-.013-.013A8.5 8.5 0 1 1 18.5 10ZM10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14Zm.75-10a.75.75 0 0 0-1.5 0v2.25H7a.75.75 0 0 0 0 1.5h2.25V13a.75.75 0 0 0 1.5 0v-2.25H13a.75.75 0 0 0 0-1.5h-2.25V7Z" clip-rule="evenodd"></path></svg>'},47120:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M18.5 10c0 2.077-.745 3.98-1.983 5.457l.013.013 5 5a.75.75 0 0 1-1.06 1.06l-5-5-.013-.013A8.5 8.5 0 1 1 18.5 10ZM10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14ZM7 9.25a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5H7Z" clip-rule="evenodd"></path></svg>'},18601:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-2.003 2.889a8.503 8.503 0 0 1-9.492 5.48l9.492-5.48Zm.367-1.367-11.23 6.483a8.497 8.497 0 0 1-2.92-1.778l14.073-8.125a8.526 8.526 0 0 1 .077 3.42Zm-.366-4.408L5.504 17.482a8.49 8.49 0 0 1-1.502-2.597l14.494-8.368a8.492 8.492 0 0 1 1.502 2.597Zm-2.212-3.341L3.713 13.898a8.527 8.527 0 0 1-.077-3.42l11.229-6.483a8.499 8.499 0 0 1 2.92 1.778ZM13.495 3.63a8.503 8.503 0 0 0-9.491 5.48l9.49-5.48Z" clip-rule="evenodd"></path></svg>'},20965:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 20.5a8.5 8.5 0 1 0 0-17 8.5 8.5 0 0 0 0 17Zm0 1.5c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z" clip-rule="evenodd"></path></svg>'},55542:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 2.25a.75.75 0 0 1 .75.75v13.19l2.72-2.72a.75.75 0 1 1 1.06 1.06L12 19.06l-4.53-4.53a.75.75 0 1 1 1.06-1.06l2.72 2.72V3a.75.75 0 0 1 .75-.75Zm-9 14a.75.75 0 0 1 .75.75v3c0 .69.56 1.25 1.25 1.25h14c.69 0 1.25-.56 1.25-1.25v-3a.75.75 0 0 1 1.5 0v3A2.75 2.75 0 0 1 19 22.75H5A2.75 2.75 0 0 1 2.25 20v-3a.75.75 0 0 1 .75-.75Z" clip-rule="evenodd"></path></svg>'},90011:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.61 8.44001C15.85 8.11001 15.78 7.64001 15.45 7.39001C15.11 7.14001 14.65 7.22001 14.4 7.55001C14.37 7.59001 11.65 11.24 8.01002 11.24C4.37002 11.24 1.63002 7.59001 1.61002 7.56001C1.37002 7.23001 0.90002 7.15001 0.56002 7.40001C0.23002 7.64001 0.15002 8.11001 0.40002 8.45001C0.46002 8.54001 1.23002 9.57001 2.52002 10.61L1.17002 12.54C0.930019 12.88 1.01002 13.35 1.35002 13.58C1.48002 13.67 1.63002 13.72 1.78002 13.72C2.02002 13.72 2.25002 13.61 2.39002 13.4L3.74002 11.48C4.74002 12.09 5.92002 12.58 7.25002 12.72V15.01C7.25002 15.42 7.59002 15.76 8.00002 15.76C8.41002 15.76 8.75002 15.42 8.75002 15.01V12.72C10.08 12.58 11.26 12.08 12.26 11.48L13.61 13.4C13.76 13.61 13.99 13.72 14.23 13.72C14.38 13.72 14.53 13.68 14.66 13.58C15 13.34 15.08 12.87 14.84 12.54L13.49 10.61C14.78 9.58001 15.55 8.54001 15.61 8.45001V8.44001Z" fill="currentColor"></path></svg>'},44789:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.03899 8.16712C2.99322 8.10774 2.9511 8.05183 2.91276 8C2.9511 7.94817 2.99322 7.89226 3.03899 7.83288C3.31051 7.48064 3.70596 7.01225 4.20119 6.54615C5.21159 5.59519 6.5337 4.75 7.99967 4.75C9.46564 4.75 10.7878 5.59519 11.7981 6.54615C12.2934 7.01225 12.6888 7.48064 12.9604 7.83288C13.0061 7.89226 13.0482 7.94816 13.0866 8C13.0482 8.05183 13.0061 8.10774 12.9604 8.16712C12.6888 8.51936 12.2934 8.98775 11.7981 9.45385C10.7878 10.4048 9.46564 11.25 7.99967 11.25C6.5337 11.25 5.21159 10.4048 4.20119 9.45385C3.70596 8.98775 3.31051 8.51936 3.03899 8.16712ZM13.9997 8C14.6357 7.6025 14.6355 7.60229 14.6354 7.60206L13.9997 8ZM14.6354 7.60206L14.8841 8L14.6357 8.3975L13.9997 8C14.6357 8.3975 14.6352 8.39824 14.6351 8.39847L14.6342 8.3998L14.6319 8.40356L14.6243 8.41537L14.5984 8.4555C14.5762 8.48935 14.5445 8.5371 14.5034 8.59677C14.4214 8.71604 14.3021 8.88341 14.1484 9.08288C13.8418 9.48064 13.3935 10.0123 12.8262 10.5462C11.7116 11.5952 10.0337 12.75 7.99967 12.75C5.96564 12.75 4.28775 11.5952 3.17315 10.5462C2.60588 10.0123 2.15758 9.48064 1.85097 9.08288C1.69721 8.88341 1.57789 8.71604 1.4959 8.59677C1.45487 8.5371 1.42311 8.48935 1.40097 8.4555L1.37499 8.41537L1.36748 8.40356L1.36511 8.3998L1.36367 8.3975L1.99934 8.00021C1.36765 8.39501 1.36356 8.39726 1.36367 8.3975L1.11523 8L1.36367 7.6025L1.99934 8.00021C1.36334 7.60271 1.36413 7.60176 1.36428 7.60153L1.36511 7.6002L1.36748 7.59644L1.37499 7.58463L1.40097 7.5445C1.42311 7.51066 1.45487 7.4629 1.4959 7.40323C1.57789 7.28396 1.69721 7.11659 1.85097 6.91712C2.15758 6.51936 2.60588 5.98775 3.17315 5.45385C4.28775 4.40481 5.96564 3.25 7.99967 3.25C10.0337 3.25 11.7116 4.40481 12.8262 5.45385C13.3935 5.98775 13.8418 6.51936 14.1484 6.91712C14.3021 7.11659 14.4214 7.28396 14.5034 7.40323C14.5445 7.4629 14.5762 7.51066 14.5984 7.5445L14.6243 7.58463L14.6319 7.59644L14.6342 7.6002L14.6354 7.60206ZM8 10C9.10457 10 10 9.10457 10 8C10 6.89543 9.10457 6 8 6C6.89543 6 6 6.89543 6 8C6 9.10457 6.89543 10 8 10Z" fill="currentColor"></path></svg>'},90312:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3 2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1H3Zm5 19v-3.5h1.5v3h11v-11h-3V8H21a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1Z" clip-rule="evenodd"></path></svg>'},99938:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M21 5a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h18Zm-4 1h4a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-4V6ZM7 18H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h4v12ZM8.5 6.5h7v11h-7v-11Z" clip-rule="evenodd"></path></svg>'},66781:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M0 6a2 2 0 0 1 2-2h20a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6Zm20.75-1H22a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-1.25V5Zm-1.5 0H4.75v14h14.5V5Zm-16 14V5H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h1.25Z" clip-rule="evenodd"></path></svg>'},67572:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m23.691 19.7-6-14a.758.758 0 0 0-.69-.45c-.3 0-.57.18-.69.45l-6 14c-.16.39.01.83.39.99.39.16.83-.01.99-.39l2.38-5.55h5.86l2.38 5.55c.16.38.6.55.99.39.38-.16.55-.6.39-.99Zm-8.98-6.45 2.29-5.35 2.29 5.35h-4.58Zm-6.01 6.48-3.5-9a.748.748 0 0 0-.7-.48c-.31 0-.59.19-.7.48l-3.5 9a.75.75 0 1 0 1.4.54l.79-2.02h4.02l.79 2.02a.75.75 0 1 0 1.4-.54Zm-5.63-2.98 1.43-3.68 1.43 3.68h-2.86Z" clip-rule="evenodd"></path></svg>'},87198:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M1 3.25c-.41 0-.75.34-.75.75s.34.75.75.75h5.25V15c0 .41.34.75.75.75s.75-.34.75-.75V4.75H13c.41 0 .75-.34.75-.75s-.34-.75-.75-.75H1Zm21.75 7h-11.5V14c0 .41.34.75.75.75s.75-.34.75-.75v-2.25h3.5v8.5H14.5c-.41 0-.75.34-.75.75s.34.75.75.75h5c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-1.75v-8.5h3.5V14c0 .41.34.75.75.75s.75-.34.75-.75v-3.75Z"></path></svg>'},19432:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M22 5H2C.9 5 0 5.9 0 7v10c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2Zm.5 12c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V7c0-.28.22-.5.5-.5h20c.28 0 .5.22.5.5v10ZM8.27 9.29c-1.68 0-2.84 1.3-2.84 2.91s1.16 2.91 2.84 2.91 2.84-1.3 2.84-2.91-1.16-2.91-2.84-2.91Zm0 4.62c-.97 0-1.46-.89-1.46-1.71s.49-1.71 1.46-1.71 1.47.89 1.47 1.71-.49 1.71-1.47 1.71ZM12.75 15V9.4h1.38v2.14l2.05-2.14h1.66l-2.06 2.18L17.92 15h-1.59l-1.53-2.48-.67.72V15h-1.38Z" clip-rule="evenodd"></path></svg>'},359:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M16.53 10.03c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0L11 13.44l-1.97-1.97a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06l2.38 2.38c.36.36.94.36 1.3 0l4.88-4.88ZM18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2Zm.5 14c0 .28-.22.5-.5.5H6c-.28 0-.5-.22-.5-.5V6c0-.28.22-.5.5-.5h12c.28 0 .5.22.5.5v12Z"></path></svg>'},93997:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M5 8.25c.41 0 .75.34.75.75v6c0 .41-.34.75-.75.75s-.75-.34-.75-.75V9c0-.41.34-.75.75-.75Zm9.21 2.25h5.59c.45 0 .67.54.35.85l-2.79 2.79c-.2.2-.51.2-.71 0l-2.79-2.79c-.32-.31-.09-.85.35-.85ZM22 5H2C.9 5 0 5.9 0 7v10c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2Zm.5 12c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V7c0-.28.22-.5.5-.5h20c.28 0 .5.22.5.5v10Z"></path></svg>'},87420:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M9 6C7.34 6 6 7.34 6 9s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3Zm0 4.5c-.83 0-1.5-.67-1.5-1.5S8.17 7.5 9 7.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5Zm7 3.5H8c-1.1 0-2 .9-2 2v2c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2v-2c0-1.1-.9-2-2-2Zm.5 4c0 .28-.22.5-.5.5H8c-.28 0-.5-.22-.5-.5v-2c0-.28.22-.5.5-.5h8c.28 0 .5.22.5.5v2Zm4.03-12.03-5.5-5.5a.75.75 0 0 0-.53-.22H5c-.97 0-1.75.78-1.75 1.75v20c0 .97.78 1.75 1.75 1.75h14c.97 0 1.75-.78 1.75-1.75V6.5c0-.2-.08-.39-.22-.53ZM19.25 22c0 .14-.11.25-.25.25H5c-.14 0-.25-.11-.25-.25V2c0-.14.11-.25.25-.25h8.75V6.5c0 .41.34.75.75.75h4.75V22Z" clip-rule="evenodd"></path></svg>'},69864:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M19 17.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5Zm0-5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5Zm-5.5 5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5Zm0-5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5Zm-5.5 5c0 .83-.67 1.5-1.5 1.5S5 18.33 5 17.5 5.67 16 6.5 16s1.5.67 1.5 1.5Zm12-15h-1.75V1c0-.41-.34-.75-.75-.75s-.75.34-.75.75v1.5h-9.5V1c0-.41-.34-.75-.75-.75s-.75.34-.75.75v1.5H4C2.07 2.5.5 4.07.5 6v13c0 1.93 1.57 3.5 3.5 3.5h16c1.93 0 3.5-1.57 3.5-3.5V6c0-1.93-1.57-3.5-3.5-3.5ZM22 19c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V9.25h20V19Zm0-11.25H2V6c0-1.1.9-2 2-2h1.75v2c0 .41.34.75.75.75s.75-.34.75-.75V4h9.5v2c0 .41.34.75.75.75s.75-.34.75-.75V4H20c1.1 0 2 .9 2 2v1.75Z"></path></svg>'},47607:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M19.75 7c0 .41-.34.75-.75.75h-9c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h9c.41 0 .75.34.75.75ZM19 17.75c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-9c-.41 0-.75.34-.75.75s.34.75.75.75h9Zm.75-5.75c0 .41-.34.75-.75.75h-9c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h9c.41 0 .75.34.75.75ZM5.5 8.5C6.33 8.5 7 7.83 7 7s-.67-1.5-1.5-1.5S4 6.17 4 7s.67 1.5 1.5 1.5ZM7 17c0 .83-.67 1.5-1.5 1.5S4 17.83 4 17s.67-1.5 1.5-1.5S7 16.17 7 17Zm-1.5-3.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5S4 11.17 4 12s.67 1.5 1.5 1.5ZM22 2H2C.9 2 0 2.9 0 4v16c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2Zm.5 18c0 .28-.22.5-.5.5H2c-.28 0-.5-.22-.5-.5V4c0-.28.22-.5.5-.5h20c.28 0 .5.22.5.5v16Z"></path></svg>'},57573:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M12 15c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3Zm0-11c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8Zm0 14.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13Z"></path></svg>'},74770:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M7.337 19H2a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-9.351c-.2.698-.42 1.353-.655 1.936-.293.73-.624 1.386-.993 1.872-.341.45-.856.942-1.546.942-.816 0-1.29-.637-1.536-1.145-.264-.545-.419-1.235-.503-1.905a11.182 11.182 0 0 1-.079-1.7ZM2 6.5h20a.5.5 0 0 1 .5.5v10a.5.5 0 0 1-.5.5h-8.964a35.02 35.02 0 0 0 .378-1.872c.164-.947.288-1.902.361-2.806a12.627 12.627 0 0 1 1.573-.884l.056.143.128.325c.114.284.264.63.454.911.161.24.517.683 1.105.683 1.035 0 1.89-.59 2.49-1.386.6-.797 1.003-1.862 1.162-3.011a.75.75 0 1 0-1.486-.206c-.132.95-.457 1.76-.874 2.314-.37.49-.768.73-1.145.78l-.008-.011a3.71 3.71 0 0 1-.307-.636l-.098-.248a11.933 11.933 0 0 0-.228-.557 2.162 2.162 0 0 0-.224-.392c-.062-.083-.304-.397-.737-.397a.75.75 0 0 0-.27.05 11.9 11.9 0 0 0-1.517.723c-.002-.251-.01-.493-.023-.724-.044-.734-.155-1.422-.382-1.95-.223-.52-.667-1.099-1.444-1.099-.52 0-1.215.217-1.9.486-.718.282-1.539.67-2.358 1.1-1.623.853-3.322 1.917-4.239 2.727a.75.75 0 1 0 .994 1.124c.78-.69 2.353-1.688 3.943-2.523a23.18 23.18 0 0 1 2.21-1.032c.646-.255 1.088-.368 1.31-.38a.69.69 0 0 1 .106.188c.125.292.222.776.262 1.449.03.48.027 1.023-.002 1.609-.524.377-1.03.785-1.506 1.207-1.358 1.207-2.527 2.596-3.131 3.843a2.563 2.563 0 0 0-.163.452H2a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5ZM11.084 19c-.152.496-.314.96-.482 1.377-.27.675-.543 1.192-.796 1.526-.183.24-.299.315-.343.337-.035-.027-.104-.102-.194-.288-.162-.335-.29-.842-.364-1.439A9.678 9.678 0 0 1 8.838 19h2.246Zm.41-1.5H9.142c.518-.964 1.48-2.113 2.675-3.174.105-.094.212-.186.32-.278a32.415 32.415 0 0 1-.643 3.452Zm.442-8.77s.006.002.016.012c-.011-.005-.016-.01-.016-.011ZM9.488 22.257s-.003 0-.008-.003c.006.001.008.002.008.003Zm7.811-9.69-.01-.01.01.01Z" clip-rule="evenodd"></path></svg>'},66153:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M8.25 2A.75.75 0 0 1 9 1.25c1.227 0 2.316.589 3 1.5a3.744 3.744 0 0 1 3-1.5.75.75 0 0 1 0 1.5A2.25 2.25 0 0 0 12.75 5H22a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-9.25v.002A2.25 2.25 0 0 0 15 21.25a.75.75 0 0 1 0 1.5 3.744 3.744 0 0 1-3-1.5 3.744 3.744 0 0 1-3 1.5.75.75 0 0 1 0-1.5A2.25 2.25 0 0 0 11.25 19H2a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h9.25A2.25 2.25 0 0 0 9 2.75.75.75 0 0 1 8.25 2ZM2 6.5h9.25v4.75h-1.5a.75.75 0 0 0 0 1.5h1.5v4.75H2a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5Zm10.75 6.25v4.75H22a.5.5 0 0 0 .5-.5V7a.5.5 0 0 0-.5-.5h-9.25v4.75h1.5a.75.75 0 0 1 0 1.5h-1.5Z" clip-rule="evenodd"></path></svg>'},15598:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M11.255 5.002c0-.41.34-.75.75-.75h7.003c.41 0 .75.34.75.75v7.003c0 .41-.34.75-.75.75h-6.253v6.253c0 .41-.34.75-.75.75H5.002c-.41 0-.75-.34-.75-.75v-7.003c0-.41.34-.75.75-.75h6.253V5.002Zm1.5.75v5.503h5.503V5.752h-5.503Zm-7.003 7.003v5.503h5.503v-5.503H5.752ZM1.251 3.852A2.012 2.012 0 0 1 0 2C0 .9.9 0 2 0c.841 0 1.561.52 1.852 1.25h16.296C20.448.52 21.168 0 22 0c1.1 0 2 .9 2 2 0 .841-.52 1.561-1.25 1.852v16.296c.73.3 1.25 1.02 1.25 1.851C24 23.1 23.1 24 22 24c-.841 0-1.561-.52-1.852-1.25H3.852C3.552 23.48 2.832 24 2 24c-1.1 0-2-.9-2-2 0-.841.52-1.561 1.25-1.852V3.852Zm20.008 16.306c-.5.2-.9.6-1.1 1.1H3.851c-.2-.5-.6-.9-1.1-1.1V3.852c.5-.2.9-.6 1.1-1.1h16.296c.2.5.6.9 1.1 1.1v16.296l.01.01Z" clip-rule="evenodd"></path></svg>'},98614:e=>{e.exports='<svg width="16" height="15" viewBox="0 0 16 15" fill="none" xmlns="http://www.w3.org/2000/svg"><line x1="0.75" y1="1.44214" x2="15.25" y2="1.44214" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></line><line x1="0.75" y1="7.44214" x2="15.25" y2="7.44214" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></line><line x1="0.75" y1="13.4421" x2="15.25" y2="13.4421" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></line></svg>'},79435:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M4 2.5a3 3 0 0 0-3 3v13a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3v-13a3 3 0 0 0-3-3H4Zm3 3.75a.75.75 0 0 0 0 1.5h4.25V18a.75.75 0 0 0 1.5 0V7.75H17a.75.75 0 0 0 0-1.5H7Z" clip-rule="evenodd"></path></svg>'},64774:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M14.75 3.5a.75.75 0 0 0-1.085-.67l-4 2a.75.75 0 0 0-.415.67v2.75H9a.75.75 0 0 0-.75.75v2a7.25 7.25 0 0 1-2.9 5.8l-.8.6a.75.75 0 0 0-.3.6v4a.75.75 0 1 0 1.5 0v-3.625l.5-.375a8.75 8.75 0 0 0 3.5-7V9.75h4.5V11a8.75 8.75 0 0 0 3.5 7l.5.375V22a.75.75 0 1 0 1.5 0v-4a.75.75 0 0 0-.3-.6l-.8-.6a7.25 7.25 0 0 1-2.9-5.8V9a.75.75 0 0 0-.75-.75h-.25V3.5Z"></path></svg>'},34880:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M6.5 10C7.33 10 8 9.33 8 8.5S7.33 7 6.5 7 5 7.67 5 8.5 5.67 10 6.5 10ZM23 15.94V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-2l.03-.03-.03-.03ZM21.5 18c0 .28-.22.5-.5.5H3c-.12 0-.23-.04-.32-.12l3.82-3.82 2.47 2.47a.75.75 0 0 0 1.06 0L16 11.06l5.5 5.5V18Zm0-3.56-4.97-4.97a.75.75 0 0 0-1.06 0L9.5 15.44l-2.47-2.47a.754.754 0 0 0-1.06 0L2.5 16.44V6c0-.28.22-.5.5-.5h18c.28 0 .5.22.5.5v8.44Z"></path></svg>'},23597:e=>{e.exports='<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M16.5 8.99997C16.5 13.1421 13.1421 16.5 9 16.5C4.85786 16.5 1.5 13.1421 1.5 8.99997C1.5 4.85783 4.85786 1.49997 9 1.49997C13.1421 1.49997 16.5 4.85783 16.5 8.99997ZM9.92328 11.947V7.82272H6.96415V8.87572H8.38278V11.947H6.9154V13H11.2395V11.947H9.92328ZM9.6454 5.36084C9.4764 5.19509 9.25865 5.11222 8.99215 5.11222C8.7224 5.11222 8.5014 5.19509 8.32915 5.36084C8.16015 5.52659 8.07565 5.73297 8.07565 5.97997C8.07565 6.22697 8.16015 6.43497 8.32915 6.60397C8.5014 6.76972 8.7224 6.85259 8.99215 6.85259C9.25865 6.85259 9.4764 6.76972 9.6454 6.60397C9.8144 6.43497 9.8989 6.22697 9.8989 5.97997C9.8989 5.73297 9.8144 5.52659 9.6454 5.36084Z" fill="currentColor"></path></svg>'},34892:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m21.758 8.562-6.36-6.36c-.39-.39-1.02-.39-1.42 0l-12.02 12.02a3 3 0 0 0 0 4.24l3.54 3.54h4.24l12.02-12.02c.39-.39.39-1.02 0-1.42Zm-12.64 11.94h-3l-3.1-3.1c-.58-.58-.58-1.53 0-2.12l2.3-2.3 5.66 5.66-1.86 1.86Zm2.92-2.92-5.66-5.66 8.31-8.3 5.66 5.65-8.31 8.31Zm-.18 4.42 1.5-1.5h4.64c.41 0 .75.34.75.75s-.34.75-.75.75h-6.14Zm8.39-.75c0-.41.34-.75.75-.75h2c.41 0 .75.34.75.75s-.34.75-.75.75h-2c-.41 0-.75-.34-.75-.75Z" clip-rule="evenodd"></path></svg>'},47411:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M13 4a1 1 0 1 0-2 0v2.25h-1a.75.75 0 0 0-.75.75v2.671c0 1.357-.957 2.577-2.157 3.8A6.393 6.393 0 0 0 5.25 18v3a.75.75 0 0 0 1.5 0v-3c0-1.386.536-2.586 1.413-3.479 1.175-1.196 2.587-2.816 2.587-4.85V7.75h2.5v1.921c0 2.035 1.412 3.654 2.587 4.85A4.893 4.893 0 0 1 17.25 18v3a.75.75 0 0 0 1.5 0v-3a6.39 6.39 0 0 0-1.843-4.53c-1.2-1.222-2.157-2.442-2.157-3.799V7a.75.75 0 0 0-.75-.75h-1V4Z"></path></svg>'},90672:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M2.85 8l1.27-1.32L6.74 9.3l5.15-5.13 1.26 1.27-6.41 6.39z" fill="currentColor"></path></svg>'},87405:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M9.75 7a.75.75 0 0 1 .75-.75h5a.75.75 0 0 1 0 1.5h-1.901l-2.16 9.5H13a.75.75 0 0 1 0 1.5H8a.75.75 0 0 1 0-1.5h1.901l2.16-9.5H10.5A.75.75 0 0 1 9.75 7Z"></path></svg>'},57870:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M16.01 12c0 2.21-1.79 4-4 4s-4-1.79-4-4 1.79-4 4-4 4 1.79 4 4Zm-1.5 0a2.5 2.5 0 0 1-5 0 2.5 2.5 0 0 1 5 0ZM11.33 1.25c-.83 0-1.55.59-1.72 1.41l-.4 2c-.01.05-.06.13-.17.18-.11.05-.2.03-.24 0L7.1 3.71c-.69-.46-1.62-.37-2.21.22l-.96.96c-.59.59-.68 1.51-.22 2.21l1.13 1.7s.05.13 0 .24c-.05.11-.13.16-.18.17l-2 .4c-.82.16-1.41.88-1.41 1.72v1.36c0 .83.59 1.55 1.41 1.72l2 .4c.05.01.13.06.18.17.05.11.03.2 0 .24l-1.13 1.7c-.46.69-.37 1.62.22 2.21l.96.96c.59.59 1.51.68 2.21.22l1.7-1.13s.13-.05.24 0c.11.05.16.13.17.18l.4 2c.16.82.88 1.41 1.72 1.41h1.36c.83 0 1.55-.59 1.72-1.41l.4-2c.01-.05.06-.13.17-.18.11-.05.2-.03.24 0l1.7 1.13c.69.46 1.62.37 2.21-.22l.96-.96c.59-.59.68-1.51.22-2.21l-1.13-1.7s-.05-.13 0-.24c.05-.11.13-.16.18-.17l2-.4c.82-.16 1.41-.88 1.41-1.72v-1.36c0-.83-.59-1.55-1.41-1.72l-2-.4c-.05-.01-.13-.06-.18-.17-.05-.11-.03-.2 0-.24l1.13-1.7c.46-.69.37-1.62-.22-2.21l-.96-.96c-.59-.59-1.51-.68-2.21-.22l-1.7 1.13s-.13.05-.24 0c-.11-.05-.16-.13-.17-.18l-.4-2c-.16-.82-.88-1.41-1.72-1.41h-1.36Zm-.25 1.7c.02-.12.13-.2.25-.2h1.36c.12 0 .22.08.25.2l.4 2c.12.61.56 1.06 1.07 1.27.51.21 1.14.2 1.65-.14l1.7-1.13c.1-.07.23-.05.32.03l.96.96c.08.08.1.22.03.32l-1.13 1.7c-.34.51-.36 1.14-.14 1.65.21.51.66.95 1.27 1.07l2 .4c.12.02.2.13.2.25v1.36c0 .12-.08.22-.2.25l-2 .4c-.61.12-1.06.56-1.27 1.07-.21.51-.2 1.14.14 1.65l1.13 1.7c.07.1.05.23-.03.32l-.96.96c-.08.08-.22.1-.32.03l-1.7-1.13c-.51-.34-1.14-.36-1.65-.14-.51.21-.95.66-1.07 1.27l-.4 2c-.02.12-.13.2-.25.2h-1.36c-.12 0-.22-.08-.25-.2l-.4-2c-.12-.61-.56-1.06-1.07-1.27-.51-.21-1.14-.2-1.65.14l-1.7 1.13c-.1.07-.23.05-.32-.03l-.96-.96a.256.256 0 0 1-.03-.32l1.13-1.7c.34-.51.36-1.14.14-1.65-.21-.51-.66-.95-1.27-1.07l-2-.4a.248.248 0 0 1-.2-.25v-1.36c0-.12.08-.22.2-.25l2-.4c.61-.12 1.06-.56 1.27-1.07.21-.51.2-1.14-.14-1.65l-1.13-1.7c-.07-.1-.05-.23.03-.32l.96-.96c.08-.08.22-.1.32-.03l1.7 1.13c.51.34 1.14.36 1.65.14.51-.21.95-.66 1.07-1.27l.4-2Z" clip-rule="evenodd"></path></svg>'},94116:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M12.69 1.31c-.11-.8-1.27-.8-1.39 0l-.25 1.74-1.74.25c-.8.11-.8 1.27 0 1.39l1.74.25.25 1.74c.11.8 1.27.8 1.39 0l.25-1.74 1.74-.25c.8-.11.8-1.27 0-1.39l-1.74-.25-.25-1.74Zm-7 10c-.11-.8-1.27-.8-1.39 0l-.25 1.74-1.74.25c-.8.11-.8 1.27 0 1.39l1.74.25.25 1.74c.11.8 1.27.8 1.39 0l.25-1.74 1.74-.25c.8-.11.8-1.27 0-1.39l-1.74-.25-.25-1.74Zm14 5c-.11-.8-1.27-.8-1.39 0l-.25 1.74-1.74.25c-.8.11-.8 1.27 0 1.39l1.74.25.25 1.74c.11.8 1.27.8 1.39 0l.25-1.74 1.74-.25c.8-.11.8-1.27 0-1.39l-1.74-.25-.25-1.74ZM20 8.99c0 .55-.45 1-1 1s-1-.45-1-1 .45-1 1-1 1 .45 1 1Zm-8 5c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1Zm-8-8c0 .55-.45 1-1 1s-1-.45-1-1 .45-1 1-1 1 .45 1 1Zm5 17c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1Z"></path></svg>'},28436:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M5.75 4V0h-1.5v4c0 .97.78 1.75 1.75 1.75h12c.97 0 1.75-.78 1.75-1.75V0h-1.5v4c0 .14-.11.25-.25.25H6c-.14 0-.25-.11-.25-.25Zm0 5c0-.14.11-.25.25-.25h12c.14 0 .25.11.25.25v15h1.5V9c0-.97-.78-1.75-1.75-1.75H6c-.97 0-1.75.78-1.75 1.75v15h1.5V9Z"></path></svg>'},55222:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 20.75A1.75 1.75 0 0 1 .25 19V5c0-.966.784-1.75 1.75-1.75h20c.966 0 1.75.784 1.75 1.75v14A1.75 1.75 0 0 1 22 20.75H2ZM1.75 5A.25.25 0 0 1 2 4.75h9.25v14.5H2a.25.25 0 0 1-.25-.25V5Zm11-.25v14.5H22a.25.25 0 0 0 .25-.25V5a.25.25 0 0 0-.25-.25h-9.25Z" clip-rule="evenodd"></path></svg>'},92957:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M5 1.75a.25.25 0 0 0-.25.25v20c0 .138.112.25.25.25h14a.25.25 0 0 0 .25-.25V2a.25.25 0 0 0-.25-.25H5ZM3.25 2c0-.966.784-1.75 1.75-1.75h14c.966 0 1.75.784 1.75 1.75v20A1.75 1.75 0 0 1 19 23.75H5A1.75 1.75 0 0 1 3.25 22V2Z" clip-rule="evenodd"></path></svg>'},79276:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M12.994 2.564a.75.75 0 0 0-.988-1.128l-4 3.5a.75.75 0 0 0 0 1.128l4 3.5a.75.75 0 0 0 .988-1.128l-2.558-2.239A6.25 6.25 0 1 1 5.75 12.25a.75.75 0 0 0-1.5 0 7.75 7.75 0 1 0 6.397-7.632l2.347-2.054Z"></path></svg>'},85843:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M11.006 2.564a.75.75 0 0 1 .988-1.128l4 3.5a.75.75 0 0 1 0 1.128l-4 3.5a.75.75 0 0 1-.988-1.128l2.558-2.239a6.25 6.25 0 1 0 4.686 6.053.75.75 0 0 1 1.5 0 7.75 7.75 0 1 1-6.397-7.632l-2.347-2.054Z"></path></svg>'},92019:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 5.75h1.579v-1.5H2v1.5Zm3.684 0h1.58v-1.5h-1.58v1.5Zm3.684 0h1.58v-1.5h-1.58v1.5Zm3.685 0h1.579v-1.5h-1.58v1.5Zm3.684 0h1.579v-1.5h-1.58v1.5Zm3.684 0H22v-1.5h-1.579v1.5Zm-1.421 7h3v-1.5h-3v1.5Zm-17 7h20v-1.5H2v1.5Zm15-7h-4v-1.5h4v1.5Zm-10 0h4v-1.5H7v1.5Zm-2 0H2v-1.5h3v1.5Z" clip-rule="evenodd"></path></svg>'},91024:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M22 5.5H2v-1h20v1Zm0 6.5H2v-2h20v2ZM2 19.5h20v-3H2v3Z" clip-rule="evenodd"></path></svg>'},50347:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M22.53 1.47a.75.75 0 0 1 0 1.06l-20 20a.75.75 0 0 1-1.06-1.06l20-20a.75.75 0 0 1 1.06 0Z" clip-rule="evenodd"></path></svg>'},84820:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2.25 2a.75.75 0 0 1 1.5 0v4.25H21a.75.75 0 0 1 0 1.5H3.75V12a.75.75 0 0 1-1.5 0V2Zm14.28 9.47a.75.75 0 1 0-1.06 1.06l3.72 3.72H3a.75.75 0 0 0 0 1.5h16.19l-3.72 3.72a.75.75 0 1 0 1.06 1.06L22.06 17l-5.53-5.53Z" clip-rule="evenodd"></path></svg>'},71118:e=>{e.exports='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2 5.75H3.57895V4.25H2V5.75ZM5.68421 5.75H7.26316V4.25H5.68421V5.75ZM9.36842 5.75H10.9474V4.25H9.36842V5.75ZM13.0526 5.75H14.6316V4.25H13.0526V5.75ZM16.7368 5.75H18.3158V4.25H16.7368V5.75ZM20.4211 5.75H22V4.25H20.4211V5.75ZM19 12.75H22V11.25H19V12.75ZM2 19.75H22V18.25H2V19.75ZM17 12.75H13V11.25H17V12.75ZM7 12.75H11V11.25H7V12.75ZM5 12.75H2V11.25H5V12.75Z" fill="currentColor"></path></svg>'},22413:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M17.834 11.677a.75.75 0 0 1-1.06-1.06l2.12-2.122a2.25 2.25 0 0 0 0-3.182l-.706-.707a2.25 2.25 0 0 0-3.182 0l-4.243 4.242a2.25 2.25 0 0 0 0 3.182l.354.354a.75.75 0 0 1-1.061 1.06l-.354-.353a3.75 3.75 0 0 1 0-5.303l4.243-4.243a3.75 3.75 0 0 1 5.303 0l.707.707a3.75 3.75 0 0 1 0 5.304l-2.121 2.12Zm-11.667-.354a.75.75 0 0 1 1.06 1.061l-2.12 2.121a2.25 2.25 0 0 0 0 3.182l.706.707a2.25 2.25 0 0 0 3.182 0l4.243-4.242a2.25 2.25 0 0 0 0-3.182l-.354-.354a.75.75 0 0 1 1.061-1.06l.354.353a3.75 3.75 0 0 1 0 5.303l-4.243 4.243a3.75 3.75 0 0 1-5.303 0l-.707-.707a3.75 3.75 0 0 1 0-5.303l2.12-2.122Z" clip-rule="evenodd"></path></svg>'},10964:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M12.75 15.8c.45-.26.75-.74.75-1.3 0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5c0 .56.3 1.04.75 1.3V18c0 .41.34.75.75.75s.75-.34.75-.75v-2.2ZM18 9h-1.25V6c0-2.62-2.13-4.75-4.75-4.75S7.25 3.38 7.25 6v3H6c-1.66 0-3 1.34-3 3v8c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3v-8c0-1.66-1.34-3-3-3ZM8.75 6c0-1.79 1.46-3.25 3.25-3.25S15.25 4.21 15.25 6v3h-6.5V6ZM19.5 20c0 .83-.67 1.5-1.5 1.5H6c-.83 0-1.5-.67-1.5-1.5v-8c0-.83.67-1.5 1.5-1.5h12c.83 0 1.5.67 1.5 1.5v8Z"></path></svg>'},65541:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M.5 4H2V2h2V.5H2C1.17.5.5 1.17.5 2v2Zm23 0H22V2h-2V.5h2c.83 0 1.5.67 1.5 1.5v2Zm0 3H22v3.5h1.5V7Zm0 6.5H22V17h1.5v-3.5ZM.5 7H2v3.5H.5V7Zm0 6.5H2V17H.5v-3.5Zm0 6.5H2v2h2v1.5H2c-.83 0-1.5-.67-1.5-1.5v-2ZM7 23.5V22h3.5v1.5H7Zm6.5 0V22H17v1.5h-3.5ZM17 .5V2h-3.5V.5H17Zm-6.5 0V2H7V.5h3.5ZM12 8.75c.41 0 .75.34.75.75v1.75h1.75c.41 0 .75.34.75.75s-.34.75-.75.75h-1.75v1.75c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-1.75H9.5c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h1.75V9.5c0-.41.34-.75.75-.75Zm10.53 12.72-4.72-4.72A7.482 7.482 0 0 0 19.5 12c0-4.14-3.36-7.5-7.5-7.5-4.14 0-7.5 3.36-7.5 7.5 0 4.14 3.36 7.5 7.5 7.5 1.8 0 3.45-.63 4.75-1.69l4.72 4.72c.29.29.77.29 1.06 0 .29-.29.29-.77 0-1.06ZM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6Z"></path></svg>'},7883:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M23 6H1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h22a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1ZM1.5 16.5v-9h3.75V11a.75.75 0 0 0 1.5 0V7.5h1.5V13a.75.75 0 0 0 1.5 0V7.5h1.5V11a.75.75 0 0 0 1.5 0V7.5h1.5V13a.75.75 0 0 0 1.5 0V7.5h1.5V11a.75.75 0 0 0 1.5 0V7.5h3.75v9h-21Z" clip-rule="evenodd"></path></svg>'},87639:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M15.25 12.43c.33-.19.33-.67 0-.87l-4.5-2.6a.502.502 0 0 0-.75.43v5.2c0 .38.42.63.75.43l4.5-2.6v.01ZM21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2Zm.5 14c0 .28-.22.5-.5.5H3c-.28 0-.5-.22-.5-.5V6c0-.28.22-.5.5-.5h18c.28 0 .5.22.5.5v12Z"></path></svg>'},57913:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 .45C5.62.45.45 5.62.45 12c0 6.38 5.17 11.55 11.55 11.55h6c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-6c-5.55 0-10.05-4.5-10.05-10.05C1.95 6.45 6.45 1.95 12 1.95h1.64a8.41 8.41 0 0 1 8.41 8.41v3.74c0 1.41-1.14 2.55-2.55 2.55s-2.55-1.14-2.55-2.55V6c0-.41-.34-.75-.75-.75s-.75.34-.75.75v1.43a5.25 5.25 0 0 0-9 3.67v1.8a5.25 5.25 0 0 0 9.48 3.11 4.057 4.057 0 0 0 3.57 2.14c2.24 0 4.05-1.81 4.05-4.05v-3.74c0-5.47-4.44-9.91-9.91-9.91H12Zm3.45 12.45v-1.8c0-2.07-1.68-3.75-3.75-3.75-2.07 0-3.75 1.68-3.75 3.75v1.8c0 2.07 1.68 3.75 3.75 3.75 2.07 0 3.75-1.68 3.75-3.75Z" clip-rule="evenodd"></path></svg>'},21802:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M17 12a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Zm-6.5 0a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Zm-5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z" clip-rule="evenodd"></path></svg>'},48844:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M21 6h-1.5V4.5H18V3h2c.55 0 1 .45 1 1v2ZM3 18h1.5v1.5H6V21H4c-.55 0-1-.45-1-1v-2ZM4.5 6H3V4c0-.55.45-1 1-1h2v1.5H4.5V6ZM21 18h-1.5v1.5H18V21h2c.55 0 1-.45 1-1v-2ZM8 4.5V3h3v1.5H8Zm0 15V21h3v-1.5H8ZM3 8h1.5v3H3V8Zm18 0h-1.5v3H21V8Zm-8-3.5V3h3v1.5h-3Zm0 15V21h3v-1.5h-3ZM3 13h1.5v3H3v-3Zm18 0h-1.5v3H21v-3Z"></path></svg>'},86326:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m21.28 20.218-18-18a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06l6.47 6.47-6.18 6.18c-.33.32-.51.77-.51 1.23v4.34h4.34c.46 0 .91-.18 1.23-.51l6.18-6.18 6.47 6.47c.29.29.77.29 1.06 0 .29-.29.29-.77 0-1.06Zm-14.77-.29s-.11.07-.17.07H3.5v-2.84c0-.06.03-.13.07-.17l6.18-6.18 2.94 2.94-6.18 6.18Zm13.86-15.62-1.18-1.18a2.746 2.746 0 0 0-3.88 0l-4.59 4.59 1.06 1.06 1.97-1.97 2.94 2.94-1.97 1.97 1.06 1.06 4.59-4.59a2.746 2.746 0 0 0 0-3.88Zm-1.06 2.82-1.56 1.56-2.94-2.94 1.56-1.56c.48-.48 1.28-.48 1.76 0l1.18 1.18c.48.48.48 1.28 0 1.76Z" clip-rule="evenodd"></path></svg>'},14451:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12.75 8c0-.41-.34-.75-.75-.75s-.75.34-.75.75v2.25H9c-.41 0-.75.34-.75.75s.34.75.75.75h2.25V14c0 .41.34.75.75.75s.75-.34.75-.75v-2.25H15c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-2.25V8ZM19 3.25H5C3.48 3.25 2.25 4.48 2.25 6v10c0 1.52 1.23 2.75 2.75 2.75h3.47c.4 0 .78.19 1.02.52l1.16 1.63c.66.92 2.01.98 2.75.12l1.57-1.83c.24-.28.59-.44.95-.44H19c1.52 0 2.75-1.23 2.75-2.75V6c0-1.52-1.23-2.75-2.75-2.75ZM20.25 16c0 .69-.56 1.25-1.25 1.25h-3.08c-.8 0-1.57.35-2.09.96l-1.57 1.83c-.1.13-.3.12-.39 0l-1.16-1.63a2.762 2.762 0 0 0-2.24-1.15H5c-.69 0-1.25-.56-1.25-1.25V6c0-.69.56-1.25 1.25-1.25h14c.69 0 1.25.56 1.25 1.25v10Z"></path></svg>'},78045:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M7.25 9c0-.41.34-.75.75-.75h8c.41 0 .75.34.75.75s-.34.75-.75.75H8c-.41 0-.75-.34-.75-.75ZM8 12.25c-.41 0-.75.34-.75.75s.34.75.75.75h8c.41 0 .75-.34.75-.75s-.34-.75-.75-.75H8Zm11-9H5C3.48 3.25 2.25 4.48 2.25 6v10c0 1.52 1.23 2.75 2.75 2.75h3.47c.4 0 .78.19 1.02.52l1.16 1.63c.66.92 2.01.98 2.75.12l1.57-1.83c.24-.28.59-.44.95-.44H19c1.52 0 2.75-1.23 2.75-2.75V6c0-1.52-1.23-2.75-2.75-2.75ZM20.25 16c0 .69-.56 1.25-1.25 1.25h-3.08c-.8 0-1.57.35-2.09.96l-1.57 1.83c-.1.13-.3.12-.39 0l-1.16-1.63a2.762 2.762 0 0 0-2.24-1.15H5c-.69 0-1.25-.56-1.25-1.25V6c0-.69.56-1.25 1.25-1.25h14c.69 0 1.25.56 1.25 1.25v10Z"></path></svg>'},92677:e=>{e.exports='<svg viewBox="0 0 24 24" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0)"><g filter="url(#filter0_dd)"><path d="M5.5 1A1.5 1.5 0 004 2.5v12A1.5 1.5 0 005.5 16H9l3 4 3-4h3.5a1.5 1.5 0 001.5-1.5v-12A1.5 1.5 0 0018.5 1h-13z" fill="#FEE668"></path></g><path d="M7 11.25a.25.25 0 01.25-.25h6.375a.25.25 0 01.25.25v.5a.25.25 0 01-.25.25H7.25a.25.25 0 01-.25-.25v-.5zm0-2A.25.25 0 017.25 9h9.5a.25.25 0 01.25.25v.5a.25.25 0 01-.25.25h-9.5A.25.25 0 017 9.75v-.5zm0-2A.25.25 0 017.25 7h9.5a.25.25 0 01.25.25v.5a.25.25 0 01-.25.25h-9.5A.25.25 0 017 7.75v-.5zm0-2A.25.25 0 017.25 5h9.5a.25.25 0 01.25.25v.5a.25.25 0 01-.25.25h-9.5A.25.25 0 017 5.75v-.5z" fill="#000"></path></g><defs><clipPath id="clip0"><path fill="#fff" d="M0 0h24v24H0z"></path></clipPath><filter id="filter0_dd" x="0" y="-1" width="24" height="27" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset dy="2"></feOffset><feGaussianBlur stdDeviation="1"></feGaussianBlur><feColorMatrix values="0 0 0 0 0.166759 0 0 0 0 0.195057 0 0 0 0 0.231441 0 0 0 0.33 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow"></feBlend><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset dy="2"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feColorMatrix values="0 0 0 0 0.168627 0 0 0 0 0.196078 0 0 0 0 0.231373 0 0 0 0.33 0"></feColorMatrix><feBlend in2="effect1_dropShadow" result="effect2_dropShadow"></feBlend><feBlend in="SourceGraphic" in2="effect2_dropShadow" result="shape"></feBlend></filter></defs></svg>'},46809:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M7.25 9c0-.41.34-.75.75-.75h8c.41 0 .75.34.75.75s-.34.75-.75.75H8c-.41 0-.75-.34-.75-.75ZM8 12.25c-.41 0-.75.34-.75.75s.34.75.75.75h8c.41 0 .75-.34.75-.75s-.34-.75-.75-.75H8Zm11-9H5C3.48 3.25 2.25 4.48 2.25 6v10c0 1.52 1.23 2.75 2.75 2.75h3.47c.4 0 .78.19 1.02.52l1.16 1.63c.66.92 2.01.98 2.75.12l1.57-1.83c.24-.28.59-.44.95-.44H19c1.52 0 2.75-1.23 2.75-2.75V6c0-1.52-1.23-2.75-2.75-2.75ZM20.25 16c0 .69-.56 1.25-1.25 1.25h-3.08c-.8 0-1.57.35-2.09.96l-1.57 1.83c-.1.13-.3.12-.39 0l-1.16-1.63a2.762 2.762 0 0 0-2.24-1.15H5c-.69 0-1.25-.56-1.25-1.25V6c0-.69.56-1.25 1.25-1.25h14c.69 0 1.25.56 1.25 1.25v10Z"></path></svg>'},70836:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M19 4.29a1 1 0 0 0-1.41 0l-8.1 8.14-2.95-3a1 1 0 0 0-1.42 0L2.29 12.3A1.05 1.05 0 0 0 2 13a1 1 0 0 0 .29.71l6.49 6.49a1.001 1.001 0 0 0 .71.3 1 1 0 0 0 .7-.3L21.86 8.54a1 1 0 0 0 0-1.42L19 4.29Z" clip-rule="evenodd"></path></svg>'},46480:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 14a4 4 0 1 1 0-8 4 4 0 0 1 0 8Z" clip-rule="evenodd"></path></svg>'},49139:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M22 5v10a2 2 0 0 1-2 2H8.35l-4.73 3.78A1 1 0 0 1 2 20V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2Z" clip-rule="evenodd"></path></svg>'},44052:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m22.04 6.04-5.88 5.87 5.88 5.88a.998.998 0 0 1 0 1.42l-2.83 2.83a.997.997 0 0 1-1.095.219.998.998 0 0 1-.325-.22l-5.88-5.88-5.87 5.88a.998.998 0 0 1-1.42 0l-2.83-2.83a.999.999 0 0 1 0-1.42l5.88-5.88-5.88-5.87a1 1 0 0 1-.29-.71 1 1 0 0 1 .29-.71l2.83-2.83a1 1 0 0 1 .71-.29c.265.005.518.108.71.29l5.87 5.88 5.88-5.88a1 1 0 0 1 1.42 0l2.83 2.83a.998.998 0 0 1 0 1.42Z" clip-rule="evenodd"></path></svg>'},2125:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><g clip-path="url(#a)"><path fill-rule="evenodd" d="M10 8a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1 8 8 0 1 1 11.12 7.37l-.12.06v.07a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V15a5.82 5.82 0 0 1 3.78-5.16A2 2 0 1 0 10 8Zm2 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z" clip-rule="evenodd"></path></g><defs><clipPath id="a"><path d="M0 0h24v24H0z"></path></clipPath></defs></svg>'},33203:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M11.293 1.179a1 1 0 0 1 1.414 0l7.864 7.864a1 1 0 0 1 0 1.414l-2.475 2.475a1 1 0 0 1-1.414 0L14.75 11v1.5c0 1.458.53 2.472 1.592 3.227 1.068.758 2.872 1.381 5.658 1.502.551.024 1 .469 1 1.021v3.5a.974.974 0 0 1-1 .983c-3.542-.123-6.576-.913-8.842-2.522A9.817 9.817 0 0 1 12 19.25a9.817 9.817 0 0 1-1.158.96c-2.265 1.61-5.3 2.4-8.842 2.523-.552.02-1-.43-1-.983v-3.5c0-.552.449-.997 1-1.021 2.786-.12 4.59-.744 5.658-1.502 1.062-.755 1.592-1.77 1.592-3.227V11l-1.932 1.932a1 1 0 0 1-1.414 0L3.43 10.457a1 1 0 0 1 0-1.414l7.864-7.864Z" clip-rule="evenodd"></path></svg>'},49513:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20.07 3.55a7 7 0 0 0-11.39 7.7.3.3 0 0 1 0 .12l-6.8 6.83a2 2 0 0 0-.53.93l-.29 1.17a2 2 0 0 0 2.16 2.47l1.06-.12A2 2 0 0 0 6 21.15l.47-1.89.26-.25 2.88-.26a2 2 0 0 0 1.71-1.36l.78-2.34.12-.12a.303.303 0 0 1 .12 0 7 7 0 0 0 7.7-11.39l.03.01ZM18 7.79a1.5 1.5 0 1 1-2.122-2.12A1.5 1.5 0 0 1 18 7.79Z" clip-rule="evenodd"></path></svg>'},64472:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><g clip-path="url(#a)"><path fill-rule="evenodd" d="M12 0a1 1 0 0 1 .87.5l8 14A1 1 0 0 1 20 16H4a1 1 0 0 1-.86-1.5l8-14A1 1 0 0 1 12 0ZM4.48 17.42a.77.77 0 0 0-.8-.1.75.75 0 0 0-.43.68v5a.76.76 0 0 0 .75.75.76.76 0 0 0 .75-.75v-3.4l4.77 4a.77.77 0 0 0 .8.1.75.75 0 0 0 .43-.7v-5a.75.75 0 1 0-1.5 0v3.4l-4.77-3.98Zm9.52-.17h4.5a2.25 2.25 0 1 1 0 4.5h-3.75V23a.75.75 0 1 1-1.5 0v-5a.76.76 0 0 1 .75-.75Zm.75 3v-1.5h3.75a.75.75 0 1 1 0 1.5h-3.75Z" clip-rule="evenodd"></path></g><defs><clipPath id="a"><path d="M0 0h24v24H0z"></path></clipPath></defs></svg>'},68648:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M21.94 13.06 15 20v-7h7l-.06.06ZM22 11h-7a2 2 0 0 0-2 2v7H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5Z" clip-rule="evenodd"></path></svg>'},87030:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M8 16h1v5a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V6.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 .5.5V21a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V6.5a.5.5 0 0 1 .5-.5H22a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1H8a7 7 0 0 0 0 14Z" clip-rule="evenodd"></path></svg>'},73833:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M14.71 2.296a1 1 0 0 0-1.42 0l-2.83 2.83a1 1 0 0 0-.29.71c.004.265.107.518.29.71l2.3 2.29H2a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h10.76l-2.3 2.29a1.002 1.002 0 0 0 0 1.42l2.83 2.82a1.002 1.002 0 0 0 1.42 0l8.83-8.82a1.05 1.05 0 0 0 .29-.71 1 1 0 0 0-.29-.71l-8.83-8.83Z" clip-rule="evenodd"></path></svg>'},30493:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20.858 10.159 4.985 2.226a2.06 2.06 0 0 0-2.738 2.799L5.943 12l-3.696 6.965a2.057 2.057 0 0 0 2.738 2.809l15.873-7.932a2.059 2.059 0 0 0 0-3.684Z" clip-rule="evenodd"></path></svg>'},13828:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m21.73 10.2-4.63 3.36L18.87 19a1.5 1.5 0 0 1-2.31 1.68l-4.63-3.37-4.64 3.38A1.5 1.5 0 0 1 4.99 19l1.77-5.45-4.64-3.35A1.5 1.5 0 0 1 3 7.48h5.73L10.5 2a1.5 1.5 0 0 1 2.85 0l1.77 5.44h5.73a1.5 1.5 0 0 1 .88 2.76Z" clip-rule="evenodd"></path></svg>'},96738:e=>{e.exports='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 8.75C8.41421 8.75 8.75 9.08579 8.75 9.5V11.5C8.75 11.9142 8.41421 12.25 8 12.25C7.58579 12.25 7.25 11.9142 7.25 11.5V9.5C7.25 9.08579 7.58579 8.75 8 8.75Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M4.75 5.75V4C4.75 2.20507 6.20507 0.75 8 0.75C9.79493 0.75 11.25 2.20507 11.25 4V5.75H12C12.9665 5.75 13.75 6.5335 13.75 7.5V13.5C13.75 14.4665 12.9665 15.25 12 15.25H4C3.0335 15.25 2.25 14.4665 2.25 13.5V7.5C2.25 6.5335 3.0335 5.75 4 5.75H4.75ZM6.25 4C6.25 3.0335 7.0335 2.25 8 2.25C8.9665 2.25 9.75 3.0335 9.75 4V5.75H6.25V4ZM12 7.25C12.1381 7.25 12.25 7.36193 12.25 7.5V13.5C12.25 13.6381 12.1381 13.75 12 13.75H4C3.86193 13.75 3.75 13.6381 3.75 13.5V7.5C3.75 7.36193 3.86193 7.25 4 7.25H12Z" fill="currentColor"></path></svg>'},39715:e=>{e.exports='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.5 8.75C7.91421 8.75 8.25 9.08579 8.25 9.5V11.5C8.25 11.9142 7.91421 12.25 7.5 12.25C7.08579 12.25 6.75 11.9142 6.75 11.5V9.5C6.75 9.08579 7.08579 8.75 7.5 8.75Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M10.75 4C10.75 3.0335 11.5335 2.25 12.5 2.25C13.4665 2.25 14.25 3.0335 14.25 4V5C14.25 5.41421 14.5858 5.75 15 5.75C15.4142 5.75 15.75 5.41421 15.75 5V4C15.75 2.20507 14.2949 0.75 12.5 0.75C10.7051 0.75 9.25 2.20507 9.25 4V5.75H3.5C2.5335 5.75 1.75 6.5335 1.75 7.5V13.5C1.75 14.4665 2.5335 15.25 3.5 15.25H11.5C12.4665 15.25 13.25 14.4665 13.25 13.5V7.5C13.25 6.5335 12.4665 5.75 11.5 5.75H10.75V4ZM3.5 7.25C3.36193 7.25 3.25 7.36193 3.25 7.5V13.5C3.25 13.6381 3.36193 13.75 3.5 13.75H11.5C11.6381 13.75 11.75 13.6381 11.75 13.5V7.5C11.75 7.36193 11.6381 7.25 11.5 7.25H3.5Z" fill="currentColor"></path></svg>'},78832:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M1.5 12c0 5.799 4.701 10.5 10.5 10.5S22.5 17.799 22.5 12 17.799 1.5 12 1.5 1.5 6.201 1.5 12ZM3 12a9 9 0 0 1 9-9h.005v18h.019H12a9 9 0 0 1-9-9Zm10.505 8.875a8.932 8.932 0 0 0 1.49-.385V3.51a8.937 8.937 0 0 0-1.49-.385v17.75ZM16.495 4.2v15.598a9.031 9.031 0 0 0 1.5-1.086V5.287a9.028 9.028 0 0 0-1.5-1.086Zm3 2.814v9.97A8.958 8.958 0 0 0 21 12a8.958 8.958 0 0 0-1.505-4.985Z" clip-rule="evenodd"></path></svg>'},4278:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M9.75 3.5a2.25 2.25 0 0 1 4.256-1.02A2.25 2.25 0 0 1 17.25 4.5v.878a2.25 2.25 0 0 1 3 2.122V16a6.75 6.75 0 0 1-6.75 6.75h-1.115a6.75 6.75 0 0 1-4.634-1.843l-5.92-5.59a2.55 2.55 0 0 1 3.43-3.773l1.489 1.303V6a2.25 2.25 0 0 1 3-2.122V3.5Zm1.5 7.5a.75.75 0 0 1-1.5 0V6a.75.75 0 0 0-1.5 0v7.735c0 .942-1.11 1.446-1.82.825l-2.157-1.887a1.05 1.05 0 0 0-1.412 1.553l5.92 5.59a5.25 5.25 0 0 0 3.604 1.434H13.5c2.9 0 5.25-2.35 5.25-5.25V7.5a.75.75 0 0 0-1.5 0V11a.75.75 0 0 1-1.5 0V4.5a.75.75 0 0 0-1.5 0V11a.75.75 0 0 1-1.5 0V3.5a.75.75 0 0 0-1.5 0V11Z" clip-rule="evenodd"></path></svg>'},95914:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M4.735 1.693A1.5 1.5 0 0 0 2.5 3v5.5H.75a.75.75 0 0 0 0 1.5h5a.75.75 0 0 0 0-1.5H4V3l16 9-16 9v-6.33l1.002.89a.75.75 0 0 0 .996-1.12L3.25 11.995.502 14.44a.75.75 0 0 0 .996 1.122l1.002-.89V21a1.5 1.5 0 0 0 2.235 1.307l16-9a1.5 1.5 0 0 0 0-2.614l-16-9Z"></path></svg>'},5581:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 4.25a.75.75 0 0 1 .75.75v6.25H19a.75.75 0 0 1 0 1.5h-6.25V19a.75.75 0 0 1-1.5 0v-6.25H5a.75.75 0 0 1 0-1.5h6.25V5a.75.75 0 0 1 .75-.75Z" clip-rule="evenodd"></path></svg>'},61381:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M4.735 1.693A1.5 1.5 0 0 0 2.5 3v18a1.5 1.5 0 0 0 2.235 1.307l16-9a1.5 1.5 0 0 0 0-2.614l-16-9ZM20 12 4 21v-3.34l12.861-7.426L20 12Zm-4.152-2.335L4 16.505v-3.464l8.81-5.086 3.038 1.71Zm-4.052-2.28L4 11.887V8.423l4.757-2.747 3.04 1.71ZM4 7.268l3.744-2.162L4 3v4.268Z" clip-rule="evenodd"></path></svg>'},32393:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3.243 1.705a1.5 1.5 0 0 1 1.492-.012l16 9a1.5 1.5 0 0 1 0 2.614l-16 9A1.5 1.5 0 0 1 2.5 21V3a1.5 1.5 0 0 1 .743-1.295ZM4 21l16-9L4 3v18Z" clip-rule="evenodd"></path></svg>'},82617:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M22.427 3.384a.75.75 0 0 1 .19 1.043l-7.62 11a.75.75 0 0 1-1.16.09l-4.126-4.333-7.094 10.243a.75.75 0 1 1-1.233-.854l7.619-11a.75.75 0 0 1 1.16-.09l4.126 4.333 7.095-10.243a.75.75 0 0 1 1.043-.19Z" clip-rule="evenodd"></path></svg>'},57543:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12.75 1a.75.75 0 0 0-1.5 0v.777a10.252 10.252 0 0 0-9.473 9.473H1a.75.75 0 0 0 0 1.5h.777a10.252 10.252 0 0 0 9.473 9.473V23a.75.75 0 0 0 1.5 0v-.777a10.252 10.252 0 0 0 9.473-9.473H23a.75.75 0 0 0 0-1.5h-.777a10.252 10.252 0 0 0-9.473-9.473V1Zm-1.5 2.282V4a.75.75 0 0 0 1.5 0v-.718a8.752 8.752 0 0 1 7.968 7.968H20a.75.75 0 0 0 0 1.5h.718a8.752 8.752 0 0 1-7.968 7.968V20a.75.75 0 0 0-1.5 0v.718a8.752 8.752 0 0 1-7.968-7.968H4a.75.75 0 0 0 0-1.5h-.718a8.752 8.752 0 0 1 7.968-7.968ZM12 8.25a.75.75 0 0 1 .75.75v2.25H15a.75.75 0 0 1 0 1.5h-2.25V15a.75.75 0 0 1-1.5 0v-2.25H9a.75.75 0 0 1 0-1.5h2.25V9a.75.75 0 0 1 .75-.75Z" clip-rule="evenodd"></path></svg>'},31718:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M17.5 9c0 .55-.45 1-1 1s-1-.45-1-1 .45-1 1-1 1 .45 1 1ZM10 15.25c-.41 0-.75.34-.75.75s.34.75.75.75h4c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-4Zm0 3c-.41 0-.75.34-.75.75s.34.75.75.75h4c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-4Zm11-13h-2.25V3.5c0-.97-.78-1.75-1.75-1.75H7c-.97 0-1.75.78-1.75 1.75v1.75H3C1.48 5.25.25 6.48.25 8v8c0 1.52 1.23 2.75 2.75 2.75h2.25V22c0 .97.78 1.75 1.75 1.75h10c.97 0 1.75-.78 1.75-1.75v-3.25H21c1.52 0 2.75-1.23 2.75-2.75V8c0-1.52-1.23-2.75-2.75-2.75ZM6.75 3.5c0-.14.11-.25.25-.25h10c.14 0 .25.11.25.25v1.75H6.75V3.5ZM17.25 22c0 .14-.11.25-.25.25H7c-.14 0-.25-.11-.25-.25v-9c0-.14.11-.25.25-.25h10c.14 0 .25.11.25.25v9Zm5-6c0 .69-.56 1.25-1.25 1.25h-2.25V13c0-.97-.78-1.75-1.75-1.75H7c-.97 0-1.75.78-1.75 1.75v4.25H3c-.69 0-1.25-.56-1.25-1.25V8c0-.69.56-1.25 1.25-1.25h18c.69 0 1.25.56 1.25 1.25v8Z"></path></svg>'},3702:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3 4a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4Zm1.5 3.554V4.5h5.553L4.5 7.554Zm0 1.141v2.86L17.326 4.5h-5.198L4.5 8.695ZM19.4 4.5 4.5 12.695v2.86l15-8.25V4.5h-.1Zm.1 3.945-15 8.25V19.5h.099L19.5 11.304V8.445Zm0 4L6.674 19.5h5.197l7.629-4.196v-2.858Zm0 4L13.946 19.5H19.5v-3.055Z" clip-rule="evenodd"></path></svg>'},47888:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M4.5 4.5v15h15v-15h-15ZM4 3a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H4Z" clip-rule="evenodd"></path></svg>'},3918:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M10.75 1.25h-9.5v9.5h9.5v-9.5Zm-8 8v-6.5h6.5v6.5h-6.5Zm18.352-5.78a.75.75 0 0 1 0 1.06l-8.486 8.486a1.75 1.75 0 0 0 2.468 2.482l4.957-4.957a.75.75 0 0 1 1.06 1.06l-7.778 7.779a.75.75 0 0 1-.324.19L3.1 22.4a.75.75 0 0 1-.736-1.252L20.041 3.47a.75.75 0 0 1 1.06 0ZM5.47 20.16l5.209-5.209c.128.586.42 1.144.876 1.6a3.235 3.235 0 0 0 1.598.875l-.754.755-6.93 1.98Z" clip-rule="evenodd"></path></svg>'},6116:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M10.75 1.25h-9.5V4a.75.75 0 0 0 1.5 0V2.75h2.5v6.5H4.5a.75.75 0 0 0 0 1.5h3a.75.75 0 0 0 0-1.5h-.75v-6.5h2.5V4a.75.75 0 0 0 1.5 0V1.25Zm10.352 2.22a.75.75 0 0 1 0 1.06l-8.486 8.486a1.75 1.75 0 0 0 2.468 2.482l4.957-4.957a.75.75 0 0 1 1.06 1.06l-4.95 4.95-.01.01-2.818 2.819a.75.75 0 0 1-.324.19L3.1 22.4a.75.75 0 0 1-.736-1.252L20.041 3.47a.75.75 0 0 1 1.06 0ZM5.47 20.16l5.209-5.209c.128.586.42 1.144.876 1.6a3.235 3.235 0 0 0 1.598.875l-.754.755-6.93 1.98Z" clip-rule="evenodd"></path></svg>'},38544:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M7 4a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4ZM1 14a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-6Zm11.496-9.74h-1.222L9.01 10h1.205l.46-1.263h2.418L13.545 10h1.206l-2.255-5.74Zm-.615 1.132.852 2.337h-1.697l.845-2.337Zm6.845-1.132h-1.222L15.241 10h1.205l.46-1.263h2.418L19.775 10h1.206l-2.255-5.74Zm-.615 1.132.853 2.337h-1.698l.845-2.337Zm-.492 8.868h1.222L21.096 20H19.89l-.45-1.263h-2.42L16.561 20h-1.205l2.263-5.74Zm1.46 3.469-.853-2.337-.845 2.337h1.697ZM12.61 14.26h-1.222L9.126 20h1.205l.46-1.263h2.418L13.66 20h1.206l-2.255-5.74Zm-.615 1.132.852 2.337H11.15l.845-2.337ZM5.159 14.26H6.38L8.636 20H7.43l-.45-1.263H4.56L4.1 20H2.897l2.263-5.74Zm1.46 3.469-.853-2.337-.845 2.337h1.697Z" clip-rule="evenodd"></path></svg>'},41669:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M8 3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H8Zm10.726 1.26h-1.222L15.241 10h1.205l.46-1.263h2.418L19.775 10h1.206l-2.255-5.74Zm-.615 1.132.853 2.337h-1.698l.845-2.337ZM11.274 4.26h1.222L14.75 10h-1.206l-.45-1.263h-2.42L10.216 10H9.011l2.263-5.74Zm1.46 3.469-.853-2.337-.845 2.337h1.697ZM2 13a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1H2Z" clip-rule="evenodd"></path></svg>'},79784:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M3.528 1.468a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06l1.97 1.97-1.97 1.97c-.29.29-.29.77 0 1.06.29.29.77.29 1.06 0l1.97-1.97 1.97 1.97c.29.29.77.29 1.06 0 .29-.29.29-.77 0-1.06l-1.97-1.97 1.97-1.97c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-1.97 1.97-1.97-1.97Zm16.51 9.07-4.96 4.96c-.68.67-1.78.67-2.46-.01-.69-.68-.69-1.79 0-2.47l8.48-8.49c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-17.68 17.68a.74.74 0 0 0-.11.91c.17.29.52.43.85.34l9.9-2.83c.12-.03.23-.1.32-.19l7.78-7.78c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0Zm-7.64 7.64-6.93 1.98 5.21-5.21c.13.59.42 1.15.88 1.6.45.46 1.01.75 1.59.88l-.75.75Z"></path></svg>'},25613:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M15.47 3.47a.75.75 0 0 0 0 1.06l2.72 2.72H10a6.75 6.75 0 0 0 0 13.5h2a.75.75 0 0 0 0-1.5h-2a5.25 5.25 0 1 1 0-10.5h8.19l-2.72 2.72a.75.75 0 1 0 1.06 1.06L21.06 8l-4.53-4.53a.75.75 0 0 0-1.06 0Z" clip-rule="evenodd"></path></svg>'},79938:e=>{e.exports='<svg width="16" height="16" viewBox="0 0 16 16" fill="black" xmlns="http://www.w3.org/2000/svg"><path d="M8.00002 14.3333C11.4978 14.3333 14.3334 11.4978 14.3334 7.99996C14.3334 4.50216 11.4978 1.66663 8.00002 1.66663C4.50222 1.66663 1.66669 4.50216 1.66669 7.99996C1.66669 11.4978 4.50222 14.3333 8.00002 14.3333Z" fill="#D63960"></path><path d="M5.88 5.88L10.12 10.12M10.12 5.88L5.88 10.12" stroke="#D63960" strokeWidth="1.25" strokeMiterlimit="10" strokeLinecap="round"></path></svg>'},85624:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M11.006 2.564a.75.75 0 0 1 .988-1.128l4 3.5a.75.75 0 0 1 0 1.128l-4 3.5a.75.75 0 0 1-.988-1.128l2.558-2.239a6.25 6.25 0 1 0 4.686 6.053.75.75 0 0 1 1.5 0 7.75 7.75 0 1 1-6.397-7.632l-2.347-2.054Z"></path></svg>'},62129:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M7.25 1c0-.41.34-.75.75-.75h15c.41 0 .75.34.75.75v15c0 .41-.34.75-.75.75h-7.5c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h6.75V1.75H8.75V9c0 .41-.34.75-.75.75s-.75-.34-.75-.75V1Zm-7 12c0-.41.34-.75.75-.75h5c.41 0 .75.34.75.75s-.34.75-.75.75H1.75v8.5h8.5V18c0-.41.34-.75.75-.75s.75.34.75.75v5c0 .41-.34.75-.75.75H1c-.41 0-.75-.34-.75-.75V13ZM12.5 4.75c-.41 0-.75.34-.75.75s.34.75.75.75h4.19L4.47 18.47c-.29.29-.29.77 0 1.06.29.29.77.29 1.06 0L17.75 7.31v4.19c0 .41.34.75.75.75s.75-.34.75-.75V4.75H12.5Z" clip-rule="evenodd"></path></svg>'},22849:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3.75 10.5a6.75 6.75 0 1 1 13.5 0 6.75 6.75 0 0 1-13.5 0Zm6.75-8.25a8.25 8.25 0 1 0 5.28 14.59l4.69 4.69a.75.75 0 0 0 1.06-1.06l-4.69-4.69A8.25 8.25 0 0 0 10.5 2.25Z" clip-rule="evenodd"></path></svg>'},63046:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m20.12 5.063-.68-.68a2.746 2.746 0 0 0-3.88 0l-12.8 12.8c-.33.32-.51.77-.51 1.23v3.34h4.34c.46 0 .91-.18 1.23-.51l12.3-12.3a2.746 2.746 0 0 0 0-3.88ZM6.76 20.183s-.11.07-.17.07H3.75v-1.84c0-.06.03-.13.07-.17L14 8.063l2.44 2.44-9.68 9.68Zm12.3-12.3-1.56 1.56-2.44-2.44 1.56-1.56c.48-.48 1.28-.48 1.76 0l.68.68c.48.48.48 1.28 0 1.76ZM23 21.753H9.43l1.5-1.5H23c.41 0 .75.34.75.75s-.34.75-.75.75Z" clip-rule="evenodd"></path></svg>'},74539:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M9 2.75c-.69 0-1.25.56-1.25 1.25v16.112l3.704-3.927a.75.75 0 0 1 1.091 0l3.705 3.927V4c0-.69-.56-1.25-1.25-1.25H9ZM6.25 4A2.75 2.75 0 0 1 9 1.25h6A2.75 2.75 0 0 1 17.75 4v18a.75.75 0 0 1-1.296.515L12 17.793l-4.454 4.722A.75.75 0 0 1 6.25 22V4Z" clip-rule="evenodd"></path></svg>'},83982:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M4.5 6.5C5.33 6.5 6 5.83 6 5s-.67-1.5-1.5-1.5S3 4.17 3 5s.67 1.5 1.5 1.5Zm5-2.25c-.41 0-.75.34-.75.75s.34.75.75.75h11c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-11Zm0 7c-.41 0-.75.34-.75.75s.34.75.75.75h11c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-11ZM8.75 19c0-.41.34-.75.75-.75h11c.41 0 .75.34.75.75s-.34.75-.75.75h-11c-.41 0-.75-.34-.75-.75ZM6 12c0 .83-.67 1.5-1.5 1.5S3 12.83 3 12s.67-1.5 1.5-1.5S6 11.17 6 12Zm-1.5 8.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5S3 18.17 3 19s.67 1.5 1.5 1.5Z"></path></svg>'},86022:e=>{e.exports='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.2478 3.29211C12.0874 3.23596 11.9126 3.23596 11.7522 3.29211L1.75224 6.79211C1.45142 6.89739 1.25 7.18129 1.25 7.5C1.25 7.81871 1.45142 8.10261 1.75224 8.20789L6.87365 10.0004L1.75224 11.7929C1.45144 11.8982 1.25002 12.182 1.25 12.5007C1.24998 12.8194 1.45136 13.1033 1.75215 13.2086L6.86938 15.0004L1.75215 16.7921C1.45136 16.8975 1.24998 17.1814 1.25 17.5C1.25002 17.8187 1.45144 18.1026 1.75224 18.2079L11.7522 21.7079C11.9126 21.764 12.0874 21.764 12.2478 21.7079L22.2478 18.2079C22.5486 18.1026 22.75 17.8187 22.75 17.5C22.75 17.1814 22.5486 16.8975 22.2479 16.7921L17.1296 15L22.2479 13.2086C22.5486 13.1033 22.75 12.8194 22.75 12.5007C22.75 12.182 22.5486 11.8982 22.2478 11.7929L17.1263 10.0004L22.2478 8.20789C22.5486 8.10261 22.75 7.81871 22.75 7.5C22.75 7.18129 22.5486 6.89739 22.2478 6.79211L12.2478 3.29211ZM14.856 10.795L12.2478 11.7079C12.0874 11.764 11.9126 11.764 11.7522 11.7079L9.14397 10.795L4.26991 12.5009L9.35626 14.2819C9.36674 14.285 9.37717 14.2884 9.38754 14.292L12 15.2055L19.7301 12.5009L14.856 10.795ZM12 10.2054L4.27032 7.5L12 4.79461L19.7297 7.5L12 10.2054ZM11.7525 16.7088L9.13906 15.795L4.26991 17.4999L12 20.2054L19.7301 17.4999L14.8598 15.7946L12.2475 16.7088C12.0873 16.7648 11.9127 16.7648 11.7525 16.7088Z" fill="currentColor"></path></svg>'},58113:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M22.5 15.75h-8.64c.31-1.16.59-2.39.81-3.62.22-1.24.39-2.48.49-3.66.64-.38 1.29-.72 1.95-1 .04.21.08.45.13.72.02.16.05.33.08.5.1.54.22 1.13.38 1.63.09.25.19.51.33.74.13.21.34.46.63.61.32.16.69.08.92-.19.87-1.05 2.74-3.88 3.16-6.87a.747.747 0 0 0-.63-.85.747.747 0 0 0-.85.63c-.29 2.02-1.36 4.02-2.19 5.26-.11-.35-.19-.77-.27-1.22-.02-.14-.05-.29-.07-.44-.07-.37-.13-.73-.19-1.02-.05-.2-.11-.42-.19-.61a1.25 1.25 0 0 0-.22-.33.85.85 0 0 0-.63-.28c-.09 0-.18.02-.26.05-.67.25-1.33.55-1.98.89.01-.57 0-1.11-.03-1.61-.06-.97-.21-1.86-.51-2.52-.29-.67-.83-1.31-1.72-1.31-.65 0-1.56.27-2.5.63-.98.37-2.1.88-3.22 1.45-2.22 1.14-4.53 2.54-5.77 3.6-.31.27-.35.74-.08 1.06.27.31.74.35 1.06.08 1.1-.94 3.28-2.28 5.48-3.4 1.08-.56 2.15-1.04 3.06-1.39.95-.36 1.62-.53 1.97-.53.03 0 .17 0 .35.41.19.43.33 1.11.38 2.01.05.72.04 1.54-.01 2.42-.85.54-1.65 1.14-2.39 1.78-1.74 1.48-3.19 3.18-4 4.79-.2.41-.33.98-.4 1.59H2c-.41 0-.75.34-.75.75s.34.75.75.75h4.86c.01.54.05 1.11.12 1.66.11.88.32 1.77.67 2.46.33.67.91 1.38 1.85 1.38.8 0 1.43-.56 1.9-1.15.48-.62.93-1.47 1.33-2.44.24-.58.47-1.23.69-1.91h9.08c.41 0 .75-.34.75-.75s-.34-.75-.75-.75Zm-11.16 2.84c-.37.91-.76 1.62-1.13 2.09-.39.5-.63.57-.71.57-.06 0-.26-.04-.51-.55-.24-.48-.42-1.18-.53-1.99-.06-.48-.09-.98-.1-1.46h3.48c-.16.47-.33.92-.5 1.34Zm1.85-6.72c-.24 1.33-.54 2.66-.88 3.88H8.45c.06-.44.14-.75.22-.91.69-1.39 1.99-2.94 3.63-4.33.4-.34.81-.67 1.24-.98-.09.76-.21 1.55-.35 2.34ZM1.97 9.97c.29-.29.77-.29 1.06 0l.97.97.97-.97c.29-.29.77-.29 1.06 0 .29.29.29.77 0 1.06l-.97.97.97.97c.29.29.29.77 0 1.06-.29.29-.77.29-1.06 0L4 13.06l-.97.97c-.29.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06l.97-.97-.97-.97a.754.754 0 0 1 0-1.06Z" clip-rule="evenodd"></path></svg>'},98255:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M10 4.25H5c-.41 0-.75.34-.75.75v5c0 .41.34.75.75.75h5c.41 0 .75-.34.75-.75V5c0-.41-.34-.75-.75-.75Zm-.75 5h-3.5v-3.5h3.5v3.5Zm.75 4H5c-.41 0-.75.34-.75.75v5c0 .41.34.75.75.75h5c.41 0 .75-.34.75-.75v-5c0-.41-.34-.75-.75-.75Zm-.75 5h-3.5v-3.5h3.5v3.5Zm9.75-5h-5c-.41 0-.75.34-.75.75v5c0 .41.34.75.75.75h5c.41 0 .75-.34.75-.75v-5c0-.41-.34-.75-.75-.75Zm-.75 5h-3.5v-3.5h3.5v3.5Zm.75-14h-5c-.41 0-.75.34-.75.75v5c0 .41.34.75.75.75h5c.41 0 .75-.34.75-.75V5c0-.41-.34-.75-.75-.75Zm-.75 5h-3.5v-3.5h3.5v3.5Z" clip-rule="evenodd"></path></svg>'},66960:e=>{e.exports='<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3 8.50011C5.33333 6.50011 12 2.99989 14 3C17.6401 3.0002 14 22.9999 10.5 22.9999C8.5 22.9999 8.25462 16.9906 9 15.4999C10.5 12.5 14.5 8.9999 18.5 7.4999C19 7.5 19 11.5 20 11.9999C20.8333 10.9999 22.6 8.29989 23 5.49989" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.5 14.5L5 13M6.5 11.5L5 13M5 13L3.5 11.5M5 13L6.5 14.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3 17.5H23.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><g clip-path="url(#clip0_9189_304632)"><path fill-rule="evenodd" clip-rule="evenodd" d="M22 32C27.5228 32 32 27.5228 32 22C32 16.4772 27.5228 12 22 12C16.4772 12 12 16.4772 12 22C12 27.5228 16.4772 32 22 32ZM25.5303 19.5303C25.8232 19.2374 25.8232 18.7626 25.5303 18.4697C25.2374 18.1768 24.7626 18.1768 24.4697 18.4697L18.4697 24.4697C18.1768 24.7626 18.1768 25.2374 18.4697 25.5303C18.7626 25.8232 19.2374 25.8232 19.5303 25.5303L25.5303 19.5303Z" fill="currentColor"></path></g><defs><clipPath id="clip0_9189_304632"><rect width="20" height="20" fill="white" transform="translate(12 12)"></rect></clipPath></defs></svg>'},93928:e=>{e.exports='<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3 8.50011C5.33333 6.50011 12 2.99989 14 3C17.6401 3.0002 14 22.9999 10.5 22.9999C8.5 22.9999 8.25462 16.9906 9 15.4999C10.5 12.5 14.5 8.9999 18.5 7.4999C19 7.5 19 11.5 20 11.9999C20.8333 10.9999 22.6 8.29989 23 5.49989" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.5 14.5L5 13M6.5 11.5L5 13M5 13L3.5 11.5M5 13L6.5 14.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3 17.5H23.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><g clip-path="url(#clip0_9187_304481)"><path fill-rule="evenodd" clip-rule="evenodd" d="M22 32C27.5228 32 32 27.5228 32 22C32 16.4772 27.5228 12 22 12C16.4772 12 12 16.4772 12 22C12 27.5228 16.4772 32 22 32ZM26.5301 20.0302C26.823 19.7373 26.823 19.2624 26.5301 18.9695C26.2372 18.6766 25.7623 18.6766 25.4694 18.9695L20.9997 23.4392L19.0302 21.4699C18.7373 21.177 18.2624 21.177 17.9695 21.4699C17.6766 21.7628 17.6767 22.2377 17.9696 22.5306L20.9998 25.5605L26.5301 20.0302Z" fill="currentColor"></path></g><defs><clipPath id="clip0_9187_304481"><rect width="20" height="20" fill="white" transform="translate(12 12)"></rect></clipPath></defs></svg>'},89750:e=>{e.exports='<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3 8.50011C5.33333 6.50011 12 2.99989 14 3C17.6401 3.0002 14 22.9999 10.5 22.9999C8.5 22.9999 8.25462 16.9906 9 15.4999C10.5 12.5 14.5 8.9999 18.5 7.4999C19 7.5 19 11.5 20 11.9999C20.8333 10.9999 22.6 8.29989 23 5.49989" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.5 14.5L5 13M6.5 11.5L5 13M5 13L3.5 11.5M5 13L6.5 14.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3 17.5H23.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><g><path fill-rule="evenodd" clip-rule="evenodd" d="M31.5289 26.9662L24.0011 14.4193L23.0694 14.9783L24.0011 14.4193C23.0949 12.9088 20.9058 12.9087 19.9995 14.4192L12.4709 26.9661C11.5377 28.5213 12.658 30.5 14.4717 30.5H29.528C31.3417 30.5 32.462 28.5214 31.5289 26.9662ZM22 18.25C22.4142 18.25 22.75 18.5858 22.75 19V23C22.75 23.4142 22.4142 23.75 22 23.75C21.5858 23.75 21.25 23.4142 21.25 23V19C21.25 18.5858 21.5858 18.25 22 18.25ZM22 27.5C22.6904 27.5 23.25 26.9404 23.25 26.25C23.25 25.5596 22.6904 25 22 25C21.3096 25 20.75 25.5596 20.75 26.25C20.75 26.9404 21.3096 27.5 22 27.5Z" fill="currentColor"></path></g></svg>'},92733:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M22.5 15.75h-8.64c.31-1.16.59-2.39.81-3.62.22-1.24.39-2.48.49-3.66.64-.38 1.29-.72 1.95-1 .04.21.08.45.13.72.02.16.05.33.08.5.1.54.22 1.13.38 1.63.09.25.19.51.33.74.13.21.34.46.63.61.32.16.69.08.92-.19.87-1.05 2.74-3.88 3.16-6.87a.747.747 0 0 0-.63-.85.747.747 0 0 0-.85.63c-.29 2.02-1.36 4.02-2.19 5.26-.11-.35-.19-.77-.27-1.22-.02-.14-.05-.29-.07-.44-.07-.37-.13-.73-.19-1.02-.05-.2-.11-.42-.19-.61a1.25 1.25 0 0 0-.22-.33.85.85 0 0 0-.63-.28c-.09 0-.18.02-.26.05-.67.25-1.33.55-1.98.89.01-.57 0-1.11-.03-1.61-.06-.97-.21-1.86-.51-2.52-.29-.67-.83-1.31-1.72-1.31-.65 0-1.56.27-2.5.63-.98.37-2.1.88-3.22 1.45-2.22 1.14-4.53 2.54-5.77 3.6-.31.27-.35.74-.08 1.06.27.31.74.35 1.06.08 1.1-.94 3.28-2.28 5.48-3.4 1.08-.56 2.15-1.04 3.06-1.39.95-.36 1.62-.53 1.97-.53.03 0 .17 0 .35.41.19.43.33 1.11.38 2.01.05.72.04 1.54-.01 2.42-.85.54-1.65 1.14-2.39 1.78-1.74 1.48-3.19 3.18-4 4.79-.2.41-.33.98-.4 1.59H2c-.41 0-.75.34-.75.75s.34.75.75.75h4.86c.01.54.05 1.11.12 1.66.11.88.32 1.77.67 2.46.33.67.91 1.38 1.85 1.38.8 0 1.43-.56 1.9-1.15.48-.62.93-1.47 1.33-2.44.24-.58.47-1.23.69-1.91h9.08c.41 0 .75-.34.75-.75s-.34-.75-.75-.75Zm-11.16 2.84c-.37.91-.76 1.62-1.13 2.09-.39.5-.63.57-.71.57-.06 0-.26-.04-.51-.55-.24-.48-.42-1.18-.53-1.99-.06-.48-.09-.98-.1-1.46h3.48c-.16.47-.33.92-.5 1.34Zm1.85-6.72c-.24 1.33-.54 2.66-.88 3.88H8.45c.06-.44.14-.75.22-.91.69-1.39 1.99-2.94 3.63-4.33.4-.34.81-.67 1.24-.98-.09.76-.21 1.55-.35 2.34ZM1.97 9.97c.29-.29.77-.29 1.06 0l.97.97.97-.97c.29-.29.77-.29 1.06 0 .29.29.29.77 0 1.06l-.97.97.97.97c.29.29.29.77 0 1.06-.29.29-.77.29-1.06 0L4 13.06l-.97.97c-.29.29-.77.29-1.06 0a.754.754 0 0 1 0-1.06l.97-.97-.97-.97a.754.754 0 0 1 0-1.06Z" clip-rule="evenodd"></path></svg>'},7787:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="31" height="31" viewBox="-6 -6 37 37" fill="currentColor"><path fill-rule="evenodd" d="M5 .25A1.75 1.75 0 0 0 3.25 2v20c0 .966.784 1.75 1.75 1.75h14A1.75 1.75 0 0 0 20.75 22V6.5a.75.75 0 0 0-.22-.53l-5.5-5.5a.75.75 0 0 0-.53-.22H5ZM4.75 2A.25.25 0 0 1 5 1.75h8.75V6.5c0 .414.336.75.75.75h4.75V22a.25.25 0 0 1-.25.25H5a.25.25 0 0 1-.25-.25V2Z" clip-rule="evenodd"></path></svg>'},84140:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M6.993 6.25c-.41 0-.75.34-.75.75s.34.75.75.75h4.25V18c0 .41.34.75.75.75s.75-.34.75-.75V7.75h4.25c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-10Zm1.09 15.22c.46-.61 1.37-.61 1.81-.02 1.05 1.4 3.15 1.4 4.2 0 .44-.59 1.35-.59 1.81.02 1.03 1.38 3.12 1.45 4.21.08l.46-.58c.26-.32.21-.8-.12-1.05a.738.738 0 0 0-1.05.12l-.46.58c-.46.58-1.38.57-1.84-.04-1.04-1.39-3.16-1.43-4.21-.02-.45.6-1.35.6-1.8 0-1.06-1.41-3.17-1.37-4.21.02-.46.61-1.37.63-1.84.04l-.46-.58a.748.748 0 0 0-1.17.93l.46.58c1.09 1.36 3.18 1.3 4.21-.08Z"></path></svg>'},14990:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M18.75 15H14.5V9.62c1.21-.86 2-2.27 2-3.87C16.5 3.13 14.37 1 11.75 1S7 3.13 7 5.75c0 1.6.79 3.01 2 3.87V15H4.77c-1.5 0-2.73 1.2-2.75 2.7L2 18.74a.748.748 0 0 0 .75.76h18c.41 0 .75-.34.75-.75v-1c0-1.52-1.23-2.75-2.75-2.75ZM20 18H3.51v-.27c.02-.68.57-1.23 1.26-1.23h4.98c.41 0 .75-.34.75-.75V9.21c0-.27-.14-.52-.38-.65A3.24 3.24 0 0 1 8.5 5.75c0-1.8 1.45-3.25 3.25-3.25S15 3.95 15 5.75c0 1.2-.65 2.25-1.62 2.81-.24.13-.38.38-.38.65v6.54c0 .41.34.75.75.75h5c.69 0 1.25.56 1.25 1.25V18ZM2.75 21c-.41 0-.75.34-.75.75s.34.75.75.75h18c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-18Z" clip-rule="evenodd"></path></svg>'},93763:e=>{e.exports='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path id="Vector" opacity="0.15" d="M18.5 4H5.5C4.67157 4 4 4.67157 4 5.5V18.5C4 19.3284 4.67157 20 5.5 20H18.5C19.3284 20 20 19.3284 20 18.5V5.5C20 4.67157 19.3284 4 18.5 4Z" fill="currentColor"></path><path id="Vector_2" d="M10.94 16L7.81998 13.14C7.7228 13.0507 7.64417 12.9431 7.58856 12.8234C7.53295 12.7038 7.50146 12.5743 7.49589 12.4424C7.49032 12.3106 7.51077 12.1789 7.55609 12.055C7.6014 11.931 7.67068 11.8172 7.75998 11.72C7.94033 11.5237 8.19126 11.4072 8.45756 11.3959C8.58942 11.3903 8.72108 11.4108 8.84504 11.4561C8.96899 11.5014 9.0828 11.5707 9.17998 11.66L10.81 13.16L14.76 8.76C14.8425 8.6471 14.9477 8.55276 15.069 8.48306C15.1902 8.41336 15.3247 8.36986 15.4637 8.35536C15.6028 8.34087 15.7434 8.3557 15.8764 8.3989C16.0094 8.44211 16.1318 8.51272 16.2358 8.60618C16.3398 8.69965 16.4231 8.81388 16.4802 8.94151C16.5373 9.06915 16.567 9.20734 16.5674 9.34717C16.5678 9.487 16.5389 9.62535 16.4825 9.7533C16.4261 9.88126 16.3435 9.99596 16.24 10.09L10.94 16Z" fill="currentColor"></path></svg>'},81769:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M6.24 7c0-.41.34-.75.75-.75h10c.41 0 .75.34.75.75s-.34.75-.75.75h-4.25v2h-1.5v-2H6.99c-.41 0-.75-.34-.75-.75Zm5 11v-3.75h1.5V18c0 .41-.34.75-.75.75s-.75-.34-.75-.75Zm-6.25-6.75c-.41 0-.75.34-.75.75s.34.75.75.75h14c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-14Z"></path></svg>'},48823:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3.5 14.5v-11h11v11h-11ZM2 3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3Zm13 14.5a2.5 2.5 0 0 0 2.5-2.5V8H21a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-3.5h7Z" clip-rule="evenodd"></path></svg>'},25916:e=>{e.exports='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.57889 18.881C6.18889 18.491 5.55889 18.491 5.16889 18.881C4.77889 19.271 4.77889 19.901 5.16889 20.291C5.55889 20.681 6.18889 20.681 6.57889 20.291C6.96889 19.901 6.96889 19.271 6.57889 18.881ZM21.6089 8.09103L20.5589 7.05103C20.5589 7.05103 20.5489 7.04103 20.5489 7.03103L19.1289 5.62103C19.1289 5.62103 19.1189 5.61103 19.1089 5.60103L14.1789 0.671026C13.9889 0.481026 13.7089 0.401026 13.4389 0.481026C13.1789 0.551026 12.9789 0.761026 12.9189 1.03103V1.07103C12.9189 1.07103 12.8889 1.15103 12.8689 1.21103C12.8389 1.33103 12.7889 1.52103 12.7189 1.74103C12.5889 2.20103 12.3689 2.84103 12.0689 3.57103C11.5489 4.84103 10.7789 6.33103 9.72889 7.56103C9.03889 7.06103 8.07889 7.12103 7.45889 7.74103L6.39889 8.80103C5.71889 9.48103 5.71889 10.591 6.39889 11.281L8.36889 13.241C8.47889 13.351 8.45889 13.541 8.32889 13.631L3.76889 16.661C1.86889 17.931 1.60889 20.621 3.21889 22.241C4.83889 23.851 7.52889 23.581 8.78889 21.681L11.8289 17.131C11.9189 16.991 12.1089 16.981 12.2189 17.091L14.1789 19.051C14.8689 19.741 15.9689 19.741 16.6589 19.051L17.7189 17.991C18.3389 17.371 18.3989 16.391 17.8789 15.711L21.6089 11.981C22.6789 10.911 22.6789 9.17103 21.6089 8.09103ZM16.6589 16.931L15.5989 17.991C15.4989 18.091 15.3389 18.091 15.2389 17.991L13.2789 16.031C12.4989 15.251 11.1989 15.371 10.5789 16.291L7.53889 20.851C6.79889 21.961 5.22889 22.121 4.27889 21.171C3.33889 20.231 3.48889 18.651 4.60889 17.911L9.15889 14.871C10.0789 14.261 10.2089 12.961 9.42889 12.181L7.45889 10.211C7.36889 10.121 7.36889 9.96103 7.45889 9.86103L8.52889 8.80103C8.61889 8.70103 8.77889 8.70103 8.87889 8.80103L9.20889 9.13103C9.20889 9.13103 9.20889 9.15103 9.22889 9.15103L16.2989 16.231C16.2989 16.231 16.3189 16.241 16.3289 16.251L16.6589 16.581C16.7489 16.681 16.7489 16.831 16.6589 16.931ZM20.5489 10.921L16.8289 14.631L10.7989 8.60103C12.0389 7.19103 12.8989 5.50103 13.4589 4.14103C13.6889 3.57103 13.8789 3.06103 14.0189 2.63103L17.9089 6.52103C17.9089 6.52103 17.9189 6.57103 17.9189 6.61103C17.9389 6.80103 17.9489 7.08103 17.9089 7.42103C17.8189 8.09103 17.5289 8.98103 16.6589 9.86103C16.3589 10.151 16.3589 10.631 16.6589 10.921C16.9489 11.211 17.4189 11.211 17.7189 10.921L20.0089 8.62103L20.5489 9.15103C21.0289 9.64103 21.0289 10.431 20.5489 10.921Z" fill="currentColor"></path></svg>'},50681:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3 3.75a.75.75 0 0 0 0 1.5h18a.75.75 0 0 0 0-1.5H3Zm3 5a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5H6ZM2.25 14.5a.75.75 0 0 1 .75-.75h18a.75.75 0 0 1 0 1.5H3a.75.75 0 0 1-.75-.75ZM6 18.75a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5H6Z" clip-rule="evenodd"></path></svg>'},80209:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3 3.75a.75.75 0 0 0 0 1.5h18a.75.75 0 0 0 0-1.5H3Zm0 5a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5H3Zm-.75 5.75a.75.75 0 0 1 .75-.75h18a.75.75 0 0 1 0 1.5H3a.75.75 0 0 1-.75-.75ZM3 18.75a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5H3Z" clip-rule="evenodd"></path></svg>'},25532:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3 3.75a.75.75 0 0 0 0 1.5h18a.75.75 0 0 0 0-1.5H3Zm6 5a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5H9ZM2.25 14.5a.75.75 0 0 1 .75-.75h18a.75.75 0 0 1 0 1.5H3a.75.75 0 0 1-.75-.75ZM9 18.75a.75.75 0 0 0 0 1.5h12a.75.75 0 0 0 0-1.5H9Z" clip-rule="evenodd"></path></svg>'},22925:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M11.25 4a.75.75 0 0 1 1.5 0v10.156l1.713-1.757a.75.75 0 1 1 1.074 1.048L12 17.074l-3.537-3.627A.75.75 0 0 1 9.537 12.4l1.713 1.756V4Zm9.25 16.25a.75.75 0 0 0 0-1.5h-17a.75.75 0 0 0 0 1.5h17Z" clip-rule="evenodd"></path></svg>'},54039:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M8.97 5.47a.75.75 0 0 1 1.06 0l1.22 1.22V2a.75.75 0 0 1 1.5 0v4.69l1.22-1.22a.75.75 0 1 1 1.06 1.06L12 9.56 8.97 6.53a.75.75 0 0 1 0-1.06ZM2.75 12a.75.75 0 0 1 .75-.75h17a.75.75 0 0 1 0 1.5h-17a.75.75 0 0 1-.75-.75Zm7.28 6.53a.75.75 0 1 1-1.06-1.06L12 14.44l3.03 3.03a.75.75 0 1 1-1.06 1.06l-1.22-1.22V22a.75.75 0 0 1-1.5 0v-4.69l-1.22 1.22Z" clip-rule="evenodd"></path></svg>'},52869:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3.5 3.75a.75.75 0 0 0 0 1.5h17a.75.75 0 0 0 0-1.5h-17ZM12.75 20a.75.75 0 0 1-1.5 0V9.844L9.537 11.6a.75.75 0 1 1-1.074-1.048L12 6.926l3.537 3.627a.75.75 0 1 1-1.074 1.047L12.75 9.845V20Z" clip-rule="evenodd"></path></svg>'},97294:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M4 3.25a.75.75 0 0 0 0 1.5h4.25V15a.75.75 0 0 0 1.5 0V4.75H14a.75.75 0 0 0 0-1.5H4ZM8 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1h-9.75v7A2.25 2.25 0 0 1 8 17.016V21Z" clip-rule="evenodd"></path></svg>'},98670:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M4 2.5a3 3 0 0 0-3 3v13a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3v-13a3 3 0 0 0-3-3H4Zm3 3.75a.75.75 0 0 0 0 1.5h4.25V18a.75.75 0 0 0 1.5 0V7.75H17a.75.75 0 0 0 0-1.5H7Z" clip-rule="evenodd"></path></svg>'},72940:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M19.75 3c0-.41-.34-.75-.75-.75s-.75.34-.75.75v18c0 .41.34.75.75.75s.75-.34.75-.75V3ZM5 6.25c-.41 0-.75.34-.75.75s.34.75.75.75h4.25V18c0 .41.34.75.75.75s.75-.34.75-.75V7.75H15c.41 0 .75-.34.75-.75s-.34-.75-.75-.75H5Z"></path></svg>'},93433:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><circle cx="8" cy="8" r="4" fill="currentColor" fill-opacity="0.5"></circle></svg>'},49263:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><circle cx="8" cy="8" r="7.5" stroke="currentColor"></circle></svg>'},23175:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M8.75 7c0-.41-.34-.75-.75-.75s-.75.34-.75.75v7c0 2.62 2.13 4.75 4.75 4.75s4.75-2.13 4.75-4.75V7c0-.41-.34-.75-.75-.75s-.75.34-.75.75v7c0 1.79-1.46 3.25-3.25 3.25S8.75 15.79 8.75 14V7ZM5 20.25c-.41 0-.75.34-.75.75s.34.75.75.75h14c.41 0 .75-.34.75-.75s-.34-.75-.75-.75H5Z"></path></svg>'},99919:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M8.53 3.47a.75.75 0 0 1 0 1.06L5.81 7.25H14a6.75 6.75 0 0 1 0 13.5h-2a.75.75 0 0 1 0-1.5h2a5.25 5.25 0 1 0 0-10.5H5.81l2.72 2.72a.75.75 0 1 1-1.06 1.06L2.94 8l4.53-4.53a.75.75 0 0 1 1.06 0Z" clip-rule="evenodd"></path></svg>'},71053:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M13 3.25c-.41 0-.75.34-.75.75v7c0 .41.34.75.75.75h7c.41 0 .75-.34.75-.75V4c0-.41-.34-.75-.75-.75h-7Zm.75 7v-5.5h5.5v5.5h-5.5Zm-9.75 2c-.41 0-.75.34-.75.75v7c0 .41.34.75.75.75h7c.41 0 .75-.34.75-.75v-7c0-.41-.34-.75-.75-.75H4Zm.75 7v-5.5h5.5v5.5h-5.5Z" clip-rule="evenodd"></path></svg>'},45089:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M12.75 15.8c.45-.26.75-.74.75-1.3 0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5c0 .56.3 1.04.75 1.3V18c0 .41.34.75.75.75s.75-.34.75-.75v-2.2ZM18 9h-1.25V5c0-2.62-2.13-4.75-4.75-4.75S7.25 2.38 7.25 5v.5c0 .41.34.75.75.75s.75-.34.75-.75V5c0-1.79 1.46-3.25 3.25-3.25S15.25 3.21 15.25 5v4H6c-1.66 0-3 1.34-3 3v8c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3v-8c0-1.66-1.34-3-3-3Zm1.5 11c0 .83-.67 1.5-1.5 1.5H6c-.83 0-1.5-.67-1.5-1.5v-8c0-.83.67-1.5 1.5-1.5h12c.83 0 1.5.67 1.5 1.5v8Z"></path></svg>'},37790:e=>{e.exports='<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 11C4 10.4477 4.44772 10 5 10L23.3204 10C23.5777 10 23.8252 10.0992 24.0113 10.277L29.2435 15.277C29.6556 15.6709 29.6556 16.3291 29.2435 16.723L24.0113 21.723C23.8252 21.9008 23.5777 22 23.3204 22H5C4.44771 22 4 21.5523 4 21V11Z" fill="currentColor"></path></svg>'},84346:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M13.5 3.043a1.75 1.75 0 0 0-3 0L.266 20.1c-.7 1.166.14 2.65 1.5 2.65h20.468c1.36 0 2.2-1.484 1.5-2.65L13.502 3.043ZM12.75 9a.75.75 0 0 0-1.5 0v5a.75.75 0 0 0 1.5 0V9Zm.5 8.5a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Z" clip-rule="evenodd"></path></svg>'},94456:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M8.25 8.5a3.75 3.75 0 1 1 7.5 0 3.75 3.75 0 0 1-7.5 0Zm6.78 4.289a5.25 5.25 0 1 0-6.058 0A8.754 8.754 0 0 0 3.249 21a.75.75 0 0 0 1.5 0 7.25 7.25 0 1 1 14.5 0 .75.75 0 0 0 1.5 0 8.754 8.754 0 0 0-5.72-8.211Z" clip-rule="evenodd"></path></svg>'},84418:e=>{e.exports='<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.206 3.057a1.5 1.5 0 00-2.55.007L.406 19.714A1.5 1.5 0 001.685 22h20.614a1.5 1.5 0 001.273-2.293L13.206 3.057zm-2.38 6.241h2.353l-.28 6.132H11.12l-.294-6.132zm-.083 8.666c0-.686.56-1.26 1.26-1.26.714 0 1.26.574 1.26 1.26 0 .7-.546 1.274-1.26 1.274-.7 0-1.26-.574-1.26-1.274z" fill="currentColor"></path></svg>'},47059:e=>{e.exports='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="warning-2"><path id="Vector 324" d="M7.42834 2.28608L0.605798 13.657C0.339189 14.1013 0.659264 14.6666 1.17746 14.6666H14.8225C15.3407 14.6666 15.6608 14.1013 15.3942 13.657L8.57166 2.28608C8.31273 1.85452 7.68727 1.85452 7.42834 2.28608Z" stroke="black" stroke-linecap="round"></path><path id="Vector 325" d="M8 6V9.33333" stroke="black" stroke-linecap="round"></path><circle id="Ellipse 1085" cx="7.99999" cy="11.6666" r="0.833333" fill="currentColor"></circle></g></svg>'},34632:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M13.5 3.043a1.75 1.75 0 0 0-3 0L.266 20.1c-.7 1.166.14 2.65 1.5 2.65h20.468c1.36 0 2.2-1.484 1.5-2.65L13.502 3.043ZM12.75 9a.75.75 0 0 0-1.5 0v5a.75.75 0 0 0 1.5 0V9Zm.5 8.5a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Z" clip-rule="evenodd"></path></svg>'},30226:e=>{e.exports='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_11043_393)"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.2062 3.05706C12.6174 2.11127 11.2394 2.1148 10.6554 3.0636L0.407199 19.7137C-0.207936 20.7131 0.511081 22 1.68462 22H22.2991C23.4761 22 24.1946 20.7064 23.5725 19.7072L13.2062 3.05706ZM12.8987 15.43L13.1787 9.298H10.8267L11.1137 15.43H12.8987ZM12.8987 17.082C12.6561 16.83 12.3574 16.704 12.0027 16.704C11.6574 16.704 11.3587 16.83 11.1067 17.082C10.8594 17.3293 10.7357 17.6257 10.7357 17.971C10.7357 18.3163 10.8594 18.615 11.1067 18.867C11.3587 19.1143 11.6574 19.238 12.0027 19.238C12.3574 19.238 12.6561 19.1143 12.8987 18.867C13.1461 18.615 13.2697 18.3163 13.2697 17.971C13.2697 17.6257 13.1461 17.3293 12.8987 17.082Z" fill="currentColor"></path></g><defs><clipPath id="clip0_11043_393"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg>'},33335:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M11.992 8.247c.41 0 .75.34.75.75v5c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-5c0-.41.34-.75.75-.75Zm0 10.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm11.73 1.35-10.23-17.06a1.751 1.751 0 0 0-3 0L.262 20.097c-.7 1.17.14 2.65 1.5 2.65h20.46c1.36 0 2.2-1.48 1.5-2.65Zm-1.5 1.15H1.762c-.2 0-.32-.21-.22-.38l10.24-17.05c.09-.17.33-.17.42 0l10.24 17.05c.1.17-.02.38-.22.38Z"></path></svg>'},98165:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M4.747 9c0-2.35 1.9-4.25 4.25-4.25h4c.41 0 .75-.34.75-.75s-.34-.75-.75-.75h-4c-3.18 0-5.75 2.57-5.75 5.75v3.19l-1.72-1.72a.754.754 0 0 0-1.06 0c-.29.29-.29.77 0 1.06l3.53 3.53 3.53-3.53c.29-.29.29-.77 0-1.06a.754.754 0 0 0-1.06 0l-1.72 1.72V9Zm15.25.25h-9c-.97 0-1.75.78-1.75 1.75v9c0 .97.78 1.75 1.75 1.75h9c.97 0 1.75-.78 1.75-1.75v-9c0-.97-.78-1.75-1.75-1.75Zm-9 1.5h9c.14 0 .25.11.25.25v9c0 .14-.11.25-.25.25h-9c-.14 0-.25-.11-.25-.25v-9c0-.14.11-.25.25-.25Z"></path></svg>'},73898:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path d="M19.25 9c0-2.35-1.9-4.25-4.25-4.25h-4c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h4c3.18 0 5.75 2.57 5.75 5.75v3.19l1.72-1.72c.29-.29.77-.29 1.06 0 .29.29.29.77 0 1.06L20 15.06l-3.53-3.53a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l1.72 1.72V9ZM4 9.25h9c.97 0 1.75.78 1.75 1.75v9c0 .97-.78 1.75-1.75 1.75H4c-.97 0-1.75-.78-1.75-1.75v-9c0-.97.78-1.75 1.75-1.75Zm9 1.5H4c-.14 0-.25.11-.25.25v9c0 .14.11.25.25.25h9c.14 0 .25-.11.25-.25v-9c0-.14-.11-.25-.25-.25Z"></path></svg>'},5080:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M18.5 10c0 2.077-.745 3.98-1.983 5.457l.013.013 5 5a.75.75 0 0 1-1.06 1.06l-5-5-.013-.013A8.5 8.5 0 1 1 18.5 10ZM10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14Zm.75-10a.75.75 0 0 0-1.5 0v2.25H7a.75.75 0 0 0 0 1.5h2.25V13a.75.75 0 0 0 1.5 0v-2.25H13a.75.75 0 0 0 0-1.5h-2.25V7Z" clip-rule="evenodd"></path></svg>'},88439:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M18.5 10c0 2.077-.745 3.98-1.983 5.457l.013.013 5 5a.75.75 0 0 1-1.06 1.06l-5-5-.013-.013A8.5 8.5 0 1 1 18.5 10ZM10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14ZM7 9.25a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5H7Z" clip-rule="evenodd"></path></svg>'},96277:(e,t,n)=>{"use strict";e.exports=n(58596)},58596:(e,t)=>{"use strict";function n(e,t){if(void 0===t&&(t=""),!e)throw Error(t)}var r=Object.keys(TextMetrics.prototype),o=r.includes("actualBoundingBoxAscent")&&r.includes("actualBoundingBoxDescent");function i(e,t,n){for(var r=0;r<t;++r)if(0!==e.data[n*t*4+4*r+3])return!1;return!0}t.default=function(e){var t=this;if(void 0===e&&(e=""),this.calculateBoundingBox=function(e){n(t.ctx),t.ctx.fillText(e,0,0);for(var r=t.ctx.canvas,o=r.width,a=t.ctx.getImageData(0,0,o,r.height),s=0,l=a.height;s<l&&i(a,o,s);)++s;for(;l-1>s&&i(a,o,l-1);)--l;return l-s},this.measureText=function(e,r){void 0===r&&(r=t.font),n(t.ctx),t.ctx.font=r;var i=t.ctx.measureText(e),a=i.width,s=o?i.actualBoundingBoxAscent+i.actualBoundingBoxDescent:t.calculateBoundingBox(e);return{width:Math.round(a),height:Math.round(s)}},this.clean=function(){t.canvasElem&&document.body.removeChild(t.canvasElem)},"OffscreenCanvas"in window&&"function"==typeof OffscreenCanvas){var r=new OffscreenCanvas(1e3,100);this.ctx=r.getContext("2d")}else this.canvasElem=document.createElement("canvas"),document.body.appendChild(this.canvasElem),this.ctx=this.canvasElem.getContext("2d"),n(this.ctx),this.ctx.canvas.width=1e3,this.ctx.canvas.height=1e3;this.font=e,n(this.ctx),this.ctx.font=e}},6163:(e,t,n)=>{"use strict";function r(e){var t=new Error(e);return t.source="ulid",t}n.d(t,{Z0:()=>p});var o="0123456789ABCDEFGHJKMNPQRSTVWXYZ",i=32,a=Math.pow(2,48)-1;function s(e){var t=Math.floor(e()*i);return t===i&&(t=31),o.charAt(t)}function l(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>a)throw r("cannot encode time greater than "+a);if(e<0)throw r("time must be positive");if(!1===Number.isInteger(e))throw r("time must be an integer");for(var n=void 0,s="";t>0;t--)s=o.charAt(n=e%i)+s,e=(e-n)/i;return s}function c(e,t){for(var n="";e>0;e--)n=s(t)+n;return n}function u(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments[1];t||(t="undefined"!=typeof window?window:null);var o=t&&(t.crypto||t.msCrypto);if(o)return function(){var e=new Uint8Array(1);return o.getRandomValues(e),e[0]/255};try{var i=n(16194);return function(){return i.randomBytes(1).readUInt8()/255}}catch(e){}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch(e){}return function(){return Math.random()}}throw r("secure crypto unusable, insecure Math.random not allowed")}var d,p=(d||(d=u()),function(e){return isNaN(e)&&(e=Date.now()),l(e,10)+c(16,d)})},16194:()=>{},1063:(e,t,n)=>{"use strict";var r=n(96540);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),a((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},88940:(e,t,n)=>{"use strict";var r=n(96540),o=n(19888);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,s=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=s(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c((function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,s=n)}var a,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]);var h=a(e,d[0],d[1]);return l((function(){p.hasValue=!0,p.value=h}),[h]),u(h),h}},19888:(e,t,n)=>{"use strict";e.exports=n(1063)},69242:(e,t,n)=>{"use strict";e.exports=n(88940)},79308:(e,t,n)=>{"use strict";let r;n.d(t,{v4:()=>w});const o=new Uint8Array(16);function i(){if(!r&&(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}const a=/^(?:[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;const s=function(e){return"string"==typeof e&&a.test(e)},l=[];for(let e=0;e<256;++e)l.push((e+256).toString(16).slice(1));function c(e,t=0){return l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]}const u=function(e){if(!s(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function d(e,t,n){function r(e,r,o,i){var a;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=u(r)),16!==(null===(a=r)||void 0===a?void 0:a.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let s=new Uint8Array(16+e.length);if(s.set(r),s.set(e,r.length),s=n(s),s[6]=15&s[6]|t,s[8]=63&s[8]|128,o){i=i||0;for(let e=0;e<16;++e)o[i+e]=s[e];return o}return c(s)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function p(e){return 14+(e+64>>>9<<4)+1}function h(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function f(e,t,n,r,o,i){return h((a=h(h(t,e),h(r,i)))<<(s=o)|a>>>32-s,n);var a,s}function m(e,t,n,r,o,i,a){return f(t&n|~t&r,e,t,o,i,a)}function g(e,t,n,r,o,i,a){return f(t&r|n&~r,e,t,o,i,a)}function v(e,t,n,r,o,i,a){return f(t^n^r,e,t,o,i,a)}function y(e,t,n,r,o,i,a){return f(n^(t|~r),e,t,o,i,a)}d("v3",48,(function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length,r="0123456789abcdef";for(let o=0;o<n;o+=8){const n=e[o>>5]>>>o%32&255,i=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[p(t)-1]=t;let n=1732584193,r=-271733879,o=-1732584194,i=271733878;for(let t=0;t<e.length;t+=16){const a=n,s=r,l=o,c=i;n=m(n,r,o,i,e[t],7,-680876936),i=m(i,n,r,o,e[t+1],12,-389564586),o=m(o,i,n,r,e[t+2],17,606105819),r=m(r,o,i,n,e[t+3],22,-1044525330),n=m(n,r,o,i,e[t+4],7,-176418897),i=m(i,n,r,o,e[t+5],12,1200080426),o=m(o,i,n,r,e[t+6],17,-1473231341),r=m(r,o,i,n,e[t+7],22,-45705983),n=m(n,r,o,i,e[t+8],7,1770035416),i=m(i,n,r,o,e[t+9],12,-1958414417),o=m(o,i,n,r,e[t+10],17,-42063),r=m(r,o,i,n,e[t+11],22,-1990404162),n=m(n,r,o,i,e[t+12],7,1804603682),i=m(i,n,r,o,e[t+13],12,-40341101),o=m(o,i,n,r,e[t+14],17,-1502002290),r=m(r,o,i,n,e[t+15],22,1236535329),n=g(n,r,o,i,e[t+1],5,-165796510),i=g(i,n,r,o,e[t+6],9,-1069501632),o=g(o,i,n,r,e[t+11],14,643717713),r=g(r,o,i,n,e[t],20,-373897302),n=g(n,r,o,i,e[t+5],5,-701558691),i=g(i,n,r,o,e[t+10],9,38016083),o=g(o,i,n,r,e[t+15],14,-660478335),r=g(r,o,i,n,e[t+4],20,-405537848),n=g(n,r,o,i,e[t+9],5,568446438),i=g(i,n,r,o,e[t+14],9,-1019803690),o=g(o,i,n,r,e[t+3],14,-187363961),r=g(r,o,i,n,e[t+8],20,1163531501),n=g(n,r,o,i,e[t+13],5,-1444681467),i=g(i,n,r,o,e[t+2],9,-51403784),o=g(o,i,n,r,e[t+7],14,1735328473),r=g(r,o,i,n,e[t+12],20,-1926607734),n=v(n,r,o,i,e[t+5],4,-378558),i=v(i,n,r,o,e[t+8],11,-2022574463),o=v(o,i,n,r,e[t+11],16,1839030562),r=v(r,o,i,n,e[t+14],23,-35309556),n=v(n,r,o,i,e[t+1],4,-1530992060),i=v(i,n,r,o,e[t+4],11,1272893353),o=v(o,i,n,r,e[t+7],16,-155497632),r=v(r,o,i,n,e[t+10],23,-1094730640),n=v(n,r,o,i,e[t+13],4,681279174),i=v(i,n,r,o,e[t],11,-358537222),o=v(o,i,n,r,e[t+3],16,-722521979),r=v(r,o,i,n,e[t+6],23,76029189),n=v(n,r,o,i,e[t+9],4,-640364487),i=v(i,n,r,o,e[t+12],11,-421815835),o=v(o,i,n,r,e[t+15],16,530742520),r=v(r,o,i,n,e[t+2],23,-995338651),n=y(n,r,o,i,e[t],6,-198630844),i=y(i,n,r,o,e[t+7],10,1126891415),o=y(o,i,n,r,e[t+14],15,-1416354905),r=y(r,o,i,n,e[t+5],21,-57434055),n=y(n,r,o,i,e[t+12],6,1700485571),i=y(i,n,r,o,e[t+3],10,-1894986606),o=y(o,i,n,r,e[t+10],15,-1051523),r=y(r,o,i,n,e[t+1],21,-2054922799),n=y(n,r,o,i,e[t+8],6,1873313359),i=y(i,n,r,o,e[t+15],10,-30611744),o=y(o,i,n,r,e[t+6],15,-1560198380),r=y(r,o,i,n,e[t+13],21,1309151649),n=y(n,r,o,i,e[t+4],6,-145523070),i=y(i,n,r,o,e[t+11],10,-1120210379),o=y(o,i,n,r,e[t+2],15,718787259),r=y(r,o,i,n,e[t+9],21,-343485551),n=h(n,a),r=h(r,s),o=h(o,l),i=h(i,c)}return[n,r,o,i]}(function(e){if(0===e.length)return[];const t=8*e.length,n=new Uint32Array(p(t));for(let r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}));const b={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};const w=function(e,t,n){if(b.randomUUID&&!t&&!e)return b.randomUUID();const r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return c(r)};function x(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function S(e,t){return e<<t|e>>>32-t}d("v5",80,(function(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const r=e.length/4+2,o=Math.ceil(r/16),i=new Array(o);for(let t=0;t<o;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];i[t]=n}i[o-1][14]=8*(e.length-1)/Math.pow(2,32),i[o-1][14]=Math.floor(i[o-1][14]),i[o-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<o;++e){const r=new Uint32Array(80);for(let t=0;t<16;++t)r[t]=i[e][t];for(let e=16;e<80;++e)r[e]=S(r[e-3]^r[e-8]^r[e-14]^r[e-16],1);let o=n[0],a=n[1],s=n[2],l=n[3],c=n[4];for(let e=0;e<80;++e){const n=Math.floor(e/20),i=S(o,5)+x(n,a,s,l)+c+t[n]+r[e]>>>0;c=l,l=s,s=S(a,30)>>>0,a=o,o=i}n[0]=n[0]+o>>>0,n[1]=n[1]+a>>>0,n[2]=n[2]+s>>>0,n[3]=n[3]+l>>>0,n[4]=n[4]+c>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}))},29843:e=>{e.exports="1139dca3c446e0c1"},95920:e=>{e.exports="54550b3e8ae83744"},41211:e=>{e.exports="2f2f38dcd3a74c2e"},45242:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},7915:(e,t,n)=>{var r={"./check.svg":70836,"./circle.svg":46480,"./comment.svg":49139,"./cross.svg":44052,"./help.svg":2125,"./insert.svg":33203,"./key.svg":49513,"./newParagraph.svg":64472,"./note.svg":68648,"./paragraph.svg":87030,"./rightArrow.svg":73833,"./rightPointer.svg":30493,"./star.svg":13828};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=7915},33488:(e,t,n)=>{var r={"./add-text-box.svg":41278,"./add.svg":72522,"./ai-assistant.svg":41160,"./all-pages.svg":45625,"./ancestor-hidden.svg":78683,"./ancestor-locked.svg":28089,"./annotate.svg":45129,"./anonymous.svg":71884,"./arrow-right.svg":63873,"./arrow-up.svg":38798,"./arrow.svg":7728,"./back.svg":55892,"./blend-mode.svg":56926,"./bold.svg":11772,"./bookmark-active.svg":61448,"./border-color.svg":43221,"./calibrate.svg":53504,"./callout.svg":97783,"./caret-down-variant.svg":92803,"./caret-down.svg":62159,"./caret-left.svg":73648,"./caret-right.svg":4479,"./caret-up.svg":14016,"./caret.svg":32998,"./check-circle.svg":40452,"./check.svg":9447,"./checked-radio-group.svg":41504,"./checkmark.svg":95272,"./chevron-down-filled.svg":53204,"./chevron-right-filled.svg":16652,"./clockwise.svg":63645,"./close-button.svg":95072,"./close.svg":11899,"./cloudy-border.svg":76536,"./cloudy-ellipse.svg":52296,"./cloudy-polygon.svg":54116,"./cloudy-rectangle.svg":62849,"./comment-filled.svg":1937,"./comment-indicator.svg":59144,"./comment.svg":33260,"./compare-pin-drop-cursor.svg":80069,"./compare-select-point-indicator-black.svg":60652,"./content-editor.svg":75778,"./counterclockwise.svg":86103,"./dashed-ellipse.svg":42543,"./dashed-polygon.svg":623,"./dashed-rectangle.svg":35470,"./debug.svg":7022,"./delete.svg":53992,"./digital-signatures/signature-error.svg":78155,"./digital-signatures/signature-valid.svg":83691,"./distance.svg":69876,"./document-comparison.svg":28488,"./document-crop.svg":60113,"./document-editor.svg":29628,"./drawing-closing-cursor.svg":14478,"./drawing-cursor.svg":69356,"./edit.svg":15157,"./editor/add.svg":48482,"./editor/duplicate.svg":20196,"./editor/extractPages.svg":38984,"./editor/help.svg":65856,"./editor/importDocument.svg":4789,"./editor/move.svg":82822,"./editor/moveLeft.svg":46389,"./editor/moveRight.svg":85240,"./editor/multiplePages.svg":81887,"./editor/redo.svg":86437,"./editor/remove.svg":42397,"./editor/rotateLeft.svg":61259,"./editor/rotateRight.svg":26094,"./editor/selectAll.svg":74466,"./editor/selectNone.svg":8063,"./editor/undo.svg":96759,"./editor/zoomIn.svg":49729,"./editor/zoomOut.svg":47120,"./ellipse-area.svg":18601,"./ellipse.svg":20965,"./export-pdf.svg":55542,"./eye-close.svg":90011,"./eye-open.svg":44789,"./fill-color.svg":90312,"./fit-page.svg":99938,"./fit-width.svg":66781,"./font-size.svg":67572,"./font.svg":87198,"./form-button.svg":19432,"./form-checkbox.svg":359,"./form-combobox.svg":93997,"./form-creator.svg":87420,"./form-date.svg":69864,"./form-listbox.svg":47607,"./form-radio.svg":57573,"./form-signature.svg":74770,"./form-text.svg":66153,"./group.svg":15598,"./hamburger.svg":98614,"./highlight.svg":79435,"./highlighter.svg":64774,"./image.svg":34880,"./info.svg":23597,"./ink-eraser.svg":34892,"./ink.svg":47411,"./inpage-check-icon.svg":90672,"./italic.svg":87405,"./layout-config.svg":57870,"./layout-config/auto.svg":94116,"./layout-config/continuous.svg":28436,"./layout-config/double.svg":55222,"./layout-config/single.svg":92957,"./layout-config/view_rotate_left.svg":79276,"./layout-config/view_rotate_right.svg":85843,"./line-style.svg":92019,"./line-width.svg":91024,"./line.svg":50347,"./linecaps-dasharray.svg":84820,"./linestyle.svg":71118,"./link.svg":22413,"./lock.svg":10964,"./marquee-zoom.svg":65541,"./measure.svg":7883,"./media.svg":87639,"./mention.svg":57913,"./more.svg":21802,"./multi-annotations-selection.svg":48844,"./not-editable.svg":86326,"./note-add.svg":14451,"./note-icon.svg":78045,"./note-indicator.svg":92677,"./note.svg":46809,"./note/check.svg":70836,"./note/circle.svg":46480,"./note/comment.svg":49139,"./note/cross.svg":44052,"./note/help.svg":2125,"./note/insert.svg":33203,"./note/key.svg":49513,"./note/newParagraph.svg":64472,"./note/note.svg":68648,"./note/paragraph.svg":87030,"./note/rightArrow.svg":73833,"./note/rightPointer.svg":30493,"./note/star.svg":13828,"./ocg-lock.svg":96738,"./ocg-unlock.svg":39715,"./opacity.svg":78832,"./pan.svg":4278,"./perimeter.svg":95914,"./plus.svg":5581,"./polygon-area.svg":61381,"./polygon.svg":32393,"./polyline.svg":82617,"./precision.svg":57543,"./print.svg":31718,"./rectangle-area.svg":3702,"./rectangle.svg":47888,"./redact-rectangle.svg":3918,"./redact-text-highlighter.svg":6116,"./redaction-text-repeating.svg":38544,"./redaction-text-single.svg":41669,"./redaction.svg":79784,"./redo.svg":25613,"./remove-circled.svg":79938,"./rotate.svg":85624,"./scale.svg":62129,"./search.svg":22849,"./sidebar-annotations.svg":63046,"./sidebar-bookmarks.svg":74539,"./sidebar-document-outline.svg":83982,"./sidebar-layers.svg":86022,"./sidebar-signatures.svg":58113,"./sidebar-thumbnails.svg":98255,"./signature-error.svg":66960,"./signature-valid.svg":93928,"./signature-warning.svg":89750,"./signature.svg":92733,"./single-page.svg":7787,"./squiggle.svg":84140,"./stamp.svg":14990,"./status-completed.svg":93763,"./strikeout.svg":81769,"./stroke-color.svg":48823,"./style.svg":25916,"./text-align-horizontal-center.svg":50681,"./text-align-horizontal-left.svg":80209,"./text-align-horizontal-right.svg":25532,"./text-align-vertical-bottom.svg":22925,"./text-align-vertical-center.svg":54039,"./text-align-vertical-top.svg":52869,"./text-color.svg":97294,"./text-highlighter.svg":98670,"./text.svg":72940,"./toggle-arrow.svg":93433,"./unchecked-radio-group.svg":49263,"./underline.svg":23175,"./undo.svg":99919,"./ungroup.svg":71053,"./unlock.svg":45089,"./unsigned-signature-field.svg":37790,"./user-hint.svg":84346,"./user.svg":94456,"./warning-2.svg":84418,"./warning-3.svg":47059,"./warning-filled.svg":34632,"./warning-triangle-full.svg":30226,"./warning.svg":33335,"./widget_ccw.svg":98165,"./widget_cw.svg":73898,"./zoom-in.svg":5080,"./zoom-out.svg":88439};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=33488},42854:(e,t,n)=>{var r={"./add-text-box.svg":41278,"./add.svg":72522,"./ai-assistant.svg":41160,"./all-pages.svg":45625,"./ancestor-hidden.svg":78683,"./ancestor-locked.svg":28089,"./annotate.svg":45129,"./anonymous.svg":71884,"./arrow-right.svg":63873,"./arrow-up.svg":38798,"./arrow.svg":7728,"./back.svg":55892,"./blend-mode.svg":56926,"./bold.svg":11772,"./bookmark-active.svg":61448,"./border-color.svg":43221,"./calibrate.svg":53504,"./callout.svg":97783,"./caret-down-variant.svg":92803,"./caret-down.svg":62159,"./caret-left.svg":73648,"./caret-right.svg":4479,"./caret-up.svg":14016,"./caret.svg":32998,"./check-circle.svg":40452,"./check.svg":9447,"./checked-radio-group.svg":41504,"./checkmark.svg":95272,"./chevron-down-filled.svg":53204,"./chevron-right-filled.svg":16652,"./clockwise.svg":63645,"./close-button.svg":95072,"./close.svg":11899,"./cloudy-border.svg":76536,"./cloudy-ellipse.svg":52296,"./cloudy-polygon.svg":54116,"./cloudy-rectangle.svg":62849,"./comment-filled.svg":1937,"./comment-indicator.svg":59144,"./comment.svg":33260,"./compare-pin-drop-cursor.svg":80069,"./compare-select-point-indicator-black.svg":60652,"./content-editor.svg":75778,"./counterclockwise.svg":86103,"./dashed-ellipse.svg":42543,"./dashed-polygon.svg":623,"./dashed-rectangle.svg":35470,"./debug.svg":7022,"./delete.svg":53992,"./digital-signatures/signature-error.svg":78155,"./digital-signatures/signature-valid.svg":83691,"./distance.svg":69876,"./document-comparison.svg":28488,"./document-crop.svg":60113,"./document-editor.svg":29628,"./drawing-closing-cursor.svg":14478,"./drawing-cursor.svg":69356,"./edit.svg":15157,"./editor/add.svg":48482,"./editor/duplicate.svg":20196,"./editor/extractPages.svg":38984,"./editor/help.svg":65856,"./editor/importDocument.svg":4789,"./editor/move.svg":82822,"./editor/moveLeft.svg":46389,"./editor/moveRight.svg":85240,"./editor/multiplePages.svg":81887,"./editor/redo.svg":86437,"./editor/remove.svg":42397,"./editor/rotateLeft.svg":61259,"./editor/rotateRight.svg":26094,"./editor/selectAll.svg":74466,"./editor/selectNone.svg":8063,"./editor/undo.svg":96759,"./editor/zoomIn.svg":49729,"./editor/zoomOut.svg":47120,"./ellipse-area.svg":18601,"./ellipse.svg":20965,"./export-pdf.svg":55542,"./eye-close.svg":90011,"./eye-open.svg":44789,"./fill-color.svg":90312,"./fit-page.svg":99938,"./fit-width.svg":66781,"./font-size.svg":67572,"./font.svg":87198,"./form-button.svg":19432,"./form-checkbox.svg":359,"./form-combobox.svg":93997,"./form-creator.svg":87420,"./form-date.svg":69864,"./form-listbox.svg":47607,"./form-radio.svg":57573,"./form-signature.svg":74770,"./form-text.svg":66153,"./group.svg":15598,"./hamburger.svg":98614,"./highlight.svg":79435,"./highlighter.svg":64774,"./image.svg":34880,"./info.svg":23597,"./ink-eraser.svg":34892,"./ink.svg":47411,"./inpage-check-icon.svg":90672,"./italic.svg":87405,"./layout-config.svg":57870,"./layout-config/auto.svg":94116,"./layout-config/continuous.svg":28436,"./layout-config/double.svg":55222,"./layout-config/single.svg":92957,"./layout-config/view_rotate_left.svg":79276,"./layout-config/view_rotate_right.svg":85843,"./line-style.svg":92019,"./line-width.svg":91024,"./line.svg":50347,"./linecaps-dasharray.svg":84820,"./linestyle.svg":71118,"./link.svg":22413,"./lock.svg":10964,"./marquee-zoom.svg":65541,"./measure.svg":7883,"./media.svg":87639,"./mention.svg":57913,"./more.svg":21802,"./multi-annotations-selection.svg":48844,"./not-editable.svg":86326,"./note-add.svg":14451,"./note-icon.svg":78045,"./note-indicator.svg":92677,"./note.svg":46809,"./note/check.svg":70836,"./note/circle.svg":46480,"./note/comment.svg":49139,"./note/cross.svg":44052,"./note/help.svg":2125,"./note/insert.svg":33203,"./note/key.svg":49513,"./note/newParagraph.svg":64472,"./note/note.svg":68648,"./note/paragraph.svg":87030,"./note/rightArrow.svg":73833,"./note/rightPointer.svg":30493,"./note/star.svg":13828,"./ocg-lock.svg":96738,"./ocg-unlock.svg":39715,"./opacity.svg":78832,"./pan.svg":4278,"./perimeter.svg":95914,"./plus.svg":5581,"./polygon-area.svg":61381,"./polygon.svg":32393,"./polyline.svg":82617,"./precision.svg":57543,"./print.svg":31718,"./rectangle-area.svg":3702,"./rectangle.svg":47888,"./redact-rectangle.svg":3918,"./redact-text-highlighter.svg":6116,"./redaction-text-repeating.svg":38544,"./redaction-text-single.svg":41669,"./redaction.svg":79784,"./redo.svg":25613,"./remove-circled.svg":79938,"./rotate.svg":85624,"./scale.svg":62129,"./search.svg":22849,"./sidebar-annotations.svg":63046,"./sidebar-bookmarks.svg":74539,"./sidebar-document-outline.svg":83982,"./sidebar-layers.svg":86022,"./sidebar-signatures.svg":58113,"./sidebar-thumbnails.svg":98255,"./signature-error.svg":66960,"./signature-valid.svg":93928,"./signature-warning.svg":89750,"./signature.svg":92733,"./single-page.svg":7787,"./squiggle.svg":84140,"./stamp.svg":14990,"./status-completed.svg":93763,"./strikeout.svg":81769,"./stroke-color.svg":48823,"./style.svg":25916,"./text-align-horizontal-center.svg":50681,"./text-align-horizontal-left.svg":80209,"./text-align-horizontal-right.svg":25532,"./text-align-vertical-bottom.svg":22925,"./text-align-vertical-center.svg":54039,"./text-align-vertical-top.svg":52869,"./text-color.svg":97294,"./text-highlighter.svg":98670,"./text.svg":72940,"./toggle-arrow.svg":93433,"./unchecked-radio-group.svg":49263,"./underline.svg":23175,"./undo.svg":99919,"./ungroup.svg":71053,"./unlock.svg":45089,"./unsigned-signature-field.svg":37790,"./user-hint.svg":84346,"./user.svg":94456,"./warning-2.svg":84418,"./warning-3.svg":47059,"./warning-filled.svg":34632,"./warning-triangle-full.svg":30226,"./warning.svg":33335,"./widget_ccw.svg":98165,"./widget_cw.svg":73898,"./zoom-in.svg":5080,"./zoom-out.svg":88439};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=42854},91576:(e,t,n)=>{var r={"./caret-down-variant.svg":92803,"./caret-down.svg":62159,"./caret-left.svg":73648,"./caret-right.svg":4479,"./caret-up.svg":14016};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=91576},77809:(e,t,n)=>{var r={"./text-align-horizontal-center.svg":50681,"./text-align-horizontal-left.svg":80209,"./text-align-horizontal-right.svg":25532};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=77809},32255:(e,t,n)=>{var r={"./text-align-vertical-bottom.svg":22925,"./text-align-vertical-center.svg":54039,"./text-align-vertical-top.svg":52869};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=32255},39609:(e,t,n)=>{var r;!function(o,i,a,s){"use strict";var l,c=["","webkit","Moz","MS","ms","o"],u=i.createElement("div"),d=Math.round,p=Math.abs,h=Date.now;function f(e,t,n){return setTimeout(x(e,n),t)}function m(e,t,n){return!!Array.isArray(e)&&(g(e,n[t],n),!0)}function g(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==s)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function v(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=o.console&&(o.console.warn||o.console.log);return i&&i.call(o.console,r,n),e.apply(this,arguments)}}l="function"!=typeof Object.assign?function(e){if(e===s||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==s&&null!==r)for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])}return t}:Object.assign;var y=v((function(e,t,n){for(var r=Object.keys(t),o=0;o<r.length;)(!n||n&&e[r[o]]===s)&&(e[r[o]]=t[r[o]]),o++;return e}),"extend","Use `assign`."),b=v((function(e,t){return y(e,t,!0)}),"merge","Use `assign`.");function w(e,t,n){var r,o=t.prototype;(r=e.prototype=Object.create(o)).constructor=e,r._super=o,n&&l(r,n)}function x(e,t){return function(){return e.apply(t,arguments)}}function S(e,t){return"function"==typeof e?e.apply(t&&t[0]||s,t):e}function _(e,t){return e===s?t:e}function C(e,t,n){g(P(t),(function(t){e.addEventListener(t,n,!1)}))}function E(e,t,n){g(P(t),(function(t){e.removeEventListener(t,n,!1)}))}function k(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function z(e,t){return e.indexOf(t)>-1}function P(e){return e.trim().split(/\s+/g)}function A(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function D(e){return Array.prototype.slice.call(e,0)}function T(e,t,n){for(var r=[],o=[],i=0;i<e.length;){var a=t?e[i][t]:e[i];A(o,a)<0&&r.push(e[i]),o[i]=a,i++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function I(e,t){for(var n,r,o=t[0].toUpperCase()+t.slice(1),i=0;i<c.length;){if((r=(n=c[i])?n+o:t)in e)return r;i++}return s}var M=1;function N(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||o}var O="ontouchstart"in o,R=I(o,"PointerEvent")!==s,j=O&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),F="touch",B="mouse",L=24,V=["x","y"],K=["clientX","clientY"];function H(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){S(e.options.enable,[e])&&n.handler(t)},this.init()}function $(e,t,n){var r=n.pointers.length,o=n.changedPointers.length,i=1&t&&r-o==0,a=12&t&&r-o==0;n.isFirst=!!i,n.isFinal=!!a,i&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,o=r.length;n.firstInput||(n.firstInput=U(t));o>1&&!n.firstMultiple?n.firstMultiple=U(t):1===o&&(n.firstMultiple=!1);var i=n.firstInput,a=n.firstMultiple,l=a?a.center:i.center,c=t.center=W(r);t.timeStamp=h(),t.deltaTime=t.timeStamp-i.timeStamp,t.angle=Y(l,c),t.distance=Z(l,c),function(e,t){var n=t.center,r=e.offsetDelta||{},o=e.prevDelta||{},i=e.prevInput||{};1!==t.eventType&&4!==i.eventType||(o=e.prevDelta={x:i.deltaX||0,y:i.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y});t.deltaX=o.x+(n.x-r.x),t.deltaY=o.y+(n.y-r.y)}(n,t),t.offsetDirection=G(t.deltaX,t.deltaY);var u=q(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=u.x,t.overallVelocityY=u.y,t.overallVelocity=p(u.x)>p(u.y)?u.x:u.y,t.scale=a?(d=a.pointers,f=r,Z(f[0],f[1],K)/Z(d[0],d[1],K)):1,t.rotation=a?function(e,t){return Y(t[1],t[0],K)+Y(e[1],e[0],K)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,o,i,a=e.lastInterval||t,l=t.timeStamp-a.timeStamp;if(8!=t.eventType&&(l>25||a.velocity===s)){var c=t.deltaX-a.deltaX,u=t.deltaY-a.deltaY,d=q(l,c,u);r=d.x,o=d.y,n=p(d.x)>p(d.y)?d.x:d.y,i=G(c,u),e.lastInterval=t}else n=a.velocity,r=a.velocityX,o=a.velocityY,i=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=o,t.direction=i}(n,t);var d,f;var m=e.element;k(t.srcEvent.target,m)&&(m=t.srcEvent.target);t.target=m}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function U(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:d(e.pointers[n].clientX),clientY:d(e.pointers[n].clientY)},n++;return{timeStamp:h(),pointers:t,center:W(t),deltaX:e.deltaX,deltaY:e.deltaY}}function W(e){var t=e.length;if(1===t)return{x:d(e[0].clientX),y:d(e[0].clientY)};for(var n=0,r=0,o=0;o<t;)n+=e[o].clientX,r+=e[o].clientY,o++;return{x:d(n/t),y:d(r/t)}}function q(e,t,n){return{x:t/e||0,y:n/e||0}}function G(e,t){return e===t?1:p(e)>=p(t)?e<0?2:4:t<0?8:16}function Z(e,t,n){n||(n=V);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return Math.sqrt(r*r+o*o)}function Y(e,t,n){n||(n=V);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return 180*Math.atan2(o,r)/Math.PI}H.prototype={handler:function(){},init:function(){this.evEl&&C(this.element,this.evEl,this.domHandler),this.evTarget&&C(this.target,this.evTarget,this.domHandler),this.evWin&&C(N(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&E(this.element,this.evEl,this.domHandler),this.evTarget&&E(this.target,this.evTarget,this.domHandler),this.evWin&&E(N(this.element),this.evWin,this.domHandler)}};var X={mousedown:1,mousemove:2,mouseup:4},J="mousedown",Q="mousemove mouseup";function ee(){this.evEl=J,this.evWin=Q,this.pressed=!1,H.apply(this,arguments)}w(ee,H,{handler:function(e){var t=X[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:B,srcEvent:e}))}});var te={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ne={2:F,3:"pen",4:B,5:"kinect"},re="pointerdown",oe="pointermove pointerup pointercancel";function ie(){this.evEl=re,this.evWin=oe,H.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&(re="MSPointerDown",oe="MSPointerMove MSPointerUp MSPointerCancel"),w(ie,H,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),o=te[r],i=ne[e.pointerType]||e.pointerType,a=i==F,s=A(t,e.pointerId,"pointerId");1&o&&(0===e.button||a)?(e.isPrimary&&t.length>0&&(this.store=this.manager.session.pointerEvents=[]),s<0&&(t.push(e),s=t.length-1)):12&o&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,o,{pointers:t,changedPointers:[e],pointerType:i,srcEvent:e}),n&&t.splice(s,1))}});var ae={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function se(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,H.apply(this,arguments)}function le(e,t){var n=D(e.touches),r=D(e.changedTouches);return 12&t&&(n=T(n.concat(r),"identifier",!0)),[n,r]}w(se,H,{handler:function(e){var t=ae[e.type];if(1===t&&(this.started=!0),this.started){var n=le.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:F,srcEvent:e})}}});var ce={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ue="touchstart touchmove touchend touchcancel";function de(){this.evTarget=ue,this.targetIds={},H.apply(this,arguments)}function pe(e,t){var n=D(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var o,i,a=D(e.changedTouches),s=[],l=this.target;if(i=n.filter((function(e){return k(e.target,l)})),1===t)for(o=0;o<i.length;)r[i[o].identifier]=!0,o++;for(o=0;o<a.length;)r[a[o].identifier]&&s.push(a[o]),12&t&&delete r[a[o].identifier],o++;return s.length?[T(i.concat(s),"identifier",!0),s]:void 0}w(de,H,{handler:function(e){var t=ce[e.type],n=pe.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:F,srcEvent:e})}});function he(){H.apply(this,arguments);var e=x(this.handler,this);this.touch=new de(this.manager,e),this.mouse=new ee(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function fe(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,me.call(this,t)):12&e&&me.call(this,t)}function me(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),2500)}}function ge(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var o=this.lastTouches[r],i=Math.abs(t-o.x),a=Math.abs(n-o.y);if(i<=25&&a<=25)return!0}return!1}w(he,H,{handler:function(e,t,n){var r=n.pointerType==F,o=n.pointerType==B;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)fe.call(this,t,n);else if(o&&ge.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ve=I(u.style,"touchAction"),ye=ve!==s,be="compute",we="auto",xe="manipulation",Se="none",_e="pan-x",Ce="pan-y",Ee=function(){if(!ye)return!1;var e={},t=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||o.CSS.supports("touch-action",n)})),e}();function ke(e,t){this.manager=e,this.set(t)}ke.prototype={set:function(e){e==be&&(e=this.compute()),ye&&this.manager.element.style&&Ee[e]&&(this.manager.element.style[ve]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return g(this.manager.recognizers,(function(t){S(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(z(e,Se))return Se;var t=z(e,_e),n=z(e,Ce);if(t&&n)return Se;if(t||n)return t?_e:Ce;if(z(e,xe))return xe;return we}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,o=z(r,Se)&&!Ee[Se],i=z(r,Ce)&&!Ee[Ce],a=z(r,_e)&&!Ee[_e];if(o){var s=1===e.pointers.length,l=e.distance<2,c=e.deltaTime<250;if(s&&l&&c)return}if(!a||!i)return o||i&&6&n||a&&n&L?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var ze=32;function Pe(e){this.options=l({},this.defaults,e||{}),this.id=M++,this.manager=null,this.options.enable=_(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Ae(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function De(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function Te(e,t){var n=t.manager;return n?n.get(e):e}function Ie(){Pe.apply(this,arguments)}function Me(){Ie.apply(this,arguments),this.pX=null,this.pY=null}function Ne(){Ie.apply(this,arguments)}function Oe(){Pe.apply(this,arguments),this._timer=null,this._input=null}function Re(){Ie.apply(this,arguments)}function je(){Ie.apply(this,arguments)}function Fe(){Pe.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Be(e,t){return(t=t||{}).recognizers=_(t.recognizers,Be.defaults.preset),new Le(e,t)}Pe.prototype={defaults:{},set:function(e){return l(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(m(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Te(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return m(e,"dropRecognizeWith",this)||(e=Te(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(m(e,"requireFailure",this))return this;var t=this.requireFail;return-1===A(t,e=Te(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(m(e,"dropRequireFailure",this))return this;e=Te(e,this);var t=A(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+Ae(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+Ae(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=ze},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=l({},e);if(!S(this.options.enable,[this,t]))return this.reset(),void(this.state=ze);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},w(Ie,Pe,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,o=this.attrTest(e);return r&&(8&n||!o)?16|t:r||o?4&n?8|t:2&t?4|t:2:ze}}),w(Me,Ie,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push(Ce),e&L&&t.push(_e),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,o=e.direction,i=e.deltaX,a=e.deltaY;return o&t.direction||(6&t.direction?(o=0===i?1:i<0?2:4,n=i!=this.pX,r=Math.abs(e.deltaX)):(o=0===a?1:a<0?8:16,n=a!=this.pY,r=Math.abs(e.deltaY))),e.direction=o,n&&r>t.threshold&&o&t.direction},attrTest:function(e){return Ie.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=De(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),w(Ne,Ie,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Se]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),w(Oe,Pe,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[we]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,o=e.deltaTime>t.time;if(this._input=e,!r||!n||12&e.eventType&&!o)this.reset();else if(1&e.eventType)this.reset(),this._timer=f((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return ze},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=h(),this.manager.emit(this.options.event,this._input)))}}),w(Re,Ie,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Se]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),w(je,Ie,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Me.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:n&L&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&p(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=De(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),w(Fe,Pe,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[xe]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,o=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(r&&o&&n){if(4!=e.eventType)return this.failTimeout();var i=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||Z(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&i?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=f((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return ze},failTimeout:function(){return this._timer=f((function(){this.state=ze}),this.options.interval,this),ze},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Be.VERSION="2.0.7",Be.defaults={domEvents:!1,touchAction:be,enable:!0,inputTarget:null,inputClass:null,preset:[[Re,{enable:!1}],[Ne,{enable:!1},["rotate"]],[je,{direction:6}],[Me,{direction:6},["swipe"]],[Fe],[Fe,{event:"doubletap",taps:2},["tap"]],[Oe]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Le(e,t){var n;this.options=l({},Be.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(R?ie:j?de:O?he:ee))(n,$),this.touchAction=new ke(this,this.options.touchAction),Ve(this,!0),g(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function Ve(e,t){var n,r=e.element;r.style&&(g(e.options.cssProps,(function(o,i){n=I(r.style,i),t?(e.oldCssProps[n]=r.style[n],r.style[n]=o):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}Le.prototype={set:function(e){return l(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,o=t.curRecognizer;(!o||o&&8&o.state)&&(o=t.curRecognizer=null);for(var i=0;i<r.length;)n=r[i],2===t.stopped||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(e),!o&&14&n.state&&(o=t.curRecognizer=n),i++}},get:function(e){if(e instanceof Pe)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(m(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(m(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=A(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==s&&t!==s){var n=this.handlers;return g(P(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==s){var n=this.handlers;return g(P(e),(function(e){t?n[e]&&n[e].splice(A(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=i.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&Ve(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(Be,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:ze,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:L,DIRECTION_ALL:30,Manager:Le,Input:H,TouchAction:ke,TouchInput:de,MouseInput:ee,PointerEventInput:ie,TouchMouseInput:he,SingleTouchInput:se,Recognizer:Pe,AttrRecognizer:Ie,Tap:Fe,Pan:Me,Swipe:je,Pinch:Ne,Rotate:Re,Press:Oe,on:C,off:E,each:g,merge:b,extend:y,assign:l,inherit:w,bindFn:x,prefixed:I}),(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=Be,(r=function(){return Be}.call(t,n,t,e))===s||(e.exports=r)}(window,document)},5496:e=>{"use strict";e.exports=JSON.parse('{"thumbnails":"Thumbnails","pageXofY":"Page {arg0} of {arg1}","XofY":"{arg0} of {arg1}","prevPage":"Previous Page","nextPage":"Next Page","goToPage":"Go to Page","gotoPageX":"Go to Page {arg0}","pageX":"Page {arg0}","pageLayout":"Page Layout","pageMode":"Page Mode","pageModeSingle":"Single","pageModeDouble":"Double","pageModeAutomatic":"Automatic","pageTransition":"Page Transition","pageTransitionContinuous":"Continuous","pageTransitionJump":"Jump","pageRotation":"Page Rotation","pageRotationLeft":"Rotate Left","pageRotationRight":"Rotate Right","zoomIn":"Zoom In","zoomOut":"Zoom Out","marqueeZoom":"Marquee Zoom","panMode":"Pan Mode","fitPage":"Fit Page","fitWidth":"Fit Width","annotations":"Annotations","noAnnotations":"No Annotations","bookmark":"Bookmark","bookmarks":"Bookmarks","noBookmarks":"No Bookmarks","newBookmark":"New Bookmark","addBookmark":"Add Bookmark","removeBookmark":"Remove Bookmark","loadingBookmarks":"Loading Bookmarks","deleteBookmarkConfirmMessage":"Are you sure you want to delete this bookmark?","deleteBookmarkConfirmAccessibilityLabel":"Confirm bookmark deletion","annotation":"Annotation","noteAnnotation":"Note","textAnnotation":"Text","inkAnnotation":"Drawing","highlightAnnotation":"Text Highlight","underlineAnnotation":"Underline","squiggleAnnotation":"Squiggle","strikeOutAnnotation":"Strikethrough","print":"Print","printPrepare":"Preparing document for printing…","searchDocument":"Search Document","searchPreviousMatch":"Previous","searchNextMatch":"Next","searchResultOf":"{arg0} of {arg1}","accessibilityLabelDropdownGroupToggle":"{arg0} tools, toggle menu","save":"Save","edit":"Edit","delete":"Delete","close":"Close","cancel":"Cancel","ok":"OK","done":"Done","clear":"Clear","date":"Date","time":"Time","name":"Name","color":"Color","black":"Black","white":"White","blue":"Blue","red":"Red","green":"Green","orange":"Orange","lightOrange":"Light Orange","yellow":"Yellow","lightYellow":"Light Yellow","lightBlue":"Light Blue","lightRed":"Light Red","lightGreen":"Light Green","fuchsia":"Fuchsia","purple":"Purple","pink":"Pink","mauve":"Mauve","lightGrey":"Light Gray","grey":"Gray","darkGrey":"Dark Gray","noColor":"None","transparent":"Transparent","darkBlue":"Dark Blue","opacity":"Opacity","thickness":"Thickness","size":"Size","numberInPt":"{arg0} pt","font":"Font","fonts":"Fonts","allFonts":"All Fonts","alignment":"Alignment","alignmentLeft":"Left","alignmentRight":"Right","alignmentCenter":"Center","verticalAlignment":"Vertical Alignment","horizontalAlignment":"Horizontal Alignment","top":"Top","bottom":"Bottom","deleteAnnotationConfirmMessage":"Are you sure you want to delete this annotation?","deleteAnnotationConfirmAccessibilityLabel":"Confirm annotation deletion","fontFamilyUnsupported":"{arg0} (not supported)","sign":"Sign","signed":"Signed","signatures":"Signatures","addSignature":"Add Signature","clearSignature":"Clear Signature","storeSignature":"Store Signature","pleaseSignHere":"Please sign here","signing":"Signing…","password":"Password","unlock":"Unlock","passwordRequired":"Password Required","unlockThisDocument":"You have to unlock this document in order to view it. Please enter the password in the field below.","incorrectPassword":"The password you entered isn’t correct. Please try again.","blendMode":"Blend Mode","normal":"Normal","multiply":"Multiply","screenBlend":"Screen","overlay":"Overlay","darken":"Darken","lighten":"Lighten","colorDodge":"Color Dodge","colorBurn":"Color Burn","hardLight":"Hard Light","softLight":"Soft Light","difference":"Difference","exclusion":"Exclusion","multiple":"Multiple","linecaps-dasharray":"Line Style","dasharray":"Line Style","startLineCap":"Line Start","strokeDashArray":"Line Style","endLineCap":"Line End","lineAnnotation":"Line","rectangleAnnotation":"Rectangle","ellipseAnnotation":"Ellipse","polygonAnnotation":"Polygon","polylineAnnotation":"Polyline","solid":"Solid","narrowDots":"Narrow Dots","wideDots":"Wide Dots","narrowDashes":"Narrow Dashes","wideDashes":"Wide Dashes","none":"None","square":"Square","circle":"Circle","diamond":"Diamond","openArrow":"Open Arrow","closedArrow":"Closed Arrow","butt":"Butt","reverseOpenArrow":"Reverse Open Arrow","reverseClosedArrow":"Reverse Closed Arrow","slash":"Slash","fillColor":"Fill Color","cloudy":"Cloudy","arrow":"Arrow","filePath":"File Path","unsupportedImageFormat":"Unsupported type for image annotation: {arg0}. Please use a JPEG or a PNG.","noOutline":"No Outline","outline":"Outline","imageAnnotation":"Image","selectImage":"Select Image","stampAnnotation":"Stamp","highlighter":"Freeform Highlight","textHighlighter":"Text Highlighter","pen":"Drawing","eraser":"Eraser","export":"Export","useAnExistingStampDesign":"Use an existing stamp design","createStamp":"Create Stamp","stampText":"Stamp Text","chooseColor":"Choose Color","rejected":"Rejected","accepted":"Accepted","approved":"Approved","notApproved":"Not Approved","draft":"Draft","final":"Final","completed":"Completed","confidential":"Confidential","forPublicRelease":"For Public Release","notForPublicRelease":"Not For Public Release","forComment":"For Comment","void":"Void","preliminaryResults":"Preliminary Results","informationOnly":"Information Only","initialHere":"Initial Here","signHere":"Sign Here","witness":"Witness","asIs":"As Is","departmental":"Departmental","experimental":"Experimental","expired":"Expired","sold":"Sold","topSecret":"Top Secret","revised":"Revised","custom":"Custom","customStamp":"Custom Stamp","icon":"Icon","iconRightPointer":"Right Pointer","iconRightArrow":"Right Arrow","iconCheck":"Checkmark","iconCircle":"Ellipse","iconCross":"Cross","iconInsert":"Insert Text","iconNewParagraph":"New Paragraph","iconNote":"Text Note","iconComment":"Comment","iconParagraph":"Paragraph","iconHelp":"Help","iconStar":"Star","iconKey":"Key","documentEditor":"Document Editor","newPage":"New Page","removePage":"Delete Pages","duplicatePage":"Duplicate","rotatePageLeft":"Rotate Left","rotatePageRight":"Rotate Right","moveBefore":"Move Before","moveAfter":"Move After","selectNone":"Select None","selectAll":"Select All","saveAs":"Save As…","mergeDocument":"Import Document","undo":"Undo","redo":"Redo","openMoveDialog":"Move","move":"Move","extractPages":"Extract Pages","instantModifiedWarning":"The document was modified and is now in read-only mode. Reload the page to fix this.","documentMergedHere":"Document will be merged here","digitalSignaturesAllValid":"The document has been digitally signed and all signatures are valid.","digitalSignaturesDocModified":"The document has been digitally signed, but it has been modified since it was signed.","digitalSignaturesSignatureWarning":"The document has been digitally signed, but at least one signature has problems.","digitalSignaturesSignatureWarningDocModified":"The document has been digitally signed, but it has been modified since it was signed and at least one signature has problems.","digitalSignaturesSignatureError":"The document has been digitally signed, but at least one signature is invalid.","digitalSignaturesSignatureErrorDocModified":"The document has been digitally signed, but it has been modified since it was signed and at least one signature is invalid.","signingInProgress":"Signing in progress","signingModalDesc":"Indicates that the current document is being signed","discardChanges":"Discard Changes","commentEditorLabel":"Add your comment…","reply":"Reply","comment":"Comment","comments":"Comments","showMore":"Show more","showLess":"Show less","deleteComment":"Delete Comment","deleteCommentConfirmMessage":"Are you sure you want to delete this comment?","deleteCommentConfirmAccessibilityLabel":"Confirm comment deletion","editContent":"Edit Content","commentOptions":"Comment Options","areaRedaction":"Area Redaction","textRedaction":"Text Redaction","redactionAnnotation":"Redaction","applyingRedactions":"Applying redactions","overlayTextPlaceholder":"Insert overlay text","outlineColor":"Outline Color","overlayText":"Overlay Text","repeatText":"Repeat Text","preview":"Preview","applyRedactions":"Apply Redactions","markupAnnotationToolbar":"Markup annotation toolbar","documentViewport":"Document viewport","redactionInProgress":"Redaction in progress","redactionModalDesc":"Indicates that the current document is being redacted","commentAction":"Comment","printProgressModalDesc":"Indicates that a document is being prepared for printing","printProgressModal":"Printing in progress","documentEditorDesc":"Make changes to the current document","reloadDocumentDialog":"Confirm document reload","reloadDocumentDialogDesc":"Dialog prompting the user to confirm reloading the document.","signatureDialog":"Signature","signatureDialogDesc":"This dialog lets you select an ink signature to insert into the document. If you don\'t have stored signatures, you can create one using the canvas view.","stampAnnotationTemplatesDialog":"Stamp Annotation Templates","stampAnnotationTemplatesDialogDesc":"This dialog lets you select a stamp annotation to insert into the document or create a custom stamp annotation with your own text.","selectedAnnotation":"Selected {arg0}","commentThread":"Comment thread","selectedAnnotationWithText":"Selected {arg0} with {arg1} as content","signature":"Signature","ElectronicSignatures_SignHereTypeHint":"Type Your Signature Above","ElectronicSignatures_SignHereDrawHint":"Sign Here","selectDragImage":"Select or Drag Image","replaceImage":"Replace Image","draw":"Draw","image":"Image","type":"Type","saveSignature":"Save Signature","loading":"Loading","selectedItem":"{arg0}, selected.","annotationDeleted":"Annotation deleted.","newAnnotationCreated":"New {arg0} annotation created.","bookmarkCreated":"Created bookmark.","bookmarkEdited":"Edited bookmark.","bookmarkDeleted":"Deleted bookmark.","cancelledEditingBookmark":"Canceled bookmark editing.","selectAFileForImage":"Select a file for the new image annotation.","deleteAnnotationConfirmAccessibilityDescription":"Dialog allowing you to confirm or cancel deleting the annotation.","deleteBookmarkConfirmAccessibilityDescription":"Dialog allowing you to confirm or cancel deleting the bookmark.","deleteCommentConfirmAccessibilityDescription":"Dialog allowing you to confirm or cancel deleting the comment.","resize":"Resize","resizeHandleTop":"Top","resizeHandleBottom":"Bottom","resizeHandleRight":"Right","resizeHandleLeft":"Left","cropCurrentPage":"Crop Current Page","cropCurrent":"Crop Current","cropAllPages":"Crop All Pages","cropAll":"Crop All","documentCrop":"Document Crop","Comparison_alignButtonTouch":"Align","Comparison_selectPoint":"Select Point","Comparison_documentOldTouch":"Old","Comparison_documentNewTouch":"New","Comparison_result":"Comparison","UserHint_description":"Select three points on both documents for manual alignment. For best results, choose points near the corners of the documents, ensuring the points are in the same order on both documents.","UserHint_dismissMessage":"Dismiss","Comparison_alignButton":"Align Documents","documentComparison":"Document Comparison","Comparison_documentOld":"Old Document","Comparison_documentNew":"New Document","Comparison_resetButton":"Reset","UserHint_Select":"Selecting Points","numberValidationBadFormat":"The value entered doesn’t match the format of the field [{arg0}]","dateValidationBadFormat":"Invalid date/time: Please ensure that the date/time exists. Field [{arg0}] should match format {arg1}","insertAfterPage":"Insert after page","docEditorMoveBeginningHint":"Type “0” to move the selected page(s) to the beginning of the document.","cloudyRectangleAnnotation":"Cloudy Rectangle","dashedRectangleAnnotation":"Dashed Rectangle","cloudyEllipseAnnotation":"Cloudy Ellipse","dashedEllipseAnnotation":"Dashed Ellipse","cloudyPolygonAnnotation":"Cloudy Polygon","dashedPolygonAnnotation":"Dashed Polygon","cloudAnnotation":"Cloud","rotateCounterclockwise":"Rotate counterclockwise","rotateClockwise":"Rotate clockwise","enterDescriptionHere":"Enter description here","addOption":"Add option","formDesignerPopoverTitle":"{formFieldType} Properties","formFieldNameExists":"A form field named {formFieldName} already exists. Please choose a different name.","styleSectionLabel":"{formFieldType} Style","formFieldName":"Form Field Name","defaultValue":"Default Value","multiLine":"Multiline","radioButtonFormFieldNameWarning":"To group the radio buttons, make sure they have the same form field names.","advanced":"Advanced","creatorName":"Creator Name","note":"Note","customData":"Custom Data","required":"Required","readOnly":"Read Only","createdAt":"Created At","updatedAt":"Updated At","customDataErrorMessage":"Must be a plain JSON-serializable object","borderColor":"Border Color","borderWidth":"Border Width","borderStyle":"Border Style","solidBorder":"Solid","dashed":"Dashed","beveled":"Beveled","inset":"Inset","underline":"Underlined","textStyle":"Text Style","fontSize":"Font Size","fontColor":"Font Color","button":"Button Field","textField":"Text Field","radioField":"Radio Field","checkboxField":"Checkbox Field","comboBoxField":"Combo Box Field","listBoxField":"List Box Field","signatureField":"Signature Field","formDesigner":"Form Creator","buttonText":"Button Text","notAvailable":"N/A","label":"Label","value":"Value","cannotEditOnceCreated":"Cannot be edited once created.","formFieldNameNotEmpty":"Form field name cannot be left empty.","mediaAnnotation":"Media Annotation","mediaFormatNotSupported":"This browser doesn’t support embedded video or audio.","distanceMeasurement":"Distance","perimeterMeasurement":"Perimeter","polygonAreaMeasurement":"Polygon Area","rectangularAreaMeasurement":"Rectangle Area","ellipseAreaMeasurement":"Ellipse Area","distanceMeasurementSettings":"Distance Measurement Settings","perimeterMeasurementSettings":"Perimeter Measurement Settings","polygonAreaMeasurementSettings":"Polygon Area Measurement Settings","rectangularAreaMeasurementSettings":"Rectangle Area Measurement Settings","ellipseAreaMeasurementSettings":"Ellipse Area Measurement Settings","measurementScale":"Scale","measurementCalibrateLength":"Calibrate Length","measurementPrecision":"Precision","measurementSnapping":"Snapping","formCreator":"Form Creator","group":"Group","ungroup":"Ungroup","bold":"Bold","italic":"Italic","addLink":"Add Link","removeLink":"Remove Link","editLink":"Edit Link","anonymous":"Anonymous","saveAndClose":"Save & Close","ceToggleFontMismatchTooltip":"Toggle font mismatch tooltip","ceFontMismatch":"The {arg0} font isn’t available or can’t be used to edit content in this document. Added or changed content will revert to a default font.","multiAnnotationsSelection":"Select Multiple Annotations","linkSettingsPopoverTitle":"Link Settings","linkTo":"Link To","uriLink":"Website","pageLink":"Page","invalidPageNumber":"Enter a valid page number.","invalidPageLink":"Enter a valid page link.","linkAnnotation":"Link","targetPageLink":"Page Number","rotation":"Rotation","unlockDocumentDescription":"You have to unlock this document to view it. Please enter the password in the field below.","commentDialogClosed":"Open comment thread started by {arg0}: “{arg1}”","moreComments":"More comments","setScale":"Set Scale","useCalibrationTool":"Use Calibration Tool","calibrateScale":"Calibrate Scale","unit":"Unit","scaleAnnotationsDeleteWarning":"Deleting the scale will also delete measurements using the scale.","halves":"Half Inches","quarters":"Quarter Inches","eighths":"Eighths of an Inch","sixteenths":"Sixteenths of an Inch","addTextBox":"Add Text Box","deleteTextBlockConfirmMessage":"Are you sure you want to delete this text box?","deleteTextBlockConfirmAccessibilityLabel":"Confirm text box deletion","deleteTextBlockConfirmAccessibilityDescription":"Dialog allowing the user to confirm or cancel deleting the text box","noSignatures":"No Signatures","scaleName":"Scale Name","calibrate":"Calibrate","scaleAlreadyAddedWarning":"A scale with these settings has already been defined. Please choose a different scale.","displaySecondaryUnit":"Display Secondary Unit","editAddNewScale":"Edit or add new scale","addScale":"Add Scale","calloutAnnotation":"Callout","layers":"Layers","noLayers":"No Layers","contentEditor":"Content Editor","secondaryUnits":"Secondary Units","measurement":"Measurements","reloadDocument":"Reload Document","backgroundColor":"Background Color","help":"Help","cut":"Cut","copy":"Copy","paste":"Paste","openLink":"Open Link","linkToPage":"Link to Page","ContentEditing_DownloadRequiredTitle":"Download Required","ContentEditing_DownloadRequiredMessage":"To enable content editing directly in your browser, your document needs to be downloaded.","ContentEditing_DownloadRequiredButton":"Download Document","ContentEditing_CannotSaveChangesTitle":"Cannot Save Changes","ContentEditing_CannotSaveChangesMessage":"This file was edited by another user at the same time and their changes have already been uploaded. Your edits cannot be saved. Review your edits and try again if necessary, or exit without saving any changes.","ContentEditing_CannotSaveChangesButton":"Discard","ContentEditing_CannotSaveChangesReviewButton":"Review","ContentEditing_DownloadingDocument":"Preparing document for editing…","ContentEditing_Saving":"Saving the document…","linesCount":"{arg0, plural,\\none {{arg0} Line}\\nother {{arg0} Lines}\\n}","annotationsCount":"{arg0, plural,\\n=0 {No Annotations}\\none {{arg0} Annotation}\\nother {{arg0} Annotations}\\n}","pagesSelected":"{arg0, plural,\\none {{arg0} Page Selected}\\nother {{arg0} Pages Selected}\\n}","commentsCount":"{arg0, plural,\\none {{arg0} comment}\\nother {{arg0} comments}\\n}","deleteNComments":"{arg0, plural,\\none {{arg0} Comment}\\nother {{arg0} Comments}\\n}","nMoreComments":"{arg0, plural,\\none {{arg0} more comment}\\nother {{arg0} more comments}\\n}"}')}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}return a.m=o,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,a.d(o,i),o},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>249===e?"nutrient-viewer-lib/core-worker.js":374===e?"nutrient-viewer-lib/gdpicture-worker.js":"nutrient-viewer-lib/chunk-"+{11:"gdpicture-worker",15:"locale-fr-CA",42:"standalone-server",57:"locale-fi",163:"locale-sl",225:"locale-zh-Hans",234:"locale-nb-NO",258:"locale-fr",262:"locale-pt",269:"server-rest",285:"locale-ja",329:"core-worker",341:"locale-el",351:"locale-en-GB",362:"standalone",364:"locale-cs",377:"locale-ru",396:"lazy-sha",529:"locale-id",534:"server-instant",556:"locale-sk",576:"locale-ko",590:"locale-cy",630:"locale-zh-Hant",750:"server",751:"locale-da",758:"locale-sv",771:"locale-pt-PT",860:"gdpicture",866:"locale-es",870:"locale-pl",874:"locale-ms",902:"locale-th",928:"locale-hr",930:"locale-uk",931:"locale-de",948:"locale-nl",969:"locale-it",972:"locale-tr"}[e]+"-"+{11:"53197614a599f95b",15:"4cdcbd6d195b7408",42:"1cc877789226f9d3",57:"3a7a80493e63a0f5",163:"ee98c3fcc4b35ff1",225:"9688fcf166005268",234:"3b2332258144065b",258:"bba2666cac765bce",262:"9b7a5e9cbc6d161c",269:"fa517daf9a801375",285:"e10857fccf041841",329:"d1737a3ff63ee59f",341:"5f2a1f110b0f8f1d",351:"e59f31af0f242b68",362:"899126411b707866",364:"f87eb3cac2baa757",377:"388e8d8de7d7a185",396:"6da5934fe6a5ecfd",529:"9e082c7bfcd9e58c",534:"3d6c34ef0242320a",556:"f87d1e46f753976b",576:"da823b3bbe3b0d4d",590:"be304d2202fc76ab",630:"28714aa9130ea7e7",750:"d1305371c3efbfc2",751:"37837ff2c758f9a8",758:"b0d614c5064f9ed6",771:"032b95edbc5c3dcb",860:"c5e3a3f7cc37f676",866:"a2287eb606cf2979",870:"af25087e167cbf74",874:"27385907b5f98b0c",902:"0419c67c4d517939",928:"12669aade180c9ef",930:"cc627b497c3c6611",931:"2a5643448e93e131",948:"5b0d5550eeda59aa",969:"79ef8d097a29d085",972:"83454330c8a51aa6"}[e]+".js",a.miniCssF=e=>{},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="NutrientViewer:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+o){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+o),s.src=e),n[e]=[t];var p=(t,r)=>{s.onerror=s.onload=null,clearTimeout(h);var o=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(r))),t)return t(r)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.p="",(()=>{a.b=document.baseURI||self.location.href;var e={197:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,s,l]=n,c=0;if(i.some((t=>0!==e[t]))){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);if(l)l(a)}for(t&&t(n);c<i.length;c++)o=i[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=globalThis.webpackChunkNutrientViewer=globalThis.webpackChunkNutrientViewer||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a.nc=void 0,a(46261)})()));